transalte

This commit is contained in:
scarqin 2022-08-10 19:17:42 +08:00
parent 123ab483a4
commit 6917d9cae8
8 changed files with 247 additions and 231 deletions

View File

@ -55,10 +55,6 @@ export class ApiTabService {
*/
onAllComponentInit() {
const url = this.router.url;
if (!this.componentRef.init) {
this.changeContent$.next({ when: 'init', url });
throw new Error('EO_ERROR:Child componentRef need has init function for reflesh data when router change');
}
this.updateChildView(url);
}
// Set current tab type:'preview'|'edit' for later judgment
@ -111,6 +107,12 @@ export class ApiTabService {
return;
}
this.bindChildComponentChangeEvent();
if (!this.componentRef.init) {
this.changeContent$.next({ when: 'init', url });
console.warn('EO_ERROR:Child componentRef need has init function for reflesh data when router change');
return;
}
//?Why should use getCurrentTab()?
//Because maybe current tab has't finish init
const currentTab = this.apiTabComponent.getTabByUrl(url);
@ -122,74 +124,74 @@ export class ApiTabService {
}
updateTab(currentTab, inData) {
const model = inData.model;
if (!model || isEmptyObj(model)) {
return;
}
//Set tabItem
const replaceTab: Partial<TabItem> = {
isLoading: false,
extends: {},
};
//Set title/method
replaceTab.title = model.name;
replaceTab.extends.method = model.method;
if (currentTab.pathname === '/home/api/test') {
replaceTab.extends.method = model.request.method;
//Only Untitle request need set url to tab title
if (!model.request.uuid || (currentTab.params.uuid && currentTab.params.uuid.includes('history_'))) {
replaceTab.title = model.request.uri || this.BASIC_TBAS.test.title;
} else {
replaceTab.title = model.request.name || this.BASIC_TBAS.test.title;
}
} else if (!model.uuid) {
replaceTab.title =
replaceTab.title || Object.values(this.BASIC_TBAS).find((val) => val.pathname === currentTab.pathname).title;
}
//Only hasChanged edit page storage data
if (currentTab.type === 'edit') {
const contentID = this.getContentID(currentTab.pathname);
//Set hasChange
if (!this.componentRef?.isFormChange) {
throw new Error(
`EO_ERROR:Child componentRef[${this.componentRef.constructor.name}] need has isFormChange function check model change`
);
}
switch (inData.when) {
case 'editing': {
replaceTab.hasChanged = this.componentRef.isFormChange();
break;
if (model && !isEmptyObj(model)) {
//Set title/method
replaceTab.title = model.name;
replaceTab.extends.method = model.method;
if (currentTab.pathname === '/home/api/test') {
replaceTab.extends.method = model.request.method;
//Only Untitle request need set url to tab title
if (!model.request.uuid || (currentTab.params.uuid && currentTab.params.uuid.includes('history_'))) {
replaceTab.title = model.request.uri || this.BASIC_TBAS.test.title;
} else {
replaceTab.title = model.request.name || this.BASIC_TBAS.test.title;
}
case 'saved': {
replaceTab.hasChanged = false;
} else if (!model.uuid) {
replaceTab.title =
replaceTab.title || Object.values(this.BASIC_TBAS).find((val) => val.pathname === currentTab.pathname).title;
}
//Only hasChanged edit page storage data
if (currentTab.type === 'edit') {
const contentID = this.getContentID(currentTab.pathname);
//Set hasChange
if (!this.componentRef?.isFormChange) {
throw new Error(
`EO_ERROR:Child componentRef[${this.componentRef.constructor.name}] need has isFormChange function check model change`
);
}
}
//* Share change status within all content page
replaceTab.extends.hasChanged = currentTab.extends?.hasChanged || {};
replaceTab.extends.hasChanged[contentID] = replaceTab.hasChanged;
replaceTab.hasChanged =
currentTab.extends?.hasChanged?.[contentID === 'edit' ? 'test' : 'edit'] || replaceTab.hasChanged;
switch (inData.when) {
case 'editing': {
replaceTab.hasChanged = this.componentRef.isFormChange();
break;
}
case 'saved': {
replaceTab.hasChanged = false;
}
}
//* Share change status within all content page
replaceTab.extends.hasChanged = currentTab.extends?.hasChanged || {};
replaceTab.extends.hasChanged[contentID] = replaceTab.hasChanged;
replaceTab.hasChanged =
currentTab.extends?.hasChanged?.[contentID === 'edit' ? 'test' : 'edit'] || replaceTab.hasChanged;
//Set isFixed
if (replaceTab.hasChanged) {
replaceTab.isFixed = true;
}
//Has tested set fixed
if (currentTab.pathname === '/home/api/test' && model.testStartTime !== undefined) {
replaceTab.isFixed = true;
}
//Set isFixed
if (replaceTab.hasChanged) {
replaceTab.isFixed = true;
}
//Has tested set fixed
if (currentTab.pathname === '/home/api/test' && model.testStartTime !== undefined) {
replaceTab.isFixed = true;
}
// Set storage
//Set baseContent
if (['init', 'saved'].includes(inData.when)) {
const initialModel = this.componentRef.initialModel;
replaceTab.baseContent = inData.when === 'saved' ? {} : currentTab.baseContent || {};
replaceTab.baseContent[contentID] = initialModel && !isEmptyObj(initialModel) ? initialModel : null;
// Set storage
//Set baseContent
if (['init', 'saved'].includes(inData.when)) {
const initialModel = this.componentRef.initialModel;
replaceTab.baseContent = inData.when === 'saved' ? {} : currentTab.baseContent || {};
replaceTab.baseContent[contentID] = initialModel && !isEmptyObj(initialModel) ? initialModel : null;
}
//Set content
replaceTab.content = inData.when === 'saved' ? {} : currentTab.content || {};
replaceTab.content[contentID] = model && !isEmptyObj(model) ? model : null;
}
//Set content
replaceTab.content = inData.when === 'saved' ? {} : currentTab.content || {};
replaceTab.content[contentID] = model && !isEmptyObj(model) ? model : null;
}
console.log('updatePartialTab', currentTab.uuid, replaceTab);
// console.log('updatePartialTab',inData.url,currentTab, replaceTab);
this.apiTabComponent.updatePartialTab(inData.url, replaceTab);
}
/**
@ -212,7 +214,7 @@ export class ApiTabService {
}
handleDataBeforeCache(tabsByID) {
Object.values(tabsByID).forEach((val: TabItem) => {
if (val.pathname === '/home/api/test'&&val.content?.test?.testResult) {
if (val.pathname === '/home/api/test' && val.content?.test?.testResult) {
val.content.test.testResult = {
request: {},
response: {},

View File

@ -233,9 +233,9 @@ export class ApiTabOperateService {
const tab = mapObj[key];
if (tab.params.uuid === tmpTabItem.params.uuid) {
const mergeTab = this.preventBlankTab(tab, tmpTabItem);
tmpTabItem.content = tab.content;
tmpTabItem.baseContent = tab.baseContent;
tmpTabItem.extends = Object.assign(tmpTabItem.extends || {}, tab.extends);
mergeTab.content = tab.content;
mergeTab.baseContent = tab.baseContent;
mergeTab.extends = Object.assign(mergeTab.extends || {}, tab.extends);
this.selectedIndex = this.tabStorage.tabOrder.findIndex((uuid) => uuid === tab.uuid);
this.tabStorage.updateTab(this.selectedIndex, mergeTab);
this.updateChildView();

View File

@ -10,7 +10,6 @@ import { storageTab, TabItem } from './tab.model';
export class ApiTabStorageService {
tabOrder: Array<number> = [];
tabsByID = new Map<number, TabItem>();
private cacheName = `${this.dataSource.dataSourceType}_TabCache`;
constructor(private dataSource: RemoteService) {}
addTab(tabItem) {
if (this.tabsByID.has(tabItem.uuid)) {
@ -47,6 +46,8 @@ export class ApiTabStorageService {
* @param data
*/
setPersistenceStorage(selectedIndex, opts) {
// storage cache may change
if (this.dataSource.dataSourceType === 'http') {return;}
let tabsByID = Object.fromEntries(this.tabsByID);
Object.values(tabsByID).forEach((val) => {
if (!val.hasChanged) {
@ -59,7 +60,7 @@ export class ApiTabStorageService {
tabsByID = opts.handleDataBeforeCache(tabsByID);
}
window.localStorage.setItem(
this.cacheName,
`${this.dataSource.dataSourceType}_TabCache`,
JSON.stringify({
selectedIndex,
tabOrder: this.tabOrder,
@ -70,7 +71,7 @@ export class ApiTabStorageService {
getPersistenceStorage(): storageTab {
let result: any = null;
try {
result = JSON.parse(window.localStorage.getItem(this.cacheName) as string);
result = JSON.parse(window.localStorage.getItem(`${this.dataSource.dataSourceType}_TabCache`) as string);
} catch (e) {}
return result;
}

View File

@ -111,7 +111,7 @@ export class ApiTabComponent implements OnInit, OnDestroy {
return tabs;
}
/**
* Get tab by url with same tab uuid
* Get tab by url with same content
*
* @param url
* @returns
@ -119,10 +119,10 @@ export class ApiTabComponent implements OnInit, OnDestroy {
getTabByUrl(url: string): TabItem | null {
const tabItem = this.tabOperate.getBaiscTabFromUrl(url);
const existTabIndex = this.tabOperate.getSameContentTabIndex(tabItem);
if (existTabIndex !== -1) {
return this.tabStorage.tabsByID.get(this.tabStorage.tabOrder[existTabIndex]);
if (existTabIndex === -1) {
return null;
}
return this.tabStorage.tabsByID.get(tabItem.uuid)||null;
return this.tabStorage.tabsByID.get(this.tabStorage.tabOrder[existTabIndex]);
}
getCurrentTab() {
return this.tabOperate.getCurrentTab();
@ -144,7 +144,9 @@ export class ApiTabComponent implements OnInit, OnDestroy {
return;
}
const index = this.tabStorage.tabOrder.findIndex((uuid) => uuid === originTab.uuid);
this.tabStorage.updateTab(index, Object.assign({}, originTab, tabItem));
this.tabStorage.updateTab(index, Object.assign({}, originTab, tabItem,{
extends:Object.assign({},originTab.extends,tabItem.extends)
}));
//! Prevent rendering delay
this.cdRef.detectChanges();
}

View File

@ -242,9 +242,9 @@ export class ApiTestComponent implements OnInit, OnDestroy {
isFormChange(): boolean {
//Has exist api can't save
//TODO If has test case,test data will be saved to test case
// if (this.model.request.uuid) {
// return false;
// }
if (this.model.request.uuid) {
return false;
}
if (!this.initialModel.request || !this.model.request) {
return false;
}

View File

@ -3,8 +3,8 @@
[style.--remote-notification-height]="isShowNotification && electron.isElectron ? '50px' : '0px'">
<div *ngIf="isShowNotification && electron.isElectron" class="remote-notification">
<i nz-icon [nzType]="isRemote ? 'cloud' : 'exclamation-circle'" nzTheme="outline" class="text-[13px] mr-[2px]"></i>
<span i18n>Current data storage exists{{ dataSourceText }},please switch if you want to collaborate</span>
<a class="eo-blod" (click)="switchDataSource()" i18n>{{ isRemote ? 'Remote Server' : 'Localhost' }} Data Storage</a>
<span i18n>Current data storage exists {{ dataSourceText }},please switch if you want to collaborate</span>
<a class="eo-blod ml-0.5" (click)="switchDataSource()" i18n>{{ isRemote ? 'Remote Server' : 'Localhost' }} Data Storage</a>
<i nz-icon nzType="close" nzTheme="outline" class="absolute right-[20px] cursor-pointer"
(click)="closeNotification()"></i>
</div>

View File

@ -39,7 +39,7 @@
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/shared/components/monaco-editor/monaco-editor.component.ts</context>
<context context-type="linenumber">13</context>
<context context-type="linenumber">23</context>
</context-group>
</trans-unit>
<trans-unit id="Copy" datatype="html">
@ -50,11 +50,11 @@
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/group/tree/api-group-tree.component.html</context>
<context context-type="linenumber">125</context>
<context context-type="linenumber">91</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/shared/components/monaco-editor/monaco-editor.component.ts</context>
<context context-type="linenumber">17</context>
<context context-type="linenumber">27</context>
</context-group>
</trans-unit>
<trans-unit id="Search" datatype="html">
@ -65,7 +65,7 @@
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/group/tree/api-group-tree.component.html</context>
<context context-type="linenumber">7</context>
<context context-type="linenumber">2</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/extension/extension.component.html</context>
@ -73,7 +73,7 @@
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/shared/components/monaco-editor/monaco-editor.component.ts</context>
<context context-type="linenumber">21</context>
<context context-type="linenumber">31</context>
</context-group>
</trans-unit>
<trans-unit id="6254459922754143568" datatype="html">
@ -84,7 +84,7 @@
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/shared/components/monaco-editor/monaco-editor.component.ts</context>
<context context-type="linenumber">25</context>
<context context-type="linenumber">35</context>
</context-group>
</trans-unit>
<trans-unit id="2115592966120408375" datatype="html">
@ -95,48 +95,51 @@
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/detail/mock/api-detail-mock.component.ts</context>
<context context-type="linenumber">147</context>
<context context-type="linenumber">134</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/mock/api-mock.component.ts</context>
<context context-type="linenumber">273</context>
<context context-type="linenumber">261</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/shared/components/monaco-editor/monaco-editor.component.ts</context>
<context context-type="linenumber">262</context>
<context context-type="linenumber">290</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/utils/index.ts</context>
<context context-type="linenumber">151</context>
</context-group>
</trans-unit>
<trans-unit id="3312816458112607142" datatype="html">
<source>New Request</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/api-tab.service.ts</context>
<context context-type="linenumber">19</context>
</context-group>
</trans-unit>
<trans-unit id="5460129479464091648" datatype="html">
<source>New API</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/api-tab.service.ts</context>
<context context-type="linenumber">18</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/api-tab.service.ts</context>
<context context-type="linenumber">19</context>
<context context-type="linenumber">20</context>
</context-group>
</trans-unit>
<trans-unit id="1295614462098694869" datatype="html">
<source>Preview</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/api-tab.service.ts</context>
<context context-type="linenumber">20</context>
<context context-type="linenumber">21</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/mock/api-mock.component.ts</context>
<context context-type="linenumber">32</context>
<context context-type="linenumber">30</context>
</context-group>
</trans-unit>
<trans-unit id="API Index" datatype="html">
<source>Index</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/api-tab.service.ts</context>
<context context-type="linenumber">21</context>
<context context-type="linenumber">22</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/group/tree/api-group-tree.component.ts</context>
@ -202,25 +205,25 @@
<source>Preview</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/api.component.ts</context>
<context context-type="linenumber">37</context>
<context context-type="linenumber">41</context>
</context-group>
</trans-unit>
<trans-unit id="7585826646011739428" datatype="html">
<source>Edit</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/api.component.ts</context>
<context context-type="linenumber">41</context>
<context context-type="linenumber">45</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/mock/api-mock.component.ts</context>
<context context-type="linenumber">33,34</context>
<context context-type="linenumber">31,32</context>
</context-group>
</trans-unit>
<trans-unit id="6563391987554512024" datatype="html">
<source>Test</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/api.component.ts</context>
<context context-type="linenumber">45</context>
<context context-type="linenumber">49</context>
</context-group>
</trans-unit>
<trans-unit id="3954794666010631211" datatype="html">
@ -593,33 +596,33 @@
<source>System creation</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/detail/mock/api-detail-mock.component.ts</context>
<context context-type="linenumber">29</context>
<context context-type="linenumber">25</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/mock/api-mock.component.ts</context>
<context context-type="linenumber">39</context>
<context context-type="linenumber">37</context>
</context-group>
</trans-unit>
<trans-unit id="201305693183001102" datatype="html">
<source>Manual creation</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/detail/mock/api-detail-mock.component.ts</context>
<context context-type="linenumber">30</context>
<context context-type="linenumber">26</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/mock/api-mock.component.ts</context>
<context context-type="linenumber">40</context>
<context context-type="linenumber">38</context>
</context-group>
</trans-unit>
<trans-unit id="8953033926734869941" datatype="html">
<source>Name</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/detail/mock/api-detail-mock.component.ts</context>
<context context-type="linenumber">33</context>
<context context-type="linenumber">29</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/mock/api-mock.component.ts</context>
<context context-type="linenumber">43</context>
<context context-type="linenumber">41</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/shared/components/env/env.component.ts</context>
@ -630,11 +633,11 @@
<source>Created Type</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/detail/mock/api-detail-mock.component.ts</context>
<context context-type="linenumber">34</context>
<context context-type="linenumber">30</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/mock/api-mock.component.ts</context>
<context context-type="linenumber">44</context>
<context context-type="linenumber">42</context>
</context-group>
</trans-unit>
<trans-unit id="5057571330615812244" datatype="html">
@ -696,11 +699,11 @@
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/group/tree/api-group-tree.component.html</context>
<context context-type="linenumber">89</context>
<context context-type="linenumber">62</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/group/tree/api-group-tree.component.html</context>
<context context-type="linenumber">131</context>
<context context-type="linenumber">95</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/mock/api-mock.component.html</context>
@ -794,11 +797,11 @@
<source>Edited successfully</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/edit/api-edit.component.ts</context>
<context context-type="linenumber">124</context>
<context context-type="linenumber">127</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/mock/api-mock.component.ts</context>
<context context-type="linenumber">247</context>
<context context-type="linenumber">235</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/shared/components/env/env.component.ts</context>
@ -809,11 +812,11 @@
<source>Added successfully</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/edit/api-edit.component.ts</context>
<context context-type="linenumber">124</context>
<context context-type="linenumber">127</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/mock/api-mock.component.ts</context>
<context context-type="linenumber">252</context>
<context context-type="linenumber">240</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/shared/components/env/env.component.ts</context>
@ -824,14 +827,14 @@
<source>Failed Operation</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/edit/api-edit.component.ts</context>
<context context-type="linenumber">138</context>
<context context-type="linenumber">141</context>
</context-group>
</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">194</context>
<context context-type="linenumber">185</context>
</context-group>
</trans-unit>
<trans-unit id="bc0fd905b5fa45043121b5607fa0f2e91201ff98" datatype="html">
@ -932,81 +935,81 @@
<source>New API</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/group/tree/api-group-tree.component.html</context>
<context context-type="linenumber">23</context>
<context context-type="linenumber">10</context>
</context-group>
</trans-unit>
<trans-unit id="653539a38f21a5bf189859ce97c43e722585bcc9" datatype="html">
<source>New Group</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/group/tree/api-group-tree.component.html</context>
<context context-type="linenumber">24</context>
<context context-type="linenumber">12</context>
</context-group>
</trans-unit>
<trans-unit id="54c758cd64b90c738f0092d96f394493d1a993ca" datatype="html">
<source>Add API</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/group/tree/api-group-tree.component.html</context>
<context context-type="linenumber">80</context>
<context context-type="linenumber">53</context>
</context-group>
</trans-unit>
<trans-unit id="ad6231d0bb5fcc4e18106926b4c48a07624c39d3" datatype="html">
<source>Add Subgroup</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/group/tree/api-group-tree.component.html</context>
<context context-type="linenumber">83</context>
<context context-type="linenumber">56</context>
</context-group>
</trans-unit>
<trans-unit id="28f86ffd419b869711aa13f5e5ff54be6d70731c" datatype="html">
<source>Edit</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/group/tree/api-group-tree.component.html</context>
<context context-type="linenumber">86</context>
<context context-type="linenumber">59</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/group/tree/api-group-tree.component.html</context>
<context context-type="linenumber">119</context>
<context context-type="linenumber">87</context>
</context-group>
</trans-unit>
<trans-unit id="1623775429516238560" datatype="html">
<source>Deletion Confirmation?</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/group/tree/api-group-tree.component.ts</context>
<context context-type="linenumber">230</context>
<context context-type="linenumber">228</context>
</context-group>
</trans-unit>
<trans-unit id="9142685431369791033" datatype="html">
<source>Are you sure you want to delete the data &lt;strong title=&quot;<x id="PH" equiv-text="apiInfo.name"/>&quot;&gt;<x id="PH_1" equiv-text="apiInfo.name.length &gt; 50 ? apiInfo.name.slice(0, 50) + &apos;...&apos; : apiInfo.name"/>&lt;/strong&gt; ? You cannot restore it once deleted!</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/group/tree/api-group-tree.component.ts</context>
<context context-type="linenumber">231,233</context>
<context context-type="linenumber">229,231</context>
</context-group>
</trans-unit>
<trans-unit id="9124347207158517893" datatype="html">
<source>Add Group</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/group/tree/api-group-tree.component.ts</context>
<context context-type="linenumber">289</context>
<context context-type="linenumber">287</context>
</context-group>
</trans-unit>
<trans-unit id="6661660398413994526" datatype="html">
<source>Add Subgroup</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/group/tree/api-group-tree.component.ts</context>
<context context-type="linenumber">298</context>
<context context-type="linenumber">296</context>
</context-group>
</trans-unit>
<trans-unit id="5908762969513689727" datatype="html">
<source>Edit Group</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/group/tree/api-group-tree.component.ts</context>
<context context-type="linenumber">307</context>
<context context-type="linenumber">305</context>
</context-group>
</trans-unit>
<trans-unit id="3596210590059423029" datatype="html">
<source>Delete Group</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/group/tree/api-group-tree.component.ts</context>
<context context-type="linenumber">316</context>
<context context-type="linenumber">314</context>
</context-group>
</trans-unit>
<trans-unit id="c6b146602288a87386004d591558477a97497e60" datatype="html">
@ -1063,14 +1066,14 @@
<source>Add</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/mock/api-mock.component.ts</context>
<context context-type="linenumber">30</context>
<context context-type="linenumber">28</context>
</context-group>
</trans-unit>
<trans-unit id="9142814796222630444" datatype="html">
<source>Delete Succeeded</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/mock/api-mock.component.ts</context>
<context context-type="linenumber">236</context>
<context context-type="linenumber">224</context>
</context-group>
</trans-unit>
<trans-unit id="1071721880474488785" datatype="html">
@ -1133,70 +1136,70 @@
<source>Program will not close unsaved tabs</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/tab/api-tab-operate.service.ts</context>
<context context-type="linenumber">125</context>
<context context-type="linenumber">124</context>
</context-group>
</trans-unit>
<trans-unit id="44efde0bbba66e81ad32078ed9809767ad54db13" datatype="html">
<source> Close Other Tags (excluding current tabs) </source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/tab/api-tab.component.html</context>
<context context-type="linenumber">42,44</context>
<context context-type="linenumber">50,52</context>
</context-group>
</trans-unit>
<trans-unit id="da5c98488cec2d000c9cb2376c766a003a866ffa" datatype="html">
<source>Close All Tabs</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/tab/api-tab.component.html</context>
<context context-type="linenumber">45</context>
<context context-type="linenumber">53</context>
</context-group>
</trans-unit>
<trans-unit id="401696edf31c742a0600709a5e4301289ad60263" datatype="html">
<source> Close Tabs To The Left </source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/tab/api-tab.component.html</context>
<context context-type="linenumber">46,48</context>
<context context-type="linenumber">54,56</context>
</context-group>
</trans-unit>
<trans-unit id="b4571033d92af24030292f74dccc0d2eeb8240d2" datatype="html">
<source> Close Tabs to Right </source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/tab/api-tab.component.html</context>
<context context-type="linenumber">54,56</context>
<context context-type="linenumber">62,64</context>
</context-group>
</trans-unit>
<trans-unit id="7762169316697380309" datatype="html">
<source>Do you want to save the changes?</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/tab/api-tab.component.ts</context>
<context context-type="linenumber">55</context>
<context context-type="linenumber">57</context>
</context-group>
</trans-unit>
<trans-unit id="7711937097933765278" datatype="html">
<source>Your changes will be lost if you don&apos;t save them.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/tab/api-tab.component.ts</context>
<context context-type="linenumber">56</context>
<context context-type="linenumber">58</context>
</context-group>
</trans-unit>
<trans-unit id="3768927257183755959" datatype="html">
<source>Save</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/tab/api-tab.component.ts</context>
<context context-type="linenumber">60</context>
<context context-type="linenumber">62</context>
</context-group>
</trans-unit>
<trans-unit id="2532913788578936100" datatype="html">
<source>Don&apos;t Save</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/tab/api-tab.component.ts</context>
<context context-type="linenumber">69</context>
<context context-type="linenumber">71</context>
</context-group>
</trans-unit>
<trans-unit id="2159130950882492111" datatype="html">
<source>Cancel</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/tab/api-tab.component.ts</context>
<context context-type="linenumber">77</context>
<context context-type="linenumber">79</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/shared/services/modal.service.ts</context>
@ -1289,7 +1292,7 @@
<source>Tap or drag files directly to this area</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/test/body/api-test-body.component.html</context>
<context context-type="linenumber">48</context>
<context context-type="linenumber">45</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/shared/components/extension-select/extension-select.component.html</context>
@ -1307,7 +1310,7 @@
<source>File size must be less than 2M</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/test/body/api-test-body.component.ts</context>
<context context-type="linenumber">229</context>
<context context-type="linenumber">230</context>
</context-group>
</trans-unit>
<trans-unit id="4160d7155608b3e323edefddb1395d9025ca3549" datatype="html">
@ -1339,14 +1342,18 @@
</context-group>
</trans-unit>
<trans-unit id="downloadResponse" datatype="html">
<source> download back result </source>
<source> download response </source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/test/result-response/api-test-result-response.component.html</context>
<context context-type="linenumber">27,29</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/test/result-response/api-test-result-response.component.html</context>
<context context-type="linenumber">39,41</context>
<context context-type="linenumber">37</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/test/result-response/api-test-result-response.component.html</context>
<context context-type="linenumber">44,46</context>
</context-group>
</trans-unit>
<trans-unit id="babf7797e8c3c322f80eed6d34d4fe93a97382a1" datatype="html">
@ -1360,7 +1367,7 @@
<source>The response result exceeds the previewable size, you can</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/test/result-response/api-test-result-response.component.html</context>
<context context-type="linenumber">37</context>
<context context-type="linenumber">42</context>
</context-group>
</trans-unit>
<trans-unit id="cda31dbd724cf5f4fa7a4274d9120651490c8a8c" datatype="html">
@ -1510,8 +1517,8 @@
<context context-type="linenumber">46,49</context>
</context-group>
</trans-unit>
<trans-unit id="d09850d82a18a9f685aa351663a129bf41c11954" datatype="html">
<source>Current data storage exists<x id="INTERPOLATION" equiv-text="{{ dataSourceText }}"/>,please switch if you want to collaborate</source>
<trans-unit id="8c89155c41939de52bf344aaf2beba0566be31ad" datatype="html">
<source>Current data storage exists <x id="INTERPOLATION" equiv-text="{{ dataSourceText }}"/>,please switch if you want to collaborate</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/pages.component.html</context>
<context context-type="linenumber">6</context>
@ -2788,7 +2795,7 @@
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/shared/components/setting/setting.component.ts</context>
<context context-type="linenumber">100</context>
<context context-type="linenumber">101</context>
</context-group>
</trans-unit>
<trans-unit id="Remote Server" datatype="html">
@ -2932,14 +2939,14 @@
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/shared/components/setting/setting.component.ts</context>
<context context-type="linenumber">104</context>
<context context-type="linenumber">105</context>
</context-group>
</trans-unit>
<trans-unit id="3139147897029202869" datatype="html">
<source>Extensions</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/shared/components/setting/setting.component.ts</context>
<context context-type="linenumber">108</context>
<context context-type="linenumber">109</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/shared/components/sidebar/sidebar.component.ts</context>
@ -2950,7 +2957,7 @@
<source>About</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/shared/components/setting/setting.component.ts</context>
<context context-type="linenumber">112</context>
<context context-type="linenumber">113</context>
</context-group>
</trans-unit>
<trans-unit id="59a3abb75073b478f8ec94aade779d38d5d28887" datatype="html">
@ -3020,7 +3027,7 @@
<source>Default Mock</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/shared/services/storage/IndexedDB/lib/index.ts</context>
<context context-type="linenumber">65</context>
<context context-type="linenumber">87</context>
</context-group>
</trans-unit>
<trans-unit id="3618702844543429787" datatype="html">

View File

@ -43,7 +43,7 @@
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/shared/components/monaco-editor/monaco-editor.component.ts</context>
<context context-type="linenumber">13</context>
<context context-type="linenumber">23</context>
</context-group>
<target state="translated">整理格式</target>
</trans-unit>
@ -55,11 +55,11 @@
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/group/tree/api-group-tree.component.html</context>
<context context-type="linenumber">125</context>
<context context-type="linenumber">91</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/shared/components/monaco-editor/monaco-editor.component.ts</context>
<context context-type="linenumber">17</context>
<context context-type="linenumber">27</context>
</context-group>
<target state="translated">复制</target>
</trans-unit>
@ -71,7 +71,7 @@
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/group/tree/api-group-tree.component.html</context>
<context context-type="linenumber">7</context>
<context context-type="linenumber">2</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/extension/extension.component.html</context>
@ -79,7 +79,7 @@
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/shared/components/monaco-editor/monaco-editor.component.ts</context>
<context context-type="linenumber">21</context>
<context context-type="linenumber">31</context>
</context-group>
<target state="translated">搜索</target>
</trans-unit>
@ -91,7 +91,7 @@
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/shared/components/monaco-editor/monaco-editor.component.ts</context>
<context context-type="linenumber">25</context>
<context context-type="linenumber">35</context>
</context-group>
<target state="translated">替换</target>
</trans-unit>
@ -103,15 +103,15 @@
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/detail/mock/api-detail-mock.component.ts</context>
<context context-type="linenumber">147</context>
<context context-type="linenumber">134</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/mock/api-mock.component.ts</context>
<context context-type="linenumber">273</context>
<context context-type="linenumber">261</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/shared/components/monaco-editor/monaco-editor.component.ts</context>
<context context-type="linenumber">262</context>
<context context-type="linenumber">290</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/utils/index.ts</context>
@ -119,15 +119,19 @@
</context-group>
<target state="translated">复制成功</target>
</trans-unit>
<trans-unit id="3312816458112607142" datatype="html">
<source>New Request</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/api-tab.service.ts</context>
<context context-type="linenumber">19</context>
</context-group>
<target state="translated">新请求</target>
</trans-unit>
<trans-unit id="5460129479464091648" datatype="html">
<source>New API</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/api-tab.service.ts</context>
<context context-type="linenumber">18</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/api-tab.service.ts</context>
<context context-type="linenumber">19</context>
<context context-type="linenumber">20</context>
</context-group>
<target state="translated">添加 API</target>
</trans-unit>
@ -135,11 +139,11 @@
<source>Preview</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/api-tab.service.ts</context>
<context context-type="linenumber">20</context>
<context context-type="linenumber">21</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/mock/api-mock.component.ts</context>
<context context-type="linenumber">32</context>
<context context-type="linenumber">30</context>
</context-group>
<target state="translated">文档</target>
</trans-unit>
@ -147,7 +151,7 @@
<source>Index</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/api-tab.service.ts</context>
<context context-type="linenumber">21</context>
<context context-type="linenumber">22</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/group/tree/api-group-tree.component.ts</context>
@ -220,7 +224,7 @@
<source>Preview</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/api.component.ts</context>
<context context-type="linenumber">37</context>
<context context-type="linenumber">41</context>
</context-group>
<target state="translated">文档</target>
</trans-unit>
@ -228,11 +232,11 @@
<source>Edit</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/api.component.ts</context>
<context context-type="linenumber">41</context>
<context context-type="linenumber">45</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/mock/api-mock.component.ts</context>
<context context-type="linenumber">33,34</context>
<context context-type="linenumber">31,32</context>
</context-group>
<target state="translated">编辑</target>
</trans-unit>
@ -240,7 +244,7 @@
<source>Test</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/api.component.ts</context>
<context context-type="linenumber">45</context>
<context context-type="linenumber">49</context>
</context-group>
<target state="translated">测试</target>
</trans-unit>
@ -640,11 +644,11 @@
<source>System creation</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/detail/mock/api-detail-mock.component.ts</context>
<context context-type="linenumber">29</context>
<context context-type="linenumber">25</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/mock/api-mock.component.ts</context>
<context context-type="linenumber">39</context>
<context context-type="linenumber">37</context>
</context-group>
<target state="translated">系统自动创建</target>
</trans-unit>
@ -652,11 +656,11 @@
<source>Manual creation</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/detail/mock/api-detail-mock.component.ts</context>
<context context-type="linenumber">30</context>
<context context-type="linenumber">26</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/mock/api-mock.component.ts</context>
<context context-type="linenumber">40</context>
<context context-type="linenumber">38</context>
</context-group>
<target state="translated">手动创建</target>
</trans-unit>
@ -664,11 +668,11 @@
<source>Name</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/detail/mock/api-detail-mock.component.ts</context>
<context context-type="linenumber">33</context>
<context context-type="linenumber">29</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/mock/api-mock.component.ts</context>
<context context-type="linenumber">43</context>
<context context-type="linenumber">41</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/shared/components/env/env.component.ts</context>
@ -680,11 +684,11 @@
<source>Created Type</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/detail/mock/api-detail-mock.component.ts</context>
<context context-type="linenumber">34</context>
<context context-type="linenumber">30</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/mock/api-mock.component.ts</context>
<context context-type="linenumber">44</context>
<context context-type="linenumber">42</context>
</context-group>
<target state="translated">创建方式</target>
</trans-unit>
@ -752,11 +756,11 @@
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/group/tree/api-group-tree.component.html</context>
<context context-type="linenumber">89</context>
<context context-type="linenumber">62</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/group/tree/api-group-tree.component.html</context>
<context context-type="linenumber">131</context>
<context context-type="linenumber">95</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/mock/api-mock.component.html</context>
@ -860,11 +864,11 @@
<source>Edited successfully</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/edit/api-edit.component.ts</context>
<context context-type="linenumber">124</context>
<context context-type="linenumber">127</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/mock/api-mock.component.ts</context>
<context context-type="linenumber">247</context>
<context context-type="linenumber">235</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/shared/components/env/env.component.ts</context>
@ -876,11 +880,11 @@
<source>Added successfully</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/edit/api-edit.component.ts</context>
<context context-type="linenumber">124</context>
<context context-type="linenumber">127</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/mock/api-mock.component.ts</context>
<context context-type="linenumber">252</context>
<context context-type="linenumber">240</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/shared/components/env/env.component.ts</context>
@ -892,7 +896,7 @@
<source>Failed Operation</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/edit/api-edit.component.ts</context>
<context context-type="linenumber">138</context>
<context context-type="linenumber">141</context>
</context-group>
<target state="translated">操作失败</target>
</trans-unit>
@ -900,7 +904,7 @@
<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">194</context>
<context context-type="linenumber">185</context>
</context-group>
<target state="translated">根目录</target>
</trans-unit>
@ -1014,7 +1018,7 @@
<source>New API</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/group/tree/api-group-tree.component.html</context>
<context context-type="linenumber">23</context>
<context context-type="linenumber">10</context>
</context-group>
<target state="translated">添加 API</target>
</trans-unit>
@ -1022,7 +1026,7 @@
<source>New Group</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/group/tree/api-group-tree.component.html</context>
<context context-type="linenumber">24</context>
<context context-type="linenumber">12</context>
</context-group>
<target state="translated">添加分组</target>
</trans-unit>
@ -1030,7 +1034,7 @@
<source>Add API</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/group/tree/api-group-tree.component.html</context>
<context context-type="linenumber">80</context>
<context context-type="linenumber">53</context>
</context-group>
<target state="translated">添加 API</target>
</trans-unit>
@ -1038,7 +1042,7 @@
<source>Add Subgroup</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/group/tree/api-group-tree.component.html</context>
<context context-type="linenumber">83</context>
<context context-type="linenumber">56</context>
</context-group>
<target state="translated">添加子分组</target>
</trans-unit>
@ -1046,11 +1050,11 @@
<source>Edit</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/group/tree/api-group-tree.component.html</context>
<context context-type="linenumber">86</context>
<context context-type="linenumber">59</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/group/tree/api-group-tree.component.html</context>
<context context-type="linenumber">119</context>
<context context-type="linenumber">87</context>
</context-group>
<target state="translated">编辑</target>
</trans-unit>
@ -1058,7 +1062,7 @@
<source>Deletion Confirmation?</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/group/tree/api-group-tree.component.ts</context>
<context context-type="linenumber">230</context>
<context context-type="linenumber">228</context>
</context-group>
<target state="translated">确认删除?</target>
</trans-unit>
@ -1066,7 +1070,7 @@
<source>Are you sure you want to delete the data &lt;strong title=&quot;<x id="PH" equiv-text="apiInfo.name"/>&quot;&gt;<x id="PH_1" equiv-text="apiInfo.name.length &gt; 50 ? apiInfo.name.slice(0, 50) + &apos;...&apos; : apiInfo.name"/>&lt;/strong&gt; ? You cannot restore it once deleted!</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/group/tree/api-group-tree.component.ts</context>
<context context-type="linenumber">231,233</context>
<context context-type="linenumber">229,231</context>
</context-group>
<target state="translated">确认要删除数据 &lt;strong title="<x id="PH" equiv-text="apiInfo.name"/>"&gt;<x id="PH_1" equiv-text="apiInfo.name.length &gt; 50 ? apiInfo.name.slice(0, 50) + '...' : apiInfo.name"/>&lt;/strong&gt; 吗?删除后不可恢复!</target>
</trans-unit>
@ -1074,7 +1078,7 @@
<source>Add Group</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/group/tree/api-group-tree.component.ts</context>
<context context-type="linenumber">289</context>
<context context-type="linenumber">287</context>
</context-group>
<target state="translated">添加分组</target>
</trans-unit>
@ -1082,7 +1086,7 @@
<source>Add Subgroup</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/group/tree/api-group-tree.component.ts</context>
<context context-type="linenumber">298</context>
<context context-type="linenumber">296</context>
</context-group>
<target state="translated">添加子分组</target>
</trans-unit>
@ -1090,7 +1094,7 @@
<source>Edit Group</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/group/tree/api-group-tree.component.ts</context>
<context context-type="linenumber">307</context>
<context context-type="linenumber">305</context>
</context-group>
<target state="translated">编辑分组</target>
</trans-unit>
@ -1098,7 +1102,7 @@
<source>Delete Group</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/group/tree/api-group-tree.component.ts</context>
<context context-type="linenumber">316</context>
<context context-type="linenumber">314</context>
</context-group>
<target state="translated">删除分组</target>
</trans-unit>
@ -1126,9 +1130,7 @@
<context context-type="sourcefile">src/app/pages/api/mock/api-mock.component.html</context>
<context context-type="linenumber">20,21</context>
</context-group>
<target state="translated">
<x id="INTERPOLATION" equiv-text="{{ scope.createWay === 'system' ? '预览' : '编辑' }}"/>
</target>
<target state="translated"> <x id="INTERPOLATION" equiv-text="{{ scope.createWay === 'system' ? '预览' : '编辑' }}"/></target>
</trans-unit>
<trans-unit id="feacc7017fd641efba1aeb4883e42a352d9d5b6c" datatype="html">
<source>Are you sure you want to delete this Mock?</source>
@ -1166,7 +1168,7 @@
<source>Add</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/mock/api-mock.component.ts</context>
<context context-type="linenumber">30</context>
<context context-type="linenumber">28</context>
</context-group>
<target state="translated">添加</target>
</trans-unit>
@ -1174,7 +1176,7 @@
<source>Delete Succeeded</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/mock/api-mock.component.ts</context>
<context context-type="linenumber">236</context>
<context context-type="linenumber">224</context>
</context-group>
<target state="translated">删除成功</target>
</trans-unit>
@ -1246,7 +1248,7 @@
<source>Program will not close unsaved tabs</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/tab/api-tab-operate.service.ts</context>
<context context-type="linenumber">125</context>
<context context-type="linenumber">124</context>
</context-group>
<target state="translated">程序将不会关闭未保存的标签</target>
</trans-unit>
@ -1254,7 +1256,7 @@
<source> Close Other Tags (excluding current tabs) </source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/tab/api-tab.component.html</context>
<context context-type="linenumber">42,44</context>
<context context-type="linenumber">50,52</context>
</context-group>
<target state="translated"> 关闭其它标签(不包括当前标签) </target>
</trans-unit>
@ -1262,7 +1264,7 @@
<source>Close All Tabs</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/tab/api-tab.component.html</context>
<context context-type="linenumber">45</context>
<context context-type="linenumber">53</context>
</context-group>
<target state="translated">关闭所有标签</target>
</trans-unit>
@ -1270,7 +1272,7 @@
<source> Close Tabs To The Left </source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/tab/api-tab.component.html</context>
<context context-type="linenumber">46,48</context>
<context context-type="linenumber">54,56</context>
</context-group>
<target state="translated"> 关闭左侧标签页 </target>
</trans-unit>
@ -1278,7 +1280,7 @@
<source> Close Tabs to Right </source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/tab/api-tab.component.html</context>
<context context-type="linenumber">54,56</context>
<context context-type="linenumber">62,64</context>
</context-group>
<target state="translated"> 关闭右侧标签页 </target>
</trans-unit>
@ -1286,7 +1288,7 @@
<source>Do you want to save the changes?</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/tab/api-tab.component.ts</context>
<context context-type="linenumber">55</context>
<context context-type="linenumber">57</context>
</context-group>
<target state="translated">您要保存这些更改吗?</target>
</trans-unit>
@ -1294,7 +1296,7 @@
<source>Your changes will be lost if you don&apos;t save them.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/tab/api-tab.component.ts</context>
<context context-type="linenumber">56</context>
<context context-type="linenumber">58</context>
</context-group>
<target state="translated">如未保存,所有更改将会被丢弃。</target>
</trans-unit>
@ -1302,7 +1304,7 @@
<source>Save</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/tab/api-tab.component.ts</context>
<context context-type="linenumber">60</context>
<context context-type="linenumber">62</context>
</context-group>
<target state="translated">保存</target>
</trans-unit>
@ -1310,7 +1312,7 @@
<source>Don&apos;t Save</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/tab/api-tab.component.ts</context>
<context context-type="linenumber">69</context>
<context context-type="linenumber">71</context>
</context-group>
<target state="translated">放弃保存</target>
</trans-unit>
@ -1318,7 +1320,7 @@
<source>Cancel</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/tab/api-tab.component.ts</context>
<context context-type="linenumber">77</context>
<context context-type="linenumber">79</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/shared/services/modal.service.ts</context>
@ -1422,7 +1424,7 @@
<source>Tap or drag files directly to this area</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/test/body/api-test-body.component.html</context>
<context context-type="linenumber">48</context>
<context context-type="linenumber">45</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/shared/components/extension-select/extension-select.component.html</context>
@ -1442,7 +1444,7 @@
<source>File size must be less than 2M</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/test/body/api-test-body.component.ts</context>
<context context-type="linenumber">229</context>
<context context-type="linenumber">230</context>
</context-group>
<target state="translated">文件大小均需小于 2M</target>
</trans-unit>
@ -1479,16 +1481,20 @@
<target state="translated">无法预览非文本类型数据,您可以</target>
</trans-unit>
<trans-unit id="downloadResponse" datatype="html">
<source> download back result </source>
<source> download response </source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/test/result-response/api-test-result-response.component.html</context>
<context context-type="linenumber">27,29</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/test/result-response/api-test-result-response.component.html</context>
<context context-type="linenumber">39,41</context>
<context context-type="linenumber">37</context>
</context-group>
<target state="translated"> 下载返回结果 </target>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/test/result-response/api-test-result-response.component.html</context>
<context context-type="linenumber">44,46</context>
</context-group>
<target state="translated"> 下载返回值 </target>
</trans-unit>
<trans-unit id="babf7797e8c3c322f80eed6d34d4fe93a97382a1" datatype="html">
<source>and open it with other programs.</source>
@ -1502,7 +1508,7 @@
<source>The response result exceeds the previewable size, you can</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/api/test/result-response/api-test-result-response.component.html</context>
<context context-type="linenumber">37</context>
<context context-type="linenumber">42</context>
</context-group>
<target state="translated">响应结果超过了预览大小,您可以</target>
</trans-unit>
@ -1674,8 +1680,8 @@
</context-group>
<target state="translated"><x id="START_TAG_SPAN" ctype="x-span" equiv-text="&lt;span class=&quot;flex items-center delete-icon&quot;&gt;"/><x id="START_TAG_EO_ICONPARK_ICON" ctype="x-eo_iconpark_icon" equiv-text="&lt;eo-iconpark-icon name=&quot;down-two&quot; size=&quot;14px&quot;&gt;"/><x id="CLOSE_TAG_EO_ICONPARK_ICON" ctype="x-eo_iconpark_icon" equiv-text="&lt;/eo-iconpark-icon&gt;"/><x id="CLOSE_TAG_SPAN" ctype="x-span" equiv-text="&lt;/span&gt;"/><x id="START_TAG_SPAN_1" ctype="x-span_1" equiv-text="&lt;span class=&quot;ml-1&quot;&gt;"/>下载<x id="CLOSE_TAG_SPAN" ctype="x-span" equiv-text="&lt;/span&gt;"/></target>
</trans-unit>
<trans-unit id="d09850d82a18a9f685aa351663a129bf41c11954" datatype="html">
<source>Current data storage exists<x id="INTERPOLATION" equiv-text="{{ dataSourceText }}"/>,please switch if you want to collaborate</source>
<trans-unit id="8c89155c41939de52bf344aaf2beba0566be31ad" datatype="html">
<source>Current data storage exists <x id="INTERPOLATION" equiv-text="{{ dataSourceText }}"/>,please switch if you want to collaborate</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/pages/pages.component.html</context>
<context context-type="linenumber">6</context>
@ -3082,7 +3088,7 @@
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/shared/components/setting/setting.component.ts</context>
<context context-type="linenumber">100</context>
<context context-type="linenumber">101</context>
</context-group>
<target state="translated">数据源</target>
</trans-unit>
@ -3222,9 +3228,7 @@
<context context-type="sourcefile">src/app/shared/components/setting/common/extensions.component.ts</context>
<context context-type="linenumber">40,42</context>
</context-group>
<target state="translated">
<x id="INTERPOLATION" equiv-text="{{ module.properties[field]?.placeholder ?? '请输入 ' + module.properties[field]?.label }}"/>
</target>
<target state="translated"><x id="INTERPOLATION" equiv-text="{{ module.properties[field]?.placeholder ?? '请输入 ' + module.properties[field]?.label }}"/></target>
</trans-unit>
<trans-unit id="e0d1ece694da029a20f5a97fbf3302f6213da891" datatype="html">
<source>No plugins are currently installed,<x id="START_LINK" ctype="x-a" equiv-text="&lt;a class=&quot;eo_link&quot; (click)=&quot;navToExtensionList()&quot;&gt;"/> go to install <x id="CLOSE_LINK" ctype="x-a" equiv-text="&lt;/a&gt;"/></source>
@ -3246,7 +3250,7 @@
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/shared/components/setting/setting.component.ts</context>
<context context-type="linenumber">104</context>
<context context-type="linenumber">105</context>
</context-group>
<target state="translated">语言</target>
</trans-unit>
@ -3254,7 +3258,7 @@
<source>Extensions</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/shared/components/setting/setting.component.ts</context>
<context context-type="linenumber">108</context>
<context context-type="linenumber">109</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/shared/components/sidebar/sidebar.component.ts</context>
@ -3266,7 +3270,7 @@
<source>About</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/shared/components/setting/setting.component.ts</context>
<context context-type="linenumber">112</context>
<context context-type="linenumber">113</context>
</context-group>
<target state="translated">关于</target>
</trans-unit>
@ -3346,7 +3350,7 @@
<source>Default Mock</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/shared/services/storage/IndexedDB/lib/index.ts</context>
<context context-type="linenumber">65</context>
<context context-type="linenumber">87</context>
</context-group>
<target state="translated">默认 Mock</target>
</trans-unit>