mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
feat(mobile): mobile index page UI (#7959)
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user