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

Commit 08d9c34

Browse files
authored
Merge pull request #8 from umco/develop
Preparing v1.0.2 release
2 parents 688fac6 + 49b945e commit 08d9c34

File tree

9 files changed

+20
-43
lines changed

9 files changed

+20
-43
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The issue tracker is the preferred channel for [bug reports](#bugs),
1616
requests](#pull-requests), but please respect the following restrictions:
1717

1818
* Please **do not** use the issue tracker for personal support requests (use
19-
[Our Umbraco](https://our.umbraco.org/projects/backoffice-extensions/simple-content/simple-content-feedback) or Twitter).
19+
[Our Umbraco](https://our.umbraco.org/projects/backoffice-extensions/content-list/content-list-feedback) or Twitter).
2020

2121
* Please **do not** derail or troll issues. Keep the discussion on topic and
2222
respect the opinions of others.

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
image: Visual Studio 2017
22

33
# version format
4-
version: 1.0.1.{build}
4+
version: 1.0.2.{build}
55

66
# UMBRACO_PACKAGE_PRERELEASE_SUFFIX if a rtm release build this should be blank, otherwise if empty will default to alpha
77
# example UMBRACO_PACKAGE_PRERELEASE_SUFFIX=beta

build/install.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ if (!$contentFolder)
1313
$projectPathExists = Test-Path $projectPath
1414

1515
if ($projectPathExists) {
16-
Write-Host "Updating Simple Content App_Plugin files using PS as they have been excluded from the project"
16+
Write-Host "Updating Content List App_Plugin files using PS as they have been excluded from the project"
1717
Copy-Item $newPackageFiles $projectPath -Recurse -Force
1818
}
1919
}

build/package.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<language></language>
1717
<tags></tags>
1818
<dependencies>
19-
<dependency id="Our.Umbraco.InnerContent" version="[2,3)" />
19+
<dependency id="Our.Umbraco.InnerContent" version="[2.0.1,3)" />
2020
</dependencies>
2121
</metadata>
2222
<files />

src/Our.Umbraco.ContentList/Our.Umbraco.ContentList.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
<HintPath>..\packages\Newtonsoft.Json.10.0.2\lib\net45\Newtonsoft.Json.dll</HintPath>
4343
<Private>False</Private>
4444
</Reference>
45-
<Reference Include="Our.Umbraco.InnerContent, Version=2.0.6775.8222, Culture=neutral, processorArchitecture=MSIL">
46-
<HintPath>..\packages\Our.Umbraco.InnerContent.Core.2.0.0\lib\net45\Our.Umbraco.InnerContent.dll</HintPath>
45+
<Reference Include="Our.Umbraco.InnerContent, Version=2.0.6800.22164, Culture=neutral, processorArchitecture=MSIL">
46+
<HintPath>..\packages\Our.Umbraco.InnerContent.Core.2.0.1\lib\net45\Our.Umbraco.InnerContent.dll</HintPath>
4747
<Private>False</Private>
4848
</Reference>
4949
<Reference Include="System" />

src/Our.Umbraco.ContentList/PropertyEditors/ContentListPropertyEditor.cs

Lines changed: 5 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@
55

66
namespace Our.Umbraco.ContentList.PropertyEditors
77
{
8-
[PropertyEditor(PropertyEditorAlias, PropertyEditorName, PropertyEditorValueTypes.Json, PropertyEditorViewPath, Group = "rich content", Icon = "icon-page-add")]
9-
[PropertyEditorAsset(ClientDependencyType.Javascript, "~/App_Plugins/ContentList/contentlist.js")]
8+
[PropertyEditor(PropertyEditorAlias, PropertyEditorName, PropertyEditorValueTypes.Json, PropertyEditorViewPath, Group = "lists", Icon = "icon-page-add")]
9+
[PropertyEditorAsset(ClientDependencyType.Javascript, PropertyEditorJsPath)]
1010
public class ContentListPropertyEditor : SimpleInnerContentPropertyEditor
1111
{
1212
public const string PropertyEditorAlias = "Our.Umbraco.ContentList";
1313
public const string PropertyEditorName = "Content List";
1414
public const string PropertyEditorViewPath = "~/App_Plugins/ContentList/contentlist.html";
15+
public const string PropertyEditorJsPath = "~/App_Plugins/ContentList/contentlist.js";
1516

1617
public ContentListPropertyEditor()
1718
: base()
@@ -20,11 +21,6 @@ public ContentListPropertyEditor()
2021
DefaultPreValues.Add("hideLabel", "0");
2122
}
2223

23-
protected override PropertyValueEditor CreateValueEditor()
24-
{
25-
return new SimpleInnerContentPropertyValueEditor(base.CreateValueEditor());
26-
}
27-
2824
protected override PreValueEditor CreatePreValueEditor()
2925
{
3026
return new ContentListPreValueEditor();
@@ -35,27 +31,8 @@ internal class ContentListPreValueEditor : SimpleInnerContentPreValueEditor
3531
public ContentListPreValueEditor()
3632
: base()
3733
{
38-
// TODO: Once InnerContent exposes these extension methods, (in v2.0.1), uncomment the following lines. [LK:2018-07-20]
39-
////Fields.Add("maxItems", "Max Items", "number", "Set the maximum number of items allowed.");
40-
////Fields.AddHideLabel();
41-
42-
Fields.AddRange(new[]
43-
{
44-
new PreValueField
45-
{
46-
Key = "maxItems",
47-
Name = "Max Items",
48-
View = "number",
49-
Description = "Set the maximum number of items allowed."
50-
},
51-
new PreValueField
52-
{
53-
Key = "hideLabel",
54-
Name = "Hide Label",
55-
View = "boolean",
56-
Description = "Set whether to hide the editor label and have the list take up the full width of the editor window."
57-
}
58-
});
34+
Fields.Add("maxItems", "Max Items", "number", "Set the maximum number of items allowed.");
35+
Fields.AddHideLabel();
5936
}
6037
}
6138
}

src/Our.Umbraco.ContentList/Web/UI/App_Plugins/ContentList/contentlist.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
sortable="vm.sortable"
1010
allow-remove="vm.allowRemove"
1111
allow-edit="vm.allowEdit"
12-
on-remove="vm.remove($index, model.value)"
12+
on-remove="vm.remove($index)"
1313
on-edit="vm.edit($event, $index, item)">
1414
</umb-node-preview>
1515
</div>

src/Our.Umbraco.ContentList/Web/UI/App_Plugins/ContentList/contentlist.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,20 +63,20 @@
6363
vm.edit = edit;
6464
vm.remove = remove;
6565

66-
function add(evt) {
67-
vm.overlayConfig.event = evt;
66+
function add($event) {
67+
vm.overlayConfig.event = $event;
6868
vm.overlayConfig.data = { model: null, idx: $scope.model.value.length, action: "add" };
6969
vm.overlayConfig.show = true;
7070
};
7171

72-
function edit(evt, idx, itm) {
73-
vm.overlayConfig.event = evt;
74-
vm.overlayConfig.data = { model: itm, idx: idx, action: "edit" };
72+
function edit($event, $index, item) {
73+
vm.overlayConfig.event = $event;
74+
vm.overlayConfig.data = { model: item, idx: $index, action: "edit" };
7575
vm.overlayConfig.show = true;
7676
};
7777

78-
function remove(evt, idx) {
79-
$scope.model.value.splice(idx, 1);
78+
function remove($index) {
79+
$scope.model.value.splice($index, 1);
8080

8181
if ($scope.model.config.maxItems === "0" || $scope.model.value.length < $scope.model.config.maxItems) {
8282
vm.allowAdd = true;

src/Our.Umbraco.ContentList/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<package id="MiniProfiler" version="2.1.0" targetFramework="net452" />
3232
<package id="MySql.Data" version="6.9.9" targetFramework="net452" />
3333
<package id="Newtonsoft.Json" version="10.0.2" targetFramework="net452" />
34-
<package id="Our.Umbraco.InnerContent.Core" version="2.0.0" targetFramework="net452" />
34+
<package id="Our.Umbraco.InnerContent.Core" version="2.0.1" targetFramework="net452" />
3535
<package id="Owin" version="1.0" targetFramework="net452" />
3636
<package id="semver" version="1.1.2" targetFramework="net452" />
3737
<package id="SharpZipLib" version="0.86.0" targetFramework="net452" />

0 commit comments

Comments
 (0)