mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-08-06 12:23:57 +08:00
1. 新增electronUtils接口用于获取文件路径,支持拖拽上传deb包 2. 交换贡献者与官网地址表单字段 3. 重构架构选择UI,按来源和架构排序并添加来源标识 4. 新增截图和图标上传格式校验,限制仅支持PNG 5. 优化截图上传区域样式,支持拖放上传 6. 拆分重置表单和提交成功后的状态清理逻辑 7. 重构架构排序逻辑,兼容新旧存储格式
57 lines
1.3 KiB
TypeScript
57 lines
1.3 KiB
TypeScript
/* eslint-disable */
|
|
/// <reference types="vite/client" />
|
|
|
|
import type { SystemInfo, UpdateCenterBridge } from "@/global/typedefinition";
|
|
|
|
declare module "*.vue" {
|
|
import type { DefineComponent } from "vue";
|
|
const component: DefineComponent<{}, {}, any>;
|
|
export default component;
|
|
}
|
|
|
|
declare global {
|
|
interface ImportMetaEnv {
|
|
readonly VITE_SPARK_BACKEND_BASE_URL?: string;
|
|
}
|
|
|
|
interface Window {
|
|
// expose in the `electron/preload/index.ts`
|
|
ipcRenderer: IpcRendererFacade;
|
|
apm_store: {
|
|
arch: string;
|
|
};
|
|
windowControls: WindowControlBridge;
|
|
updateCenter: UpdateCenterBridge;
|
|
electronUtils: {
|
|
getPathForFile: (file: File) => string;
|
|
};
|
|
}
|
|
}
|
|
|
|
interface IpcRendererFacade {
|
|
on: import("electron").IpcRenderer["on"];
|
|
off: import("electron").IpcRenderer["off"];
|
|
send: import("electron").IpcRenderer["send"];
|
|
invoke: import("electron").IpcRenderer["invoke"];
|
|
}
|
|
|
|
interface WindowControlBridge {
|
|
minimize: () => void;
|
|
toggleMaximize: () => void;
|
|
close: () => void;
|
|
}
|
|
|
|
// IPC channel type definitions
|
|
declare interface IpcChannels {
|
|
"get-app-version": () => string;
|
|
"get-system-info": () => Promise<SystemInfo>;
|
|
"request-flarum-token": (payload: {
|
|
identification: string;
|
|
password: string;
|
|
}) => Promise<{ token: string; userId: string }>;
|
|
}
|
|
|
|
declare const __APP_VERSION__: string;
|
|
|
|
export {};
|