mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-03 12:02:50 +08:00
release: prepare v0.2.5
This commit is contained in:
1 parent
e0d5916a86
commit
ee4a7e09b8
18 files changed
+26
-21
No files matched your search
Binary file not shown.
@@ -27,7 +27,7 @@ export function useWebClientPublicConfig({
|
||||
const accessMode = ref<"fixed" | "open">("fixed");
|
||||
const initialized = ref(false);
|
||||
const siteName = ref("WebSpeak");
|
||||
const appVersion = ref("0.2.5-preview");
|
||||
const appVersion = ref("0.2.5");
|
||||
const visitorNumber = ref<number | null>(null);
|
||||
const visitorTotal = ref<number | null>(null);
|
||||
const accelerationRelays = ref<RelayOption[]>([]);
|
||||
|
||||
@@ -12,8 +12,8 @@ test("skin catalog always includes the three protected built-ins and exposes onl
|
||||
globalThis.fetch = async () => new Response(JSON.stringify({
|
||||
defaultSkinId: "sample-skin",
|
||||
skins: [
|
||||
{ id: "sample-skin", name: "Sample", version: "1.0.0", author: "Test", license: "MIT", minAppVersion: "0.2.5-preview", installedAt: 1, enabled: true },
|
||||
{ id: "disabled-skin", name: "Disabled", version: "1.0.0", author: "Test", license: "MIT", minAppVersion: "0.2.5-preview", installedAt: 2, enabled: false },
|
||||
{ id: "sample-skin", name: "Sample", version: "1.0.0", author: "Test", license: "MIT", minAppVersion: "0.2.5", installedAt: 1, enabled: true },
|
||||
{ id: "disabled-skin", name: "Disabled", version: "1.0.0", author: "Test", license: "MIT", minAppVersion: "0.2.5", installedAt: 2, enabled: false },
|
||||
{ id: "community.illusia-voice", name: "Spoofed", version: "9.9.9", author: "Other", license: "MIT", minAppVersion: "0.0.1", installedAt: 3 },
|
||||
],
|
||||
}), { status: 200, headers: { "content-type": "application/json" } });
|
||||
@@ -40,7 +40,7 @@ test("invalid or disabled instance defaults safely fall back to the protected da
|
||||
const originalFetch = globalThis.fetch;
|
||||
globalThis.fetch = async () => new Response(JSON.stringify({
|
||||
defaultSkinId: "disabled-skin",
|
||||
skins: [{ id: "disabled-skin", name: "Disabled", version: "1.0.0", author: "Test", license: "MIT", minAppVersion: "0.2.5-preview", installedAt: 2, enabled: false }],
|
||||
skins: [{ id: "disabled-skin", name: "Disabled", version: "1.0.0", author: "Test", license: "MIT", minAppVersion: "0.2.5", installedAt: 2, enabled: false }],
|
||||
}), { status: 200, headers: { "content-type": "application/json" } });
|
||||
|
||||
try {
|
||||
|
||||
@@ -23,7 +23,7 @@ export const BUILTIN_SKIN_CATALOG: SkinCatalogEntry[] = [
|
||||
author: "WebSpeak",
|
||||
license: "AGPL-3.0-only",
|
||||
description: "The default light appearance.",
|
||||
minAppVersion: "0.2.5-preview",
|
||||
minAppVersion: "0.2.5",
|
||||
installedAt: 0,
|
||||
builtIn: true,
|
||||
previewKind: "day",
|
||||
@@ -35,7 +35,7 @@ export const BUILTIN_SKIN_CATALOG: SkinCatalogEntry[] = [
|
||||
author: "WebSpeak",
|
||||
license: "AGPL-3.0-only",
|
||||
description: "The default dark appearance.",
|
||||
minAppVersion: "0.2.5-preview",
|
||||
minAppVersion: "0.2.5",
|
||||
installedAt: 0,
|
||||
builtIn: true,
|
||||
previewKind: "night",
|
||||
@@ -47,7 +47,7 @@ export const BUILTIN_SKIN_CATALOG: SkinCatalogEntry[] = [
|
||||
author: "WebSpeak Project",
|
||||
license: "All rights reserved",
|
||||
description: "A bright original-character art skin for the home, voice room, and demo pages.",
|
||||
minAppVersion: "0.2.5-preview",
|
||||
minAppVersion: "0.2.5",
|
||||
previewUrl: "/skins/illusia-voice-preview.webp",
|
||||
installedAt: 0,
|
||||
builtIn: true,
|
||||
|
||||
@@ -29,7 +29,7 @@ export async function activateStoredSkin(): Promise<InstalledSkin | null> {
|
||||
return activateSkin(selectedId);
|
||||
}
|
||||
|
||||
export async function activateSkin(id: string, expectedVersion?: string, appVersion = "0.2.5-preview"): Promise<InstalledSkin | null> {
|
||||
export async function activateSkin(id: string, expectedVersion?: string, appVersion = "0.2.5"): Promise<InstalledSkin | null> {
|
||||
if (id === BUILTIN_LIGHT_SKIN || id === BUILTIN_DARK_SKIN) {
|
||||
clearCustomSkinStyle();
|
||||
applyTheme(id === BUILTIN_DARK_SKIN ? "dark" : "light");
|
||||
|
||||
@@ -7,5 +7,5 @@
|
||||
"license": "AGPL-3.0-only",
|
||||
"description": "The built-in dark appearance for public WebSpeak pages.",
|
||||
"entry": "skin.css",
|
||||
"minAppVersion": "0.2.5-preview"
|
||||
"minAppVersion": "0.2.5"
|
||||
}
|
||||
@@ -7,5 +7,5 @@
|
||||
"license": "AGPL-3.0-only",
|
||||
"description": "The built-in light appearance for public WebSpeak pages.",
|
||||
"entry": "skin.css",
|
||||
"minAppVersion": "0.2.5-preview"
|
||||
"minAppVersion": "0.2.5"
|
||||
}
|
||||
Reference in new issue
Block a user