Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

1019 B
Raw Blame
import type { SlashCommand } from './types'

/**
 * Account command - Navigates to account page
 */
export const accountCommand: SlashCommand = {
  name: 'account',
  description: 'Navigate to account page',
  mode: 'direct',

  execute: (_args, context) => context.navigate('/account'),

  search(args: string, context) {
    return [
      {
        id: 'account',
        title: context.t(($) => $['account.account'], {
          ns: 'accountSettings',
          lng: context.locale,
        }),
        description: context.t(($) => $['gotoAnything.actions.accountDesc'], {
          ns: 'app',
          lng: context.locale,
        }),
        type: 'command' as const,
        icon: (
          <div className="flex h-6 w-6 items-center justify-center rounded-md border-[0.5px] border-divider-regular bg-components-panel-bg">
            <span aria-hidden className="i-ri-user-3-line size-4 text-text-tertiary" />
          </div>
        ),
        data: { command: 'account', args: {} },
      },
    ]
  },
}