feat(settings): embed version changelog in About page

This commit is contained in:
Freedom authored and GitHub committed 2026-07-14 12:54:07 +08:00
1 parent e9e59113a3
commit aff9c8515d
20 files changed
+546 -1

No files matched your search

+1
View File
@@ -466,6 +466,7 @@ export const deleteHistoryEntry = forward("deleteHistoryEntry");
export const checkMcpServerStatus = forward("checkMcpServerStatus");
export const installMcpServer = forward("installMcpServer");
export const checkForUpdates = forward("checkForUpdates");
export const fetchChangelog = forward("fetchChangelog");
export const getSystemProxyUrl = forward("getSystemProxyUrl");
export const downloadAndInstallUpdate = forward("downloadAndInstallUpdate");
export const getAppVersion = forward("getAppVersion");
+5
View File
@@ -2166,6 +2166,11 @@ export async function checkForUpdates(locale?: string): Promise<UpdateInfo> {
return get(`/api/update/check${query}`);
}
export async function fetchChangelog(lang?: string): Promise<import("@/lib/app/changelog").ChangelogData> {
const query = lang ? `?lang=${encodeURIComponent(lang)}` : "";
return get(`/api/changelog${query}`);
}
export async function checkMcpServerStatus(): Promise<import("@/lib/backend/tauri").McpServerStatus> {
return {
installed: false,
+4
View File
@@ -1392,6 +1392,10 @@ export async function checkForUpdates(locale?: string): Promise<UpdateInfo> {
return invoke("check_for_updates", { locale });
}
export async function fetchChangelog(lang?: string): Promise<import("@/lib/app/changelog").ChangelogData> {
return invoke("fetch_changelog", { lang });
}
export async function getSystemProxyUrl(): Promise<string | null> {
return invoke("get_system_proxy_url");
}