mirror of
https://gitee.com/eolink_admin/postcat.git
synced 2024-12-02 19:57:45 +08:00
feat: hide app module
This commit is contained in:
parent
d5960800f7
commit
19f2f15698
@ -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",
|
||||
|
@ -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",
|
||||
|
@ -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());
|
||||
|
@ -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",
|
||||
|
@ -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()" > {{ item.moduleName }} </span>
|
||||
<!-- <span (click)="openApp(item.moduleID)" *ngFor="let item of getModules()" > {{ item.moduleName }} </span> -->
|
||||
<span class="help mr10" nz-dropdown (nzVisibleChange)="changeHelpVisible($event)" [nzDropdownMenu]="menu">
|
||||
<i nz-icon nzType="question-circle" nzTheme="outline"></i>
|
||||
</span>
|
||||
|
@ -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>
|
||||
|
@ -52,4 +52,7 @@ ol, ul {
|
||||
}
|
||||
.fg1{
|
||||
flex: 1;
|
||||
}
|
||||
.mr10{
|
||||
margin-right: 10px;
|
||||
}
|
Loading…
Reference in New Issue
Block a user