From 7508d92f92bd0bd4355a0434896a4955c928c3a7 Mon Sep 17 00:00:00 2001 From: NGPixel Date: Sun, 10 May 2020 18:43:45 -0400 Subject: [PATCH] feat: redirect editor UI (wip) --- client/components/common/page-selector.vue | 37 ++- client/components/editor.vue | 4 +- .../components/editor/editor-modal-blocks.vue | 66 +++--- .../editor/editor-modal-editorselect.vue | 60 ++--- client/components/editor/editor-redirect.vue | 224 ++++++++++++++++++ client/static/svg/icon-route.svg | 1 + server/modules/editor/redirect/definition.yml | 6 + 7 files changed, 319 insertions(+), 79 deletions(-) create mode 100644 client/components/editor/editor-redirect.vue create mode 100644 client/static/svg/icon-route.svg create mode 100644 server/modules/editor/redirect/definition.yml diff --git a/client/components/common/page-selector.vue b/client/components/common/page-selector.vue index 8fc91b17..3f958be8 100644 --- a/client/components/common/page-selector.vue +++ b/client/components/common/page-selector.vue @@ -20,7 +20,7 @@ v-show='searchLoading' ) .d-flex - v-flex.grey(xs5, :class='darkMode ? `darken-4` : `lighten-3`') + v-flex.grey(xs5, :class='$vuetify.theme.dark ? `darken-4` : `lighten-3`') v-toolbar(color='grey darken-3', dark, dense, flat) .body-2 Virtual Folders v-spacer @@ -57,7 +57,7 @@ color='primary' ) template(v-for='(page, idx) of currentPages') - v-list-item(:key='`page-` + page.id', :value='page.path') + v-list-item(:key='`page-` + page.id', :value='page') v-list-item-icon: v-icon mdi-text-box v-list-item-title {{page.title}} v-divider(v-if='idx < pages.length - 1') @@ -69,7 +69,7 @@ icon='mdi-alert' ) .body-2 This folder is empty. - v-card-actions.grey.pa-2(:class='darkMode ? `darken-2` : `lighten-1`') + v-card-actions.grey.pa-2(:class='$vuetify.theme.dark ? `darken-2` : `lighten-1`', v-if='!mustExist') v-select( solo dark @@ -101,8 +101,7 @@ + + diff --git a/client/static/svg/icon-route.svg b/client/static/svg/icon-route.svg new file mode 100644 index 00000000..7d132d5f --- /dev/null +++ b/client/static/svg/icon-route.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/server/modules/editor/redirect/definition.yml b/server/modules/editor/redirect/definition.yml new file mode 100644 index 00000000..ad410522 --- /dev/null +++ b/server/modules/editor/redirect/definition.yml @@ -0,0 +1,6 @@ +key: redirect +title: Redirection +description: Redirect the user +contentType: redirect +author: requarks.io +props: {}