xinyu-pro 0.22.5 → 0.22.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/editor/page.tsx +6 -3
- package/app/extensions/edit/[id]/page.tsx +2412 -2342
- package/app/extensions/page.tsx +1576 -1572
- package/app/page.tsx +2 -2
- package/bin/cli.js +226 -211
- package/lib/db.ts +1 -1
- package/lib/plugin-files.ts +186 -186
- package/package.json +2 -1
- package/version.json +2 -2
package/app/editor/page.tsx
CHANGED
|
@@ -1042,9 +1042,12 @@ function EditorPageContent() {
|
|
|
1042
1042
|
|
|
1043
1043
|
{/* 字段管理(可折叠面板) */}
|
|
1044
1044
|
<div className="shrink-0 border-b" style={{ borderColor: 'var(--color-border)' }}>
|
|
1045
|
-
<
|
|
1045
|
+
<div
|
|
1046
1046
|
onClick={() => setFieldsExpanded(!fieldsExpanded)}
|
|
1047
|
-
|
|
1047
|
+
onKeyDown={(e) => { if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); setFieldsExpanded(!fieldsExpanded); } }}
|
|
1048
|
+
role="button"
|
|
1049
|
+
tabIndex={0}
|
|
1050
|
+
className="w-full flex items-center justify-between px-3 py-2 transition-colors cursor-pointer"
|
|
1048
1051
|
style={{ color: 'var(--color-text-muted)' }}
|
|
1049
1052
|
>
|
|
1050
1053
|
<span className="flex items-center gap-1.5 text-xs font-bold">
|
|
@@ -1106,7 +1109,7 @@ function EditorPageContent() {
|
|
|
1106
1109
|
<i className={`fa-solid fa-chevron-${fieldsExpanded ? 'up' : 'down'}`}
|
|
1107
1110
|
style={{ fontSize: '10px' }} />
|
|
1108
1111
|
</div>
|
|
1109
|
-
</
|
|
1112
|
+
</div>
|
|
1110
1113
|
|
|
1111
1114
|
{fieldsExpanded && (
|
|
1112
1115
|
<div className="overflow-y-auto px-2 pb-2"
|