Skip to content

Commit eb88d45

Browse files
committed
feat: Implement RootState management page and API integration
- Added RootStatePage component for managing RootState entries. - Created RootState API client for CRUD operations. - Updated data contracts to remove unused CreateUserRequest and DailyAutoMarkupUser interfaces. - Introduced UpdateValueRequest interface for updating RootState values. - Enhanced error handling and user feedback with toast notifications. - Styled RootStatePage with SCSS for better UI presentation. - Updated Vite configuration to support SCSS preprocessor options.
1 parent 2f711bc commit eb88d45

Some content is hidden

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

46 files changed

+1207
-881
lines changed

api/swagger_api.json

Lines changed: 348 additions & 491 deletions
Large diffs are not rendered by default.

api/swagger_hubs.json

Lines changed: 157 additions & 64 deletions
Large diffs are not rendered by default.

src/Site/Pages/Layout/Header/Header.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ const Header: React.FC = () => {
8787
{ label: "Дашборд", path: "/dashboard" },
8888
{ label: "Просмотр серверов", path: "/main" },
8989
{ label: "Сервисы", path: "/services" },
90+
{ label: "RootState", path: "/root-state" },
9091
{ label: "Твич награды", path: "/twitch-rewards" },
9192
{ label: "Автосообщения", path: "/auto-messages" },
9293
];
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
.page {
2+
min-height: 100%;
3+
padding: 1.5rem;
4+
background: linear-gradient(
5+
180deg,
6+
var(--site-bg-secondary) 0%,
7+
var(--site-bg-primary) 100%
8+
);
9+
}
10+
11+
.header {
12+
display: flex;
13+
justify-content: space-between;
14+
align-items: center;
15+
margin-bottom: 1rem;
16+
}
17+
18+
.card {
19+
border: 1px solid var(--site-border-primary);
20+
background: var(--site-bg-card);
21+
box-shadow: var(--site-shadow-light);
22+
}
23+
24+
.tableWrap {
25+
overflow: auto;
26+
}
27+
28+
.actions {
29+
display: flex;
30+
gap: 0.5rem;
31+
align-items: center;
32+
}
33+
34+
.actionsRight {
35+
display: flex;
36+
justify-content: flex-end;
37+
gap: 0.5rem;
38+
}
39+
40+
.nameCell {
41+
font-weight: 600;
42+
}
43+
44+
.valueCell {
45+
max-width: 280px;
46+
white-space: nowrap;
47+
overflow: hidden;
48+
text-overflow: ellipsis;
49+
}

0 commit comments

Comments
 (0)