mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 06:20:11 +00:00
34 lines
837 B
Vue
34 lines
837 B
Vue
<template>
|
|
<div class="h-full flex flex-col p-4">
|
|
<div class="flex-1 min-h-0 overflow-auto">
|
|
<ShortcutsList
|
|
:commands="viewControlsCommands"
|
|
:subcategories="viewControlsSubcategories"
|
|
/>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { computed } from 'vue'
|
|
|
|
import {
|
|
VIEW_CONTROLS_CONFIG,
|
|
useCommandSubcategories
|
|
} from '@/composables/bottomPanelTabs/useCommandSubcategories'
|
|
import { useCommandStore } from '@/stores/commandStore'
|
|
|
|
import ShortcutsList from './ShortcutsList.vue'
|
|
|
|
const commandStore = useCommandStore()
|
|
|
|
const viewControlsCommands = computed(() =>
|
|
commandStore.commands.filter((cmd) => cmd.category === 'view-controls')
|
|
)
|
|
|
|
const { subcategories: viewControlsSubcategories } = useCommandSubcategories(
|
|
viewControlsCommands,
|
|
VIEW_CONTROLS_CONFIG
|
|
)
|
|
</script>
|