This commit is contained in:
Rizky
2024-02-15 06:45:53 +07:00
parent 7e3134d5c0
commit 81fa96ec5b
2 changed files with 27 additions and 11 deletions
+10 -8
View File
@@ -14,6 +14,14 @@ type SingleRoute = {
path: string;
};
export type SinglePage = {
id: string;
url: string;
name: true;
content_tree: any;
is_default_layout: true;
}
type PrasiServer = {
ws?: WebSocketHandler<{ url: string }>;
http: (arg: {
@@ -67,14 +75,8 @@ export const g = global as unknown as {
{ id: string; url: string; name: true; content_tree: any }
>;
gz: null | {
layouts: {
id: string;
url: string;
name: true;
content_tree: any;
is_default_layout: true;
}[];
pages: { id: string; url: string; name: true; content_tree: any }[];
layouts: SinglePage[];
pages: SinglePage[];
site: {};
comps: { id: string; content_tree: true }[];
code: {