Skip to content

Commit

Permalink
refactor: simply recipe by skipping view creator
Browse files Browse the repository at this point in the history
  • Loading branch information
eoaksnes committed Oct 11, 2023
1 parent 9687152 commit cd16a9e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 56 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,42 +2,22 @@
"type": "CORE:RecipeLink",
"_blueprintPath_": "/plugins/form/read_only_primitives/blueprints/ReadOnlyPrimitives",
"initialUiRecipe": {
"name": "ViewSelector",
"name": "ReadOnly",
"type": "CORE:UiRecipe",
"plugin": "@development-framework/dm-core-plugins/view_selector/tabs",
"plugin": "@development-framework/dm-core-plugins/form",
"category": "edit",
"config": {
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorConfig",
"childTabsOnRender": true,
"items": [
{
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorItem",
"viewConfig": {
"type": "CORE:ReferenceViewConfig",
"recipe": "ReadOnly"
}
}
]
"type": "PLUGINS:dm-core-plugins/form/FormInput",
"fields": [
"stringRequired",
"stringOptional",
"numberRequired",
"numberOptional",
"integer",
"checkboxOptional",
"checkboxRequired"
],
"readOnly": true
}
},
"uiRecipes": [
{
"name": "ReadOnly",
"type": "CORE:UiRecipe",
"plugin": "@development-framework/dm-core-plugins/form",
"category": "edit",
"config": {
"type": "PLUGINS:dm-core-plugins/form/FormInput",
"fields": [
"stringRequired",
"stringOptional",
"numberRequired",
"numberOptional",
"integer",
"checkboxOptional",
"checkboxRequired"
],
"readOnly": true
}
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,9 @@
"type": "CORE:RecipeLink",
"_blueprintPath_": "/plugins/form/simple/blueprints/Simple",
"initialUiRecipe": {
"name": "ViewSelector",
"name": "Edit",
"type": "CORE:UiRecipe",
"plugin": "@development-framework/dm-core-plugins/view_selector/tabs",
"config": {
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorConfig",
"childTabsOnRender": true,
"items": [
{
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorItem",
"viewConfig": {
"type": "CORE:InlineRecipeViewConfig",
"recipe": {
"name": "Edit",
"type": "CORE:UiRecipe",
"description": "Default edit",
"plugin": "@development-framework/dm-core-plugins/form"
},
"scope": "self"
}
}
]
}
"description": "Default edit",
"plugin": "@development-framework/dm-core-plugins/form"
}
}

0 comments on commit cd16a9e

Please sign in to comment.