Skip to content

Commit e0e5cdc

Browse files
Merge pull request #83 from RedisInsight/feature/RI-2062_enablement-area-pagination
Feature/Enablement area pagination
2 parents 4f52f5b + 38e4c56 commit e0e5cdc

File tree

73 files changed

+641
-379
lines changed

Some content is hidden

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

73 files changed

+641
-379
lines changed
Lines changed: 35 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,59 @@
11
import { EnablementAreaComponent, IEnablementAreaItem } from 'uiSrc/slices/interfaces'
22

3-
export const MOCK_ENABLEMENT_AREA_ITEMS: IEnablementAreaItem[] = [
4-
{
3+
export const MOCK_ENABLEMENT_AREA_ITEMS: Record<string, IEnablementAreaItem> = {
4+
'quick-guides': {
55
type: EnablementAreaComponent.Group,
66
id: 'quick-guides',
77
label: 'Quick Guides',
8-
children: [
9-
{
8+
children: {
9+
'document-capabilities': {
1010
type: EnablementAreaComponent.InternalLink,
1111
id: 'document-capabilities',
1212
label: 'Document Capabilities',
1313
args: {
14-
path: 'static/workbench/guides/document-capabilities.html',
14+
path: 'static/workbench/quick-guides/document-capabilities.html',
15+
},
16+
},
17+
'working-with-json': {
18+
type: EnablementAreaComponent.InternalLink,
19+
id: 'working-with-json',
20+
label: 'Working with JSON',
21+
args: {
22+
path: 'static/workbench/quick-guides/working-with-json.html',
23+
},
24+
},
25+
'working-with-hash': {
26+
type: EnablementAreaComponent.InternalLink,
27+
id: 'working-with-hash',
28+
label: 'Working with HASH',
29+
args: {
30+
path: 'static/workbench/quick-guides/working-with-hash.html',
1531
},
1632
}
17-
]
33+
}
1834
},
19-
{
35+
'internal-page': {
2036
type: EnablementAreaComponent.InternalLink,
2137
id: 'internal-page',
2238
label: 'Internal Page',
2339
args: {
24-
path: 'static/workbench/guides/document-capabilities.html'
40+
path: 'static/workbench/quick-guides/document-capabilities.html'
41+
},
42+
},
43+
'second-internal-page': {
44+
type: EnablementAreaComponent.InternalLink,
45+
id: 'second-internal-page',
46+
label: 'Second Internal Page',
47+
args: {
48+
path: 'static/workbench/quick-guides/document-capabilities.html'
2549
},
2650
},
27-
{
51+
'manual': {
2852
type: EnablementAreaComponent.CodeButton,
2953
id: 'manual',
3054
label: 'Manual',
3155
args: {
32-
path: 'static/workbench/scripts/manual.txt'
56+
path: 'static/workbench/_scripts/manual.txt'
3357
},
3458
}
35-
]
59+
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)