Skip to content

Commit

Permalink
feat: v1.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
scarqin committed Sep 9, 2022
1 parent 7001b43 commit 32f5fb5
Show file tree
Hide file tree
Showing 5 changed files with 97 additions and 208 deletions.
145 changes: 1 addition & 144 deletions src/workbench/browser/angular.json
Original file line number Diff line number Diff line change
@@ -1,144 +1 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"cli": { "analytics": false, "defaultCollection": "@angular-eslint/schematics" },
"version": 1,
"newProjectRoot": "projects",
"projects": {
"eoapi": {
"root": "",
"i18n": {
"sourceLocale": { "code": "en", "baseHref": "" },
"locales": { "zh": { "translation": "src/locale/messages.zh.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/monaco-editor/min/vs", "output": "/assets/vs/" }
],
"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",
"src/assets/libs/protocolcheck.js"
],
"customWebpackConfig": { "path": "./angular.webpack.js", "replaceDuplicatePlugins": true },
"allowedCommonJsDependencies": ["brace", "qs", "rxjs"]
},
"configurations": {
"dev": {
"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.dev.ts" }
]
},
"devCn": {
"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.dev.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" },
"devCn": { "browserTarget": "eoapi:build:devCn" },
"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.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/monaco-editor/min/vs","output":"/assets/vs/"}],"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","src/assets/libs/protocolcheck.js"],"customWebpackConfig":{"path":"./angular.webpack.js","replaceDuplicatePlugins":true},"allowedCommonJsDependencies":["brace","qs","rxjs"]},"configurations":{"dev":{"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.dev.ts"}]},"devCn":{"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.dev.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"},"devCn":{"browserTarget":"eoapi:build:devCn"},"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"}}}
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@
</div>
<span class="font-bold text-[14px]">{{ extensionDetail.moduleName }}</span>
<ng-container *ngIf="extensionDetail?.installed">
<nz-switch [(ngModel)]="isEnable" nzSize="small" class="ml-2.5"
(ngModelChange)="handleEnableExtension($event)">
<nz-switch
[(ngModel)]="isEnable"
nzSize="small"
class="ml-2.5"
(ngModelChange)="handleEnableExtension($event)"
>
</nz-switch>
</ng-container>
</div>
Expand All @@ -22,23 +26,36 @@
<section class="h-full px-4 max-w-[80vw] mx-auto flex flex-col">
<p class="w-full text-[#888] text-[12px]">{{ extensionDetail.description }}</p>
<div>
<button nz-button [nzSize]="extensionDetail?.installed ? 'small' :'default'"
[nzType]="extensionDetail?.installed ? 'default': 'primary'" class="mt-[8px]" [nzLoading]="isOperating"
(click)="handleInstall()" i18n>
{{extensionDetail?.installed ? 'Uninstall' : 'Install'}}
<button
nz-button
[nzSize]="extensionDetail?.installed ? 'small' : 'default'"
[nzType]="extensionDetail?.installed ? 'default' : 'primary'"
class="mt-[8px]"
[nzLoading]="isOperating"
(click)="handleInstall()"
>
<span *ngIf="extensionDetail?.installed" i18n>Uninstall</span>
<span *ngIf="!extensionDetail?.installed" i18n>Install</span>
</button>
</div>

<nz-tabset [(nzSelectedIndex)]="nzSelectedIndex" [nzAnimated]="false"
[class]="{settings: nzSelectedIndex === 0 && extensionDetail?.features?.configuration}"
(nzSelectChange)="handleTabChange($event)">
<nz-tabset
[(nzSelectedIndex)]="nzSelectedIndex"
[nzAnimated]="false"
[class]="{ settings: nzSelectedIndex === 0 && extensionDetail?.features?.configuration }"
(nzSelectChange)="handleTabChange($event)"
>
<!-- Setting -->
<nz-tab *ngIf="extensionDetail?.features?.configuration && extensionDetail?.installed" i18n-nzTitle nzTitle="Settings">
<nz-tab
*ngIf="extensionDetail?.features?.configuration && extensionDetail?.installed"
i18n-nzTitle
nzTitle="Settings"
>
<eo-extension-setting [configuration]="extensionDetail?.features?.configuration"></eo-extension-setting>
</nz-tab>
<!-- Details -->
<nz-tab i18n-nzTitle="@@ExtensionDetail" nzTitle="Details">
<div class="h-full overflow-auto">
<div class="h-full overflow-auto preview_tab">
<nz-skeleton [nzLoading]="introLoading" [nzActive]="true">
<eo-shadow-dom class="md-preview" [text]="extensionDetail.introduction" [options]="{ html: true }">
</eo-shadow-dom>
Expand All @@ -58,7 +75,7 @@
<a [href]="extensionDetail.homepage" target="_blank">{{ extensionDetail.homepage }}</a>
</nz-descriptions-item>
<nz-descriptions-item *ngIf="extensionDetail.bugs?.url" i18n-nzTitle nzTitle="BugReport">
<a [href]="extensionDetail.bugs.url" target="_blank">{{extensionDetail.bugs.url }}</a>
<a [href]="extensionDetail.bugs.url" target="_blank">{{ extensionDetail.bugs.url }}</a>
</nz-descriptions-item>
</nz-descriptions>
</nz-tab>
Expand All @@ -67,22 +84,24 @@
<p>All notable changes to this project will be documented in this file.</p>
<h2>[12.0.1] - 2022-03-03</h2> -->
<!-- !show be markdown preview -->
<nz-skeleton [nzLoading]="changelogLoading" [nzActive]="true">
<eo-shadow-dom class="md-preview" [text]="changeLog">
</eo-shadow-dom>
<nz-skeleton class="preview_tab" [nzLoading]="changelogLoading" [nzActive]="true">
<eo-shadow-dom class="md-preview" [text]="changeLog"> </eo-shadow-dom>
</nz-skeleton>
</nz-tab>
</nz-tabset>
</section>
</div>

<nz-modal [(nzVisible)]="isVisible" i18n-nzTitle nzTitle="Eoapi Client is required to install this extension." [nzOkText]="null"
(nzOnCancel)="handleOk()">
<nz-modal
[(nzVisible)]="isVisible"
i18n-nzTitle
nzTitle="Eoapi Client is required to install this extension."
[nzOkText]="null"
(nzOnCancel)="handleOk()"
>
<ng-container *nzModalContent>
<span i18n>Don't have Eoapi Client?</span>
<a nz-button nzType="link" nz-dropdown [nzDropdownMenu]="download" i18n>
Download
</a>.
<a nz-button nzType="link" nz-dropdown [nzDropdownMenu]="download" i18n> Download </a>.
<nz-dropdown-menu #download="nzDropdownMenu">
<ul nz-menu>
<ng-container *ngFor="let item of resourceInfo; let index = index">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
color: #333;
padding: 10px 0;
}
.ant-tabs-tabpane {
.preview_tab {
@apply w-4/5 m-auto;
}
}
Expand Down
Loading

0 comments on commit 32f5fb5

Please sign in to comment.