initialized with vue3-shortkey@4.0.0

This commit is contained in:
Apurv Gupta 2023-11-18 18:39:00 +05:30
parent eaa4123068
commit 4082d43fc7
4 changed files with 476 additions and 168 deletions

640
ui/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -72,6 +72,7 @@
"vue-web-storage": "^6.1.0",
"vue3-clipboard": "^1.0.0",
"vue3-google-login": "^2.0.20",
"vue3-shortkey": "^4.0.0",
"vuedraggable": "^4.0.3",
"vuex": "^4.0.0-0"
},

View File

@ -53,6 +53,7 @@ vueApp.use(localesPlugin)
vueApp.use(genericUtilPlugin)
vueApp.use(extensions)
vueApp.use(directives)
vueApp.use(require('vue3-shortkey'), { prevent: ['input', 'textarea'] })
fetch('config.json').then(response => response.json()).then(config => {
vueProps.$config = config

View File

@ -28,6 +28,8 @@
style="margin-bottom: 5px"
shape="round"
size="small"
v-shortkey="['r']"
@shortkey="fetchData({ irefresh: true })"
@click="fetchData({ irefresh: true })">
<template #icon><reload-outlined /></template>
{{ $t('label.refresh') }}