mirror of
https://gitee.com/eolink_admin/postcat.git
synced 2024-12-03 20:28:14 +08:00
translate: cn
This commit is contained in:
parent
5f1456f392
commit
b1fcac5ee2
@ -1 +1,160 @@
|
||||
{"$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", "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" }
|
||||
}
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -20,11 +20,11 @@ const eventHash = new Map()
|
||||
icon: 'deployment-unit',
|
||||
})
|
||||
.set('copy', {
|
||||
label: $localize`Copy`,
|
||||
label: $localize`:@@Copy:Copy`,
|
||||
icon: 'copy',
|
||||
})
|
||||
.set('search', {
|
||||
label: $localize`Search`,
|
||||
label: $localize`:@@Search:Search`,
|
||||
icon: 'search',
|
||||
})
|
||||
.set('download', {
|
||||
|
@ -23,7 +23,7 @@ export class ApiComponent implements OnInit, OnDestroy {
|
||||
TABS = [
|
||||
{
|
||||
routerLink: 'detail',
|
||||
title: $localize`Preview`,
|
||||
title: $localize`:@@API Detail:Preview`,
|
||||
},
|
||||
{
|
||||
routerLink: 'edit',
|
||||
|
@ -81,7 +81,7 @@ export class ApiDetailService {
|
||||
mark: 'require',
|
||||
},
|
||||
{
|
||||
thKey: $localize`Description`,
|
||||
thKey: $localize`:@@Description:Description`,
|
||||
type: 'text',
|
||||
modelKey: 'description',
|
||||
width: 250,
|
||||
@ -137,7 +137,7 @@ export class ApiDetailService {
|
||||
mark: 'require',
|
||||
},
|
||||
{
|
||||
thKey: $localize`Description`,
|
||||
thKey: $localize`:@@Description:Description`,
|
||||
type: 'text',
|
||||
modelKey: 'description',
|
||||
width: 260,
|
||||
|
@ -22,7 +22,7 @@ export class ApiDetailHeaderComponent implements OnInit, OnChanges {
|
||||
private initListConf() {
|
||||
this.listConf = this.detailService.initListConf({
|
||||
dragCacheVar: 'DRAG_VAR_API_EDIT_HEADER',
|
||||
title: $localize`Header`,
|
||||
title: $localize`:@@Header:Header`,
|
||||
nameTitle: $localize`Key`,
|
||||
});
|
||||
}
|
||||
|
@ -109,7 +109,7 @@
|
||||
#panelRes
|
||||
[nzActive]="true"
|
||||
i18n-nzHeader
|
||||
nzHeader="响应内容"
|
||||
nzHeader="Response"
|
||||
nzShowArrow="false"
|
||||
[nzExtra]="extraTplRes"
|
||||
>
|
||||
|
@ -171,7 +171,7 @@ export class ApiEditService {
|
||||
mark: 'require',
|
||||
},
|
||||
{
|
||||
thKey: $localize`Description`,
|
||||
thKey: $localize`:@@Description:Description`,
|
||||
type: 'input',
|
||||
modelKey: 'description',
|
||||
placeholder: $localize`Param Description`,
|
||||
@ -215,7 +215,7 @@ export class ApiEditService {
|
||||
itemExpression: `ng-if="!($ctrl.mainObject.setting.munalHideOperateColumn&&$first)"`,
|
||||
},
|
||||
{
|
||||
key: $localize`Delete`,
|
||||
key: $localize`:@@Delete:Delete`,
|
||||
operateName: 'delete',
|
||||
itemExpression: 'ng-if="!($ctrl.mainObject.setting.munalHideOperateColumn&&$first)"',
|
||||
},
|
||||
|
@ -9,7 +9,7 @@
|
||||
[rootType]="jsonRootType"></params-import>
|
||||
</div>
|
||||
<div *ngIf="bodyType === 'json'">
|
||||
<p class="fs12 c999 mb5" i18n>JSOn Root Type:</p>
|
||||
<p class="fs12 c999 mb5" i18n>JSON Root Type:</p>
|
||||
<nz-select class="w_100 mb10" [(ngModel)]="jsonRootType" (ngModelChange)="jsonRootTypeChange.emit(jsonRootType)">
|
||||
<nz-option *ngFor="let item of CONST.JSON_ROOT_TYPE" [nzLabel]="item.key" [nzValue]="item.value"></nz-option>
|
||||
</nz-select>
|
||||
|
@ -25,7 +25,7 @@ export class ApiParamsExtraSettingComponent implements OnInit {
|
||||
class: 'w_100',
|
||||
},
|
||||
{
|
||||
thKey: $localize`Description`,
|
||||
thKey: $localize`:@@Description:Description`,
|
||||
type: 'text',
|
||||
modelKey: 'description',
|
||||
},
|
||||
|
@ -1,4 +1,4 @@
|
||||
<div class="param_header">
|
||||
<params-import [(baseData)]="model" contentType="formData" i18n-modalTitle modalTitle="头部"></params-import>
|
||||
<params-import [(baseData)]="model" contentType="formData" i18n-modalTitle="@@Header" modalTitle="Header"></params-import>
|
||||
</div>
|
||||
<list-block-common-component [mainObject]="listConf" [(list)]="model"></list-block-common-component>
|
||||
|
@ -33,7 +33,7 @@ export class ApiEditHeaderComponent implements OnInit, OnChanges, AfterViewCheck
|
||||
this.listConf = this.editService.initListConf({
|
||||
dragCacheVar: 'DRAG_VAR_API_EDIT_HEADER',
|
||||
itemStructure: this.itemStructure,
|
||||
title: $localize`Header`,
|
||||
title: $localize`:@@Header:Header`,
|
||||
nameTitle: $localize`Key`,
|
||||
nzOnOkMoreSetting: (inputArg) => {
|
||||
this.model[inputArg.$index] = inputArg.item;
|
||||
|
@ -1,5 +1,5 @@
|
||||
<header class="flex p-2">
|
||||
<input type="text" class="input flex-1 px-3" i18n-placeholder placeholder="Search" [(ngModel)]="searchValue" />
|
||||
<input type="text" class="input flex-1 px-3" i18n-placeholder="@@Search" placeholder="Search" [(ngModel)]="searchValue" />
|
||||
<div class="btn ml-3 text-base flex shrink-0 items-center justify-center" nzType="primary" nz-button nz-dropdown
|
||||
[nzDropdownMenu]="menu" nzPlacement="bottomRight"
|
||||
(click)="operateApiEvent({ event: $event, eventName: 'gotoAddApi' })">
|
||||
@ -61,7 +61,7 @@
|
||||
<a i18n>Edit</a>
|
||||
</li>
|
||||
<li nz-menu-item (click)="deleteGroup(node)">
|
||||
<a i18n>Delete</a>
|
||||
<a i18n="@@Delete">Delete</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nz-dropdown-menu>
|
||||
@ -90,11 +90,11 @@
|
||||
</li>
|
||||
<li nz-menu-item
|
||||
(click)="operateApiEvent({ event: $event, eventName: 'gotoCopyApi', node: apiDataItems[node.key] })">
|
||||
<a i18n>Copy</a>
|
||||
<a i18n="@@Copy">Copy</a>
|
||||
</li>
|
||||
<li nz-menu-item
|
||||
(click)="operateApiEvent({ event: $event, eventName: 'gotoDeleteApi', node: apiDataItems[node.key] })">
|
||||
<a i18n>Delete</a>
|
||||
<a i18n="@@Delete">Delete</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nz-dropdown-menu>
|
||||
|
@ -50,7 +50,7 @@ export class ApiGroupTreeComponent implements OnInit, OnDestroy {
|
||||
treeNodes: GroupTreeItem[] | NzTreeNode[] | any;
|
||||
fixedTreeNode: GroupTreeItem[] | NzTreeNode[] = [
|
||||
{
|
||||
title: $localize `Index`,
|
||||
title: $localize `:@@API Index:Index`,
|
||||
key: 'overview',
|
||||
weight: 0,
|
||||
parentID: '0',
|
||||
|
@ -32,11 +32,11 @@
|
||||
*ngIf="(scope.name || scope.url) && scope.createWay !== 'system'"
|
||||
nz-popconfirm
|
||||
i18n-nzPopconfirmTitle
|
||||
nzPopconfirmTitle="您确定要删除此Mock吗?"
|
||||
nzPopconfirmTitle="Are you sure you want to delete this Mock?"
|
||||
nzPopconfirmPlacement="topRight"
|
||||
(nzOnConfirm)="handleDeleteMockItem(index)"
|
||||
i18n
|
||||
>删除</a
|
||||
i18n="@@Delete"
|
||||
>Delete</a
|
||||
>
|
||||
</div>
|
||||
</ng-template>
|
||||
|
@ -1,5 +1,5 @@
|
||||
<div class="overview_container">
|
||||
<h1 class="fs20 fwb" i18n>Index</h1>
|
||||
<h1 class="fs20 fwb" i18n="@@API Index">Index</h1>
|
||||
<nz-divider></nz-divider>
|
||||
<section class="grid gap-8 grid-cols-2 xl:grid-cols-3">
|
||||
<div class="card_item" *ngFor="let item of overviewList">
|
||||
|
@ -52,10 +52,10 @@ export class ApiOverviewComponent implements OnDestroy {
|
||||
nzOnOk: () => {
|
||||
this.modal.componentInstance.submit((status) => {
|
||||
if (status) {
|
||||
this.message.success($localize`${title} Successfully`);
|
||||
this.message.success($localize`${title} successfully`);
|
||||
this.modal.destroy();
|
||||
} else {
|
||||
this.message.error($localize`Fail to ${title}`);
|
||||
this.message.error($localize`Failed to ${title}`);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
@ -25,8 +25,8 @@ export class ApiTabComponent implements OnInit, OnDestroy {
|
||||
defaultTabs = {
|
||||
edit: { path: '/home/api/edit', title: $localize`New API` },
|
||||
test: { path: '/home/api/test', title: $localize`New API` },
|
||||
detail: { path: '/home/api/detail', title: $localize`Preview` },
|
||||
overview: { path: '/home/api/overview', title: $localize`Index`, key: 'overview' },
|
||||
detail: { path: '/home/api/detail', title: $localize`:@@API Detail:Preview` },
|
||||
overview: { path: '/home/api/overview', title: $localize`:@@API Index:Index`, key: 'overview' },
|
||||
mock: { path: '/home/api/mock', title: 'Mock', key: 'mock' },
|
||||
};
|
||||
MAX_TAB_LIMIT = 15;
|
||||
@ -251,7 +251,7 @@ export class ApiTabComponent implements OnInit, OnDestroy {
|
||||
case 'copyApi':
|
||||
this.storage.run('apiDataCreate', [{ ...inArg.data }, inArg.data.uuid], (result: StorageRes) => {
|
||||
if (result.status === StorageResStatus.success) {
|
||||
this.message.success($localize`Copied Successfully`);
|
||||
this.message.success($localize`Copied successfully`);
|
||||
this.appendOrSwitchTab('edit', {
|
||||
...inArg.data,
|
||||
...result.data,
|
||||
@ -260,7 +260,7 @@ export class ApiTabComponent implements OnInit, OnDestroy {
|
||||
});
|
||||
this.messageService.send({ type: `copyApiSuccess`, data: result.data });
|
||||
} else {
|
||||
this.message.success($localize`Fail to Copy`);
|
||||
this.message.success($localize`Failed to copy`);
|
||||
}
|
||||
});
|
||||
break;
|
||||
|
@ -41,7 +41,7 @@
|
||||
class="ml10"
|
||||
i18n
|
||||
>
|
||||
Save as New API
|
||||
Save as API
|
||||
</button>
|
||||
</nz-input-group>
|
||||
</nz-form-control>
|
||||
|
@ -50,7 +50,7 @@ export class ApiTestService {
|
||||
class: 'w_250',
|
||||
btnList: [
|
||||
{
|
||||
key: $localize`Delete`,
|
||||
key: $localize`:@@Delete:Delete`,
|
||||
operateName: 'delete',
|
||||
},
|
||||
],
|
||||
@ -133,7 +133,7 @@ export class ApiTestService {
|
||||
itemExpression: `eo-attr-tip-placeholder="add_child_btn" ng-if="$ctrl.mainObject.setting.isLevel"`,
|
||||
},
|
||||
{
|
||||
key: $localize`Delete`,
|
||||
key: $localize`:@@Delete:Delete`,
|
||||
operateName: 'delete',
|
||||
itemExpression: 'ng-if="!($ctrl.mainObject.setting.munalHideOperateColumn&&$first)"',
|
||||
},
|
||||
|
@ -9,7 +9,7 @@
|
||||
[rootType]="jsonRootType"></params-import>
|
||||
</div>
|
||||
<div *ngIf="bodyType === 'json'">
|
||||
<p class="fs12 c999 mb5" i18n>JSON Root Type</p>
|
||||
<p class="fs12 c999 mb5" i18n>JSON Root Type:</p>
|
||||
<nz-select class="w_100 mb10" [(ngModel)]="jsonRootType">
|
||||
<nz-option *ngFor="let item of CONST.JSON_ROOT_TYPE" [nzLabel]="item.key" [nzValue]="item.value"></nz-option>
|
||||
</nz-select>
|
||||
@ -24,5 +24,5 @@
|
||||
<eo-editor [(code)]="model" (codeChange)="rawDataChange()" *ngIf="bodyType === 'raw'"
|
||||
[eventList]="['type', 'format', 'copy', 'download', 'newTab', 'search', 'replace']"></eo-editor>
|
||||
<!-- Binary -->
|
||||
<textarea class="btd" rows="4" *ngIf="bodyType === 'binary'" nzBorderless i18n-placeholder placeholder="Description" nz-input
|
||||
<textarea class="btd" rows="4" *ngIf="bodyType === 'binary'" nzBorderless i18n-placeholder="@@Description" placeholder="Description" nz-input
|
||||
[(ngModel)]="model"></textarea>
|
||||
|
@ -1,4 +1,4 @@
|
||||
<div class="param_header">
|
||||
<params-import [(baseData)]="model" contentType="formData" i18n-modalTitle modalTitle="Header"></params-import>
|
||||
<params-import [(baseData)]="model" contentType="formData" i18n-modalTitle="@@Header" modalTitle="Header"></params-import>
|
||||
</div>
|
||||
<list-block-common-component [mainObject]="listConf" [(list)]="model"></list-block-common-component>
|
||||
|
@ -47,7 +47,7 @@ export class ApiTestHeaderComponent implements OnInit, OnChanges {
|
||||
this.listConf = this.editService.initListConf({
|
||||
dragCacheVar: 'DRAG_VAR_API_HEADER',
|
||||
itemStructure: this.itemStructure,
|
||||
title: $localize`Header`,
|
||||
title: $localize`:@@Header:Header`,
|
||||
nameTitle: $localize`Key`,
|
||||
valueTitle: $localize`Value`,
|
||||
watchFormLastChange: () => {
|
||||
|
@ -57,7 +57,7 @@ export class ApiTestHistoryComponent implements OnInit {
|
||||
this.model = [];
|
||||
this.message.success($localize`Delete Succeeded`);
|
||||
} else {
|
||||
this.message.error($localize`Fail to delete`);
|
||||
this.message.error($localize`Failed to delete`);
|
||||
console.error(result.data);
|
||||
}
|
||||
});
|
||||
@ -110,7 +110,7 @@ export class ApiTestHistoryComponent implements OnInit {
|
||||
class: 'w_100',
|
||||
btnList: [
|
||||
{
|
||||
key: $localize`Delete`,
|
||||
key: $localize`:@@Delete:Delete`,
|
||||
operateName: 'delete',
|
||||
fun: (inArg) => {
|
||||
this.delete(inArg);
|
||||
@ -128,7 +128,7 @@ export class ApiTestHistoryComponent implements OnInit {
|
||||
this.model.splice(inArg.$index, 1);
|
||||
this.message.success($localize`Delete Succeeded`);
|
||||
} else {
|
||||
this.message.success($localize`Fail to delete`);
|
||||
this.message.success($localize`Failed to delete`);
|
||||
console.error(result.data);
|
||||
}
|
||||
});
|
||||
|
@ -2,7 +2,7 @@
|
||||
<section class="flex-shrink-0 p-0 left">
|
||||
<!-- <input type="text" nz-input [(ngModel)]="keyword" (ngModelChange)="onSeachChange($event)" placeholder="search" /> -->
|
||||
<div class="p-[10px]">
|
||||
<input type="text" class="flex-1 w-full px-3 input" i18n-placeholder placeholder="search" [(ngModel)]="keyword"
|
||||
<input type="text" class="flex-1 w-full px-3 input" i18n-placeholder="@@Search" placeholder="Search" [(ngModel)]="keyword"
|
||||
(ngModelChange)="onSeachChange($event)" />
|
||||
</div>
|
||||
<!-- Fixed Group -->
|
||||
|
@ -25,7 +25,7 @@
|
||||
<ul nz-menu nzSelectable>
|
||||
<a href="https://eoapi.io/" target="_blank" nz-menu-item i18n>Document</a>
|
||||
<li nz-menu-divider></li>
|
||||
<a href="https://github.com/eolinker/eoapi/issues/new" target="_blank" nz-menu-item i18n>Bug Issue</a>
|
||||
<a href="https://github.com/eolinker/eoapi/issues/new" target="_blank" nz-menu-item i18n>Report Issue</a>
|
||||
</ul>
|
||||
</nz-dropdown-menu>
|
||||
<div *ngIf="!OS_TYPE.includes('mac') && isElectron">
|
||||
|
@ -2,7 +2,7 @@
|
||||
<div class="flex items-center justify-between h-10 px-2 header">
|
||||
<span class="font-bold">Environment</span>
|
||||
<div class="flex items-center justify-center text-base btn shrink-0 h-7" (click)="handleAddEnv()" nz-tooltip
|
||||
i18n-nzTooltipTitle
|
||||
i18n-nzTooltipTitle="@@New Environment"
|
||||
nzTooltipTitle="New Environment">
|
||||
<eo-iconpark-icon name="plus">
|
||||
</eo-iconpark-icon>
|
||||
@ -27,7 +27,7 @@
|
||||
</nz-form-control>
|
||||
</nz-form-item>
|
||||
<nz-form-item>
|
||||
<nz-form-label nzFor="envInfo.hostUri" i18n>Prefix URL</nz-form-label>
|
||||
<nz-form-label nzFor="envInfo.hostUri" i18n>Host</nz-form-label>
|
||||
<nz-form-control>
|
||||
<input nz-input name="hostUri" type="text" [(ngModel)]="envInfo.hostUri" />
|
||||
</nz-form-control>
|
||||
|
@ -17,7 +17,7 @@ import { Subject } from 'rxjs';
|
||||
export class EnvComponent implements OnInit, OnDestroy {
|
||||
@ViewChild('table') table: EoTableComponent; // * child component ref
|
||||
varName = $localize`{{Variable Name}}`;
|
||||
modalTitle = $localize`New Environment`;
|
||||
modalTitle = $localize`:@@New Environment:New Environment`;
|
||||
isVisible = false;
|
||||
/** 是否打开下拉菜单 */
|
||||
isOpen = false;
|
||||
@ -27,7 +27,7 @@ export class EnvComponent implements OnInit, OnDestroy {
|
||||
envListColumns = [
|
||||
{ title: $localize`Name`, key: 'name', isEdit: true },
|
||||
{ title: $localize`Value`, key: 'value', isEdit: true },
|
||||
{ title: $localize`Description`, key: 'description', isEdit: true },
|
||||
{ title: $localize`:@@Description:Description`, key: 'description', isEdit: true },
|
||||
{ title: $localize`Operate`, slot: 'action', width: '15%' },
|
||||
];
|
||||
|
||||
@ -115,7 +115,7 @@ export class EnvComponent implements OnInit, OnDestroy {
|
||||
hostUri: '',
|
||||
parameters: [],
|
||||
};
|
||||
this.modalTitle = $localize`New Environment`;
|
||||
this.modalTitle = $localize`:@@New Environment:New Environment`;
|
||||
this.activeUuid = null;
|
||||
this.handleShowModal();
|
||||
}
|
||||
@ -134,14 +134,14 @@ export class EnvComponent implements OnInit, OnDestroy {
|
||||
[{ ...other, name, parameters: data }, uuid],
|
||||
async (result: StorageRes) => {
|
||||
if (result.status === StorageResStatus.success) {
|
||||
this.message.success($localize`Edited Successfully`);
|
||||
this.message.success($localize`Edited successfully`);
|
||||
await this.getAllEnv(this.activeUuid);
|
||||
if (this.envUuid === Number(uuid)) {
|
||||
this.envUuid = Number(uuid);
|
||||
}
|
||||
this.handleCancel();
|
||||
} else {
|
||||
this.message.error($localize`Fail to Edit`);
|
||||
this.message.error($localize`Failed to edit`);
|
||||
}
|
||||
}
|
||||
);
|
||||
|
@ -5,12 +5,12 @@ import { NzMessageService } from 'ng-zorro-antd/message';
|
||||
@Component({
|
||||
selector: 'eo-data-storage',
|
||||
template: `
|
||||
<div class="font-bold text-lg mb-2" i18n>Data Storage</div>
|
||||
<div class="font-bold text-lg mb-2" i18n="@@DataSource">Data Storage</div>
|
||||
<form nz-form nzLayout="vertical" [formGroup]="validateForm" (ngSubmit)="submitForm()">
|
||||
<nz-form-item>
|
||||
<nz-form-control>
|
||||
<nz-select formControlName="eoapi-common.dataStorage" i18n-nzPlaceHolder nzPlaceHolder="Data Storage">
|
||||
<nz-option nzValue="http" i18n-nzLabel nzLabel="Remote Server"></nz-option>
|
||||
<nz-select formControlName="eoapi-common.dataStorage" i18n-nzPlaceHolder="@@DataSource" nzPlaceHolder="Data Storage">
|
||||
<nz-option nzValue="http" i18n-nzLabel="@@Remote Server" nzLabel="Remote Server"></nz-option>
|
||||
<nz-option nzValue="local" nzLabel="Localhost"></nz-option>
|
||||
</nz-select>
|
||||
</nz-form-control>
|
||||
|
@ -5,9 +5,9 @@ import { NzModalService } from 'ng-zorro-antd/modal';
|
||||
@Component({
|
||||
selector: 'eo-language-switcher',
|
||||
template: `
|
||||
<div class="font-bold text-lg mb-2" i18n>Language</div>
|
||||
<div class="font-bold text-lg mb-2" i18n="@@Language">Language</div>
|
||||
<nz-select
|
||||
i18n-nzPlaceHolder
|
||||
i18n-nzPlaceHolder="@@Language"
|
||||
nzPlaceHolder="Language"
|
||||
[ngModel]="model['eoapi-language']"
|
||||
(ngModelChange)="handleChange($event)"
|
||||
|
@ -96,11 +96,11 @@ export class SettingComponent implements OnInit {
|
||||
}
|
||||
treeNodes = [
|
||||
{
|
||||
name: $localize`Data Storage`,
|
||||
name: $localize`:@@DataSource:Data Storage`,
|
||||
moduleID: 'eoapi-common',
|
||||
},
|
||||
{
|
||||
name: $localize`Language`,
|
||||
name: $localize`:@@Language:Language`,
|
||||
moduleID: 'eoapi-language',
|
||||
},
|
||||
{
|
||||
|
@ -31,7 +31,7 @@ export class RemoteService {
|
||||
}
|
||||
/** Text corresponding to the current data source */
|
||||
get dataSourceText() {
|
||||
return this.isRemote ? $localize`Remote Server` : $localize`Localhost`;
|
||||
return this.isRemote ? $localize`:@@Remote Server:Remote Server` : $localize`Localhost`;
|
||||
}
|
||||
/** get mock url */
|
||||
get mockUrl() {
|
||||
@ -177,7 +177,7 @@ export class RemoteService {
|
||||
};
|
||||
|
||||
showMessage() {
|
||||
this.message.create('success', $localize`Successfully switched to ${this.dataSourceText} data source`);
|
||||
this.message.create('success', $localize`successfully switched to ${this.dataSourceText} data source`);
|
||||
localStorage.setItem('IS_SHOW_DATA_SOURCE_TIP', 'false');
|
||||
}
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -955,14 +955,14 @@
|
||||
</context-group>
|
||||
</trans-unit>
|
||||
<trans-unit id="1205615742045874576" datatype="html">
|
||||
<source><x id="PH" equiv-text="title"/> Successfully</source>
|
||||
<source><x id="PH" equiv-text="title"/> successfully</source>
|
||||
<context-group purpose="location">
|
||||
<context context-type="sourcefile">src/app/pages/api/overview/api-overview.component.ts</context>
|
||||
<context context-type="linenumber">55</context>
|
||||
</context-group>
|
||||
</trans-unit>
|
||||
<trans-unit id="7151048763437792475" datatype="html">
|
||||
<source>Fail to <x id="PH" equiv-text="title"/></source>
|
||||
<source>Failed to <x id="PH" equiv-text="title"/></source>
|
||||
<context-group purpose="location">
|
||||
<context context-type="sourcefile">src/app/pages/api/overview/api-overview.component.ts</context>
|
||||
<context context-type="linenumber">58</context>
|
||||
@ -1008,14 +1008,14 @@
|
||||
</context-group>
|
||||
</trans-unit>
|
||||
<trans-unit id="4907078814051755011" datatype="html">
|
||||
<source>Copied Successfully</source>
|
||||
<source>Copied successfully</source>
|
||||
<context-group purpose="location">
|
||||
<context context-type="sourcefile">src/app/pages/api/tab/api-tab.component.ts</context>
|
||||
<context context-type="linenumber">254</context>
|
||||
</context-group>
|
||||
</trans-unit>
|
||||
<trans-unit id="7692894809481743955" datatype="html">
|
||||
<source>Fail to Copy</source>
|
||||
<source>Failed to Copy</source>
|
||||
<context-group purpose="location">
|
||||
<context context-type="sourcefile">src/app/pages/api/tab/api-tab.component.ts</context>
|
||||
<context context-type="linenumber">263</context>
|
||||
@ -1104,7 +1104,7 @@
|
||||
</context-group>
|
||||
</trans-unit>
|
||||
<trans-unit id="1649261429156309361" datatype="html">
|
||||
<source>Fail to delete</source>
|
||||
<source>Failed to delete</source>
|
||||
<context-group purpose="location">
|
||||
<context context-type="sourcefile">src/app/pages/api/test/history/api-test-history.component.ts</context>
|
||||
<context context-type="linenumber">60</context>
|
||||
@ -1411,14 +1411,14 @@
|
||||
</context-group>
|
||||
</trans-unit>
|
||||
<trans-unit id="2952346632292825392" datatype="html">
|
||||
<source>Edited Successfully</source>
|
||||
<source>Edited successfully</source>
|
||||
<context-group purpose="location">
|
||||
<context context-type="sourcefile">src/app/shared/components/env/env.component.ts</context>
|
||||
<context context-type="linenumber">137</context>
|
||||
</context-group>
|
||||
</trans-unit>
|
||||
<trans-unit id="9181127106692245123" datatype="html">
|
||||
<source>Fail to Edit</source>
|
||||
<source>Failed to Edit</source>
|
||||
<context-group purpose="location">
|
||||
<context context-type="sourcefile">src/app/shared/components/env/env.component.ts</context>
|
||||
<context context-type="linenumber">144</context>
|
||||
@ -1717,7 +1717,7 @@
|
||||
</context-group>
|
||||
</trans-unit>
|
||||
<trans-unit id="6493317474275837530" datatype="html">
|
||||
<source>Successfully switched to <x id="PH" equiv-text="this.dataSourceText"/> data source</source>
|
||||
<source>successfully switched to <x id="PH" equiv-text="this.dataSourceText"/> data source</source>
|
||||
<context-group purpose="location">
|
||||
<context context-type="sourcefile">src/app/shared/services/remote/remote.service.ts</context>
|
||||
<context context-type="linenumber">180</context>
|
||||
|
@ -1773,7 +1773,7 @@
|
||||
* @param {angular.Module} ngApp an optional application
|
||||
* {@link angular.module module} name to load.
|
||||
* @param {boolean=} ngStrictDi if this attribute is present on the app element, the injector will be
|
||||
* created in "strict-di" mode. This means that the application will fail to invoke functions which
|
||||
* created in "strict-di" mode. This means that the application will Failed to invoke functions which
|
||||
* do not use explicit function annotation (and are thus unsuitable for minification), as described
|
||||
* in {@link guide/di the Dependency Injection guide}, and useful debugging info will assist in
|
||||
* tracking down the root of these bugs.
|
||||
@ -1837,7 +1837,7 @@
|
||||
<div ng-controller="GoodController1">
|
||||
I can add: {{a}} + {{b}} = {{ a+b }}
|
||||
|
||||
<p>This renders because the controller does not fail to
|
||||
<p>This renders because the controller does not Failed to
|
||||
instantiate, by using explicit annotation style (see
|
||||
script.js for details)
|
||||
</p>
|
||||
@ -1847,7 +1847,7 @@
|
||||
Name: <input ng-model="name"><br />
|
||||
Hello, {{name}}!
|
||||
|
||||
<p>This renders because the controller does not fail to
|
||||
<p>This renders because the controller does not Failed to
|
||||
instantiate, by using explicit annotation style
|
||||
(see script.js for details)
|
||||
</p>
|
||||
@ -1866,13 +1866,13 @@
|
||||
</file>
|
||||
<file name="script.js">
|
||||
angular.module('ngAppStrictDemo', [])
|
||||
// BadController will fail to instantiate, due to relying on automatic function annotation,
|
||||
// BadController will Failed to instantiate, due to relying on automatic function annotation,
|
||||
// rather than an explicit annotation
|
||||
.controller('BadController', function($scope) {
|
||||
$scope.a = 1;
|
||||
$scope.b = 2;
|
||||
})
|
||||
// Unlike BadController, GoodController1 and GoodController2 will not fail to be instantiated,
|
||||
// Unlike BadController, GoodController1 and GoodController2 will not Failed to be instantiated,
|
||||
// due to using explicit annotations using the array style and $inject property, respectively.
|
||||
.controller('GoodController1', ['$scope', function($scope) {
|
||||
$scope.a = 1;
|
||||
@ -8095,7 +8095,7 @@
|
||||
* #### Pre-linking function
|
||||
*
|
||||
* Executed before the child elements are linked. Not safe to do DOM transformation since the
|
||||
* compiler linking function will fail to locate the correct elements for linking.
|
||||
* compiler linking function will Failed to locate the correct elements for linking.
|
||||
*
|
||||
* #### Post-linking function
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user