Fully autonomous AI Agents system capable of performing complex penetration testing tasks
Go ai-agentsai-security-toolanthropicautonomous-agentsgolanggptgraphqlmulti-agent-systemoffensive-securityopen-sourceopenaipenetration-testingpenetration-testing-toolsreactsecurity-automationsecurity-testingsecurity-toolsself-hosted
refactor(editor): group the markdown-editor files under one folder
Sergey Kozyrenko4e11fd96a4b0
diff --git a/frontend/src/components/shared/editor-highlight-regex.test.ts b/frontend/src/components/shared/markdown-editor/editor-highlight-regex.test.tssimilarity index 100%rename from frontend/src/components/shared/editor-highlight-regex.test.tsrename to frontend/src/components/shared/markdown-editor/editor-highlight-regex.test.tsdiff --git a/frontend/src/components/shared/editor-inline-scan.ts b/frontend/src/components/shared/markdown-editor/editor-inline-scan.tssimilarity index 100%rename from frontend/src/components/shared/editor-inline-scan.tsrename to frontend/src/components/shared/markdown-editor/editor-inline-scan.tsdiff --git a/frontend/src/components/shared/editor-markdown.ts b/frontend/src/components/shared/markdown-editor/editor-markdown.tssimilarity index 100%rename from frontend/src/components/shared/editor-markdown.tsrename to frontend/src/components/shared/markdown-editor/editor-markdown.tsdiff --git a/frontend/src/components/shared/editor-tag-highlight.ts b/frontend/src/components/shared/markdown-editor/editor-tag-highlight.tssimilarity index 100%rename from frontend/src/components/shared/editor-tag-highlight.tsrename to frontend/src/components/shared/markdown-editor/editor-tag-highlight.tsdiff --git a/frontend/src/components/shared/editor-variable-highlight.ts b/frontend/src/components/shared/markdown-editor/editor-variable-highlight.tssimilarity index 100%rename from frontend/src/components/shared/editor-variable-highlight.tsrename to frontend/src/components/shared/markdown-editor/editor-variable-highlight.tsdiff --git a/frontend/src/components/shared/editor-view-mode.tsx b/frontend/src/components/shared/markdown-editor/editor-view-mode.tsxsimilarity index 100%rename from frontend/src/components/shared/editor-view-mode.tsxrename to frontend/src/components/shared/markdown-editor/editor-view-mode.tsxdiff --git a/frontend/src/components/shared/markdown-editor-corpus.test.ts b/frontend/src/components/shared/markdown-editor/markdown-editor-corpus.test.tssimilarity index 100%rename from frontend/src/components/shared/markdown-editor-corpus.test.tsrename to frontend/src/components/shared/markdown-editor/markdown-editor-corpus.test.tsdiff --git a/frontend/src/components/shared/markdown-editor-extensions.test.ts b/frontend/src/components/shared/markdown-editor/markdown-editor-extensions.test.tssimilarity index 100%rename from frontend/src/components/shared/markdown-editor-extensions.test.tsrename to frontend/src/components/shared/markdown-editor/markdown-editor-extensions.test.tsdiff --git a/frontend/src/components/shared/markdown-editor-extensions.ts b/frontend/src/components/shared/markdown-editor/markdown-editor-extensions.tssimilarity index 100%rename from frontend/src/components/shared/markdown-editor-extensions.tsrename to frontend/src/components/shared/markdown-editor/markdown-editor-extensions.tsdiff --git a/frontend/src/components/shared/markdown-editor.tsx b/frontend/src/components/shared/markdown-editor/markdown-editor.tsxsimilarity index 100%rename from frontend/src/components/shared/markdown-editor.tsxrename to frontend/src/components/shared/markdown-editor/markdown-editor.tsxdiff --git a/frontend/src/features/knowledges/knowledge-form-controls.tsx b/frontend/src/features/knowledges/knowledge-form-controls.tsxindex 385d7b1b..b1617c3b 100644--- a/frontend/src/features/knowledges/knowledge-form-controls.tsx+++ b/frontend/src/features/knowledges/knowledge-form-controls.tsx@@ -5,8 +5,8 @@ import type {KnowledgeGuideType as KnowledgeGuideTypeT,} from '@/graphql/types';-import { type EditorViewMode } from '@/components/shared/editor-view-mode';-import { MarkdownEditor } from '@/components/shared/markdown-editor';+import { type EditorViewMode } from '@/components/shared/markdown-editor/editor-view-mode';+import { MarkdownEditor } from '@/components/shared/markdown-editor/markdown-editor';import {Autocomplete,AutocompleteContent,diff --git a/frontend/src/features/knowledges/knowledge-form-layout.tsx b/frontend/src/features/knowledges/knowledge-form-layout.tsxindex 59e494a5..4d54d194 100644--- a/frontend/src/features/knowledges/knowledge-form-layout.tsx+++ b/frontend/src/features/knowledges/knowledge-form-layout.tsx@@ -3,7 +3,7 @@ import type { Control } from 'react-hook-form';import type { KnowledgeDocumentFragmentFragment } from '@/graphql/types';import { DetailTwoPanelLayout } from '@/components/shared/detail-two-panel-layout';-import { type EditorViewMode } from '@/components/shared/editor-view-mode';+import { type EditorViewMode } from '@/components/shared/markdown-editor/editor-view-mode';import { Badge } from '@/components/ui/badge';import type { FormValues } from './knowledge-form';diff --git a/frontend/src/features/knowledges/knowledge-form.tsx b/frontend/src/features/knowledges/knowledge-form.tsxindex 2f74b0f9..ea5d6847 100644--- a/frontend/src/features/knowledges/knowledge-form.tsx+++ b/frontend/src/features/knowledges/knowledge-form.tsx@@ -14,7 +14,7 @@ import type {} from '@/graphql/types';import { AppHeaderAction } from '@/components/layouts/app/app-header';-import { type EditorViewMode } from '@/components/shared/editor-view-mode';+import { type EditorViewMode } from '@/components/shared/markdown-editor/editor-view-mode';import { UnsavedChangesDialog, useUnsavedChangesGuard } from '@/components/shared/unsaved-changes';import { Form } from '@/components/ui/form';import { Spinner } from '@/components/ui/spinner';diff --git a/frontend/src/features/knowledges/knowledge-header.tsx b/frontend/src/features/knowledges/knowledge-header.tsxindex b68720b9..5296cdfb 100644--- a/frontend/src/features/knowledges/knowledge-header.tsx+++ b/frontend/src/features/knowledges/knowledge-header.tsx@@ -14,8 +14,8 @@ import {DetailNavigationSheet,DetailNavigationToolbar,} from '@/components/shared/detail-navigation';-import { type EditorViewMode, EditorViewModeToggle } from '@/components/shared/editor-view-mode';import { InlineEditInput, useInlineEdit } from '@/components/shared/inline-edit';+import { type EditorViewMode, EditorViewModeToggle } from '@/components/shared/markdown-editor/editor-view-mode';import { Badge } from '@/components/ui/badge';import { Breadcrumb, BreadcrumbItem, BreadcrumbList, BreadcrumbPage } from '@/components/ui/breadcrumb';import { Button } from '@/components/ui/button';diff --git a/frontend/src/pages/settings/settings-prompt.tsx b/frontend/src/pages/settings/settings-prompt.tsxindex 2db0bb46..9d04ee2f 100644--- a/frontend/src/pages/settings/settings-prompt.tsx+++ b/frontend/src/pages/settings/settings-prompt.tsx@@ -47,12 +47,12 @@ import type {ValidatePromptMutation,} from '@/graphql/types';-import { type EditorViewMode, EditorViewModeToggle } from '@/components/shared/editor-view-mode';+import { type EditorViewMode, EditorViewModeToggle } from '@/components/shared/markdown-editor/editor-view-mode';type AgentPrompt = AgentPrompts;type AgentPrompts = { human?: DefaultPrompt; system: DefaultPrompt };-import type { MarkdownEditorHandle } from '@/components/shared/markdown-editor';+import type { MarkdownEditorHandle } from '@/components/shared/markdown-editor/markdown-editor';import {AppHeader,@@ -63,7 +63,7 @@ import {} from '@/components/layouts/app/app-header';import ConfirmationDialog from '@/components/shared/confirmation-dialog';import { DetailTwoPanelLayout } from '@/components/shared/detail-two-panel-layout';-import { findVariableUseRanges, VARIABLE_RE, variableProbe } from '@/components/shared/editor-variable-highlight';+import { findVariableUseRanges, VARIABLE_RE, variableProbe } from '@/components/shared/markdown-editor/editor-variable-highlight';import { UnsavedChangesDialog, useUnsavedChangesGuard } from '@/components/shared/unsaved-changes';import { Alert, AlertDescription, AlertTitle } from '@/components/ui/alert';import { Badge } from '@/components/ui/badge';@@ -94,7 +94,7 @@ import { cn } from '@/lib/utils';// Dynamic-only import: a static import would merge the tiptap editor chunk into this route bundle.const MarkdownEditor = lazy(() =>- import('@/components/shared/markdown-editor').then((module) => ({ default: module.MarkdownEditor })),+ import('@/components/shared/markdown-editor/markdown-editor').then((module) => ({ default: module.MarkdownEditor })),);const systemFormSchema = z.object({diff --git a/frontend/src/pages/templates/template.tsx b/frontend/src/pages/templates/template.tsxindex 4520313d..f191abbc 100644--- a/frontend/src/pages/templates/template.tsx+++ b/frontend/src/pages/templates/template.tsx@@ -17,8 +17,8 @@ import {DetailNavigationToolbar,} from '@/components/shared/detail-navigation';import { DetailTwoPanelLayout } from '@/components/shared/detail-two-panel-layout';-import { type EditorViewMode, EditorViewModeToggle } from '@/components/shared/editor-view-mode';import { InlineEditInput, useInlineEdit } from '@/components/shared/inline-edit';+import { type EditorViewMode, EditorViewModeToggle } from '@/components/shared/markdown-editor/editor-view-mode';import { UnsavedChangesDialog, useUnsavedChangesGuard } from '@/components/shared/unsaved-changes';import { Badge } from '@/components/ui/badge';import { Breadcrumb, BreadcrumbItem, BreadcrumbList, BreadcrumbPage } from '@/components/ui/breadcrumb';@@ -46,7 +46,7 @@ import { cn } from '@/lib/utils';import { type Template, useTemplates } from '@/providers/templates-provider';const MarkdownEditor = lazy(() =>- import('@/components/shared/markdown-editor').then((module) => ({ default: module.MarkdownEditor })),+ import('@/components/shared/markdown-editor/markdown-editor').then((module) => ({ default: module.MarkdownEditor })),);const formSchema = z.object({