lolosia-web/typings/env.d.ts

68 lines
2.2 KiB
TypeScript
Raw Normal View History

2023-02-02 16:07:38 +08:00
declare global {
interface ImportMetaEnv {
2023-08-02 09:43:03 +08:00
readonly VITE_APP_BASE_MODE: 'local' | 'url' | 'port'
2023-02-02 16:07:38 +08:00
readonly VITE_APP_BASE_URL: string
2023-08-02 09:43:03 +08:00
readonly VITE_APP_BASE_PORT: number
readonly VITE_APP_ENV: 'prod' | 'test' | 'dev'
2024-04-26 21:55:28 +08:00
// Jenkins 的环境变量
2024-04-26 22:14:07 +08:00
// readonly BRANCH_NAME: string
// readonly BRANCH_IS_PRIMARY: string
// readonly CHANGE_ID: string
// readonly CHANGE_URL: string
// readonly CHANGE_TITLE: string
// readonly CHANGE_AUTHOR: string//
// readonly CHANGE_AUTHOR_DISPLAY_NAME: string
// readonly CHANGE_AUTHOR_EMAIL: string
// readonly CHANGE_TARGET: string
// readonly CHANGE_BRANCH: string
// readonly CHANGE_FORK: string
// readonly TAG_NAME: string
2024-04-26 21:55:28 +08:00
readonly TAG_TIMESTAMP: string
2024-04-26 22:14:07 +08:00
// readonly TAG_UNIXTIME: string
// readonly TAG_DATE: string
// readonly JOB_DISPLAY_URL: string
// readonly RUN_DISPLAY_URL: string
// readonly RUN_ARTIFACTS_DISPLAY_URL: string
// readonly RUN_CHANGES_DISPLAY_URL: string
// readonly RUN_TESTS_DISPLAY_URL: string
2024-04-26 21:55:28 +08:00
// readonly CI: string;
2024-04-26 22:14:07 +08:00
// readonly BUILD_NUMBER: string
// readonly BUILD_ID: string
2024-04-26 21:55:28 +08:00
readonly BUILD_DISPLAY_NAME: string
2024-04-26 22:14:07 +08:00
// readonly JOB_NAME: string
// readonly JOB_BASE_NAME: string
// readonly BUILD_TAG: string
2024-04-26 21:55:28 +08:00
// readonly EXECUTOR_NUMBER: string
// readonly NODE_NAME: string
// readonly NODE_LABELS: string
// readonly WORKSPACE: string
// readonly WORKSPACE_TMP: string
// readonly JENKINS_HOME: string
// readonly JENKINS_URL: string
2024-04-26 22:14:07 +08:00
// readonly BUILD_URL: string
// readonly JOB_URL: string
2024-04-26 21:55:28 +08:00
readonly GIT_COMMIT: string
2024-04-26 22:14:07 +08:00
// readonly GIT_PREVIOUS_COMMIT: string
// readonly GIT_PREVIOUS_SUCCESSFUL_COMMIT: string
// readonly GIT_BRANCH: string
// readonly GIT_LOCAL_BRANCH: string
// readonly GIT_CHECKOUT_DIR: string
// readonly GIT_URL: string
// readonly GIT_COMMITTER_NAME: string
// readonly GIT_AUTHOR_NAME: string
// readonly GIT_COMMITTER_EMAIL: string
// readonly GIT_AUTHOR_EMAIL: string
2024-04-26 21:55:28 +08:00
2023-02-02 16:07:38 +08:00
// 更多环境变量...
}
interface ImportMeta {
readonly env: ImportMetaEnv
}
2024-04-25 08:39:55 +08:00
interface Window {
readonly NGINX_BASE_URL: string | undefined
}
2023-02-02 16:07:38 +08:00
}
export {}