Skip to content
This repository was archived by the owner on Dec 2, 2025. It is now read-only.

Commit 8a4719e

Browse files
committed
Update the way the rollup config looks for files so it automatically picks up new files within the src folder
Add a section view example
1 parent 50ecc3f commit 8a4719e

File tree

5 files changed

+564
-5
lines changed

5 files changed

+564
-5
lines changed

samples/Umbraco14.Website/App_Plugins/Example.UI/umbraco-package.json

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"type": "dashboard",
1818
"alias": "example.ui.dashboard",
1919
"name": "Example UI Dashboard",
20-
"js": "/App_Plugins/Example.UI/scripts/welcome-dashboard.js",
20+
"js": "/App_Plugins/Example.UI/scripts/dashboards/welcome-dashboard.js",
2121
"weight": -1,
2222
"meta": {
2323
"label": "Welcome Dashboard",
@@ -34,7 +34,7 @@
3434
"type": "dashboard",
3535
"alias": "example.ui.dashboard.dialogs",
3636
"name": "Dialogs",
37-
"js": "/App_Plugins/Example.UI/scripts/custom-dialogs-dashboard.js",
37+
"js": "/App_Plugins/Example.UI/scripts/dashboards/custom-dialogs-dashboard.js",
3838
"weight": -1,
3939
"meta": {
4040
"label": "Dialogs",
@@ -46,6 +46,24 @@
4646
"match": "example.ui.section"
4747
}
4848
]
49-
}
49+
},
50+
{
51+
"type": "sectionView",
52+
"alias": "example.ui.dashboard.section.boxlayout",
53+
"js": "/App_Plugins/Example.UI/scripts/sections/box-layout-section.js",
54+
"name": "Box Layout",
55+
"meta": {
56+
"sections": [ "example.ui.section" ],
57+
"label": "Box Layout",
58+
"icon": "folder",
59+
"pathname": "box-layout"
60+
},
61+
"conditions": [
62+
{
63+
"alias": "Umb.Condition.SectionAlias",
64+
"match": "example.ui.section"
65+
}
66+
]
67+
}
5068
]
5169
}

0 commit comments

Comments
 (0)