cob-cli 2.12.0 → 2.13.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/README.publish.md +10 -0
- package/customizations/backend.js +1 -0
- package/customizations/backend.vuepress.js +35 -0
- package/customizations/frontend.js +1 -0
- package/lib/task_lists/rsyncFilter.txt +3 -2
- package/lib/task_lists/test_otherFilesContiousReload.js +1 -1
- package/package.json +5 -1
- package/templates/backend/vuepress/integrationm/actions/getVuePressDoc.groovy +74 -0
- package/templates/backend/vuepress/integrationm/actions/getVuePressSidebarConfig.groovy +42 -0
- package/templates/backend/vuepress/integrationm/actions/getVuePressSidebarRootElements.groovy +17 -0
- package/templates/backend/vuepress/others/vuepress/definition_contents_v234.json +619 -0
- package/templates/backend/vuepress/others/vuepress/nginx/README.md +28 -0
- package/templates/backend/vuepress/others/vuepress/package-lock.json +29656 -0
- package/templates/backend/vuepress/others/vuepress/package.json +24 -0
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/components/DescriptVideo.vue +22 -0
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/components/Graph.vue +124 -0
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/components/ReadingTime.vue +26 -0
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/components/References.vue +228 -0
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/components/RestrictedContent.vue +77 -0
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/config.js +101 -0
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/config.json +31 -0
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/enhanceApp.js +14 -0
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/nav/getNavTranslated.js +52 -0
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/plugins/References.js +96 -0
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/public/Logo-Cult-of-Bits-400x400-1.png +0 -0
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/public/favicon-cob.png +0 -0
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/public/logo.png +0 -0
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/styles/index.styl +39 -0
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/styles/palette.styl +17 -0
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/LICENSE +21 -0
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/README.md +11 -0
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/AlgoliaSearchBox.vue +172 -0
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/DropdownLink.vue +252 -0
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/DropdownTransition.vue +33 -0
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/Home.vue +134 -0
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/NavLink.vue +98 -0
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/NavLinks.vue +165 -0
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/Navbar.vue +140 -0
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/Page.vue +31 -0
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/PageEdit.vue +119 -0
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/PageNav.vue +163 -0
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/Sidebar.vue +64 -0
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/SidebarButton.vue +40 -0
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/SidebarGroup.vue +144 -0
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/SidebarLink.vue +140 -0
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/SidebarLinks.vue +114 -0
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/global-components/Badge.vue +44 -0
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/global-components/CodeBlock.vue +41 -0
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/global-components/CodeGroup.vue +120 -0
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/index.js +59 -0
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/layouts/404.vue +30 -0
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/layouts/Layout.vue +151 -0
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/noopModule.js +1 -0
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/package.json +44 -0
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/styles/arrow.styl +22 -0
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/styles/code.styl +137 -0
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/styles/config.styl +1 -0
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/styles/custom-blocks.styl +44 -0
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/styles/index.styl +202 -0
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/styles/mobile.styl +37 -0
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/styles/toc.styl +3 -0
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/styles/wrapper.styl +10 -0
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/util/index.js +244 -0
- package/templates/dashboards/dash/definition_dashboard_v59.json +1 -0
- package/templates/dashboards/dash/dist/dashboard.html +8 -3
- package/templates/dashboards/dash/dist/js/{app.a65a4c2c.js → app.8423eff3.js} +2 -2
- package/templates/dashboards/dash/dist/js/app.8423eff3.js.map +1 -0
- package/templates/dashboards/dash/dist/js/app.f9c19b80.js +188 -0
- package/templates/dashboards/dash/dist/js/app.f9c19b80.js.map +1 -0
- package/templates/dashboards/dash/src/App.vue +32 -212
- package/templates/dashboards/dash/src/Dashboard.vue +31 -11
- package/templates/dashboards/dash/src/collector.js +35 -3694
- package/templates/dashboards/dash/src/components/Menu.vue +15 -4
- package/templates/dashboards/dash/src/components/Title.vue +10 -2
- package/templates/dashboards/dash/src/components/Totals.vue +19 -9
- package/templates/dashboards/dash/src/components/{TotalsBadge.vue → TotalsValue.vue} +12 -12
- package/templates/dashboards/dash/src/dashboard.html +6 -1
- package/templates/dashboards/dash/src/test_collector.js +3732 -0
- package/templates/dashboards/dash/dist/js/app.a65a4c2c.js.map +0 -1
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
{$contentClass}
|
|
2
|
+
code
|
|
3
|
+
color lighten($textColor, 20%)
|
|
4
|
+
padding 0.25rem 0.5rem
|
|
5
|
+
margin 0
|
|
6
|
+
font-size 0.85em
|
|
7
|
+
background-color rgba(27,31,35,0.05)
|
|
8
|
+
border-radius 3px
|
|
9
|
+
.token
|
|
10
|
+
&.deleted
|
|
11
|
+
color #EC5975
|
|
12
|
+
&.inserted
|
|
13
|
+
color $accentColor
|
|
14
|
+
|
|
15
|
+
{$contentClass}
|
|
16
|
+
pre, pre[class*="language-"]
|
|
17
|
+
line-height 1.4
|
|
18
|
+
padding 1.25rem 1.5rem
|
|
19
|
+
margin 0.85rem 0
|
|
20
|
+
background-color $codeBgColor
|
|
21
|
+
border-radius 6px
|
|
22
|
+
overflow auto
|
|
23
|
+
code
|
|
24
|
+
color #fff
|
|
25
|
+
padding 0
|
|
26
|
+
background-color transparent
|
|
27
|
+
border-radius 0
|
|
28
|
+
|
|
29
|
+
div[class*="language-"]
|
|
30
|
+
position relative
|
|
31
|
+
background-color $codeBgColor
|
|
32
|
+
border-radius 6px
|
|
33
|
+
.highlight-lines
|
|
34
|
+
user-select none
|
|
35
|
+
padding-top 1.3rem
|
|
36
|
+
position absolute
|
|
37
|
+
top 0
|
|
38
|
+
left 0
|
|
39
|
+
width 100%
|
|
40
|
+
line-height 1.4
|
|
41
|
+
.highlighted
|
|
42
|
+
background-color rgba(0, 0, 0, 66%)
|
|
43
|
+
pre, pre[class*="language-"]
|
|
44
|
+
background transparent
|
|
45
|
+
position relative
|
|
46
|
+
z-index 1
|
|
47
|
+
&::before
|
|
48
|
+
position absolute
|
|
49
|
+
z-index 3
|
|
50
|
+
top 0.8em
|
|
51
|
+
right 1em
|
|
52
|
+
font-size 0.75rem
|
|
53
|
+
color rgba(255, 255, 255, 0.4)
|
|
54
|
+
&:not(.line-numbers-mode)
|
|
55
|
+
.line-numbers-wrapper
|
|
56
|
+
display none
|
|
57
|
+
&.line-numbers-mode
|
|
58
|
+
.highlight-lines .highlighted
|
|
59
|
+
position relative
|
|
60
|
+
&:before
|
|
61
|
+
content ' '
|
|
62
|
+
position absolute
|
|
63
|
+
z-index 3
|
|
64
|
+
left 0
|
|
65
|
+
top 0
|
|
66
|
+
display block
|
|
67
|
+
width $lineNumbersWrapperWidth
|
|
68
|
+
height 100%
|
|
69
|
+
background-color rgba(0, 0, 0, 66%)
|
|
70
|
+
pre
|
|
71
|
+
padding-left $lineNumbersWrapperWidth + 1 rem
|
|
72
|
+
vertical-align middle
|
|
73
|
+
.line-numbers-wrapper
|
|
74
|
+
position absolute
|
|
75
|
+
top 0
|
|
76
|
+
width $lineNumbersWrapperWidth
|
|
77
|
+
text-align center
|
|
78
|
+
color rgba(255, 255, 255, 0.3)
|
|
79
|
+
padding 1.25rem 0
|
|
80
|
+
line-height 1.4
|
|
81
|
+
br
|
|
82
|
+
user-select none
|
|
83
|
+
.line-number
|
|
84
|
+
position relative
|
|
85
|
+
z-index 4
|
|
86
|
+
user-select none
|
|
87
|
+
font-size 0.85em
|
|
88
|
+
&::after
|
|
89
|
+
content ''
|
|
90
|
+
position absolute
|
|
91
|
+
z-index 2
|
|
92
|
+
top 0
|
|
93
|
+
left 0
|
|
94
|
+
width $lineNumbersWrapperWidth
|
|
95
|
+
height 100%
|
|
96
|
+
border-radius 6px 0 0 6px
|
|
97
|
+
border-right 1px solid rgba(0, 0, 0, 66%)
|
|
98
|
+
background-color $codeBgColor
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
for lang in $codeLang
|
|
102
|
+
div{'[class~="language-' + lang + '"]'}
|
|
103
|
+
&:before
|
|
104
|
+
content ('' + lang)
|
|
105
|
+
|
|
106
|
+
div[class~="language-javascript"]
|
|
107
|
+
&:before
|
|
108
|
+
content "js"
|
|
109
|
+
|
|
110
|
+
div[class~="language-typescript"]
|
|
111
|
+
&:before
|
|
112
|
+
content "ts"
|
|
113
|
+
|
|
114
|
+
div[class~="language-markup"]
|
|
115
|
+
&:before
|
|
116
|
+
content "html"
|
|
117
|
+
|
|
118
|
+
div[class~="language-markdown"]
|
|
119
|
+
&:before
|
|
120
|
+
content "md"
|
|
121
|
+
|
|
122
|
+
div[class~="language-json"]:before
|
|
123
|
+
content "json"
|
|
124
|
+
|
|
125
|
+
div[class~="language-ruby"]:before
|
|
126
|
+
content "rb"
|
|
127
|
+
|
|
128
|
+
div[class~="language-python"]:before
|
|
129
|
+
content "py"
|
|
130
|
+
|
|
131
|
+
div[class~="language-bash"]:before
|
|
132
|
+
content "sh"
|
|
133
|
+
|
|
134
|
+
div[class~="language-php"]:before
|
|
135
|
+
content "php"
|
|
136
|
+
|
|
137
|
+
@import '~prismjs/themes/prism-tomorrow.css'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$contentClass = '.theme-default-content'
|
package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/styles/custom-blocks.styl
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
.custom-block
|
|
2
|
+
.custom-block-title
|
|
3
|
+
font-weight 600
|
|
4
|
+
margin-bottom -0.4rem
|
|
5
|
+
&.tip, &.warning, &.danger
|
|
6
|
+
padding .1rem 1.5rem
|
|
7
|
+
border-left-width .5rem
|
|
8
|
+
border-left-style solid
|
|
9
|
+
margin 1rem 0
|
|
10
|
+
&.tip
|
|
11
|
+
background-color #f3f5f7
|
|
12
|
+
border-color #42b983
|
|
13
|
+
&.warning
|
|
14
|
+
background-color rgba(255,229,100,.3)
|
|
15
|
+
border-color darken(#ffe564, 35%)
|
|
16
|
+
color darken(#ffe564, 70%)
|
|
17
|
+
.custom-block-title
|
|
18
|
+
color darken(#ffe564, 50%)
|
|
19
|
+
a
|
|
20
|
+
color $textColor
|
|
21
|
+
&.danger
|
|
22
|
+
background-color #ffe6e6
|
|
23
|
+
border-color darken(red, 20%)
|
|
24
|
+
color darken(red, 70%)
|
|
25
|
+
.custom-block-title
|
|
26
|
+
color darken(red, 40%)
|
|
27
|
+
a
|
|
28
|
+
color $textColor
|
|
29
|
+
&.details
|
|
30
|
+
display block
|
|
31
|
+
position relative
|
|
32
|
+
border-radius 2px
|
|
33
|
+
margin 1.6em 0
|
|
34
|
+
padding 1.6em
|
|
35
|
+
background-color #eee
|
|
36
|
+
h4
|
|
37
|
+
margin-top 0
|
|
38
|
+
figure, p
|
|
39
|
+
&:last-child
|
|
40
|
+
margin-bottom 0
|
|
41
|
+
padding-bottom 0
|
|
42
|
+
summary
|
|
43
|
+
outline none
|
|
44
|
+
cursor pointer
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
@require './config'
|
|
2
|
+
@require './code'
|
|
3
|
+
@require './custom-blocks'
|
|
4
|
+
@require './arrow'
|
|
5
|
+
@require './wrapper'
|
|
6
|
+
@require './toc'
|
|
7
|
+
|
|
8
|
+
html, body
|
|
9
|
+
padding 0
|
|
10
|
+
margin 0
|
|
11
|
+
background-color #fff
|
|
12
|
+
|
|
13
|
+
body
|
|
14
|
+
font-family -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif
|
|
15
|
+
-webkit-font-smoothing antialiased
|
|
16
|
+
-moz-osx-font-smoothing grayscale
|
|
17
|
+
font-size 16px
|
|
18
|
+
color $textColor
|
|
19
|
+
|
|
20
|
+
.page
|
|
21
|
+
padding-left $sidebarWidth
|
|
22
|
+
|
|
23
|
+
.navbar
|
|
24
|
+
position fixed
|
|
25
|
+
z-index 20
|
|
26
|
+
top 0
|
|
27
|
+
left 0
|
|
28
|
+
right 0
|
|
29
|
+
height $navbarHeight
|
|
30
|
+
background-color #fff
|
|
31
|
+
box-sizing border-box
|
|
32
|
+
border-bottom 1px solid $borderColor
|
|
33
|
+
|
|
34
|
+
.sidebar-mask
|
|
35
|
+
position fixed
|
|
36
|
+
z-index 9
|
|
37
|
+
top 0
|
|
38
|
+
left 0
|
|
39
|
+
width 100vw
|
|
40
|
+
height 100vh
|
|
41
|
+
display none
|
|
42
|
+
|
|
43
|
+
.sidebar
|
|
44
|
+
font-size 16px
|
|
45
|
+
background-color #fff
|
|
46
|
+
width $sidebarWidth
|
|
47
|
+
position fixed
|
|
48
|
+
z-index 10
|
|
49
|
+
margin 0
|
|
50
|
+
top $navbarHeight
|
|
51
|
+
left 0
|
|
52
|
+
bottom 0
|
|
53
|
+
box-sizing border-box
|
|
54
|
+
border-right 1px solid $borderColor
|
|
55
|
+
overflow-y auto
|
|
56
|
+
|
|
57
|
+
{$contentClass}:not(.custom)
|
|
58
|
+
@extend $wrapper
|
|
59
|
+
> *:first-child
|
|
60
|
+
margin-top $navbarHeight
|
|
61
|
+
|
|
62
|
+
a:hover
|
|
63
|
+
text-decoration underline
|
|
64
|
+
|
|
65
|
+
p.demo
|
|
66
|
+
padding 1rem 1.5rem
|
|
67
|
+
border 1px solid #ddd
|
|
68
|
+
border-radius 4px
|
|
69
|
+
|
|
70
|
+
img
|
|
71
|
+
max-width 100%
|
|
72
|
+
|
|
73
|
+
{$contentClass}.custom
|
|
74
|
+
padding 0
|
|
75
|
+
margin 0
|
|
76
|
+
|
|
77
|
+
img
|
|
78
|
+
max-width 100%
|
|
79
|
+
|
|
80
|
+
a
|
|
81
|
+
font-weight 500
|
|
82
|
+
color $accentColor
|
|
83
|
+
text-decoration none
|
|
84
|
+
|
|
85
|
+
p a code
|
|
86
|
+
font-weight 400
|
|
87
|
+
color $accentColor
|
|
88
|
+
|
|
89
|
+
kbd
|
|
90
|
+
background #eee
|
|
91
|
+
border solid 0.15rem #ddd
|
|
92
|
+
border-bottom solid 0.25rem #ddd
|
|
93
|
+
border-radius 0.15rem
|
|
94
|
+
padding 0 0.15em
|
|
95
|
+
|
|
96
|
+
blockquote
|
|
97
|
+
font-size 1rem
|
|
98
|
+
color #999;
|
|
99
|
+
border-left .2rem solid #dfe2e5
|
|
100
|
+
margin 1rem 0
|
|
101
|
+
padding .25rem 0 .25rem 1rem
|
|
102
|
+
|
|
103
|
+
& > p
|
|
104
|
+
margin 0
|
|
105
|
+
|
|
106
|
+
ul, ol
|
|
107
|
+
padding-left 1.2em
|
|
108
|
+
|
|
109
|
+
strong
|
|
110
|
+
font-weight 600
|
|
111
|
+
|
|
112
|
+
h1, h2, h3, h4, h5, h6
|
|
113
|
+
font-weight 600
|
|
114
|
+
line-height 1.25
|
|
115
|
+
|
|
116
|
+
{$contentClass}:not(.custom) > &
|
|
117
|
+
margin-top (0.5rem - $navbarHeight)
|
|
118
|
+
padding-top ($navbarHeight + 1rem)
|
|
119
|
+
margin-bottom 0
|
|
120
|
+
|
|
121
|
+
&:first-child
|
|
122
|
+
margin-top -1.5rem
|
|
123
|
+
margin-bottom 1rem
|
|
124
|
+
|
|
125
|
+
+ p, + pre, + .custom-block
|
|
126
|
+
margin-top 2rem
|
|
127
|
+
|
|
128
|
+
&:focus .header-anchor,
|
|
129
|
+
&:hover .header-anchor
|
|
130
|
+
opacity: 1
|
|
131
|
+
|
|
132
|
+
h1
|
|
133
|
+
font-size 2.2rem
|
|
134
|
+
|
|
135
|
+
h2
|
|
136
|
+
font-size 1.65rem
|
|
137
|
+
padding-bottom .3rem
|
|
138
|
+
border-bottom 1px solid $borderColor
|
|
139
|
+
|
|
140
|
+
h3
|
|
141
|
+
font-size 1.35rem
|
|
142
|
+
|
|
143
|
+
a.header-anchor
|
|
144
|
+
font-size 0.85em
|
|
145
|
+
float left
|
|
146
|
+
margin-left -0.87em
|
|
147
|
+
padding-right 0.23em
|
|
148
|
+
margin-top 0.125em
|
|
149
|
+
opacity 0
|
|
150
|
+
|
|
151
|
+
&:focus,
|
|
152
|
+
&:hover
|
|
153
|
+
text-decoration none
|
|
154
|
+
|
|
155
|
+
code, kbd, .line-number
|
|
156
|
+
font-family source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace
|
|
157
|
+
|
|
158
|
+
p, ul, ol
|
|
159
|
+
line-height 1.7
|
|
160
|
+
|
|
161
|
+
hr
|
|
162
|
+
border 0
|
|
163
|
+
border-top 1px solid $borderColor
|
|
164
|
+
|
|
165
|
+
table
|
|
166
|
+
border-collapse collapse
|
|
167
|
+
margin 1rem 0
|
|
168
|
+
display: block
|
|
169
|
+
overflow-x: auto
|
|
170
|
+
|
|
171
|
+
tr
|
|
172
|
+
border-top 1px solid #dfe2e5
|
|
173
|
+
|
|
174
|
+
&:nth-child(2n)
|
|
175
|
+
background-color #f6f8fa
|
|
176
|
+
|
|
177
|
+
th, td
|
|
178
|
+
border 1px solid #dfe2e5
|
|
179
|
+
padding .6em 1em
|
|
180
|
+
|
|
181
|
+
.theme-container
|
|
182
|
+
&.sidebar-open
|
|
183
|
+
.sidebar-mask
|
|
184
|
+
display: block
|
|
185
|
+
|
|
186
|
+
&.no-navbar
|
|
187
|
+
{$contentClass}:not(.custom) > h1, h2, h3, h4, h5, h6
|
|
188
|
+
margin-top 1.5rem
|
|
189
|
+
padding-top 0
|
|
190
|
+
|
|
191
|
+
.sidebar
|
|
192
|
+
top 0
|
|
193
|
+
|
|
194
|
+
@media (min-width: ($MQMobile + 1px))
|
|
195
|
+
.theme-container.no-sidebar
|
|
196
|
+
.sidebar
|
|
197
|
+
display none
|
|
198
|
+
|
|
199
|
+
.page
|
|
200
|
+
padding-left 0
|
|
201
|
+
|
|
202
|
+
@require 'mobile.styl'
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
@require './config'
|
|
2
|
+
|
|
3
|
+
$mobileSidebarWidth = $sidebarWidth * 0.82
|
|
4
|
+
|
|
5
|
+
// narrow desktop / iPad
|
|
6
|
+
@media (max-width: $MQNarrow)
|
|
7
|
+
.sidebar
|
|
8
|
+
font-size 15px
|
|
9
|
+
width $mobileSidebarWidth
|
|
10
|
+
.page
|
|
11
|
+
padding-left $mobileSidebarWidth
|
|
12
|
+
|
|
13
|
+
// wide mobile
|
|
14
|
+
@media (max-width: $MQMobile)
|
|
15
|
+
.sidebar
|
|
16
|
+
top 0
|
|
17
|
+
padding-top $navbarHeight
|
|
18
|
+
transform translateX(-100%)
|
|
19
|
+
transition transform .2s ease
|
|
20
|
+
.page
|
|
21
|
+
padding-left 0
|
|
22
|
+
.theme-container
|
|
23
|
+
&.sidebar-open
|
|
24
|
+
.sidebar
|
|
25
|
+
transform translateX(0)
|
|
26
|
+
&.no-navbar
|
|
27
|
+
.sidebar
|
|
28
|
+
padding-top: 0
|
|
29
|
+
|
|
30
|
+
// narrow mobile
|
|
31
|
+
@media (max-width: $MQMobileNarrow)
|
|
32
|
+
h1
|
|
33
|
+
font-size 1.9rem
|
|
34
|
+
{$contentClass}
|
|
35
|
+
div[class*="language-"]
|
|
36
|
+
margin 0.85rem -1.5rem
|
|
37
|
+
border-radius 0
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
export const hashRE = /#.*$/
|
|
2
|
+
export const extRE = /\.(md|html)$/
|
|
3
|
+
export const endingSlashRE = /\/$/
|
|
4
|
+
export const outboundRE = /^([a-z]+:|\/recordm\/)/i
|
|
5
|
+
|
|
6
|
+
export function normalize (path) {
|
|
7
|
+
return decodeURI(path)
|
|
8
|
+
.replace(hashRE, '')
|
|
9
|
+
.replace(extRE, '')
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export function getHash (path) {
|
|
13
|
+
const match = path.match(hashRE)
|
|
14
|
+
if (match) {
|
|
15
|
+
return match[0]
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export function isExternal (path) {
|
|
20
|
+
return outboundRE.test(path)
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export function isMailto (path) {
|
|
24
|
+
return /^mailto:/.test(path)
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export function isTel (path) {
|
|
28
|
+
return /^tel:/.test(path)
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export function ensureExt (path) {
|
|
32
|
+
if (isExternal(path)) {
|
|
33
|
+
return path
|
|
34
|
+
}
|
|
35
|
+
const hashMatch = path.match(hashRE)
|
|
36
|
+
const hash = hashMatch ? hashMatch[0] : ''
|
|
37
|
+
const normalized = normalize(path)
|
|
38
|
+
|
|
39
|
+
if (endingSlashRE.test(normalized)) {
|
|
40
|
+
return path
|
|
41
|
+
}
|
|
42
|
+
return normalized + '.html' + hash
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function isActive (route, path) {
|
|
46
|
+
const routeHash = decodeURIComponent(route.hash)
|
|
47
|
+
const linkHash = getHash(path)
|
|
48
|
+
if (linkHash && routeHash !== linkHash) {
|
|
49
|
+
return false
|
|
50
|
+
}
|
|
51
|
+
const routePath = normalize(route.path)
|
|
52
|
+
const pagePath = normalize(path)
|
|
53
|
+
return routePath === pagePath
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function resolvePage (pages, rawPath, base) {
|
|
57
|
+
if (isExternal(rawPath)) {
|
|
58
|
+
return {
|
|
59
|
+
type: 'external',
|
|
60
|
+
path: rawPath
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
if (base) {
|
|
64
|
+
rawPath = resolvePath(rawPath, base)
|
|
65
|
+
}
|
|
66
|
+
const path = normalize(rawPath)
|
|
67
|
+
for (let i = 0; i < pages.length; i++) {
|
|
68
|
+
if (normalize(pages[i].regularPath) === path) {
|
|
69
|
+
return Object.assign({}, pages[i], {
|
|
70
|
+
type: 'page',
|
|
71
|
+
path: ensureExt(pages[i].path)
|
|
72
|
+
})
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
console.error(`[vuepress] No matching page found for sidebar item "${rawPath}"`)
|
|
76
|
+
return {}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
function resolvePath (relative, base, append) {
|
|
80
|
+
const firstChar = relative.charAt(0)
|
|
81
|
+
if (firstChar === '/') {
|
|
82
|
+
return relative
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
if (firstChar === '?' || firstChar === '#') {
|
|
86
|
+
return base + relative
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
const stack = base.split('/')
|
|
90
|
+
|
|
91
|
+
// remove trailing segment if:
|
|
92
|
+
// - not appending
|
|
93
|
+
// - appending to trailing slash (last segment is empty)
|
|
94
|
+
if (!append || !stack[stack.length - 1]) {
|
|
95
|
+
stack.pop()
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
// resolve relative path
|
|
99
|
+
const segments = relative.replace(/^\//, '').split('/')
|
|
100
|
+
for (let i = 0; i < segments.length; i++) {
|
|
101
|
+
const segment = segments[i]
|
|
102
|
+
if (segment === '..') {
|
|
103
|
+
stack.pop()
|
|
104
|
+
} else if (segment !== '.') {
|
|
105
|
+
stack.push(segment)
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
// ensure leading slash
|
|
110
|
+
if (stack[0] !== '') {
|
|
111
|
+
stack.unshift('')
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
return stack.join('/')
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* @param { Page } page
|
|
119
|
+
* @param { string } regularPath
|
|
120
|
+
* @param { SiteData } site
|
|
121
|
+
* @param { string } localePath
|
|
122
|
+
* @returns { SidebarGroup }
|
|
123
|
+
*/
|
|
124
|
+
export function resolveSidebarItems (page, regularPath, site, localePath) {
|
|
125
|
+
const { pages, themeConfig } = site
|
|
126
|
+
|
|
127
|
+
const localeConfig = localePath && themeConfig.locales
|
|
128
|
+
? themeConfig.locales[localePath] || themeConfig
|
|
129
|
+
: themeConfig
|
|
130
|
+
|
|
131
|
+
const pageSidebarConfig = page.frontmatter.sidebar || localeConfig.sidebar || themeConfig.sidebar
|
|
132
|
+
if (pageSidebarConfig === 'auto') {
|
|
133
|
+
return resolveHeaders(page)
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
const sidebarConfig = localeConfig.sidebar || themeConfig.sidebar
|
|
137
|
+
if (!sidebarConfig) {
|
|
138
|
+
return []
|
|
139
|
+
} else {
|
|
140
|
+
const { base, config } = resolveMatchingConfig(regularPath, sidebarConfig)
|
|
141
|
+
if (config === 'auto') {
|
|
142
|
+
return resolveHeaders(page)
|
|
143
|
+
}
|
|
144
|
+
return config
|
|
145
|
+
? config.map(item => resolveItem(item, pages, base))
|
|
146
|
+
: []
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* @param { Page } page
|
|
152
|
+
* @returns { SidebarGroup }
|
|
153
|
+
*/
|
|
154
|
+
function resolveHeaders (page) {
|
|
155
|
+
const headers = groupHeaders(page.headers || [])
|
|
156
|
+
return [{
|
|
157
|
+
type: 'group',
|
|
158
|
+
collapsable: false,
|
|
159
|
+
title: page.title,
|
|
160
|
+
path: null,
|
|
161
|
+
children: headers.map(h => ({
|
|
162
|
+
type: 'auto',
|
|
163
|
+
title: h.title,
|
|
164
|
+
basePath: page.path,
|
|
165
|
+
path: page.path + '#' + h.slug,
|
|
166
|
+
children: h.children || []
|
|
167
|
+
}))
|
|
168
|
+
}]
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export function groupHeaders (headers) {
|
|
172
|
+
// group h3s under h2
|
|
173
|
+
headers = headers.map(h => Object.assign({}, h))
|
|
174
|
+
let lastH2
|
|
175
|
+
headers.forEach(h => {
|
|
176
|
+
if (h.level === 2) {
|
|
177
|
+
lastH2 = h
|
|
178
|
+
} else if (lastH2) {
|
|
179
|
+
(lastH2.children || (lastH2.children = [])).push(h)
|
|
180
|
+
}
|
|
181
|
+
})
|
|
182
|
+
return headers.filter(h => h.level === 2)
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export function resolveNavLinkItem (linkItem) {
|
|
186
|
+
return Object.assign(linkItem, {
|
|
187
|
+
type: linkItem.items && linkItem.items.length ? 'links' : 'link'
|
|
188
|
+
})
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* @param { Route } route
|
|
193
|
+
* @param { Array<string|string[]> | Array<SidebarGroup> | [link: string]: SidebarConfig } config
|
|
194
|
+
* @returns { base: string, config: SidebarConfig }
|
|
195
|
+
*/
|
|
196
|
+
export function resolveMatchingConfig (regularPath, config) {
|
|
197
|
+
if (Array.isArray(config)) {
|
|
198
|
+
return {
|
|
199
|
+
base: '/',
|
|
200
|
+
config: config
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
for (const base in config) {
|
|
204
|
+
if (ensureEndingSlash(regularPath).indexOf(encodeURI(base)) === 0) {
|
|
205
|
+
return {
|
|
206
|
+
base,
|
|
207
|
+
config: config[base]
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
return {}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
function ensureEndingSlash (path) {
|
|
215
|
+
return /(\.html|\/)$/.test(path)
|
|
216
|
+
? path
|
|
217
|
+
: path + '/'
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
function resolveItem (item, pages, base, groupDepth = 1) {
|
|
221
|
+
if (typeof item === 'string') {
|
|
222
|
+
return resolvePage(pages, item, base)
|
|
223
|
+
} else if (Array.isArray(item)) {
|
|
224
|
+
return Object.assign(resolvePage(pages, item[0], base), {
|
|
225
|
+
title: item[1]
|
|
226
|
+
})
|
|
227
|
+
} else {
|
|
228
|
+
const children = item.children || []
|
|
229
|
+
if (children.length === 0 && item.path) {
|
|
230
|
+
return Object.assign(resolvePage(pages, item.path, base), {
|
|
231
|
+
title: item.title
|
|
232
|
+
})
|
|
233
|
+
}
|
|
234
|
+
return {
|
|
235
|
+
type: 'group',
|
|
236
|
+
path: item.path,
|
|
237
|
+
title: item.title,
|
|
238
|
+
sidebarDepth: item.sidebarDepth,
|
|
239
|
+
initialOpenGroupIndex: item.initialOpenGroupIndex,
|
|
240
|
+
children: children.map(child => resolveItem(child, pages, base, groupDepth + 1)),
|
|
241
|
+
collapsable: item.collapsable !== false
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"id":null,"name":"Dashboard","description":null,"duplicable":null,"state":"enabled","fieldDefinitions":[{"id":null,"name":"Dashboard Info","required":null,"description":"$group","condition":null,"duplicable":false,"fields":[],"order":0,"rootField":true,"restricted":false,"defaultValue":null},{"id":null,"name":"Page Title","required":null,"description":"$expanded $instanceLabel","condition":null,"duplicable":false,"fields":[],"order":1,"rootField":true,"restricted":false,"defaultValue":null},{"id":null,"name":"Grid Columns","required":"mandatory","description":"$number $default(12)","condition":null,"duplicable":false,"fields":[],"order":2,"rootField":true,"restricted":false,"defaultValue":"12"},{"id":null,"name":"Max Width","required":"mandatory","description":"$[xl,2xl,3xl,4xl,5xl,*6xl,full]","condition":null,"duplicable":false,"fields":[],"order":3,"rootField":true,"restricted":false,"defaultValue":"6xl"},{"id":null,"name":"Permission","required":null,"description":"What groups are allowed to see this dashboard","condition":null,"duplicable":false,"fields":[],"order":4,"rootField":true,"restricted":false,"defaultValue":null},{"id":null,"name":"Boards","required":null,"description":"$group","condition":null,"duplicable":false,"fields":[],"order":5,"rootField":true,"restricted":false,"defaultValue":null},{"id":null,"name":"Board Title","required":null,"description":"$instanceDescription $style[dualColumn]","condition":null,"duplicable":true,"fields":[{"id":null,"name":"Col Span","required":null,"description":"$number $default(3) ","condition":null,"duplicable":false,"fields":[],"order":7,"rootField":false,"restricted":false,"defaultValue":"3"},{"id":null,"name":"Row Span","required":null,"description":"$number $default(1) ","condition":null,"duplicable":false,"fields":[],"order":8,"rootField":false,"restricted":false,"defaultValue":"1"},{"id":null,"name":"Component","required":null,"description":"$[Totals,Menu,Kibana,Filter,Title] $instanceDescription $style[singleColumn] $expanded","condition":null,"duplicable":true,"fields":[{"id":null,"name":"Header","required":null,"description":"$group ","condition":"=Totals","duplicable":false,"fields":[{"id":null,"name":"Text","required":null,"description":null,"condition":null,"duplicable":true,"fields":[],"order":11,"rootField":false,"restricted":false,"defaultValue":null},{"id":null,"name":"Style Header","required":null,"description":null,"condition":null,"duplicable":false,"fields":[],"order":12,"rootField":false,"restricted":false,"defaultValue":null}],"order":10,"rootField":false,"restricted":false,"defaultValue":null},{"id":null,"name":"Line","required":null,"description":null,"condition":"=Totals","duplicable":true,"fields":[{"id":null,"name":"Value","required":null,"description":"$[*definitionCount,domainCount,fieldSum,link] ","condition":null,"duplicable":true,"fields":[{"id":null,"name":"Style Value","required":null,"description":"$[*Info,Success,Warning,Important]","condition":null,"duplicable":false,"fields":[],"order":15,"rootField":false,"restricted":false,"defaultValue":"Info"},{"id":null,"name":"Arg","required":null,"description":null,"condition":null,"duplicable":true,"fields":[],"order":16,"rootField":false,"restricted":false,"defaultValue":null}],"order":14,"rootField":false,"restricted":false,"defaultValue":"definitionCount"},{"id":null,"name":"Style Line","required":null,"description":null,"condition":null,"duplicable":false,"fields":[],"order":17,"rootField":false,"restricted":false,"defaultValue":null}],"order":13,"rootField":false,"restricted":false,"defaultValue":null},{"id":null,"name":"URL","required":null,"description":null,"condition":"=Kibana","duplicable":false,"fields":[],"order":18,"rootField":false,"restricted":false,"defaultValue":null},{"id":null,"name":"FilterID","required":null,"description":null,"condition":"=Kibana","duplicable":false,"fields":[],"order":19,"rootField":false,"restricted":false,"defaultValue":null},{"id":null,"name":"Text","required":null,"description":null,"condition":"=Menu","duplicable":true,"fields":[{"id":null,"name":"Link","required":null,"description":null,"condition":null,"duplicable":false,"fields":[],"order":21,"rootField":false,"restricted":false,"defaultValue":null},{"id":null,"name":"Style Text","required":null,"description":null,"condition":null,"duplicable":false,"fields":[],"order":22,"rootField":false,"restricted":false,"defaultValue":null}],"order":20,"rootField":false,"restricted":false,"defaultValue":null},{"id":null,"name":"FilterID","required":null,"description":null,"condition":"=Filter","duplicable":false,"fields":[],"order":23,"rootField":false,"restricted":false,"defaultValue":null},{"id":null,"name":"subtype","required":null,"description":"$[List,Text,Date]","condition":"=Filter","duplicable":true,"fields":[{"id":null,"name":"Alternatives","required":null,"description":null,"condition":"=List","duplicable":false,"fields":[],"order":25,"rootField":false,"restricted":false,"defaultValue":null},{"id":null,"name":"DateFilterType","required":null,"description":null,"condition":"=Date","duplicable":false,"fields":[],"order":26,"rootField":false,"restricted":false,"defaultValue":null}],"order":24,"rootField":false,"restricted":false,"defaultValue":null},{"id":null,"name":"Query","required":null,"description":null,"condition":"=MD List","duplicable":false,"fields":[],"order":27,"rootField":false,"restricted":false,"defaultValue":null},{"id":null,"name":"Title","required":null,"description":null,"condition":"=Title","duplicable":false,"fields":[],"order":28,"rootField":false,"restricted":false,"defaultValue":null}],"order":9,"rootField":false,"restricted":false,"defaultValue":null}],"order":6,"rootField":true,"restricted":false,"defaultValue":null}],"version":null}
|