-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.vue
67 lines (64 loc) · 1.47 KB
/
app.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<template>
<div class="flex h-full w-full flex-row bg-slate-950">
<div class="h-full w-[120px] border-r border-solid border-red-300 px-2">
<menus />
</div>
<KeyBinding
v-if="stores.ms.selectedMenu.key === data.MenuItemKeys.KEY_BINDING"
/>
<LlmModel
v-if="stores.ms.selectedMenu.key === data.MenuItemKeys.LLM_MODELS"
/>
</div>
</template>
<script lang="ts">
import KeyBinding from "./components/pages/KeyBinding.vue";
import LlmModel from "./components/pages/LlmModel.vue";
import Menus from "./components/pages/menus.vue";
import { useKeyBindingStore } from "./stores/keyBindings";
import { useLlmModelStore } from "./stores/llmModels";
import { useMenuStore } from "./stores/menu";
import { MenuItemKeys } from "./types/ui";
export default defineComponent({
components: {
Menus,
KeyBinding,
LlmModel,
},
setup() {
const ms = useMenuStore();
const kbs = useKeyBindingStore();
const ls = useLlmModelStore();
kbs.notifyBackend(ls.llmModelsLookup);
return buildDefineComponentSetup(
{
data: {
MenuItemKeys,
},
methods: {},
handlers: {},
stores: {
ms,
},
},
{}
);
},
});
</script>
<style lang="postcss">
html {
@apply h-full;
@apply w-full;
}
#__nuxt {
@apply h-full;
@apply w-full;
}
body {
@apply m-0 !important;
@apply h-full;
@apply w-full;
}
</style>
import { buildDefineComponentSetup } from './utils/internal'