chore(frontend): introduce prettier + eslint and prune unused code
- Add Prettier 3 with prettier-plugin-organize-imports (sorts/removes unused imports) - Add ESLint 10 flat config with typescript-eslint + eslint-plugin-vue + eslint-config-prettier - Add root scripts: format, format:check, lint, lint:fix - Reformat 257 files across admin-web, ops-web, desktop-client, packages - Remove unused locals/exports flagged by --noUnusedLocals/--noUnusedParameters - Fix duplicate localTabLabel key, surrogate-pair regex u-flag, NBSP literal in regex - Skip server/ (Go) and apps/browser-extension/ (deprecated per ADR) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
+52
-43
@@ -4,61 +4,70 @@ import type {
|
||||
DesktopPublishTaskListResponse,
|
||||
DesktopRuntimeSessionSyncRequest,
|
||||
ListDesktopPublishTasksParams,
|
||||
} from "@geo/shared-types";
|
||||
import type { DesktopObservedRequest } from "../shared/network-debug";
|
||||
import type { DesktopRuntimeSnapshot } from "./types";
|
||||
} from '@geo/shared-types'
|
||||
import type { DesktopObservedRequest } from '../shared/network-debug'
|
||||
import type { DesktopRuntimeSnapshot } from './types'
|
||||
|
||||
export {};
|
||||
export {}
|
||||
|
||||
declare global {
|
||||
interface DesktopAppSettings {
|
||||
openAtLogin: boolean;
|
||||
keepRunningInBackground: boolean;
|
||||
openAtLogin: boolean
|
||||
keepRunningInBackground: boolean
|
||||
}
|
||||
|
||||
interface Window {
|
||||
desktopBridge: {
|
||||
app: {
|
||||
ping(): Promise<string>;
|
||||
ping(): Promise<string>
|
||||
deviceInfo(): Promise<{
|
||||
device_name: string;
|
||||
os: string;
|
||||
cpu_arch: string;
|
||||
}>;
|
||||
device_name: string
|
||||
os: string
|
||||
cpu_arch: string
|
||||
}>
|
||||
clientId(scope: {
|
||||
tenant_id: number;
|
||||
workspace_id: number;
|
||||
user_id: number;
|
||||
}): Promise<string>;
|
||||
runtimeSnapshot(): Promise<DesktopRuntimeSnapshot>;
|
||||
runtimeAccountSnapshot(accountId: string): Promise<DesktopRuntimeSnapshot["accounts"][number] | null>;
|
||||
bindPublishAccount(platformId: string): Promise<DesktopAccountInfo>;
|
||||
refreshRuntimeAccounts(): Promise<null>;
|
||||
probeRuntimeAccount(accountId: string): Promise<DesktopRuntimeSnapshot["accounts"][number] | null>;
|
||||
tenant_id: number
|
||||
workspace_id: number
|
||||
user_id: number
|
||||
}): Promise<string>
|
||||
runtimeSnapshot(): Promise<DesktopRuntimeSnapshot>
|
||||
runtimeAccountSnapshot(
|
||||
accountId: string,
|
||||
): Promise<DesktopRuntimeSnapshot['accounts'][number] | null>
|
||||
bindPublishAccount(platformId: string): Promise<DesktopAccountInfo>
|
||||
refreshRuntimeAccounts(): Promise<null>
|
||||
probeRuntimeAccount(
|
||||
accountId: string,
|
||||
): Promise<DesktopRuntimeSnapshot['accounts'][number] | null>
|
||||
openPublishAccountConsole(account: {
|
||||
id: string;
|
||||
platform: string;
|
||||
platformUid: string;
|
||||
displayName: string;
|
||||
}): Promise<null>;
|
||||
unbindPublishAccount(accountId: string, syncVersion: number): Promise<null>;
|
||||
listPublishTasks(params?: ListDesktopPublishTasksParams): Promise<DesktopPublishTaskListResponse>;
|
||||
retryPublishTask(taskId: string): Promise<CreatePublishJobResponse>;
|
||||
openExternalUrl(url: string): Promise<null>;
|
||||
openSettingsWindow(): Promise<null>;
|
||||
getAppSettings(): Promise<DesktopAppSettings>;
|
||||
setAppSetting(key: keyof DesktopAppSettings, value: boolean): Promise<DesktopAppSettings>;
|
||||
syncRuntimeSession(session: DesktopRuntimeSessionSyncRequest | null): Promise<null>;
|
||||
releaseRuntimeSession(revoke?: boolean): Promise<null>;
|
||||
setWindowMode(mode: "login" | "main", request?: {
|
||||
source?: "auth-state" | "login" | "logout";
|
||||
animate?: boolean;
|
||||
}): Promise<null>;
|
||||
id: string
|
||||
platform: string
|
||||
platformUid: string
|
||||
displayName: string
|
||||
}): Promise<null>
|
||||
unbindPublishAccount(accountId: string, syncVersion: number): Promise<null>
|
||||
listPublishTasks(
|
||||
params?: ListDesktopPublishTasksParams,
|
||||
): Promise<DesktopPublishTaskListResponse>
|
||||
retryPublishTask(taskId: string): Promise<CreatePublishJobResponse>
|
||||
openExternalUrl(url: string): Promise<null>
|
||||
openSettingsWindow(): Promise<null>
|
||||
getAppSettings(): Promise<DesktopAppSettings>
|
||||
setAppSetting(key: keyof DesktopAppSettings, value: boolean): Promise<DesktopAppSettings>
|
||||
syncRuntimeSession(session: DesktopRuntimeSessionSyncRequest | null): Promise<null>
|
||||
releaseRuntimeSession(revoke?: boolean): Promise<null>
|
||||
setWindowMode(
|
||||
mode: 'login' | 'main',
|
||||
request?: {
|
||||
source?: 'auth-state' | 'login' | 'logout'
|
||||
animate?: boolean
|
||||
},
|
||||
): Promise<null>
|
||||
onRuntimeInvalidated(
|
||||
listener: (event: { reason: "account-health"; at: number; accountId?: string }) => void,
|
||||
): () => void;
|
||||
onNetworkObserved(listener: (event: DesktopObservedRequest) => void): () => void;
|
||||
};
|
||||
};
|
||||
listener: (event: { reason: 'account-health'; at: number; accountId?: string }) => void,
|
||||
): () => void
|
||||
onNetworkObserved(listener: (event: DesktopObservedRequest) => void): () => void
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user