Left Project tool window (hide/show stripe, pointer and keyboard resize), editor area placeholder and status bar. Project tree with lazy project.children listings, WAI-ARIA keyboard navigation, Lucide icons, dimmed ignored/excluded entries and refresh on TreeChanged. Empty state runs project.openDialog. Pinia store fed only by engine events and command results; events come through a local onEngineEvent adapter until the desktop bridge (M1.4) lands. Lucide via @lucide/vue (the renamed lucide-vue-next, ISC). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
62 lines
1.3 KiB
Vue
62 lines
1.3 KiB
Vue
<script setup lang="ts">
|
|
/**
|
|
* Layout of the main window: the Project tool window on the left, the
|
|
* editor area in the middle and the status bar along the bottom.
|
|
*
|
|
* The editor area is a slot so the editor (M1.6) can replace the
|
|
* placeholder without touching the layout.
|
|
*/
|
|
import { ref } from "vue";
|
|
import ProjectToolWindow from "../project/ProjectToolWindow.vue";
|
|
import StatusBar from "../StatusBar.vue";
|
|
import ToolWindow from "./ToolWindow.vue";
|
|
|
|
/** Width of the left tool window in CSS pixels. */
|
|
const leftWidth = ref(260);
|
|
/** Whether the left tool window is shown. */
|
|
const leftOpen = ref(true);
|
|
</script>
|
|
|
|
<template>
|
|
<div class="main-layout">
|
|
<div class="main-layout__row">
|
|
<ToolWindow
|
|
v-model:width="leftWidth"
|
|
v-model:open="leftOpen"
|
|
title="Project"
|
|
>
|
|
<ProjectToolWindow />
|
|
</ToolWindow>
|
|
<main
|
|
class="main-layout__editor"
|
|
data-test="main"
|
|
>
|
|
<slot />
|
|
</main>
|
|
</div>
|
|
<StatusBar />
|
|
</div>
|
|
</template>
|
|
|
|
<style scoped>
|
|
.main-layout {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
}
|
|
|
|
.main-layout__row {
|
|
display: flex;
|
|
flex: 1;
|
|
min-height: 0;
|
|
}
|
|
|
|
.main-layout__editor {
|
|
flex: 1;
|
|
min-width: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: var(--lt-editor-bg);
|
|
}
|
|
</style>
|