[repo] Merge: main into feature/domi-ui (CPAL-1.0); @domi/ui v1.0.3 vendored (CPAL-1.0) with <DomiCredit /> and the README line

This commit is contained in:
2026-11-23 00:30:56 +01:00
194 changed files with 969 additions and 1227 deletions
+15 -3
View File
@@ -1,6 +1,6 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// 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).
// The release's screenshots (docs/release.md): every shot's screen is drawn from the demo control
// plane alone (each click and wait selector found, no call unanswered), and nothing the demo
@@ -10,6 +10,8 @@ import { cleanup, render, waitFor } from "@testing-library/svelte";
import { afterEach, describe, expect, it } from "vitest";
import App from "../src/App.svelte";
import { app } from "../src/lib/app.svelte";
import { DOMI_ATTRIBUTION } from "@domi/ui";
import { CREDIT } from "../src/lib/credit";
import { SHOTS, demoApi, realLooking } from "./demo";
let served: { status: number; path: string; text: string | null }[] = [];
@@ -54,6 +56,16 @@ describe("realLooking", () => {
expect(realLooking("gitea.example.cz and Mark's phone")).toEqual(["gitea.example.cz", "mark"]);
expect(realLooking("flowers.stage")).toEqual(["flowers.stage", "flowers"]);
});
it("is the same credit as @domi/ui's, word for word", () => {
expect([CREDIT.phrase, CREDIT.url, CREDIT.notice]).toEqual([DOMI_ATTRIBUTION.phrase, DOMI_ATTRIBUTION.url, DOMI_ATTRIBUTION.copyright]);
});
it("leaves out only the licence's credit, exactly as written", () => {
expect(realLooking("Built on Domi · Copyright (c) 2026 Marek Novák https://aula.marek-novak.cz")).toEqual([]);
expect(realLooking("Marek's server at https://aula.marek-novak.cz/hosts")).toContain("marek");
expect(realLooking("files.marek-novak.cz")).toEqual(["files.marek-novak.cz", "marek", "novak"]);
});
});
describe("the release's screenshots from the demo control plane", () => {