From 27c42cbf3dd2cb808f09a06cd011033cd2f4d4b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vincent=20Moitti=C3=A9?= Date: Tue, 8 Oct 2024 15:46:21 +0200 Subject: [PATCH] wip --- global.config.json | 4 +- package-lock.json | 116 ++++- package.json | 4 + .../card/ComponentDefinitionCard.vue | 2 +- .../drawer/ModelizerDrawLeftDrawer.vue | 2 +- .../grid/ComponentDefinitionGrid.vue | 15 +- src/components/list/LibraryList.vue | 86 ++-- .../tab-panel/ComponentsTabPanel.vue | 213 ++++++++ .../tab-panel/VariablesTabPanel.vue | 139 ++++++ src/components/tab/ComponentsTab.vue | 71 +++ src/layouts/ModelizerTestLayout.vue | 35 ++ src/pages/ModelizerTestPage.vue | 466 ++++++++++++++++++ src/plugins/index.js | 10 +- src/router/routes.js | 6 + 14 files changed, 1124 insertions(+), 45 deletions(-) create mode 100644 src/components/tab-panel/ComponentsTabPanel.vue create mode 100644 src/components/tab-panel/VariablesTabPanel.vue create mode 100644 src/components/tab/ComponentsTab.vue create mode 100644 src/layouts/ModelizerTestLayout.vue create mode 100644 src/pages/ModelizerTestPage.vue diff --git a/global.config.json b/global.config.json index 0967ef424..0de6ba5cd 100644 --- a/global.config.json +++ b/global.config.json @@ -1 +1,3 @@ -{} +{ + "backendUrl": "https://localhost:8443" +} diff --git a/package-lock.json b/package-lock.json index 7ebee49df..6c5db8c6c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,13 +8,17 @@ "name": "@ditrit/leto-modelizer", "version": "1.3.0", "dependencies": { + "@ditrit/githubator-plugin": "^0.5.2", + "@ditrit/kubernator-plugin": "^0.3.2", "@ditrit/leto-modelizer-plugin-core": "=0.28.0", + "@ditrit/terrator-plugin": "^0.12.2", "@quasar/extras": "=1.16.9", "axios": "=1.6.2", "browserfs": "=1.4.3", "core-js": "=3.34.0", "crypto-js": "^4.2.0", "isomorphic-git": "=1.25.1", + "jdenticon": "^3.3.0", "monaco-editor": "=0.45.0", "monaco-editor-webpack-plugin": "=7.1.0", "pako": "^2.1.0", @@ -2503,6 +2507,51 @@ "ms": "^2.1.1" } }, + "node_modules/@ditrit/githubator-plugin": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/@ditrit/githubator-plugin/-/githubator-plugin-0.5.2.tgz", + "integrity": "sha512-/v0PozLYsyqRmxKMsXhwGn//XCORlFHM8G3uSCHEKGiEEcu/HwvOevohzNDaYp2IHokbNjV/WauOC7kCFCAhLA==", + "license": "MPL-2.0", + "dependencies": { + "lidy-js": "github:ditrit/lidy-js#1.0.1", + "nunjucks": "=3.2.4" + }, + "peerDependencies": { + "@ditrit/leto-modelizer-plugin-core": "=0.28.0" + } + }, + "node_modules/@ditrit/kubernator-plugin": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@ditrit/kubernator-plugin/-/kubernator-plugin-0.3.2.tgz", + "integrity": "sha512-shTcNEYvoG38+ij/wETK/w2Zh0V11NOzabpqL5N2wvlhBHw9yqRqe5WGhy1bsflwIlHlGkoilvKkn5ivQ/lwuA==", + "license": "MPL-2.0", + "dependencies": { + "js-yaml": "^4.1.0", + "leto-modelizer-plugin-core": "github:ditrit/leto-modelizer-plugin-core#0.28.0", + "lidy-js": "github:ditrit/lidy-js#main" + }, + "peerDependencies": { + "@ditrit/leto-modelizer-plugin-core": "=0.28.0" + } + }, + "node_modules/@ditrit/kubernator-plugin/node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "license": "Python-2.0" + }, + "node_modules/@ditrit/kubernator-plugin/node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, "node_modules/@ditrit/leto-modelizer-plugin-cli": { "version": "2.0.1", "dev": true, @@ -2544,6 +2593,19 @@ "web-worker": "=1.3.0" } }, + "node_modules/@ditrit/terrator-plugin": { + "version": "0.12.2", + "resolved": "https://registry.npmjs.org/@ditrit/terrator-plugin/-/terrator-plugin-0.12.2.tgz", + "integrity": "sha512-BdrS17j046Y3P+IM3hv7OcRKfOukWVVFJm6Ct5a9tyR1pocbf07yi1uwDdxdMsduvnqgv9/qmHjpde9dXGTP1g==", + "license": "MPL-2.0", + "dependencies": { + "antlr4": "=4.13.2", + "nunjucks": "=3.2.4" + }, + "peerDependencies": { + "@ditrit/leto-modelizer-plugin-core": "=0.28.0" + } + }, "node_modules/@es-joy/jsdoccomment": { "version": "0.41.0", "dev": true, @@ -6776,6 +6838,15 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, + "node_modules/antlr4": { + "version": "4.13.2", + "resolved": "https://registry.npmjs.org/antlr4/-/antlr4-4.13.2.tgz", + "integrity": "sha512-QiVbZhyy4xAZ17UPEuG3YTOt8ZaoeOR1CvEAqrEsDBsOqINslaB147i9xqljZqoyf5S+EUlGStaj+t22LT9MOg==", + "license": "BSD-3-Clause", + "engines": { + "node": ">=16" + } + }, "node_modules/any-promise": { "version": "1.3.0", "dev": true, @@ -8458,6 +8529,15 @@ ], "license": "CC-BY-4.0" }, + "node_modules/canvas-renderer": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/canvas-renderer/-/canvas-renderer-2.2.1.tgz", + "integrity": "sha512-RrBgVL5qCEDIXpJ6NrzyRNoTnXxYarqm/cS/W6ERhUJts5UQtt/XPEosGN3rqUkZ4fjBArlnCbsISJ+KCFnIAg==", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, "node_modules/capital-case": { "version": "1.0.4", "dev": true, @@ -15112,6 +15192,21 @@ "dev": true, "license": "MIT" }, + "node_modules/jdenticon": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/jdenticon/-/jdenticon-3.3.0.tgz", + "integrity": "sha512-DhuBRNRIybGPeAjMjdHbkIfiwZCCmf8ggu7C49jhp6aJ7DYsZfudnvnTY5/1vgUhrGA7JaDAx1WevnpjCPvaGg==", + "license": "MIT", + "dependencies": { + "canvas-renderer": "~2.2.0" + }, + "bin": { + "jdenticon": "bin/jdenticon.js" + }, + "engines": { + "node": ">=6.4.0" + } + }, "node_modules/jest": { "version": "29.7.0", "dev": true, @@ -17939,6 +18034,18 @@ "safe-buffer": "~5.1.0" } }, + "node_modules/leto-modelizer-plugin-core": { + "name": "@ditrit/leto-modelizer-plugin-core", + "version": "0.28.0", + "resolved": "git+ssh://git@github.com/ditrit/leto-modelizer-plugin-core.git#154dbe56d9000706c5cc95b5c71dbaca8696d90f", + "license": "MPL-2.0", + "dependencies": { + "d3": "=7.9.0", + "d3-hierarchy": "=3.1.2", + "nunjucks": "=3.2.4", + "web-worker": "=1.3.0" + } + }, "node_modules/leven": { "version": "3.1.0", "dev": true, @@ -17959,6 +18066,14 @@ "node": ">= 0.8.0" } }, + "node_modules/lidy-js": { + "version": "1.0.1", + "resolved": "git+ssh://git@github.com/ditrit/lidy-js.git#240f1c079feb56d8388ad31092632bce72c0a268", + "license": "MPL-2.0", + "dependencies": { + "yaml": "^2.0.0-5" + } + }, "node_modules/lilconfig": { "version": "2.1.0", "dev": true, @@ -26532,7 +26647,6 @@ }, "node_modules/yaml": { "version": "2.5.1", - "dev": true, "license": "ISC", "bin": { "yaml": "bin.mjs" diff --git a/package.json b/package.json index 1fd9ef2c0..c823d15ab 100644 --- a/package.json +++ b/package.json @@ -21,13 +21,17 @@ "plugin:uninstall": "node node_modules/@ditrit/leto-modelizer-plugin-cli/src/index.js uninstall" }, "dependencies": { + "@ditrit/githubator-plugin": "^0.5.2", + "@ditrit/kubernator-plugin": "^0.3.2", "@ditrit/leto-modelizer-plugin-core": "=0.28.0", + "@ditrit/terrator-plugin": "^0.12.2", "@quasar/extras": "=1.16.9", "axios": "=1.6.2", "browserfs": "=1.4.3", "core-js": "=3.34.0", "crypto-js": "^4.2.0", "isomorphic-git": "=1.25.1", + "jdenticon": "^3.3.0", "monaco-editor": "=0.45.0", "monaco-editor-webpack-plugin": "=7.1.0", "pako": "^2.1.0", diff --git a/src/components/card/ComponentDefinitionCard.vue b/src/components/card/ComponentDefinitionCard.vue index fd85fbfb9..3c0cabee2 100644 --- a/src/components/card/ComponentDefinitionCard.vue +++ b/src/components/card/ComponentDefinitionCard.vue @@ -170,7 +170,7 @@ onMounted(() => { diff --git a/src/components/drawer/ModelizerDrawLeftDrawer.vue b/src/components/drawer/ModelizerDrawLeftDrawer.vue index a9df00eea..2f359c765 100644 --- a/src/components/drawer/ModelizerDrawLeftDrawer.vue +++ b/src/components/drawer/ModelizerDrawLeftDrawer.vue @@ -12,7 +12,7 @@