import ComponentDefinitionCard from 'src/components/card/ComponentDefinitionCard.vue';
+import { computed } from 'vue';
defineProps({
definitions: {
@@ -30,4 +31,16 @@ defineProps({
required: true,
},
});
+const columns = computed(() => [
+ {
+ name: 'name',
+ label: t('page.modelizer.drawer.variables.name'),
+ field: 'name',
+ },
+ {
+ name: 'value',
+ label: t('page.modelizer.drawer.variables.value'),
+ field: 'value',
+ },
+]);
diff --git a/src/components/list/LibraryList.vue b/src/components/list/LibraryList.vue
index 044aee8d6..4f8c4f863 100644
--- a/src/components/list/LibraryList.vue
+++ b/src/components/list/LibraryList.vue
@@ -1,54 +1,64 @@
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
{{ $t('errors.permissionsDenied') }}
-
+
import { ref, computed, onMounted } from 'vue';
-import ComponentDefinitionGrid from 'src/components/grid/ComponentDefinitionGrid.vue';
import LibraryItem from 'src/components/item/LibraryItem.vue';
import { useI18n } from 'vue-i18n';
import { isMatching } from 'src/composables/Project';
import { useAcl } from 'vue-simple-acl';
import { getTemplatesByType } from 'src/services/TemplateService';
+import ComponentDefinitionCard from 'components/card/ComponentDefinitionCard.vue';
const acl = useAcl();
const { t } = useI18n();
diff --git a/src/components/tab-panel/ComponentsTabPanel.vue b/src/components/tab-panel/ComponentsTabPanel.vue
new file mode 100644
index 000000000..3690b07a1
--- /dev/null
+++ b/src/components/tab-panel/ComponentsTabPanel.vue
@@ -0,0 +1,213 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t('errors.permissionsDenied') }}
+
+
+ {{ $t('page.modelizer.drawer.components.empty') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/components/tab-panel/VariablesTabPanel.vue b/src/components/tab-panel/VariablesTabPanel.vue
new file mode 100644
index 000000000..1804693f2
--- /dev/null
+++ b/src/components/tab-panel/VariablesTabPanel.vue
@@ -0,0 +1,139 @@
+
+
+
+
+
+
+
+
+
+ {{ name }}
+
+
+
+
+
+ {{ value }}
+
+
+
+
+
+
+ {{ $t('page.modelizer.drawer.variables.empty') }}
+
+
+
+
+
+
+
+
diff --git a/src/components/tab/ComponentsTab.vue b/src/components/tab/ComponentsTab.vue
new file mode 100644
index 000000000..bcaf71309
--- /dev/null
+++ b/src/components/tab/ComponentsTab.vue
@@ -0,0 +1,71 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/layouts/ModelizerTestLayout.vue b/src/layouts/ModelizerTestLayout.vue
new file mode 100644
index 000000000..947f20666
--- /dev/null
+++ b/src/layouts/ModelizerTestLayout.vue
@@ -0,0 +1,35 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/ModelizerTestPage.vue b/src/pages/ModelizerTestPage.vue
new file mode 100644
index 000000000..bc45a9170
--- /dev/null
+++ b/src/pages/ModelizerTestPage.vue
@@ -0,0 +1,466 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/plugins/index.js b/src/plugins/index.js
index 368bd1d65..4c346c9c3 100644
--- a/src/plugins/index.js
+++ b/src/plugins/index.js
@@ -1,3 +1,9 @@
-// Currently empty but should be filled by CLI (cf. README)
+import githubatorPlugin from '@ditrit/githubator-plugin';
+import kubernatorPlugin from '@ditrit/kubernator-plugin';
+import terratorPlugin from '@ditrit/terrator-plugin';
-export default {};
+export default {
+ githubatorPlugin,
+ kubernatorPlugin,
+ terratorPlugin,
+};
diff --git a/src/router/routes.js b/src/router/routes.js
index 11c77af73..14dee05b0 100644
--- a/src/router/routes.js
+++ b/src/router/routes.js
@@ -5,6 +5,7 @@ import AboutLayout from 'src/layouts/AboutLayout.vue';
import HomeLayout from 'src/layouts/HomeLayout.vue';
import { getProjectById } from 'src/composables/Project';
import SplashLayout from 'layouts/SplashLayout.vue';
+import ModelizerTestLayout from 'layouts/ModelizerTestLayout.vue';
const routes = [
{
@@ -29,6 +30,11 @@ const routes = [
name: 'Draw',
component: ModelizerDrawLayout,
},
+ {
+ path: 'modelizer/test',
+ name: 'Draw',
+ component: ModelizerTestLayout,
+ },
{
path: 'modelizer/text',
name: 'Text',