Skip to content

Commit

Permalink
feat: fix storybook, tests, HOC for theme provider
Browse files Browse the repository at this point in the history
  • Loading branch information
TomatoVan committed Apr 27, 2024
1 parent ee7f820 commit 60bf1b8
Show file tree
Hide file tree
Showing 13 changed files with 1,033 additions and 1,127 deletions.
13 changes: 7 additions & 6 deletions config/storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { addDecorator } from '@storybook/react';
import { StyleDecorator } from '../../src/shared/config/storybook/StyleDecorator/StyleDecorator';
import { ThemeDecorator } from '../../src/shared/config/storybook/ThemeDecorator/ThemeDecorator';
import { RouterDecorator } from '../../src/shared/config/storybook/RouterDecorator/RouterDecorator';
import { SuspenseDecorator } from '../../src/shared/config/storybook/SuspenseDecorator/SuspenseDecorator';
import { Theme } from '../../src/shared/const/theme';
import { StyleDecorator } from '@/shared/config/storybook/StyleDecorator/StyleDecorator';
import { ThemeDecorator } from '@/shared/config/storybook/ThemeDecorator/ThemeDecorator';
import { RouterDecorator } from '@/shared/config/storybook/RouterDecorator/RouterDecorator';
import { SuspenseDecorator } from '@/shared/config/storybook/SuspenseDecorator/SuspenseDecorator';
import { Theme } from '@/shared/const/theme';
import { FeaturesFlagsDecorator } from '@/shared/config/storybook/FeaturesFlagsDecorator/FeaturesFlagsDecorator';

export const parameters = {
actions: { argTypesRegex: '^on[A-Z].*' },
Expand All @@ -22,10 +23,10 @@ export const parameters = {
{ name: 'orange', class: Theme.ORANGE, color: '#ffb005' },
],
},

};

addDecorator(StyleDecorator);
addDecorator(ThemeDecorator(Theme.LIGHT));
addDecorator(RouterDecorator);
addDecorator(SuspenseDecorator);
addDecorator(FeaturesFlagsDecorator({}));
244 changes: 122 additions & 122 deletions extractedTranslations/en/translation.json
Original file line number Diff line number Diff line change
@@ -1,124 +1,124 @@
{
"": "",
"123": "123",
"About site": "",
"Admin panel": "",
"All": "",
"Article ratings coming soon!": "",
"Articles": "",
"Articles app": "",
"Articles not found": "",
"Ascending": "",
"Back to list": "",
"Cancel": "",
"Choose ": "",
"Choose country": "",
"Choose currency": "",
"Close": "",
"Comments": "",
"Comments is loading": "",
"Create new article": "",
"Creation date": "",
"Descending": "",
"Design options": "",
"Economics": "",
"Edit": "",
"Enter ": "",
"Enter comment text": "",
"Enter cooment text": "",
"Error while loading articles": "",
"Error with getting article data": "",
"Error with getting profile data": "",
"Exit": "",
"Here you can search and view articles on various topics": "",
"IT": "",
"Incorrect age": "",
"Incorrect country": "",
"Incorrect user data": "",
"Leave your feedback on the article, it will help improve the quality": "",
"Main page": "",
"Main_page": "",
"Name": "",
"New": "",
"No data": "",
"Old": "",
"PROFILE PAGE": "",
"Profile": "",
"Rate the article": "",
"Read more": {
"": {
"": {
"": ""
}
}
},
"Recommend": "",
"Save": "",
"Science": "",
"Search": "",
"Send": "",
"Server error": "",
"Sort by": "",
"Sorting by": "",
"Thanks for review!": "",
"Try to reload page": "",
"User settings": "",
"Views": "",
"Welcome to the articles page!": "",
"You don`t have access to this page!": "",
"Your name": "",
"Your review": "",
"article_not_found": "",
"articles": "",
"articles page": "",
"articles_details": "",
"articles_details page": "",
"articles_detals": "",
"ascending": "",
"auth_form": "",
"auth_password": "",
"auth_username": "",
"by": "",
"comments": "",
"creation date": "",
"decrement": "",
"descending": "",
"exit": "",
"increment": "",
"login": "",
"login_error": "",
"name": "",
"no articles found": "",
"no comments": "",
"no profile found": "",
"read more": "",
"throw error": "throw error",
"views": "",
"{{count}} views": "",
"{{count}} views_plural": "",
"{{count}} просмотров": "",
"{{count}} просмотров_plural": "",
"Айти": "",
"Ваш отзыв": "",
"Все статьи": "",
"Главная страница": "",
"Закрыть": "",
"Наука": "",
"Обновить страницу": "",
"Отправить": "",
"Оценка статей скоро появится!": "",
"Поиск": "",
"Попробуйте обновить страницу": "",
"Произошла непредвиденная ошибка": "",
"Произошла ошибка при загрузке профиля": "",
"Редактировать": "",
"Сортировать ПО": "",
"Статьи не найдены": "",
"Экономика": "",
"возрастанию": "",
"дате создания": "",
"названию": "",
"по": "",
"просмотрам": "",
"убыванию": ""
"": "",
"123": "123",
"About site": "",
"Admin panel": "",
"All": "",
"Article ratings coming soon!": "",
"Articles": "",
"Articles app": "",
"Articles not found": "",
"Ascending": "",
"Back to list": "",
"Cancel": "",
"Choose ": "",
"Choose country": "",
"Choose currency": "",
"Close": "",
"Comments": "",
"Comments is loading": "",
"Create new article": "",
"Creation date": "",
"Descending": "",
"Design options": "",
"Economics": "",
"Edit": "",
"Enter ": "",
"Enter comment text": "",
"Enter cooment text": "",
"Error while loading articles": "",
"Error with getting article data": "",
"Error with getting profile data": "",
"Exit": "",
"Here you can search and view articles on various topics": "",
"IT": "",
"Incorrect age": "",
"Incorrect country": "",
"Incorrect user data": "",
"Leave your feedback on the article, it will help improve the quality": "",
"Main page": "",
"Main_page": "",
"Name": "",
"New": "",
"No data": "",
"Old": "",
"PROFILE PAGE": "",
"Profile": "",
"Rate the article": "",
"Read more": {
"": {
"": {
"": ""
}
}
},
"Recommend": "",
"Save": "",
"Science": "",
"Search": "",
"Send": "",
"Server error": "",
"Sort by": "",
"Sorting by": "",
"Thanks for review!": "",
"Try to reload page": "",
"User settings": "",
"Views": "",
"Welcome to the articles page!": "",
"You don`t have access to this page!": "",
"Your name": "",
"Your review": "",
"article_not_found": "",
"articles": "",
"articles page": "",
"articles_details": "",
"articles_details page": "",
"articles_detals": "",
"ascending": "",
"auth_form": "",
"auth_password": "",
"auth_username": "",
"by": "",
"comments": "",
"creation date": "",
"decrement": "",
"descending": "",
"exit": "",
"increment": "",
"login": "",
"login_error": "",
"name": "",
"no articles found": "",
"no comments": "",
"no profile found": "",
"read more": "",
"throw error": "throw error",
"views": "",
"{{count}} views": "",
"{{count}} views_plural": "",
"{{count}} просмотров": "",
"{{count}} просмотров_plural": "",
"Айти": "",
"Ваш отзыв": "",
"Все статьи": "",
"Главная страница": "",
"Закрыть": "",
"Наука": "",
"Обновить страницу": "",
"Отправить": "",
"Оценка статей скоро появится!": "",
"Поиск": "",
"Попробуйте обновить страницу": "",
"Произошла непредвиденная ошибка": "",
"Произошла ошибка при загрузке профиля": "",
"Редактировать": "",
"Сортировать ПО": "",
"Статьи не найдены": "",
"Экономика": "",
"возрастанию": "",
"дате создания": "",
"названию": "",
"по": "",
"просмотрам": "",
"убыванию": ""
}
Loading

0 comments on commit 60bf1b8

Please sign in to comment.