Skip to content

Commit f70b4bc

Browse files
authored
Merge pull request #431 from leekelleher/dev/v5.x
Preparing v5.1.0 release
2 parents 08bc56b + 05ff7e7 commit f70b4bc

34 files changed

+468
-158
lines changed

.github/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
[![Mozilla Public License](https://img.shields.io/badge/MPL--2.0-orange?label=license)](https://opensource.org/licenses/MPL-2) [![Latest version](https://img.shields.io/nuget/v/Umbraco.Community.Contentment?label=version)](https://marketplace.umbraco.com/package/umbraco.community.contentment) [![NuGet download count](https://img.shields.io/nuget/dt/Umbraco.Community.Contentment?label=downloads)](https://www.nuget.org/packages/Umbraco.Community.Contentment)
88

99
> [!IMPORTANT]
10-
> If you are looking for **Contentment for Umbraco 14** (Bellissima, the new backoffice), [please see the latest progress updates](https://github.com/leekelleher/umbraco-contentment/discussions/357)!
10+
> If you are looking for **Contentment for Umbraco 15** (the new backoffice), [please see the latest progress updates](https://github.com/leekelleher/umbraco-contentment/discussions/357)!
1111
1212
### What is it?
1313

.github/ROADMAP.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ Property Editors are:
140140
## v6
141141

142142
- [Support for the new Umbraco backoffice, aka Bellissima](https://github.com/leekelleher/umbraco-contentment/discussions/357).
143-
- Adds support for Umbraco 14 (.NET 8) _aka Bellissima_.
143+
- ~Adds support for Umbraco 14 (.NET 8) _aka Bellissima_~.
144+
- Adds support for Umbraco 15 (.NET 9).
144145
- Removes support for Umbraco 13 (.NET 8).
145146

146147

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.0.2
1+
5.1.0

src/Umbraco.Cms.13.x/Umbraco.Cms.13.x.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
</PropertyGroup>
1212

1313
<ItemGroup>
14-
<PackageReference Include="Umbraco.Cms" Version="13.2.0" />
15-
<PackageReference Include="uSync" Version="13.1.3" />
14+
<PackageReference Include="Umbraco.Cms" Version="13.5.2" />
15+
<PackageReference Include="uSync" Version="13.2.5" />
1616
<ProjectReference Include="..\Umbraco.Community.Contentment\Umbraco.Community.Contentment.csproj" />
1717
</ItemGroup>
1818

src/Umbraco.Cms.13.x/appsettings-schema.usync.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,10 @@
147147
"description": "Should the history view be on of off ? ",
148148
"default": true
149149
},
150+
"HistoryFolder": {
151+
"type": "string",
152+
"description": "Location of the history folder."
153+
},
150154
"DefaultExtension": {
151155
"type": "string",
152156
"description": "Default file extension for the uSync files. ",

src/Umbraco.Community.Contentment.sln

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ EndProject
6464
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Visual Studio", "Visual Studio", "{7E3CB058-A757-42C9-9277-EB949E1D7D0E}"
6565
ProjectSection(SolutionItems) = preProject
6666
.editorconfig = .editorconfig
67-
Umbraco.Community.Contentment.sln.licenseheader = Umbraco.Community.Contentment.sln.licenseheader
6867
EndProjectSection
6968
EndProject
7069
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Data Sources", "Data Sources", "{40B5A85D-28D1-4742-87E7-6306CC5F08C1}"

src/Umbraco.Community.Contentment.sln.licenseheader

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/Umbraco.Community.Contentment/DataEditors/Buttons/buttons.js

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
/* Copyright © 2020 Lee Kelleher.
1+
/* Copyright © 2020 Lee Kelleher.
22
* This Source Code Form is subject to the terms of the Mozilla Public
33
* License, v. 2.0. If a copy of the MPL was not distributed with this
44
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
55

66
angular.module("umbraco").controller("Umbraco.Community.Contentment.DataEditors.Buttons.Controller", [
77
"$scope",
8-
function ($scope) {
8+
"eventsService",
9+
function ($scope, eventsService) {
910

1011
// console.log("buttons.model", $scope.model);
1112

@@ -79,6 +80,21 @@ angular.module("umbraco").controller("Umbraco.Community.Contentment.DataEditors.
7980
$scope.umbProperty.setPropertyActions(vm.propertyActions);
8081
}
8182
}
83+
84+
var events = [];
85+
86+
events.push(eventsService.on("contentment.update.value", (event, args) => {
87+
if (args.alias === $scope.model.alias) {
88+
$scope.model.value = args.value;
89+
init();
90+
}
91+
}));
92+
93+
$scope.$on("$destroy", () => {
94+
for (var event in events) {
95+
eventsService.unsubscribe(events[event]);
96+
}
97+
});
8298
};
8399

84100
function clear() {

src/Umbraco.Community.Contentment/DataEditors/CheckboxList/checkbox-list.js

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
/* Copyright © 2019 Lee Kelleher.
1+
/* Copyright © 2019 Lee Kelleher.
22
* This Source Code Form is subject to the terms of the Mozilla Public
33
* License, v. 2.0. If a copy of the MPL was not distributed with this
44
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
55

66
angular.module("umbraco").controller("Umbraco.Community.Contentment.DataEditors.CheckboxList.Controller", [
77
"$scope",
8+
"eventsService",
89
"localizationService",
9-
function ($scope, localizationService) {
10+
function ($scope, eventsService, localizationService) {
1011

1112
// console.log("checkboxlist.model", $scope.model);
1213

@@ -60,6 +61,21 @@ angular.module("umbraco").controller("Umbraco.Community.Contentment.DataEditors.
6061
vm.toggle = toggle;
6162
vm.toggleChecked = vm.items.every(item => item.checked);
6263
}
64+
65+
var events = [];
66+
67+
events.push(eventsService.on("contentment.update.value", (event, args) => {
68+
if (args.alias === $scope.model.alias) {
69+
$scope.model.value = args.value;
70+
init();
71+
}
72+
}));
73+
74+
$scope.$on("$destroy", () => {
75+
for (var event in events) {
76+
eventsService.unsubscribe(events[event]);
77+
}
78+
});
6379
};
6480

6581
function changed(item) {

src/Umbraco.Community.Contentment/DataEditors/ConfigurationEditor/configuration-editor.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright © 2019 Lee Kelleher.
1+
/* Copyright © 2019 Lee Kelleher.
22
* This Source Code Form is subject to the terms of the Mozilla Public
33
* License, v. 2.0. If a copy of the MPL was not distributed with this
44
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
@@ -65,11 +65,11 @@ angular.module("umbraco").controller("Umbraco.Community.Contentment.DataEditors.
6565

6666
config.expressions[item.key] = {};
6767

68-
if (item.nameTemplate) { // TODO: [LK:2022-07-05] Deprecated.
68+
if (item.nameTemplate) {
6969
config.expressions[item.key]["name"] = $interpolate(item.nameTemplate);
7070
}
7171

72-
if (item.descriptionTemplate) { // TODO: [LK:2022-07-05] Deprecated.
72+
if (item.descriptionTemplate) {
7373
config.expressions[item.key]["description"] = $interpolate(item.descriptionTemplate);
7474
}
7575

0 commit comments

Comments
 (0)