feat(mobile): mobile index page UI (#7959)

This commit is contained in:
CatsJuice
2024-08-29 06:09:46 +00:00
parent f37051dc87
commit db76780bc9
47 changed files with 1404 additions and 84 deletions

View File

@@ -7,12 +7,14 @@ export enum WorkspaceSubPath {
ALL = 'all',
TRASH = 'trash',
SHARED = 'shared',
HOME = 'home',
}
export const WorkspaceSubPathName = {
[WorkspaceSubPath.ALL]: 'All Pages',
[WorkspaceSubPath.TRASH]: 'Trash',
[WorkspaceSubPath.SHARED]: 'Shared',
[WorkspaceSubPath.HOME]: 'Home',
} satisfies {
[Path in WorkspaceSubPath]: string;
};
@@ -21,6 +23,7 @@ export const pathGenerator = {
all: workspaceId => `/workspace/${workspaceId}/all`,
trash: workspaceId => `/workspace/${workspaceId}/trash`,
shared: workspaceId => `/workspace/${workspaceId}/shared`,
home: workspaceId => `/workspace/${workspaceId}/home`,
} satisfies {
[Path in WorkspaceSubPath]: (workspaceId: string) => string;
};