cob-cli 2.8.0 → 2.11.0
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/customizations/dashboard.dash.js +11 -0
- package/customizations/dashboard.js +1 -0
- package/customizations/dashboard.simple.js +1 -1
- package/customizations/dashboard.vue.empty.js +1 -1
- package/customizations/frontend.easy.js +16 -0
- package/lib/task_lists/customize_copy.js +7 -6
- package/package.json +1 -1
- package/templates/{cob-dashboard-html → dashboards/cob-dashboard-html}/demoDashboard.html +0 -0
- package/templates/{cob-dashboard-vue → dashboards/cob-dashboard-vue}/package-lock.json +0 -0
- package/templates/{cob-dashboard-vue → dashboards/cob-dashboard-vue}/package.json +0 -0
- package/templates/{cob-dashboard-vue → dashboards/cob-dashboard-vue}/src/App.vue +0 -0
- package/templates/{cob-dashboard-vue → dashboards/cob-dashboard-vue}/src/dashboard.html +0 -0
- package/templates/{cob-dashboard-vue → dashboards/cob-dashboard-vue}/src/main.js +0 -0
- package/templates/{cob-dashboard-vue → dashboards/cob-dashboard-vue}/src/plugins/cobUiVueComponents.js +0 -0
- package/templates/{cob-dashboard-vue → dashboards/cob-dashboard-vue}/src/plugins/vuetify.js +0 -0
- package/templates/{cob-dashboard-vue → dashboards/cob-dashboard-vue}/vue.config.js +0 -0
- package/templates/dashboards/dash/dist/css/app.3140d0d1.css +8 -0
- package/templates/dashboards/dash/dist/dashboard.html +20 -0
- package/templates/dashboards/dash/dist/fonts/fa-brands-400.a78ffbbe.ttf +0 -0
- package/templates/dashboards/dash/dist/fonts/fa-brands-400.cd2b4095.woff2 +0 -0
- package/templates/dashboards/dash/dist/fonts/fa-regular-400.b1a1bebb.ttf +0 -0
- package/templates/dashboards/dash/dist/fonts/fa-regular-400.e8a1ba41.woff2 +0 -0
- package/templates/dashboards/dash/dist/fonts/fa-solid-900.55b416a8.woff2 +0 -0
- package/templates/dashboards/dash/dist/fonts/fa-solid-900.73820155.ttf +0 -0
- package/templates/dashboards/dash/dist/fonts/fa-v4compatibility.0d6f5f18.ttf +0 -0
- package/templates/dashboards/dash/dist/fonts/fa-v4compatibility.786e6b33.woff2 +0 -0
- package/templates/dashboards/dash/dist/js/app.a65a4c2c.js +188 -0
- package/templates/dashboards/dash/dist/js/app.a65a4c2c.js.map +1 -0
- package/templates/dashboards/dash/package-lock.json +24340 -0
- package/templates/dashboards/dash/package.json +19 -0
- package/templates/dashboards/dash/src/App.vue +257 -0
- package/templates/dashboards/dash/src/Dashboard.vue +46 -0
- package/templates/dashboards/dash/src/assets/css/all.min.css +6 -0
- package/templates/dashboards/dash/src/assets/webfonts/fa-brands-400.ttf +0 -0
- package/templates/dashboards/dash/src/assets/webfonts/fa-brands-400.woff2 +0 -0
- package/templates/dashboards/dash/src/assets/webfonts/fa-regular-400.ttf +0 -0
- package/templates/dashboards/dash/src/assets/webfonts/fa-regular-400.woff2 +0 -0
- package/templates/dashboards/dash/src/assets/webfonts/fa-solid-900.ttf +0 -0
- package/templates/dashboards/dash/src/assets/webfonts/fa-solid-900.woff2 +0 -0
- package/templates/dashboards/dash/src/assets/webfonts/fa-v4compatibility.ttf +0 -0
- package/templates/dashboards/dash/src/assets/webfonts/fa-v4compatibility.woff2 +0 -0
- package/templates/dashboards/dash/src/collector.js +3782 -0
- package/templates/dashboards/dash/src/components/Board.vue +61 -0
- package/templates/dashboards/dash/src/components/BoardsNav.vue +23 -0
- package/templates/dashboards/dash/src/components/BoardsPage.vue +36 -0
- package/templates/dashboards/dash/src/components/Menu.vue +19 -0
- package/templates/dashboards/dash/src/components/Title.vue +13 -0
- package/templates/dashboards/dash/src/components/Totals.vue +53 -0
- package/templates/dashboards/dash/src/components/TotalsBadge.vue +69 -0
- package/templates/dashboards/dash/src/dashboard.html +34 -0
- package/templates/dashboards/dash/src/input.css +9 -0
- package/templates/dashboards/dash/src/main.js +11 -0
- package/templates/dashboards/dash/src/output.css +45836 -0
- package/templates/dashboards/dash/tailwind.config.js +18 -0
- package/templates/dashboards/dash/vue.config.js +104 -0
- package/templates/frontend/common/css/_dashboard.css +7 -0
- package/templates/frontend/common/css/_global.css +3 -1
- package/templates/frontend/easy/css/_easy/googlefonts.css +360 -0
- package/templates/frontend/easy/css/_easy/vuetify.cob-scoped.css +10488 -0
- package/templates/frontend/easy/js/_easy/lib/axios.min.js +9 -0
- package/templates/frontend/easy/js/_easy/lib/marked.min.js +6 -0
- package/templates/frontend/easy/js/_easy/lib/vue.js +11912 -0
- package/templates/frontend/easy/js/_easy/lib/vue.min.js +6 -0
- package/templates/frontend/easy/js/_easy/lib/vuetify.min.js +6 -0
- package/templates/frontend/easy/js/customizations2.__MERGE__.js +22 -0
- package/templates/frontend/easy/webapp/.browserslistrc +2 -0
- package/templates/frontend/easy/webapp/.eslintrc.js +17 -0
- package/templates/frontend/easy/webapp/README.md +60 -0
- package/templates/frontend/easy/webapp/babel.config.js +5 -0
- package/templates/frontend/easy/webapp/dist/css/app.a4fb91f8.css +1 -0
- package/templates/frontend/easy/webapp/dist/dashboard.html +13 -0
- package/templates/frontend/easy/webapp/dist/js/app.63a57dcd.js +2 -0
- package/templates/frontend/easy/webapp/dist/js/app.63a57dcd.js.map +1 -0
- package/templates/frontend/easy/webapp/package-lock.json +32986 -0
- package/templates/frontend/easy/webapp/package.json +32 -0
- package/templates/frontend/easy/webapp/postcss.config.js +5 -0
- package/templates/frontend/easy/webapp/public/dashboard.html +13 -0
- package/templates/frontend/easy/webapp/src/App.vue +181 -0
- package/templates/frontend/easy/webapp/src/assets/logo.png +0 -0
- package/templates/frontend/easy/webapp/src/components/HelloWorld.vue +59 -0
- package/templates/frontend/easy/webapp/src/components/PermBuilder.vue +163 -0
- package/templates/frontend/easy/webapp/src/components/PlanExecutor.vue +225 -0
- package/templates/frontend/easy/webapp/src/components/ProductPermBuilder.vue +95 -0
- package/templates/frontend/easy/webapp/src/components/RmDefinitionChooser.vue +59 -0
- package/templates/frontend/easy/webapp/src/components/RmDomainChooser.vue +60 -0
- package/templates/frontend/easy/webapp/src/components/RoleBuilder.vue +73 -0
- package/templates/frontend/easy/webapp/src/main.js +19 -0
- package/templates/frontend/easy/webapp/src/perm-templates.js +189 -0
- package/templates/frontend/easy/webapp/src/perms.js +197 -0
- package/templates/frontend/easy/webapp/vue.config.js +66 -0
- package/templates/keywords/audit/frontend/js/cob/_audit.js +4 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
exports.option = {
|
|
2
|
+
name: 'Dash - Dynamic Dashboard based on instances from a specific definition',
|
|
3
|
+
short: "Dash",
|
|
4
|
+
questions: [
|
|
5
|
+
],
|
|
6
|
+
customization: function (answers) {
|
|
7
|
+
const { copy } = require("../lib/task_lists/customize_copy");
|
|
8
|
+
const target = "./recordm/customUI/dash/"
|
|
9
|
+
return copy("../../templates/dashboards/dash/",target)
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -7,6 +7,6 @@ exports.option = {
|
|
|
7
7
|
customization: function (answers) {
|
|
8
8
|
const { copy } = require("../lib/task_lists/customize_copy");
|
|
9
9
|
const target = "./recordm/customUI/"+answers.name+".html"
|
|
10
|
-
return copy("../../templates/cob-dashboard-html/demoDashboard.html",target)
|
|
10
|
+
return copy("../../templates/dashboards/cob-dashboard-html/demoDashboard.html",target)
|
|
11
11
|
}
|
|
12
12
|
}
|
|
@@ -7,6 +7,6 @@ exports.option = {
|
|
|
7
7
|
customization: function (answers) {
|
|
8
8
|
const { copy } = require("../lib/task_lists/customize_copy");
|
|
9
9
|
const target = "./recordm/customUI/"+answers.name+"/"
|
|
10
|
-
return copy("../../templates/cob-dashboard-vue/",target)
|
|
10
|
+
return copy("../../templates/dashboard/cob-dashboard-vue/",target)
|
|
11
11
|
}
|
|
12
12
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
exports.option = {
|
|
2
|
+
name: 'Easy - Permission management helper',
|
|
3
|
+
short: "Easy",
|
|
4
|
+
questions: [
|
|
5
|
+
],
|
|
6
|
+
customization: async function (answers) {
|
|
7
|
+
console.log("\nApplying easy customizations ...")
|
|
8
|
+
|
|
9
|
+
const { copy } = require("../lib/task_lists/customize_copy");
|
|
10
|
+
const { mergeFiles } = require("../lib/task_lists/customize_mergeFiles");
|
|
11
|
+
await copy("../../templates/frontend/easy/webapp/", "./userm/customUI/easy/")
|
|
12
|
+
await copy("../../templates/frontend/easy/css/", "./userm/customUI/css/")
|
|
13
|
+
await copy("../../templates/frontend/easy/js/", "./userm/customUI/js/")
|
|
14
|
+
await mergeFiles("Frontend.Easy")
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -15,12 +15,13 @@ function copy(source, target, substitutions = {}) {
|
|
|
15
15
|
{
|
|
16
16
|
clobber: true,
|
|
17
17
|
filter: (src) => src.match(/node_modules/) == null,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
// TODO: comentado porque não funciona a copiar os ficheiros binários (em concreto as font no template/dashboards/dash)
|
|
19
|
+
// transform(read, write) {
|
|
20
|
+
// const replaceVars = new Transform({
|
|
21
|
+
// transform: (chunk, encoding, done) => done(null,chunk.toString().replace(/__.+__/g, m => substitutions[m]))
|
|
22
|
+
// })
|
|
23
|
+
// read.pipe(replaceVars).pipe(write)
|
|
24
|
+
// }
|
|
24
25
|
},
|
|
25
26
|
(error,x) => {
|
|
26
27
|
if (error) {
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|