Skip to content

Commit 6a2018b

Browse files
committed
style(lesy-pilot-ui): style projects screen
1 parent 59abb71 commit 6a2018b

File tree

5 files changed

+22
-12
lines changed

5 files changed

+22
-12
lines changed

packages/misc/pilot-ui/src/app/components/header/header.template.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
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
@@ -17,7 +17,7 @@
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"

packages/misc/pilot-ui/src/app/pages/config/config.template.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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">
Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
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>

packages/plugins/lesy-plugin-pilot/src/models.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export interface LesyWorkSpace {
2-
[key: string]: string;
2+
[key: string]: any;
33
}
44

55
export interface SocketInputData {

packages/plugins/lesy-plugin-pilot/src/pilot.command.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)