front/src/env.d.ts
zzh 92cf28b73b
All checks were successful
Build and Deploy Front / deploy (push) Successful in 9m42s
feat: 官网接入 GA4,埋首页点击与 SPA 浏览
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-04 15:41:45 +08:00

61 lines
2.0 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

declare module 'vg-print' {
import type { DefineComponent } from 'vue';
export const FullDesigner: DefineComponent<Record<string, unknown>, {}, any>;
export const hiprint: { register(options: { authKey: string }): void };
export const createTemplate: (json: unknown) => unknown;
export const printBrowser: (tpl: unknown, data: unknown) => void;
const plugin: { install: (app: unknown) => void };
export default plugin;
}
declare module 'vg-print/style.css' {
const css: string;
export default css;
}
declare module 'vue-request-editor' {
import type { DefineComponent } from 'vue';
export const RequestEditor: DefineComponent<Record<string, unknown>, {}, any>;
}
/// <reference types="vite/client" />
/// <reference types="unocss" />
declare module '*.vue' {
import { DefineComponent } from 'vue';
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
const component: DefineComponent<{}, {}, any>;
export default component;
}
declare module 'vue-pdf-embed' {
import type { DefineComponent } from 'vue';
const VuePdfEmbed: DefineComponent<Record<string, unknown>, {}, any>;
export default VuePdfEmbed;
}
declare global {
interface Window {
d3?: unknown;
topojson?: unknown;
}
}
interface ImportMetaEnv {
readonly VITE_API_BASE_URL: string;
readonly VITE_OMS_URL?: string;
/** 部署目标:ideship | nanafa(本地开发请指向测试 API) */
readonly VITE_DEPLOY_TARGET?: 'ideship' | 'nanafa' | string;
/** Admin 基址;本地默认测试 https://api.test.ideship.com/admin */
readonly VITE_API_ADMIN_URL?: string;
readonly VITE_OMS_ADMIN_URL?: string;
/** API 根;本地默认测试 https://api.test.ideship.com */
readonly VITE_API_ORIGIN?: string;
/** 静态资源 origin;本地默认测试 admin */
readonly VITE_API_ASSET_ORIGIN?: string;
/** 企微客服链接 */
readonly VITE_WECOM_KF_URL?: string;
/** Google Analytics 4 Measurement ID,如 G-XXXXXXXX;空则不加载 */
readonly VITE_GA_MEASUREMENT_ID?: string;
}