cob-cli 2.12.0 → 2.12.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 (77) hide show
  1. package/customizations/backend.js +1 -0
  2. package/customizations/backend.vuepress.js +35 -0
  3. package/customizations/frontend.js +1 -0
  4. package/lib/task_lists/test_otherFilesContiousReload.js +1 -1
  5. package/package.json +5 -1
  6. package/templates/backend/vuepress/integrationm/actions/getVuePressDoc.groovy +74 -0
  7. package/templates/backend/vuepress/integrationm/actions/getVuePressSidebarConfig.groovy +42 -0
  8. package/templates/backend/vuepress/integrationm/actions/getVuePressSidebarRootElements.groovy +17 -0
  9. package/templates/backend/vuepress/others/vuepress/definition_contents_v234.json +619 -0
  10. package/templates/backend/vuepress/others/vuepress/nginx/README.md +28 -0
  11. package/templates/backend/vuepress/others/vuepress/package-lock.json +29656 -0
  12. package/templates/backend/vuepress/others/vuepress/package.json +24 -0
  13. package/templates/backend/vuepress/others/vuepress/src/.vuepress/components/DescriptVideo.vue +22 -0
  14. package/templates/backend/vuepress/others/vuepress/src/.vuepress/components/Graph.vue +124 -0
  15. package/templates/backend/vuepress/others/vuepress/src/.vuepress/components/ReadingTime.vue +26 -0
  16. package/templates/backend/vuepress/others/vuepress/src/.vuepress/components/References.vue +228 -0
  17. package/templates/backend/vuepress/others/vuepress/src/.vuepress/components/RestrictedContent.vue +77 -0
  18. package/templates/backend/vuepress/others/vuepress/src/.vuepress/config.js +101 -0
  19. package/templates/backend/vuepress/others/vuepress/src/.vuepress/config.json +31 -0
  20. package/templates/backend/vuepress/others/vuepress/src/.vuepress/enhanceApp.js +14 -0
  21. package/templates/backend/vuepress/others/vuepress/src/.vuepress/nav/getNavTranslated.js +52 -0
  22. package/templates/backend/vuepress/others/vuepress/src/.vuepress/plugins/References.js +96 -0
  23. package/templates/backend/vuepress/others/vuepress/src/.vuepress/public/Logo-Cult-of-Bits-400x400-1.png +0 -0
  24. package/templates/backend/vuepress/others/vuepress/src/.vuepress/public/favicon-cob.png +0 -0
  25. package/templates/backend/vuepress/others/vuepress/src/.vuepress/public/logo.png +0 -0
  26. package/templates/backend/vuepress/others/vuepress/src/.vuepress/styles/index.styl +39 -0
  27. package/templates/backend/vuepress/others/vuepress/src/.vuepress/styles/palette.styl +17 -0
  28. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/LICENSE +21 -0
  29. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/README.md +11 -0
  30. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/AlgoliaSearchBox.vue +172 -0
  31. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/DropdownLink.vue +252 -0
  32. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/DropdownTransition.vue +33 -0
  33. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/Home.vue +134 -0
  34. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/NavLink.vue +98 -0
  35. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/NavLinks.vue +165 -0
  36. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/Navbar.vue +140 -0
  37. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/Page.vue +31 -0
  38. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/PageEdit.vue +119 -0
  39. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/PageNav.vue +163 -0
  40. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/Sidebar.vue +64 -0
  41. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/SidebarButton.vue +40 -0
  42. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/SidebarGroup.vue +144 -0
  43. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/SidebarLink.vue +140 -0
  44. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/SidebarLinks.vue +114 -0
  45. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/global-components/Badge.vue +44 -0
  46. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/global-components/CodeBlock.vue +41 -0
  47. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/global-components/CodeGroup.vue +120 -0
  48. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/index.js +59 -0
  49. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/layouts/404.vue +30 -0
  50. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/layouts/Layout.vue +151 -0
  51. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/noopModule.js +1 -0
  52. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/package.json +44 -0
  53. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/styles/arrow.styl +22 -0
  54. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/styles/code.styl +137 -0
  55. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/styles/config.styl +1 -0
  56. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/styles/custom-blocks.styl +44 -0
  57. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/styles/index.styl +202 -0
  58. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/styles/mobile.styl +37 -0
  59. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/styles/toc.styl +3 -0
  60. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/styles/wrapper.styl +10 -0
  61. package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/util/index.js +244 -0
  62. package/templates/dashboards/dash/definition_dashboard_v59.json +1 -0
  63. package/templates/dashboards/dash/dist/dashboard.html +8 -3
  64. package/templates/dashboards/dash/dist/js/{app.a65a4c2c.js → app.8423eff3.js} +2 -2
  65. package/templates/dashboards/dash/dist/js/app.8423eff3.js.map +1 -0
  66. package/templates/dashboards/dash/dist/js/app.f9c19b80.js +188 -0
  67. package/templates/dashboards/dash/dist/js/app.f9c19b80.js.map +1 -0
  68. package/templates/dashboards/dash/src/App.vue +32 -212
  69. package/templates/dashboards/dash/src/Dashboard.vue +31 -11
  70. package/templates/dashboards/dash/src/collector.js +35 -3694
  71. package/templates/dashboards/dash/src/components/Menu.vue +15 -4
  72. package/templates/dashboards/dash/src/components/Title.vue +10 -2
  73. package/templates/dashboards/dash/src/components/Totals.vue +19 -9
  74. package/templates/dashboards/dash/src/components/{TotalsBadge.vue → TotalsValue.vue} +12 -12
  75. package/templates/dashboards/dash/src/dashboard.html +6 -1
  76. package/templates/dashboards/dash/src/test_collector.js +3732 -0
  77. package/templates/dashboards/dash/dist/js/app.a65a4c2c.js.map +0 -1
@@ -1,10 +1,12 @@
1
1
  <template>
2
2
  <ul class="space-y-2 text-slate-700 decoration-slate-700">
3
- <li v-for="(item, i) in componentData.items" :key="item.text + i"
3
+ <li v-for="(menuItem, i) in menuItems"
4
+ :key="'menuItem-' + i"
4
5
  :class="'transition ease-in-out duration-300 rounded-md border border-cobline border-l-2 border-l-sky-600 shadow-sm transform hover:translate-x-0.5 '
5
- + item.text_style">
6
- <a :href="item.link" class="flex items-center font-light py-1 px-3">
7
- <span v-html="item.text"/>
6
+ + menuItem.style"
7
+ >
8
+ <a :href="menuItem.link" class="flex items-center font-light py-1 px-3" >
9
+ <span v-html="menuItem.text"/>
8
10
  </a>
9
11
  </li>
10
12
  </ul>
@@ -14,6 +16,15 @@
14
16
  export default {
15
17
  props: {
16
18
  componentData: Object
19
+ },
20
+ computed: {
21
+ menuItems() {
22
+ return this.componentData['Text'].map( m => ({
23
+ text: m['Text'],
24
+ link: m['Link'],
25
+ style: m['Style Text'],
26
+ }))
27
+ }
17
28
  }
18
29
  }
19
30
  </script>
@@ -1,6 +1,6 @@
1
1
  <template>
2
- <div class="text-slate-700 uppercase tracking-wider border-b border-b-cobline/50 pb-1 text-xs text-center">
3
- <span v-html="componentData.title_text"/>
2
+ <div :class="'text-slate-700 uppercase tracking-wider border-b border-b-cobline/50 pb-1 text-xs text-center ' + style">
3
+ <span v-html="title"/>
4
4
  </div>
5
5
  </template>
6
6
 
@@ -8,6 +8,14 @@
8
8
  export default {
9
9
  props: {
10
10
  componentData: Object
11
+ },
12
+ computed: {
13
+ title() {
14
+ return this.componentData['Title']
15
+ },
16
+ style() {
17
+ return this.componentData['Style Text']
18
+ },
11
19
  }
12
20
  }
13
21
  </script>
@@ -10,10 +10,10 @@
10
10
  <tbody>
11
11
  <tr v-for="(line, i) in lines" :key="'line'+i"
12
12
  class="text-slate-700">
13
- <td :class="'py-2 ' + line.text_style">{{ line.text }}</td>
14
- <td v-for="(badge, j) in line.values" :key="'badge'+j"
13
+ <td :class="'py-2 ' + line.style">{{ line.name }}</td>
14
+ <td v-for="(value, j) in line.values" :key="'value'+j"
15
15
  class="py-2 text-right">
16
- <TotalsBadge :badge-data="badge" />
16
+ <TotalsValue :value-data="value" />
17
17
  </td>
18
18
  </tr>
19
19
  </tbody>
@@ -21,11 +21,24 @@
21
21
  </template>
22
22
 
23
23
  <script>
24
- import TotalsBadge from './TotalsBadge.vue'
24
+ import TotalsValue from './TotalsValue.vue'
25
25
  export default {
26
- components: { TotalsBadge },
26
+ components: { TotalsValue },
27
27
  props: { componentData: Object },
28
28
  computed: {
29
+ headers() {
30
+ return this.componentData['Header'][0]['Text'].filter(x => !!x).map(h => h['Text'])
31
+ },
32
+ headers_style() {
33
+ return this.componentData['Header'][0]['Style Header']
34
+ },
35
+ lines() {
36
+ return this.componentData['Line'].map( l => ({
37
+ name : l['Line'],
38
+ style : l['Style Line'],
39
+ values: l['Value']
40
+ }))
41
+ },
29
42
  valuesGridClass() {
30
43
  const dynamicClasses = {
31
44
  1: "grid-cols-1",
@@ -44,10 +57,7 @@ export default {
44
57
  }
45
58
  // Grid with cols == amount of values
46
59
  return "grid " + dynamicClasses[this.lines[0].values.length]
47
- },
48
- headers() { return this.componentData.headers.filter(x => !!x) },
49
- headers_style() { return this.componentData.headers_style },
50
- lines() { return this.componentData.lines }
60
+ }
51
61
  }
52
62
  }
53
63
  </script>
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div :class="{'animate-pulse':signalChange}">
3
- <a :href="badgeData.dash_info.href" :class="valueClass" class="relative inline-flex">
3
+ <a :href="valueData.dash_info.href" :class="valueClass" class="relative inline-flex">
4
4
  <span v-html="value"/>
5
5
 
6
6
  <svg v-if="updating" class="absolute animate-spin -top-1 -right-1 h-2 w-2" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
@@ -15,7 +15,7 @@
15
15
 
16
16
  export default {
17
17
  props: {
18
- badgeData: Object
18
+ valueData: Object
19
19
  },
20
20
  data () {
21
21
  return {
@@ -32,19 +32,19 @@ export default {
32
32
  },
33
33
  computed: {
34
34
  updating() {
35
- return this.badgeData.dash_info.state == "updating" || this.badgeData.dash_info.state == "loading"
35
+ return this.valueData.dash_info.state == "updating" || this.valueData.dash_info.state == "loading"
36
36
  },
37
37
  value() {
38
- if(this.badgeData.dash_info.state == "loading") return "L"
39
- if(this.badgeData.dash_info.state == "error") return "E"
40
- if(isNaN(this.badgeData.dash_info.value)) {
41
- return this.badgeData.dash_info.value
38
+ if(this.valueData.dash_info.state == "loading") return "L"
39
+ if(this.valueData.dash_info.state == "error") return "E"
40
+ if(isNaN(this.valueData.dash_info.value)) {
41
+ return this.valueData.dash_info.value
42
42
  } else {
43
- return new Intl.NumberFormat('en-US', {}).format(this.badgeData.dash_info.value)
43
+ return new Intl.NumberFormat('en-US', {}).format(this.valueData.dash_info.value)
44
44
  }
45
45
  },
46
46
  state() {
47
- return this.badgeData.dash_info.state
47
+ return this.valueData.dash_info.state
48
48
  },
49
49
  valueClass() {
50
50
  let c = "relative transition ease-in-out px-2 py-1 rounded-md text-center font-mono font-semibold transition border ring-offset-1 hover:ring-2"
@@ -59,10 +59,10 @@ export default {
59
59
  "Fallback": "text-slate-700 ring-slate-700",
60
60
  }
61
61
 
62
- if(this.badgeData.dash_info.state == "loading") return c + " " + lookup["Warning"]
63
- if(this.badgeData.dash_info.state == "error") return c + " " + lookup["Important"]
62
+ if(this.valueData.dash_info.state == "loading") return c + " " + lookup["Warning"]
63
+ if(this.valueData.dash_info.state == "error") return c + " " + lookup["Important"]
64
64
 
65
- return c + " " + (this.badgeData.dash_info.value == 0 ? lookup["Gray"] : lookup[this.badgeData.style] ? lookup[this.badgeData.style] : lookup["Fallback"])
65
+ return c + " " + (this.valueData.dash_info.value == 0 ? lookup["Gray"] : lookup[this.valueData.style] ? lookup[this.valueData.style] : lookup["Fallback"])
66
66
  }
67
67
  }
68
68
  }
@@ -20,10 +20,15 @@
20
20
  <% } %>
21
21
  <style>section.custom-resource{visibility: hidden;opacity:0;}</style>
22
22
  <div id="app"></div>
23
- <script>
23
+ <script>
24
24
  // mimes: .cob-app tem estilos globais que se aplicam a elementos vuetify que mudam o aspecto previsto
25
25
  let section = document.getElementsByClassName("custom-resource")[0];
26
26
  section && section.classList.remove("cob-app"); //TODO: validar que isto é a melhor opção (considerar remover class na ui-all)
27
+
28
+ // se header não está visivel posiciona o top a 0
29
+ if(document.getElementById("header").style['display'] == 'none') {
30
+ section.style['top'] = "0px"
31
+ }
27
32
  </script>
28
33
  <% for (var chunk in htmlWebpackPlugin.files.chunks) { %>
29
34
  <script type="text/javascript" src="<%= htmlWebpackPlugin.files.chunks[chunk].entry %>"></script>