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:
danny 2026-10-14 06:37:41 +02:00
parent acc055c063
commit 50bcc95006
15 changed files with 456 additions and 2 deletions

View file

@ -0,0 +1,45 @@
<script setup lang="ts">
/**
* Status bar along the bottom of the main window. Shows the product name and
* version, or the last engine error.
*/
import { computed } from "vue";
import { useAppStore } from "../stores/app";
const app = useAppStore();
/** Text on the left side of the bar. */
const label = computed(() => {
if (app.lastError) {
return app.lastError.message;
}
return app.about ? `${app.about.name} ${app.about.version}` : "";
});
</script>
<template>
<footer
class="status-bar"
:class="{ 'status-bar--error': app.lastError }"
data-test="status-bar"
>
<span>{{ label }}</span>
</footer>
</template>
<style scoped>
.status-bar {
display: flex;
align-items: center;
height: 24px;
padding: 0 8px;
background: var(--lt-statusbar-bg);
color: var(--lt-statusbar-fg);
border-top: 1px solid var(--lt-border);
font-size: var(--lt-font-size-small);
}
.status-bar--error {
color: var(--lt-error);
}
</style>