Download web/utils/app-redirection.ts from Underground-Digital/Workflow-Engine: direct link, hf CLI and curl.
- Browser
- Download file 409 Bytes
-
https://huggingface.co/spaces/Underground-Digital/Workflow-Engine/resolve/main/web/utils/app-redirection.ts
- Command line
-
hf download hf://spaces/Underground-Digital/Workflow-Engine/web/utils/app-redirection.ts
-
curl -L -o app-redirection.ts https://huggingface.co/spaces/Underground-Digital/Workflow-Engine/resolve/main/web/utils/app-redirection.ts
409 Bytes
| export const getRedirection = ( | |
| isCurrentWorkspaceEditor: boolean, | |
| app: any, | |
| redirectionFunc: (href: string) => void, | |
| ) => { | |
| if (!isCurrentWorkspaceEditor) { | |
| redirectionFunc(`/app/${app.id}/overview`) | |
| } | |
| else { | |
| if (app.mode === 'workflow' || app.mode === 'advanced-chat') | |
| redirectionFunc(`/app/${app.id}/workflow`) | |
| else | |
| redirectionFunc(`/app/${app.id}/configuration`) | |
| } | |
| } | |