21 changed files with 115 additions and 95 deletions
@ -1,40 +1,43 @@ |
|||
// 在浏览器 window 对象中新建名为 APP 的容器变量, 用于存放平台的全局变量
|
|||
window.APP = {}; |
|||
// 全局配置
|
|||
window.APP.configure ={ |
|||
// 应用上下文路径
|
|||
webContextPath: '[(@{/})]'.startsWith('[')? '/' : '[(@{/})]', |
|||
|
|||
// 默认后端 API 请求的服务地址前缀
|
|||
apiContextPaths: { |
|||
DEFAULT: '[(@{/})]'.startsWith('[')? 'http://localhost:8080/' : '[(@{/})]', |
|||
}, |
|||
|
|||
// 前端运行环境
|
|||
// alone: 前端独立部署, 即前端打包后独立部署于 web 服务上(如: nginx, caddy 等)
|
|||
// develop: 前端运行在开发环境, 即前端在开发环境下运行(如: webpack)
|
|||
// backend: 前端运行在后端环境, 即前后端一起打包后部署在应用服务器上(如: tomcat, undertow, jeety等)
|
|||
fontendScenario: 'develop', |
|||
|
|||
// router 历史模式
|
|||
routerHistoryMode: 'hash', |
|||
|
|||
// 是否启用本地 mock
|
|||
enableLocalMock : false, |
|||
|
|||
// mock 请求响应时间(单位:毫秒)
|
|||
localMockTimeout : 10, |
|||
|
|||
// 是否启用使用远程服务端配置
|
|||
enableRemoteConfigure : true, |
|||
|
|||
// 是否首先使用本地路由
|
|||
useLocaleRouterFirst : true, |
|||
|
|||
// axios 配置
|
|||
axios : { |
|||
baseURL: '', |
|||
timeout: 1000 * 60, |
|||
crossdomain: true |
|||
} |
|||
} |
|||
window.APP.configure = { |
|||
// 项目名称
|
|||
projectName: '', |
|||
|
|||
// 应用上下文路径
|
|||
webContextPath: '[(@{/})]'.startsWith('[') ? '/' : '[(@{/})]', |
|||
|
|||
// 默认后端 API 请求的服务地址前缀
|
|||
apiContextPaths: { |
|||
DEFAULT: '[(@{/})]'.startsWith('[') ? 'http://localhost:8080/' : '[(@{/})]', |
|||
}, |
|||
|
|||
// 前端运行环境
|
|||
// alone: 前端独立部署, 即前端打包后独立部署于 web 服务上(如: nginx, caddy 等)
|
|||
// develop: 前端运行在开发环境, 即前端在开发环境下运行(如: webpack)
|
|||
// backend: 前端运行在后端环境, 即前后端一起打包后部署在应用服务器上(如: tomcat, undertow, jeety等)
|
|||
fontendScenario: 'develop', |
|||
|
|||
// router 历史模式
|
|||
routerHistoryMode: 'hash', |
|||
|
|||
// 是否启用本地 mock
|
|||
enableLocalMock: false, |
|||
|
|||
// mock 请求响应时间(单位:毫秒)
|
|||
localMockTimeout: 10, |
|||
|
|||
// 是否启用使用远程服务端配置
|
|||
enableRemoteConfigure: true, |
|||
|
|||
// 是否首先使用本地路由
|
|||
useLocaleRouterFirst: true, |
|||
|
|||
// axios 配置
|
|||
axios: { |
|||
baseURL: '', |
|||
timeout: 1000 * 60, |
|||
crossdomain: true, |
|||
}, |
|||
}; |
|||
|
@ -1,26 +1,25 @@ |
|||
{ |
|||
"include": [ |
|||
"src/platform/index.ts" |
|||
], |
|||
"include": ["src/platform/index.ts"], |
|||
"exclude": ["node_modules"], |
|||
"allowJs": true, |
|||
|
|||
"compilerOptions": { |
|||
"declaration": true, /* 通过 tsc 命令时可自动生成 .d.ts 文件, 每个 ts 生成一个 .d.ts 文件 */ |
|||
"declarationDir": "dist/types", /* 自动生成 .d.ts 文件存储的根目录 */ |
|||
"declarationMap": true, /* 自动生成 .d.ts.map 文件, 便于 IDE 定位源码位置 */ |
|||
"target": "ES6", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ |
|||
"module": "node16", /* Specify what module code is generated. */ |
|||
"strict": true, /* Enable all strict type-checking options. */ |
|||
"jsx": "preserve", /* Specify what JSX code is generated. */ |
|||
"declaration": true /* 通过 tsc 命令时可自动生成 .d.ts 文件, 每个 ts 生成一个 .d.ts 文件 */, |
|||
"declarationDir": "dist/types" /* 自动生成 .d.ts 文件存储的根目录 */, |
|||
"declarationMap": true /* 自动生成 .d.ts.map 文件, 便于 IDE 定位源码位置 */, |
|||
"target": "ES6" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */, |
|||
"module": "node16" /* Specify what module code is generated. */, |
|||
"strict": true /* Enable all strict type-checking options. */, |
|||
"jsx": "preserve" /* Specify what JSX code is generated. */, |
|||
"jsxImportSource": "vue", |
|||
"noEmit":true, /* Disable emitting files from a compilation. */ |
|||
"allowImportingTsExtensions":true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */ |
|||
"noImplicitAny": false, /* Enable error reporting for expressions and declarations with an implied 'any' type. */ |
|||
"moduleResolution": "node16", /* Specify how TypeScript looks up a file from a given module specifier. */ |
|||
"sourceMap": true, /* Create source map files for emitted JavaScript files. */ |
|||
"baseUrl": ".", /* Specify the base directory to resolve non-relative module names. */ |
|||
"paths": { /* Specify a set of entries that re-map imports to additional lookup locations. */ |
|||
"@/*": ["src/*"] |
|||
"noEmit": true /* Disable emitting files from a compilation. */, |
|||
"allowImportingTsExtensions": true /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */, |
|||
"noImplicitAny": false /* Enable error reporting for expressions and declarations with an implied 'any' type. */, |
|||
"moduleResolution": "node16" /* Specify how TypeScript looks up a file from a given module specifier. */, |
|||
"sourceMap": true /* Create source map files for emitted JavaScript files. */, |
|||
"baseUrl": "." /* Specify the base directory to resolve non-relative module names. */, |
|||
"paths": { |
|||
/* Specify a set of entries that re-map imports to additional lookup locations. */ "@/*": ["src/*"] |
|||
} |
|||
} |
|||
} |
|||
|
@ -0,0 +1,5 @@ |
|||
{ |
|||
"permitPatterns":[ |
|||
"/io.sc.platform.developer.frontend/svg-path-editor/index.html" |
|||
] |
|||
} |
Loading…
Reference in new issue