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.
- package/bin/cob-cli.js +6 -7
- package/bin/handleAutoComplete.js +3 -4
- package/lib/commands/customize.js +216 -63
- package/package.json +3 -2
- package/.gitmodules +0 -27
- package/.vscode/launch.json +0 -106
- package/README.Development.md +0 -294
- package/README.publish.md +0 -10
- package/customizations/backend.email.js +0 -10
- package/customizations/backend.js +0 -14
- package/customizations/backend.updateField.js +0 -11
- package/customizations/backend.vuepress.js +0 -35
- package/customizations/dashboard.dash.js +0 -14
- package/customizations/dashboard.js +0 -14
- package/customizations/dashboard.simple.js +0 -12
- package/customizations/dashboard.vue.empty.js +0 -12
- package/customizations/dashboard.vue.grid.js +0 -10
- package/customizations/dashboard.vue.js +0 -14
- package/customizations/dashboard.vue.menuAndGrid.js +0 -10
- package/customizations/frontend.common.js +0 -16
- package/customizations/frontend.easy.js +0 -16
- package/customizations/frontend.formatList.currency.js +0 -17
- package/customizations/frontend.formatList.js +0 -13
- package/customizations/frontend.js +0 -14
- package/customizations/importer.js +0 -10
- package/customizations/keywords.audit.js +0 -18
- package/customizations/keywords.calc.js +0 -18
- package/customizations/keywords.image.js +0 -16
- package/customizations/keywords.js +0 -17
- package/customizations/keywords.kibana.js +0 -16
- package/customizations/keywords.log.js +0 -18
- package/customizations/keywords.styleResults.js +0 -18
- package/lib/task_lists/customize_copy.js +0 -51
- package/lib/task_lists/customize_mergeFiles.js +0 -42
- package/lib/task_lists/customize_questions.js +0 -40
- package/templates/backend/vuepress/integrationm/actions/getVuePressDoc.groovy +0 -74
- package/templates/backend/vuepress/integrationm/actions/getVuePressSidebarConfig.groovy +0 -42
- package/templates/backend/vuepress/integrationm/actions/getVuePressSidebarRootElements.groovy +0 -17
- package/templates/backend/vuepress/others/vuepress/definition_contents_v234.json +0 -619
- package/templates/backend/vuepress/others/vuepress/nginx/README.md +0 -28
- package/templates/backend/vuepress/others/vuepress/package-lock.json +0 -29656
- package/templates/backend/vuepress/others/vuepress/package.json +0 -24
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/components/DescriptVideo.vue +0 -22
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/components/Graph.vue +0 -124
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/components/ReadingTime.vue +0 -26
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/components/References.vue +0 -228
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/components/RestrictedContent.vue +0 -77
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/config.js +0 -101
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/config.json +0 -31
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/enhanceApp.js +0 -14
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/nav/getNavTranslated.js +0 -52
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/plugins/References.js +0 -96
- 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 +0 -39
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/styles/palette.styl +0 -17
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/LICENSE +0 -21
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/README.md +0 -11
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/AlgoliaSearchBox.vue +0 -172
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/DropdownLink.vue +0 -252
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/DropdownTransition.vue +0 -33
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/Home.vue +0 -134
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/NavLink.vue +0 -98
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/NavLinks.vue +0 -165
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/Navbar.vue +0 -140
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/Page.vue +0 -31
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/PageEdit.vue +0 -119
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/PageNav.vue +0 -163
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/Sidebar.vue +0 -64
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/SidebarButton.vue +0 -40
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/SidebarGroup.vue +0 -144
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/SidebarLink.vue +0 -140
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/components/SidebarLinks.vue +0 -114
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/global-components/Badge.vue +0 -44
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/global-components/CodeBlock.vue +0 -41
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/global-components/CodeGroup.vue +0 -120
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/index.js +0 -59
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/layouts/404.vue +0 -30
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/layouts/Layout.vue +0 -151
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/noopModule.js +0 -1
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/package.json +0 -44
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/styles/arrow.styl +0 -22
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/styles/code.styl +0 -137
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/styles/config.styl +0 -1
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/styles/custom-blocks.styl +0 -44
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/styles/index.styl +0 -202
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/styles/mobile.styl +0 -37
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/styles/toc.styl +0 -3
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/styles/wrapper.styl +0 -10
- package/templates/backend/vuepress/others/vuepress/src/.vuepress/theme/util/index.js +0 -244
- package/templates/dashboards/cob-dashboard-html/demoDashboard.html +0 -18
- package/templates/dashboards/cob-dashboard-vue/package-lock.json +0 -25020
- package/templates/dashboards/cob-dashboard-vue/package.json +0 -21
- package/templates/dashboards/cob-dashboard-vue/src/App.vue +0 -26
- package/templates/dashboards/cob-dashboard-vue/src/dashboard.html +0 -31
- package/templates/dashboards/cob-dashboard-vue/src/main.js +0 -12
- package/templates/dashboards/cob-dashboard-vue/src/plugins/cobUiVueComponents.js +0 -6
- package/templates/dashboards/cob-dashboard-vue/src/plugins/vuetify.js +0 -9
- package/templates/dashboards/cob-dashboard-vue/vue.config.js +0 -104
- package/templates/dashboards/dash/dist/css/app.7b16c01a.css +0 -11
- package/templates/dashboards/dash/dist/dashboard.html +0 -25
- 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.13b950c8.js +0 -199
- package/templates/dashboards/dash/dist/js/app.13b950c8.js.map +0 -1
- package/templates/dashboards/dash/package-lock.json +0 -22646
- package/templates/dashboards/dash/package.json +0 -27
- package/templates/dashboards/dash/src/App.vue +0 -124
- package/templates/dashboards/dash/src/assets/css/all.min.css +0 -6
- 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 +0 -222
- package/templates/dashboards/dash/src/components/Attention.vue +0 -30
- package/templates/dashboards/dash/src/components/Board.vue +0 -35
- package/templates/dashboards/dash/src/components/Calendar.vue +0 -422
- package/templates/dashboards/dash/src/components/Dashboard.vue +0 -27
- package/templates/dashboards/dash/src/components/Filter.vue +0 -68
- package/templates/dashboards/dash/src/components/Kibana.vue +0 -138
- package/templates/dashboards/dash/src/components/Label.vue +0 -15
- package/templates/dashboards/dash/src/components/Menu.vue +0 -44
- package/templates/dashboards/dash/src/components/Totals.vue +0 -49
- package/templates/dashboards/dash/src/components/TotalsValue.vue +0 -59
- package/templates/dashboards/dash/src/components/shared/Instance.vue +0 -64
- package/templates/dashboards/dash/src/components/shared/Waiting.vue +0 -25
- package/templates/dashboards/dash/src/dashboard.html +0 -39
- package/templates/dashboards/dash/src/definition_dashboard_v0.json +0 -924
- package/templates/dashboards/dash/src/definition_dashboard_v1.json +0 -1
- package/templates/dashboards/dash/src/input.css +0 -9
- package/templates/dashboards/dash/src/main.js +0 -11
- package/templates/dashboards/dash/src/model/ComponentStatePersistence.js +0 -66
- package/templates/dashboards/dash/src/output.css +0 -314245
- package/templates/dashboards/dash/src/test_collector.js +0 -3719
- package/templates/dashboards/dash/src/utils/EsInstanceUtils.js +0 -8
- package/templates/dashboards/dash/tailwind.config.js +0 -12
- package/templates/dashboards/dash/vue.config.js +0 -104
- package/templates/frontend/common/templates/frontend/common/css/_dualColumn.css +0 -46
- package/templates/frontend/common/templates/frontend/common/css/_global.css +0 -19
- package/templates/frontend/common/templates/frontend/common/css/_hidden.css +0 -13
- package/templates/frontend/common/templates/frontend/common/css/_history.css +0 -13
- package/templates/frontend/common/templates/frontend/common/css/_mobile.css +0 -125
- package/templates/frontend/common/templates/frontend/common/css/customizations.__MERGE__.css +0 -5
- package/templates/frontend/common/templates/frontend/common/js/cob/_disable_save_onSubdetail.js +0 -11
- package/templates/frontend/common/templates/frontend/common/js/cob/_group_references.js +0 -22
- package/templates/frontend/common/templates/frontend/common/js/cob/_show_hidden.js +0 -35
- package/templates/frontend/common/templates/frontend/common/js/customizations2.__MERGE__.js +0 -3
- package/templates/frontend/common/templates/frontend/common/package.json +0 -3
- package/templates/frontend/easy/css/_easy/googlefonts.css +0 -360
- package/templates/frontend/easy/css/_easy/vuetify.cob-scoped.css +0 -10488
- package/templates/frontend/easy/js/_easy/lib/axios.min.js +0 -9
- package/templates/frontend/easy/js/_easy/lib/marked.min.js +0 -6
- package/templates/frontend/easy/js/_easy/lib/vue.js +0 -11912
- package/templates/frontend/easy/js/_easy/lib/vue.min.js +0 -6
- package/templates/frontend/easy/js/_easy/lib/vuetify.min.js +0 -6
- package/templates/frontend/easy/js/customizations2.__MERGE__.js +0 -22
- package/templates/frontend/easy/webapp/.browserslistrc +0 -2
- package/templates/frontend/easy/webapp/.eslintrc.js +0 -17
- package/templates/frontend/easy/webapp/README.md +0 -60
- package/templates/frontend/easy/webapp/babel.config.js +0 -5
- package/templates/frontend/easy/webapp/dist/css/app.a4fb91f8.css +0 -1
- package/templates/frontend/easy/webapp/dist/dashboard.html +0 -13
- package/templates/frontend/easy/webapp/dist/js/app.63a57dcd.js +0 -2
- package/templates/frontend/easy/webapp/dist/js/app.63a57dcd.js.map +0 -1
- package/templates/frontend/easy/webapp/package-lock.json +0 -32986
- package/templates/frontend/easy/webapp/package.json +0 -32
- package/templates/frontend/easy/webapp/postcss.config.js +0 -5
- package/templates/frontend/easy/webapp/public/dashboard.html +0 -13
- package/templates/frontend/easy/webapp/src/App.vue +0 -181
- package/templates/frontend/easy/webapp/src/assets/logo.png +0 -0
- package/templates/frontend/easy/webapp/src/components/HelloWorld.vue +0 -59
- package/templates/frontend/easy/webapp/src/components/PermBuilder.vue +0 -163
- package/templates/frontend/easy/webapp/src/components/PlanExecutor.vue +0 -225
- package/templates/frontend/easy/webapp/src/components/ProductPermBuilder.vue +0 -95
- package/templates/frontend/easy/webapp/src/components/RmDefinitionChooser.vue +0 -59
- package/templates/frontend/easy/webapp/src/components/RmDomainChooser.vue +0 -60
- package/templates/frontend/easy/webapp/src/components/RoleBuilder.vue +0 -73
- package/templates/frontend/easy/webapp/src/main.js +0 -19
- package/templates/frontend/easy/webapp/src/perm-templates.js +0 -189
- package/templates/frontend/easy/webapp/src/perms.js +0 -197
- package/templates/frontend/easy/webapp/vue.config.js +0 -66
- package/templates/frontend/formatList/currency/css/_format_currency.css +0 -11
- package/templates/frontend/formatList/currency/css/customizations.__MERGE__.css +0 -1
- package/templates/frontend/formatList/currency/js/cob/_format_currency.js +0 -11
- package/templates/frontend/formatList/currency/js/customizations2.__MERGE__.js +0 -1
- package/templates/frontend/formatList/currency/package.json +0 -3
- package/templates/gitignore +0 -14
- package/templates/keywords/audit/backend/scripts/_audit.groovy +0 -78
- package/templates/keywords/audit/frontend/js/cob/_audit.js +0 -24
- package/templates/keywords/audit/frontend/js/customizations2.__MERGE__.js +0 -1
- package/templates/keywords/audit/package.json +0 -3
- package/templates/keywords/calc/backend/scripts/_calc.groovy +0 -151
- package/templates/keywords/calc/frontend/js/cob/_calc.js +0 -193
- package/templates/keywords/calc/frontend/js/customizations2.__MERGE__.js +0 -1
- package/templates/keywords/calc/package.json +0 -3
- package/templates/keywords/image/frontend/js/cob/_image.js +0 -30
- package/templates/keywords/image/frontend/js/customizations2.__MERGE__.js +0 -1
- package/templates/keywords/image/package.json +0 -3
- package/templates/keywords/kibana/frontend/js/cob/_kibana.js +0 -58
- package/templates/keywords/kibana/frontend/js/customizations2.__MERGE__.js +0 -1
- package/templates/keywords/kibana/package.json +0 -3
- package/templates/keywords/log/backend/scripts/_log.groovy +0 -95
- package/templates/keywords/log/frontend/css/_log.css +0 -5
- package/templates/keywords/log/frontend/css/customizations.__MERGE__.css +0 -1
- package/templates/keywords/log/package.json +0 -3
- package/templates/keywords/styleResults/frontend/css/_styleResults.css +0 -86
- package/templates/keywords/styleResults/frontend/css/customizations.__MERGE__.css +0 -1
- package/templates/keywords/styleResults/frontend/js/cob/_styleResults.js +0 -38
- package/templates/keywords/styleResults/frontend/js/customizations2.__MERGE__.js +0 -1
- package/templates/keywords/styleResults/package.json +0 -3
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import {toEsFieldName} from "@cob/rest-api-wrapper/src/utils/ESHelper";
|
|
2
|
-
|
|
3
|
-
function getValue(esInstance, fieldDefinition) {
|
|
4
|
-
let esFieldName = toEsFieldName(fieldDefinition.name);
|
|
5
|
-
return (esInstance[`${esFieldName}_reference`] || esInstance[esFieldName])
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export {getValue}
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
let DASH_DIR = process.env.dash_dir
|
|
2
|
-
let SERVER = process.env.server
|
|
3
|
-
|
|
4
|
-
if(!process.env.dash_dir || !SERVER) {
|
|
5
|
-
// Provavelmente corrido via 'npm run serve' e não tenha variáveis de ambiente definidas
|
|
6
|
-
console.log("LOCAL 'npm run serve' ON OWN DIRECTORY ASSUMPTION")
|
|
7
|
-
|
|
8
|
-
let pwd = process.env.PWD
|
|
9
|
-
DASH_DIR = pwd.substring(pwd.lastIndexOf("/")+1)
|
|
10
|
-
|
|
11
|
-
let localSubPosition = pwd.indexOf("/recordm/customUI")
|
|
12
|
-
let serverFile = (localSubPosition > 0 ? pwd.substring(0,localSubPosition) : ".") + "/.server"
|
|
13
|
-
try {
|
|
14
|
-
// Se estivermos dentro de um repo cob-cli então vamos conseguir obter o servidor a partir do '.server' na raiz do repo
|
|
15
|
-
SERVER = "https://" + require('fs').readFileSync(serverFile, 'utf8') + ".cultofbits.com";
|
|
16
|
-
} catch {
|
|
17
|
-
// se não conseguirmos usamos a máquina de formação como default
|
|
18
|
-
SERVER = "https://learning.cultofbits.com";
|
|
19
|
-
console.warn("Warning: file '.server' not found. Using " + SERVER + " as backend" )
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
module.exports = {
|
|
24
|
-
// temos que fixar o directorio onde colocamos o build,
|
|
25
|
-
// para podermos usar o dashboard.html que é gerado sem o editar
|
|
26
|
-
// NOTA: o path relativo não funciona bem com o npm run serve
|
|
27
|
-
// mas queremos que o build seja relativo, para ser mais fléxivel
|
|
28
|
-
publicPath: process.env.NODE_ENV === 'production'
|
|
29
|
-
? './localresource/' + DASH_DIR + '/dist/'
|
|
30
|
-
: '/' + DASH_DIR,
|
|
31
|
-
|
|
32
|
-
// seguindo https://cli.vuejs.org/guide/webpack.html
|
|
33
|
-
chainWebpack: config => {
|
|
34
|
-
// para não termos chunks
|
|
35
|
-
config.optimization.delete('splitChunks');
|
|
36
|
-
|
|
37
|
-
// fazemos assim em vez de usar o pages, que confunde o publicPath
|
|
38
|
-
config
|
|
39
|
-
.plugin('html')
|
|
40
|
-
.tap(args => {
|
|
41
|
-
args[0].template = 'src/dashboard.html' // Isto permite ler o ficheiro daqui em vez do default public/index.html
|
|
42
|
-
args[0].filename = 'dashboard.html' // Isto indica que o nome no url será dashboard.html em vez de index.html
|
|
43
|
-
args[0].inject = false // Não queremos inject automático pois o nosso src/dashboard.html sabe lidar com página isolado ou integrado no recordm. TODO: considerar permitir ainda shared vue e vuetify em vez de embebido (o actual). Ver NOTA abaixo.
|
|
44
|
-
args[0].minify = true
|
|
45
|
-
args[0].rmIntegrated = process.env.dash_dir || process.env.NODE_ENV === 'production' // Esta é a variável utilizada dentro do src/dashboard.html para saber qual o render a utilizar (isolado ou integrado). Deve ser integrado quer quando corrido via cob-cli test -d <dashboard> quer quando é feito o build.
|
|
46
|
-
return args
|
|
47
|
-
})
|
|
48
|
-
},
|
|
49
|
-
|
|
50
|
-
// NOTA: Código comentado porque abandonamos a opção de usar ficheiros partilhados. Se quisermos reverter isto é necessário:
|
|
51
|
-
// configureWebpack: {
|
|
52
|
-
// // deve ser igual ao que é usado no afterDeps do public/dashboard.html
|
|
53
|
-
// // Se for LOCAL temos de usar os locais
|
|
54
|
-
// externals: LOCAL ? {} : {
|
|
55
|
-
// vue: 'Vue',
|
|
56
|
-
// vuetify: 'Vuetify',
|
|
57
|
-
// axios: 'axios',
|
|
58
|
-
// marked: 'marked'
|
|
59
|
-
// },
|
|
60
|
-
// },
|
|
61
|
-
|
|
62
|
-
devServer: {
|
|
63
|
-
port: 8041,
|
|
64
|
-
before: function(app) {
|
|
65
|
-
app.get('/*', function(req, res, next) {
|
|
66
|
-
// Permite usar / ou /DASH_BOARD/ quando acedido directamente
|
|
67
|
-
if(req.url != "/" && req.url != '/'+DASH_DIR+'/') {
|
|
68
|
-
return next();
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
res.redirect(`/${DASH_DIR}/dashboard.html`);
|
|
72
|
-
});
|
|
73
|
-
},
|
|
74
|
-
proxy: {
|
|
75
|
-
[ "/recordm/localresource/" + DASH_DIR + "/dist"]: {
|
|
76
|
-
// Isto serve o propósito de rescrever os pedidos feitos via url final para o url local.
|
|
77
|
-
// Tem o defeito de apenas funcionar quando o devserver está a funcionar no 8041.
|
|
78
|
-
// Ou seja, não suporta mais que um vue-cli-service a funcionar ao mesmo tempo (apenas 1 estará a funcionar correctamente)
|
|
79
|
-
// TODO: idealmente seria feito sem ser via proxy (talvez via url-loader rewrite ??)
|
|
80
|
-
target: "http://localhost:8041",
|
|
81
|
-
pathRewrite: path => path.replace("/recordm/localresource/" + DASH_DIR + "/dist","/" + DASH_DIR ),
|
|
82
|
-
bypass: function(req, res, proxyOptions) {
|
|
83
|
-
if(req.path.indexOf(DASH_DIR) > 0) {
|
|
84
|
-
console.log("[CoB] Serving DASHBOARD: " + req.path)
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
"^/userm|^/recordm|^/es|^/logm|^/kibana": {
|
|
89
|
-
target: SERVER,
|
|
90
|
-
ws: true,
|
|
91
|
-
changeOrigin: true,
|
|
92
|
-
bypass: function(req, res, proxyOptions) {
|
|
93
|
-
console.log("[CoB] Serving " + SERVER + ": " + req.path)
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
"/get_user_lang|/security|/localresource|/recordm|/user|/reportm|/cas": {
|
|
97
|
-
target: SERVER,
|
|
98
|
-
ws: true,
|
|
99
|
-
changeOrigin: true,
|
|
100
|
-
pathRewrite: path => path.replace("/recordm/recordm", "/recordm")
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/* Overall good practive - not column related but specialy relevant inside columns */
|
|
2
|
-
li.custom-dualColumn ol.fields > li > table > tbody > tr > td:nth-child(1) {
|
|
3
|
-
min-width: 70px;
|
|
4
|
-
}
|
|
5
|
-
li.custom-dualColumn ol.fields > li > table > tbody > tr > td:nth-child(2) {
|
|
6
|
-
min-width: 160px;
|
|
7
|
-
}
|
|
8
|
-
li.custom-dualColumn ol.fields li > table > tbody > tr > td:nth-child(3),
|
|
9
|
-
li.custom-dualColumn ol.fields li > table > tbody > tr > td:nth-child(3) input {
|
|
10
|
-
max-width: 230px !important;
|
|
11
|
-
width: -webkit-fill-available;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
/* $style[dualColumn] */
|
|
15
|
-
li.custom-dualColumn > ol.fields{
|
|
16
|
-
display: flex;
|
|
17
|
-
flex-wrap: wrap;
|
|
18
|
-
}
|
|
19
|
-
li.custom-dualColumn > ol.fields > li {
|
|
20
|
-
flex-basis:49%;
|
|
21
|
-
}
|
|
22
|
-
li.custom-dualColumn ol.fields > li > table > tbody > tr > td:nth-child(3) {
|
|
23
|
-
width: unset;
|
|
24
|
-
}
|
|
25
|
-
li.custom-dualColumn ol.fields > li > table > tbody > tr > td:nth-child(4) {
|
|
26
|
-
display: none;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/* $style[singleColumn] */
|
|
30
|
-
li.custom-dualColumn > ol.fields > li.custom-singleColumn {
|
|
31
|
-
flex-basis:100%;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/* $style[column] */
|
|
35
|
-
li.custom-column > table {
|
|
36
|
-
display: none
|
|
37
|
-
}
|
|
38
|
-
.cob-app .instance-detail-container div.instance-container li.custom-column > ol.fields {
|
|
39
|
-
border:none;
|
|
40
|
-
background-color: unset;
|
|
41
|
-
margin:unset;
|
|
42
|
-
}
|
|
43
|
-
.cob-app .instance-detail-container .instance-container .fields-container li.custom-column.field-group {
|
|
44
|
-
margin:unset;
|
|
45
|
-
padding: unset;
|
|
46
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/* Overall good practive - not column related but specialy relevant inside columns */
|
|
2
|
-
.cob-app .instance-detail-container div.instance-container ol.fields > li > table > tbody > tr > td:nth-child(1) {
|
|
3
|
-
min-width: 70px;
|
|
4
|
-
}
|
|
5
|
-
.cob-app .instance-detail-container div.instance-container ol.fields > li > table > tbody > tr > td:nth-child(2) {
|
|
6
|
-
min-width: 160px;
|
|
7
|
-
}
|
|
8
|
-
/*
|
|
9
|
-
* Removido porque estraga, pelo menos, os $radio
|
|
10
|
-
.cob-app .instance-detail-container div.instance-container ol.fields li > table > tbody > tr > td:nth-child(3),
|
|
11
|
-
.cob-app .instance-detail-container div.instance-container ol.fields li > table > tbody > tr > td:nth-child(3) input {
|
|
12
|
-
max-width: 230px;
|
|
13
|
-
width: -webkit-fill-available;
|
|
14
|
-
} */
|
|
15
|
-
|
|
16
|
-
.cob-app .nav > li > a.js-menu-rm-importer-stats,
|
|
17
|
-
.cob-app .nav > li > a.js-menu-reports {
|
|
18
|
-
display:none
|
|
19
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/* $style[hide-in-group-edit] */
|
|
2
|
-
/* $style[hide-in-new-instance] */
|
|
3
|
-
/* $style[hide-inline] */
|
|
4
|
-
/* $style[hide] */
|
|
5
|
-
|
|
6
|
-
.instance-detail-container.js-group-edit-container .custom-hide-in-group-edit,
|
|
7
|
-
.instance-detail-container.js-instance-details-container:not(.js-group-edit-container) .custom-hide-in-edit,
|
|
8
|
-
.instance-detail-container:not(.js-group-edit-container) #service--1 .custom-hide-in-new-instance,
|
|
9
|
-
.js-references-new-wrapper .custom-hide-inline,
|
|
10
|
-
.custom-hide {
|
|
11
|
-
background-color: rgba(255,0,0,0.05) !important; /* Tom de vermelho para assinalar que estes campos estão escondidos */
|
|
12
|
-
display: var(--dev-display, none); /* pode ser ligado via botão colocado pelo js/cob/_show_hidden.js */
|
|
13
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/* *************** History ******************* */
|
|
2
|
-
.cob-app a.js-logs-button.link {
|
|
3
|
-
text-decoration: none;
|
|
4
|
-
cursor: pointer;
|
|
5
|
-
font-size: 0.9em;
|
|
6
|
-
background-color: #745194;
|
|
7
|
-
color: white;
|
|
8
|
-
padding: 4px;
|
|
9
|
-
border-radius: 5px;
|
|
10
|
-
padding-right: 16px;
|
|
11
|
-
text-transform: uppercase;
|
|
12
|
-
margin-right: 12px;
|
|
13
|
-
}
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
@media screen and (max-width:767px) {
|
|
2
|
-
/* *************** Para impedir o resize dos inputs nos telemóveis ******************* */
|
|
3
|
-
input, select,textarea {
|
|
4
|
-
font-size: 16px !important;
|
|
5
|
-
}
|
|
6
|
-
.dashboard .board {
|
|
7
|
-
min-height: 20px !important;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.cob-app .row, .cob-app .thumbnails {
|
|
11
|
-
margin-left: 1px;
|
|
12
|
-
margin-top: -5px;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
/* *************** Melhores Buttons ******************* */
|
|
16
|
-
.cob-app .search-definition .results-container .mass-options button {
|
|
17
|
-
display: inline;
|
|
18
|
-
margin-bottom: 2px;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
/* *************** Melhor sidenav ******************* */
|
|
22
|
-
.cob-app section {
|
|
23
|
-
top: 70px;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.sidenav .left-aligned.left-spaced.padding-5px {
|
|
27
|
-
position: absolute;
|
|
28
|
-
top: 64px;
|
|
29
|
-
right: 0px;
|
|
30
|
-
text-align: right;
|
|
31
|
-
margin-right: 21px;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.js-group-edit-container .sidenav .left-aligned.left-spaced.padding-5px {
|
|
35
|
-
top: 122px;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.sidenav .space {
|
|
39
|
-
height:5px !important;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.cob-app .instance-detail-container .instance-container .fields-container {
|
|
43
|
-
border-top: solid 1px;
|
|
44
|
-
margin-top: -10px;
|
|
45
|
-
padding-top: 8px;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/* *************** Centrar input dos $ref correctamente ******************* */
|
|
49
|
-
.cob-app .input-append, .cob-app .input-prepend {
|
|
50
|
-
margin-bottom: 0px;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/* *************** Para ter uma tabela melhor nos telemóveis ******************* */
|
|
54
|
-
.cob-app .instance-detail-container div.instance-container ol.fields {
|
|
55
|
-
width:98%;
|
|
56
|
-
}
|
|
57
|
-
ol.fields table > tbody > tr > td:nth-child(1) {
|
|
58
|
-
min-width:30px !important;
|
|
59
|
-
width:30px !important;
|
|
60
|
-
max-width:30px !important;
|
|
61
|
-
}
|
|
62
|
-
ol.fields table > tbody > tr > td:nth-child(2),
|
|
63
|
-
ol.fields table > tbody > tr > td:nth-child(2) label {
|
|
64
|
-
width:100px !important;
|
|
65
|
-
min-width:100px !important;
|
|
66
|
-
}
|
|
67
|
-
.cob-app .instance-detail-container ol.fields table > tbody > tr > td:nth-child(3) > div > input,
|
|
68
|
-
.cob-app .instance-detail-container ol.fields table > tbody > tr > td:nth-child(3) > div > span > input {
|
|
69
|
-
min-width:140px !important;
|
|
70
|
-
max-width:140px !important;
|
|
71
|
-
}
|
|
72
|
-
.cob-app .instance-detail-container ol.fields table > tbody > tr > td:nth-child(3) > input,
|
|
73
|
-
.cob-app .instance-detail-container ol.fields table > tbody > tr > td:nth-child(3) > label,
|
|
74
|
-
.cob-app .instance-detail-container ol.fields table > tbody > tr > td:nth-child(3) > div.instance-container > span,
|
|
75
|
-
.cob-app .instance-detail-container ol.fields table > tbody > tr > td:nth-child(3) > div.instance-container > input,
|
|
76
|
-
.cob-app .instance-detail-container ol.fields table > tbody > tr > td:nth-child(3) > div.inline > input,
|
|
77
|
-
.cob-app .instance-detail-container ol.fields table > tbody > tr > td:nth-child(3) > div > textarea {
|
|
78
|
-
min-width:175px !important;
|
|
79
|
-
max-width:175px !important;
|
|
80
|
-
}
|
|
81
|
-
.cob-app .markdown-container,
|
|
82
|
-
.cob-app .instance-detail-container ol.fields table > tbody > tr > td:nth-child(3) > div.inline > select {
|
|
83
|
-
min-width:100% !important;
|
|
84
|
-
max-width:190px !important;
|
|
85
|
-
}
|
|
86
|
-
.cob-app .instance-detail-container ol.fields table > tbody > tr > td:nth-child(4) {
|
|
87
|
-
min-width:0px !important;
|
|
88
|
-
max-width:0px !important;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
/* selects constantes */
|
|
92
|
-
.cob-app .instance-detail-container ol.fields table > tbody > tr > td:nth-child(3) > div.inline > select,
|
|
93
|
-
.cob-app .instance-detail-container select {
|
|
94
|
-
min-width: 188px !important;
|
|
95
|
-
max-width: 188px !important;
|
|
96
|
-
}
|
|
97
|
-
/* identação nas hierarquias mínimas */
|
|
98
|
-
.cob-app .instance-detail-container div.instance-container ol.fields {
|
|
99
|
-
margin-left: -1px;
|
|
100
|
-
margin-right:0px;
|
|
101
|
-
width: 100%
|
|
102
|
-
}
|
|
103
|
-
.cob-app .instance-detail-container div.instance-container ol.fields > li {
|
|
104
|
-
padding-left: 1px;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
@media (max-width: 585px) {
|
|
109
|
-
/* *************** Para alinhar melhor as opções do menu em mobile ******************* */
|
|
110
|
-
.cob-app #header .app-menus,
|
|
111
|
-
.cob-app #header .cobapps-menus {
|
|
112
|
-
margin-left: unset;
|
|
113
|
-
}
|
|
114
|
-
.cob-app #header .nav > li {
|
|
115
|
-
text-align:right
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
@media (hover: none) and (pointer: coarse) {
|
|
120
|
-
/* *************** Aumentar o tamanho dos botões + e - em ecrãs tácteis ******************* */
|
|
121
|
-
.js-advanced-field-add,
|
|
122
|
-
.js-advanced-field-remove {
|
|
123
|
-
font-size: 2em !important;
|
|
124
|
-
}
|
|
125
|
-
}
|
package/templates/frontend/common/templates/frontend/common/js/cob/_disable_save_onSubdetail.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
//--------------- Desativar "save button" da sidebar quando esta definição é aberta in-line ---------------------
|
|
2
|
-
cob.custom.customize.push(function (core, utils, ui) {
|
|
3
|
-
core.customizeAllInstances(function(instance, presenter) {
|
|
4
|
-
var mo = new MutationObserver(function (e) {
|
|
5
|
-
//disables sidebar save button if more than 1 is present
|
|
6
|
-
let saveButtons = document.getElementsByClassName("js-save-instance")
|
|
7
|
-
if(saveButtons.length > 0) saveButtons[0].disabled = saveButtons.length > 1
|
|
8
|
-
});
|
|
9
|
-
mo.observe(document.querySelector('div.instance-container'), { childList: true, subtree: true });
|
|
10
|
-
})
|
|
11
|
-
})
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
//--------------- $group apenas com $references assumem 'nome' do $references ---------------------
|
|
2
|
-
// Use $style[use-reference-count] on the containing $group that you want to have the result
|
|
3
|
-
cob.custom.customize.push(function (core, utils, ui) {
|
|
4
|
-
core.customizeAllInstances(function(instance, presenter) {
|
|
5
|
-
const update = (div) => {
|
|
6
|
-
let group = $(div).parentsUntil(".field-group.custom-use-reference-count").parent().find(".group-name")
|
|
7
|
-
let groupName = (group[0].children.length ? group[0].children[0].innerHTML : group[0].innerHTML).trim()
|
|
8
|
-
let labelHTML = $(div).parent()[0].innerHTML
|
|
9
|
-
let labelWithCount = labelHTML.substring(0,labelHTML.indexOf("<div"))
|
|
10
|
-
//Apenas muda o texto se o nome do $group for o mesmo que o do campo $references
|
|
11
|
-
//isto permite escolher qual o references a mostrar
|
|
12
|
-
if(labelWithCount.indexOf(" <span>"+groupName+"</span>") == 0) {
|
|
13
|
-
group[0].innerHTML = labelWithCount
|
|
14
|
-
$(m.target).parent().parent().hide()
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
var mo = new MutationObserver( (mutations) => mutations.forEach( m => update(m.target)) );
|
|
18
|
-
|
|
19
|
-
let references = $('.field-group.custom-use-reference-count > ol > li:not(.hidden) > div > div.references-legend').toArray()
|
|
20
|
-
references.forEach( reference => mo.observe(reference.children[1], { childList: true }) );
|
|
21
|
-
})
|
|
22
|
-
})
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
// Mostrar botão para mostrar campos hidden se /recordm/?dev=true# ou System
|
|
2
|
-
cob.custom.customize.push(function (core, utils, ui) {
|
|
3
|
-
core.customizeAllInstances(function (instance, presenter) {
|
|
4
|
-
const urlParams = new URLSearchParams(window.location.search);
|
|
5
|
-
const dev = urlParams.get('dev') || (core.getGroups() || []).includes("System");
|
|
6
|
-
document.documentElement.style.setProperty("--dev-display", "");
|
|
7
|
-
|
|
8
|
-
if ( (dev == true || dev == "true")
|
|
9
|
-
&& ( $(".custom-hide").size()
|
|
10
|
-
|| $(".custom-hide-in-edit").size()
|
|
11
|
-
|| $(".custom-hide-in-group-edit").size()
|
|
12
|
-
|| $(".custom-hide-in-new-instance").size()
|
|
13
|
-
)
|
|
14
|
-
){
|
|
15
|
-
|
|
16
|
-
if(!document.getElementById("checkHidden")) {
|
|
17
|
-
var node = document.createElement('div');
|
|
18
|
-
node.innerHTML = '<input type="checkbox" id="checkHidden" name="checkHidden" style="display: inline-block;margin-bottom: 4px;margin-left: -4px;">'
|
|
19
|
-
+ '<label for="checkHidden" style="display: inline-block;">Show Hidden</label>';
|
|
20
|
-
|
|
21
|
-
var sidenav = document.getElementsByClassName("js-expand-all")[0];
|
|
22
|
-
sidenav.after(node);
|
|
23
|
-
|
|
24
|
-
let show = false;
|
|
25
|
-
node.addEventListener ("input", function() {
|
|
26
|
-
if(show = !show) {
|
|
27
|
-
document.documentElement.style.setProperty("--dev-display", "block");
|
|
28
|
-
} else {
|
|
29
|
-
document.documentElement.style.setProperty("--dev-display", "");
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
});
|