[repo] Release: version 1.0.0, its notes, About shows the running version; nix-pin --check prints the pin it would write
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "web",
|
||||
"version": "0.2.0",
|
||||
"version": "1.0.0",
|
||||
"private": true,
|
||||
"license": "CPAL-1.0",
|
||||
"description": "Ianitor Domi web UI (Svelte 5, runes, TypeScript strict). A pure client of the control API.",
|
||||
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
// SPDX-License-Identifier: CPAL-1.0
|
||||
// Copyright (c) 2026 Marek Novák. Part of Ianitor, under the Common Public Attribution
|
||||
// License 1.0: see LICENSE (its Exhibit A is this file's notice).
|
||||
|
||||
/** Ianitor's version, from apps/web/package.json at build time (vite.config.ts `define`). */
|
||||
declare const __IANITOR_VERSION__: string;
|
||||
@@ -13,6 +13,7 @@
|
||||
import type { CreatedToken, ShareLink, TokenRow } from "../lib/types";
|
||||
|
||||
let { tab }: { tab: string } = $props();
|
||||
const version = __IANITOR_VERSION__;
|
||||
const TABS = [
|
||||
{ id: "general", label: "General" },
|
||||
{ id: "api", label: "API" },
|
||||
@@ -241,7 +242,7 @@
|
||||
{/if}
|
||||
{/if}
|
||||
{:else}
|
||||
<p>Ianitor Domi 0.1.0</p>
|
||||
<p>Ianitor Domi {version}</p>
|
||||
<p>CPAL-1.0 (Common Public Attribution License 1.0). Ianitor 0.2.0 and earlier stay MPL-2.0.</p>
|
||||
<div class="about-credit"><DomiCredit /></div>
|
||||
<p>Built, tested and signed by Fabrica Domi</p>
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
// Copyright (c) 2026 Marek Novák. Part of Ianitor, under the Common Public Attribution
|
||||
// License 1.0: see LICENSE (its Exhibit A is this file's notice).
|
||||
|
||||
import { readFileSync } from "node:fs";
|
||||
import { svelte } from "@sveltejs/vite-plugin-svelte";
|
||||
import { defineConfig } from "vitest/config";
|
||||
|
||||
@@ -11,9 +12,12 @@ import { defineConfig } from "vitest/config";
|
||||
// $IANITOR_DEV_TOKEN, which `ianitor-control --dev` prints.
|
||||
const control = process.env.IANITOR_CONTROL ?? "http://127.0.0.1:7878";
|
||||
const token = process.env.IANITOR_DEV_TOKEN;
|
||||
// The version Settings, About shows: package.json's, which scripts/check-version.mjs keeps equal to Cargo.toml's.
|
||||
const version: string = JSON.parse(readFileSync(new URL("./package.json", import.meta.url), "utf8")).version;
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [svelte()],
|
||||
define: { __IANITOR_VERSION__: JSON.stringify(version) },
|
||||
server: {
|
||||
host: "127.0.0.1",
|
||||
port: 5173,
|
||||
|
||||
Reference in New Issue
Block a user