Lutra/ui/src/App.vue
danny 50bcc95006 M0.4: frontend with Vue 3, Pinia, ESLint, vue-tsc and Vitest
Empty workbench (main area and status bar) themed only through --lt-*
tokens. ipc.ts wraps Tauri invoke so engine calls never reject; the app
store loads app.about. Type-aware ESLint bans floating promises, any and
inline comments. Requires Node 22.12+ for Vite 8.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 06:37:41 +02:00

49 lines
916 B
Vue

<script setup lang="ts">
/**
* Root component: the empty workbench of milestone M0, a main area and the
* status bar. Loads product information from the engine on mount.
*/
import { onMounted } from "vue";
import StatusBar from "./components/StatusBar.vue";
import { useAppStore } from "./stores/app";
const app = useAppStore();
onMounted(() => {
void app.loadAbout();
});
</script>
<template>
<div class="workbench">
<main
class="workbench__main"
data-test="main"
>
<p class="workbench__hint">
{{ app.about?.slogan ?? "" }}
</p>
</main>
<StatusBar />
</div>
</template>
<style scoped>
.workbench {
display: flex;
flex-direction: column;
height: 100%;
}
.workbench__main {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
background: var(--lt-editor-bg);
}
.workbench__hint {
color: var(--lt-fg-muted);
}
</style>