Skip to content

Commit

Permalink
refactor: extract Sidebar and Tabs out into their own plugins (#585)
Browse files Browse the repository at this point in the history
* refactor: extract Sidebar and Tabs out into their own plugins

* refactor: remove unused
  • Loading branch information
henrikbossart authored Oct 6, 2023
1 parent 2051afb commit 27cf130
Show file tree
Hide file tree
Showing 37 changed files with 205 additions and 137 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"initialUiRecipe": {
"name": "UiRecipesSelector",
"type": "CORE:UiRecipe",
"plugin": "@development-framework/dm-core-plugins/view_selector",
"plugin": "@development-framework/dm-core-plugins/view_selector/tabs",
"config": {
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorConfig",
"items": [
Expand Down Expand Up @@ -38,11 +38,10 @@
{
"name": "Tabs",
"type": "CORE:UiRecipe",
"plugin": "@development-framework/dm-core-plugins/view_selector",
"plugin": "@development-framework/dm-core-plugins/view_selector/tabs",
"config": {
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorConfig",
"childTabsOnRender": true,
"asSidebar": false
"childTabsOnRender": true
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"initialUiRecipe": {
"name": "UiRecipesSelector",
"type": "CORE:UiRecipe",
"plugin": "@development-framework/dm-core-plugins/view_selector",
"plugin": "@development-framework/dm-core-plugins/view_selector/tabs",
"config": {
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorConfig",
"items": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
"initialUiRecipe": {
"name": "Tabs",
"type": "CORE:UiRecipe",
"plugin": "@development-framework/dm-core-plugins/view_selector",
"plugin": "@development-framework/dm-core-plugins/view_selector/tabs",
"config": {
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorConfig",
"childTabsOnRender": true,
"asSidebar": false
"childTabsOnRender": true
}
},
"uiRecipes": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"initialUiRecipe": {
"name": "UiRecipesSelector",
"type": "CORE:UiRecipe",
"plugin": "@development-framework/dm-core-plugins/view_selector",
"plugin": "@development-framework/dm-core-plugins/view_selector/tabs",
"config": {
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorConfig",
"items": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,10 @@
{
"name": "View study",
"type": "CORE:UiRecipe",
"plugin": "@development-framework/dm-core-plugins/view_selector",
"plugin": "@development-framework/dm-core-plugins/view_selector/sidebar",
"config": {
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorConfig",
"childTabsOnRender": true,
"asSidebar": true,
"items": [
{
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorItem",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,10 @@
{
"name": "Tabs",
"type": "CORE:UiRecipe",
"plugin": "@development-framework/dm-core-plugins/view_selector",
"plugin": "@development-framework/dm-core-plugins/view_selector/tabs",
"config": {
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorConfig",
"childTabsOnRender": true,
"asSidebar": false,
"items": [
{
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorItem",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
"initialUiRecipe": {
"name": "Tabs",
"type": "CORE:UiRecipe",
"plugin": "@development-framework/dm-core-plugins/view_selector",
"plugin": "@development-framework/dm-core-plugins/view_selector/tabs",
"config": {
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorConfig",
"childTabsOnRender": true,
"asSidebar": false,
"items": [
{
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorItem",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
"initialUiRecipe": {
"name": "Tabs",
"type": "CORE:UiRecipe",
"plugin": "@development-framework/dm-core-plugins/view_selector",
"plugin": "@development-framework/dm-core-plugins/view_selector/tabs",
"config": {
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorConfig",
"childTabsOnRender": true,
"asSidebar": false
"childTabsOnRender": true
}
},
"uiRecipes": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
"initialUiRecipe": {
"name": "UiRecipesSelector",
"type": "CORE:UiRecipe",
"plugin": "@development-framework/dm-core-plugins/view_selector",
"plugin": "@development-framework/dm-core-plugins/view_selector/sidebar",
"config": {
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorConfig",
"childTabsOnRender": true,
"asSidebar": true,
"items": [
{
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorItem",
Expand Down
2 changes: 1 addition & 1 deletion example/app/data/DemoDataSource/recipes/file.recipe.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"initialUiRecipe": {
"name": "UiRecipesSelector",
"type": "CORE:UiRecipe",
"plugin": "@development-framework/dm-core-plugins/view_selector",
"plugin": "@development-framework/dm-core-plugins/view_selector/tabs",
"config": {
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorConfig",
"items": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
"initialUiRecipe": {
"name": "ViewSelector",
"type": "CORE:UiRecipe",
"plugin": "@development-framework/dm-core-plugins/view_selector",
"plugin": "@development-framework/dm-core-plugins/view_selector/tabs",
"config": {
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorConfig",
"childTabsOnRender": true,
"asSidebar": false,
"items": [
{
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorItem",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
"initialUiRecipe": {
"name": "ViewSelector",
"type": "CORE:UiRecipe",
"plugin": "@development-framework/dm-core-plugins/view_selector",
"plugin": "@development-framework/dm-core-plugins/view_selector/tabs",
"config": {
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorConfig",
"childTabsOnRender": true,
"asSidebar": false,
"items": [
{
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorItem",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
"initialUiRecipe": {
"name": "ViewSelector",
"type": "CORE:UiRecipe",
"plugin": "@development-framework/dm-core-plugins/view_selector",
"plugin": "@development-framework/dm-core-plugins/view_selector/tabs",
"config": {
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorConfig",
"childTabsOnRender": true,
"asSidebar": false,
"items": [
{
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorItem",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
"initialUiRecipe": {
"name": "ViewSelector",
"type": "CORE:UiRecipe",
"plugin": "@development-framework/dm-core-plugins/view_selector",
"plugin": "@development-framework/dm-core-plugins/view_selector/tabs",
"config": {
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorConfig",
"childTabsOnRender": true,
"asSidebar": false,
"items": [
{
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorItem",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
"initialUiRecipe": {
"name": "ViewSelector",
"type": "CORE:UiRecipe",
"plugin": "@development-framework/dm-core-plugins/view_selector",
"plugin": "@development-framework/dm-core-plugins/view_selector/tabs",
"config": {
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorConfig",
"childTabsOnRender": true,
"asSidebar": false,
"items": [
{
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorItem",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
"initialUiRecipe": {
"name": "ViewSelector",
"type": "CORE:UiRecipe",
"plugin": "@development-framework/dm-core-plugins/view_selector",
"plugin": "@development-framework/dm-core-plugins/view_selector/tabs",
"config": {
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorConfig",
"childTabsOnRender": true,
"asSidebar": false,
"items": [
{
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorItem",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
"initialUiRecipe": {
"name": "ViewSelector",
"type": "CORE:UiRecipe",
"plugin": "@development-framework/dm-core-plugins/view_selector",
"plugin": "@development-framework/dm-core-plugins/view_selector/tabs",
"config": {
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorConfig",
"childTabsOnRender": true,
"asSidebar": false,
"items": [
{
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorItem",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
"initialUiRecipe": {
"name": "ViewSelector",
"type": "CORE:UiRecipe",
"plugin": "@development-framework/dm-core-plugins/view_selector",
"plugin": "@development-framework/dm-core-plugins/view_selector/tabs",
"config": {
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorConfig",
"childTabsOnRender": true,
"asSidebar": false,
"items": [
{
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorItem",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"initialUiRecipe": {
"name": "ViewSelector",
"type": "CORE:UiRecipe",
"plugin": "@development-framework/dm-core-plugins/view_selector",
"plugin": "@development-framework/dm-core-plugins/view_selector/tabs",
"config": {}
},
"uiRecipes": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"initialUiRecipe": {
"name": "ViewSelector",
"type": "CORE:UiRecipe",
"plugin": "@development-framework/dm-core-plugins/view_selector",
"plugin": "@development-framework/dm-core-plugins/view_selector/tabs",
"config": {
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorConfig",
"childTabsOnRender": true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"initialUiRecipe": {
"name": "UiRecipesSelector",
"type": "CORE:UiRecipe",
"plugin": "@development-framework/dm-core-plugins/view_selector",
"plugin": "@development-framework/dm-core-plugins/view_selector/tabs",
"config": {
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorConfig",
"items": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"initialUiRecipe": {
"name": "ViewSelector",
"type": "CORE:UiRecipe",
"plugin": "@development-framework/dm-core-plugins/view_selector",
"plugin": "@development-framework/dm-core-plugins/view_selector/tabs",
"config": {
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorConfig",
"childTabsOnRender": true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"initialUiRecipe": {
"name": "UiRecipesSelector",
"type": "CORE:UiRecipe",
"plugin": "@development-framework/dm-core-plugins/view_selector",
"plugin": "@development-framework/dm-core-plugins/view_selector/tabs",
"config": {
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorConfig",
"items": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"initialUiRecipe": {
"name": "UiRecipesSelector",
"type": "CORE:UiRecipe",
"plugin": "@development-framework/dm-core-plugins/view_selector",
"plugin": "@development-framework/dm-core-plugins/view_selector/tabs",
"config": {
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorConfig",
"items": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"initialUiRecipe": {
"name": "ViewSelector",
"type": "CORE:UiRecipe",
"plugin": "@development-framework/dm-core-plugins/view_selector",
"plugin": "@development-framework/dm-core-plugins/view_selector/tabs",
"config": {
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorConfig",
"childTabsOnRender": true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"initialUiRecipe": {
"name": "ViewSelector",
"type": "CORE:UiRecipe",
"plugin": "@development-framework/dm-core-plugins/view_selector",
"plugin": "@development-framework/dm-core-plugins/view_selector/tabs",
"config": {
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorConfig",
"items": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
"initialUiRecipe": {
"name": "ViewSelector",
"type": "CORE:UiRecipe",
"plugin": "@development-framework/dm-core-plugins/view_selector",
"plugin": "@development-framework/dm-core-plugins/view_selector/tabs",
"config": {
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorConfig",
"childTabsOnRender": true,
"asSidebar": false,
"items": [
{
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorItem",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
"initialUiRecipe": {
"name": "ViewSelector",
"type": "CORE:UiRecipe",
"plugin": "@development-framework/dm-core-plugins/view_selector",
"plugin": "@development-framework/dm-core-plugins/view_selector/sidebar",
"config": {
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorConfig",
"childTabsOnRender": true,
"asSidebar": true,
"items": [
{
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorItem",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
"initialUiRecipe": {
"name": "ViewSelector",
"type": "CORE:UiRecipe",
"plugin": "@development-framework/dm-core-plugins/view_selector",
"plugin": "@development-framework/dm-core-plugins/view_selector/tabs",
"config": {
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorConfig",
"childTabsOnRender": true,
"asSidebar": false,
"items": [
{
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorItem",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
"initialUiRecipe": {
"name": "ViewSelector",
"type": "CORE:UiRecipe",
"plugin": "@development-framework/dm-core-plugins/view_selector",
"plugin": "@development-framework/dm-core-plugins/view_selector/tabs",
"config": {
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorConfig",
"childTabsOnRender": true,
"asSidebar": false,
"items": [
{
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorItem",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
"initialUiRecipe": {
"name": "ViewSelector",
"type": "CORE:UiRecipe",
"plugin": "@development-framework/dm-core-plugins/view_selector",
"plugin": "@development-framework/dm-core-plugins/view_selector/tabs",
"config": {
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorConfig",
"childTabsOnRender": true,
"asSidebar": false,
"items": [
{
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorItem",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,10 @@
{
"name": "AdminViewSelector",
"type": "CORE:UiRecipe",
"plugin": "@development-framework/dm-core-plugins/view_selector",
"plugin": "@development-framework/dm-core-plugins/view_selector/sidebar",
"config": {
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorConfig",
"childTabsOnRender": true,
"asSidebar": true,
"items": [
{
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorItem",
Expand Down Expand Up @@ -62,11 +61,10 @@
{
"name": "OperatorViewSelector",
"type": "CORE:UiRecipe",
"plugin": "@development-framework/dm-core-plugins/view_selector",
"plugin": "@development-framework/dm-core-plugins/view_selector/sidebar",
"config": {
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorConfig",
"childTabsOnRender": true,
"asSidebar": true,
"items": [
{
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorItem",
Expand Down
Loading

0 comments on commit 27cf130

Please sign in to comment.