refactor: serve static frontend with Go APIs

This commit is contained in:
brother7 committed 2026-08-16 20:47:45 +08:00
1 parent 763d2f0648
commit b14b4fced7
101 files changed
+963 -3928

No files matched your search

+2
View File
@@ -25,6 +25,8 @@ describe("AuthLoginPanel", () => {
expect(panelSource).not.toContain('disabled={!configured || submitting || !phone.trim() || !password}');
expect(panelSource).not.toContain("authMode");
expect(panelSource).not.toContain("alternateHref");
expect(panelSource).toContain("window.location.assign(safeBrowserNext(result.redirectTo, next))");
expect(panelSource).not.toContain("window.location.assign(result.redirectTo");
expect(loginPageSource).not.toContain("/auth/admin-login");
expect(adminPageSource).toContain("/auth/login");
});