From dffa40a5132b1516a9d9846de1bcf77c90e86bc7 Mon Sep 17 00:00:00 2001 From: JAGFx Date: Thu, 28 Jul 2022 08:44:09 +0200 Subject: [PATCH] :sparkles: #133 add configuration menu section with real data --- package-lock.json | 1 + package.json | 1 + .../components/menu/ConfigurationTab.vue | 112 ------------------ .../ConfigurationTab/ConfigurationList.vue | 23 ++++ .../ConfigurationListItem.vue | 34 ++++++ .../ConfigurationListItemSelect.vue | 26 ++++ .../ConfigurationListItemSwitch.vue | 19 +++ .../ConfigurationSearchBar.vue | 53 +++++++++ .../ConfigurationTab/ConfigurationTab.vue | 13 ++ src/application/components/menu/Menu.vue | 2 +- .../uses/useConfigurationLibrary.js | 32 +++++ src/assets/scss/menu/_menu-tab-config.scss | 2 +- src/components/menu/MenuTabConfig.vue | 6 +- .../configuration/configuration.library.json | 36 ++++++ .../configurationLibrary.model.js | 9 ++ .../configurationLibrary.util.js | 38 ++++++ .../configurationLibrary.util.spec.js | 34 ++++++ 17 files changed, 324 insertions(+), 117 deletions(-) delete mode 100644 src/application/components/menu/ConfigurationTab.vue create mode 100644 src/application/components/menu/ConfigurationTab/ConfigurationList.vue create mode 100644 src/application/components/menu/ConfigurationTab/ConfigurationListItem.vue create mode 100644 src/application/components/menu/ConfigurationTab/ConfigurationListItemSelect.vue create mode 100644 src/application/components/menu/ConfigurationTab/ConfigurationListItemSwitch.vue create mode 100644 src/application/components/menu/ConfigurationTab/ConfigurationSearchBar.vue create mode 100644 src/application/components/menu/ConfigurationTab/ConfigurationTab.vue create mode 100644 src/application/uses/useConfigurationLibrary.js create mode 100644 src/domain/configuration/configuration.library.json create mode 100644 src/domain/configuration/configurationLibrary.model.js create mode 100644 src/domain/configuration/configurationLibrary.util.js create mode 100644 src/domain/configuration/configurationLibrary.util.spec.js diff --git a/package-lock.json b/package-lock.json index c164d53e..13762ce4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -40,6 +40,7 @@ "yaml-loader": "0.6.0" }, "devDependencies": { + "@jest/globals": "^28.1.3", "@modyfi/vite-plugin-yaml": "^1.0.2", "@vitejs/plugin-vue": "^2.3.3", "@vue/cli-service": "^5.0.8", diff --git a/package.json b/package.json index 2b151eef..8f21d9cc 100644 --- a/package.json +++ b/package.json @@ -68,6 +68,7 @@ "yaml-loader": "0.6.0" }, "devDependencies": { + "@jest/globals": "^28.1.3", "@modyfi/vite-plugin-yaml": "^1.0.2", "@vitejs/plugin-vue": "^2.3.3", "@vue/cli-service": "^5.0.8", diff --git a/src/application/components/menu/ConfigurationTab.vue b/src/application/components/menu/ConfigurationTab.vue deleted file mode 100644 index 258a9829..00000000 --- a/src/application/components/menu/ConfigurationTab.vue +++ /dev/null @@ -1,112 +0,0 @@ - - - - - diff --git a/src/application/components/menu/ConfigurationTab/ConfigurationList.vue b/src/application/components/menu/ConfigurationTab/ConfigurationList.vue new file mode 100644 index 00000000..25442c98 --- /dev/null +++ b/src/application/components/menu/ConfigurationTab/ConfigurationList.vue @@ -0,0 +1,23 @@ + + + + + diff --git a/src/application/components/menu/ConfigurationTab/ConfigurationListItem.vue b/src/application/components/menu/ConfigurationTab/ConfigurationListItem.vue new file mode 100644 index 00000000..3de4ad59 --- /dev/null +++ b/src/application/components/menu/ConfigurationTab/ConfigurationListItem.vue @@ -0,0 +1,34 @@ + + + + + diff --git a/src/application/components/menu/ConfigurationTab/ConfigurationListItemSelect.vue b/src/application/components/menu/ConfigurationTab/ConfigurationListItemSelect.vue new file mode 100644 index 00000000..c9f105ff --- /dev/null +++ b/src/application/components/menu/ConfigurationTab/ConfigurationListItemSelect.vue @@ -0,0 +1,26 @@ + + + + + diff --git a/src/application/components/menu/ConfigurationTab/ConfigurationListItemSwitch.vue b/src/application/components/menu/ConfigurationTab/ConfigurationListItemSwitch.vue new file mode 100644 index 00000000..6878f813 --- /dev/null +++ b/src/application/components/menu/ConfigurationTab/ConfigurationListItemSwitch.vue @@ -0,0 +1,19 @@ + + + + + diff --git a/src/application/components/menu/ConfigurationTab/ConfigurationSearchBar.vue b/src/application/components/menu/ConfigurationTab/ConfigurationSearchBar.vue new file mode 100644 index 00000000..c615d8f1 --- /dev/null +++ b/src/application/components/menu/ConfigurationTab/ConfigurationSearchBar.vue @@ -0,0 +1,53 @@ + + + + + diff --git a/src/application/components/menu/ConfigurationTab/ConfigurationTab.vue b/src/application/components/menu/ConfigurationTab/ConfigurationTab.vue new file mode 100644 index 00000000..26c9182d --- /dev/null +++ b/src/application/components/menu/ConfigurationTab/ConfigurationTab.vue @@ -0,0 +1,13 @@ + + + + + diff --git a/src/application/components/menu/Menu.vue b/src/application/components/menu/Menu.vue index 6ffdbae8..747c8c6d 100644 --- a/src/application/components/menu/Menu.vue +++ b/src/application/components/menu/Menu.vue @@ -25,7 +25,7 @@