Skip to content

Commit 1270ca8

Browse files
committed
feat(admin): add admin module
1 parent bd472c2 commit 1270ca8

File tree

8 files changed

+77
-0
lines changed

8 files changed

+77
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import template from './nuonic-plugin-installer-index.html.twig';
2+
import './nuonic-plugin-installer-index.scss';
3+
4+
// eslint-disable-next-line no-undef
5+
const { Component } = Shopware;
6+
const { Criteria } = Shopware.Data;
7+
8+
Component.register('nuonic-plugin-installer-index', {
9+
template,
10+
11+
inject: ['repositoryFactory'],
12+
13+
computed: {
14+
async packages() {
15+
const pluginRepository = this.repositoryFactory.create('nuonic_available_opensource_plugin')
16+
return await pluginRepository.search(new Criteria)
17+
}
18+
}
19+
});
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{% block nuonic_plugin_installer_index %}
2+
<div class="nuonic-plugin-installer-index">
3+
4+
</div>
5+
{% endblock %}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.nuonic-plugin-installer-index {
2+
3+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import './module/nuonic-plugin-installer';
2+
import './component/nuonic-plugin-installer-index'
3+
4+
import deDE from './snippet/de-DE';
5+
import enGB from './snippet/en-GB';
6+
7+
// eslint-disable-next-line no-undef
8+
Shopware.Locale.extend('de-DE', deDE);
9+
// eslint-disable-next-line no-undef
10+
Shopware.Locale.extend('en-GB', enGB);
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Shopware.Module.register('nuonic-plugin-installer', {
2+
type: 'plugin',
3+
name: 'NuonicPluginInstaller',
4+
title: 'nuonic-plugin-installer.extension.title',
5+
description: 'nuonic-plugin-installer.extension.description',
6+
color: '#66bbe3',
7+
icon: 'regular-dashboard',
8+
navigation: [{
9+
label: 'NuonicPluginInstaller',
10+
color: '#66bbe3',
11+
path: 'nuonic.plugin.installer.index',
12+
icon: 'regular-dashboard',
13+
parent: 'sw-extension',
14+
position: 100
15+
}],
16+
routes: {
17+
index: {
18+
component: 'nuonic-plugin-installer-index',
19+
path: '/'
20+
},
21+
},
22+
});
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"nuonic-plugin-installer": {
3+
"extension" : {
4+
"title": "OpenSource Plugin Installer",
5+
"description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas vel diam mi. Quisque consectetur condimentum blandit. Integer nunc nisi, porttitor sed nunc bibendum, vestibulum."
6+
}
7+
}
8+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"nuonic-plugin-installer": {
3+
"extension" : {
4+
"title": "OpenSource Plugin Installer",
5+
"description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas vel diam mi. Quisque consectetur condimentum blandit. Integer nunc nisi, porttitor sed nunc bibendum, vestibulum."
6+
}
7+
}
8+
}

src/Resources/public/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
administration
2+
storefront

0 commit comments

Comments
 (0)