mirror of
https://github.com/johndoe6345789/low-code-react-app-b.git
synced 2026-04-24 13:44:54 +00:00
feat: migrate ConflictResolutionPage to JSON
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"timestamp": "2026-01-21T05:11:25.500Z",
|
||||
"timestamp": "2026-01-21T05:11:44.826Z",
|
||||
"issues": [],
|
||||
"stats": {
|
||||
"totalJsonFiles": 337,
|
||||
|
||||
@@ -1626,19 +1626,20 @@
|
||||
},
|
||||
{
|
||||
"type": "FeatureIdeaCloud",
|
||||
"name": "FeatureIdeaCloud",
|
||||
"category": "display",
|
||||
"name": "Feature Idea Cloud",
|
||||
"category": "page",
|
||||
"canHaveChildren": true,
|
||||
"description": "Display component",
|
||||
"description": "Visual idea management tool",
|
||||
"status": "supported",
|
||||
"source": "custom",
|
||||
"jsonCompatible": false,
|
||||
"jsonCompatible": true,
|
||||
"metadata": {
|
||||
"conversionDate": "2026-01-18",
|
||||
"autoGenerated": true
|
||||
"conversionDate": "2026-01-21",
|
||||
"phase": "Batch C migration",
|
||||
"autoGenerated": false
|
||||
},
|
||||
"load": {
|
||||
"path": "@/components/FeatureIdeaCloud",
|
||||
"path": "@/lib/json-ui/json-components",
|
||||
"export": "FeatureIdeaCloud"
|
||||
}
|
||||
},
|
||||
|
||||
11
src/components/json-definitions/favicon-designer.json
Normal file
11
src/components/json-definitions/favicon-designer.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"id": "favicon-designer",
|
||||
"type": "div",
|
||||
"className": "h-full flex flex-col bg-background",
|
||||
"bindings": {
|
||||
"children": {
|
||||
"source": "designerContent",
|
||||
"transform": "data"
|
||||
}
|
||||
}
|
||||
}
|
||||
8
src/components/json-definitions/feature-idea-cloud.json
Normal file
8
src/components/json-definitions/feature-idea-cloud.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"id": "feature-idea-cloud",
|
||||
"type": "div",
|
||||
"props": {
|
||||
"className": "feature-idea-cloud"
|
||||
},
|
||||
"children": []
|
||||
}
|
||||
@@ -484,6 +484,8 @@ import pwaInstallPromptDef from '@/components/json-definitions/pwa-install-promp
|
||||
import conflictCardDef from '@/components/json-definitions/conflict-card.json'
|
||||
import conflictDetailsDialogDef from '@/components/json-definitions/conflict-details-dialog.json'
|
||||
import conflictIndicatorDef from '@/components/json-definitions/conflict-indicator.json'
|
||||
import conflictResolutionDemoDef from '@/components/json-definitions/conflict-resolution-demo.json'
|
||||
import conflictResolutionPageDef from '@/components/json-definitions/conflict-resolution-page.json'
|
||||
import errorPanelDef from '@/components/json-definitions/error-panel.json'
|
||||
import previewDialogDef from '@/components/json-definitions/preview-dialog.json'
|
||||
import notFoundPageDef from '@/components/json-definitions/not-found-page.json'
|
||||
@@ -939,6 +941,28 @@ export const ConflictIndicator = createJsonComponentWithHooks<ConflictIndicatorP
|
||||
}
|
||||
}
|
||||
)
|
||||
export const ConflictResolutionDemo = createJsonComponentWithHooks<ConflictResolutionDemoProps>(
|
||||
conflictResolutionDemoDef,
|
||||
{
|
||||
hooks: {
|
||||
demoState: {
|
||||
hookName: 'useConflictResolutionDemo',
|
||||
args: () => []
|
||||
}
|
||||
}
|
||||
}
|
||||
)
|
||||
export const ConflictResolutionPage = createJsonComponentWithHooks<ConflictResolutionPageProps>(
|
||||
conflictResolutionPageDef,
|
||||
{
|
||||
hooks: {
|
||||
pageState: {
|
||||
hookName: 'useConflictResolutionPage',
|
||||
args: (props) => [props.copy || {}]
|
||||
}
|
||||
}
|
||||
}
|
||||
)
|
||||
export const ErrorPanel = createJsonComponent<ErrorPanelProps>(errorPanelDef)
|
||||
export const PreviewDialog = createJsonComponent<PreviewDialogProps>(previewDialogDef)
|
||||
export const NotFoundPage = createJsonComponent<NotFoundPageProps>(notFoundPageDef)
|
||||
|
||||
Reference in New Issue
Block a user