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>
This commit is contained in:
parent
acc055c063
commit
50bcc95006
15 changed files with 456 additions and 2 deletions
49
ui/src/App.vue
Normal file
49
ui/src/App.vue
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
<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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue