Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove dummy admin-dashboard widget from the dashboard-wiget recipe #13486

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -58,30 +58,6 @@
]
}
]
},
{
"name": "content",
"data": [
{
"ContentItemId": "[js: uuid()]",
"ContentType": "HtmlDashboardWidget",
"DisplayText": "Orchard Core",
"Latest": true,
"Published": true,
"HtmlDashboardWidget": {},
"DashboardPart": {
"Position": 0.0,
"Width": 1.0,
"Height": 2.0
},
"HtmlBodyPart": {
"Html": "<ul class=\"list-group list-group-flush\">\n\t<li class=\"list-group-item\"><a href=\"https://orchardcore.net\" target=\"_blank\">Orchard Core site</a></li>\n\t<li class=\"list-group-item\"><a href=\"https://docs.orchardcore.net\" target=\"_blank\">Orchard Core docs</a></li>\n\t<li class=\"list-group-item\"><a href=\"https://github.com/OrchardCMS/OrchardCore\" target=\"_blank\">Orchard Core repo</a></li>\n\t<li class=\"list-group-item\"><a href=\"https://gitter.im/OrchardCMS/OrchardCore\" target=\"_blank\">Orchard Core chat</a></li>\n</ul>"
},
"TitlePart": {
"Title": "Orchard Core"
}
}
]
}
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"name": "dashboard-widgets-samples",
"displayName": "Admin Dashboard Widget Sample",
"description": "Provides a sample Admin Dashboard Widget.",
"author": "The Orchard Core Team",
"website": "https://orchardcore.net",
"version": "1.0.0",
"issetuprecipe": false,
"categories": [ "default" ],
"tags": [],
"steps": [
{
"name": "content",
"data": [
{
"ContentItemId": "[js: uuid()]",
"ContentType": "HtmlDashboardWidget",
"DisplayText": "Orchard Core",
"Latest": true,
"Published": true,
"HtmlDashboardWidget": {},
"DashboardPart": {
"Position": 0.0,
"Width": 1.0,
"Height": 2.0
},
"HtmlBodyPart": {
"Html": "<ul class=\"list-group list-group-flush\">\n\t<li class=\"list-group-item\"><a href=\"https://orchardcore.net\" target=\"_blank\">Orchard Core site</a></li>\n\t<li class=\"list-group-item\"><a href=\"https://docs.orchardcore.net\" target=\"_blank\">Orchard Core docs</a></li>\n\t<li class=\"list-group-item\"><a href=\"https://github.com/OrchardCMS/OrchardCore\" target=\"_blank\">Orchard Core repo</a></li>\n\t<li class=\"list-group-item\"><a href=\"https://gitter.im/OrchardCMS/OrchardCore\" target=\"_blank\">Orchard Core chat</a></li>\n</ul>"
},
"TitlePart": {
"Title": "Orchard Core"
}
}
]
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ private async Task<IEnumerable<RecipeDescriptor>> GetRecipesAsync(IEnumerable<IF
{
var recipeCollections = await Task.WhenAll(_recipeHarvesters.Select(x => x.HarvestRecipesAsync()));
var recipes = recipeCollections.SelectMany(x => x)
.Where(r => r.IsSetupRecipe == false &&
!r.Tags.Contains("hidden", StringComparer.InvariantCultureIgnoreCase) &&
features.Any(f => r.BasePath.Contains(f.Extension.SubPath, StringComparison.OrdinalIgnoreCase)));
.Where(r => !r.IsSetupRecipe &&
(r.Tags == null || !r.Tags.Contains("hidden", StringComparer.InvariantCultureIgnoreCase)) &&
features.Any(f => r.BasePath != null && f.Extension?.SubPath != null && r.BasePath.Contains(f.Extension.SubPath, StringComparison.OrdinalIgnoreCase)));

return recipes;
}
Expand Down
9 changes: 9 additions & 0 deletions src/docs/releases/1.7.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Orchard Core 1.7.0

Release date: Not yet released

## Change Logs

### `OrchardCore.AdminDashboard` Module

A sample widget is no longer auto created when the `OrchardCore.AdminDashboard` feature is enabled. If you like to see a sample widget, you may do so by executing the "Admin Dashboard Widget Sample" recipe by using the admin menu and navigate to **Configuration** >> **Recipes**