Update admin theme/layout and refresh README details.

Align the project baseline with the latest admin interface styling and layout structure while documenting setup and usage updates in README.
This commit is contained in:
vlad
2026-07-14 17:12:28 +03:00
commit 86cc3fa541
278 changed files with 19416 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
import { describe, expect, it } from "vitest";
import { applyAuthHeader, setAccessTokenGetter } from "./client";
describe("apiClient auth header", () => {
it("attaches bearer token from getter", () => {
setAccessTokenGetter(() => "test-token");
const headers = applyAuthHeader({});
expect(headers.Authorization).toBe("Bearer test-token");
});
it("leaves headers unchanged without token", () => {
setAccessTokenGetter(() => null);
const headers = applyAuthHeader({ "X-Test": "1" });
expect(headers).toEqual({ "X-Test": "1" });
});
});