Skip to content

Commit c512a17

Browse files
committed
fix: remove helper decorator
1 parent b8d8125 commit c512a17

File tree

10 files changed

+48
-285
lines changed

10 files changed

+48
-285
lines changed

.storybook/decorators/withStoryArgsSave.tsx

Lines changed: 0 additions & 16 deletions
This file was deleted.

.storybook/preview.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import {PageConstructorProvider} from '../src/containers/PageConstructor/Provide
1010
import {withTheme} from './decorators/withTheme';
1111
import {withMobile} from './decorators/withMobile';
1212
import {withLang} from './decorators/withLang';
13-
import {withStoryArgsSave} from './decorators/withStoryArgsSave';
1413

1514
import {DocsWithReadme} from '../src/demo/DocsWithReadme';
1615

@@ -61,7 +60,6 @@ export const decorators = [
6160
withMobile,
6261
withContextProvider,
6362
withPageConstructorProvider,
64-
withStoryArgsSave,
6563
];
6664

6765
export const parameters = {
@@ -107,7 +105,7 @@ export const globalTypes = {
107105
},
108106
lang: {
109107
name: 'Language',
110-
defaultValue: 'ru',
108+
defaultValue: 'en',
111109
toolbar: {
112110
icon: 'globe',
113111
items: [

src/components/BalancedMasonry/__stories__/BalancedMasonry.stories.tsx

Lines changed: 13 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import CardBase from '../../CardBase/CardBase';
88

99
import './BalancedMansonry.stories.scss';
1010

11+
import data from './data.json';
12+
1113
export default {
1214
component: BalancedMasonry,
1315
title: `${COMPONENTS}/BalancedMasonry`,
@@ -22,83 +24,40 @@ Default.args = {
2224
columnClassName: 'balanced-masonry-stories__column-class-name',
2325
children: [
2426
<CardBase key="1" className="balanced-masonry-stories__card-base">
25-
<CardBase.Content>
26-
Вы всегда можете предложить новую возможность или улучшение в разделе Идеи.
27-
</CardBase.Content>
27+
<CardBase.Content>{data.default.content.children[0]}</CardBase.Content>
2828
</CardBase>,
2929
<CardBase key="2" className="balanced-masonry-stories__card-base">
30-
<CardBase.Content>
31-
Создавайте кластеры Managed Services for Kubernetes®, контролируйте их состояние и
32-
смотрите логи — всё в вашем мобильном телефоне.
33-
</CardBase.Content>
30+
<CardBase.Content>{data.default.content.children[1]}</CardBase.Content>
3431
</CardBase>,
3532
<CardBase key="3" className="balanced-masonry-stories__card-base">
36-
<CardBase.Content>
37-
Прямо из приложения вы можете получить ответ на любой вопрос касательно работы
38-
сервисов Yandex Cloud, написав сообщение и приложив скриншоты возникшей проблемы.
39-
</CardBase.Content>
33+
<CardBase.Content>{data.default.content.children[2]}</CardBase.Content>
4034
</CardBase>,
4135
<CardBase key="4" className="balanced-masonry-stories__card-base">
42-
<CardBase.Content>
43-
Предлагайте возможности, которых вам не хватает для полноценного управления вашим
44-
облаком прямо из приложения, и мы добавим их в новых релизах.
45-
</CardBase.Content>
36+
<CardBase.Content>{data.default.content.children[3]}</CardBase.Content>
4637
</CardBase>,
4738
<CardBase key="5" className="balanced-masonry-stories__card-base">
48-
<CardBase.Content>
49-
Лента новостей платформы позволит вам узнать о запуске новых сервисов и новых
50-
технологиях, а также зарегистрироваться на ближайшие мероприятия.
51-
</CardBase.Content>
39+
<CardBase.Content>{data.default.content.children[4]}</CardBase.Content>
5240
</CardBase>,
5341
<CardBase key="6" className="balanced-masonry-stories__card-base">
5442
<CardBase.Content>
55-
В приложении реализован доступ к данным в бакетах объектного хранения Object
56-
Storage, а также возможность мониторинга состояния сервиса с помощью графиков на
57-
дашбордах. В приложении реализован доступ к данным в бакетах объектного хранения
58-
Object Storage, а также возможность мониторинга состояния сервиса с помощью графиков
43+
{data.default.content.children[5]}
5944
на дашбордах.
6045
</CardBase.Content>
6146
</CardBase>,
6247
<CardBase key="7" className="balanced-masonry-stories__card-base">
63-
<CardBase.Content>
64-
На страницах ресурсов доступна полная информация о их работе, графики нагрузки из
65-
системы мониторинга и сведения о производимых операциях.
66-
</CardBase.Content>
48+
<CardBase.Content>{data.default.content.children[6]}</CardBase.Content>
6749
</CardBase>,
6850
<CardBase key="8" className="balanced-masonry-stories__card-base">
69-
<CardBase.Content>
70-
Лента новостей платформы позволит вам узнать о запуске новых сервисов и новых
71-
технологиях, а также зарегистрироваться на ближайшие мероприятия. Лента новостей
72-
платформы позволит вам узнать о запуске новых сервисов и новых технологиях, а также
73-
зарегистрироваться на ближайшие мероприятия.Лента новостей платформы позволит вам
74-
узнать о запуске новых сервисов и новых технологиях, а также зарегистрироваться на
75-
ближайшие мероприятия.Лента новостей платформы позволит вам узнать о запуске новых
76-
сервисов и новых технологиях, а также зарегистрироваться на ближайшие
77-
мероприятия.Лента новостей платформы позволит вам узнать о запуске новых сервисов и
78-
новых технологиях, а также зарегистрироваться на ближайшие мероприятия.Лента
79-
новостей платформы позволит вам узнать о запуске новых сервисов и новых технологиях,
80-
а также зарегистрироваться на ближайшие мероприятия.
81-
</CardBase.Content>
51+
<CardBase.Content>{data.default.content.children[7]}</CardBase.Content>
8252
</CardBase>,
8353
<CardBase key="9" className="balanced-masonry-stories__card-base">
84-
<CardBase.Content>
85-
В приложении реализован доступ к данным в бакетах объектного хранения Object
86-
Storage, а также возможность мониторинга состояния сервиса с помощью графиков на
87-
дашбордах.
88-
</CardBase.Content>
54+
<CardBase.Content>{data.default.content.children[8]}</CardBase.Content>
8955
</CardBase>,
9056
<CardBase key="10" className="balanced-masonry-stories__card-base">
91-
<CardBase.Content>
92-
Вы можете настроить аутентификацию в Yandex Cloud через свой сервер с Single
93-
Sign‑On. Благодаря поддержке идентификации федераций удостоверений, ваши
94-
пользователи получат доступ в приложение по корпоративному аккаунту.
95-
</CardBase.Content>
57+
<CardBase.Content>{data.default.content.children[9]}</CardBase.Content>
9658
</CardBase>,
9759
<CardBase key="11" className="balanced-masonry-stories__card-base">
98-
<CardBase.Content>
99-
С помощью приложения вы можете контролировать остаток на счёте, пополнять баланс и
100-
изучать детализацию расходов.
101-
</CardBase.Content>
60+
<CardBase.Content>{data.default.content.children[10]}</CardBase.Content>
10261
</CardBase>,
10362
],
10463
breakpointCols: {
Lines changed: 12 additions & 206 deletions
Original file line numberDiff line numberDiff line change
@@ -1,213 +1,19 @@
11
{
22
"default": {
33
"content": {
4-
"className": "balanced-masonry-stories__class-name",
5-
"columnClassName": "balanced-masonry-stories__column-class-name",
64
"children": [
7-
{
8-
"key": "1",
9-
"ref": null,
10-
"props": {
11-
"className": "balanced-masonry-stories__card-base",
12-
"children": {
13-
"key": null,
14-
"ref": null,
15-
"props": {
16-
"children": "You can always suggest a new feature or improvement under Ideas."
17-
},
18-
"_owner": null,
19-
"_store": {}
20-
}
21-
},
22-
"_owner": null,
23-
"_store": {}
24-
},
25-
{
26-
"key": "2",
27-
"ref": null,
28-
"props": {
29-
"className": "balanced-masonry-stories__card-base",
30-
"children": {
31-
"key": null,
32-
"ref": null,
33-
"props": {
34-
"children": "Create Managed Services for Kubernetes® clusters, monitor their status, and view logs — all that from your mobile."
35-
},
36-
"_owner": null,
37-
"_store": {}
38-
}
39-
},
40-
"_owner": null,
41-
"_store": {}
42-
},
43-
{
44-
"key": "3",
45-
"ref": null,
46-
"props": {
47-
"className": "balanced-masonry-stories__card-base",
48-
"children": {
49-
"key": null,
50-
"ref": null,
51-
"props": {
52-
"children": "Get answers to your questions about Yandex Cloud services by writing a message and attaching screenshots of the problem right in the app."
53-
},
54-
"_owner": null,
55-
"_store": {}
56-
}
57-
},
58-
"_owner": null,
59-
"_store": {}
60-
},
61-
{
62-
"key": "4",
63-
"ref": null,
64-
"props": {
65-
"className": "balanced-masonry-stories__card-base",
66-
"children": {
67-
"key": null,
68-
"ref": null,
69-
"props": {
70-
"children": "Suggest new features that you'd like to have to fully manage your cloud right in the app and we'll add them in future releases."
71-
},
72-
"_owner": null,
73-
"_store": {}
74-
}
75-
},
76-
"_owner": null,
77-
"_store": {}
78-
},
79-
{
80-
"key": "5",
81-
"ref": null,
82-
"props": {
83-
"className": "balanced-masonry-stories__card-base",
84-
"children": {
85-
"key": null,
86-
"ref": null,
87-
"props": {
88-
"children": "The news feed will help you stay up to date on new service launches and new technology and sign up for upcoming events."
89-
},
90-
"_owner": null,
91-
"_store": {}
92-
}
93-
},
94-
"_owner": null,
95-
"_store": {}
96-
},
97-
{
98-
"key": "6",
99-
"ref": null,
100-
"props": {
101-
"className": "balanced-masonry-stories__card-base",
102-
"children": {
103-
"key": null,
104-
"ref": null,
105-
"props": {
106-
"children": "Use the app to access your data in Object Storage buckets and monitor the service using charts in dashboards. Use the app to access your data in Object Storage buckets and monitor the service using charts in dashboards."
107-
},
108-
"_owner": null,
109-
"_store": {}
110-
}
111-
},
112-
"_owner": null,
113-
"_store": {}
114-
},
115-
{
116-
"key": "7",
117-
"ref": null,
118-
"props": {
119-
"className": "balanced-masonry-stories__card-base",
120-
"children": {
121-
"key": null,
122-
"ref": null,
123-
"props": {
124-
"children": "View extensive information about resources and their operations, charts with workload data from the monitoring system, and information about operations on resource pages."
125-
},
126-
"_owner": null,
127-
"_store": {}
128-
}
129-
},
130-
"_owner": null,
131-
"_store": {}
132-
},
133-
{
134-
"key": "8",
135-
"ref": null,
136-
"props": {
137-
"className": "balanced-masonry-stories__card-base",
138-
"children": {
139-
"key": null,
140-
"ref": null,
141-
"props": {
142-
"children": "The news feed will help you stay up to date on new service launches and new technology and sign up for upcoming events. The news feed will help you stay up to date on new service launches and new technology and sign up for upcoming events.The news feed will help you stay up to date on new service launches and new technology and sign up for upcoming events.The news feed will help you stay up to date on new service launches and new technology and sign up for upcoming events.The news feed will help you stay up to date on new service launches and new technology and sign up for upcoming events.The news feed will help you stay up to date on new service launches and new technology and sign up for upcoming events."
143-
},
144-
"_owner": null,
145-
"_store": {}
146-
}
147-
},
148-
"_owner": null,
149-
"_store": {}
150-
},
151-
{
152-
"key": "9",
153-
"ref": null,
154-
"props": {
155-
"className": "balanced-masonry-stories__card-base",
156-
"children": {
157-
"key": null,
158-
"ref": null,
159-
"props": {
160-
"children": "Use the app to access your data in Object Storage buckets and monitor the service using charts in dashboards."
161-
},
162-
"_owner": null,
163-
"_store": {}
164-
}
165-
},
166-
"_owner": null,
167-
"_store": {}
168-
},
169-
{
170-
"key": "10",
171-
"ref": null,
172-
"props": {
173-
"className": "balanced-masonry-stories__card-base",
174-
"children": {
175-
"key": null,
176-
"ref": null,
177-
"props": {
178-
"children": "Configure authentication in Yandex Cloud via your server with Single Sign-On. Identity federation support enables your users to access the app from a corporate account."
179-
},
180-
"_owner": null,
181-
"_store": {}
182-
}
183-
},
184-
"_owner": null,
185-
"_store": {}
186-
},
187-
{
188-
"key": "11",
189-
"ref": null,
190-
"props": {
191-
"className": "balanced-masonry-stories__card-base",
192-
"children": {
193-
"key": null,
194-
"ref": null,
195-
"props": {
196-
"children": "Use the app to monitor your account balance, add funds, and view a breakdown of your spending."
197-
},
198-
"_owner": null,
199-
"_store": {}
200-
}
201-
},
202-
"_owner": null,
203-
"_store": {}
204-
}
205-
],
206-
"breakpointCols": {
207-
"577": 1,
208-
"769": 2,
209-
"1081": 3
210-
}
5+
"You can always suggest a new feature or improvement under Ideas.",
6+
"Create Managed Services for Kubernetes® clusters, monitor their status, and view logs — all that from your mobile.",
7+
"Get answers to your questions about Yandex Cloud services by writing a message and attaching screenshots of the problem right in the app.",
8+
"Suggest new features that you'd like to have to fully manage your cloud right in the app and we'll add them in future releases.",
9+
"The news feed will help you stay up to date on new service launches and new technology and sign up for upcoming events.",
10+
"Use the app to access your data in Object Storage buckets and monitor the service using charts in dashboards. Use the app to access your data in Object Storage buckets and monitor the service using charts in dashboards.",
11+
"View extensive information about resources and their operations, charts with workload data from the monitoring system, and information about operations on resource pages.",
12+
"The news feed will help you stay up to date on new service launches and new technology and sign up for upcoming events. The news feed will help you stay up to date on new service launches and new technology and sign up for upcoming events.The news feed will help you stay up to date on new service launches and new technology and sign up for upcoming events.The news feed will help you stay up to date on new service launches and new technology and sign up for upcoming events.The news feed will help you stay up to date on new service launches and new technology and sign up for upcoming events.The news feed will help you stay up to date on new service launches and new technology and sign up for upcoming events.",
13+
"Use the app to access your data in Object Storage buckets and monitor the service using charts in dashboards.",
14+
"Configure authentication in Yandex Cloud via your server with Single Sign-On. Identity federation support enables your users to access the app from a corporate account.",
15+
"Use the app to monitor your account balance, add funds, and view a breakdown of your spending."
16+
]
21117
}
21218
}
21319
}

src/components/Foldable/__stories__/Foldable.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default {
1111

1212
const DefaultTemplate: Story<FoldableProps> = (args) => (
1313
<Foldable {...args}>
14-
<div>Это children</div>
14+
<div>Children</div>
1515
</Foldable>
1616
);
1717

src/components/FullWidthBackground/__stories__/FullWidthBackground.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default {
1313

1414
const DefaultTemplate: Story<FullWidthBackgroundProps> = (args) => (
1515
<div style={{height: '100px'}}>
16-
<FullWidthBackground {...args}>Это children</FullWidthBackground>
16+
<FullWidthBackground {...args}>Children</FullWidthBackground>
1717
</div>
1818
);
1919

0 commit comments

Comments
 (0)