Skip to content

Commit

Permalink
feat: hide app module
Browse files Browse the repository at this point in the history
  • Loading branch information
scarqin committed Apr 21, 2022
1 parent d596080 commit 19f2f15
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eoapi",
"version": "0.0.2-beta",
"version": "0.0.3-beta",
"main": "src/app/electron-main/main.js",
"description": "A lightweight, extensible API tool",
"homepage": "https://github.com/eolinker/eoapi.git",
Expand Down
2 changes: 1 addition & 1 deletion src/core/api-manager/browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "API Manager",
"author": "eoapi",
"moduleID": "default",
"moduleName": "API Manager",
"moduleName": "API",
"moduleType": "app",
"logo": "icon-link",
"main": "dist/index.html",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class ModalService {
onClick: () =>{
setTimeout(() => {
window.eo.closeModal();
}, 123);
}, 100);
modal.destroy();
}
},
Expand All @@ -47,7 +47,7 @@ export class ModalService {
Object.assign(modalOpts, inOpts);
setTimeout(() => {
window.eo.openModal();
}, 123);
}, 120);
const modal = this.modalService.create(modalOpts);
//modal.afterOpen.subscribe(() => window.eo.openModal());
//modal.afterClose.subscribe(() => window.eo.closeModal());
Expand Down
2 changes: 1 addition & 1 deletion src/core/market/browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"logo": "icon-apps",
"main_debug": "http://localhost:8080",
"moduleID": "market",
"moduleName": "Market",
"moduleName": "插件广场",
"moduleType": "app",
"scripts": {
"serve": "vue-cli-service serve",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="eo_navbar f_row f_js_ac">
<img class="logo" src="assets/images/logo.svg" />
<div class="can_be_click f_row_ac right_btn_container">
<span (click)="openApp(item.moduleID)" *ngFor="let item of getModules()" >&nbsp;{{ item.moduleName }}&nbsp;</span>
<!-- <span (click)="openApp(item.moduleID)" *ngFor="let item of getModules()" >&nbsp;{{ item.moduleName }}&nbsp;</span> -->
<span class="help mr10" nz-dropdown (nzVisibleChange)="changeHelpVisible($event)" [nzDropdownMenu]="menu">
<i nz-icon nzType="question-circle" nzTheme="outline"></i>
</span>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<div class="eo_sidebar" [ngClass]="{ eo_sidebar_shrink: isCollapsed }">
<a (click)="openApp(item.moduleID)" *ngFor="let item of getModules()">
<div nz-tooltip (nzTooltipVisibleChange)="tooltipVisibleChange($event)" [nzTooltipTitle]="isCollapsed ? item.moduleName : ''" class="sidebar_item" [ngClass]="{sidebar_item_active:item.moduleID===this.moduleID}">
<div nz-tooltip (nzTooltipVisibleChange)="tooltipVisibleChange($event)" [nzTooltipTitle]="item.moduleName" class="sidebar_item" [ngClass]="{sidebar_item_active:item.moduleID===this.moduleID}">
<span *ngIf="item.logo.includes('icon-')" class="iconfont fs28" [ngClass]="item.logo" ></span>
<img *ngIf="!item.logo.includes('icon-')"[src]="item.logo" />
<span *ngIf="!isCollapsed">{{ item.moduleName }}</span>
<!-- <span *ngIf="!isCollapsed">{{ item.moduleName }}</span> -->
</div>
</a>
</div>
3 changes: 3 additions & 0 deletions src/workbench/browser/src/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,7 @@ ol, ul {
}
.fg1{
flex: 1;
}
.mr10{
margin-right: 10px;
}

0 comments on commit 19f2f15

Please sign in to comment.