From def719d86ff4d9e6a6f5cbb0684df58ff0f87d52 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 30 May 2021 13:44:43 +0200 Subject: [PATCH 01/17] Add basic quick actions component --- src/components/home/contentAuth.vue | 5 +- .../quick-actions/quick-actions.vue | 53 +++++++++++++++++++ src/store/index.js | 6 ++- src/store/mutation-types.js | 1 + 4 files changed, 63 insertions(+), 2 deletions(-) create mode 100644 src/components/quick-actions/quick-actions.vue diff --git a/src/components/home/contentAuth.vue b/src/components/home/contentAuth.vue index 2918915b4..8366e5d0f 100644 --- a/src/components/home/contentAuth.vue +++ b/src/components/home/contentAuth.vue @@ -20,6 +20,8 @@ > + + @@ -43,10 +45,11 @@ import {mapState} from 'vuex' import {CURRENT_LIST, KEYBOARD_SHORTCUTS_ACTIVE, MENU_ACTIVE} from '@/store/mutation-types' import Navigation from '@/components/home/navigation' +import QuickActions from '@/components/quick-actions/quick-actions' export default { name: 'contentAuth', - components: {Navigation}, + components: {QuickActions, Navigation}, watch: { '$route': 'doStuffAfterRoute', }, diff --git a/src/components/quick-actions/quick-actions.vue b/src/components/quick-actions/quick-actions.vue new file mode 100644 index 000000000..f07eaa057 --- /dev/null +++ b/src/components/quick-actions/quick-actions.vue @@ -0,0 +1,53 @@ + + + diff --git a/src/store/index.js b/src/store/index.js index 46a88ca06..4cc6eaab0 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -8,7 +8,7 @@ import { LOADING, LOADING_MODULE, MENU_ACTIVE, - ONLINE, + ONLINE, QUICK_ACTIONS_ACTIVE, } from './mutation-types' import config from './modules/config' import auth from './modules/auth' @@ -44,6 +44,7 @@ export const store = new Vuex.Store({ hasTasks: false, menuActive: true, keyboardShortcutsActive: false, + quickActionsActive: false, }, mutations: { [LOADING](state, loading) { @@ -127,5 +128,8 @@ export const store = new Vuex.Store({ [KEYBOARD_SHORTCUTS_ACTIVE](state, active) { state.keyboardShortcutsActive = active }, + [QUICK_ACTIONS_ACTIVE](state, active) { + state.quickActionsActive = active + }, }, }) \ No newline at end of file diff --git a/src/store/mutation-types.js b/src/store/mutation-types.js index 4a9043c59..9c6381d24 100644 --- a/src/store/mutation-types.js +++ b/src/store/mutation-types.js @@ -6,6 +6,7 @@ export const CURRENT_LIST = 'currentList' export const HAS_TASKS = 'hasTasks' export const MENU_ACTIVE = 'menuActive' export const KEYBOARD_SHORTCUTS_ACTIVE = 'keyboardShortcutsActive' +export const QUICK_ACTIONS_ACTIVE = 'quickActionsActive' export const CONFIG = 'config' export const AUTH = 'auth' -- 2.40.1 From 98744936aab2a9e93c5df37f65b3d3bf19384f33 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 30 May 2021 14:25:14 +0200 Subject: [PATCH 02/17] use multiselect --- src/components/input/multiselect.vue | 37 ++++++++++--- .../quick-actions/quick-actions.vue | 52 +++++++++---------- src/styles/components/base/multiselect.scss | 4 ++ 3 files changed, 60 insertions(+), 33 deletions(-) diff --git a/src/components/input/multiselect.vue b/src/components/input/multiselect.vue index 38ce865ba..2bb520518 100644 --- a/src/components/input/multiselect.vue +++ b/src/components/input/multiselect.vue @@ -34,7 +34,7 @@ -
+
-- 2.40.1 From d8650c9570a844444c55c3fc23828b5e40d85cdc Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 30 May 2021 16:46:07 +0200 Subject: [PATCH 06/17] Add support for selecting actions --- .../quick-actions/quick-actions.vue | 64 +++++++++++++++---- src/styles/components/quick-actions.scss | 20 +++++- 2 files changed, 67 insertions(+), 17 deletions(-) diff --git a/src/components/quick-actions/quick-actions.vue b/src/components/quick-actions/quick-actions.vue index d9838f1b4..e9c774212 100644 --- a/src/components/quick-actions/quick-actions.vue +++ b/src/components/quick-actions/quick-actions.vue @@ -1,16 +1,22 @@