vercel redirects

This commit is contained in:
scarqin 2022-06-30 15:30:54 +08:00
parent 1dd6d1f9de
commit fa2a88121b
5 changed files with 195 additions and 226 deletions

View File

@ -59,7 +59,7 @@ function createWindow(): BrowserWindow {
proxyOpenExternal(win); proxyOpenExternal(win);
let loadPage = async () => { let loadPage = async () => {
let currentUrl = win.webContents.getURL(); let currentUrl = win.webContents.getURL();
let locale = ['zh-Hans', 'en-US'].find((val) => currentUrl.includes(val)); let locale = ['zh', 'en'].find((val) => currentUrl.includes(val));
const file: string = const file: string =
processEnv === 'development' processEnv === 'development'
? 'http://localhost:4200' ? 'http://localhost:4200'

View File

@ -1,160 +1 @@
{ {"$schema":"./node_modules/@angular/cli/lib/config/schema.json","cli":{"analytics":false,"defaultCollection":"@angular-eslint/schematics"},"version":1,"newProjectRoot":"projects","projects":{"eoapi":{"root":"","i18n":{"sourceLocale":{"code":"en","baseHref":""},"locales":{"zh":{"translation":"src/locale/messages.zh-Hans.xlf","baseHref":""}}},"sourceRoot":"src","projectType":"application","schematics":{"@schematics/angular:application":{"strict":true}},"architect":{"build":{"builder":"@angular-builders/custom-webpack:browser","options":{"localize":true,"aot":true,"outputPath":"dist","index":"src/index.html","main":"src/main.ts","tsConfig":"src/tsconfig.app.json","polyfills":"src/polyfills.ts","assets":["src/icon.ico","src/assets",{"glob":"**/*","input":"../../../node_modules/@ant-design/icons-angular/src/inline-svg/","output":"/assets/"}],"styles":[{"input":"src/assets/theme/classic_forest.scss","bundleName":"classic_forest","inject":false},"src/styles.scss","src/assets/theme/antd.less","src/assets/font/iconfont.css","src/ng1/index.css"],"scripts":["src/ng1/lib/angular/angular.js","src/ng1/app.module.js","src/ng1/component/select-default.js","src/ng1/component/sort-and-filter.js","src/ng1/component/auto-complete.js","src/ng1/component/list-block.js","src/ng1/directive/get-dom-length.directive.js","src/ng1/directive/drop-down-menu.directive.js","src/ng1/directive/sort.directive.js","src/ng1/directive/drop-change-space.directive.js","src/ng1/directive/inner-html.directive.js","src/ng1/directive/insert-html.directive.js","src/ng1/directive/copy-common.directive.js"],"customWebpackConfig":{"path":"./angular.webpack.js","replaceDuplicatePlugins":true},"allowedCommonJsDependencies":["brace","qs","rxjs"]},"configurations":{"dev":{"optimization":false,"outputHashing":"none","sourceMap":true,"namedChunks":false,"extractLicenses":true,"vendorChunk":false,"buildOptimizer":false,"fileReplacements":[{"replace":"src/environments/environment.ts","with":"src/environments/environment.dev.ts"}]},"web":{"optimization":false,"outputHashing":"none","sourceMap":true,"namedChunks":false,"localize":false,"extractLicenses":true,"vendorChunk":false,"buildOptimizer":false,"fileReplacements":[{"replace":"src/environments/environment.ts","with":"src/environments/environment.web.ts"}]},"webCn":{"optimization":false,"outputHashing":"none","sourceMap":true,"namedChunks":false,"localize":["zh"],"extractLicenses":true,"vendorChunk":false,"buildOptimizer":false,"fileReplacements":[{"replace":"src/environments/environment.ts","with":"src/environments/environment.web.ts"}]},"production":{"optimization":true,"outputHashing":"all","sourceMap":false,"namedChunks":false,"extractLicenses":true,"vendorChunk":false,"buildOptimizer":true,"fileReplacements":[{"replace":"src/environments/environment.ts","with":"src/environments/environment.prod.ts"}]}}},"serve":{"builder":"@angular-builders/custom-webpack:dev-server","options":{"browserTarget":"eoapi:build"},"configurations":{"dev":{"browserTarget":"eoapi:build:dev"},"web":{"browserTarget":"eoapi:build:web"},"webCn":{"browserTarget":"eoapi:build:webCn"},"production":{"browserTarget":"eoapi:build:production"}}},"extract-i18n":{"builder":"@angular-devkit/build-angular:extract-i18n","options":{"browserTarget":"eoapi:build"}},"test":{"builder":"@angular-builders/custom-webpack:karma","options":{"main":"src/test.ts","polyfills":"src/polyfills-test.ts","tsConfig":"src/tsconfig.spec.json","karmaConfig":"src/karma.conf.js","scripts":[],"styles":["src/styles.scss"],"assets":["src/assets"],"customWebpackConfig":{"path":"./angular.webpack.js","replaceDuplicatePlugins":true}}},"lint":{"builder":"@angular-eslint/builder:lint","options":{"lintFilePatterns":["src/**/*.ts","src/**/*.html"]}}}},"eoapi-e2e":{"root":"e2e","projectType":"application","architect":{"lint":{"builder":"@angular-eslint/builder:lint","options":{"lintFilePatterns":["e2e/**/*.ts"]}}}}},"defaultProject":"eoapi","schematics":{"@schematics/angular:component":{"prefix":"eo","style":"scss"},"@schematics/angular:directive":{"prefix":"eo"}}}
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"cli": { "analytics": false, "defaultCollection": "@angular-eslint/schematics" },
"version": 1,
"newProjectRoot": "projects",
"projects": {
"eoapi": {
"root": "",
"i18n": {
"sourceLocale": { "code": "en-US" },
"locales": { "zh-Hans": { "translation": "src/locale/messages.zh-Hans.xlf" } }
},
"sourceRoot": "src",
"projectType": "application",
"schematics": { "@schematics/angular:application": { "strict": true } },
"architect": {
"build": {
"builder": "@angular-builders/custom-webpack:browser",
"options": {
"localize": true,
"aot": true,
"outputPath": "dist",
"index": "src/index.html",
"main": "src/main.ts",
"tsConfig": "src/tsconfig.app.json",
"polyfills": "src/polyfills.ts",
"assets": [
"src/icon.ico",
"src/assets",
{
"glob": "**/*",
"input": "../../../node_modules/@ant-design/icons-angular/src/inline-svg/",
"output": "/assets/"
}
],
"styles": [
{ "input": "src/assets/theme/classic_forest.scss", "bundleName": "classic_forest", "inject": false },
"src/styles.scss",
"src/assets/theme/antd.less",
"src/assets/font/iconfont.css",
"src/ng1/index.css"
],
"scripts": [
"src/ng1/lib/angular/angular.js",
"src/ng1/app.module.js",
"src/ng1/component/select-default.js",
"src/ng1/component/sort-and-filter.js",
"src/ng1/component/auto-complete.js",
"src/ng1/component/list-block.js",
"src/ng1/directive/get-dom-length.directive.js",
"src/ng1/directive/drop-down-menu.directive.js",
"src/ng1/directive/sort.directive.js",
"src/ng1/directive/drop-change-space.directive.js",
"src/ng1/directive/inner-html.directive.js",
"src/ng1/directive/insert-html.directive.js",
"src/ng1/directive/copy-common.directive.js"
],
"customWebpackConfig": { "path": "./angular.webpack.js", "replaceDuplicatePlugins": true },
"allowedCommonJsDependencies": ["brace", "qs", "rxjs"]
},
"configurations": {
"dev": {
"optimization": false,
"outputHashing": "none",
"sourceMap": true,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": false,
"fileReplacements": [
{ "replace": "src/environments/environment.ts", "with": "src/environments/environment.dev.ts" }
]
},
"web": {
"optimization": false,
"outputHashing": "none",
"sourceMap": true,
"namedChunks": false,
"localize": false,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": false,
"fileReplacements": [
{ "replace": "src/environments/environment.ts", "with": "src/environments/environment.web.ts" }
]
},
"webCn": {
"optimization": false,
"outputHashing": "none",
"sourceMap": true,
"namedChunks": false,
"localize": ["zh-Hans"],
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": false,
"fileReplacements": [
{ "replace": "src/environments/environment.ts", "with": "src/environments/environment.web.ts" }
]
},
"production": {
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"fileReplacements": [
{ "replace": "src/environments/environment.ts", "with": "src/environments/environment.prod.ts" }
]
}
}
},
"serve": {
"builder": "@angular-builders/custom-webpack:dev-server",
"options": { "browserTarget": "eoapi:build" },
"configurations": {
"dev": { "browserTarget": "eoapi:build:dev" },
"web": { "browserTarget": "eoapi:build:web" },
"webCn": { "browserTarget": "eoapi:build:webCn" },
"production": { "browserTarget": "eoapi:build:production" }
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": { "browserTarget": "eoapi:build" }
},
"test": {
"builder": "@angular-builders/custom-webpack:karma",
"options": {
"main": "src/test.ts",
"polyfills": "src/polyfills-test.ts",
"tsConfig": "src/tsconfig.spec.json",
"karmaConfig": "src/karma.conf.js",
"scripts": [],
"styles": ["src/styles.scss"],
"assets": ["src/assets"],
"customWebpackConfig": { "path": "./angular.webpack.js", "replaceDuplicatePlugins": true }
}
},
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": { "lintFilePatterns": ["src/**/*.ts", "src/**/*.html"] }
}
}
},
"eoapi-e2e": {
"root": "e2e",
"projectType": "application",
"architect": {
"lint": { "builder": "@angular-eslint/builder:lint", "options": { "lintFilePatterns": ["e2e/**/*.ts"] } }
}
}
},
"defaultProject": "eoapi",
"schematics": {
"@schematics/angular:component": { "prefix": "eo", "style": "scss" },
"@schematics/angular:directive": { "prefix": "eo" }
}
}

View File

@ -38,10 +38,12 @@ export class LanguageSwticherComponent implements OnInit {
{ {
name: 'English', name: 'English',
value: 'en-US', value: 'en-US',
path: 'en',
}, },
{ {
name: '简体中文', name: '简体中文',
value: 'zh-Hans', value: 'zh-Hans',
path: 'zh',
}, },
]; ];
constructor(private modal: NzModalService, private electron: ElectronService) {} constructor(private modal: NzModalService, private electron: ElectronService) {}
@ -54,7 +56,7 @@ export class LanguageSwticherComponent implements OnInit {
let changeCallback = (localeID) => { let changeCallback = (localeID) => {
this.model['eoapi-language'] = localeID; this.model['eoapi-language'] = localeID;
this.modelChange.emit(this.model); this.modelChange.emit(this.model);
window.location.href = `/${localeID}`; window.location.href = `/${(this.languages.find((val) => val.value === localeID) || this.languages[0]).path}`;
}; };
// if (this.electron.isElectron) { // if (this.electron.isElectron) {
// this.modal.warning({ // this.modal.warning({

View File

@ -215,6 +215,10 @@
<context context-type="sourcefile">src/app/pages/api/edit/api-edit.component.html</context> <context context-type="sourcefile">src/app/pages/api/edit/api-edit.component.html</context>
<context context-type="linenumber">67</context> <context context-type="linenumber">67</context>
</context-group> </context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/test/api-test.component.html</context>
<context context-type="linenumber">66</context>
</context-group>
<context-group purpose="location"> <context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/test/api-test.component.html</context> <context context-type="sourcefile">src/app/pages/api/test/api-test.component.html</context>
<context context-type="linenumber">122</context> <context context-type="linenumber">122</context>
@ -301,6 +305,14 @@
<context context-type="sourcefile">src/app/pages/api/detail/api-detail.service.ts</context> <context context-type="sourcefile">src/app/pages/api/detail/api-detail.service.ts</context>
<context context-type="linenumber">133</context> <context context-type="linenumber">133</context>
</context-group> </context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/edit/api-edit.service.ts</context>
<context context-type="linenumber">167</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/edit/extra-setting/api-params-extra-setting.component.ts</context>
<context context-type="linenumber">22</context>
</context-group>
</trans-unit> </trans-unit>
<trans-unit id="3585542129311104772" datatype="html"> <trans-unit id="3585542129311104772" datatype="html">
<source>{{item.required?&quot;True&quot;:&quot;&quot;}}</source> <source>{{item.required?&quot;True&quot;:&quot;&quot;}}</source>
@ -323,6 +335,14 @@
<context context-type="sourcefile">src/app/pages/api/detail/api-detail.service.ts</context> <context context-type="sourcefile">src/app/pages/api/detail/api-detail.service.ts</context>
<context context-type="linenumber">140</context> <context context-type="linenumber">140</context>
</context-group> </context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/edit/api-edit.service.ts</context>
<context context-type="linenumber">174</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/edit/extra-setting/api-params-extra-setting.component.ts</context>
<context context-type="linenumber">28</context>
</context-group>
<context-group purpose="location"> <context-group purpose="location">
<context context-type="sourcefile">src/app/shared/components/env/env.component.ts</context> <context context-type="sourcefile">src/app/shared/components/env/env.component.ts</context>
<context context-type="linenumber">30</context> <context context-type="linenumber">30</context>
@ -338,6 +358,10 @@
<context context-type="sourcefile">src/app/pages/api/detail/api-detail.service.ts</context> <context context-type="sourcefile">src/app/pages/api/detail/api-detail.service.ts</context>
<context context-type="linenumber">148</context> <context context-type="linenumber">148</context>
</context-group> </context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/edit/api-edit.service.ts</context>
<context context-type="linenumber">183</context>
</context-group>
</trans-unit> </trans-unit>
<trans-unit id="6163390194553498641" datatype="html"> <trans-unit id="6163390194553498641" datatype="html">
<source>Param Name</source> <source>Param Name</source>
@ -345,6 +369,18 @@
<context context-type="sourcefile">src/app/pages/api/detail/api-detail.service.ts</context> <context context-type="sourcefile">src/app/pages/api/detail/api-detail.service.ts</context>
<context context-type="linenumber">119</context> <context context-type="linenumber">119</context>
</context-group> </context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/edit/api-edit.service.ts</context>
<context context-type="linenumber">147</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/edit/api-edit.service.ts</context>
<context context-type="linenumber">150</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/edit/extra-setting/api-params-extra-setting.component.ts</context>
<context context-type="linenumber">17</context>
</context-group>
<context-group purpose="location"> <context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/test/api-test.service.ts</context> <context context-type="sourcefile">src/app/pages/api/test/api-test.service.ts</context>
<context context-type="linenumber">96</context> <context context-type="linenumber">96</context>
@ -360,11 +396,26 @@
<context context-type="sourcefile">src/app/pages/api/detail/api-detail.service.ts</context> <context context-type="sourcefile">src/app/pages/api/detail/api-detail.service.ts</context>
<context context-type="linenumber">126</context> <context context-type="linenumber">126</context>
</context-group> </context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/edit/api-edit.service.ts</context>
<context context-type="linenumber">155</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/edit/extra-setting/api-params-extra-setting.component.ts</context>
<context context-type="linenumber">33</context>
</context-group>
<context-group purpose="location"> <context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/test/api-test.service.ts</context> <context context-type="sourcefile">src/app/pages/api/test/api-test.service.ts</context>
<context context-type="linenumber">104</context> <context context-type="linenumber">104</context>
</context-group> </context-group>
</trans-unit> </trans-unit>
<trans-unit id="3170454287339201082" datatype="html">
<source>&lt;button type=&quot;button&quot; class=&quot;eo-operate-btn&quot; ng-click=&quot;$ctrl.data.isSpreedBtnClick=!$ctrl.data.isSpreedBtnClick;$ctrl.data.isSpreed=true;$ctrl.mainObject.baseFun.spreedAll($event);$ctrl.data.isSpreed=false;&quot;&gt;{{$ctrl.data.isSpreedBtnClick?&quot;Shrink All&quot;:&quot;Expand All&quot;}}&lt;/button&gt;</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/detail/api-detail.service.ts</context>
<context context-type="linenumber">155</context>
</context-group>
</trans-unit>
<trans-unit id="5531234025897938404" datatype="html"> <trans-unit id="5531234025897938404" datatype="html">
<source>&lt;span class=&quot;eo-operate-btn fs12&quot; ng-show=&quot;item.minimum || <source>&lt;span class=&quot;eo-operate-btn fs12&quot; ng-show=&quot;item.minimum ||
item.maximum || item.maximum ||
@ -551,6 +602,13 @@
<context context-type="linenumber">117</context> <context context-type="linenumber">117</context>
</context-group> </context-group>
</trans-unit> </trans-unit>
<trans-unit id="4926605800185679045" datatype="html">
<source>Root directory</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/edit/api-edit.component.ts</context>
<context context-type="linenumber">62</context>
</context-group>
</trans-unit>
<trans-unit id="5057571330615812244" datatype="html"> <trans-unit id="5057571330615812244" datatype="html">
<source><x id="PH" equiv-text="opts.title"/> Detail</source> <source><x id="PH" equiv-text="opts.title"/> Detail</source>
<context-group purpose="location"> <context-group purpose="location">
@ -558,6 +616,64 @@
<context context-type="linenumber">9</context> <context context-type="linenumber">9</context>
</context-group> </context-group>
</trans-unit> </trans-unit>
<trans-unit id="3098390606978669021" datatype="html">
<source>Param Description</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/edit/api-edit.service.ts</context>
<context context-type="linenumber">177</context>
</context-group>
</trans-unit>
<trans-unit id="7617068296307639189" datatype="html">
<source>Param Example</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/edit/api-edit.service.ts</context>
<context context-type="linenumber">186</context>
</context-group>
</trans-unit>
<trans-unit id="192340254091027151" datatype="html">
<source>Add Child</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/edit/api-edit.service.ts</context>
<context context-type="linenumber">196</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/test/api-test.service.ts</context>
<context context-type="linenumber">131</context>
</context-group>
</trans-unit>
<trans-unit id="2865141599531701497" datatype="html">
<source>More Settings</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/edit/api-edit.service.ts</context>
<context context-type="linenumber">201</context>
</context-group>
</trans-unit>
<trans-unit id="3200342440195656274" datatype="html">
<source>Insert</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/edit/api-edit.service.ts</context>
<context context-type="linenumber">213</context>
</context-group>
</trans-unit>
<trans-unit id="7022070615528435141" datatype="html">
<source>Delete</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/edit/api-edit.service.ts</context>
<context context-type="linenumber">218</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/test/api-test.service.ts</context>
<context context-type="linenumber">53</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/test/api-test.service.ts</context>
<context context-type="linenumber">136</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/test/history/api-test-history.component.ts</context>
<context context-type="linenumber">113</context>
</context-group>
</trans-unit>
<trans-unit id="96872c7258c372707cc4b11893902e7a30a23fbf" datatype="html"> <trans-unit id="96872c7258c372707cc4b11893902e7a30a23fbf" datatype="html">
<source>JSOn Root Type:</source> <source>JSOn Root Type:</source>
<context-group purpose="location"> <context-group purpose="location">
@ -621,43 +737,43 @@
<source>Add API</source> <source>Add API</source>
<context-group purpose="location"> <context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/group/tree/api-group-tree.component.html</context> <context context-type="sourcefile">src/app/pages/api/group/tree/api-group-tree.component.html</context>
<context context-type="linenumber">54</context> <context context-type="linenumber">55</context>
</context-group> </context-group>
</trans-unit> </trans-unit>
<trans-unit id="ad6231d0bb5fcc4e18106926b4c48a07624c39d3" datatype="html"> <trans-unit id="ad6231d0bb5fcc4e18106926b4c48a07624c39d3" datatype="html">
<source>Add Subgroup</source> <source>Add Subgroup</source>
<context-group purpose="location"> <context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/group/tree/api-group-tree.component.html</context> <context context-type="sourcefile">src/app/pages/api/group/tree/api-group-tree.component.html</context>
<context context-type="linenumber">57</context> <context context-type="linenumber">58</context>
</context-group> </context-group>
</trans-unit> </trans-unit>
<trans-unit id="28f86ffd419b869711aa13f5e5ff54be6d70731c" datatype="html"> <trans-unit id="28f86ffd419b869711aa13f5e5ff54be6d70731c" datatype="html">
<source>Edit</source> <source>Edit</source>
<context-group purpose="location"> <context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/group/tree/api-group-tree.component.html</context> <context context-type="sourcefile">src/app/pages/api/group/tree/api-group-tree.component.html</context>
<context context-type="linenumber">60</context> <context context-type="linenumber">61</context>
</context-group> </context-group>
<context-group purpose="location"> <context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/group/tree/api-group-tree.component.html</context> <context context-type="sourcefile">src/app/pages/api/group/tree/api-group-tree.component.html</context>
<context context-type="linenumber">88</context> <context context-type="linenumber">89</context>
</context-group> </context-group>
</trans-unit> </trans-unit>
<trans-unit id="826b25211922a1b46436589233cb6f1a163d89b7" datatype="html"> <trans-unit id="826b25211922a1b46436589233cb6f1a163d89b7" datatype="html">
<source>Delete</source> <source>Delete</source>
<context-group purpose="location"> <context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/group/tree/api-group-tree.component.html</context> <context context-type="sourcefile">src/app/pages/api/group/tree/api-group-tree.component.html</context>
<context context-type="linenumber">63</context> <context context-type="linenumber">64</context>
</context-group> </context-group>
<context-group purpose="location"> <context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/group/tree/api-group-tree.component.html</context> <context context-type="sourcefile">src/app/pages/api/group/tree/api-group-tree.component.html</context>
<context context-type="linenumber">96</context> <context context-type="linenumber">97</context>
</context-group> </context-group>
</trans-unit> </trans-unit>
<trans-unit id="1979da7460819153e11d2078244645d94291b69c" datatype="html"> <trans-unit id="1979da7460819153e11d2078244645d94291b69c" datatype="html">
<source>Copy</source> <source>Copy</source>
<context-group purpose="location"> <context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/group/tree/api-group-tree.component.html</context> <context context-type="sourcefile">src/app/pages/api/group/tree/api-group-tree.component.html</context>
<context context-type="linenumber">92</context> <context context-type="linenumber">93</context>
</context-group> </context-group>
</trans-unit> </trans-unit>
<trans-unit id="6410467948610503551" datatype="html"> <trans-unit id="6410467948610503551" datatype="html">
@ -744,6 +860,10 @@
<context context-type="sourcefile">src/app/shared/components/env/env.component.html</context> <context context-type="sourcefile">src/app/shared/components/env/env.component.html</context>
<context context-type="linenumber">51</context> <context context-type="linenumber">51</context>
</context-group> </context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/shared/components/params-import/params-import.component.html</context>
<context context-type="linenumber">36</context>
</context-group>
</trans-unit> </trans-unit>
<trans-unit id="3249513483374643425" datatype="html"> <trans-unit id="3249513483374643425" datatype="html">
<source>Add</source> <source>Add</source>
@ -891,18 +1011,18 @@
<source>Copied Successfully</source> <source>Copied Successfully</source>
<context-group purpose="location"> <context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/tab/api-tab.component.ts</context> <context context-type="sourcefile">src/app/pages/api/tab/api-tab.component.ts</context>
<context context-type="linenumber">247</context> <context context-type="linenumber">254</context>
</context-group> </context-group>
</trans-unit> </trans-unit>
<trans-unit id="7692894809481743955" datatype="html"> <trans-unit id="7692894809481743955" datatype="html">
<source>Fail to Copy</source> <source>Fail to Copy</source>
<context-group purpose="location"> <context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/tab/api-tab.component.ts</context> <context context-type="sourcefile">src/app/pages/api/tab/api-tab.component.ts</context>
<context context-type="linenumber">256</context> <context context-type="linenumber">263</context>
</context-group> </context-group>
</trans-unit> </trans-unit>
<trans-unit id="ad0b5250bf5006c65885e88eb87d42853c50acba" datatype="html"> <trans-unit id="8f36c1fb4be4a827235fabc122b0c2f6807ec6a0" datatype="html">
<source> <x id="INTERPOLATION" equiv-text="{{ status === &apos;testing&apos; ? &apos;终止&apos; : &apos;发送&apos; }}"/> <x id="START_TAG_SPAN" ctype="x-span" equiv-text="&lt;span *ngIf=&quot;status === &apos;testing&apos; &amp;&amp; waitSeconds&quot; class=&quot;ml5&quot;&gt;"/><x id="INTERPOLATION_1" equiv-text="{{ waitSeconds }}"/><x id="CLOSE_TAG_SPAN" ctype="x-span" equiv-text="&lt;/span&gt;"/></source> <source> <x id="INTERPOLATION" equiv-text="{{ status === &apos;testing&apos; ? &apos;Abort&apos; : &apos;Send&apos; }}"/> <x id="START_TAG_SPAN" ctype="x-span" equiv-text="&lt;span *ngIf=&quot;status === &apos;testing&apos; &amp;&amp; waitSeconds&quot; class=&quot;ml5&quot;&gt;"/><x id="INTERPOLATION_1" equiv-text="{{ waitSeconds }}"/><x id="CLOSE_TAG_SPAN" ctype="x-span" equiv-text="&lt;/span&gt;"/></source>
<context-group purpose="location"> <context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/test/api-test.component.html</context> <context context-type="sourcefile">src/app/pages/api/test/api-test.component.html</context>
<context context-type="linenumber">31,33</context> <context context-type="linenumber">31,33</context>
@ -915,13 +1035,6 @@
<context context-type="linenumber">43,45</context> <context context-type="linenumber">43,45</context>
</context-group> </context-group>
</trans-unit> </trans-unit>
<trans-unit id="1a9a3bdba3ddaabe3ff89eb6f1a883e049fed794" datatype="html">
<source>请求体</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/test/api-test.component.html</context>
<context context-type="linenumber">66</context>
</context-group>
</trans-unit>
<trans-unit id="798489073422308582" datatype="html"> <trans-unit id="798489073422308582" datatype="html">
<source><x id="PH" equiv-text="opts.title"/> Value</source> <source><x id="PH" equiv-text="opts.title"/> Value</source>
<context-group purpose="location"> <context-group purpose="location">
@ -929,21 +1042,6 @@
<context context-type="linenumber">13</context> <context context-type="linenumber">13</context>
</context-group> </context-group>
</trans-unit> </trans-unit>
<trans-unit id="7022070615528435141" datatype="html">
<source>Delete</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/test/api-test.service.ts</context>
<context context-type="linenumber">53</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/test/api-test.service.ts</context>
<context context-type="linenumber">136</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/test/history/api-test-history.component.ts</context>
<context context-type="linenumber">113</context>
</context-group>
</trans-unit>
<trans-unit id="6555318547274416232" datatype="html"> <trans-unit id="6555318547274416232" datatype="html">
<source>Value</source> <source>Value</source>
<context-group purpose="location"> <context-group purpose="location">
@ -963,15 +1061,8 @@
<context context-type="linenumber">29</context> <context context-type="linenumber">29</context>
</context-group> </context-group>
</trans-unit> </trans-unit>
<trans-unit id="192340254091027151" datatype="html"> <trans-unit id="fcf7e8e782aaccc38b459ea9f8c4ed96472d7e3a" datatype="html">
<source>Add Child</source> <source>JSON Root Type</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/test/api-test.service.ts</context>
<context context-type="linenumber">131</context>
</context-group>
</trans-unit>
<trans-unit id="1924e2467070a25c4f35706ff7a1208288e3141d" datatype="html">
<source>JJSON Root Type:</source>
<context-group purpose="location"> <context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/test/body/api-test-body.component.html</context> <context context-type="sourcefile">src/app/pages/api/test/body/api-test-body.component.html</context>
<context context-type="linenumber">12</context> <context context-type="linenumber">12</context>
@ -1200,35 +1291,35 @@
<source>Document</source> <source>Document</source>
<context-group purpose="location"> <context-group purpose="location">
<context context-type="sourcefile">src/app/pages/navbar/navbar.component.html</context> <context context-type="sourcefile">src/app/pages/navbar/navbar.component.html</context>
<context context-type="linenumber">25</context> <context context-type="linenumber">26</context>
</context-group> </context-group>
</trans-unit> </trans-unit>
<trans-unit id="47ac84fd9c54426d8275b208826d0b30c7eb2a6e" datatype="html"> <trans-unit id="47ac84fd9c54426d8275b208826d0b30c7eb2a6e" datatype="html">
<source>Bug Issue</source> <source>Bug Issue</source>
<context-group purpose="location"> <context-group purpose="location">
<context context-type="sourcefile">src/app/pages/navbar/navbar.component.html</context> <context context-type="sourcefile">src/app/pages/navbar/navbar.component.html</context>
<context context-type="linenumber">27</context> <context context-type="linenumber">28</context>
</context-group> </context-group>
</trans-unit> </trans-unit>
<trans-unit id="ef65da47763167a418e811d9007c53b896b50479" datatype="html"> <trans-unit id="f55a9f3b832e00a57e5202a0c14d23499156ac83" datatype="html">
<source>最小化</source> <source>Minimize</source>
<context-group purpose="location"> <context-group purpose="location">
<context context-type="sourcefile">src/app/pages/navbar/navbar.component.html</context> <context context-type="sourcefile">src/app/pages/navbar/navbar.component.html</context>
<context context-type="linenumber">34</context> <context context-type="linenumber">32</context>
</context-group> </context-group>
</trans-unit> </trans-unit>
<trans-unit id="065034046fe7863f3fe1a1f68e5767cf58bed3c1" datatype="html"> <trans-unit id="f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8" datatype="html">
<source>关闭</source> <source>Close</source>
<context-group purpose="location"> <context-group purpose="location">
<context context-type="sourcefile">src/app/pages/navbar/navbar.component.html</context> <context context-type="sourcefile">src/app/pages/navbar/navbar.component.html</context>
<context context-type="linenumber">52</context> <context context-type="linenumber">39</context>
</context-group> </context-group>
</trans-unit> </trans-unit>
<trans-unit id="dc75033a5238fdc4f462212c847a45ba8018a3fd" datatype="html"> <trans-unit id="dc75033a5238fdc4f462212c847a45ba8018a3fd" datatype="html">
<source>Download</source> <source>Download</source>
<context-group purpose="location"> <context-group purpose="location">
<context context-type="sourcefile">src/app/pages/navbar/navbar.component.html</context> <context context-type="sourcefile">src/app/pages/navbar/navbar.component.html</context>
<context context-type="linenumber">60</context> <context context-type="linenumber">44</context>
</context-group> </context-group>
</trans-unit> </trans-unit>
<trans-unit id="d09850d82a18a9f685aa351663a129bf41c11954" datatype="html"> <trans-unit id="d09850d82a18a9f685aa351663a129bf41c11954" datatype="html">
@ -1245,32 +1336,39 @@
<context context-type="linenumber">6</context> <context context-type="linenumber">6</context>
</context-group> </context-group>
</trans-unit> </trans-unit>
<trans-unit id="09abef87ce555f14d2f045a68f58d4e44c81f70d" datatype="html">
<source>New Environment</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/shared/components/env/env.component.html</context>
<context context-type="linenumber">6</context>
</context-group>
</trans-unit>
<trans-unit id="4bff500b453fbeeb83fd633fd92f8db8ae840055" datatype="html"> <trans-unit id="4bff500b453fbeeb83fd633fd92f8db8ae840055" datatype="html">
<source>Are you sure you want to delete?</source> <source>Are you sure you want to delete?</source>
<context-group purpose="location"> <context-group purpose="location">
<context context-type="sourcefile">src/app/shared/components/env/env.component.html</context> <context context-type="sourcefile">src/app/shared/components/env/env.component.html</context>
<context context-type="linenumber">15</context> <context context-type="linenumber">13</context>
</context-group> </context-group>
</trans-unit> </trans-unit>
<trans-unit id="141a4b3b5905cbfba657c8dd03f4b4b449910f93" datatype="html"> <trans-unit id="141a4b3b5905cbfba657c8dd03f4b4b449910f93" datatype="html">
<source>Environment Name</source> <source>Environment Name</source>
<context-group purpose="location"> <context-group purpose="location">
<context context-type="sourcefile">src/app/shared/components/env/env.component.html</context> <context context-type="sourcefile">src/app/shared/components/env/env.component.html</context>
<context context-type="linenumber">25</context> <context context-type="linenumber">24</context>
</context-group> </context-group>
</trans-unit> </trans-unit>
<trans-unit id="a91b777c271b3f075b4106a4a7e713fe8d48ed95" datatype="html"> <trans-unit id="a91b777c271b3f075b4106a4a7e713fe8d48ed95" datatype="html">
<source>Prefix URL</source> <source>Prefix URL</source>
<context-group purpose="location"> <context-group purpose="location">
<context context-type="sourcefile">src/app/shared/components/env/env.component.html</context> <context context-type="sourcefile">src/app/shared/components/env/env.component.html</context>
<context context-type="linenumber">31</context> <context context-type="linenumber">30</context>
</context-group> </context-group>
</trans-unit> </trans-unit>
<trans-unit id="3f1eeb54017aceaa8f374a1c7c6b5e64cef7af4c" datatype="html"> <trans-unit id="3f1eeb54017aceaa8f374a1c7c6b5e64cef7af4c" datatype="html">
<source>Environment variablecan be referenced by using <x id="INTERPOLATION" equiv-text="{{ varName }}"/> in Document or Test</source> <source>Environment variablecan be referenced by using <x id="INTERPOLATION" equiv-text="{{ varName }}"/> in Document or Test</source>
<context-group purpose="location"> <context-group purpose="location">
<context context-type="sourcefile">src/app/shared/components/env/env.component.html</context> <context context-type="sourcefile">src/app/shared/components/env/env.component.html</context>
<context context-type="linenumber">36</context> <context context-type="linenumber">35</context>
</context-group> </context-group>
</trans-unit> </trans-unit>
<trans-unit id="6022921320148690021" datatype="html"> <trans-unit id="6022921320148690021" datatype="html">
@ -1368,6 +1466,34 @@
<context context-type="linenumber">3</context> <context context-type="linenumber">3</context>
</context-group> </context-group>
</trans-unit> </trans-unit>
<trans-unit id="a0cb90c3698202b0678947b08f7153a2f76969b9" datatype="html">
<source>Import like this:<x id="LINE_BREAK" ctype="lb" equiv-text="&lt;br /&gt;"/><x id="INTERPOLATION" equiv-text="{{ eg }}"/></source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/shared/components/params-import/params-import.component.html</context>
<context context-type="linenumber">24</context>
</context-group>
</trans-unit>
<trans-unit id="0ebf24febeb263d1f45ea596e8ba6622283e41bd" datatype="html">
<source>Replace Changed</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/shared/components/params-import/params-import.component.html</context>
<context context-type="linenumber">33</context>
</context-group>
</trans-unit>
<trans-unit id="cb44d23a0e8b00e8ddb0f13cdc970f3d036073c6" datatype="html">
<source>Replace All</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/shared/components/params-import/params-import.component.html</context>
<context context-type="linenumber">34</context>
</context-group>
</trans-unit>
<trans-unit id="7b0672eeb16d78fb98eafab9b3ba903f0bef5ee3" datatype="html">
<source>Insert at the end</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/shared/components/params-import/params-import.component.html</context>
<context context-type="linenumber">35</context>
</context-group>
</trans-unit>
<trans-unit id="2724055831234181057" datatype="html"> <trans-unit id="2724055831234181057" datatype="html">
<source>Version</source> <source>Version</source>
<context-group purpose="location"> <context-group purpose="location">
@ -1499,21 +1625,21 @@
<source>Data Storage</source> <source>Data Storage</source>
<context-group purpose="location"> <context-group purpose="location">
<context context-type="sourcefile">src/app/shared/components/setting/setting.component.ts</context> <context context-type="sourcefile">src/app/shared/components/setting/setting.component.ts</context>
<context context-type="linenumber">90</context> <context context-type="linenumber">99</context>
</context-group> </context-group>
</trans-unit> </trans-unit>
<trans-unit id="2826581353496868063" datatype="html"> <trans-unit id="2826581353496868063" datatype="html">
<source>Language</source> <source>Language</source>
<context-group purpose="location"> <context-group purpose="location">
<context context-type="sourcefile">src/app/shared/components/setting/setting.component.ts</context> <context context-type="sourcefile">src/app/shared/components/setting/setting.component.ts</context>
<context context-type="linenumber">94</context> <context context-type="linenumber">103</context>
</context-group> </context-group>
</trans-unit> </trans-unit>
<trans-unit id="3139147897029202869" datatype="html"> <trans-unit id="3139147897029202869" datatype="html">
<source>Extensions</source> <source>Extensions</source>
<context-group purpose="location"> <context-group purpose="location">
<context context-type="sourcefile">src/app/shared/components/setting/setting.component.ts</context> <context context-type="sourcefile">src/app/shared/components/setting/setting.component.ts</context>
<context context-type="linenumber">98</context> <context context-type="linenumber">107</context>
</context-group> </context-group>
<context-group purpose="location"> <context-group purpose="location">
<context context-type="sourcefile">src/app/shared/components/sidebar/sidebar.component.ts</context> <context context-type="sourcefile">src/app/shared/components/sidebar/sidebar.component.ts</context>
@ -1524,7 +1650,7 @@
<source>About</source> <source>About</source>
<context-group purpose="location"> <context-group purpose="location">
<context context-type="sourcefile">src/app/shared/components/setting/setting.component.ts</context> <context context-type="sourcefile">src/app/shared/components/setting/setting.component.ts</context>
<context context-type="linenumber">102</context> <context context-type="linenumber">111</context>
</context-group> </context-group>
</trans-unit> </trans-unit>
<trans-unit id="3173655943326087472" datatype="html"> <trans-unit id="3173655943326087472" datatype="html">

View File

@ -1,7 +1,7 @@
{ {
"rewrites": [ "redirects": [
{ {
"source": "/:path((?!en-US/).*)", "source": "/:path((?!en/).*)",
"has": [ "has": [
{ {
"type": "header", "type": "header",
@ -9,10 +9,10 @@
"value": "en" "value": "en"
} }
], ],
"destination": "/en-US/:path*" "destination": "/en/:path*"
}, },
{ {
"source": "/:path((?!zh-Hans/).*)", "source": "/:path((?!zh/).*)",
"has": [ "has": [
{ {
"type": "header", "type": "header",
@ -20,7 +20,7 @@
"value": "zh" "value": "zh"
} }
], ],
"destination": "/zh-Hans/:path*" "destination": "/zh/:path*"
} }
] ]
} }