@next-bricks/nav 0.0.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 (113) hide show
  1. package/dist/bricks.json +31 -0
  2. package/dist/chunks/1646.0fbdb0ca.js +2 -0
  3. package/dist/chunks/1646.0fbdb0ca.js.map +1 -0
  4. package/dist/chunks/1874.e36d3528.js +2 -0
  5. package/dist/chunks/1874.e36d3528.js.map +1 -0
  6. package/dist/chunks/2024.3653c941.js +2 -0
  7. package/dist/chunks/2024.3653c941.js.map +1 -0
  8. package/dist/chunks/2108.d24ff54e.js +2 -0
  9. package/dist/chunks/2108.d24ff54e.js.map +1 -0
  10. package/dist/chunks/2784.f1276a06.js +2 -0
  11. package/dist/chunks/2784.f1276a06.js.LICENSE.txt +9 -0
  12. package/dist/chunks/3458.0db8e57b.js +2 -0
  13. package/dist/chunks/3458.0db8e57b.js.map +1 -0
  14. package/dist/chunks/3697.24e1663e.js +2 -0
  15. package/dist/chunks/3697.24e1663e.js.map +1 -0
  16. package/dist/chunks/3914.bfe4f813.js +2 -0
  17. package/dist/chunks/3914.bfe4f813.js.map +1 -0
  18. package/dist/chunks/4049.f8b27043.js +2 -0
  19. package/dist/chunks/4049.f8b27043.js.map +1 -0
  20. package/dist/chunks/4275.56eff5ad.js +2 -0
  21. package/dist/chunks/4275.56eff5ad.js.map +1 -0
  22. package/dist/chunks/443.61c44b8a.js +2 -0
  23. package/dist/chunks/443.61c44b8a.js.map +1 -0
  24. package/dist/chunks/4717.ccdb103a.js +2 -0
  25. package/dist/chunks/4717.ccdb103a.js.map +1 -0
  26. package/dist/chunks/4991.c691b8e7.js +2 -0
  27. package/dist/chunks/4991.c691b8e7.js.map +1 -0
  28. package/dist/chunks/5151.8ecc4ab9.js +2 -0
  29. package/dist/chunks/5151.8ecc4ab9.js.map +1 -0
  30. package/dist/chunks/5202.c23bab68.js +2 -0
  31. package/dist/chunks/5202.c23bab68.js.map +1 -0
  32. package/dist/chunks/5326.42956a9e.js +2 -0
  33. package/dist/chunks/5326.42956a9e.js.map +1 -0
  34. package/dist/chunks/5628.235df3e7.js +2 -0
  35. package/dist/chunks/5628.235df3e7.js.map +1 -0
  36. package/dist/chunks/5636.081239e0.js +2 -0
  37. package/dist/chunks/5636.081239e0.js.map +1 -0
  38. package/dist/chunks/5637.eea3fcc8.js +2 -0
  39. package/dist/chunks/5637.eea3fcc8.js.map +1 -0
  40. package/dist/chunks/5725.9b1e1aca.js +2 -0
  41. package/dist/chunks/5725.9b1e1aca.js.map +1 -0
  42. package/dist/chunks/6205.c4412fd4.js +2 -0
  43. package/dist/chunks/6205.c4412fd4.js.map +1 -0
  44. package/dist/chunks/6473.723bc345.js +2 -0
  45. package/dist/chunks/6473.723bc345.js.map +1 -0
  46. package/dist/chunks/6635.0db0281d.js +3 -0
  47. package/dist/chunks/6635.0db0281d.js.LICENSE.txt +8 -0
  48. package/dist/chunks/6635.0db0281d.js.map +1 -0
  49. package/dist/chunks/6653.46da4079.js +2 -0
  50. package/dist/chunks/6653.46da4079.js.map +1 -0
  51. package/dist/chunks/7110.fd016bb6.js +2 -0
  52. package/dist/chunks/7110.fd016bb6.js.map +1 -0
  53. package/dist/chunks/7164.8e9d6d14.js +2 -0
  54. package/dist/chunks/7164.8e9d6d14.js.map +1 -0
  55. package/dist/chunks/7325.eea5c9bd.js +2 -0
  56. package/dist/chunks/7325.eea5c9bd.js.map +1 -0
  57. package/dist/chunks/7672.cb3df57a.js +2 -0
  58. package/dist/chunks/7672.cb3df57a.js.map +1 -0
  59. package/dist/chunks/7746.34eb9be8.js +2 -0
  60. package/dist/chunks/7746.34eb9be8.js.map +1 -0
  61. package/dist/chunks/7782.70db8d0a.js +2 -0
  62. package/dist/chunks/7782.70db8d0a.js.map +1 -0
  63. package/dist/chunks/7915.4ed2483c.js +2 -0
  64. package/dist/chunks/7915.4ed2483c.js.map +1 -0
  65. package/dist/chunks/8008.cfc9964b.js +3 -0
  66. package/dist/chunks/8008.cfc9964b.js.LICENSE.txt +3 -0
  67. package/dist/chunks/8008.cfc9964b.js.map +1 -0
  68. package/dist/chunks/8316.5124d566.js +2 -0
  69. package/dist/chunks/8316.5124d566.js.LICENSE.txt +19 -0
  70. package/dist/chunks/8498.93b44f4a.js +2 -0
  71. package/dist/chunks/8498.93b44f4a.js.map +1 -0
  72. package/dist/chunks/8588.b3bbfbbe.js +2 -0
  73. package/dist/chunks/8588.b3bbfbbe.js.map +1 -0
  74. package/dist/chunks/8691.0eca9096.js +2 -0
  75. package/dist/chunks/8691.0eca9096.js.map +1 -0
  76. package/dist/chunks/9431.4b8f47f7.js +2 -0
  77. package/dist/chunks/9431.4b8f47f7.js.map +1 -0
  78. package/dist/chunks/9549.d80f942f.js +2 -0
  79. package/dist/chunks/9549.d80f942f.js.map +1 -0
  80. package/dist/chunks/9577.13e92d62.js +3 -0
  81. package/dist/chunks/9577.13e92d62.js.LICENSE.txt +5 -0
  82. package/dist/chunks/9577.13e92d62.js.map +1 -0
  83. package/dist/chunks/eo-nav-menu.834f7069.js +2 -0
  84. package/dist/chunks/eo-nav-menu.834f7069.js.map +1 -0
  85. package/dist/chunks/main.d6c41c27.js +2 -0
  86. package/dist/chunks/main.d6c41c27.js.map +1 -0
  87. package/dist/examples.json +5 -0
  88. package/dist/index.e38a0d91.js +2 -0
  89. package/dist/index.e38a0d91.js.map +1 -0
  90. package/dist/manifest.json +32 -0
  91. package/dist/types.json +25 -0
  92. package/dist-types/bootstrap.d.ts +1 -0
  93. package/dist-types/index.d.ts +1 -0
  94. package/dist-types/nav-menu/ThreeLevelMenuPopoverContent.d.ts +8 -0
  95. package/dist-types/nav-menu/ThreeLevelMenuPopoverContent.spec.d.ts +1 -0
  96. package/dist-types/nav-menu/i18n.d.ts +21 -0
  97. package/dist-types/nav-menu/index.d.ts +21 -0
  98. package/dist-types/nav-menu/index.spec.d.ts +1 -0
  99. package/dist-types/nav-menu/site-map/CollectService.d.ts +21 -0
  100. package/dist-types/nav-menu/site-map/CollectService.spec.d.ts +1 -0
  101. package/dist-types/nav-menu/site-map/GroupItem.d.ts +27 -0
  102. package/dist-types/nav-menu/site-map/GroupItem.spec.d.ts +1 -0
  103. package/dist-types/nav-menu/site-map/ItemTag.d.ts +29 -0
  104. package/dist-types/nav-menu/site-map/ItemTag.spec.d.ts +1 -0
  105. package/dist-types/nav-menu/site-map/SiteMap.spec.d.ts +1 -0
  106. package/dist-types/nav-menu/site-map/SiteMapItem.d.ts +16 -0
  107. package/dist-types/nav-menu/site-map/constants.d.ts +17 -0
  108. package/dist-types/nav-menu/site-map/processor.d.ts +6 -0
  109. package/dist-types/nav-menu/site-map/processor.spec.d.ts +1 -0
  110. package/dist-types/nav-menu/utils.d.ts +7 -0
  111. package/dist-types/nav-menu/utils.spec.d.ts +1 -0
  112. package/docs/eo-nav-menu.md +435 -0
  113. package/package.json +41 -0
@@ -0,0 +1,29 @@
1
+ import React from "react";
2
+ import { SidebarMenuSimpleItem } from "@next-shared/general/types";
3
+ interface CellItemProps {
4
+ data: SidebarMenuSimpleItem;
5
+ suffix?: React.ReactNode;
6
+ className?: string;
7
+ }
8
+ export type OnFavoriteCallback = (collectList: SidebarMenuSimpleItem[]) => void;
9
+ export declare function ItemTag(props: CellItemProps): React.ReactElement;
10
+ interface QuickVisitTagProps extends CellItemProps {
11
+ groupId: string;
12
+ onFavorite?: OnFavoriteCallback;
13
+ }
14
+ export declare function QuickVisitItem(props: QuickVisitTagProps): React.ReactElement;
15
+ interface StarIconProps {
16
+ onFavorite?: OnFavoriteCallback;
17
+ className?: string;
18
+ groupId: string;
19
+ data: SidebarMenuSimpleItem;
20
+ active?: boolean;
21
+ }
22
+ export declare function StarIcon({ onFavorite, className, groupId, data, active, }: StarIconProps): React.ReactElement;
23
+ interface RecommendItemProps extends CellItemProps {
24
+ active?: boolean;
25
+ groupId: string;
26
+ onFavorite?: OnFavoriteCallback;
27
+ }
28
+ export declare function RecommendItem(props: RecommendItemProps): React.ReactElement;
29
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,16 @@
1
+ /// <reference types="react" />
2
+ import type { SidebarMenuGroup } from "@next-shared/general/types";
3
+ export interface InputEvents {
4
+ change: CustomEvent<string>;
5
+ }
6
+ export interface InputEventsMap {
7
+ onValueChange: "change";
8
+ }
9
+ interface SiteMapItemProps {
10
+ menuGroup: SidebarMenuGroup;
11
+ selectedKey?: string[];
12
+ }
13
+ export declare function findDropElement(element: HTMLElement): HTMLElement | undefined;
14
+ export declare function isValidDragAction(dragElement: HTMLElement, dropElement: HTMLElement): boolean;
15
+ export declare function SiteMapItem(props: SiteMapItemProps): JSX.Element;
16
+ export {};
@@ -0,0 +1,17 @@
1
+ import React from "react";
2
+ export declare enum DRAG_DIRECTION {
3
+ Left = "left",
4
+ Right = "right"
5
+ }
6
+ export interface ContextOfDragProps {
7
+ groupId: string;
8
+ direction?: DRAG_DIRECTION;
9
+ overElement?: HTMLElement;
10
+ allowDrag?: boolean;
11
+ onAllowDrag?: (enable: boolean) => void;
12
+ onDragStart?: (e: React.DragEvent) => void;
13
+ onDragOver?: (e: React.DragEvent) => void;
14
+ onDragEnd?: (e: React.DragEvent) => void;
15
+ onFavoriteUpdate?: (list: any[]) => void;
16
+ }
17
+ export declare const DragContext: React.Context<ContextOfDragProps>;
@@ -0,0 +1,6 @@
1
+ import { SidebarMenuItem, SidebarMenuGroup, SidebarMenuSimpleItem } from "@next-shared/general/types";
2
+ export declare function flatMenuItems(item: SidebarMenuItem): SidebarMenuSimpleItem[];
3
+ export declare function processGroupItems(groups: SidebarMenuGroup[]): Array<{
4
+ groupFrom: string;
5
+ groups: SidebarMenuGroup[];
6
+ }>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import type { SidebarMenuGroup, SidebarMenuItem, SidebarMenuSimpleItem } from "@next-shared/general/types";
3
+ export declare function isGroup(item: SidebarMenuItem): item is SidebarMenuGroup;
4
+ export declare function isSubMenu(item: SidebarMenuGroup, groupAsSubMenu?: boolean): item is SidebarMenuGroup;
5
+ export declare function isSimple(item: SidebarMenuItem): item is SidebarMenuSimpleItem;
6
+ export declare const renderLinkCom: (item: SidebarMenuSimpleItem, linkStyle?: React.CSSProperties) => React.ReactElement;
7
+ export declare const renderSpanCom: (item: SidebarMenuGroup, subMenu?: boolean) => React.ReactElement;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,435 @@
1
+ 菜单构件
2
+
3
+ ## Examples
4
+
5
+ ### basic
6
+
7
+ ```yaml preview
8
+ - brick: eo-nav-menu
9
+ properties:
10
+ menu:
11
+ title: mock data
12
+ menuItems:
13
+ - text: 创造
14
+ to: /a
15
+ type: default
16
+ - title: 资源库
17
+ type: subMenu
18
+ items:
19
+ - text: 构件库
20
+ to: /b
21
+ type: default
22
+ - title: 契约中心
23
+ to: /c
24
+ type: subMenu
25
+ items:
26
+ - text: cmdb契约
27
+ to: /cmdb
28
+ type: default
29
+ - title: devops契约
30
+ type: subMenu
31
+ items:
32
+ - text: flow
33
+ to: /flow
34
+ type: default
35
+ - text: tool
36
+ to: /tool
37
+ type: default
38
+ - text: 文档中心
39
+ href: "http://www.baidu.com"
40
+ type: default
41
+ - title: 接口与数据
42
+ type: subMenu
43
+ items:
44
+ - text: Api Gateway
45
+ to: /d
46
+ type: default
47
+ - title: 测试组
48
+ type: group
49
+ items:
50
+ - text: 挂件
51
+ to: /e
52
+ type: default
53
+ - text: 构件
54
+ to: /f
55
+ type: default
56
+ ```
57
+
58
+ ### 分类的三级菜单
59
+
60
+ ```yaml preview
61
+ - brick: eo-nav-menu
62
+ properties:
63
+ menu:
64
+ title: mock data
65
+ menuItems:
66
+ - text: 创造
67
+ to: /a
68
+ type: default
69
+ - title: 资源库
70
+ type: subMenu
71
+ items:
72
+ - text: 构件库
73
+ to: /b
74
+ type: default
75
+ - title: 契约中心
76
+ to: /c
77
+ type: subMenu
78
+ items:
79
+ - text: cmdb契约
80
+ to: /cmdb
81
+ type: default
82
+ - title: devops契约
83
+ type: subMenu
84
+ items:
85
+ - text: flow
86
+ to: /flow
87
+ type: default
88
+ - text: tool
89
+ to: /tool
90
+ type: default
91
+ - title: 服务
92
+ type: group
93
+ childLayout: category
94
+ items:
95
+ - title: 接入
96
+ type: group
97
+ items:
98
+ - text: Nginx
99
+ type: default
100
+ to: /Nginx
101
+ - text: HAProxy
102
+ type: default
103
+ to: /HAProxy
104
+ - text: LVS
105
+ type: default
106
+ to: /LVS
107
+ - title: 逻辑
108
+ type: group
109
+ items:
110
+ - text: Apache
111
+ type: default
112
+ to: /Apache
113
+ - title: 存储
114
+ type: group
115
+ items:
116
+ - text: NFS
117
+ type: default
118
+ to: /NFS
119
+ - text: Ceph
120
+ type: default
121
+ to: /Ceph
122
+ ```
123
+
124
+ ### 带网站地图的菜单
125
+
126
+ ```yaml preview
127
+ - brick: eo-nav-menu
128
+ properties:
129
+ menu:
130
+ title: mock data
131
+ menuItems:
132
+ - text: 创造
133
+ to: /a
134
+ type: default
135
+ - title: 资源库
136
+ type: subMenu
137
+ items:
138
+ - text: 构件库
139
+ to: /b
140
+ type: default
141
+ - title: 契约中心
142
+ to: /c
143
+ type: subMenu
144
+ items:
145
+ - text: cmdb契约
146
+ to: /cmdb
147
+ type: default
148
+ - title: devops契约
149
+ type: subMenu
150
+ items:
151
+ - text: flow
152
+ to: /flow
153
+ type: default
154
+ - text: tool
155
+ to: /tool
156
+ type: default
157
+ - title: 服务
158
+ type: group
159
+ groupId: resource
160
+ childLayout: siteMap
161
+ items:
162
+ - type: group
163
+ childLayout: default
164
+ title: 计算
165
+ items:
166
+ - activeExcludes: []
167
+ activeIncludes:
168
+ - "/computing-resource-monitor/local/host/:path+"
169
+ activeMatchSearch: false
170
+ childLayout: default
171
+ defaultExpanded: false
172
+ exact: false
173
+ icon:
174
+ category: second-menu
175
+ icon: host-second-menu
176
+ lib: easyops
177
+ instanceId: 6026b804c1a66
178
+ sort: 10
179
+ text: 主机(本地部署)
180
+ to: /computing-resource-monitor/local/host
181
+ type: default
182
+ children: []
183
+ key: 1.0.0
184
+ - activeExcludes: []
185
+ activeIncludes:
186
+ - /computing-resource-monitor/kubernetes/guide
187
+ - /computing-resource-monitor/kubernetes/activation
188
+ - "/computing-resource-monitor/kubernetes/activation/:path+"
189
+ activeMatchSearch: false
190
+ childLayout: default
191
+ defaultExpanded: false
192
+ exact: false
193
+ icon:
194
+ category: second-menu
195
+ icon: cluster-second-menu
196
+ lib: easyops
197
+ instanceId: 6026b804c1aca
198
+ sort: 20
199
+ text: 集群
200
+ to: /computing-resource-monitor/kubernetes/cluster
201
+ type: default
202
+ children: []
203
+ key: 1.0.1
204
+ - activeExcludes: []
205
+ activeIncludes: []
206
+ activeMatchSearch: false
207
+ defaultExpanded: false
208
+ exact: false
209
+ icon:
210
+ category: second-menu
211
+ icon: pod-second-menu
212
+ lib: easyops
213
+ instanceId: 6026b804c1b2e
214
+ sort: 30
215
+ text: Pod
216
+ to: /computing-resource-monitor/kubernetes/pod
217
+ type: default
218
+ children: []
219
+ key: 1.0.2
220
+ - activeExcludes: []
221
+ activeIncludes: []
222
+ activeMatchSearch: false
223
+ defaultExpanded: false
224
+ exact: false
225
+ icon:
226
+ category: second-menu
227
+ icon: node-second-menu
228
+ lib: easyops
229
+ instanceId: 6026b804c1b92
230
+ sort: 40
231
+ text: 节点
232
+ to: /computing-resource-monitor/kubernetes/node
233
+ type: default
234
+ children: []
235
+ key: 1.0.3
236
+ - activeExcludes: []
237
+ activeIncludes: []
238
+ activeMatchSearch: false
239
+ defaultExpanded: false
240
+ exact: false
241
+ icon:
242
+ category: second-menu
243
+ icon: container-second-menu
244
+ lib: easyops
245
+ instanceId: 6026b804c1bf6
246
+ sort: 50
247
+ text: 容器
248
+ to: /computing-resource-monitor/docker/container
249
+ type: default
250
+ children: []
251
+ key: 1.0.4
252
+ key: "1.0"
253
+ - type: group
254
+ title: 存储
255
+ items:
256
+ - activeExcludes: []
257
+ activeIncludes:
258
+ - "/storage-resource-monitor/cbs/:path+"
259
+ activeMatchSearch: false
260
+ defaultExpanded: false
261
+ exact: false
262
+ icon:
263
+ category: second-menu
264
+ icon: tencent-cloud-hard-disk-second-menu
265
+ lib: easyops
266
+ instanceId: 6026b6cf6bb56
267
+ sort: 0
268
+ text: 腾讯云・云磁盘CBS
269
+ to: /storage-resource-monitor/cbs
270
+ type: default
271
+ children: []
272
+ key: 1.1.0
273
+ - activeExcludes: []
274
+ activeIncludes: []
275
+ activeMatchSearch: false
276
+ defaultExpanded: false
277
+ exact: false
278
+ icon:
279
+ category: second-menu
280
+ icon: container-second-menu
281
+ lib: easyops
282
+ instanceId: 6026b6cf6bbba
283
+ sort: 0
284
+ text: 腾讯云对象存储
285
+ to: /storage-resource-monitor/cos
286
+ type: default
287
+ children: []
288
+ key: 1.1.1
289
+ key: "1.1"
290
+ - type: group
291
+ title: 网络
292
+ items:
293
+ - activeExcludes: []
294
+ activeIncludes: []
295
+ activeMatchSearch: false
296
+ defaultExpanded: false
297
+ exact: false
298
+ icon:
299
+ category: second-menu
300
+ icon: loadbalance-second-menu
301
+ lib: easyops
302
+ instanceId: 6026b7c20c8cf
303
+ sort: 0
304
+ text: 负载均衡策略
305
+ to: /network-resource-monitor/loadbalance
306
+ type: default
307
+ children: []
308
+ key: 1.2.0
309
+ - activeExcludes: []
310
+ activeIncludes: []
311
+ activeMatchSearch: false
312
+ defaultExpanded: false
313
+ exact: false
314
+ icon:
315
+ category: second-menu
316
+ icon: alibaba-cloud-elastic-public-ip-second-menu
317
+ lib: easyops
318
+ instanceId: 6026b7c20c933
319
+ sort: 0
320
+ text: 阿里云・弹性公网IP
321
+ to: /network-resource-monitor/ali-eip
322
+ type: default
323
+ children: []
324
+ key: 1.2.1
325
+ - activeExcludes: []
326
+ activeIncludes: []
327
+ activeMatchSearch: false
328
+ defaultExpanded: false
329
+ exact: false
330
+ icon:
331
+ category: second-menu
332
+ icon: tencent-cloud-nat-gateway-second-menu
333
+ lib: easyops
334
+ instanceId: 6026b7c20c997
335
+ sort: 0
336
+ text: 腾讯云 · NAT网关
337
+ to: /network-resource-monitor/gateway
338
+ type: default
339
+ children: []
340
+ key: 1.2.2
341
+ key: "1.2"
342
+ - type: group
343
+ title: 网络设备
344
+ items:
345
+ - activeExcludes: []
346
+ activeIncludes: []
347
+ activeMatchSearch: false
348
+ defaultExpanded: false
349
+ exact: false
350
+ instanceId: 6026b8b05e892
351
+ sort: 10
352
+ text: 交换机
353
+ to: /network-device-resource-monitor/switch
354
+ type: default
355
+ children: []
356
+ key: 1.3.0
357
+ - activeExcludes: []
358
+ activeIncludes: []
359
+ activeMatchSearch: false
360
+ defaultExpanded: false
361
+ exact: false
362
+ instanceId: 6026b8b05e8f6
363
+ sort: 20
364
+ text: 路由器
365
+ to: /network-device-resource-monitor/router
366
+ type: default
367
+ children: []
368
+ key: 1.3.1
369
+ - activeExcludes: []
370
+ activeIncludes: []
371
+ activeMatchSearch: false
372
+ defaultExpanded: false
373
+ exact: false
374
+ instanceId: 6026b8b05e95a
375
+ sort: 30
376
+ text: 防火墙
377
+ to: /network-device-resource-monitor/firewall
378
+ type: default
379
+ children: []
380
+ key: 1.3.2
381
+ key: "1.3"
382
+ - type: group
383
+ title: 自定义监控
384
+ groupFrom: monitor
385
+ items:
386
+ - activeExcludes: []
387
+ activeIncludes: []
388
+ activeMatchSearch: false
389
+ defaultExpanded: false
390
+ exact: false
391
+ instanceId: 6026b8b05e892
392
+ sort: 10
393
+ text: 主机
394
+ to: /network-device-resource-monitor/host
395
+ type: default
396
+ children: []
397
+ key: 1.4.0
398
+ - activeExcludes: []
399
+ activeIncludes: []
400
+ activeMatchSearch: false
401
+ defaultExpanded: false
402
+ exact: false
403
+ instanceId: 6026b8b05e8f6
404
+ sort: 20
405
+ text: 报文
406
+ to: /network-device-resource-monitor/message
407
+ type: default
408
+ children: []
409
+ key: 1.4.1
410
+ - activeExcludes: []
411
+ activeIncludes: []
412
+ activeMatchSearch: false
413
+ defaultExpanded: false
414
+ exact: false
415
+ instanceId: 6026b8b05e891
416
+ sort: 30
417
+ text: EasyCore
418
+ to: /network-device-resource-monitor/EasyCore
419
+ type: default
420
+ children: []
421
+ key: 1.4.2
422
+ - activeExcludes: []
423
+ activeIncludes: []
424
+ activeMatchSearch: false
425
+ defaultExpanded: false
426
+ exact: false
427
+ instanceId: 6026b8b05e8f7
428
+ sort: 40
429
+ text: 视图
430
+ to: /network-device-resource-monitor/view
431
+ type: default
432
+ children: []
433
+ key: 1.4.3
434
+ key: "1.4"
435
+ ```
package/package.json ADDED
@@ -0,0 +1,41 @@
1
+ {
2
+ "name": "@next-bricks/nav",
3
+ "version": "0.0.1",
4
+ "homepage": "https://github.com/easyops-cn/next-bricks/tree/master/bricks/nav",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git@github.com:easyops-cn/next-bricks.git"
8
+ },
9
+ "license": "GPL-3.0",
10
+ "type": "module",
11
+ "sideEffects": true,
12
+ "files": [
13
+ "dist",
14
+ "dist-types",
15
+ "docs"
16
+ ],
17
+ "exports": {
18
+ "./package.json": "./package.json",
19
+ "./dist/bricks.json": "./dist/bricks.json",
20
+ "./dist/manifest.json": "./dist/manifest.json",
21
+ "./*": {
22
+ "types": "./dist-types/*/index.d.ts"
23
+ }
24
+ },
25
+ "scripts": {
26
+ "start": "cross-env NODE_ENV=development build-next-bricks --watch",
27
+ "build": "npm run build:main && npm run build:types",
28
+ "build:main": "cross-env NODE_ENV=production build-next-bricks",
29
+ "build:types": "tsc --emitDeclarationOnly --declaration --declarationDir dist-types --project tsconfig.json",
30
+ "build:manifest": "cross-env NODE_ENV=production build-next-bricks --manifest-only",
31
+ "test": "cross-env NODE_ENV='test' test-next",
32
+ "test:ci": "cross-env NODE_ENV='test' CI=true test-next",
33
+ "prepublishOnly": "cp package.json package.json.bak && npm pkg delete dependencies",
34
+ "postpublish": "mv package.json.bak package.json"
35
+ },
36
+ "devDependencies": {
37
+ "@next-core/build-next-bricks": "^1.14.2",
38
+ "@next-core/test-next": "^1.0.10"
39
+ },
40
+ "gitHead": "b5cca752aa869c88c9824404cfad265e6c3beed1"
41
+ }