feat(core): improve dashboard style (#15205)

This commit is contained in:
DarkSky
2026-07-07 12:13:11 +08:00
committed by GitHub
parent 631e4af9b9
commit fe2a4db76b
18 changed files with 502 additions and 217 deletions

View File

@@ -85,14 +85,16 @@ type SyncProtocolRoomType = Extract<RoomType, 'sync-025' | 'sync-026'>;
const SOCKET_PRESENCE_USER_ID_KEY = 'affinePresenceUserId';
function normalizeWsClientVersion(clientVersion: string): string | null {
if (env.namespaces.canary) {
const canaryCheck = checkCanaryDateClientVersion(clientVersion);
if (canaryCheck.matched) {
return canaryCheck.allowed ? canaryCheck.normalized : null;
}
const canaryCheck = checkCanaryDateClientVersion(clientVersion);
if (!canaryCheck.matched) {
return clientVersion;
}
return clientVersion;
if (!env.namespaces.canary) {
return null;
}
return canaryCheck.allowed ? canaryCheck.normalized : null;
}
function isSupportedWsClientVersion(clientVersion: string): boolean {