diff --git a/config/modules.php b/config/modules.php index ca48f2c..2e8a9b9 100644 --- a/config/modules.php +++ b/config/modules.php @@ -12,5 +12,5 @@ * Each entry must match a directory name under modules/ containing a module.php manifest. */ return [ - 'enabled_modules' => ['audit', 'addressbook', 'bookmarks', 'notifications', 'api-docs'], + 'enabled_modules' => ['audit', 'addressbook', 'bookmarks', 'notifications', 'api-docs', 'help-center'], ]; diff --git a/modules/help-center/i18n/default_de.json b/modules/help-center/i18n/default_de.json new file mode 100644 index 0000000..6eb4c65 --- /dev/null +++ b/modules/help-center/i18n/default_de.json @@ -0,0 +1,16 @@ +{ + "Help": "Hilfe", + "Documentation": "Dokumentation", + "Keyboard shortcuts": "Tastenkuerzel", + "Action": "Aktion", + "Shortcut": "Kuerzel", + "About": "Info", + "Application": "Anwendung", + "CoreCore Admin": "CoreCore Admin", + "Open search": "Suche oeffnen", + "Save in edit pages": "Speichern auf Bearbeitungsseiten", + "Toggle sidebar": "Seitenleiste umschalten", + "Switch sidebar section": "Seitenleisten-Bereich wechseln", + "Back": "Zurueck", + "Forward": "Vorwaerts" +} diff --git a/modules/help-center/i18n/default_en.json b/modules/help-center/i18n/default_en.json new file mode 100644 index 0000000..3a82f52 --- /dev/null +++ b/modules/help-center/i18n/default_en.json @@ -0,0 +1,16 @@ +{ + "Help": "Help", + "Documentation": "Documentation", + "Keyboard shortcuts": "Keyboard shortcuts", + "Action": "Action", + "Shortcut": "Shortcut", + "About": "About", + "Application": "Application", + "CoreCore Admin": "CoreCore Admin", + "Open search": "Open search", + "Save in edit pages": "Save in edit pages", + "Toggle sidebar": "Toggle sidebar", + "Switch sidebar section": "Switch sidebar section", + "Back": "Back", + "Forward": "Forward" +} diff --git a/modules/help-center/lib/Module/HelpCenter/HelpCenterContainerRegistrar.php b/modules/help-center/lib/Module/HelpCenter/HelpCenterContainerRegistrar.php new file mode 100644 index 0000000..de5e88c --- /dev/null +++ b/modules/help-center/lib/Module/HelpCenter/HelpCenterContainerRegistrar.php @@ -0,0 +1,14 @@ + 'help-center', + 'version' => '1.0.0', + 'enabled_by_default' => true, + 'load_order' => 30, + 'requires' => [], + + 'routes' => [], + 'public_paths' => [], + 'container_registrars' => [ + \MintyPHP\Module\HelpCenter\HelpCenterContainerRegistrar::class, + ], + + 'ui_slots' => [ + 'aside.tab_panel' => [ + [ + 'key' => 'help', + 'label' => 'Help', + 'icon' => 'bi-question-circle', + 'href' => '', + 'permission' => '', + 'panel_template' => 'templates/aside-help-panel.phtml', + 'order' => 900, + ], + ], + 'layout.head_style' => [ + [ + 'key' => 'help-center-style', + 'path' => 'modules/help-center/css/components/app-help-panel.css', + 'order' => 200, + ], + ], + ], + + 'authorization_policies' => [], + 'search_resources' => [], + 'asset_groups' => [], + 'scheduler_jobs' => [], + 'layout_context_providers' => [], + 'session_providers' => [], + 'permissions' => [], + 'event_listeners' => [], + 'deactivation_handler' => null, + 'migrations_path' => null, + 'i18n_path' => 'i18n', +]; diff --git a/modules/help-center/templates/aside-help-panel.phtml b/modules/help-center/templates/aside-help-panel.phtml new file mode 100644 index 0000000..af4a7f1 --- /dev/null +++ b/modules/help-center/templates/aside-help-panel.phtml @@ -0,0 +1,65 @@ + +