Skip to content

Commit db6f7de

Browse files
committed
remove sample dashboard as default active when installed, ensure avaliable dashlet is configured for all project
1 parent 0ffaadb commit db6f7de

File tree

4 files changed

+17659
-60
lines changed

4 files changed

+17659
-60
lines changed

Diff for: config/sample/blocks/default/dashboards/project.json

+2-28
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,11 @@
11
{
2-
"evaluator": "and",
3-
"condition": [{
4-
"evaluator": "context-project",
5-
"condition": true
6-
}, {
7-
"evaluator": "uri-match",
8-
"condition": "/projects/{projectId}"
9-
}],
2+
"evaluator": "context-project",
3+
"condition": true,
104
"config": {
115
"project-dashboard": {
126
"availableDashlets": [{
137
"type": "sample-random-product-dashlet",
148
"title": "Random Product"
15-
}],
16-
"bindings": [{
17-
"key": "random-product1",
18-
"binding": "r1/c1"
19-
}, {
20-
"key": "random-product2",
21-
"binding": "r1/c1"
22-
}],
23-
"dashlets": [{
24-
"key": "random-product1",
25-
"title": "Random Product",
26-
"type": "sample-random-product-dashlet",
27-
"message": "A random product for you",
28-
"chrome": true
29-
}, {
30-
"key": "random-product2",
31-
"title": "Another Random Product",
32-
"type": "sample-random-product-dashlet",
33-
"message": "Oh wow another random product",
34-
"chrome": true
359
}]
3610
}
3711
},

Diff for: dist/build.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
{
22
"files": [
33
"index.js",
4-
"install.js",
5-
"uninstall.js",
64
"module.json",
5+
"uninstall.js",
6+
"install.js",
77
"templates/sample-template.html",
88
"data/cities.json",
99
"config/sample/blocks/default/project-context/project.json",
10-
"config/sample/blocks/default/document-actions/actions.json",
1110
"config/sample/blocks/default/dashboards/project.json",
11+
"config/sample/blocks/default/document-actions/actions.json",
1212
"config/sample/blocks/default/documents-list-buttons/folder.json",
13-
"config/sample/blocks/default/regions/document-properties.json",
1413
"config/sample/blocks/default/subcontext/document.json",
1514
"config/sample/pages/sample-products-page/center.json",
15+
"config/sample/blocks/default/regions/document-properties.json",
1616
"config/sample/pages/sample-products-page/page.json"
1717
]
1818
}

Diff for: dist/config/sample/blocks/default/dashboards/project.json

+2-28
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,11 @@
11
{
2-
"evaluator": "and",
3-
"condition": [{
4-
"evaluator": "context-project",
5-
"condition": true
6-
}, {
7-
"evaluator": "uri-match",
8-
"condition": "/projects/{projectId}"
9-
}],
2+
"evaluator": "context-project",
3+
"condition": true,
104
"config": {
115
"project-dashboard": {
126
"availableDashlets": [{
137
"type": "sample-random-product-dashlet",
148
"title": "Random Product"
15-
}],
16-
"bindings": [{
17-
"key": "random-product1",
18-
"binding": "r1/c1"
19-
}, {
20-
"key": "random-product2",
21-
"binding": "r1/c1"
22-
}],
23-
"dashlets": [{
24-
"key": "random-product1",
25-
"title": "Random Product",
26-
"type": "sample-random-product-dashlet",
27-
"message": "A random product for you",
28-
"chrome": true
29-
}, {
30-
"key": "random-product2",
31-
"title": "Another Random Product",
32-
"type": "sample-random-product-dashlet",
33-
"message": "Oh wow another random product",
34-
"chrome": true
359
}]
3610
}
3711
},

0 commit comments

Comments
 (0)