Skip to content
This repository was archived by the owner on Mar 28, 2024. It is now read-only.

Commit 63f1e5f

Browse files
committed
NEXT-31689 - apply prettier codestyle
1 parent b08e78f commit 63f1e5f

File tree

169 files changed

+6957
-6722
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

169 files changed

+6957
-6722
lines changed

.github/workflows/chromatic.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
name: 'Chromatic'
1+
name: "Chromatic"
22

3-
on:
3+
on:
44
push:
55
branches:
66
- main
@@ -20,15 +20,15 @@ jobs:
2020
- name: Setup Node.js
2121
uses: actions/setup-node@v4
2222
with:
23-
node-version: '18'
23+
node-version: "18"
2424

2525
- name: Retrieve the cached main "node_modules" directory (if present)
2626
uses: actions/cache@v4
2727
id: node-cache-main
2828
with:
2929
path: node_modules
3030
key: node-modules-main-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
31-
31+
3232
- name: Install main dependencies (if the cached directory was not found)
3333
if: steps.node-cache-main.outputs.cache-hit != 'true'
3434
run: npm ci
@@ -39,4 +39,3 @@ jobs:
3939
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
4040
zip: true
4141
allowConsoleErrors: true
42-

.github/workflows/deployment.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Deployment
22

3-
on:
3+
on:
44
push:
55
branches:
66
- main
@@ -15,15 +15,15 @@ jobs:
1515
- name: Setup Node.js
1616
uses: actions/setup-node@v4
1717
with:
18-
node-version: '18'
18+
node-version: "18"
1919

2020
- name: Retrieve the cached main "node_modules" directory (if present)
2121
uses: actions/cache@v4
2222
id: node-cache-main
2323
with:
2424
path: node_modules
2525
key: node-modules-main-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
26-
26+
2727
- name: Install main dependencies (if the cached directory was not found)
2828
if: steps.node-cache-main.outputs.cache-hit != 'true'
2929
run: npm ci

.github/workflows/npm-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Publish to NPM
22

3-
on:
3+
on:
44
push:
55
branches:
66
- main
@@ -15,7 +15,7 @@ jobs:
1515
- name: Setup Node.js
1616
uses: actions/setup-node@v4
1717
with:
18-
node-version: '18'
18+
node-version: "18"
1919
- name: Retrieve the cached "node_modules" directory (if present)
2020
uses: actions/cache@v4
2121
id: node-cache

.github/workflows/preview.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Deploy PR previews
22

3-
on:
3+
on:
44
pull_request:
55
types:
66
- opened
@@ -20,15 +20,15 @@ jobs:
2020
- name: Setup Node.js
2121
uses: actions/setup-node@v4
2222
with:
23-
node-version: '18'
24-
23+
node-version: "18"
24+
2525
- name: Retrieve the cached main "node_modules" directory (if present)
2626
uses: actions/cache@v4
2727
id: node-cache-main
2828
with:
2929
path: node_modules
3030
key: node-modules-main-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
31-
31+
3232
- name: Install main dependencies (if the cached directory was not found)
3333
if: steps.node-cache-main.outputs.cache-hit != 'true'
3434
run: npm ci
@@ -39,4 +39,4 @@ jobs:
3939
- name: Deploy preview
4040
uses: rossjrw/pr-preview-action@v1
4141
with:
42-
source-dir: ./storybook-static/
42+
source-dir: ./storybook-static/

.github/workflows/tests.yml

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Setup Node.js
2020
uses: actions/setup-node@v4
2121
with:
22-
node-version: '18'
22+
node-version: "18"
2323
- name: Retrieve the cached "node_modules" directory (if present)
2424
uses: actions/cache@v4
2525
id: node-cache
@@ -42,7 +42,7 @@ jobs:
4242
- name: Setup Node.js
4343
uses: actions/setup-node@v4
4444
with:
45-
node-version: '18'
45+
node-version: "18"
4646
- name: Retrieve the cached "node_modules" directory (if present)
4747
uses: actions/cache@v4
4848
id: node-cache
@@ -59,32 +59,32 @@ jobs:
5959
timeout-minutes: 60
6060
runs-on: ubuntu-latest
6161
steps:
62-
- name: Checkout
63-
uses: actions/checkout@v4
64-
- name: Setup Node.js
65-
uses: actions/setup-node@v4
66-
- name: Retrieve the cached "node_modules" directory (if present)
67-
uses: actions/cache@v4
68-
id: node-cache
69-
with:
70-
path: node_modules
71-
key: node-modules-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
72-
- name: Install dependencies (if the cached directory was not found)
73-
if: steps.node-cache.outputs.cache-hit != 'true'
74-
run: npm ci
75-
- name: Install Playwright
76-
run: npx playwright install
77-
- name: Create the static pages directory locally in CI
78-
run: npm run build-storybook
79-
- name: Run Tests
80-
id: storybookTests
81-
run: |
82-
npx concurrently --kill-others --success first --names "SB,TEST" --hide "SB" --prefix-colors "magenta,blue" \
83-
"http-server storybook-static -a 127.0.0.1 --port 6006" \
84-
"wait-on http://127.0.0.1:6006 && npm run test-storybook"
85-
- name: Archive visual test diffs
86-
uses: actions/upload-artifact@v4
87-
if: always()
88-
with:
89-
name: visual-test-diffs
90-
path: __snapshots__
62+
- name: Checkout
63+
uses: actions/checkout@v4
64+
- name: Setup Node.js
65+
uses: actions/setup-node@v4
66+
- name: Retrieve the cached "node_modules" directory (if present)
67+
uses: actions/cache@v4
68+
id: node-cache
69+
with:
70+
path: node_modules
71+
key: node-modules-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
72+
- name: Install dependencies (if the cached directory was not found)
73+
if: steps.node-cache.outputs.cache-hit != 'true'
74+
run: npm ci
75+
- name: Install Playwright
76+
run: npx playwright install
77+
- name: Create the static pages directory locally in CI
78+
run: npm run build-storybook
79+
- name: Run Tests
80+
id: storybookTests
81+
run: |
82+
npx concurrently --kill-others --success first --names "SB,TEST" --hide "SB" --prefix-colors "magenta,blue" \
83+
"http-server storybook-static -a 127.0.0.1 --port 6006" \
84+
"wait-on http://127.0.0.1:6006 && npm run test-storybook"
85+
- name: Archive visual test diffs
86+
uses: actions/upload-artifact@v4
87+
if: always()
88+
with:
89+
name: visual-test-diffs
90+
path: __snapshots__

.storybook/manager-head.html

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,24 @@
33
* Hide all interaction tests in the menu
44
* in development
55
*/
6-
body:not(.show-interaction-tests) [id$='interaction-tests'],
7-
body:not(.show-interaction-tests) [data-parent-id^='interaction-tests'] {
6+
body:not(.show-interaction-tests) [id$="interaction-tests"],
7+
body:not(.show-interaction-tests) [data-parent-id^="interaction-tests"] {
88
display: none !important;
9-
}
9+
}
1010

11-
body.dark * {
12-
color-scheme: dark;
13-
}
11+
body.dark * {
12+
color-scheme: dark;
13+
}
1414

15-
body.light * {
16-
color-scheme: light;
17-
}
15+
body.light * {
16+
color-scheme: light;
17+
}
1818
</style>
1919

2020
<script>
2121
setTimeout(() => {
22-
if (window.CONFIG_TYPE === 'DEVELOPMENT') {
23-
document.body.classList.add('show-interaction-tests');
22+
if (window.CONFIG_TYPE === "DEVELOPMENT") {
23+
document.body.classList.add("show-interaction-tests");
2424
}
25-
}, 150)
25+
}, 150);
2626
</script>

.storybook/manager.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { addons } from '@storybook/manager-api';
2-
import { darkTheme, lightTheme } from './shopwareTheme';
1+
import { addons } from "@storybook/manager-api";
2+
import { darkTheme, lightTheme } from "./shopwareTheme";
33

44
addons.setConfig({
5-
theme: darkTheme
6-
});
5+
theme: darkTheme,
6+
});

.storybook/preview.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
import type { Preview } from "@storybook/vue3";
2-
import '~/src/components/assets/scss/all.scss';
3-
import { darkTheme, lightTheme } from './shopwareTheme';
2+
import "~/src/components/assets/scss/all.scss";
3+
import { darkTheme, lightTheme } from "./shopwareTheme";
44
import { setup } from "@storybook/vue3";
5-
import { createI18n } from 'vue-i18n'
6-
import DeviceHelperPlugin from './../src/plugin/device-helper.plugin';
5+
import { createI18n } from "vue-i18n";
6+
import DeviceHelperPlugin from "./../src/plugin/device-helper.plugin";
77

88
const i18n = createI18n({
99
// something vue-i18n options here ...
1010
globalInjection: true,
11-
locale: 'en',
12-
fallbackLocale: 'en',
11+
locale: "en",
12+
fallbackLocale: "en",
1313
messages: {
1414
en: {},
1515
de: {},
1616
},
1717
allowComposition: true,
18-
})
18+
});
1919

2020
setup((app) => {
21-
app.use(i18n)
21+
app.use(i18n);
2222
app.use(DeviceHelperPlugin);
23-
})
23+
});
2424

2525
const preview: Preview = {
2626
parameters: {
@@ -36,7 +36,7 @@ const preview: Preview = {
3636
darkMode: {
3737
dark: { ...darkTheme },
3838
light: { ...lightTheme },
39-
}
39+
},
4040
},
4141
};
4242

.storybook/shopwareTheme.js

Lines changed: 35 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
1-
import { create } from '@storybook/theming';
2-
import { color, typography, background } from '@storybook/theming'
1+
import { create } from "@storybook/theming";
2+
import { color, typography, background } from "@storybook/theming";
33

44
export const darkTheme = create({
5-
base: 'dark',
5+
base: "dark",
66

77
// Brand specifc stuff
8-
brandTitle: 'Shopware',
9-
brandUrl: 'https://docs.shopware.com',
10-
brandImage: 'https://shopware.github.io/meteor-component-library/shopware_docs_horizontal_white.svg',
11-
brandTarget: '_self',
8+
brandTitle: "Shopware",
9+
brandUrl: "https://docs.shopware.com",
10+
brandImage:
11+
"https://shopware.github.io/meteor-component-library/shopware_docs_horizontal_white.svg",
12+
brandTarget: "_self",
1213

1314
// Storybook-specific color palette
14-
colorPrimary: '#BABABA', // coral
15-
colorSecondary: '#5DBBFF', // ocean
15+
colorPrimary: "#BABABA", // coral
16+
colorSecondary: "#5DBBFF", // ocean
1617

1718
// UI
18-
appBg: '#2f2f2f',
19-
appContentBg: '#29333d',
20-
appBorderColor: 'rgba(255,255,255,.1)',
19+
appBg: "#2f2f2f",
20+
appContentBg: "#29333d",
21+
appBorderColor: "rgba(255,255,255,.1)",
2122
appBorderRadius: 4,
2223

2324
// Fonts
@@ -26,36 +27,37 @@ export const darkTheme = create({
2627

2728
// Text colors
2829
textColor: color.lightest,
29-
textInverseColor: '#29333d',
30-
textMutedColor: '#8599ad',
30+
textInverseColor: "#29333d",
31+
textMutedColor: "#8599ad",
3132

3233
// Toolbar default and active colors
33-
barTextColor: '#999999',
34-
barSelectedColor: '#5DBBFF',
35-
barBg: '#29333d',
34+
barTextColor: "#999999",
35+
barSelectedColor: "#5DBBFF",
36+
barBg: "#29333d",
3637

3738
// Form colors
38-
inputBg: '#3f3f3f',
39-
inputBorder: 'rgba(0,0,0,.3)',
39+
inputBg: "#3f3f3f",
40+
inputBorder: "rgba(0,0,0,.3)",
4041
inputTextColor: color.lightest,
4142
inputBorderRadius: 4,
4243
});
4344

4445
export const lightTheme = create({
45-
base: 'light',
46+
base: "light",
4647

4748
// Brand specifc stuff
48-
brandTitle: 'Shopware',
49-
brandUrl: 'https://docs.shopware.com',
50-
brandImage: 'https://shopware.github.io/meteor-component-library/shopware_docs_horizontal_dark.svg',
51-
brandTarget: '_self',
49+
brandTitle: "Shopware",
50+
brandUrl: "https://docs.shopware.com",
51+
brandImage:
52+
"https://shopware.github.io/meteor-component-library/shopware_docs_horizontal_dark.svg",
53+
brandTarget: "_self",
5254

5355
// Storybook-specific color palette
54-
colorPrimary: '#BABABA', // coral
55-
colorSecondary: '#5DBBFF', // ocean
56+
colorPrimary: "#BABABA", // coral
57+
colorSecondary: "#5DBBFF", // ocean
5658

5759
// UI
58-
appBg: '#f9fafb',
60+
appBg: "#f9fafb",
5961
appContentBg: color.lightest,
6062
appBorderColor: color.border,
6163
appBorderRadius: 4,
@@ -65,18 +67,18 @@ export const lightTheme = create({
6567
fontCode: typography.fonts.mono,
6668

6769
// Text colors
68-
textColor: '#29333d',
70+
textColor: "#29333d",
6971
textInverseColor: color.lightest,
70-
textMutedColor: '#52667a',
72+
textMutedColor: "#52667a",
7173

7274
// Toolbar default and active colors
73-
barTextColor: '#8599ad',
74-
barSelectedColor: '#5DBBFF',
75+
barTextColor: "#8599ad",
76+
barSelectedColor: "#5DBBFF",
7577
barBg: color.lightest,
7678

7779
// Form colors
7880
inputBg: color.lightest,
7981
inputBorder: color.border,
80-
inputTextColor: '#29333d',
82+
inputTextColor: "#29333d",
8183
inputBorderRadius: 4,
82-
});
84+
});

0 commit comments

Comments
 (0)