mirror of
https://github.com/langgenius/dify.git
synced 2026-05-03 00:48:04 +08:00
Merge branch 'refs/heads/origin-main' into feat/end-user-oauth
This commit is contained in:
@ -12,7 +12,7 @@ RUN apk add --no-cache tzdata
|
||||
RUN corepack enable
|
||||
ENV PNPM_HOME="/pnpm"
|
||||
ENV PATH="$PNPM_HOME:$PATH"
|
||||
ENV NEXT_PUBLIC_BASE_PATH=
|
||||
ENV NEXT_PUBLIC_BASE_PATH=""
|
||||
|
||||
|
||||
# install packages
|
||||
@ -20,8 +20,7 @@ FROM base AS packages
|
||||
|
||||
WORKDIR /app/web
|
||||
|
||||
COPY package.json .
|
||||
COPY pnpm-lock.yaml .
|
||||
COPY package.json pnpm-lock.yaml /app/web/
|
||||
|
||||
# Use packageManager from package.json
|
||||
RUN corepack install
|
||||
@ -57,24 +56,30 @@ ENV TZ=UTC
|
||||
RUN ln -s /usr/share/zoneinfo/${TZ} /etc/localtime \
|
||||
&& echo ${TZ} > /etc/timezone
|
||||
|
||||
# global runtime packages
|
||||
RUN pnpm add -g pm2
|
||||
|
||||
|
||||
# Create non-root user
|
||||
ARG dify_uid=1001
|
||||
RUN addgroup -S -g ${dify_uid} dify && \
|
||||
adduser -S -u ${dify_uid} -G dify -s /bin/ash -h /home/dify dify && \
|
||||
mkdir /app && \
|
||||
mkdir /.pm2 && \
|
||||
chown -R dify:dify /app /.pm2
|
||||
|
||||
|
||||
WORKDIR /app/web
|
||||
COPY --from=builder /app/web/public ./public
|
||||
COPY --from=builder /app/web/.next/standalone ./
|
||||
COPY --from=builder /app/web/.next/static ./.next/static
|
||||
|
||||
COPY docker/entrypoint.sh ./entrypoint.sh
|
||||
COPY --from=builder --chown=dify:dify /app/web/public ./public
|
||||
COPY --from=builder --chown=dify:dify /app/web/.next/standalone ./
|
||||
COPY --from=builder --chown=dify:dify /app/web/.next/static ./.next/static
|
||||
|
||||
|
||||
# global runtime packages
|
||||
RUN pnpm add -g pm2 \
|
||||
&& mkdir /.pm2 \
|
||||
&& chown -R 1001:0 /.pm2 /app/web \
|
||||
&& chmod -R g=u /.pm2 /app/web
|
||||
COPY --chown=dify:dify --chmod=755 docker/entrypoint.sh ./entrypoint.sh
|
||||
|
||||
ARG COMMIT_SHA
|
||||
ENV COMMIT_SHA=${COMMIT_SHA}
|
||||
|
||||
USER 1001
|
||||
USER dify
|
||||
EXPOSE 3000
|
||||
ENTRYPOINT ["/bin/sh", "./entrypoint.sh"]
|
||||
|
||||
@ -70,11 +70,12 @@ export class SlashCommandRegistry {
|
||||
|
||||
// First check if any alias starts with this
|
||||
const aliasMatch = this.findHandlerByAliasPrefix(lowerPartial)
|
||||
if (aliasMatch)
|
||||
if (aliasMatch && this.isCommandAvailable(aliasMatch))
|
||||
return aliasMatch
|
||||
|
||||
// Then check if command name starts with this
|
||||
return this.findHandlerByNamePrefix(lowerPartial)
|
||||
const nameMatch = this.findHandlerByNamePrefix(lowerPartial)
|
||||
return nameMatch && this.isCommandAvailable(nameMatch) ? nameMatch : undefined
|
||||
}
|
||||
|
||||
/**
|
||||
@ -108,6 +109,14 @@ export class SlashCommandRegistry {
|
||||
return Array.from(uniqueCommands.values())
|
||||
}
|
||||
|
||||
/**
|
||||
* Get all available commands in current context (deduplicated and filtered)
|
||||
* Commands without isAvailable method are considered always available
|
||||
*/
|
||||
getAvailableCommands(): SlashCommandHandler[] {
|
||||
return this.getAllCommands().filter(handler => this.isCommandAvailable(handler))
|
||||
}
|
||||
|
||||
/**
|
||||
* Search commands
|
||||
* @param query Full query (e.g., "/theme dark" or "/lang en")
|
||||
@ -128,7 +137,7 @@ export class SlashCommandRegistry {
|
||||
|
||||
// First try exact match
|
||||
let handler = this.findCommand(commandName)
|
||||
if (handler) {
|
||||
if (handler && this.isCommandAvailable(handler)) {
|
||||
try {
|
||||
return await handler.search(args, locale)
|
||||
}
|
||||
@ -140,7 +149,7 @@ export class SlashCommandRegistry {
|
||||
|
||||
// If no exact match, try smart partial matching
|
||||
handler = this.findBestPartialMatch(commandName)
|
||||
if (handler) {
|
||||
if (handler && this.isCommandAvailable(handler)) {
|
||||
try {
|
||||
return await handler.search(args, locale)
|
||||
}
|
||||
@ -156,35 +165,30 @@ export class SlashCommandRegistry {
|
||||
|
||||
/**
|
||||
* Get root level command list
|
||||
* Only shows commands that are available in current context
|
||||
*/
|
||||
private async getRootCommands(): Promise<CommandSearchResult[]> {
|
||||
const results: CommandSearchResult[] = []
|
||||
|
||||
// Generate a root level item for each command
|
||||
for (const handler of this.getAllCommands()) {
|
||||
results.push({
|
||||
id: `root-${handler.name}`,
|
||||
title: `/${handler.name}`,
|
||||
description: handler.description,
|
||||
type: 'command' as const,
|
||||
data: {
|
||||
command: `root.${handler.name}`,
|
||||
args: { name: handler.name },
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
return results
|
||||
return this.getAvailableCommands().map(handler => ({
|
||||
id: `root-${handler.name}`,
|
||||
title: `/${handler.name}`,
|
||||
description: handler.description,
|
||||
type: 'command' as const,
|
||||
data: {
|
||||
command: `root.${handler.name}`,
|
||||
args: { name: handler.name },
|
||||
},
|
||||
}))
|
||||
}
|
||||
|
||||
/**
|
||||
* Fuzzy search commands
|
||||
* Only shows commands that are available in current context
|
||||
*/
|
||||
private fuzzySearchCommands(query: string): CommandSearchResult[] {
|
||||
const lowercaseQuery = query.toLowerCase()
|
||||
const matches: CommandSearchResult[] = []
|
||||
|
||||
this.getAllCommands().forEach((handler) => {
|
||||
for (const handler of this.getAvailableCommands()) {
|
||||
// Check if command name matches
|
||||
if (handler.name.toLowerCase().includes(lowercaseQuery)) {
|
||||
matches.push({
|
||||
@ -216,7 +220,7 @@ export class SlashCommandRegistry {
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
return matches
|
||||
}
|
||||
@ -227,6 +231,14 @@ export class SlashCommandRegistry {
|
||||
getCommandDependencies(commandName: string): any {
|
||||
return this.commandDeps.get(commandName)
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine if a command is available in the current context.
|
||||
* Defaults to true when a handler does not implement the guard.
|
||||
*/
|
||||
private isCommandAvailable(handler: SlashCommandHandler) {
|
||||
return handler.isAvailable?.() ?? true
|
||||
}
|
||||
}
|
||||
|
||||
// Global registry instance
|
||||
|
||||
@ -11,6 +11,7 @@ import { forumCommand } from './forum'
|
||||
import { docsCommand } from './docs'
|
||||
import { communityCommand } from './community'
|
||||
import { accountCommand } from './account'
|
||||
import { zenCommand } from './zen'
|
||||
import i18n from '@/i18n-config/i18next-config'
|
||||
|
||||
export const slashAction: ActionItem = {
|
||||
@ -38,6 +39,7 @@ export const registerSlashCommands = (deps: Record<string, any>) => {
|
||||
slashCommandRegistry.register(docsCommand, {})
|
||||
slashCommandRegistry.register(communityCommand, {})
|
||||
slashCommandRegistry.register(accountCommand, {})
|
||||
slashCommandRegistry.register(zenCommand, {})
|
||||
}
|
||||
|
||||
export const unregisterSlashCommands = () => {
|
||||
@ -48,6 +50,7 @@ export const unregisterSlashCommands = () => {
|
||||
slashCommandRegistry.unregister('docs')
|
||||
slashCommandRegistry.unregister('community')
|
||||
slashCommandRegistry.unregister('account')
|
||||
slashCommandRegistry.unregister('zen')
|
||||
}
|
||||
|
||||
export const SlashCommandProvider = () => {
|
||||
|
||||
@ -21,6 +21,13 @@ export type SlashCommandHandler<TDeps = any> = {
|
||||
*/
|
||||
mode?: 'direct' | 'submenu'
|
||||
|
||||
/**
|
||||
* Check if command is available in current context
|
||||
* If not implemented, command is always available
|
||||
* Used to conditionally show/hide commands based on page, user state, etc.
|
||||
*/
|
||||
isAvailable?: () => boolean
|
||||
|
||||
/**
|
||||
* Direct execution function for 'direct' mode commands
|
||||
* Called when the command is selected and should execute immediately
|
||||
|
||||
58
web/app/components/goto-anything/actions/commands/zen.tsx
Normal file
58
web/app/components/goto-anything/actions/commands/zen.tsx
Normal file
@ -0,0 +1,58 @@
|
||||
import type { SlashCommandHandler } from './types'
|
||||
import React from 'react'
|
||||
import { RiFullscreenLine } from '@remixicon/react'
|
||||
import i18n from '@/i18n-config/i18next-config'
|
||||
import { registerCommands, unregisterCommands } from './command-bus'
|
||||
import { isInWorkflowPage } from '@/app/components/workflow/constants'
|
||||
|
||||
// Zen command dependency types - no external dependencies needed
|
||||
type ZenDeps = Record<string, never>
|
||||
|
||||
// Custom event name for zen toggle
|
||||
export const ZEN_TOGGLE_EVENT = 'zen-toggle-maximize'
|
||||
|
||||
// Shared function to dispatch zen toggle event
|
||||
const toggleZenMode = () => {
|
||||
window.dispatchEvent(new CustomEvent(ZEN_TOGGLE_EVENT))
|
||||
}
|
||||
|
||||
/**
|
||||
* Zen command - Toggle canvas maximize (focus mode) in workflow pages
|
||||
* Only available in workflow and chatflow pages
|
||||
*/
|
||||
export const zenCommand: SlashCommandHandler<ZenDeps> = {
|
||||
name: 'zen',
|
||||
description: 'Toggle canvas focus mode',
|
||||
mode: 'direct',
|
||||
|
||||
// Only available in workflow/chatflow pages
|
||||
isAvailable: () => isInWorkflowPage(),
|
||||
|
||||
// Direct execution function
|
||||
execute: toggleZenMode,
|
||||
|
||||
async search(_args: string, locale: string = 'en') {
|
||||
return [{
|
||||
id: 'zen',
|
||||
title: i18n.t('app.gotoAnything.actions.zenTitle', { lng: locale }) || 'Zen Mode',
|
||||
description: i18n.t('app.gotoAnything.actions.zenDesc', { lng: locale }) || 'Toggle canvas focus mode',
|
||||
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'>
|
||||
<RiFullscreenLine className='h-4 w-4 text-text-tertiary' />
|
||||
</div>
|
||||
),
|
||||
data: { command: 'workflow.zen', args: {} },
|
||||
}]
|
||||
},
|
||||
|
||||
register(_deps: ZenDeps) {
|
||||
registerCommands({
|
||||
'workflow.zen': async () => toggleZenMode(),
|
||||
})
|
||||
},
|
||||
|
||||
unregister() {
|
||||
unregisterCommands(['workflow.zen'])
|
||||
},
|
||||
}
|
||||
@ -1,5 +1,6 @@
|
||||
import type { FC } from 'react'
|
||||
import { useEffect, useMemo } from 'react'
|
||||
import { usePathname } from 'next/navigation'
|
||||
import { Command } from 'cmdk'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
import type { ActionItem } from './actions/types'
|
||||
@ -16,18 +17,20 @@ type Props = {
|
||||
|
||||
const CommandSelector: FC<Props> = ({ actions, onCommandSelect, searchFilter, commandValue, onCommandValueChange, originalQuery }) => {
|
||||
const { t } = useTranslation()
|
||||
const pathname = usePathname()
|
||||
|
||||
// Check if we're in slash command mode
|
||||
const isSlashMode = originalQuery?.trim().startsWith('/') || false
|
||||
|
||||
// Get slash commands from registry
|
||||
// Note: pathname is included in deps because some commands (like /zen) check isAvailable based on current route
|
||||
const slashCommands = useMemo(() => {
|
||||
if (!isSlashMode) return []
|
||||
|
||||
const allCommands = slashCommandRegistry.getAllCommands()
|
||||
const availableCommands = slashCommandRegistry.getAvailableCommands()
|
||||
const filter = searchFilter?.toLowerCase() || '' // searchFilter already has '/' removed
|
||||
|
||||
return allCommands.filter((cmd) => {
|
||||
return availableCommands.filter((cmd) => {
|
||||
if (!filter) return true
|
||||
return cmd.name.toLowerCase().includes(filter)
|
||||
}).map(cmd => ({
|
||||
@ -36,7 +39,7 @@ const CommandSelector: FC<Props> = ({ actions, onCommandSelect, searchFilter, co
|
||||
title: cmd.name,
|
||||
description: cmd.description,
|
||||
}))
|
||||
}, [isSlashMode, searchFilter])
|
||||
}, [isSlashMode, searchFilter, pathname])
|
||||
|
||||
const filteredActions = useMemo(() => {
|
||||
if (isSlashMode) return []
|
||||
@ -107,6 +110,7 @@ const CommandSelector: FC<Props> = ({ actions, onCommandSelect, searchFilter, co
|
||||
'/feedback': 'app.gotoAnything.actions.feedbackDesc',
|
||||
'/docs': 'app.gotoAnything.actions.docDesc',
|
||||
'/community': 'app.gotoAnything.actions.communityDesc',
|
||||
'/zen': 'app.gotoAnything.actions.zenDesc',
|
||||
}
|
||||
return t(slashKeyMap[item.key] || item.description)
|
||||
})()
|
||||
|
||||
@ -303,7 +303,8 @@ const GotoAnything: FC<Props> = ({
|
||||
const handler = slashCommandRegistry.findCommand(commandName)
|
||||
|
||||
// If it's a direct mode command, execute immediately
|
||||
if (handler?.mode === 'direct' && handler.execute) {
|
||||
const isAvailable = handler?.isAvailable?.() ?? true
|
||||
if (handler?.mode === 'direct' && handler.execute && isAvailable) {
|
||||
e.preventDefault()
|
||||
handler.execute()
|
||||
setShow(false)
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
import { useReactFlow } from 'reactflow'
|
||||
import { useKeyPress } from 'ahooks'
|
||||
import { useCallback } from 'react'
|
||||
import { useCallback, useEffect } from 'react'
|
||||
import { ZEN_TOGGLE_EVENT } from '@/app/components/goto-anything/actions/commands/zen'
|
||||
import {
|
||||
getKeyboardKeyCodeBySystem,
|
||||
isEventTargetInputArea,
|
||||
@ -246,4 +247,16 @@ export const useShortcuts = (): void => {
|
||||
events: ['keyup'],
|
||||
},
|
||||
)
|
||||
|
||||
// Listen for zen toggle event from /zen command
|
||||
useEffect(() => {
|
||||
const handleZenToggle = () => {
|
||||
handleToggleMaximizeCanvas()
|
||||
}
|
||||
|
||||
window.addEventListener(ZEN_TOGGLE_EVENT, handleZenToggle)
|
||||
return () => {
|
||||
window.removeEventListener(ZEN_TOGGLE_EVENT, handleZenToggle)
|
||||
}
|
||||
}, [handleToggleMaximizeCanvas])
|
||||
}
|
||||
|
||||
@ -304,6 +304,8 @@ const translation = {
|
||||
feedbackDesc: 'Offene Diskussionen zum Feedback der Gemeinschaft',
|
||||
communityDesc: 'Offene Discord-Community',
|
||||
docDesc: 'Öffnen Sie die Hilfedokumentation',
|
||||
zenTitle: 'Zen Mode',
|
||||
zenDesc: 'Toggle canvas focus mode',
|
||||
},
|
||||
emptyState: {
|
||||
noPluginsFound: 'Keine Plugins gefunden',
|
||||
|
||||
@ -98,6 +98,13 @@ const translation = {
|
||||
confirmTitle: 'Bestätigen, um zu speichern?',
|
||||
nameForToolCallPlaceHolder: 'Wird für die Maschinenerkennung verwendet, z. B. getCurrentWeather, list_pets',
|
||||
descriptionPlaceholder: 'Kurze Beschreibung des Zwecks des Werkzeugs, z. B. um die Temperatur für einen bestimmten Ort zu ermitteln.',
|
||||
toolOutput: {
|
||||
title: 'Werkzeugausgabe',
|
||||
name: 'Name',
|
||||
reserved: 'Reserviert',
|
||||
reservedParameterDuplicateTip: 'Text, JSON und Dateien sind reservierte Variablen. Variablen mit diesen Namen dürfen im Ausgabeschema nicht erscheinen.',
|
||||
description: 'Beschreibung',
|
||||
},
|
||||
},
|
||||
test: {
|
||||
title: 'Test',
|
||||
|
||||
@ -325,6 +325,8 @@ const translation = {
|
||||
communityDesc: 'Open Discord community',
|
||||
docDesc: 'Open help documentation',
|
||||
feedbackDesc: 'Open community feedback discussions',
|
||||
zenTitle: 'Zen Mode',
|
||||
zenDesc: 'Toggle canvas focus mode',
|
||||
},
|
||||
emptyState: {
|
||||
noAppsFound: 'No apps found',
|
||||
|
||||
@ -302,6 +302,8 @@ const translation = {
|
||||
communityDesc: 'Abrir comunidad de Discord',
|
||||
feedbackDesc: 'Discusiones de retroalimentación de la comunidad abierta',
|
||||
docDesc: 'Abrir la documentación de ayuda',
|
||||
zenTitle: 'Zen Mode',
|
||||
zenDesc: 'Toggle canvas focus mode',
|
||||
},
|
||||
emptyState: {
|
||||
noAppsFound: 'No se encontraron aplicaciones',
|
||||
|
||||
@ -119,6 +119,13 @@ const translation = {
|
||||
confirmTip: 'Las aplicaciones que usen esta herramienta se verán afectadas',
|
||||
deleteToolConfirmTitle: '¿Eliminar esta Herramienta?',
|
||||
deleteToolConfirmContent: 'Eliminar la herramienta es irreversible. Los usuarios ya no podrán acceder a tu herramienta.',
|
||||
toolOutput: {
|
||||
title: 'Salida de la herramienta',
|
||||
name: 'Nombre',
|
||||
reserved: 'Reservado',
|
||||
reservedParameterDuplicateTip: 'text, json y files son variables reservadas. Las variables con estos nombres no pueden aparecer en el esquema de salida.',
|
||||
description: 'Descripción',
|
||||
},
|
||||
},
|
||||
test: {
|
||||
title: 'Probar',
|
||||
|
||||
@ -302,6 +302,8 @@ const translation = {
|
||||
accountDesc: 'به صفحه حساب کاربری بروید',
|
||||
communityDesc: 'جامعه دیسکورد باز',
|
||||
docDesc: 'مستندات کمک را باز کنید',
|
||||
zenTitle: 'Zen Mode',
|
||||
zenDesc: 'Toggle canvas focus mode',
|
||||
},
|
||||
emptyState: {
|
||||
noKnowledgeBasesFound: 'هیچ پایگاه دانش یافت نشد',
|
||||
|
||||
@ -119,6 +119,13 @@ const translation = {
|
||||
confirmTip: 'برنامههایی که از این ابزار استفاده میکنند تحت تأثیر قرار خواهند گرفت',
|
||||
deleteToolConfirmTitle: 'آیا این ابزار را حذف کنید؟',
|
||||
deleteToolConfirmContent: 'حذف ابزار غیرقابل بازگشت است. کاربران دیگر قادر به دسترسی به ابزار شما نخواهند بود.',
|
||||
toolOutput: {
|
||||
title: 'خروجی ابزار',
|
||||
name: 'نام',
|
||||
reserved: 'رزرو شده',
|
||||
reservedParameterDuplicateTip: 'متن، JSON و فایلها متغیرهای رزرو شده هستند. متغیرهایی با این نامها نمیتوانند در طرح خروجی ظاهر شوند.',
|
||||
description: 'توضیحات',
|
||||
},
|
||||
},
|
||||
test: {
|
||||
title: 'آزمایش',
|
||||
|
||||
@ -302,6 +302,8 @@ const translation = {
|
||||
docDesc: 'Ouvrir la documentation d\'aide',
|
||||
accountDesc: 'Accédez à la page de compte',
|
||||
feedbackDesc: 'Discussions de rétroaction de la communauté ouverte',
|
||||
zenTitle: 'Zen Mode',
|
||||
zenDesc: 'Toggle canvas focus mode',
|
||||
},
|
||||
emptyState: {
|
||||
noKnowledgeBasesFound: 'Aucune base de connaissances trouvée',
|
||||
|
||||
@ -98,6 +98,13 @@ const translation = {
|
||||
description: 'Description',
|
||||
nameForToolCallPlaceHolder: 'Utilisé pour la reconnaissance automatique, tels que getCurrentWeather, list_pets',
|
||||
descriptionPlaceholder: 'Brève description de l’objectif de l’outil, par exemple, obtenir la température d’un endroit spécifique.',
|
||||
toolOutput: {
|
||||
title: 'Sortie de l\'outil',
|
||||
name: 'Nom',
|
||||
reserved: 'Réservé',
|
||||
reservedParameterDuplicateTip: 'text, json et files sont des variables réservées. Les variables portant ces noms ne peuvent pas apparaître dans le schéma de sortie.',
|
||||
description: 'Description',
|
||||
},
|
||||
},
|
||||
test: {
|
||||
title: 'Test',
|
||||
|
||||
@ -302,6 +302,8 @@ const translation = {
|
||||
docDesc: 'सहायता दस्तावेज़ खोलें',
|
||||
communityDesc: 'ओपन डिस्कॉर्ड समुदाय',
|
||||
feedbackDesc: 'खुले समुदाय की फीडबैक चर्चाएँ',
|
||||
zenTitle: 'Zen Mode',
|
||||
zenDesc: 'Toggle canvas focus mode',
|
||||
},
|
||||
emptyState: {
|
||||
noPluginsFound: 'कोई प्लगइन नहीं मिले',
|
||||
|
||||
@ -123,6 +123,13 @@ const translation = {
|
||||
confirmTip: 'इस उपकरण का उपयोग करने वाले ऐप्स प्रभावित होंगे',
|
||||
deleteToolConfirmTitle: 'इस उपकरण को हटाएं?',
|
||||
deleteToolConfirmContent: 'इस उपकरण को हटाने से वापस नहीं आ सकता है। उपयोगकर्ता अब तक आपके उपकरण पर अन्तराल नहीं कर सकेंगे।',
|
||||
toolOutput: {
|
||||
title: 'उपकरण आउटपुट',
|
||||
name: 'नाम',
|
||||
reserved: 'आरक्षित',
|
||||
reservedParameterDuplicateTip: 'text, json, और फाइलें आरक्षित वेरिएबल हैं। इन नामों वाले वेरिएबल आउटपुट स्कीमा में दिखाई नहीं दे सकते।',
|
||||
description: 'विवरण',
|
||||
},
|
||||
},
|
||||
test: {
|
||||
title: 'परीक्षण',
|
||||
|
||||
@ -262,6 +262,8 @@ const translation = {
|
||||
searchKnowledgeBasesDesc: 'Cari dan navigasikan ke basis pengetahuan Anda',
|
||||
themeSystem: 'Tema Sistem',
|
||||
languageChangeDesc: 'Mengubah bahasa UI',
|
||||
zenTitle: 'Zen Mode',
|
||||
zenDesc: 'Toggle canvas focus mode',
|
||||
},
|
||||
emptyState: {
|
||||
noWorkflowNodesFound: 'Tidak ada simpul alur kerja yang ditemukan',
|
||||
|
||||
@ -114,6 +114,13 @@ const translation = {
|
||||
importFromUrlPlaceHolder: 'https://...',
|
||||
descriptionPlaceholder: 'Deskripsi singkat tentang tujuan alat, misalnya, mendapatkan suhu untuk lokasi tertentu.',
|
||||
confirmTitle: 'Konfirmasi untuk menyimpan?',
|
||||
toolOutput: {
|
||||
title: 'Keluaran Alat',
|
||||
name: 'Nama',
|
||||
reserved: 'Dicadangkan',
|
||||
reservedParameterDuplicateTip: 'text, json, dan file adalah variabel yang dicadangkan. Variabel dengan nama-nama ini tidak dapat muncul dalam skema keluaran.',
|
||||
description: 'Deskripsi',
|
||||
},
|
||||
},
|
||||
test: {
|
||||
testResult: 'Hasil Tes',
|
||||
|
||||
@ -308,6 +308,8 @@ const translation = {
|
||||
accountDesc: 'Vai alla pagina dell\'account',
|
||||
feedbackDesc: 'Discussioni di feedback della comunità aperta',
|
||||
docDesc: 'Apri la documentazione di aiuto',
|
||||
zenTitle: 'Zen Mode',
|
||||
zenDesc: 'Toggle canvas focus mode',
|
||||
},
|
||||
emptyState: {
|
||||
noKnowledgeBasesFound: 'Nessuna base di conoscenza trovata',
|
||||
|
||||
@ -126,6 +126,13 @@ const translation = {
|
||||
deleteToolConfirmTitle: 'Eliminare questo Strumento?',
|
||||
deleteToolConfirmContent:
|
||||
'L\'eliminazione dello Strumento è irreversibile. Gli utenti non potranno più accedere al tuo Strumento.',
|
||||
toolOutput: {
|
||||
title: 'Output dello strumento',
|
||||
name: 'Nome',
|
||||
reserved: 'Riservato',
|
||||
reservedParameterDuplicateTip: 'text, json e files sono variabili riservate. Le variabili con questi nomi non possono comparire nello schema di output.',
|
||||
description: 'Descrizione',
|
||||
},
|
||||
},
|
||||
test: {
|
||||
title: 'Test',
|
||||
|
||||
@ -322,6 +322,8 @@ const translation = {
|
||||
docDesc: 'ヘルプドキュメントを開く',
|
||||
communityDesc: 'オープンDiscordコミュニティ',
|
||||
feedbackDesc: 'オープンなコミュニティフィードバックディスカッション',
|
||||
zenTitle: 'Zen Mode',
|
||||
zenDesc: 'Toggle canvas focus mode',
|
||||
},
|
||||
emptyState: {
|
||||
noAppsFound: 'アプリが見つかりません',
|
||||
|
||||
@ -119,6 +119,13 @@ const translation = {
|
||||
confirmTip: 'このツールを使用しているアプリは影響を受けます',
|
||||
deleteToolConfirmTitle: 'このツールを削除しますか?',
|
||||
deleteToolConfirmContent: 'ツールの削除は取り消しできません。ユーザーはもうあなたのツールにアクセスできません。',
|
||||
toolOutput: {
|
||||
title: 'ツール出力',
|
||||
name: '名前',
|
||||
reserved: '予約済み',
|
||||
reservedParameterDuplicateTip: 'text、json、および files は予約語です。これらの名前の変数は出力スキーマに表示することはできません。',
|
||||
description: '説明',
|
||||
},
|
||||
},
|
||||
test: {
|
||||
title: 'テスト',
|
||||
|
||||
@ -322,6 +322,8 @@ const translation = {
|
||||
feedbackDesc: '공개 커뮤니티 피드백 토론',
|
||||
docDesc: '도움 문서 열기',
|
||||
accountDesc: '계정 페이지로 이동',
|
||||
zenTitle: 'Zen Mode',
|
||||
zenDesc: 'Toggle canvas focus mode',
|
||||
},
|
||||
emptyState: {
|
||||
noAppsFound: '앱을 찾을 수 없습니다.',
|
||||
|
||||
@ -119,6 +119,13 @@ const translation = {
|
||||
confirmTip: '이 도구를 사용하는 앱은 영향을 받습니다.',
|
||||
deleteToolConfirmTitle: '이 도구를 삭제하시겠습니까?',
|
||||
deleteToolConfirmContent: '이 도구를 삭제하면 되돌릴 수 없습니다. 사용자는 더 이상 당신의 도구에 액세스할 수 없습니다.',
|
||||
toolOutput: {
|
||||
title: '도구 출력',
|
||||
name: '이름',
|
||||
reserved: '예약됨',
|
||||
reservedParameterDuplicateTip: 'text, json, 파일은 예약된 변수입니다. 이러한 이름을 가진 변수는 출력 스키마에 나타날 수 없습니다.',
|
||||
description: '설명',
|
||||
},
|
||||
},
|
||||
test: {
|
||||
title: '테스트',
|
||||
|
||||
@ -303,6 +303,8 @@ const translation = {
|
||||
docDesc: 'Otwórz dokumentację pomocy',
|
||||
accountDesc: 'Przejdź do strony konta',
|
||||
feedbackDesc: 'Otwarte dyskusje na temat opinii społeczności',
|
||||
zenTitle: 'Zen Mode',
|
||||
zenDesc: 'Toggle canvas focus mode',
|
||||
},
|
||||
emptyState: {
|
||||
noAppsFound: 'Nie znaleziono aplikacji',
|
||||
|
||||
@ -100,6 +100,13 @@ const translation = {
|
||||
nameForToolCallPlaceHolder: 'Służy do rozpoznawania maszyn, takich jak getCurrentWeather, list_pets',
|
||||
confirmTip: 'Będzie to miało wpływ na aplikacje korzystające z tego narzędzia',
|
||||
confirmTitle: 'Potwierdź, aby zapisać ?',
|
||||
toolOutput: {
|
||||
title: 'Wynik narzędzia',
|
||||
name: 'Nazwa',
|
||||
reserved: 'Zarezerwowane',
|
||||
reservedParameterDuplicateTip: 'text, json i pliki są zastrzeżonymi zmiennymi. Zmienne o tych nazwach nie mogą pojawiać się w schemacie wyjściowym.',
|
||||
description: 'Opis',
|
||||
},
|
||||
},
|
||||
test: {
|
||||
title: 'Test',
|
||||
|
||||
@ -302,6 +302,8 @@ const translation = {
|
||||
communityDesc: 'Comunidade do Discord aberta',
|
||||
feedbackDesc: 'Discussões de feedback da comunidade aberta',
|
||||
docDesc: 'Abra a documentação de ajuda',
|
||||
zenTitle: 'Zen Mode',
|
||||
zenDesc: 'Toggle canvas focus mode',
|
||||
},
|
||||
emptyState: {
|
||||
noAppsFound: 'Nenhum aplicativo encontrado',
|
||||
|
||||
@ -98,6 +98,13 @@ const translation = {
|
||||
nameForToolCallTip: 'Suporta apenas números, letras e sublinhados.',
|
||||
descriptionPlaceholder: 'Breve descrição da finalidade da ferramenta, por exemplo, obter a temperatura para um local específico.',
|
||||
nameForToolCallPlaceHolder: 'Usado para reconhecimento de máquina, como getCurrentWeather, list_pets',
|
||||
toolOutput: {
|
||||
title: 'Saída da ferramenta',
|
||||
name: 'Nome',
|
||||
reserved: 'Reservado',
|
||||
reservedParameterDuplicateTip: 'texto, json e arquivos são variáveis reservadas. Variáveis com esses nomes não podem aparecer no esquema de saída.',
|
||||
description: 'Descrição',
|
||||
},
|
||||
},
|
||||
test: {
|
||||
title: 'Testar',
|
||||
|
||||
@ -302,6 +302,8 @@ const translation = {
|
||||
docDesc: 'Deschide documentația de ajutor',
|
||||
communityDesc: 'Deschide comunitatea Discord',
|
||||
accountDesc: 'Navigați la pagina de cont',
|
||||
zenTitle: 'Zen Mode',
|
||||
zenDesc: 'Toggle canvas focus mode',
|
||||
},
|
||||
emptyState: {
|
||||
noAppsFound: 'Nu s-au găsit aplicații',
|
||||
|
||||
@ -98,6 +98,13 @@ const translation = {
|
||||
confirmTitle: 'Confirmați pentru a salva?',
|
||||
customDisclaimerPlaceholder: 'Vă rugăm să introduceți declinarea responsabilității personalizate',
|
||||
nameForToolCallTip: 'Acceptă doar numere, litere și caractere de subliniere.',
|
||||
toolOutput: {
|
||||
title: 'Ieșire instrument',
|
||||
name: 'Nume',
|
||||
reserved: 'Rezervat',
|
||||
reservedParameterDuplicateTip: 'text, json și fișiere sunt variabile rezervate. Variabilele cu aceste nume nu pot apărea în schema de ieșire.',
|
||||
description: 'Descriere',
|
||||
},
|
||||
},
|
||||
test: {
|
||||
title: 'Testează',
|
||||
|
||||
@ -302,6 +302,8 @@ const translation = {
|
||||
feedbackDesc: 'Обсуждения обратной связи с открытым сообществом',
|
||||
docDesc: 'Откройте справочную документацию',
|
||||
communityDesc: 'Открытое сообщество Discord',
|
||||
zenTitle: 'Zen Mode',
|
||||
zenDesc: 'Toggle canvas focus mode',
|
||||
},
|
||||
emptyState: {
|
||||
noPluginsFound: 'Плагины не найдены',
|
||||
|
||||
@ -119,6 +119,13 @@ const translation = {
|
||||
confirmTip: 'Приложения, использующие этот инструмент, будут затронуты',
|
||||
deleteToolConfirmTitle: 'Удалить этот инструмент?',
|
||||
deleteToolConfirmContent: 'Удаление инструмента необратимо. Пользователи больше не смогут получить доступ к вашему инструменту.',
|
||||
toolOutput: {
|
||||
title: 'Вывод инструмента',
|
||||
name: 'Имя',
|
||||
reserved: 'Зарезервировано',
|
||||
reservedParameterDuplicateTip: 'text, json и files — зарезервированные переменные. Переменные с этими именами не могут появляться в схеме вывода.',
|
||||
description: 'Описание',
|
||||
},
|
||||
},
|
||||
test: {
|
||||
title: 'Тест',
|
||||
|
||||
@ -302,6 +302,8 @@ const translation = {
|
||||
docDesc: 'Odprite pomoč dokumentacijo',
|
||||
feedbackDesc: 'Razprave o povratnih informacijah odprte skupnosti',
|
||||
communityDesc: 'Odpri Discord skupnost',
|
||||
zenTitle: 'Zen Mode',
|
||||
zenDesc: 'Toggle canvas focus mode',
|
||||
},
|
||||
emptyState: {
|
||||
noPluginsFound: 'Vtičnikov ni mogoče najti',
|
||||
|
||||
@ -119,6 +119,13 @@ const translation = {
|
||||
confirmTip: 'Aplikacije, ki uporabljajo to orodje, bodo vplivane',
|
||||
deleteToolConfirmTitle: 'Izbrisati to orodje?',
|
||||
deleteToolConfirmContent: 'Brisanje orodja je nepovratno. Uporabniki ne bodo več imeli dostopa do vašega orodja.',
|
||||
toolOutput: {
|
||||
title: 'Izhod orodja',
|
||||
name: 'Ime',
|
||||
reserved: 'Rezervirano',
|
||||
reservedParameterDuplicateTip: 'text, json in datoteke so rezervirane spremenljivke. Spremenljivke s temi imeni se ne smejo pojaviti v izhodni shemi.',
|
||||
description: 'Opis',
|
||||
},
|
||||
},
|
||||
test: {
|
||||
title: 'Test',
|
||||
|
||||
@ -298,6 +298,8 @@ const translation = {
|
||||
accountDesc: 'ไปที่หน้าบัญชี',
|
||||
docDesc: 'เปิดเอกสารช่วยเหลือ',
|
||||
communityDesc: 'เปิดชุมชน Discord',
|
||||
zenTitle: 'Zen Mode',
|
||||
zenDesc: 'Toggle canvas focus mode',
|
||||
},
|
||||
emptyState: {
|
||||
noPluginsFound: 'ไม่พบปลั๊กอิน',
|
||||
|
||||
@ -119,6 +119,13 @@ const translation = {
|
||||
confirmTip: 'แอปที่ใช้เครื่องมือนี้จะได้รับผลกระทบ',
|
||||
deleteToolConfirmTitle: 'ลบเครื่องมือนี้?',
|
||||
deleteToolConfirmContent: 'การลบเครื่องมือนั้นไม่สามารถย้อนกลับได้ ผู้ใช้จะไม่สามารถเข้าถึงเครื่องมือของคุณได้อีกต่อไป',
|
||||
toolOutput: {
|
||||
title: 'เอาต์พุตของเครื่องมือ',
|
||||
name: 'ชื่อ',
|
||||
reserved: 'สงวน',
|
||||
reservedParameterDuplicateTip: 'text, json และ files เป็นตัวแปรที่สงวนไว้ ไม่สามารถใช้ชื่อตัวแปรเหล่านี้ในโครงสร้างผลลัพธ์ได้',
|
||||
description: 'คำอธิบาย',
|
||||
},
|
||||
},
|
||||
test: {
|
||||
title: 'ทดสอบ',
|
||||
|
||||
@ -298,6 +298,8 @@ const translation = {
|
||||
accountDesc: 'Hesap sayfasına gidin',
|
||||
feedbackDesc: 'Açık topluluk geri bildirim tartışmaları',
|
||||
docDesc: 'Yardım belgelerini aç',
|
||||
zenTitle: 'Zen Mode',
|
||||
zenDesc: 'Toggle canvas focus mode',
|
||||
},
|
||||
emptyState: {
|
||||
noAppsFound: 'Uygulama bulunamadı',
|
||||
|
||||
@ -119,6 +119,13 @@ const translation = {
|
||||
confirmTip: 'Bu aracı kullanan uygulamalar etkilenecek',
|
||||
deleteToolConfirmTitle: 'Bu Aracı silmek istiyor musunuz?',
|
||||
deleteToolConfirmContent: 'Aracın silinmesi geri alınamaz. Kullanıcılar artık aracınıza erişemeyecek.',
|
||||
toolOutput: {
|
||||
title: 'Araç Çıktısı',
|
||||
name: 'İsim',
|
||||
reserved: 'Ayrılmış',
|
||||
reservedParameterDuplicateTip: 'text, json ve dosyalar ayrılmış değişkenlerdir. Bu isimlere sahip değişkenler çıktı şemasında yer alamaz.',
|
||||
description: 'Açıklama',
|
||||
},
|
||||
},
|
||||
test: {
|
||||
title: 'Test',
|
||||
|
||||
@ -302,6 +302,8 @@ const translation = {
|
||||
docDesc: 'Відкрийте документацію допомоги',
|
||||
accountDesc: 'Перейдіть на сторінку облікового запису',
|
||||
communityDesc: 'Відкрита Discord-спільнота',
|
||||
zenTitle: 'Zen Mode',
|
||||
zenDesc: 'Toggle canvas focus mode',
|
||||
},
|
||||
emptyState: {
|
||||
noPluginsFound: 'Плагінів не знайдено',
|
||||
|
||||
@ -98,6 +98,13 @@ const translation = {
|
||||
confirmTip: 'Це вплине на програми, які використовують цей інструмент',
|
||||
nameForToolCallPlaceHolder: 'Використовується для розпізнавання машин, таких як getCurrentWeather, list_pets',
|
||||
descriptionPlaceholder: 'Короткий опис призначення інструменту, наприклад, отримання температури для конкретного місця.',
|
||||
toolOutput: {
|
||||
title: 'Вихідні дані інструменту',
|
||||
name: 'Ім\'я',
|
||||
reserved: 'Зарезервовано',
|
||||
reservedParameterDuplicateTip: 'text, json та файли є зарезервованими змінними. Змінні з такими іменами не можуть з’являтися в схемі вихідних даних.',
|
||||
description: 'Опис',
|
||||
},
|
||||
},
|
||||
test: {
|
||||
title: 'Тест',
|
||||
|
||||
@ -302,6 +302,8 @@ const translation = {
|
||||
accountDesc: 'Đi đến trang tài khoản',
|
||||
docDesc: 'Mở tài liệu trợ giúp',
|
||||
communityDesc: 'Mở cộng đồng Discord',
|
||||
zenTitle: 'Zen Mode',
|
||||
zenDesc: 'Toggle canvas focus mode',
|
||||
},
|
||||
emptyState: {
|
||||
noWorkflowNodesFound: 'Không tìm thấy nút quy trình làm việc',
|
||||
|
||||
@ -98,6 +98,13 @@ const translation = {
|
||||
description: 'Sự miêu tả',
|
||||
confirmTitle: 'Xác nhận để lưu ?',
|
||||
confirmTip: 'Các ứng dụng sử dụng công cụ này sẽ bị ảnh hưởng',
|
||||
toolOutput: {
|
||||
title: 'Đầu ra của công cụ',
|
||||
name: 'Tên',
|
||||
reserved: 'Dành riêng',
|
||||
reservedParameterDuplicateTip: 'text, json và files là các biến dành riêng. Các biến có tên này không thể xuất hiện trong sơ đồ đầu ra.',
|
||||
description: 'Mô tả',
|
||||
},
|
||||
},
|
||||
test: {
|
||||
title: 'Kiểm tra',
|
||||
|
||||
@ -324,6 +324,8 @@ const translation = {
|
||||
communityDesc: '打开 Discord 社区',
|
||||
docDesc: '打开帮助文档',
|
||||
feedbackDesc: '打开社区反馈讨论',
|
||||
zenTitle: '专注模式',
|
||||
zenDesc: '切换画布专注模式',
|
||||
},
|
||||
emptyState: {
|
||||
noAppsFound: '未找到应用',
|
||||
|
||||
@ -301,6 +301,8 @@ const translation = {
|
||||
accountDesc: '導航到帳戶頁面',
|
||||
feedbackDesc: '開放社區反饋討論',
|
||||
docDesc: '開啟幫助文件',
|
||||
zenTitle: 'Zen Mode',
|
||||
zenDesc: 'Toggle canvas focus mode',
|
||||
},
|
||||
emptyState: {
|
||||
noAppsFound: '未找到應用',
|
||||
|
||||
@ -98,6 +98,13 @@ const translation = {
|
||||
nameForToolCallTip: '僅支援數位、字母和下劃線。',
|
||||
confirmTip: '使用此工具的應用程式將受到影響',
|
||||
nameForToolCallPlaceHolder: '用於機器識別,例如 getCurrentWeather、list_pets',
|
||||
toolOutput: {
|
||||
title: '工具輸出',
|
||||
name: '名稱',
|
||||
reserved: '已保留',
|
||||
reservedParameterDuplicateTip: 'text、json 和 files 是保留變數。這些名稱的變數不能出現在輸出結構中。',
|
||||
description: '描述',
|
||||
},
|
||||
},
|
||||
test: {
|
||||
title: '測試',
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
"name": "dify-web",
|
||||
"version": "1.10.1",
|
||||
"private": true,
|
||||
"packageManager": "pnpm@10.23.0+sha512.21c4e5698002ade97e4efe8b8b4a89a8de3c85a37919f957e7a0f30f38fbc5bbdd05980ffe29179b2fb6e6e691242e098d945d1601772cad0fef5fb6411e2a4b",
|
||||
"packageManager": "pnpm@10.24.0+sha512.01ff8ae71b4419903b65c60fb2dc9d34cf8bb6e06d03bde112ef38f7a34d6904c424ba66bea5cdcf12890230bf39f9580473140ed9c946fef328b6e5238a345a",
|
||||
"engines": {
|
||||
"node": ">=v22.11.0"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user