Skip to content

Commit

Permalink
🎉 v1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rickbutterfield committed Aug 18, 2023
1 parent 1a4f450 commit 723bf1b
Show file tree
Hide file tree
Showing 12 changed files with 33 additions and 8 deletions.
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ The Umbraco 10.4+ version of this package is [available via NuGet](https://www.n
To install the package, you can use either .NET CLI:

```
dotnet add package Umbraco.Community.BlockPreview --version 1.4.1
dotnet add package Umbraco.Community.BlockPreview --version 1.5.0
```

or the older NuGet Package Manager:

```
Install-Package Umbraco.Community.BlockPreview -Version 1.4.1
Install-Package Umbraco.Community.BlockPreview -Version 1.5.0
```

## Setup
Expand Down Expand Up @@ -74,6 +74,18 @@ For example:
}
```

### Custom View locations
If your block partials are not in the usual `/Views/Partials/block[grid|list]/Components/` paths, you can add custom locations in your `appsettings.json`:

```
"BlockPreview": {
"ViewLocations": {
"BlockList": ["/path/to/block/list/views/{0}.cshtml"],
"BlockGrid": ["/path/to/block/grid/views/{0}.cshtml"]
}
}
```

## Contribution guidelines
To raise a new bug, create an issue on the GitHub repository. To fix a bug or add new features, fork the repository and send a pull request with your changes. Feel free to add ideas to the repository's issues list if you would to discuss anything related to the library.

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.4.1
1.5.0
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
var areaCreate = target.closest('.umb-block-grid__create-button');
var blockCreateButton = target.closest('.umb-block-grid__block--inline-create-button');
var blockCreateButtonLast = target.closest('.umb-block-grid__block--last-inline-create-button');
var blockScaling = target.closest('.umb-block-grid__scale-handler') || target.closest('.--scale-mode');

if (!blockActions && !areaCreate && !blockCreateButton && !blockCreateButtonLast) {
block.edit();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Umbraco.Community.BlockPreview",
"version": "1.4.1",
"version": "1.5.0",
"allowPackageTelemetry": true,
"javascript": [
"~/App_Plugins/Umbraco.Community.BlockPreview/js/resources/preview.resource.js",
Expand Down
6 changes: 6 additions & 0 deletions src/Umbraco.Cms.11.x/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,11 @@
}
}
}
},
"BlockPreview": {
"ViewLocations": {
"BlockList": [ "/Views/Partials/testlist/Components/{0}.cshtml" ],
"BlockGrid": [ "/Views/Partials/testgrid/Components/{0}.cshtml" ]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
var areaCreate = target.closest('.umb-block-grid__create-button');
var blockCreateButton = target.closest('.umb-block-grid__block--inline-create-button');
var blockCreateButtonLast = target.closest('.umb-block-grid__block--last-inline-create-button');
var blockScaling = target.closest('.umb-block-grid__scale-handler') || target.closest('.--scale-mode');

if (!blockActions && !areaCreate && !blockCreateButton && !blockCreateButtonLast) {
block.edit();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Umbraco.Community.BlockPreview",
"version": "1.4.1",
"version": "1.5.0",
"allowPackageTelemetry": true,
"javascript": [
"~/App_Plugins/Umbraco.Community.BlockPreview/js/resources/preview.resource.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@
ng-bind-compile="markup"
publication-check
settings="block.settingsData"></div>
</div>

</div>
6 changes: 6 additions & 0 deletions src/Umbraco.Cms.12.x/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,11 @@
}
}
}
},
"BlockPreview": {
"ViewLocations": {
"BlockList": [ "/Views/Partials/testlist/Components/{0}.cshtml" ],
"BlockGrid": [ "/Views/Partials/testgrid/Components/{0}.cshtml" ]
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Umbraco.Community.BlockPreview",
"version": "1.4.1",
"version": "1.5.0",
"allowPackageTelemetry": true,
"javascript": [
"~/App_Plugins/Umbraco.Community.BlockPreview/js/resources/preview.resource.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<PackageId>Umbraco.Community.BlockPreview</PackageId>
<Title>Umbraco.Community.BlockPreview</Title>

<VersionPrefix>1.4.1</VersionPrefix>
<VersionPrefix>1.5.0</VersionPrefix>
<VersionSuffix></VersionSuffix>
<Authors>Rick Butterfield, Dave Woestenborghs, Matthew Wise</Authors>

Expand Down

0 comments on commit 723bf1b

Please sign in to comment.