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