Skip to content

Commit 1a0692a

Browse files
committed
Update Storybook and component configurations; enhance AFKScreen and HighliteMessage components
- Upgraded Storybook dependencies to version 9.1.1 across multiple packages. - Added asset handling for GIFs in Storybook configuration. - Enhanced AFKScreen component by removing unused state and improving playlist handling. - Updated HighliteMessage component to render messages consistently and added new demo stories for testing. - Improved documentation for AFKScreen and HighliteMessage components with additional details on usage and configuration.
1 parent 5f91968 commit 1a0692a

Some content is hidden

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

43 files changed

+921
-136
lines changed

.storybook/main.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const config: StorybookConfig = {
1717
staticDirs: [
1818
"../public",
1919
"../src/components/OBS_Components/FumoFriday/FumosVideos",
20+
"../src/assets/faces",
2021
],
2122
viteFinal: async config => {
2223
// Настройка для GitHub Pages
@@ -27,9 +28,16 @@ const config: StorybookConfig = {
2728
// Настройки для обработки видео файлов
2829
config.assetsInclude = config.assetsInclude || [];
2930
if (Array.isArray(config.assetsInclude)) {
30-
config.assetsInclude.push("**/*.webm", "**/*.mp4");
31+
config.assetsInclude.push("**/*.webm", "**/*.mp4", "**/*.gif");
3132
}
3233

34+
// Настройки для обработки ассетов
35+
config.define = {
36+
...config.define,
37+
'import.meta.env.PROD': false,
38+
'import.meta.env.DEV': true,
39+
};
40+
3341
// Добавляем алиасы для корректной работы с импортами
3442
if (config.resolve) {
3543
config.resolve.alias = {

.yarn/install-state.gz

-5.97 KB
Binary file not shown.

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,13 @@
8181
"@eslint/eslintrc": "^3.2.0",
8282
"@eslint/js": "^9.15.0",
8383
"@fortawesome/fontawesome-svg-core": "^6.7.2",
84-
"@storybook/addon-a11y": "9.0.15",
85-
"@storybook/addon-docs": "9.0.15",
86-
"@storybook/addon-links": "^9.0.15",
87-
"@storybook/addon-onboarding": "9.0.15",
88-
"@storybook/addon-vitest": "9.0.15",
89-
"@storybook/react": "^9.0.15",
90-
"@storybook/react-vite": "^9.0.15",
84+
"@storybook/addon-a11y": "^9.1.1",
85+
"@storybook/addon-docs": "^9.1.1",
86+
"@storybook/addon-links": "^9.1.1",
87+
"@storybook/addon-onboarding": "^9.1.1",
88+
"@storybook/addon-vitest": "^9.1.1",
89+
"@storybook/react": "^9.1.1",
90+
"@storybook/react-vite": "^9.1.1",
9191
"@storybook/testing-library": "^0.2.2",
9292
"@types/bootstrap": "^5",
9393
"@types/node": "^22.13.4",
@@ -108,7 +108,7 @@
108108
"eslint-plugin-react-hooks": "^5.0.0",
109109
"eslint-plugin-react-refresh": "^0.4.14",
110110
"eslint-plugin-simple-import-sort": "^12.1.1",
111-
"eslint-plugin-storybook": "9.0.15",
111+
"eslint-plugin-storybook": "^9.1.1",
112112
"globals": "^15.12.0",
113113
"husky": "^9.1.7",
114114
"lint-staged": "^16.1.4",
@@ -118,7 +118,7 @@
118118
"repomix": "^0.3.9",
119119
"sass": "1.77.6",
120120
"serve": "^14.2.4",
121-
"storybook": "9.0.15",
121+
"storybook": "^9.1.1",
122122
"stylelint": "^16.11.0",
123123
"typescript": "~5.7.2",
124124
"typescript-eslint": "^8.15.0",

src/assets/faces/1233233.gif.mp4

147 KB
Binary file not shown.
6.86 MB
Loading

src/assets/faces/animation.gif.mp4

32.7 KB
Binary file not shown.
1.1 MB
Loading
25.5 KB
Loading

src/assets/faces/clash-royale.gif

75.7 KB
Loading
5.61 MB
Loading

0 commit comments

Comments
 (0)