Skip to content

Commit

Permalink
fix: build error and refactor comments
Browse files Browse the repository at this point in the history
  • Loading branch information
scarqin committed May 10, 2022
1 parent 95fe500 commit a453ed7
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/workbench/browser/src/app/pages/pages.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { SidebarService } from '../shared/components/sidebar/sidebar.service';
})
export class PagesComponent implements OnInit {
loadedIframe = false;
constructor(private cdRef: ChangeDetectorRef, private sidebar: SidebarService) {}
constructor(private cdRef: ChangeDetectorRef, public sidebar: SidebarService) {}
ngOnInit(): void {
this.watchSidebarItemChange();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,28 @@
* Sidebar offical module
*/
export interface SidebarModuleInfo {
// app
name: string;
//icon or logo image
logo:string;
// 模块ID,用于关联
/**
* icon or logo image
**/
logo: string;
/**
* unique extension id
**/
moduleID: string;
// 模块名称,用于显示
/**
* showname
**/
moduleName: string;
//is offcial app
/**
* is offcial app
**/
isOffical: boolean;
// module route
/**
* module route,click sidebar will navigate this route
**/
route: string;
// route active when match string
/**
* sidebar active when match activeRoute
**/
activeRoute: string;
}

0 comments on commit a453ed7

Please sign in to comment.