feat: hide app module

This commit is contained in:
scarqin 2022-04-21 14:19:59 +08:00
parent d5960800f7
commit 19f2f15698
7 changed files with 11 additions and 8 deletions

View File

@ -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",

View File

@ -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",

View File

@ -38,7 +38,7 @@ export class ModalService {
onClick: () =>{
setTimeout(() => {
window.eo.closeModal();
}, 123);
}, 100);
modal.destroy();
}
},
@ -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());

View File

@ -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",

View File

@ -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>

View File

@ -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>

View File

@ -52,4 +52,7 @@ ol, ul {
}
.fg1{
flex: 1;
}
.mr10{
margin-right: 10px;
}