init plugin backend areas, needed xml and composer files
Dieser Commit ist enthalten in:
Ursprung
e829630d8f
Commit
8d6ff7fffe
7 geänderte Dateien mit 89 neuen und 0 gelöschten Zeilen
16
composer.json
Normale Datei
16
composer.json
Normale Datei
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"name": "phpbo/fakedata",
|
||||
"description": "Fake Data Plugin for CONTENIDO database",
|
||||
"minimum-stability": "stable",
|
||||
"license": "GPL-3.0-only",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Ortwin Pinke",
|
||||
"email": "info@php-backoffice.de"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"php": "^7.4 || ^8.0",
|
||||
"fakerphp/faker": "v1.23.1"
|
||||
}
|
||||
}
|
6
includes/config.plugin.php
Normale Datei
6
includes/config.plugin.php
Normale Datei
|
@ -0,0 +1,6 @@
|
|||
<?php
|
||||
defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
|
||||
|
||||
$pluginName = basename(dirname(__DIR__, 1));
|
||||
|
||||
$cfg['plugins'][$pluginName] = cRegistry::getBackendPath() . cRegistry::getConfigValue('path', 'plugins') . "$pluginName/";
|
1
includes/include.fake_data_config.php
Normale Datei
1
includes/include.fake_data_config.php
Normale Datei
|
@ -0,0 +1 @@
|
|||
<?php
|
1
includes/include.fake_data_dashboard.php
Normale Datei
1
includes/include.fake_data_dashboard.php
Normale Datei
|
@ -0,0 +1 @@
|
|||
<?php
|
39
plugin.xml
Normale Datei
39
plugin.xml
Normale Datei
|
@ -0,0 +1,39 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
|
||||
<plugin>
|
||||
<general active="1">
|
||||
<plugin_name>Con Fake Data</plugin_name>
|
||||
<plugin_foldername>fake_data</plugin_foldername>
|
||||
<uuid>32C36B75-8B13-4DCE-8F7B-578AB8F05FBF</uuid>
|
||||
<description>Fake Data Generator for CONTENIDO database</description>
|
||||
<author>Ortwin Pinke</author>
|
||||
<copyright>Ortwin Pinke php-backoffice.de</copyright>
|
||||
<mail>info@php-backoffice.de</mail>
|
||||
<website>https://php-backoffice.de</website>
|
||||
<version>0.0.1</version>
|
||||
</general>
|
||||
<requirements php="8.0">
|
||||
<contenido minversion="4.10.0"/>
|
||||
</requirements>
|
||||
<contenido>
|
||||
<areas>
|
||||
<area menuless="1">fake_data</area>
|
||||
<area parent="fake_data" menuless="1">fake_data_config</area>
|
||||
</areas>
|
||||
<actions>
|
||||
<action area="fake_data">fake_data</action>
|
||||
<action area="fake_data">fake_data_config</action>
|
||||
</actions>
|
||||
<frames>
|
||||
<frame area="fake_data" filetype="main"
|
||||
name="fake_data/includes/include.fake_data_dashboard.php" frameId="4"/>
|
||||
<frame area="fake_data_config" filetype="main"
|
||||
name="fake_data/includes/include.fake_data_config.php" frameId="4"/>
|
||||
</frames>
|
||||
<nav_sub>
|
||||
<nav area="fake_data" level="0" navm="extra">fake_data/xml/;navigation/extra/fake_data/main</nav>
|
||||
<nav area="fake_data" level="1" navm="0">fake_data/xml/;navigation/extra/fake_data/dashboard</nav>
|
||||
<nav area="fake_data_config" level="1" navm="0">fake_data/xml/;navigation/extra/fake_data/config</nav>
|
||||
</nav_sub>
|
||||
</contenido>
|
||||
</plugin>
|
13
xml/lang_de_DE.xml
Normale Datei
13
xml/lang_de_DE.xml
Normale Datei
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- CONTENIDO XML language file -->
|
||||
<language>
|
||||
<navigation>
|
||||
<extra>
|
||||
<fake_data>
|
||||
<main>FakeData</main>
|
||||
<dashboard>Dashboard</dashboard>
|
||||
<config>Einstellungen</config>
|
||||
</fake_data>
|
||||
</extra>
|
||||
</navigation>
|
||||
</language>
|
13
xml/lang_en_US.xml
Normale Datei
13
xml/lang_en_US.xml
Normale Datei
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- CONTENIDO XML language file -->
|
||||
<language>
|
||||
<navigation>
|
||||
<extra>
|
||||
<fake_data>
|
||||
<main>FakeData</main>
|
||||
<dashboard>Dashboard</dashboard>
|
||||
<config>Configurations</config>
|
||||
</fake_data>
|
||||
</extra>
|
||||
</navigation>
|
||||
</language>
|
Laden …
In neuem Issue referenzieren