mirror of
https://github.com/langgenius/dify.git
synced 2026-05-13 08:57:28 +08:00
- add the integrations page sidebar with collapsible icon-only navigation and Figma-aligned marketplace card - move custom integration SVGs into the iconify collection and document the Tailwind i-custom workflow - preserve source SVG collection dimensions when flattening generated icon data so existing main nav icons keep their 20x20 viewBox - add an icon dimension guard for layout-sensitive generated icons - update model provider routing, i18n, and focused frontend tests
18 lines
665 B
TypeScript
18 lines
665 B
TypeScript
import type { AccountSettingTab } from './constants'
|
|
import { ACCOUNT_SETTING_TAB } from './constants'
|
|
|
|
export const movedAccountSettingDestinations: Partial<Record<AccountSettingTab, string>> = {
|
|
[ACCOUNT_SETTING_TAB.PROVIDER]: '/tools?section=provider',
|
|
[ACCOUNT_SETTING_TAB.DATA_SOURCE]: '/tools?section=data-source',
|
|
[ACCOUNT_SETTING_TAB.API_BASED_EXTENSION]: '/tools?section=api-based-extension',
|
|
}
|
|
|
|
export const enableMovedAccountSettingDestinations = true
|
|
|
|
export const getMovedAccountSettingDestination = (tab: AccountSettingTab) => {
|
|
if (!enableMovedAccountSettingDestinations)
|
|
return undefined
|
|
|
|
return movedAccountSettingDestinations[tab]
|
|
}
|