Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-book
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-book
Commits
4757e4ff
提交
4757e4ff
authored
7月 22, 2026
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor(admin): colocate chapter structure feature
上级
553c787c
显示空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
12 行增加
和
12 行删除
+12
-12
SectionDialog.jsx
...tor-customer/features/chapter-structure/SectionDialog.jsx
+2
-2
TitleDialog.jsx
...ditor-customer/features/chapter-structure/TitleDialog.jsx
+2
-2
feature.js
...wangeditor-customer/features/chapter-structure/feature.js
+4
-4
section-menu.js
...ditor-customer/features/chapter-structure/section-menu.js
+0
-0
section-node.js
...ditor-customer/features/chapter-structure/section-node.js
+1
-1
title-menu.js
...geditor-customer/features/chapter-structure/title-menu.js
+0
-0
title-node.js
...geditor-customer/features/chapter-structure/title-node.js
+1
-1
index.jsx
apps/admin/src/common/wangeditor-customer/index.jsx
+2
-2
没有找到文件。
apps/admin/src/common/wangeditor-customer/
components/chapter-item
.jsx
→
apps/admin/src/common/wangeditor-customer/
features/chapter-structure/SectionDialog
.jsx
浏览文件 @
4757e4ff
...
...
@@ -12,8 +12,8 @@ import {
Col
,
}
from
"antd"
;
import
{
SlateEditor
,
SlateTransforms
,
SlateElement
}
from
"@wangeditor/editor"
;
import
{
fontFamilyList
,
fontSizeList
}
from
"../utils/setting"
;
import
"./index.less"
;
import
{
fontFamilyList
,
fontSizeList
}
from
"../
../
utils/setting"
;
import
".
./..
/index.less"
;
const
ChapterItemModal
=
(
props
,
ref
)
=>
{
const
{
editor
,
setSectionInfo
,
sectionInfo
,
setSectionVisible
}
=
props
;
...
...
apps/admin/src/common/wangeditor-customer/
components/chapter-title
.jsx
→
apps/admin/src/common/wangeditor-customer/
features/chapter-structure/TitleDialog
.jsx
浏览文件 @
4757e4ff
...
...
@@ -16,8 +16,8 @@ import {
}
from
"antd"
;
import
{
CloudUploadOutlined
}
from
"@ant-design/icons"
;
import
{
SlateEditor
,
SlateTransforms
,
SlateElement
}
from
"@wangeditor/editor"
;
import
{
fontFamilyList
,
fontSizeList
}
from
"../utils/setting"
;
import
"./index.less"
;
import
{
fontFamilyList
,
fontSizeList
}
from
"../
../
utils/setting"
;
import
".
./..
/index.less"
;
import
{
uploadFile
}
from
"@/utils/oss"
;
...
...
apps/admin/src/common/wangeditor-customer/features/chapter-structure/feature.js
浏览文件 @
4757e4ff
import
{
defineEditorFeature
}
from
'../../core/define-editor-feature'
import
itemMenu
from
'.
./../customer/ChapterItem
'
import
titleMenu
from
'.
./../customer/ChapterTitle
'
import
sectionNodeModule
from
'.
./../node/chapterItem
'
import
headerNodeModule
from
'.
./../node/chapterTitl
e'
import
itemMenu
from
'.
/section-menu
'
import
titleMenu
from
'.
/title-menu
'
import
sectionNodeModule
from
'.
/section-node
'
import
headerNodeModule
from
'.
/title-nod
e'
export
default
defineEditorFeature
({
id
:
'chapter-structure'
,
...
...
apps/admin/src/common/wangeditor-customer/
customer/ChapterItem
.js
→
apps/admin/src/common/wangeditor-customer/
features/chapter-structure/section-menu
.js
浏览文件 @
4757e4ff
File moved
apps/admin/src/common/wangeditor-customer/
node/chapterItem
.js
→
apps/admin/src/common/wangeditor-customer/
features/chapter-structure/section-node
.js
浏览文件 @
4757e4ff
import
{
DomEditor
,
SlateTransforms
}
from
"@wangeditor/editor"
;
import
iconClose
from
"@/assets/images/icon_chapter_close.png"
;
import
{
h
}
from
"snabbdom"
;
import
{
findNodeWithParent
}
from
"../utils/setting"
;
import
{
findNodeWithParent
}
from
"../
../
utils/setting"
;
const
withChapterSectionNode
=
(
editor
)
=>
{
const
{
isInline
,
isVoid
,
normalizeNode
}
=
editor
;
...
...
apps/admin/src/common/wangeditor-customer/
customer/ChapterTitle
.js
→
apps/admin/src/common/wangeditor-customer/
features/chapter-structure/title-menu
.js
浏览文件 @
4757e4ff
File moved
apps/admin/src/common/wangeditor-customer/
node/chapterTitl
e.js
→
apps/admin/src/common/wangeditor-customer/
features/chapter-structure/title-nod
e.js
浏览文件 @
4757e4ff
import
{
DomEditor
,
SlateTransforms
}
from
"@wangeditor/editor"
;
import
iconClose
from
"@/assets/images/icon_chapter_close.png"
;
import
{
h
}
from
"snabbdom"
;
import
{
findNodeWithParent
}
from
"../utils/setting"
;
import
{
findNodeWithParent
}
from
"../
../
utils/setting"
;
const
withChapterHeaderNode
=
(
editor
)
=>
{
const
{
isInline
,
isVoid
,
normalizeNode
}
=
editor
;
...
...
apps/admin/src/common/wangeditor-customer/index.jsx
浏览文件 @
4757e4ff
...
...
@@ -26,8 +26,8 @@ import ImageModal from "./components/image";
import
VideoModal
from
"./components/video"
;
import
GalleryModal
from
"./components/gallery"
;
import
AudioModal
from
"./components/audio"
;
import
ChapterTitleModal
from
"./
components/chapter-title
"
;
import
ChapterItemModal
from
"./
components/chapter-item
"
;
import
ChapterTitleModal
from
"./
features/chapter-structure/TitleDialog
"
;
import
ChapterItemModal
from
"./
features/chapter-structure/SectionDialog
"
;
import
PracticeModal
from
"./components/practice"
;
import
FormulaModal
from
"./features/formula/FormulaDialog"
;
import
TooltipModal
from
"./components/tooltip"
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论