Files
ctms/frontend/src/runtime/index.ts
T
Cheng Zhou e3489f3b06
Client Quality Gates / Shared client and Web (push) Has been cancelled
Client Quality Gates / macOS Desktop (push) Has been cancelled
build(release): stage local macOS v0.1.0 distribution
2026-07-17 11:31:11 +08:00

111 lines
3.1 KiB
TypeScript

export { clientRuntime, type ClientRuntime, type RuntimeCapabilities } from "./clientRuntime";
export {
clearDesktopServerUrl,
DESKTOP_SERVER_URL_CHANGED_EVENT,
getDefaultDesktopServerUrl,
getDesktopServerUrl,
hasDesktopServerUrl,
normalizeDesktopServerUrl,
setDesktopServerUrl,
shouldRequireDesktopServerUrl,
} from "./desktopServerConfig";
export {
DESKTOP_FAVORITE_ROUTES_KEY,
DEFAULT_DESKTOP_SHORTCUTS,
DESKTOP_SHORTCUTS_CHANGED_EVENT,
DESKTOP_SHORTCUTS_KEY,
DESKTOP_SIDEBAR_VISIBLE_KEY,
DESKTOP_THEME_CHANGED_EVENT,
DESKTOP_THEME_KEY,
applyDesktopThemePreference,
clearLegacyDesktopRouteHistoryPreference,
desktopShortcutFromKeyboardEvent,
formatDesktopShortcut,
initializeDesktopThemePreference,
isDesktopFavoriteRoute,
readDesktopFavoriteRoutes,
readDesktopShortcutPreferences,
readDesktopSidebarVisible,
readDesktopThemePreference,
resetDesktopShortcutPreferences,
resolveDesktopShortcutAction,
setDesktopShortcutPreference,
setDesktopSidebarVisible,
setDesktopThemePreference,
toggleDesktopFavoriteRoute,
type DesktopRoutePreference,
type DesktopShortcutAction,
type DesktopShortcutPreferences,
type DesktopThemePreference,
type ResolvedDesktopTheme,
type SetDesktopShortcutResult,
} from "./desktopUiPreferences";
export {
DESKTOP_MENU_COMMAND_EVENT,
initializeDesktopMenuShortcutSync,
listenDesktopMenuCommand,
syncDesktopMenuShortcuts,
type DesktopMenuCommand,
} from "./desktopMenu";
export {
clearDesktopDataCache,
getDesktopDataCacheGeneration,
getDesktopDataCacheScope,
getDesktopDataCacheStats,
invalidateDesktopDataCacheByTags,
isDesktopDataCacheGenerationCurrent,
readDesktopDataCache,
setDesktopDataCacheScope,
writeDesktopDataCache,
type DesktopDataCacheStats,
type DesktopDataCacheWriteOptions,
} from "./desktopDataCache";
export { getAppMetadata, getAppMetadataHeaders, type AppMetadata, type BuildChannel, type ClientType } from "./appMetadata";
export {
cleanupTemporaryFiles,
downloadFile,
openFile,
pickFiles,
prepareSaveFile,
saveFile,
type FileOutput,
type FilePickerOptions,
type SaveFileDestination,
type SaveFileResult,
} from "./files";
export {
getNotificationPermission,
requestNotificationPermission,
showSystemNotification,
showSystemNotificationProbe,
type NotificationPermissionState,
} from "./notifications";
export { getRuntimePlatform, isTauriRuntime, type RuntimePlatform } from "./platform";
export {
isWebFullscreenActive,
isWebFullscreenAvailable,
listenWebFullscreenChange,
refreshWebFullscreenState,
toggleWebFullscreen,
} from "./webFullscreen";
export { ONLYOFFICE_HOST_PATH, resolveOnlyOfficeHostUrl } from "./onlyoffice";
export {
clearSessionToken,
getSessionToken,
initializeSecureSessionStorage,
isSecureSessionStorageAvailable,
setSessionToken,
} from "./secureSessionStorage";
export {
clearLoginCredential,
getSavedLoginCredential,
saveLoginCredential,
type SavedLoginCredential,
} from "./savedLoginCredentials";
export {
checkForDesktopUpdate,
installPendingDesktopUpdate,
isDesktopUpdaterAvailable,
type DesktopUpdateInfo,
} from "./updates";