1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Adding WelcomePage catalog entity

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2021-09-02 16:22:14 +03:00
parent c4c5a18e9e
commit 2705519932

View File

@ -21,7 +21,7 @@
import { observable } from "mobx"; import { observable } from "mobx";
import { GeneralEntity } from "../../common/catalog-entities/general"; import { GeneralEntity } from "../../common/catalog-entities/general";
import { catalogURL, preferencesURL } from "../../common/routes"; import { catalogURL, preferencesURL, welcomeURL } from "../../common/routes";
import { catalogEntityRegistry } from "../catalog"; import { catalogEntityRegistry } from "../catalog";
export const catalogEntity = new GeneralEntity({ export const catalogEntity = new GeneralEntity({
@ -62,9 +62,29 @@ const preferencesEntity = new GeneralEntity({
} }
}); });
const welcomePageEntity = new GeneralEntity({
metadata: {
uid: "welcome-page-entity",
name: "Welcome Page",
source: "app",
labels: {}
},
spec: {
path: welcomeURL(),
icon: {
material: "meeting_room",
background: "#3d90ce"
}
},
status: {
phase: "active",
}
});
const generalEntities = observable([ const generalEntities = observable([
catalogEntity, catalogEntity,
preferencesEntity preferencesEntity,
welcomePageEntity
]); ]);
export function syncGeneralEntities() { export function syncGeneralEntities() {