From ceb49d61ba30b837f0287bebb744fa26a3033e57 Mon Sep 17 00:00:00 2001 From: dartcafe Date: Sun, 24 Sep 2023 22:49:19 +0200 Subject: [PATCH] move template for settings into base component Signed-off-by: dartcafe --- src/js/components/Base/index.js | 1 + .../components/Base/modules/FlexSettings.vue | 70 +++++++++++++++++++ src/js/views/AdminSettingsPage.vue | 41 ++--------- src/js/views/UserSettingsPage.vue | 37 ++-------- 4 files changed, 80 insertions(+), 69 deletions(-) create mode 100644 src/js/components/Base/modules/FlexSettings.vue diff --git a/src/js/components/Base/index.js b/src/js/components/Base/index.js index 98025979e..d7b219aae 100644 --- a/src/js/components/Base/index.js +++ b/src/js/components/Base/index.js @@ -1,6 +1,7 @@ export { default as BadgeDiv } from './modules/BadgeDiv.vue' export { default as CardDiv } from './modules/CardDiv.vue' export { default as ConfigBox } from './modules/ConfigBox.vue' +export { default as FlexSettings } from './modules/FlexSettings.vue' export { default as FlexSpacer } from './modules/FlexSpacer.vue' export { default as HeaderBar } from './modules/HeaderBar.vue' export { default as InputDiv } from './modules/InputDiv.vue' diff --git a/src/js/components/Base/modules/FlexSettings.vue b/src/js/components/Base/modules/FlexSettings.vue new file mode 100644 index 000000000..3ff2bb943 --- /dev/null +++ b/src/js/components/Base/modules/FlexSettings.vue @@ -0,0 +1,70 @@ + + + + + + + diff --git a/src/js/views/AdminSettingsPage.vue b/src/js/views/AdminSettingsPage.vue index 92dca7bee..0a955462d 100644 --- a/src/js/views/AdminSettingsPage.vue +++ b/src/js/views/AdminSettingsPage.vue @@ -21,7 +21,7 @@ --> - - diff --git a/src/js/views/UserSettingsPage.vue b/src/js/views/UserSettingsPage.vue index 4280ef487..863b625ad 100644 --- a/src/js/views/UserSettingsPage.vue +++ b/src/js/views/UserSettingsPage.vue @@ -21,7 +21,7 @@ --> - -