fix: restore frontend source code (src/web/) that was accidentally deleted

Frontend source is needed for development/building the SPA.
Only Node.js runtime server code should be removed.
This commit is contained in:
boos
2026-05-18 09:33:56 +08:00
parent 5d29f03d50
commit 0eb7c32585
274 changed files with 80446 additions and 0 deletions
@@ -0,0 +1,26 @@
import { describe, expect, it } from 'vitest';
import { PAYLOAD_RULE_PROTOCOL_OPTIONS } from './settings/payloadRuleProtocolOptions.js';
describe('payload rule platform options', () => {
it('includes non-codex upstream platforms that payload rules can match in production routing', () => {
const values = PAYLOAD_RULE_PROTOCOL_OPTIONS.map((option) => option.value);
expect(values).toEqual(expect.arrayContaining([
'',
'codex',
'sub2api',
'new-api',
'one-api',
'cliproxyapi',
'openai',
'claude',
'gemini',
'gemini-cli',
'antigravity',
'anyrouter',
'done-hub',
'one-hub',
'veloera',
]));
});
});