feat: enhance Druid integration and improve user management features

This commit is contained in:
2026-07-16 09:59:27 +08:00
parent 2e88885a27
commit f9f5ceac9d
10 changed files with 253 additions and 72 deletions

View File

@@ -1,4 +1,4 @@
import { getProductionApiBaseUrl, normalizePublicUrl } from '@/utils/publicUrl';
import { getDruidIndexUrl, getProductionApiBaseUrl, normalizePublicUrl } from '@/utils/publicUrl';
describe('public URL helpers', () => {
it('builds the production API base URL from the browser origin', () => {
@@ -7,6 +7,12 @@ describe('public URL helpers', () => {
);
});
it('builds the Druid index URL from the public API base URL', () => {
expect(getDruidIndexUrl('http://47.111.103.66')).toBe(
'http://47.111.103.66/api/shihezi/druid/index.html',
);
});
it('replaces an internal backend origin with the browser origin', () => {
expect(
normalizePublicUrl(