init
This commit is contained in:
commit
f5ff279b7b
14 files changed
+610
No files matched your search
@@ -0,0 +1,2 @@
|
||||
// Import admin module
|
||||
import './module/swag-example';
|
||||
@@ -0,0 +1,49 @@
|
||||
// <plugin root>/src/Resources/app/administration/src/module/swag-example/index.js
|
||||
import './page/swag-example-list';
|
||||
import './page/swag-example-detail';
|
||||
import './page/swag-example-create';
|
||||
import deDE from './snippet/de-DE';
|
||||
import enGB from './snippet/en-GB';
|
||||
|
||||
Shopware.Module.register('swag-example', {
|
||||
type: 'plugin',
|
||||
name: 'Example',
|
||||
title: 'swag-example.general.mainMenuItemGeneral',
|
||||
description: 'sw-property.general.descriptionTextModule',
|
||||
color: '#ff3d58',
|
||||
icon: 'default-shopping-paper-bag-product',
|
||||
|
||||
snippets: {
|
||||
'de-DE': deDE,
|
||||
'en-GB': enGB
|
||||
},
|
||||
|
||||
routes: {
|
||||
list: {
|
||||
component: 'swag-example-list',
|
||||
path: 'list'
|
||||
},
|
||||
detail: {
|
||||
component: 'swag-example-detail',
|
||||
path: 'detail/:id',
|
||||
meta: {
|
||||
parentPath: 'swag.example.list'
|
||||
}
|
||||
},
|
||||
create: {
|
||||
component: 'swag-example-create',
|
||||
path: 'create',
|
||||
meta: {
|
||||
parentPath: 'swag.example.list'
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
navigation: [{
|
||||
label: 'swag-example.general.mainMenuItemGeneral',
|
||||
color: '#ff3d58',
|
||||
path: 'swag.example.list',
|
||||
icon: 'default-shopping-paper-bag-product',
|
||||
position: 100
|
||||
}]
|
||||
});
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"swag-example": {
|
||||
"general": {
|
||||
"mainMenuItemGeneral": "My custom module",
|
||||
"descriptionTextModule": "Manage this custom module here"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"swag-example": {
|
||||
"general": {
|
||||
"mainMenuItemGeneral": "My custom module",
|
||||
"descriptionTextModule": "Manage this custom module here"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/shopware/shopware/trunk/src/Core/System/SystemConfig/Schema/config.xsd">
|
||||
|
||||
<card>
|
||||
<title>Minimal configuration</title>
|
||||
|
||||
<input-field type="number">
|
||||
<name>maxDumps</name>
|
||||
<label>Maximum allowed dumps to exist</label>
|
||||
<defaultValue>6</defaultValue>
|
||||
</input-field>
|
||||
<input-field type="number">
|
||||
<name>retantionDays</name>
|
||||
<label>How many Days the dumps kept in the Storage. 0 Means unlimited</label>
|
||||
<defaultValue>0</defaultValue>
|
||||
</input-field>
|
||||
</card>
|
||||
|
||||
</config>
|
||||
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" ?>
|
||||
|
||||
<container xmlns="http://symfony.com/schema/dic/services"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
|
||||
|
||||
<services>
|
||||
|
||||
<service id="AeonDumpManager\Command\ExampleCommand">
|
||||
<tag name="console.command"/>
|
||||
</service>
|
||||
|
||||
<service id="AeonDumpManager\ScheduledTask\ExampleTask">
|
||||
<tag name="shopware.scheduled.task"/>
|
||||
</service>
|
||||
|
||||
</services>
|
||||
</container>
|
||||
Reference in new issue
Block a user