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

Preparing v3.0.0 release #174

Merged
merged 91 commits into from
Oct 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
91 commits
Select commit Hold shift + click to select a range
2630dcc
Switched .csproj to new SDK-style
leekelleher Apr 30, 2021
062b8a7
Incremented version number, v3.0.0-develop
leekelleher Apr 30, 2021
d887c1c
Re-introduced post-build powershell script
leekelleher May 4, 2021
f4402a7
Replaced the `ServerVariablesParser.Parsing` with `INotificationHandl…
leekelleher May 4, 2021
085c3bb
Updated the Composers from using `Composition` to `IUmbracoBuilder`
leekelleher May 4, 2021
043d771
[WIP] Telemetry - replaced `DataTypeService.Saved` event hook with an…
leekelleher May 4, 2021
56e5e33
Updated using namespaces - mostly from "Umbraco." to "Umbraco.Cms."
leekelleher May 4, 2021
7f7bb11
`IIOHelper` **everywhere**
leekelleher May 4, 2021
d176426
Commented out the Assembly attributes
leekelleher May 4, 2021
dc6e312
Commented out the various MVC ViewEngine features.
leekelleher May 4, 2021
488fc9b
ContentBlockPreviewView - made relevant amends
leekelleher May 4, 2021
894be0d
SQL data-source - commented out the SQLCE bits
leekelleher May 4, 2021
0ddb4a3
Updated `GuidUdi.TryParse` calls with `UdiParser.TryParse`
leekelleher May 4, 2021
49a6bb5
TIL there's a `IRequestAccessor` to access request querystring values
leekelleher May 4, 2021
e1f4a93
Updated `UdiEntityType.FromUmbracoObjectType` to .GetUdiType` extensi…
leekelleher May 4, 2021
dc71e81
[WIP] API Controllers - struggling to get them to work
leekelleher May 4, 2021
60ef6eb
PublishedContentContractResolver - commented out deprecated properties
leekelleher May 4, 2021
10d3e4f
Removed the Assembly attribute classes
leekelleher May 4, 2021
aad22d2
Updated `.csproj` meta-data
leekelleher May 4, 2021
2633977
Removed my `UmbracoXPathPathSyntaxParser` hack
leekelleher May 10, 2021
b91db4e
Removed "SolutionDir" parameter from build script
leekelleher May 10, 2021
6bc563d
Fixed up more "using" namespaces
leekelleher May 10, 2021
05d7278
Fixed view paths for the DataList sources and editors
leekelleher May 10, 2021
0cda4b5
FileSystem data-source: Refactored
leekelleher May 10, 2021
0f385ef
SQL data-source: Refactored
leekelleher May 10, 2021
af475f4
UmbracoEntity data-source: Refactored
leekelleher May 10, 2021
4cc1e4a
XML data-source: Found a bug
leekelleher May 10, 2021
3f5087f
UmbracoImageCrop data-source: Fixed view paths
leekelleher May 10, 2021
cf3612e
ContentmentTreeController - made class public
leekelleher May 10, 2021
cf6dc94
Enum data-source API: Refactored
leekelleher May 10, 2021
f596dde
`CultureTypes.SpecificCultures` returns "World" on .NET 5
leekelleher May 10, 2021
30ea2ed
Globalization data-source: amended
leekelleher May 11, 2021
50ce097
Added ContentmentSettings class
leekelleher May 11, 2021
4797814
⚠ [BREAKING-CHANGE]
leekelleher May 11, 2021
48ede32
⚠ [BREAKING-CHANGE]
leekelleher May 11, 2021
cfd421a
ServerVariables - injected Contentment settings
leekelleher May 11, 2021
0a47280
Renamed `ContentmentTelemetryComponent` to `ContentmentTelemetryHandler`
leekelleher May 11, 2021
d9b0e06
Re-enabled the `DisableContentmentTree()` extension
leekelleher May 11, 2021
ea723d7
Upgraded Umbraco.Cms dependency to v9.0.0-beta002
leekelleher May 13, 2021
10ad90a
Renamed `ServerVariablesParsing` to `ServerVariablesParsingNotification`
leekelleher May 13, 2021
43af9a7
Telemetry - tiny refactor
leekelleher May 13, 2021
e54dca5
Constants - temporarily removed leading tilde.
leekelleher May 13, 2021
cf3dba5
Removed the `HtmlHelperExtensions`
leekelleher May 13, 2021
6109d80
ContentBlocks - Preview API controller works
leekelleher May 13, 2021
fbbf095
Updated TODO comments
leekelleher May 13, 2021
05480ea
Members data-source - got `ConvertValue` working
leekelleher May 13, 2021
89b2247
PublishedContentContractResolver - amends
leekelleher May 13, 2021
362dc31
:notebook: :roller_coaster: Updated README+ROADMAP
leekelleher May 14, 2021
75e7227
Upgraded Umbraco.Cms dependency to v9.0.0-beta003
leekelleher May 28, 2021
8ce57c0
Rebased on latest Contentment v2.0 branch
leekelleher Jun 8, 2021
3050523
Upgraded Umbraco.Cms dependency to v9.0.0-beta004
leekelleher Jun 22, 2021
8c23c87
Replaced registering CSS/JS assets in package.manifest with C# regist…
leekelleher Jun 22, 2021
35d25a1
Merge branch 'develop' into dev/wip/umb9beta001
leekelleher Jul 2, 2021
b2ee809
Merge branch 'develop' into dev/wip/umb9beta001
leekelleher Jul 5, 2021
3da966b
Reworked CSS/JS assets
leekelleher Jul 7, 2021
00e791c
Notifications - relocated the classes
leekelleher Jul 7, 2021
883bb93
Moved the startup logic back to the Composer class
leekelleher Jul 7, 2021
4e37e47
Removed "Unlock Features" option
leekelleher Jul 7, 2021
2771a22
Updated Constants
leekelleher Jul 7, 2021
7737f6c
Refactored the `RemoveTreeController` hack
leekelleher Jul 7, 2021
b539cc3
Ran "Code Cleanup"
leekelleher Jul 7, 2021
3d2e0fe
Some `IOHelper` cleanup
leekelleher Jul 7, 2021
7f8d799
DataList - Members data-source
leekelleher Jul 7, 2021
41c169d
DataList - Number Range data-source refactored
leekelleher Jul 7, 2021
13c5967
ConfigurationEditor - help note, closed the details
leekelleher Jul 7, 2021
89ce4d5
Upgraded Umbraco.Cms dependency to v9.0.0-rc001
leekelleher Jul 8, 2021
9ef9b5e
Incremented version number, v3.0.0-alpha001
leekelleher Jul 8, 2021
833ca9f
Build script - tweaks and fixes
leekelleher Jul 8, 2021
e08743c
Fixed Umbraco NuGet package dependency names
leekelleher Jul 8, 2021
8171c71
NuGet - fixed bug with post-install content copy
leekelleher Jul 9, 2021
c6ab159
Update to Umbraco 9 RC2 and fix breaking changes
arknu Aug 19, 2021
9e85915
Merge pull request #127 from arknu/umb9-rc2
leekelleher Aug 19, 2021
d70262a
ContentBlocks - corrected namespace in Razor view
leekelleher Sep 8, 2021
91c1f75
Incremented version number, v3.0.0-alpha004
leekelleher Sep 8, 2021
b57bf92
DataList - UmbracoContent, UmbracoContext refactor
leekelleher Sep 8, 2021
0f60d6a
Incremented version number, v3.0.0-alpha005
leekelleher Sep 9, 2021
46b8b60
Don't run upgrades if Umbraco isn't set up #135
arknu Sep 29, 2021
c2296c3
Merge pull request #137 from arknu/component-initialize
leekelleher Oct 1, 2021
24297dc
Merge branch 'dev/v2.x' into dev/v3.0
leekelleher Oct 2, 2021
2218f95
Incremented version number, v3.0.0-alpha006
leekelleher Oct 2, 2021
11276a0
Merge branch 'dev/v2.x' into dev/v3.0
leekelleher Oct 5, 2021
de3e709
Code amends to be v9.0.0 compatible
leekelleher Oct 5, 2021
5c2a922
[WIP] Multi-targeting .NET 4.7.2 and 5.0+
leekelleher Sep 19, 2021
5455ede
Merge branch 'dev/wip/dotnet-multi-target' into dev/v3.x
leekelleher Oct 11, 2021
69d02d8
Merge branch 'dev/v3.x' into dev/v3.0
leekelleher Oct 11, 2021
d1b0802
Merge branch 'dev/v2.x' into dev/v3.0
leekelleher Oct 15, 2021
7e5add1
:notebook: Updated README
leekelleher Oct 15, 2021
4f9d2b8
Incremented version number, v3.0.0.
leekelleher Oct 15, 2021
e9b95d4
Merge branch 'dev/v2.x' into dev/v3.0
leekelleher Oct 15, 2021
b7ae1b8
:heart_eyes_cat: Updated CONTRIBUTING
leekelleher Oct 15, 2021
012804e
:heart_eyes_cat: Updated CONTRIBUTING
leekelleher Oct 15, 2021
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
21 changes: 17 additions & 4 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
This project is governed by a [Code of Conduct](CODE_OF_CONDUCT.md).

First, before writing any code, [please open an issue](https://github.com/leekelleher/umbraco-contentment/issues), let's have a discussion about any features or ideas that you may have.
### General gist

Once the feature or idea is fleshed out, let's hack!
First, before writing any code, [please open an issue](https://github.com/leekelleher/umbraco-contentment/issues), or [let's have a discussion](https://github.com/leekelleher/umbraco-contentment/discussions) about any features or ideas that you may have.

Once the feature or idea is fleshed out, it's hacking time!

1. Fork it
2. Branch it
Expand All @@ -15,7 +17,18 @@ Once the feature or idea is fleshed out, let's hack!
> The above is respectively taken from the [Clearwater framework repository](https://github.com/clearwater-rb/clearwater/blob/master/README.md#contributing).<br>
> Kudos to [Jamie Gaskins](https://github.com/jgaskins) for framing the guidelines so succinctly.

---

Further reading, I've been thinking a lot about Jeff Geerling's post ["Why I close PRs (OSS project maintainer notes)"](https://www.jeffgeerling.com/blog/2016/why-i-close-prs-oss-project-maintainer-notes) lately. If you do submit a PR and feel that I'm closing it down, this is probably the rationale behind it.
### Branching information

Given there are now multiple versions of Contentment that support multiple versions of Umbraco, please make note of the branching structure.

- The main [`develop`](https://github.com/leekelleher/umbraco-contentment/tree/develop) branch is where the latest work happens. This defaults to the most recent version of Contentment, (at the time of writing, this is v3.x).
- The [`dev/v1.x`](https://github.com/leekelleher/umbraco-contentment/tree/dev/v1.x) branch is for Contentment **v1.4.x** patch releases, this targets Umbraco **v8.6.1**.
- The [`dev/v2.x`](https://github.com/leekelleher/umbraco-contentment/tree/dev/v2.x) branch is for Contentment **v2.2.x** patch releases, this targets Umbraco **v8.14.0**.
- The [`dev/v3.x`](https://github.com/leekelleher/umbraco-contentment/tree/dev/v3.x) branch is for Contentment **v3.x** (current) releases, this targets both Umbraco **v8.17.0** and **v9.0.0**.


### Further reading

I've been thinking a lot about Jeff Geerling's post ["Why I close PRs (OSS project maintainer notes)"](https://www.jeffgeerling.com/blog/2016/why-i-close-prs-oss-project-maintainer-notes) lately. If you do submit a PR and feel that I'm closing down the conversation, this is most likely the rationale behind it.

15 changes: 10 additions & 5 deletions .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,25 @@ Downloads are available on the [releases page](https://github.com/leekelleher/um

_**Please note...**_

- v3.x has been developed against **Umbraco v9.0-RC001** and will support that version and above.
- v2.x has been developed against **Umbraco v8.14.0** and will support that and future Umbraco v8.x releases.
- v3.x has been developed against **Umbraco v8.17.0** and **Umbraco v9.0.0** and will support those versions and above.
- v2.x has been developed against **Umbraco v8.14.0** and it will still work on current Umbraco v8.x releases.
- v1.x has been developed against **Umbraco v8.6.1**, it will still work on current Umbraco v8.x releases.

With Contentment v3.x (Umbraco v9.0 / .NET 5), you can only install a package from the [NuGet package repository](https://www.nuget.org/packages/Our.Umbraco.Community.Contentment). For previous Contentment versions, the package can be installed from either [Our Umbraco](https://our.umbraco.com/packages/backoffice-extensions/contentment/) or NuGet package repositories, or build manually from the source-code:
With Contentment v3.x on Umbraco v9.0 (.NET 5), you can only install a package from the [NuGet package repository](https://www.nuget.org/packages/Our.Umbraco.Community.Contentment). For Umbraco v8.x, the package can still be installed from either [Our Umbraco](https://our.umbraco.com/packages/backoffice-extensions/contentment/) or NuGet package repositories.

##### NuGet package repository

To [install from NuGet](https://www.nuget.org/packages/Our.Umbraco.Community.Contentment), you can run the following command from within Visual Studio:

PM> Install-Package Our.Umbraco.Community.Contentment

...or if you are using the `dotnet` command line interface?

dotnet add package Our.Umbraco.Community.Contentment

##### Our Umbraco package repository

For Contentment v1.x and v2.x, you can install from Our Umbraco, please download the package from:
If you are using Umbraco v8.x, and prefer to install Contentment from the backoffice, the package can be downloaded from the Our Umbraco package repository:

> <https://our.umbraco.com/packages/backoffice-extensions/contentment/>

Expand All @@ -69,6 +73,7 @@ For Contentment v1.x and v2.x, you can install from Our Umbraco, please download
- **Data List**
- When using the Umbraco Content data source with an XPath query, inside a Nested Content editor, it will not be able to identify the contextual containing node ID. e.g. your XPath query will not work. [See #30 for details.](https://github.com/leekelleher/umbraco-contentment/issues/30)
- When using the Umbraco Content data source with an XPath query that contains a `$` prefix parameter, the preview will not display the items. [See #120 for details.](https://github.com/leekelleher/umbraco-contentment/issues/120)
- With Umbraco v9 (Contentment v3), SQL data source does not support querying SQL CE. [See #172 for details.]()


### Documentation
Expand Down Expand Up @@ -135,7 +140,7 @@ For more information about the Mozilla Public License, please visit: <https://ww
- [Lee Kelleher](https://leekelleher.com) - ([GitHub](https://github.com/leekelleher), [Twitter](https://twitter.com/leekelleher))

<details>
<summary>Current development effort: <b>1050+ hours</b> (between 2019-03-13 to 2021-07-09)</summary>
<summary>Current development effort: <b>1097+ hours</b> (between 2019-03-13 to 2021-10-15)</summary>

_To give you an idea of how much human developer time/effort has been put into making this package._

Expand Down
10 changes: 5 additions & 5 deletions .github/ROADMAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,16 @@ Property Editors are:

- [Templated Label](https://github.com/leekelleher/umbraco-contentment/discussions/100)

### v2.3

- [Data List: Groups](https://github.com/leekelleher/umbraco-contentment/discussions/90)


## v3

### v3.0

- A breaking-change release of latest v2.x features that compiles against Umbraco CMS v9.0 (.NET 5).
- _Under active development!_ [See my developer's journal for the latest updates.](https://github.com/leekelleher/umbraco-contentment/discussions/105) A breaking-change release _(following SemVer guidelines),_ of v2.x features that will compile against both Umbraco v8.17 and v9.0.

### v3.1

- [Data List: Groups](https://github.com/leekelleher/umbraco-contentment/discussions/90)


## Future feature releases
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,5 @@ build/assets/
src/packages/*/**
/tools/*.exe
/build/__umb/*
/build/__nuget/*
/build/build-push-nuget.ps1
/build/build-push-umb.ps1
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.2.1
3.0.0
35 changes: 35 additions & 0 deletions build/_nuget-post-install.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<!-- Copyright © 2021 Bjarke Berg.
- This Source Code has been derived from Bjarke Berg's Open Street Map.
- https://github.com/bergmania/Bergmania.OpenStreetMap/blob/main/Bergmania.OpenStreetMap/build/Bergmania.OpenStreetMap.targets
- Modified under the permissions of the MIT License.
- Modifications are licensed under the Mozilla Public License.
- Copyright © 2021 Lee Kelleher.
- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at https://mozilla.org/MPL/2.0/. -->
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<PropertyGroup>
<ContentmentPackageContentFilesPath>$(MSBuildThisFileDirectory)..\content\App_Plugins\Contentment\**\*.*</ContentmentPackageContentFilesPath>
</PropertyGroup>

<Target Name="CopyContentmentPackageAssets" BeforeTargets="Build">
<ItemGroup>
<ContentmentPackageContentFiles Include="$(ContentmentPackageContentFilesPath)" />
</ItemGroup>
<Message Text="Copying Contentment package files: $(ContentmentPackageContentFilesPath) - #@(ContentmentPackageContentFiles->Count()) files" Importance="high" />
<Copy
SourceFiles="@(ContentmentPackageContentFiles)"
DestinationFiles="@(ContentmentPackageContentFiles->'$(MSBuildProjectDirectory)\App_Plugins\Contentment\%(RecursiveDir)%(Filename)%(Extension)')"
SkipUnchangedFiles="true" />
</Target>

<Target Name="ClearContentmentPackageAssets" BeforeTargets="Clean">
<ItemGroup>
<ContentmentPackageDir Include="$(MSBuildProjectDirectory)\App_Plugins\Contentment\" />
</ItemGroup>
<Message Text="Clear old Contentment package files" Importance="high" />
<RemoveDir Directories="@(ContentmentPackageDir)" />
</Target>

</Project>
21 changes: 12 additions & 9 deletions build/build-assets.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,27 @@
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

param(
[string]$SolutionDir,
[string]$TargetFramework,
[string]$TargetDir,
[string]$ProjectName,
[string]$ProjectDir,
[string]$ConfigurationName
);

. "${SolutionDir}_vars.ps1";
$rootDir = "${ProjectDir}..\..";
. "${rootDir}\src\_vars.ps1";

Write-Host $ConfigurationName;

if ($ConfigurationName -eq 'Debug') {
Write-Host $SolutionDir;
Write-Host $TargetFramework;
Write-Host $TargetDir;
Write-Host $ProjectName;
Write-Host $ProjectDir;
Write-Host $TargetDevWebsite;
}

$targetFolder = "${SolutionDir}..\build\assets";
$targetFolder = "${rootDir}\build\assets";

# If it already exists, delete it
if (Test-Path -Path $targetFolder) {
Expand All @@ -32,9 +33,11 @@ if (Test-Path -Path $targetFolder) {

# Copy DLL / PDB
$binFolder = "${targetFolder}\bin";

if (!(Test-Path -Path $binFolder)) {New-Item -Path $binFolder -Type Directory;}
Copy-Item -Path "${TargetDir}${ProjectName}.*" -Destination $binFolder;
Copy-Item -Path "${ProjectDir}\bin\${ConfigurationName}\net472\${ProjectName}.*" -Destination $binFolder;
$net50Folder = "${targetFolder}\net50";
if (!(Test-Path -Path $net50Folder)) {New-Item -Path $net50Folder -Type Directory;}
Copy-Item -Path "${ProjectDir}\bin\${ConfigurationName}\net50\${ProjectName}.*" -Destination $net50Folder;

# Copy package front-end files assets
$pluginFolder = "${targetFolder}\App_Plugins\Contentment\";
Expand All @@ -61,14 +64,14 @@ foreach($razorFile in $razorFiles){
# CSS - Bundle & Minify
$targetCssPath = "${pluginFolder}contentment.css";
Get-Content -Raw -Path "${ProjectDir}**\**\*.css" | Set-Content -Encoding UTF8 -Path $targetCssPath;
& "${SolutionDir}..\tools\AjaxMinifier.exe" $targetCssPath -o $targetCssPath
& "${rootDir}\tools\AjaxMinifier.exe" $targetCssPath -o $targetCssPath

# JS - Bundle & Minify
$targetJsPath = "${pluginFolder}contentment.js";
Get-Content -Raw -Path "${ProjectDir}**\**\*.js" | Set-Content -Encoding UTF8 -Path $targetJsPath;
& "${SolutionDir}..\tools\AjaxMinifier.exe" $targetJsPath -o $targetJsPath
& "${rootDir}\tools\AjaxMinifier.exe" $targetJsPath -o $targetJsPath

# In debug mode, copy the assets over to the local dev website
if ($ConfigurationName -eq 'Debug' -AND -NOT($TargetDevWebsite -eq '')) {
Copy-Item -Path "${targetFolder}\*" -Force -Recurse -Destination $TargetDevWebsite;
Copy-Item -Path "${targetFolder}\*" -Force -Recurse -Destination $TargetDevWebsite | Where { $_.FullName -NotLike "*\net50\*" };
}
11 changes: 6 additions & 5 deletions build/build-pkgs.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ $nugetPackageId = 'Our.Umbraco.Community.Contentment';
$projectNamespace = 'Umbraco.Community.Contentment';
$packageName = 'Contentment';
$nugetTitle = "${packageName} for Umbraco";
$packageDescription = "${packageName}, a collection of components for Umbraco 8.";
$packageDescription = "${packageName}, a collection of components for Umbraco.";
$packageUrl = 'https://github.com/leekelleher/umbraco-contentment';
$iconUrl = 'https://raw.githubusercontent.com/leekelleher/umbraco-contentment/master/docs/assets/img/logo.png';
$licenseName = 'Mozilla Public License Version 2.0';
$licenseUrl = 'https://mozilla.org/MPL/2.0/';
$authorName = 'Lee Kelleher';
$authorUrl = 'https://leekelleher.com/';
$minUmbracoVersion = 8,14,0;
$minUmbracoVersion = 8,17,0;
$copyright = "Copyright " + [char]0x00A9 + " " + (Get-Date).year + " $authorName";
$tags = "umbraco";

Expand Down Expand Up @@ -81,7 +81,7 @@ $umbracoPackageXml.umbPackage.info.readme."#cdata-section" = $packageDescription

$filesXml = $umbracoPackageXml.CreateElement("files");

$assetFiles = Get-ChildItem -Path $assetsFolder -File -Recurse;
$assetFiles = Get-ChildItem -Path $assetsFolder -File -Recurse | Where { $_.FullName -NotLike "*\net50\*" };
foreach($assetFile in $assetFiles){

$hash = Get-FileHash -Path $assetFile.FullName -Algorithm MD5;
Expand All @@ -106,8 +106,9 @@ Compress-Archive -Path "${umbFolder}\*" -DestinationPath "${artifactsFolder}\Con
# Populate the NuGet package manifest

Copy-Item -Path "${rootFolder}\docs\assets\img\logo.png" -Destination "${assetsFolder}\icon.png";
& $nuget_exe pack "${buildFolder}\manifest-nuget-core.nuspec" -BasePath $assetsFolder -OutputDirectory $artifactsFolder -Version "$version" -Properties "id=$nugetPackageId;version=$version;title=$nugetTitle;authors=$authorName;owners=$authorName;projectUrl=$packageUrl;requireLicenseAcceptance=false;description=$packageDescription;copyright=$copyright;license=MPL-2.0;language=en;tags=$tags;minUmbracoVersion=$($minUmbracoVersion[0]).$($minUmbracoVersion[1]).$($minUmbracoVersion[2]);repositoryUrl=$packageUrl;"
& $nuget_exe pack "${buildFolder}\manifest-nuget-web.nuspec" -BasePath $assetsFolder -OutputDirectory $artifactsFolder -Version "$version" -Properties "id=$nugetPackageId;version=$version;title=$nugetTitle;authors=$authorName;owners=$authorName;projectUrl=$packageUrl;requireLicenseAcceptance=false;description=$packageDescription;copyright=$copyright;license=MPL-2.0;language=en;tags=$tags;minUmbracoVersion=$($minUmbracoVersion[0]).$($minUmbracoVersion[1]).$($minUmbracoVersion[2]);repositoryUrl=$packageUrl;"
Copy-Item -Path "${buildFolder}\_nuget-post-install.targets" -Destination "${assetsFolder}\${nugetPackageId}.targets";
& $nuget_exe pack "${buildFolder}\manifest-nuget-core.nuspec" -BasePath $assetsFolder -OutputDirectory $artifactsFolder -Version "$version" -Properties "id=$nugetPackageId;version=$version;title=$nugetTitle;authors=$authorName;owners=$authorName;projectUrl=$packageUrl;requireLicenseAcceptance=false;description=$packageDescription;copyright=$copyright;license=MPL-2.0;language=en;tags=$tags;repositoryUrl=$packageUrl;"
& $nuget_exe pack "${buildFolder}\manifest-nuget-web.nuspec" -BasePath $assetsFolder -OutputDirectory $artifactsFolder -Version "$version" -Properties "id=$nugetPackageId;version=$version;title=$nugetTitle;authors=$authorName;owners=$authorName;projectUrl=$packageUrl;requireLicenseAcceptance=false;description=$packageDescription;copyright=$copyright;license=MPL-2.0;language=en;tags=$tags;repositoryUrl=$packageUrl;"


# Tidy up folders
Expand Down
10 changes: 7 additions & 3 deletions build/manifest-nuget-core.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,17 @@
<repository type="git" url="$repositoryUrl$" />
<dependencies>
<group targetFramework="net472">
<dependency id="UmbracoCms.Core" version="[$minUmbracoVersion$, 9.0.0)" />
<dependency id="UmbracoCms.Web" version="[$minUmbracoVersion$, 9.0.0)" />
<dependency id="UmbracoCms.Web" version="[8.17.0, 9.0.0)" />
</group>
<group targetFramework="net50">
<dependency id="Umbraco.Cms.Web.Website" version="[9.0.0, 10.0.0)" />
<dependency id="Umbraco.Cms.Web.BackOffice" version="[9.0.0, 10.0.0)" />
</group>
</dependencies>
</metadata>
<files>
<file src="bin\*.*" target="lib\net472" />
<file src="bin\*.dll" target="lib\net472" />
<file src="net50\*.dll" target="lib\net5.0" />
<file src="icon.png" target="" />
</files>
</package>
1 change: 1 addition & 0 deletions build/manifest-nuget-web.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
</metadata>
<files>
<file src="App_Plugins\**\*.*" target="content\App_Plugins" />
<file src="*.targets" target="buildTransitive\" />
<file src="icon.png" target="" />
</files>
</package>
3 changes: 3 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,6 @@ If you are unfamiliar with how to do this, then please refer to documentation, g

Information about Contentment's [telemetry feature](../docs/telemetry.md).

#### Tree Dashboard

Information about Contentment's [tree dashboard](../docs/tree-dashboard.md).
23 changes: 23 additions & 0 deletions docs/telemetry.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ For information about the data and analysis, please go to: <https://leekelleher.

If you would prefer to disable the telemetry feature completely, you can use this code snippet to disable it.

##### For Umbraco v8

Code snippet to disable Contentment telemetry.

Copy the C# class below. You can either save this to your `~/App_Code/` folder, or add it to your own code library.

```csharp
using Umbraco.Core.Composing;

Expand All @@ -52,3 +58,20 @@ namespace Our.Umbraco.Web

If you already have your own composer class, you can add the `composition.DisableContentmentTelemetry();` line to it.

##### For Umbraco v9+

Configuration to disable Contentment telemetry.

In your `appsettings.json` file, add this option inside the `"Umbraco"` section, add the following.

```json
{
"Umbraco": {
"Contentment": {
"DisableTelemetry": true
}
}
}
```

If you prefer to use a strongly-typed configuration in C# code, you can do this with the `.AddContentment(opts => { opts.DisableTelemetry = true; })` extension method in your `Startup.cs` file `ConfigureServices()` method.
53 changes: 53 additions & 0 deletions docs/tree-dashboard.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<img src="assets/img/logo.png" alt="Contentment for Umbraco logo" title="A state of Umbraco happiness." height="130" align="right">

## Contentment for Umbraco

### Tree Dashboard

By default, the package will display a Contentment tree item in the Settings section. Currently, this is used for promotional purposes, to give information about the package itself, newsletter sign-up, etc.


#### Disable tree dashboard

If you would prefer to disable the tree dashboard completely, you can use this code snippet to disable it.

##### For Umbraco v8

Code snippet to disable Contentment tree dashboard.

Copy the C# class below. You can either save this to your `~/App_Code/` folder, or add it to your own code library.

```csharp
using Umbraco.Core.Composing;

namespace Our.Umbraco.Web
{
public class DisableContentmentTreeComposer : IUserComposer
{
public void Compose(Composition composition)
{
composition.DisableContentmentTree();
}
}
}
```

If you already have your own composer class, you can add the `composition.DisableContentmentTree();` line to it.

##### For Umbraco v9+

Configuration to disable Contentment tree dashboard.

In your `appsettings.json` file, add this option inside the `"Umbraco"` section, add the following.

```json
{
"Umbraco": {
"Contentment": {
"DisableTree": true
}
}
}
```

If you prefer to use a strongly-typed configuration in C# code, you can do this with the `.AddContentment(opts => { opts.DisableTree = true; })` extension method in your `Startup.cs` file `ConfigureServices()` method.
Loading