mirror of
https://github.com/langgenius/dify.git
synced 2026-07-23 20:18:40 +08:00
Co-authored-by: hjlarry <hjlarry@163.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: yyh <yuanyouhuilyz@gmail.com> Co-authored-by: yyh <92089059+lyzno1@users.noreply.github.com>
45 lines
1.5 KiB
TypeScript
45 lines
1.5 KiB
TypeScript
import type { StepByStepTourTaskDefinition } from './types'
|
|
import { buildIntegrationPath } from '@/app/components/integrations/routes'
|
|
import { STEP_BY_STEP_TOUR_TARGETS } from './target-registry'
|
|
|
|
export const STEP_BY_STEP_TOUR_TASKS = [
|
|
{
|
|
id: 'home',
|
|
route: '/',
|
|
target: STEP_BY_STEP_TOUR_TARGETS.home,
|
|
iconClassName: 'i-custom-vender-line-education-book-open-01',
|
|
fallbackTarget: STEP_BY_STEP_TOUR_TARGETS.home,
|
|
learnMoreDocPath: '/use-dify/getting-started/introduction',
|
|
canClickThrough: true,
|
|
},
|
|
{
|
|
id: 'studio',
|
|
route: '/apps',
|
|
target: STEP_BY_STEP_TOUR_TARGETS.studio,
|
|
iconClassName: 'i-custom-vender-main-nav-studio',
|
|
fallbackTarget: STEP_BY_STEP_TOUR_TARGETS.studio,
|
|
learnMoreDocPath: '/use-dify/workspace/app-management',
|
|
canClickThrough: true,
|
|
},
|
|
{
|
|
id: 'knowledge',
|
|
route: '/datasets',
|
|
target: STEP_BY_STEP_TOUR_TARGETS.knowledge,
|
|
iconClassName: 'i-custom-vender-main-nav-knowledge',
|
|
fallbackTarget: STEP_BY_STEP_TOUR_TARGETS.knowledge,
|
|
learnMoreDocPath: undefined,
|
|
canClickThrough: true,
|
|
permissionFallback: 'show-disabled-reason',
|
|
},
|
|
{
|
|
id: 'integration',
|
|
route: buildIntegrationPath('provider'),
|
|
target: STEP_BY_STEP_TOUR_TARGETS.integration,
|
|
iconClassName: 'i-custom-vender-main-nav-integrations',
|
|
fallbackTarget: STEP_BY_STEP_TOUR_TARGETS.integration,
|
|
learnMoreDocPath: '/use-dify/workspace/plugins',
|
|
canClickThrough: true,
|
|
permissionFallback: 'show-disabled-reason',
|
|
},
|
|
] as const satisfies readonly StepByStepTourTaskDefinition[]
|