cob-cli 2.25.0 → 2.27.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 (221) hide show
  1. package/bin/cob-cli.js +6 -7
  2. package/bin/handleAutoComplete.js +3 -4
  3. package/lib/commands/customize.js +216 -63
  4. package/package.json +3 -2
  5. package/.gitmodules +0 -27
  6. package/.vscode/launch.json +0 -106
  7. package/README.Development.md +0 -294
  8. package/README.publish.md +0 -10
  9. package/customizations/backend.email.js +0 -10
  10. package/customizations/backend.js +0 -14
  11. package/customizations/backend.updateField.js +0 -11
  12. package/customizations/backend.vuepress.js +0 -35
  13. package/customizations/dashboard.dash.js +0 -14
  14. package/customizations/dashboard.js +0 -14
  15. package/customizations/dashboard.simple.js +0 -12
  16. package/customizations/dashboard.vue.empty.js +0 -12
  17. package/customizations/dashboard.vue.grid.js +0 -10
  18. package/customizations/dashboard.vue.js +0 -14
  19. package/customizations/dashboard.vue.menuAndGrid.js +0 -10
  20. package/customizations/frontend.common.js +0 -16
  21. package/customizations/frontend.easy.js +0 -16
  22. package/customizations/frontend.formatList.currency.js +0 -17
  23. package/customizations/frontend.formatList.js +0 -13
  24. package/customizations/frontend.js +0 -14
  25. package/customizations/importer.js +0 -10
  26. package/customizations/keywords.audit.js +0 -18
  27. package/customizations/keywords.calc.js +0 -18
  28. package/customizations/keywords.image.js +0 -16
  29. package/customizations/keywords.js +0 -17
  30. package/customizations/keywords.kibana.js +0 -16
  31. package/customizations/keywords.log.js +0 -18
  32. package/customizations/keywords.styleResults.js +0 -18
  33. package/lib/task_lists/customize_copy.js +0 -51
  34. package/lib/task_lists/customize_mergeFiles.js +0 -42
  35. package/lib/task_lists/customize_questions.js +0 -40
  36. package/templates/backend/vuepress/integrationm/actions/getVuePressDoc.groovy +0 -74
  37. package/templates/backend/vuepress/integrationm/actions/getVuePressSidebarConfig.groovy +0 -42
  38. package/templates/backend/vuepress/integrationm/actions/getVuePressSidebarRootElements.groovy +0 -17
  39. package/templates/backend/vuepress/others/vuepress/definition_contents_v234.json +0 -619
  40. package/templates/backend/vuepress/others/vuepress/nginx/README.md +0 -28
  41. package/templates/backend/vuepress/others/vuepress/package-lock.json +0 -29656
  42. package/templates/backend/vuepress/others/vuepress/package.json +0 -24
  43. package/templates/backend/vuepress/others/vuepress/src/.vuepress/components/DescriptVideo.vue +0 -22
  44. package/templates/backend/vuepress/others/vuepress/src/.vuepress/components/Graph.vue +0 -124
  45. package/templates/backend/vuepress/others/vuepress/src/.vuepress/components/ReadingTime.vue +0 -26
  46. package/templates/backend/vuepress/others/vuepress/src/.vuepress/components/References.vue +0 -228
  47. package/templates/backend/vuepress/others/vuepress/src/.vuepress/components/RestrictedContent.vue +0 -77
  48. package/templates/backend/vuepress/others/vuepress/src/.vuepress/config.js +0 -101
  49. package/templates/backend/vuepress/others/vuepress/src/.vuepress/config.json +0 -31
  50. package/templates/backend/vuepress/others/vuepress/src/.vuepress/enhanceApp.js +0 -14
  51. package/templates/backend/vuepress/others/vuepress/src/.vuepress/nav/getNavTranslated.js +0 -52
  52. package/templates/backend/vuepress/others/vuepress/src/.vuepress/plugins/References.js +0 -96
  53. package/templates/backend/vuepress/others/vuepress/src/.vuepress/public/Logo-Cult-of-Bits-400x400-1.png +0 -0
  54. package/templates/backend/vuepress/others/vuepress/src/.vuepress/public/favicon-cob.png +0 -0
  55. package/templates/backend/vuepress/others/vuepress/src/.vuepress/public/logo.png +0 -0
  56. package/templates/backend/vuepress/others/vuepress/src/.vuepress/styles/index.styl +0 -39
  57. package/templates/backend/vuepress/others/vuepress/src/.vuepress/styles/palette.styl +0 -17
  58. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/LICENSE +0 -21
  59. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/README.md +0 -11
  60. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/AlgoliaSearchBox.vue +0 -172
  61. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/DropdownLink.vue +0 -252
  62. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/DropdownTransition.vue +0 -33
  63. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/Home.vue +0 -134
  64. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/NavLink.vue +0 -98
  65. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/NavLinks.vue +0 -165
  66. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/Navbar.vue +0 -140
  67. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/Page.vue +0 -31
  68. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/PageEdit.vue +0 -119
  69. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/PageNav.vue +0 -163
  70. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/Sidebar.vue +0 -64
  71. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/SidebarButton.vue +0 -40
  72. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/SidebarGroup.vue +0 -144
  73. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/SidebarLink.vue +0 -140
  74. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/SidebarLinks.vue +0 -114
  75. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/global-components/Badge.vue +0 -44
  76. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/global-components/CodeBlock.vue +0 -41
  77. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/global-components/CodeGroup.vue +0 -120
  78. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/index.js +0 -59
  79. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/layouts/404.vue +0 -30
  80. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/layouts/Layout.vue +0 -151
  81. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/noopModule.js +0 -1
  82. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/package.json +0 -44
  83. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/styles/arrow.styl +0 -22
  84. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/styles/code.styl +0 -137
  85. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/styles/config.styl +0 -1
  86. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/styles/custom-blocks.styl +0 -44
  87. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/styles/index.styl +0 -202
  88. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/styles/mobile.styl +0 -37
  89. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/styles/toc.styl +0 -3
  90. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/styles/wrapper.styl +0 -10
  91. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/util/index.js +0 -244
  92. package/templates/dashboards/cob-dashboard-html/demoDashboard.html +0 -18
  93. package/templates/dashboards/cob-dashboard-vue/package-lock.json +0 -25020
  94. package/templates/dashboards/cob-dashboard-vue/package.json +0 -21
  95. package/templates/dashboards/cob-dashboard-vue/src/App.vue +0 -26
  96. package/templates/dashboards/cob-dashboard-vue/src/dashboard.html +0 -31
  97. package/templates/dashboards/cob-dashboard-vue/src/main.js +0 -12
  98. package/templates/dashboards/cob-dashboard-vue/src/plugins/cobUiVueComponents.js +0 -6
  99. package/templates/dashboards/cob-dashboard-vue/src/plugins/vuetify.js +0 -9
  100. package/templates/dashboards/cob-dashboard-vue/vue.config.js +0 -104
  101. package/templates/dashboards/dash/dist/css/app.7b16c01a.css +0 -11
  102. package/templates/dashboards/dash/dist/dashboard.html +0 -25
  103. package/templates/dashboards/dash/dist/fonts/fa-brands-400.a78ffbbe.ttf +0 -0
  104. package/templates/dashboards/dash/dist/fonts/fa-brands-400.cd2b4095.woff2 +0 -0
  105. package/templates/dashboards/dash/dist/fonts/fa-regular-400.b1a1bebb.ttf +0 -0
  106. package/templates/dashboards/dash/dist/fonts/fa-regular-400.e8a1ba41.woff2 +0 -0
  107. package/templates/dashboards/dash/dist/fonts/fa-solid-900.55b416a8.woff2 +0 -0
  108. package/templates/dashboards/dash/dist/fonts/fa-solid-900.73820155.ttf +0 -0
  109. package/templates/dashboards/dash/dist/fonts/fa-v4compatibility.0d6f5f18.ttf +0 -0
  110. package/templates/dashboards/dash/dist/fonts/fa-v4compatibility.786e6b33.woff2 +0 -0
  111. package/templates/dashboards/dash/dist/js/app.13b950c8.js +0 -199
  112. package/templates/dashboards/dash/dist/js/app.13b950c8.js.map +0 -1
  113. package/templates/dashboards/dash/package-lock.json +0 -22646
  114. package/templates/dashboards/dash/package.json +0 -27
  115. package/templates/dashboards/dash/src/App.vue +0 -124
  116. package/templates/dashboards/dash/src/assets/css/all.min.css +0 -6
  117. package/templates/dashboards/dash/src/assets/webfonts/fa-brands-400.ttf +0 -0
  118. package/templates/dashboards/dash/src/assets/webfonts/fa-brands-400.woff2 +0 -0
  119. package/templates/dashboards/dash/src/assets/webfonts/fa-regular-400.ttf +0 -0
  120. package/templates/dashboards/dash/src/assets/webfonts/fa-regular-400.woff2 +0 -0
  121. package/templates/dashboards/dash/src/assets/webfonts/fa-solid-900.ttf +0 -0
  122. package/templates/dashboards/dash/src/assets/webfonts/fa-solid-900.woff2 +0 -0
  123. package/templates/dashboards/dash/src/assets/webfonts/fa-v4compatibility.ttf +0 -0
  124. package/templates/dashboards/dash/src/assets/webfonts/fa-v4compatibility.woff2 +0 -0
  125. package/templates/dashboards/dash/src/collector.js +0 -222
  126. package/templates/dashboards/dash/src/components/Attention.vue +0 -30
  127. package/templates/dashboards/dash/src/components/Board.vue +0 -35
  128. package/templates/dashboards/dash/src/components/Calendar.vue +0 -422
  129. package/templates/dashboards/dash/src/components/Dashboard.vue +0 -27
  130. package/templates/dashboards/dash/src/components/Filter.vue +0 -68
  131. package/templates/dashboards/dash/src/components/Kibana.vue +0 -138
  132. package/templates/dashboards/dash/src/components/Label.vue +0 -15
  133. package/templates/dashboards/dash/src/components/Menu.vue +0 -44
  134. package/templates/dashboards/dash/src/components/Totals.vue +0 -49
  135. package/templates/dashboards/dash/src/components/TotalsValue.vue +0 -59
  136. package/templates/dashboards/dash/src/components/shared/Instance.vue +0 -64
  137. package/templates/dashboards/dash/src/components/shared/Waiting.vue +0 -25
  138. package/templates/dashboards/dash/src/dashboard.html +0 -39
  139. package/templates/dashboards/dash/src/definition_dashboard_v0.json +0 -924
  140. package/templates/dashboards/dash/src/definition_dashboard_v1.json +0 -1
  141. package/templates/dashboards/dash/src/input.css +0 -9
  142. package/templates/dashboards/dash/src/main.js +0 -11
  143. package/templates/dashboards/dash/src/model/ComponentStatePersistence.js +0 -66
  144. package/templates/dashboards/dash/src/output.css +0 -314245
  145. package/templates/dashboards/dash/src/test_collector.js +0 -3719
  146. package/templates/dashboards/dash/src/utils/EsInstanceUtils.js +0 -8
  147. package/templates/dashboards/dash/tailwind.config.js +0 -12
  148. package/templates/dashboards/dash/vue.config.js +0 -104
  149. package/templates/frontend/common/templates/frontend/common/css/_dualColumn.css +0 -46
  150. package/templates/frontend/common/templates/frontend/common/css/_global.css +0 -19
  151. package/templates/frontend/common/templates/frontend/common/css/_hidden.css +0 -13
  152. package/templates/frontend/common/templates/frontend/common/css/_history.css +0 -13
  153. package/templates/frontend/common/templates/frontend/common/css/_mobile.css +0 -125
  154. package/templates/frontend/common/templates/frontend/common/css/customizations.__MERGE__.css +0 -5
  155. package/templates/frontend/common/templates/frontend/common/js/cob/_disable_save_onSubdetail.js +0 -11
  156. package/templates/frontend/common/templates/frontend/common/js/cob/_group_references.js +0 -22
  157. package/templates/frontend/common/templates/frontend/common/js/cob/_show_hidden.js +0 -35
  158. package/templates/frontend/common/templates/frontend/common/js/customizations2.__MERGE__.js +0 -3
  159. package/templates/frontend/common/templates/frontend/common/package.json +0 -3
  160. package/templates/frontend/easy/css/_easy/googlefonts.css +0 -360
  161. package/templates/frontend/easy/css/_easy/vuetify.cob-scoped.css +0 -10488
  162. package/templates/frontend/easy/js/_easy/lib/axios.min.js +0 -9
  163. package/templates/frontend/easy/js/_easy/lib/marked.min.js +0 -6
  164. package/templates/frontend/easy/js/_easy/lib/vue.js +0 -11912
  165. package/templates/frontend/easy/js/_easy/lib/vue.min.js +0 -6
  166. package/templates/frontend/easy/js/_easy/lib/vuetify.min.js +0 -6
  167. package/templates/frontend/easy/js/customizations2.__MERGE__.js +0 -22
  168. package/templates/frontend/easy/webapp/.browserslistrc +0 -2
  169. package/templates/frontend/easy/webapp/.eslintrc.js +0 -17
  170. package/templates/frontend/easy/webapp/README.md +0 -60
  171. package/templates/frontend/easy/webapp/babel.config.js +0 -5
  172. package/templates/frontend/easy/webapp/dist/css/app.a4fb91f8.css +0 -1
  173. package/templates/frontend/easy/webapp/dist/dashboard.html +0 -13
  174. package/templates/frontend/easy/webapp/dist/js/app.63a57dcd.js +0 -2
  175. package/templates/frontend/easy/webapp/dist/js/app.63a57dcd.js.map +0 -1
  176. package/templates/frontend/easy/webapp/package-lock.json +0 -32986
  177. package/templates/frontend/easy/webapp/package.json +0 -32
  178. package/templates/frontend/easy/webapp/postcss.config.js +0 -5
  179. package/templates/frontend/easy/webapp/public/dashboard.html +0 -13
  180. package/templates/frontend/easy/webapp/src/App.vue +0 -181
  181. package/templates/frontend/easy/webapp/src/assets/logo.png +0 -0
  182. package/templates/frontend/easy/webapp/src/components/HelloWorld.vue +0 -59
  183. package/templates/frontend/easy/webapp/src/components/PermBuilder.vue +0 -163
  184. package/templates/frontend/easy/webapp/src/components/PlanExecutor.vue +0 -225
  185. package/templates/frontend/easy/webapp/src/components/ProductPermBuilder.vue +0 -95
  186. package/templates/frontend/easy/webapp/src/components/RmDefinitionChooser.vue +0 -59
  187. package/templates/frontend/easy/webapp/src/components/RmDomainChooser.vue +0 -60
  188. package/templates/frontend/easy/webapp/src/components/RoleBuilder.vue +0 -73
  189. package/templates/frontend/easy/webapp/src/main.js +0 -19
  190. package/templates/frontend/easy/webapp/src/perm-templates.js +0 -189
  191. package/templates/frontend/easy/webapp/src/perms.js +0 -197
  192. package/templates/frontend/easy/webapp/vue.config.js +0 -66
  193. package/templates/frontend/formatList/currency/css/_format_currency.css +0 -11
  194. package/templates/frontend/formatList/currency/css/customizations.__MERGE__.css +0 -1
  195. package/templates/frontend/formatList/currency/js/cob/_format_currency.js +0 -11
  196. package/templates/frontend/formatList/currency/js/customizations2.__MERGE__.js +0 -1
  197. package/templates/frontend/formatList/currency/package.json +0 -3
  198. package/templates/gitignore +0 -14
  199. package/templates/keywords/audit/backend/scripts/_audit.groovy +0 -78
  200. package/templates/keywords/audit/frontend/js/cob/_audit.js +0 -24
  201. package/templates/keywords/audit/frontend/js/customizations2.__MERGE__.js +0 -1
  202. package/templates/keywords/audit/package.json +0 -3
  203. package/templates/keywords/calc/backend/scripts/_calc.groovy +0 -151
  204. package/templates/keywords/calc/frontend/js/cob/_calc.js +0 -193
  205. package/templates/keywords/calc/frontend/js/customizations2.__MERGE__.js +0 -1
  206. package/templates/keywords/calc/package.json +0 -3
  207. package/templates/keywords/image/frontend/js/cob/_image.js +0 -30
  208. package/templates/keywords/image/frontend/js/customizations2.__MERGE__.js +0 -1
  209. package/templates/keywords/image/package.json +0 -3
  210. package/templates/keywords/kibana/frontend/js/cob/_kibana.js +0 -58
  211. package/templates/keywords/kibana/frontend/js/customizations2.__MERGE__.js +0 -1
  212. package/templates/keywords/kibana/package.json +0 -3
  213. package/templates/keywords/log/backend/scripts/_log.groovy +0 -95
  214. package/templates/keywords/log/frontend/css/_log.css +0 -5
  215. package/templates/keywords/log/frontend/css/customizations.__MERGE__.css +0 -1
  216. package/templates/keywords/log/package.json +0 -3
  217. package/templates/keywords/styleResults/frontend/css/_styleResults.css +0 -86
  218. package/templates/keywords/styleResults/frontend/css/customizations.__MERGE__.css +0 -1
  219. package/templates/keywords/styleResults/frontend/js/cob/_styleResults.js +0 -38
  220. package/templates/keywords/styleResults/frontend/js/customizations2.__MERGE__.js +0 -1
  221. package/templates/keywords/styleResults/package.json +0 -3
@@ -1,137 +0,0 @@
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'
@@ -1 +0,0 @@
1
- $contentClass = '.theme-default-content'
@@ -1,44 +0,0 @@
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
@@ -1,202 +0,0 @@
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'
@@ -1,37 +0,0 @@
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
@@ -1,3 +0,0 @@
1
- .table-of-contents
2
- .badge
3
- vertical-align middle
@@ -1,10 +0,0 @@
1
- $wrapper
2
- max-width $contentWidth
3
- margin 0 auto
4
- padding 2rem 2.5rem
5
- padding-bottom: 2em
6
- @media (max-width: $MQNarrow)
7
- padding 2rem
8
- @media (max-width: $MQMobileNarrow)
9
- padding 1.5rem
10
-
@@ -1,244 +0,0 @@
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
- }
@@ -1,18 +0,0 @@
1
- <script src="https://cdn.jsdelivr.net/gh/cob/rest-api-wrapper@v2/dist/rest-api-wrapper.js"></script>
2
- <script src="https://cdn.jsdelivr.net/gh/cob/dashboard-info@v2/dist/dashboard-info.js"></script>
3
-
4
- <div style="text-align:center">
5
- <h1 class=>
6
- Welcome
7
-
8
- <span id="userInfo"> </span>
9
- </h1>
10
- <p> (your domain 1 has <span id="domainCount"></span> instances) </p>
11
- </div>
12
-
13
- <script >
14
- const updateElement = (elemId) => (newInfo) => document.getElementById(elemId).innerHTML = newInfo.value
15
-
16
- cobRestApiWrapper.umLoggedin().then( userInfo => updateElement("userInfo")( { value: userInfo.username }) )
17
- cobDashboardInfo.domainCount(1, "*", { changeCB: updateElement("domainCount") })
18
- </script>