Skip to content

Commit 79b85f0

Browse files
committed
chore: format all files
1 parent b88c179 commit 79b85f0

File tree

8 files changed

+22
-65
lines changed

8 files changed

+22
-65
lines changed

src/Resources/app/administration/src/module/frosh-tools/component/frosh-tools-tab-cache/index.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ Component.register('frosh-tools-tab-cache', {
2020

2121
created() {
2222
const language =
23-
Shopware.Application.getContainer(
24-
'factory',
25-
).locale.getLastKnownLocale();
23+
Shopware.Application.getContainer('factory').locale.getLastKnownLocale();
2624
this.numberFormater = new Intl.NumberFormat(language, {
2725
minimumFractionDigits: 2,
2826
maximumFractionDigits: 2,
@@ -99,10 +97,7 @@ Component.register('frosh-tools-tab-cache', {
9997
const theme = salesChannel.extensions.themes.first();
10098

10199
if (theme) {
102-
await this.themeService.assignTheme(
103-
theme.id,
104-
salesChannel.id,
105-
);
100+
await this.themeService.assignTheme(theme.id, salesChannel.id);
106101
this.createNotificationSuccess({
107102
message: `${salesChannel.translated.name}: ${this.$tc('frosh-tools.themeCompiled')}`,
108103
});

src/Resources/app/administration/src/module/frosh-tools/component/frosh-tools-tab-elasticsearch/index.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -77,16 +77,7 @@ Component.register('frosh-tools-tab-elasticsearch', {
7777
return bytes + ' B';
7878
}
7979

80-
const units = [
81-
'KiB',
82-
'MiB',
83-
'GiB',
84-
'TiB',
85-
'PiB',
86-
'EiB',
87-
'ZiB',
88-
'YiB',
89-
];
80+
const units = ['KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB', 'ZiB', 'YiB'];
9081
let index = -1;
9182
const reach = 10 ** dp;
9283

src/Resources/app/administration/src/module/frosh-tools/component/frosh-tools-tab-files/index.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,7 @@ Component.register('frosh-tools-tab-files', {
7878
dmp.diff_cleanupSemantic(diff);
7979
this.diffData.html = dmp
8080
.diff_prettyHtml(diff)
81-
.replace(
82-
new RegExp('background:#e6ffe6;', 'g'),
83-
'background:#ABF2BC;',
84-
)
81+
.replace(new RegExp('background:#e6ffe6;', 'g'), 'background:#ABF2BC;')
8582
.replace(
8683
new RegExp('background:#ffe6e6;', 'g'),
8784
'background:rgba(255,129,130,0.4);',
@@ -95,8 +92,7 @@ Component.register('frosh-tools-tab-files', {
9592
async restoreFile(name) {
9693
this.closeModal();
9794
this.isLoading = true;
98-
const response =
99-
await this.froshToolsService.restoreShopwareFile(name);
95+
const response = await this.froshToolsService.restoreShopwareFile(name);
10096

10197
if (response.data.status) {
10298
this.createNotificationSuccess({

src/Resources/app/administration/src/module/frosh-tools/component/frosh-tools-tab-index/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ Component.register('frosh-tools-tab-index', {
4949

5050
async createdComponent() {
5151
this.health = await this.froshToolsService.healthStatus();
52-
this.performanceStatus =
53-
await this.froshToolsService.performanceStatus();
52+
this.performanceStatus = await this.froshToolsService.performanceStatus();
5453
this.isLoading = false;
5554
},
5655
},

src/Resources/app/administration/src/module/frosh-tools/component/frosh-tools-tab-logs/index.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,7 @@ Component.register('frosh-tools-tab-logs', {
8080
);
8181

8282
this.logEntries = logEntries.data;
83-
this.totalLogEntries = parseInt(
84-
logEntries.headers['file-size'],
85-
10,
86-
);
83+
this.totalLogEntries = parseInt(logEntries.headers['file-size'], 10);
8784
},
8885

8986
async onPageChange(page) {

src/Resources/app/administration/src/module/frosh-tools/component/frosh-tools-tab-scheduled/index.js

Lines changed: 12 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -116,33 +116,24 @@ Component.register('frosh-tools-tab-scheduled', {
116116

117117
try {
118118
this.createNotificationInfo({
119-
message: this.$t(
120-
'frosh-tools.scheduledTaskScheduleStarted',
121-
{
122-
name: item.name,
123-
},
124-
),
119+
message: this.$t('frosh-tools.scheduledTaskScheduleStarted', {
120+
name: item.name,
121+
}),
125122
});
126123
await this.froshToolsService.scheduleScheduledTask(
127124
item.id,
128125
immediately,
129126
);
130127
this.createNotificationSuccess({
131-
message: this.$t(
132-
'frosh-tools.scheduledTaskScheduleSucceed',
133-
{
134-
name: item.name,
135-
},
136-
),
128+
message: this.$t('frosh-tools.scheduledTaskScheduleSucceed', {
129+
name: item.name,
130+
}),
137131
});
138132
} catch (e) {
139133
this.createNotificationError({
140-
message: this.$t(
141-
'frosh-tools.scheduledTaskScheduleFailed',
142-
{
143-
name: item.name,
144-
},
145-
),
134+
message: this.$t('frosh-tools.scheduledTaskScheduleFailed', {
135+
name: item.name,
136+
}),
146137
});
147138

148139
this.taskError = e.response.data;
@@ -156,23 +147,17 @@ Component.register('frosh-tools-tab-scheduled', {
156147

157148
try {
158149
this.createNotificationInfo({
159-
message: this.$tc(
160-
'frosh-tools.scheduledTasksRegisterStarted',
161-
),
150+
message: this.$tc('frosh-tools.scheduledTasksRegisterStarted'),
162151
});
163152
await this.froshToolsService.scheduledTasksRegister();
164153
this.createNotificationSuccess({
165-
message: this.$tc(
166-
'frosh-tools.scheduledTasksRegisterSucceed',
167-
),
154+
message: this.$tc('frosh-tools.scheduledTasksRegisterSucceed'),
168155
});
169156
} catch (err) {
170157
console.error(err);
171158

172159
this.createNotificationError({
173-
message: this.$tc(
174-
'frosh-tools.scheduledTasksRegisterFailed',
175-
),
160+
message: this.$tc('frosh-tools.scheduledTasksRegisterFailed'),
176161
});
177162
}
178163

src/Resources/app/administration/src/module/frosh-tools/component/frosh-tools-tab-state-machines/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ Component.register('frosh-tools-tab-state-machines', {
3333
}
3434

3535
const response =
36-
await this.froshToolsService.stateMachines(
37-
stateMachineChangeId,
38-
);
36+
await this.froshToolsService.stateMachines(stateMachineChangeId);
3937

4038
const elem = document.getElementById('state_machine');
4139
if ('svg' in response) {

src/Resources/app/administration/src/overrides/sw-version/index.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,7 @@ Component.override('sw-version', {
5252
continue;
5353
}
5454

55-
if (
56-
health.state === 'STATE_WARNING' &&
57-
msg === 'Shop Status: Ok'
58-
) {
55+
if (health.state === 'STATE_WARNING' && msg === 'Shop Status: Ok') {
5956
msg = 'Shop Status: Issues, Check System Status';
6057
}
6158
}
@@ -70,8 +67,7 @@ Component.override('sw-version', {
7067

7168
this.checkInterval = setInterval(async () => {
7269
try {
73-
this.health =
74-
await this.froshToolsService.healthStatus(true);
70+
this.health = await this.froshToolsService.healthStatus(true);
7571
} catch (e) {
7672
console.error(e);
7773
clearInterval(this.checkInterval);

0 commit comments

Comments
 (0)