feat(support-info): add app support information
This commit is contained in:
16 files changed
+564
-3
No files matched your search
@@ -97,6 +97,7 @@ import type {
|
||||
ExplainSqlBuildResult,
|
||||
DroppedFilePreviewSqlOptions,
|
||||
MongoGridFsFileInfo,
|
||||
AppSupportInfo,
|
||||
} from "@/lib/backend/tauri";
|
||||
import type { QueryEditability } from "@/lib/sql/sqlAnalysis";
|
||||
import type {
|
||||
@@ -2102,6 +2103,17 @@ export async function getAppVersion(): Promise<string> {
|
||||
return res.version;
|
||||
}
|
||||
|
||||
export async function getAppSupportInfo(): Promise<AppSupportInfo> {
|
||||
const appVersion = await getAppVersion();
|
||||
return {
|
||||
appVersion,
|
||||
runtime: "web",
|
||||
osName: navigator.platform || "web",
|
||||
osVersion: null,
|
||||
arch: "",
|
||||
};
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Layout
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user