File tree Expand file tree Collapse file tree 5 files changed +22
-12
lines changed
plugins/lesy-plugin-pilot/src Expand file tree Collapse file tree 5 files changed +22
-12
lines changed Original file line number Diff line number Diff line change 44>
55 < div class ="container mx-auto ">
66 < div class ="flex flex-wrap items-center ">
7- < div class ="w-full sm:w-1/3 flex items-center p-5 sm:p-0 justify-center ">
7+ < div class ="w-full sm:w-1/3 flex items-center p-5 sm:p-0 justify-start ">
88 < i class ="ri-dashboard-line mr-3 text-xl text-violet "> </ i >
99 < a class ="font-semibold text-gray-700 " href ="# "
1010 > {{ config.pilot.appName }}</ a
1717 < div
1818 class ="w-full sm:w-2/3 flex justify-even sm:justify-end bg-gray-200 sticky top-0 sm:bg-transparent "
1919 >
20- < ul class ="flex w-full sm:w-auto justify-between items-center ">
20+ < ul class ="flex w-full sm:w-auto justify-between items-center ">
2121 < li
2222 *ngFor ="let menuItem of menuItems "
2323 routerLinkActive ="active "
Original file line number Diff line number Diff line change 11< div class ="container mx-auto ">
22 < div *ngIf ="config ">
33 < div class ="w-full sm:w-2/3 mx-auto px-6 sm:px-0 ">
4- < h1 class ="font-bold font-diplay text-2xl text-vio-900 ">
4+ < h1 class ="font-bold font-display text-2xl text-vio-900 ">
55 Configurations
66 </ h1 >
77 < div class ="bg-white shadow-md rounded my-6 ">
Original file line number Diff line number Diff line change 1- < div class ="w-full sm:w-2/3 mx-auto px-6 sm:px-0 ">
2- < div
3- *ngFor ="let project of (projects$|async) "
4- class ="p-3 "
5- (click) ="switchProject(project) "
6- >
7- {{project.name}}
1+ < div class ="container mx-auto ">
2+ < div class ="w-full sm:w-2/3 mx-auto px-6 sm:px-0 ">
3+ < h1 class ="font-bold font-display text-3xl text-vio-900 my-8 ">
4+ Projects
5+ </ h1 >
6+ < div
7+ *ngFor ="let project of (projects$|async) "
8+ class ="m-3 cursor-pointer p-5 bg-gray-200 rounded-lg text-gray-900 inline-flex items-center hover:bg-gray-300 leading-none "
9+ (click) ="switchProject(project) "
10+ >
11+ < i class ="ri-folder-5-line mr-3 text-xl font-medium "> </ i >
12+ < span > {{project.name}}</ span >
13+ < span class ="opacity-50 ml-3 text-sm "> v{{project.version}}</ span >
14+ </ div >
815 </ div >
916</ div >
Original file line number Diff line number Diff line change 11export interface LesyWorkSpace {
2- [ key : string ] : string ;
2+ [ key : string ] : any ;
33}
44
55export interface SocketInputData {
Original file line number Diff line number Diff line change @@ -79,7 +79,10 @@ export default class PilotCommand {
7979
8080 private getAllProjects ( ) : any [ ] {
8181 const projectNames = Object . keys ( global . lesyWorkspace ) ;
82- return projectNames . map ( ( name : string ) => ( { name } ) ) ;
82+ return projectNames . map ( ( key : string ) => {
83+ const details = global . lesyWorkspace [ key ] . feature . pkg ;
84+ return details ;
85+ } ) ;
8386 }
8487
8588 private switchProject ( name : string ) : void {
You can’t perform that action at this time.
0 commit comments