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.

chore(web): remove drawer overlay import restriction (#35990)

yyhb99ba74aa46c
diff --git a/web/eslint.config.mjs b/web/eslint.config.mjs
index ab2c626482d..a46256ebf17 100644
--- a/web/eslint.config.mjs
+++ b/web/eslint.config.mjs
@@ -14,7 +14,6 @@ import {
GENERATED_IGNORES,
HYOBAN_PREFER_TAILWIND_ICONS_OPTIONS,
NEXT_PLATFORM_RESTRICTED_IMPORT_PATHS,
- OVERLAY_RESTRICTED_IMPORT_PATTERNS,
WEB_RESTRICTED_IMPORT_PATTERNS,
} from './eslint.constants.mjs'
import dify from './plugins/eslint/index.js'
@@ -171,21 +170,4 @@ export default antfu(
}],
},
},
- {
- name: 'dify/overlay-import-policy',
- files: [GLOB_TS, GLOB_TSX],
- ignores: [
- 'next/**',
- ...GLOB_TESTS,
- ],
- rules: {
- 'no-restricted-imports': ['error', {
- paths: NEXT_PLATFORM_RESTRICTED_IMPORT_PATHS,
- patterns: [
- ...WEB_RESTRICTED_IMPORT_PATTERNS,
- ...OVERLAY_RESTRICTED_IMPORT_PATTERNS,
- ],
- }],
- },
- },
)
diff --git a/web/eslint.constants.mjs b/web/eslint.constants.mjs
index cc0ba060a55..1d342fbf4d1 100644
--- a/web/eslint.constants.mjs
+++ b/web/eslint.constants.mjs
@@ -54,16 +54,6 @@ export const WEB_RESTRICTED_IMPORT_PATTERNS = [
...FLOATING_UI_RESTRICTED_IMPORT_PATTERNS,
]
-export const OVERLAY_RESTRICTED_IMPORT_PATTERNS = [
- {
- group: [
- '**/base/drawer',
- '**/base/drawer/index',
- ],
- message: 'Deprecated: use @langgenius/dify-ui/drawer instead. See issue #32767.',
- },
-]
-
export const HYOBAN_PREFER_TAILWIND_ICONS_OPTIONS = {
prefix: 'i-',
propMappings: {