@qoretechnologies/reqraft 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/form/fields/Field.d.ts.map +1 -0
- package/dist/components/form/fields/Field.js.map +1 -0
- package/dist/components/form/fields/string/String.d.ts.map +1 -0
- package/dist/components/form/fields/string/String.js.map +1 -0
- package/dist/components/menu/Menu.d.ts.map +1 -0
- package/dist/components/menu/Menu.js.map +1 -0
- package/dist/contexts/FetchContext.d.ts.map +1 -0
- package/dist/contexts/FetchContext.js.map +1 -0
- package/dist/contexts/ReqraftContext.d.ts.map +1 -0
- package/dist/contexts/ReqraftContext.js.map +1 -0
- package/dist/contexts/StorageContext.d.ts.map +1 -0
- package/dist/contexts/StorageContext.js.map +1 -0
- package/dist/hooks/useFetch/useFetch.d.ts.map +1 -0
- package/dist/hooks/useFetch/useFetch.js.map +1 -0
- package/dist/hooks/useReqraftProperty.d.ts.map +1 -0
- package/dist/hooks/useReqraftProperty.js.map +1 -0
- package/dist/hooks/useStorage/useStorage.d.ts.map +1 -0
- package/dist/hooks/useStorage/useStorage.js.map +1 -0
- package/dist/hooks/useValidation.d.ts.map +1 -0
- package/dist/hooks/useValidation.js.map +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js.map +1 -0
- package/dist/providers/FetchProvider.d.ts.map +1 -0
- package/dist/providers/FetchProvider.js.map +1 -0
- package/dist/providers/ReqraftProvider.d.ts.map +1 -0
- package/dist/providers/ReqraftProvider.js.map +1 -0
- package/dist/providers/StorageProvider.d.ts.map +1 -0
- package/dist/providers/StorageProvider.js.map +1 -0
- package/dist/types/Form.d.ts.map +1 -0
- package/dist/{src/types → types}/Form.js.map +1 -1
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js.map +1 -0
- package/dist/utils/fetch.d.ts.map +1 -0
- package/dist/utils/fetch.js.map +1 -0
- package/package.json +1 -1
- package/.eslintrc.js +0 -40
- package/.github/ISSUE_TEMPLATE/bug_report.md +0 -38
- package/.github/ISSUE_TEMPLATE/feature_request.md +0 -20
- package/.github/ISSUE_TEMPLATE/new-component.md +0 -20
- package/.github/ISSUE_TEMPLATE/visual-bug-report.md +0 -38
- package/.github/workflows/beta_release.yml +0 -108
- package/.github/workflows/tests.yml +0 -120
- package/.prettierrc +0 -7
- package/build-storybook.log +0 -28
- package/dist/__tests__/ mock.d.ts +0 -23
- package/dist/__tests__/ mock.d.ts.map +0 -1
- package/dist/__tests__/ mock.js +0 -44
- package/dist/__tests__/ mock.js.map +0 -1
- package/dist/__tests__/utils.d.ts +0 -3
- package/dist/__tests__/utils.d.ts.map +0 -1
- package/dist/__tests__/utils.js +0 -60
- package/dist/__tests__/utils.js.map +0 -1
- package/dist/mock/interfaceCategories.json +0 -155
- package/dist/mock/menu.d.ts +0 -70
- package/dist/mock/menu.d.ts.map +0 -1
- package/dist/mock/menu.js +0 -301
- package/dist/mock/menu.js.map +0 -1
- package/dist/src/components/form/fields/Field.d.ts.map +0 -1
- package/dist/src/components/form/fields/Field.js.map +0 -1
- package/dist/src/components/form/fields/string/String.d.ts.map +0 -1
- package/dist/src/components/form/fields/string/String.js.map +0 -1
- package/dist/src/components/form/fields/string/String.stories.d.ts +0 -10
- package/dist/src/components/form/fields/string/String.stories.d.ts.map +0 -1
- package/dist/src/components/form/fields/string/String.stories.js +0 -21
- package/dist/src/components/form/fields/string/String.stories.js.map +0 -1
- package/dist/src/components/menu/Menu.d.ts.map +0 -1
- package/dist/src/components/menu/Menu.js.map +0 -1
- package/dist/src/components/menu/Menu.stories.d.ts +0 -12
- package/dist/src/components/menu/Menu.stories.d.ts.map +0 -1
- package/dist/src/components/menu/Menu.stories.js +0 -159
- package/dist/src/components/menu/Menu.stories.js.map +0 -1
- package/dist/src/contexts/FetchContext.d.ts.map +0 -1
- package/dist/src/contexts/FetchContext.js.map +0 -1
- package/dist/src/contexts/ReqraftContext.d.ts.map +0 -1
- package/dist/src/contexts/ReqraftContext.js.map +0 -1
- package/dist/src/contexts/StorageContext.d.ts.map +0 -1
- package/dist/src/contexts/StorageContext.js.map +0 -1
- package/dist/src/hooks/useFetch/useFetch.d.ts.map +0 -1
- package/dist/src/hooks/useFetch/useFetch.js.map +0 -1
- package/dist/src/hooks/useFetch/useFetch.stories.d.ts +0 -9
- package/dist/src/hooks/useFetch/useFetch.stories.d.ts.map +0 -1
- package/dist/src/hooks/useFetch/useFetch.stories.js +0 -177
- package/dist/src/hooks/useFetch/useFetch.stories.js.map +0 -1
- package/dist/src/hooks/useReqraftProperty.d.ts.map +0 -1
- package/dist/src/hooks/useReqraftProperty.js.map +0 -1
- package/dist/src/hooks/useStorage/useStorage.d.ts.map +0 -1
- package/dist/src/hooks/useStorage/useStorage.js.map +0 -1
- package/dist/src/hooks/useStorage/useStorage.stories.d.ts +0 -9
- package/dist/src/hooks/useStorage/useStorage.stories.d.ts.map +0 -1
- package/dist/src/hooks/useStorage/useStorage.stories.js +0 -162
- package/dist/src/hooks/useStorage/useStorage.stories.js.map +0 -1
- package/dist/src/hooks/useValidation.d.ts.map +0 -1
- package/dist/src/hooks/useValidation.js.map +0 -1
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/index.js.map +0 -1
- package/dist/src/providers/FetchProvider.d.ts.map +0 -1
- package/dist/src/providers/FetchProvider.js.map +0 -1
- package/dist/src/providers/ReqraftProvider.d.ts.map +0 -1
- package/dist/src/providers/ReqraftProvider.js.map +0 -1
- package/dist/src/providers/StorageProvider.d.ts.map +0 -1
- package/dist/src/providers/StorageProvider.js.map +0 -1
- package/dist/src/types/Form.d.ts.map +0 -1
- package/dist/src/types.d.ts.map +0 -1
- package/dist/src/types.js.map +0 -1
- package/dist/src/utils/fetch.d.ts.map +0 -1
- package/dist/src/utils/fetch.js.map +0 -1
- package/mock/interfaceCategories.json +0 -155
- package/mock/menu.ts +0 -301
- package/public/logo-dark.png +0 -0
- package/public/logo.png +0 -0
- package/public/q-symbol-small.png +0 -0
- package/public/q-symbol.png +0 -0
- package/public/qoreLogo-dark.png +0 -0
- package/public/qoreLogo.png +0 -0
- package/src/icons.json +0 -2295
- package/tests.json +0 -1
- package/tsconfig.prod.json +0 -26
- /package/dist/{src/components → components}/form/fields/Field.d.ts +0 -0
- /package/dist/{src/components → components}/form/fields/Field.js +0 -0
- /package/dist/{src/components → components}/form/fields/string/String.d.ts +0 -0
- /package/dist/{src/components → components}/form/fields/string/String.js +0 -0
- /package/dist/{src/components → components}/menu/Menu.d.ts +0 -0
- /package/dist/{src/components → components}/menu/Menu.js +0 -0
- /package/dist/{src/contexts → contexts}/FetchContext.d.ts +0 -0
- /package/dist/{src/contexts → contexts}/FetchContext.js +0 -0
- /package/dist/{src/contexts → contexts}/ReqraftContext.d.ts +0 -0
- /package/dist/{src/contexts → contexts}/ReqraftContext.js +0 -0
- /package/dist/{src/contexts → contexts}/StorageContext.d.ts +0 -0
- /package/dist/{src/contexts → contexts}/StorageContext.js +0 -0
- /package/dist/{src/hooks → hooks}/useFetch/useFetch.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/useFetch/useFetch.js +0 -0
- /package/dist/{src/hooks → hooks}/useReqraftProperty.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/useReqraftProperty.js +0 -0
- /package/dist/{src/hooks → hooks}/useStorage/useStorage.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/useStorage/useStorage.js +0 -0
- /package/dist/{src/hooks → hooks}/useValidation.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/useValidation.js +0 -0
- /package/dist/{src/index.d.ts → index.d.ts} +0 -0
- /package/dist/{src/index.js → index.js} +0 -0
- /package/dist/{src/providers → providers}/FetchProvider.d.ts +0 -0
- /package/dist/{src/providers → providers}/FetchProvider.js +0 -0
- /package/dist/{src/providers → providers}/ReqraftProvider.d.ts +0 -0
- /package/dist/{src/providers → providers}/ReqraftProvider.js +0 -0
- /package/dist/{src/providers → providers}/StorageProvider.d.ts +0 -0
- /package/dist/{src/providers → providers}/StorageProvider.js +0 -0
- /package/dist/{src/types → types}/Form.d.ts +0 -0
- /package/dist/{src/types → types}/Form.js +0 -0
- /package/dist/{src/types.d.ts → types.d.ts} +0 -0
- /package/dist/{src/types.js → types.js} +0 -0
- /package/dist/{src/utils → utils}/fetch.d.ts +0 -0
- /package/dist/{src/utils → utils}/fetch.js +0 -0
package/mock/menu.ts
DELETED
|
@@ -1,301 +0,0 @@
|
|
|
1
|
-
import { IReqoreIconName } from '@qoretechnologies/reqore/dist/types/icons';
|
|
2
|
-
import { map } from 'lodash';
|
|
3
|
-
import { TReqraftMenuItem } from '../src';
|
|
4
|
-
import interfaces from './interfaceCategories.json';
|
|
5
|
-
|
|
6
|
-
export const interfaceIcons: Record<string, IReqoreIconName> = {
|
|
7
|
-
service: 'ServerLine',
|
|
8
|
-
step: 'StickyNoteLine',
|
|
9
|
-
'mapper-code': 'FunctionLine',
|
|
10
|
-
errors: 'ErrorWarningLine',
|
|
11
|
-
workflow: 'GitBranchLine',
|
|
12
|
-
job: 'CalendarLine',
|
|
13
|
-
mapper: 'MindMap',
|
|
14
|
-
group: 'GridFill',
|
|
15
|
-
event: 'GitCommitLine',
|
|
16
|
-
'sync-event': 'GitCommitLine',
|
|
17
|
-
queue: 'StackLine',
|
|
18
|
-
connection: 'Plug2Line',
|
|
19
|
-
fsm: 'DashboardLine',
|
|
20
|
-
pipeline: 'NodeTree',
|
|
21
|
-
'value-map': 'BringToFront',
|
|
22
|
-
type: 'Asterisk',
|
|
23
|
-
class: 'CodeSLine',
|
|
24
|
-
'schema-modules': 'Database2Line',
|
|
25
|
-
scripts: 'FileCodeLine',
|
|
26
|
-
tests: 'FilterLine',
|
|
27
|
-
sla: 'TimerLine',
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
export default [
|
|
31
|
-
{
|
|
32
|
-
label: 'Developer Portal',
|
|
33
|
-
icon: 'CodeBoxLine',
|
|
34
|
-
to: '/',
|
|
35
|
-
activePaths: ['', '/ide'],
|
|
36
|
-
id: 'ide',
|
|
37
|
-
as: 'a',
|
|
38
|
-
submenu: map(
|
|
39
|
-
interfaces,
|
|
40
|
-
(item, id): TReqraftMenuItem => ({
|
|
41
|
-
label: item.display_name,
|
|
42
|
-
icon: interfaceIcons[id],
|
|
43
|
-
minimal: false,
|
|
44
|
-
to: `/Interfaces/${id}`,
|
|
45
|
-
badge: [{ label: item.items + item.drafts, align: 'right' }],
|
|
46
|
-
tooltip: {
|
|
47
|
-
content: item.short_desc,
|
|
48
|
-
maxWidth: '400px',
|
|
49
|
-
delay: 300,
|
|
50
|
-
},
|
|
51
|
-
wrap: false,
|
|
52
|
-
activePaths: [`/Interfaces/${id}`, `/CreateInterface/${id}`],
|
|
53
|
-
as: 'a',
|
|
54
|
-
id: id,
|
|
55
|
-
rightIcon: 'AddLine',
|
|
56
|
-
})
|
|
57
|
-
),
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
divider: true,
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
label: 'Operational Dashboard',
|
|
64
|
-
icon: 'Home2Fill',
|
|
65
|
-
href: '/dashboard',
|
|
66
|
-
activePaths: ['/dashboard'],
|
|
67
|
-
id: 'dashboard',
|
|
68
|
-
as: 'a',
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
label: 'Operational Interfaces',
|
|
72
|
-
id: 'interfaces',
|
|
73
|
-
icon: 'LayoutMasonryFill',
|
|
74
|
-
submenu: [
|
|
75
|
-
{
|
|
76
|
-
label: 'Workflows',
|
|
77
|
-
icon: 'ExchangeLine',
|
|
78
|
-
href: '/workflows',
|
|
79
|
-
activePaths: ['/workflow', '/order'],
|
|
80
|
-
id: 'workflows',
|
|
81
|
-
as: 'a',
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
label: 'Services',
|
|
85
|
-
icon: 'GitMergeLine',
|
|
86
|
-
href: '/services',
|
|
87
|
-
activePaths: ['/service'],
|
|
88
|
-
id: 'services',
|
|
89
|
-
as: 'a',
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
label: 'Jobs',
|
|
93
|
-
icon: 'CalendarLine',
|
|
94
|
-
href: '/jobs',
|
|
95
|
-
activePaths: ['/job'],
|
|
96
|
-
id: 'jobs',
|
|
97
|
-
as: 'a',
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
label: 'Groups',
|
|
101
|
-
icon: 'BubbleChartFill',
|
|
102
|
-
href: '/groups',
|
|
103
|
-
activePaths: ['/groups'],
|
|
104
|
-
id: 'groups',
|
|
105
|
-
as: 'a',
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
label: 'Connections',
|
|
109
|
-
icon: 'StackshareLine',
|
|
110
|
-
href: '/remote',
|
|
111
|
-
activePaths: ['/remote'],
|
|
112
|
-
id: 'remote',
|
|
113
|
-
as: 'a',
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
label: 'Search',
|
|
117
|
-
icon: 'SearchLine',
|
|
118
|
-
href: '/search',
|
|
119
|
-
activePaths: ['/search'],
|
|
120
|
-
id: 'search',
|
|
121
|
-
as: 'a',
|
|
122
|
-
},
|
|
123
|
-
],
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
label: 'Global',
|
|
127
|
-
icon: 'LayoutGridFill',
|
|
128
|
-
activePaths: ['/rbac', '/valuemaps', '/slas', '/sla', '/releases', '/errors'],
|
|
129
|
-
id: 'global',
|
|
130
|
-
submenu: [
|
|
131
|
-
{
|
|
132
|
-
label: 'RBAC',
|
|
133
|
-
icon: 'GroupLine',
|
|
134
|
-
href: '/rbac',
|
|
135
|
-
activePaths: ['/rbac'],
|
|
136
|
-
id: 'rbac',
|
|
137
|
-
as: 'a',
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
label: 'Valuemaps',
|
|
141
|
-
icon: 'MapLine',
|
|
142
|
-
href: '/valuemaps',
|
|
143
|
-
activePaths: ['/valuemaps'],
|
|
144
|
-
id: 'valuemaps',
|
|
145
|
-
as: 'a',
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
label: 'SLAs',
|
|
149
|
-
icon: 'TimeLine',
|
|
150
|
-
href: '/slas',
|
|
151
|
-
activePaths: ['/slas', '/sla'],
|
|
152
|
-
id: 'slas',
|
|
153
|
-
as: 'a',
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
label: 'Releases',
|
|
157
|
-
icon: 'InstallLine',
|
|
158
|
-
href: '/releases',
|
|
159
|
-
activePaths: ['/releases'],
|
|
160
|
-
id: 'releases',
|
|
161
|
-
as: 'a',
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
label: 'Errors',
|
|
165
|
-
icon: 'ErrorWarningLine',
|
|
166
|
-
href: '/errors',
|
|
167
|
-
activePaths: ['/errors'],
|
|
168
|
-
id: 'errors',
|
|
169
|
-
as: 'a',
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
label: 'Types',
|
|
173
|
-
icon: 'Key2Fill',
|
|
174
|
-
href: '/types',
|
|
175
|
-
activePaths: ['/types'],
|
|
176
|
-
id: 'types',
|
|
177
|
-
as: 'a',
|
|
178
|
-
},
|
|
179
|
-
],
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
label: 'System',
|
|
183
|
-
icon: 'Settings2Line',
|
|
184
|
-
activePaths: ['/system'],
|
|
185
|
-
id: 'system',
|
|
186
|
-
submenu: [
|
|
187
|
-
{
|
|
188
|
-
label: 'Alerts',
|
|
189
|
-
icon: 'AlarmWarningLine',
|
|
190
|
-
href: '/system/alerts',
|
|
191
|
-
activePaths: ['/system/alerts'],
|
|
192
|
-
id: 'alerts',
|
|
193
|
-
as: 'a',
|
|
194
|
-
},
|
|
195
|
-
{
|
|
196
|
-
label: 'Cluster',
|
|
197
|
-
icon: 'GridFill',
|
|
198
|
-
href: '/system/cluster',
|
|
199
|
-
activePaths: ['/system/cluster'],
|
|
200
|
-
id: 'cluster',
|
|
201
|
-
as: 'a',
|
|
202
|
-
},
|
|
203
|
-
{
|
|
204
|
-
label: 'Order Stats',
|
|
205
|
-
icon: 'PieChartLine',
|
|
206
|
-
href: '/system/orderStats',
|
|
207
|
-
activePaths: ['/system/orderStats'],
|
|
208
|
-
id: 'orderstats',
|
|
209
|
-
as: 'a',
|
|
210
|
-
},
|
|
211
|
-
{
|
|
212
|
-
label: 'Options',
|
|
213
|
-
icon: 'SettingsLine',
|
|
214
|
-
href: '/system/options',
|
|
215
|
-
activePaths: ['/system/options'],
|
|
216
|
-
id: 'options',
|
|
217
|
-
as: 'a',
|
|
218
|
-
},
|
|
219
|
-
{
|
|
220
|
-
label: 'Properties',
|
|
221
|
-
icon: 'StackLine',
|
|
222
|
-
href: '/system/props',
|
|
223
|
-
activePaths: ['/system/props'],
|
|
224
|
-
id: 'props',
|
|
225
|
-
as: 'a',
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
label: 'Cache',
|
|
229
|
-
icon: 'DatabaseLine',
|
|
230
|
-
href: '/system/sqlcache',
|
|
231
|
-
activePaths: ['/system/sqlcache'],
|
|
232
|
-
id: 'sqlcache',
|
|
233
|
-
as: 'a',
|
|
234
|
-
},
|
|
235
|
-
{
|
|
236
|
-
label: 'HTTP Services',
|
|
237
|
-
icon: 'GlobeLine',
|
|
238
|
-
href: '/system/http',
|
|
239
|
-
activePaths: ['/system/http'],
|
|
240
|
-
id: 'http',
|
|
241
|
-
as: 'a',
|
|
242
|
-
},
|
|
243
|
-
{
|
|
244
|
-
label: 'Config Items',
|
|
245
|
-
icon: 'Settings6Line',
|
|
246
|
-
href: '/system/config-items',
|
|
247
|
-
activePaths: ['/system/config-items'],
|
|
248
|
-
id: 'config-items',
|
|
249
|
-
as: 'a',
|
|
250
|
-
},
|
|
251
|
-
],
|
|
252
|
-
},
|
|
253
|
-
{
|
|
254
|
-
label: 'More',
|
|
255
|
-
icon: 'MoreFill',
|
|
256
|
-
activePaths: ['/ocmd', '/library', '/extensions', '/logs', '/info'],
|
|
257
|
-
id: 'more',
|
|
258
|
-
submenu: [
|
|
259
|
-
{
|
|
260
|
-
label: 'OCMD',
|
|
261
|
-
icon: 'TerminalLine',
|
|
262
|
-
href: '/ocmd',
|
|
263
|
-
activePaths: ['/ocmd'],
|
|
264
|
-
id: 'ocmd',
|
|
265
|
-
as: 'a',
|
|
266
|
-
},
|
|
267
|
-
{
|
|
268
|
-
label: 'Library',
|
|
269
|
-
icon: 'Book3Line',
|
|
270
|
-
href: '/library',
|
|
271
|
-
activePaths: ['/library'],
|
|
272
|
-
id: 'library',
|
|
273
|
-
as: 'a',
|
|
274
|
-
},
|
|
275
|
-
{
|
|
276
|
-
label: 'Extensions',
|
|
277
|
-
icon: 'AppsLine',
|
|
278
|
-
href: '/extensions',
|
|
279
|
-
activePaths: ['/extensions'],
|
|
280
|
-
id: 'extensions',
|
|
281
|
-
as: 'a',
|
|
282
|
-
},
|
|
283
|
-
{
|
|
284
|
-
label: 'Logs',
|
|
285
|
-
icon: 'FileTextLine',
|
|
286
|
-
href: '/logs',
|
|
287
|
-
activePaths: ['/logs'],
|
|
288
|
-
id: 'logs',
|
|
289
|
-
as: 'a',
|
|
290
|
-
},
|
|
291
|
-
{
|
|
292
|
-
label: 'Info',
|
|
293
|
-
icon: 'InformationLine',
|
|
294
|
-
href: '/info',
|
|
295
|
-
activePaths: ['/info'],
|
|
296
|
-
id: 'info',
|
|
297
|
-
as: 'a',
|
|
298
|
-
},
|
|
299
|
-
],
|
|
300
|
-
},
|
|
301
|
-
];
|
package/public/logo-dark.png
DELETED
|
Binary file
|
package/public/logo.png
DELETED
|
Binary file
|
|
Binary file
|
package/public/q-symbol.png
DELETED
|
Binary file
|
package/public/qoreLogo-dark.png
DELETED
|
Binary file
|
package/public/qoreLogo.png
DELETED
|
Binary file
|