Skip to content

Commit 03dd8a6

Browse files
fix: code clean up
1 parent f2d80ff commit 03dd8a6

File tree

3 files changed

+9
-14
lines changed
  • src/Resources/app/administration/src

3 files changed

+9
-14
lines changed

src/Resources/app/administration/src/component/nuonic-extension-card/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import template from './nuonic-extension-card.html.twig';
22
import './nuonic-extension-card.scss';
33

4-
const { Component, Mixin } = Shopware;
5-
const { Criteria } = Shopware.Data;
6-
const { Utils, Filter } = Shopware;
4+
const { Component, Mixin, Filter } = Shopware;
75

86
Component.register('nuonic-extension-card', {
97
template,
Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
import template from './nuonic-plugin-installer-index.html.twig';
22
import './nuonic-plugin-installer-index.scss';
33

4-
// eslint-disable-next-line no-undef
54
const { Component } = Shopware;
65
const { Criteria } = Shopware.Data;
76

87
Component.register('nuonic-plugin-installer-index', {
9-
template,
8+
template,
109

11-
inject: ['repositoryFactory'],
10+
inject: ['repositoryFactory'],
1211

13-
computed: {
14-
async packages() {
15-
const pluginRepository = this.repositoryFactory.create('nuonic_available_opensource_plugin')
16-
return await pluginRepository.search(new Criteria)
17-
}
18-
}
12+
computed: {
13+
async packages() {
14+
const pluginRepository = this.repositoryFactory.create('nuonic_available_opensource_plugin');
15+
return await pluginRepository.search(new Criteria());
16+
},
17+
},
1918
});

src/Resources/app/administration/src/main.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,5 @@ import './service/api/install.service';
88
import deDE from './snippet/de-DE';
99
import enGB from './snippet/en-GB';
1010

11-
// eslint-disable-next-line no-undef
1211
Shopware.Locale.extend('de-DE', deDE);
13-
// eslint-disable-next-line no-undef
1412
Shopware.Locale.extend('en-GB', enGB);

0 commit comments

Comments
 (0)