localization, context, react stuff
This commit is contained in:
@@ -25,7 +25,6 @@ class Account extends TemplateDocument {
|
||||
protected function loadParameters() {
|
||||
$settings = $this->getSettings();
|
||||
$templateName = $this->getTemplateName();
|
||||
$language = $this->getContext()->getLanguage();
|
||||
$this->parameters["view"] = ["success" => true];
|
||||
switch ($templateName) {
|
||||
|
||||
|
||||
@@ -14,5 +14,6 @@ class Admin extends TemplateDocument {
|
||||
$this->searchable = false;
|
||||
parent::__construct($router, $template, $params);
|
||||
$this->enableCSP();
|
||||
$this->addCSPWhitelist("/js/admin-panel/");
|
||||
}
|
||||
}
|
||||
11
Core/Localization/de_DE/admin.php
Normal file
11
Core/Localization/de_DE/admin.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
"dashboard" => "Dashboard",
|
||||
"visitor_statistics" => "Besucherstatistiken",
|
||||
"user_groups" => "Benutzer & Gruppen",
|
||||
"page_routes" => "Seiten & Routen",
|
||||
"settings" => "Einstellungen",
|
||||
"logs" => "Logs",
|
||||
"help" => "Hilfe",
|
||||
];
|
||||
@@ -9,4 +9,5 @@ return [
|
||||
"submit" => "Absenden",
|
||||
"language" => "Sprache",
|
||||
"loading" => "Laden",
|
||||
"logout" => "Ausloggen",
|
||||
];
|
||||
11
Core/Localization/en_US/admin.php
Normal file
11
Core/Localization/en_US/admin.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
"dashboard" => "Dashboard",
|
||||
"visitor_statistics" => "Visitor Statistics",
|
||||
"user_groups" => "User & Groups",
|
||||
"page_routes" => "Pages & Routes",
|
||||
"settings" => "Settings",
|
||||
"logs" => "Logs",
|
||||
"help" => "Help",
|
||||
];
|
||||
@@ -9,4 +9,5 @@ return [
|
||||
"submit" => "Submit",
|
||||
"language" => "Language",
|
||||
"loading" => "Loading",
|
||||
"logout" => "Logout",
|
||||
];
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
{% block body %}
|
||||
<noscript>You need Javascript enabled to run this app</noscript>
|
||||
<div class="wrapper" type="module" id="admin-panel"></div>
|
||||
<div type="module" id="admin-panel"></div>
|
||||
<script src="/js/admin-panel/index.js" nonce="{{ site.csp.nonce }}"></script>
|
||||
<link rel="stylesheet" href="/js/admin-panel/index.css" nonce="{{ site.csp.nonce }}"></link>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user