[web] Domi UI: the web UI on @domi/ui v1.0.4, vendored (CPAL-1.0), with the Built on Domi credit (PR #14, squashed)
@domi/ui v1.0.4 vendored unchanged in packages/domi-ui by domi-design's tools/vendor.mjs and used as workspace:*, so the Nix build fetches nothing from Gitea (web.nix sources the folder; fetchPnpmDeps hash from the NixOS runner). Its fonts, roles (data-domi-room="ianitor", the same hex) and controls replace Ianitor's copies: Button through Ianitor's adapter (desktop sizes kept), every text field a TextField with its seal, Checkbox, Select, Segmented. Ianitor's 22 role names renamed to --domi-*. <DomiCredit /> on every screen and in About, with the CPAL section 15 note beside the source link; the README names the vendored package. Disabled buttons are natively disabled.
This commit was merged in pull request #14.
This commit is contained in:
@@ -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 }[] = [];
|
||||
@@ -55,6 +57,10 @@ describe("realLooking", () => {
|
||||
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");
|
||||
|
||||
Reference in New Issue
Block a user