2021-08-03 17:59:15 +02:00
|
|
|
<template>
|
|
|
|
<div class="container">
|
|
|
|
<div class="columns">
|
|
|
|
<div class="column col-16 text-right">
|
2022-08-17 16:20:36 +02:00
|
|
|
<div
|
|
|
|
v-for="(shortcut, i) in tabShortcuts"
|
|
|
|
:key="i"
|
|
|
|
class="mb-4"
|
|
|
|
>
|
|
|
|
{{ t(shortcutEvents[shortcut.event].l18n, {param: shortcutEvents[shortcut.event].l18nParam}) }}
|
2021-10-16 18:46:17 +02:00
|
|
|
</div>
|
2021-08-03 17:59:15 +02:00
|
|
|
</div>
|
|
|
|
<div class="column col-16">
|
2022-08-17 16:20:36 +02:00
|
|
|
<div
|
|
|
|
v-for="(shortcut, i) in tabShortcuts"
|
|
|
|
:key="i"
|
|
|
|
class="mb-4"
|
|
|
|
>
|
|
|
|
<span v-html="parseKeys(shortcut.keys)" />
|
2021-10-16 18:46:17 +02:00
|
|
|
</div>
|
2021-08-03 17:59:15 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2022-06-21 17:54:47 +02:00
|
|
|
<script setup lang="ts">
|
2023-08-18 15:57:31 +02:00
|
|
|
import { shortcutEvents } from 'common/shortcuts';
|
2022-08-17 16:20:36 +02:00
|
|
|
import { storeToRefs } from 'pinia';
|
2023-08-18 15:57:31 +02:00
|
|
|
import { computed } from 'vue';
|
2022-06-21 17:54:47 +02:00
|
|
|
import { useI18n } from 'vue-i18n';
|
2023-08-18 15:57:31 +02:00
|
|
|
|
2022-08-17 16:20:36 +02:00
|
|
|
import { useFilters } from '@/composables/useFilters';
|
2023-08-18 15:57:31 +02:00
|
|
|
import { useSettingsStore } from '@/stores/settings';
|
2022-08-17 16:20:36 +02:00
|
|
|
|
|
|
|
const { parseKeys } = useFilters();
|
2022-06-21 17:54:47 +02:00
|
|
|
|
|
|
|
const { t } = useI18n();
|
|
|
|
|
2022-08-17 16:20:36 +02:00
|
|
|
const settingsStore = useSettingsStore();
|
|
|
|
const { shortcuts } = storeToRefs(settingsStore);
|
|
|
|
|
|
|
|
const tabShortcuts = computed(() => {
|
|
|
|
return shortcuts.value.filter(s => shortcutEvents[s.event].context === 'tab');
|
2022-06-21 17:54:47 +02:00
|
|
|
});
|
2021-08-03 17:59:15 +02:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
.container {
|
|
|
|
padding-top: 15vh;
|
|
|
|
opacity: 0.6;
|
|
|
|
}
|
|
|
|
</style>
|