@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.
Files changed (151) hide show
  1. package/dist/components/form/fields/Field.d.ts.map +1 -0
  2. package/dist/components/form/fields/Field.js.map +1 -0
  3. package/dist/components/form/fields/string/String.d.ts.map +1 -0
  4. package/dist/components/form/fields/string/String.js.map +1 -0
  5. package/dist/components/menu/Menu.d.ts.map +1 -0
  6. package/dist/components/menu/Menu.js.map +1 -0
  7. package/dist/contexts/FetchContext.d.ts.map +1 -0
  8. package/dist/contexts/FetchContext.js.map +1 -0
  9. package/dist/contexts/ReqraftContext.d.ts.map +1 -0
  10. package/dist/contexts/ReqraftContext.js.map +1 -0
  11. package/dist/contexts/StorageContext.d.ts.map +1 -0
  12. package/dist/contexts/StorageContext.js.map +1 -0
  13. package/dist/hooks/useFetch/useFetch.d.ts.map +1 -0
  14. package/dist/hooks/useFetch/useFetch.js.map +1 -0
  15. package/dist/hooks/useReqraftProperty.d.ts.map +1 -0
  16. package/dist/hooks/useReqraftProperty.js.map +1 -0
  17. package/dist/hooks/useStorage/useStorage.d.ts.map +1 -0
  18. package/dist/hooks/useStorage/useStorage.js.map +1 -0
  19. package/dist/hooks/useValidation.d.ts.map +1 -0
  20. package/dist/hooks/useValidation.js.map +1 -0
  21. package/dist/index.d.ts.map +1 -0
  22. package/dist/index.js.map +1 -0
  23. package/dist/providers/FetchProvider.d.ts.map +1 -0
  24. package/dist/providers/FetchProvider.js.map +1 -0
  25. package/dist/providers/ReqraftProvider.d.ts.map +1 -0
  26. package/dist/providers/ReqraftProvider.js.map +1 -0
  27. package/dist/providers/StorageProvider.d.ts.map +1 -0
  28. package/dist/providers/StorageProvider.js.map +1 -0
  29. package/dist/types/Form.d.ts.map +1 -0
  30. package/dist/{src/types → types}/Form.js.map +1 -1
  31. package/dist/types.d.ts.map +1 -0
  32. package/dist/types.js.map +1 -0
  33. package/dist/utils/fetch.d.ts.map +1 -0
  34. package/dist/utils/fetch.js.map +1 -0
  35. package/package.json +1 -1
  36. package/.eslintrc.js +0 -40
  37. package/.github/ISSUE_TEMPLATE/bug_report.md +0 -38
  38. package/.github/ISSUE_TEMPLATE/feature_request.md +0 -20
  39. package/.github/ISSUE_TEMPLATE/new-component.md +0 -20
  40. package/.github/ISSUE_TEMPLATE/visual-bug-report.md +0 -38
  41. package/.github/workflows/beta_release.yml +0 -108
  42. package/.github/workflows/tests.yml +0 -120
  43. package/.prettierrc +0 -7
  44. package/build-storybook.log +0 -28
  45. package/dist/__tests__/ mock.d.ts +0 -23
  46. package/dist/__tests__/ mock.d.ts.map +0 -1
  47. package/dist/__tests__/ mock.js +0 -44
  48. package/dist/__tests__/ mock.js.map +0 -1
  49. package/dist/__tests__/utils.d.ts +0 -3
  50. package/dist/__tests__/utils.d.ts.map +0 -1
  51. package/dist/__tests__/utils.js +0 -60
  52. package/dist/__tests__/utils.js.map +0 -1
  53. package/dist/mock/interfaceCategories.json +0 -155
  54. package/dist/mock/menu.d.ts +0 -70
  55. package/dist/mock/menu.d.ts.map +0 -1
  56. package/dist/mock/menu.js +0 -301
  57. package/dist/mock/menu.js.map +0 -1
  58. package/dist/src/components/form/fields/Field.d.ts.map +0 -1
  59. package/dist/src/components/form/fields/Field.js.map +0 -1
  60. package/dist/src/components/form/fields/string/String.d.ts.map +0 -1
  61. package/dist/src/components/form/fields/string/String.js.map +0 -1
  62. package/dist/src/components/form/fields/string/String.stories.d.ts +0 -10
  63. package/dist/src/components/form/fields/string/String.stories.d.ts.map +0 -1
  64. package/dist/src/components/form/fields/string/String.stories.js +0 -21
  65. package/dist/src/components/form/fields/string/String.stories.js.map +0 -1
  66. package/dist/src/components/menu/Menu.d.ts.map +0 -1
  67. package/dist/src/components/menu/Menu.js.map +0 -1
  68. package/dist/src/components/menu/Menu.stories.d.ts +0 -12
  69. package/dist/src/components/menu/Menu.stories.d.ts.map +0 -1
  70. package/dist/src/components/menu/Menu.stories.js +0 -159
  71. package/dist/src/components/menu/Menu.stories.js.map +0 -1
  72. package/dist/src/contexts/FetchContext.d.ts.map +0 -1
  73. package/dist/src/contexts/FetchContext.js.map +0 -1
  74. package/dist/src/contexts/ReqraftContext.d.ts.map +0 -1
  75. package/dist/src/contexts/ReqraftContext.js.map +0 -1
  76. package/dist/src/contexts/StorageContext.d.ts.map +0 -1
  77. package/dist/src/contexts/StorageContext.js.map +0 -1
  78. package/dist/src/hooks/useFetch/useFetch.d.ts.map +0 -1
  79. package/dist/src/hooks/useFetch/useFetch.js.map +0 -1
  80. package/dist/src/hooks/useFetch/useFetch.stories.d.ts +0 -9
  81. package/dist/src/hooks/useFetch/useFetch.stories.d.ts.map +0 -1
  82. package/dist/src/hooks/useFetch/useFetch.stories.js +0 -177
  83. package/dist/src/hooks/useFetch/useFetch.stories.js.map +0 -1
  84. package/dist/src/hooks/useReqraftProperty.d.ts.map +0 -1
  85. package/dist/src/hooks/useReqraftProperty.js.map +0 -1
  86. package/dist/src/hooks/useStorage/useStorage.d.ts.map +0 -1
  87. package/dist/src/hooks/useStorage/useStorage.js.map +0 -1
  88. package/dist/src/hooks/useStorage/useStorage.stories.d.ts +0 -9
  89. package/dist/src/hooks/useStorage/useStorage.stories.d.ts.map +0 -1
  90. package/dist/src/hooks/useStorage/useStorage.stories.js +0 -162
  91. package/dist/src/hooks/useStorage/useStorage.stories.js.map +0 -1
  92. package/dist/src/hooks/useValidation.d.ts.map +0 -1
  93. package/dist/src/hooks/useValidation.js.map +0 -1
  94. package/dist/src/index.d.ts.map +0 -1
  95. package/dist/src/index.js.map +0 -1
  96. package/dist/src/providers/FetchProvider.d.ts.map +0 -1
  97. package/dist/src/providers/FetchProvider.js.map +0 -1
  98. package/dist/src/providers/ReqraftProvider.d.ts.map +0 -1
  99. package/dist/src/providers/ReqraftProvider.js.map +0 -1
  100. package/dist/src/providers/StorageProvider.d.ts.map +0 -1
  101. package/dist/src/providers/StorageProvider.js.map +0 -1
  102. package/dist/src/types/Form.d.ts.map +0 -1
  103. package/dist/src/types.d.ts.map +0 -1
  104. package/dist/src/types.js.map +0 -1
  105. package/dist/src/utils/fetch.d.ts.map +0 -1
  106. package/dist/src/utils/fetch.js.map +0 -1
  107. package/mock/interfaceCategories.json +0 -155
  108. package/mock/menu.ts +0 -301
  109. package/public/logo-dark.png +0 -0
  110. package/public/logo.png +0 -0
  111. package/public/q-symbol-small.png +0 -0
  112. package/public/q-symbol.png +0 -0
  113. package/public/qoreLogo-dark.png +0 -0
  114. package/public/qoreLogo.png +0 -0
  115. package/src/icons.json +0 -2295
  116. package/tests.json +0 -1
  117. package/tsconfig.prod.json +0 -26
  118. /package/dist/{src/components → components}/form/fields/Field.d.ts +0 -0
  119. /package/dist/{src/components → components}/form/fields/Field.js +0 -0
  120. /package/dist/{src/components → components}/form/fields/string/String.d.ts +0 -0
  121. /package/dist/{src/components → components}/form/fields/string/String.js +0 -0
  122. /package/dist/{src/components → components}/menu/Menu.d.ts +0 -0
  123. /package/dist/{src/components → components}/menu/Menu.js +0 -0
  124. /package/dist/{src/contexts → contexts}/FetchContext.d.ts +0 -0
  125. /package/dist/{src/contexts → contexts}/FetchContext.js +0 -0
  126. /package/dist/{src/contexts → contexts}/ReqraftContext.d.ts +0 -0
  127. /package/dist/{src/contexts → contexts}/ReqraftContext.js +0 -0
  128. /package/dist/{src/contexts → contexts}/StorageContext.d.ts +0 -0
  129. /package/dist/{src/contexts → contexts}/StorageContext.js +0 -0
  130. /package/dist/{src/hooks → hooks}/useFetch/useFetch.d.ts +0 -0
  131. /package/dist/{src/hooks → hooks}/useFetch/useFetch.js +0 -0
  132. /package/dist/{src/hooks → hooks}/useReqraftProperty.d.ts +0 -0
  133. /package/dist/{src/hooks → hooks}/useReqraftProperty.js +0 -0
  134. /package/dist/{src/hooks → hooks}/useStorage/useStorage.d.ts +0 -0
  135. /package/dist/{src/hooks → hooks}/useStorage/useStorage.js +0 -0
  136. /package/dist/{src/hooks → hooks}/useValidation.d.ts +0 -0
  137. /package/dist/{src/hooks → hooks}/useValidation.js +0 -0
  138. /package/dist/{src/index.d.ts → index.d.ts} +0 -0
  139. /package/dist/{src/index.js → index.js} +0 -0
  140. /package/dist/{src/providers → providers}/FetchProvider.d.ts +0 -0
  141. /package/dist/{src/providers → providers}/FetchProvider.js +0 -0
  142. /package/dist/{src/providers → providers}/ReqraftProvider.d.ts +0 -0
  143. /package/dist/{src/providers → providers}/ReqraftProvider.js +0 -0
  144. /package/dist/{src/providers → providers}/StorageProvider.d.ts +0 -0
  145. /package/dist/{src/providers → providers}/StorageProvider.js +0 -0
  146. /package/dist/{src/types → types}/Form.d.ts +0 -0
  147. /package/dist/{src/types → types}/Form.js +0 -0
  148. /package/dist/{src/types.d.ts → types.d.ts} +0 -0
  149. /package/dist/{src/types.js → types.js} +0 -0
  150. /package/dist/{src/utils → utils}/fetch.d.ts +0 -0
  151. /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
- ];
Binary file
package/public/logo.png DELETED
Binary file
Binary file
Binary file
Binary file
Binary file