Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rickbutterfield/Umbraco.Community.BlockPreview
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.2.0
Choose a base ref
...
head repository: rickbutterfield/Umbraco.Community.BlockPreview
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v3/dev
Choose a head ref
  • 15 commits
  • 162 files changed
  • 2 contributors

Commits on Jan 25, 2025

  1. v3.2.1

    rickbutterfield committed Jan 25, 2025
    Copy the full SHA
    942500e View commit details

Commits on Jan 26, 2025

  1. Fix for #88

    rickbutterfield committed Jan 26, 2025
    Copy the full SHA
    e72d2c0 View commit details

Commits on Jan 27, 2025

  1. Copy the full SHA
    194ad39 View commit details

Commits on Jan 28, 2025

  1. #93 Fix nested preview

    rickbutterfield committed Jan 28, 2025
    Copy the full SHA
    370031a View commit details

Commits on Feb 6, 2025

  1. Copy the full SHA
    d739d6c View commit details
  2. Copy the full SHA
    a6a2e61 View commit details

Commits on Feb 7, 2025

  1. Copy the full SHA
    2003722 View commit details

Commits on Feb 8, 2025

  1. Create build.yml

    rickbutterfield authored Feb 8, 2025
    Copy the full SHA
    b3de462 View commit details
  2. Update build.yml

    rickbutterfield authored Feb 8, 2025
    Copy the full SHA
    5944325 View commit details
  3. Update build.yml

    rickbutterfield authored Feb 8, 2025
    Copy the full SHA
    a321dff View commit details
  4. Update build.yml

    rickbutterfield authored Feb 8, 2025
    Copy the full SHA
    60171a2 View commit details

Commits on Mar 28, 2025

  1. Copy the full SHA
    a6fdb94 View commit details
  2. Copy the full SHA
    7442fb1 View commit details
  3. Copy the full SHA
    f2f98a4 View commit details

Commits on Apr 1, 2025

  1. Copy the full SHA
    a0c49ec View commit details
Showing with 4,502 additions and 1,888 deletions.
  1. +2 −2 .github/README.md
  2. +50 −0 .github/workflows/build.yml
  3. +1 −1 VERSION
  4. +2 −2 src/Umbraco.Cms.15.x/Program.cs
  5. +2 −2 src/Umbraco.Cms.15.x/Properties/launchSettings.json
  6. +4 −7 src/Umbraco.Cms.15.x/Umbraco.Cms.15.x.csproj
  7. +8 −3 src/Umbraco.Cms.15.x/Views/Partials/blockgrid/Components/heroBlock.cshtml
  8. +5 −2 src/Umbraco.Cms.15.x/Views/Partials/blocklist/Components/heroBlock.cshtml
  9. +3 −0 src/Umbraco.Cms.15.x/Views/Partials/blocklist/Components/nestedBlockList.cshtml
  10. +26 −0 src/Umbraco.Cms.15.x/Views/Partials/richtext/Components/heroBlock.cshtml
  11. +120 −29 src/Umbraco.Cms.15.x/uSync/v15/Content/block-list-test.config
  12. +57 −3 src/Umbraco.Cms.15.x/uSync/v15/Content/home.config
  13. +203 −4 src/Umbraco.Cms.15.x/uSync/v15/Content/nested-block-grid-test.config
  14. +424 −198 src/Umbraco.Cms.15.x/uSync/v15/Content/services.config
  15. +0 −105 src/Umbraco.Cms.15.x/uSync/v15/Content/test-1.config
  16. +205 −22 src/Umbraco.Cms.15.x/uSync/v15/Content/test.config
  17. +0 −114 src/Umbraco.Cms.15.x/uSync/v15/Content/test_jjdoauzk.config
  18. +0 −79 src/Umbraco.Cms.15.x/uSync/v15/Content/test_km1dao4m.config
  19. +0 −2 src/Umbraco.Cms.15.x/uSync/v15/Content/testing-1-2-3.config
  20. +2 −2 src/Umbraco.Cms.15.x/uSync/v15/ContentTypes/blockgrid.config
  21. +2 −2 src/Umbraco.Cms.15.x/uSync/v15/ContentTypes/blocklist.config
  22. +50 −0 src/Umbraco.Cms.15.x/uSync/v15/ContentTypes/blocksettings.config
  23. +50 −0 src/Umbraco.Cms.15.x/uSync/v15/ContentTypes/blockwitharea.config
  24. +50 −0 src/Umbraco.Cms.15.x/uSync/v15/ContentTypes/buttonblock.config
  25. +1 −1 src/Umbraco.Cms.15.x/uSync/v15/ContentTypes/calltoactionblock.config
  26. +2 −2 src/Umbraco.Cms.15.x/uSync/v15/ContentTypes/cardblock.config
  27. +1 −1 src/Umbraco.Cms.15.x/uSync/v15/ContentTypes/headlineblock.config
  28. +32 −0 src/Umbraco.Cms.15.x/uSync/v15/ContentTypes/heroblock.config
  29. +1 −1 src/Umbraco.Cms.15.x/uSync/v15/ContentTypes/imageblock.config
  30. +1 −1 src/Umbraco.Cms.15.x/uSync/v15/ContentTypes/inspirationblock.config
  31. +50 −0 src/Umbraco.Cms.15.x/uSync/v15/ContentTypes/nestedblocklist.config
  32. +2 −2 src/Umbraco.Cms.15.x/uSync/v15/ContentTypes/richtextblock.config
  33. +1 −1 src/Umbraco.Cms.15.x/uSync/v15/ContentTypes/sectionsettingsblock.config
  34. +1 −1 src/Umbraco.Cms.15.x/uSync/v15/ContentTypes/twocolumnsectionblock.config
  35. +3 −3 src/Umbraco.Cms.15.x/uSync/v15/DataTypes/ApprovedColor.config
  36. +19 −19 src/Umbraco.Cms.15.x/uSync/v15/DataTypes/BackgroundColors.config
  37. +9 −11 src/Umbraco.Cms.15.x/uSync/v15/DataTypes/BlockGridContent.config
  38. +10 −7 src/Umbraco.Cms.15.x/uSync/v15/DataTypes/BlockList.config
  39. +15 −0 src/Umbraco.Cms.15.x/uSync/v15/DataTypes/BlockListContent.config
  40. +6 −6 src/Umbraco.Cms.15.x/uSync/v15/DataTypes/CTAURLPicker.config
  41. +2 −2 src/Umbraco.Cms.15.x/uSync/v15/DataTypes/CheckboxList.config
  42. +4 −4 src/Umbraco.Cms.15.x/uSync/v15/DataTypes/ContentPicker.config
  43. +19 −0 src/Umbraco.Cms.15.x/uSync/v15/DataTypes/ContentPickerTest.config
  44. +7 −7 src/Umbraco.Cms.15.x/uSync/v15/DataTypes/ContrastColors.config
  45. +3 −3 src/Umbraco.Cms.15.x/uSync/v15/DataTypes/DatePicker.config
  46. +3 −3 src/Umbraco.Cms.15.x/uSync/v15/DataTypes/DatePickerWithTime.config
  47. +3 −3 src/Umbraco.Cms.15.x/uSync/v15/DataTypes/Dropdown.config
  48. +3 −3 src/Umbraco.Cms.15.x/uSync/v15/DataTypes/DropdownMultiple.config
  49. +16 −0 src/Umbraco.Cms.15.x/uSync/v15/DataTypes/HeroHeightDropdownPropertyEditorUI.config
  50. +2 −2 src/Umbraco.Cms.15.x/uSync/v15/DataTypes/ImageCropper.config
  51. +2 −2 src/Umbraco.Cms.15.x/uSync/v15/DataTypes/LabelBigint.config
  52. +2 −2 src/Umbraco.Cms.15.x/uSync/v15/DataTypes/LabelDatetime.config
  53. +2 −2 src/Umbraco.Cms.15.x/uSync/v15/DataTypes/LabelDecimal.config
  54. +2 −2 src/Umbraco.Cms.15.x/uSync/v15/DataTypes/LabelInteger.config
  55. +2 −2 src/Umbraco.Cms.15.x/uSync/v15/DataTypes/LabelString.config
  56. +2 −2 src/Umbraco.Cms.15.x/uSync/v15/DataTypes/LabelTime.config
  57. +11 −11 src/Umbraco.Cms.15.x/uSync/v15/DataTypes/ListViewContent.config
  58. +11 −11 src/Umbraco.Cms.15.x/uSync/v15/DataTypes/ListViewMedia.config
  59. +11 −11 src/Umbraco.Cms.15.x/uSync/v15/DataTypes/ListViewMembers.config
  60. +8 −8 src/Umbraco.Cms.15.x/uSync/v15/DataTypes/MediaPicker.config
  61. +7 −7 src/Umbraco.Cms.15.x/uSync/v15/DataTypes/MediaPickerLegacy.config
  62. +1 −1 src/Umbraco.Cms.15.x/uSync/v15/DataTypes/MemberPicker.config
  63. +6 −6 src/Umbraco.Cms.15.x/uSync/v15/DataTypes/MultiURLPicker.config
  64. +8 −8 src/Umbraco.Cms.15.x/uSync/v15/DataTypes/MultipleImageMediaPicker.config
  65. +8 −8 src/Umbraco.Cms.15.x/uSync/v15/DataTypes/MultipleMediaPicker.config
  66. +7 −7 src/Umbraco.Cms.15.x/uSync/v15/DataTypes/MultipleMediaPickerLegacy.config
  67. +1 −1 src/Umbraco.Cms.15.x/uSync/v15/DataTypes/Numeric.config
  68. +2 −2 src/Umbraco.Cms.15.x/uSync/v15/DataTypes/Radiobox.config
  69. +32 −32 src/Umbraco.Cms.15.x/uSync/v15/DataTypes/RichTextBlockGrid.config
  70. +13 −9 src/Umbraco.Cms.15.x/uSync/v15/DataTypes/RichtextEditor.config
  71. +12 −0 src/Umbraco.Cms.15.x/uSync/v15/DataTypes/SingleURLPicker.config
  72. +3 −4 src/Umbraco.Cms.15.x/uSync/v15/DataTypes/Tags.config
  73. +3 −3 src/Umbraco.Cms.15.x/uSync/v15/DataTypes/Textarea.config
  74. +2 −2 src/Umbraco.Cms.15.x/uSync/v15/DataTypes/Textstring.config
  75. +5 −5 src/Umbraco.Cms.15.x/uSync/v15/DataTypes/Truefalse.config
  76. +5 −14 src/Umbraco.Cms.15.x/uSync/v15/DataTypes/UploadArticle.config
  77. +6 −18 src/Umbraco.Cms.15.x/uSync/v15/DataTypes/UploadAudio.config
  78. +2 −2 src/Umbraco.Cms.15.x/uSync/v15/DataTypes/UploadFile.config
  79. +3 −6 src/Umbraco.Cms.15.x/uSync/v15/DataTypes/UploadVectorGraphics.config
  80. +5 −14 src/Umbraco.Cms.15.x/uSync/v15/DataTypes/UploadVideo.config
  81. +9 −0 src/Umbraco.Cms.15.x/uSync/v15/Domains/_en-us.config
  82. +9 −0 src/Umbraco.Cms.15.x/uSync/v15/Domains/uk_en-gb.config
  83. +8 −0 src/Umbraco.Cms.15.x/uSync/v15/Languages/en-gb.config
  84. +1 −1 src/Umbraco.Cms.15.x/uSync/v15/Languages/en-us.config
  85. +3 −1 src/Umbraco.Cms.15.x/uSync/v15/Media/bosco-shots-slr66yjpsoi-unsplash.config
  86. +3 −1 src/Umbraco.Cms.15.x/uSync/v15/Media/casey-horner-wkjiek4qsnk-unsplash.config
  87. +3 −1 src/Umbraco.Cms.15.x/uSync/v15/Media/collin-clyne-eg8-h52znw0-unsplash.config
  88. +3 −1 src/Umbraco.Cms.15.x/uSync/v15/Media/collin-clyne-zsuely56fzu-unsplash.config
  89. +3 −1 src/Umbraco.Cms.15.x/uSync/v15/Media/ed-259-xcri6cpkkjs-unsplash.config
  90. +3 −1 src/Umbraco.Cms.15.x/uSync/v15/Media/geran-de-klerk-qzgn45hsen0-unsplash.config
  91. +3 −1 src/Umbraco.Cms.15.x/uSync/v15/Media/geran-de-klerk-wjkc3xzjsxw-unsplash.config
  92. +3 −1 src/Umbraco.Cms.15.x/uSync/v15/Media/grant-ritchie-fbkrqhnlqoy-unsplash.config
  93. +3 −1 src/Umbraco.Cms.15.x/uSync/v15/Media/hernan-lucio-gjfvhkuhdsi-unsplash.config
  94. +3 −1 src/Umbraco.Cms.15.x/uSync/v15/Media/hossein-nasr-2nuu-j3zgke-unsplash.config
  95. +3 −1 src/Umbraco.Cms.15.x/uSync/v15/Media/hossein-nasr-uj99hdy2mmw-unsplash.config
  96. +3 −1 src/Umbraco.Cms.15.x/uSync/v15/Media/hossein-nasr-vmst7pnoto-unsplash.config
  97. +3 −1 src/Umbraco.Cms.15.x/uSync/v15/Media/hossein-nasr-vwzdwriw3xu-unsplash.config
  98. +3 −1 src/Umbraco.Cms.15.x/uSync/v15/Media/hossein-nasr-wr56ynk67uc-unsplash.config
  99. +3 −1 src/Umbraco.Cms.15.x/uSync/v15/Media/jay-mantri-qkfxq3x-ybi-unsplash.config
  100. +3 −1 src/Umbraco.Cms.15.x/uSync/v15/Media/jay-mantri-tfyi0qox08c-unsplash.config
  101. +3 −1 src/Umbraco.Cms.15.x/uSync/v15/Media/meiying-ng-orwkd-iwgqg-unsplash.config
  102. +3 −1 src/Umbraco.Cms.15.x/uSync/v15/Media/merve-sehirli-nasir-r-slzigonz4-unsplash.config
  103. +3 −1 src/Umbraco.Cms.15.x/uSync/v15/Media/scott-webb-k-qkkbn7ds-unsplash.config
  104. +3 −1 src/Umbraco.Cms.15.x/uSync/v15/Media/simone-hutsch-l8fyk9rs-ou-unsplash.config
  105. +3 −1 src/Umbraco.Cms.15.x/uSync/v15/Media/thomas-griesbeck-bs-uxe8wu5y-unsplash.config
  106. +3 −1 src/Umbraco.Cms.15.x/uSync/v15/Media/tiago-alexandre-lopes-5vdftgpwv2g-unsplash.config
  107. +3 −1 src/Umbraco.Cms.15.x/uSync/v15/Media/yoal-desurmont-jqgsm3b9fpo-unsplash.config
  108. +1 −1 src/Umbraco.Cms.15.x/uSync/v15/MediaTypes/file.config
  109. +7 −7 src/Umbraco.Cms.15.x/uSync/v15/MediaTypes/folder.config
  110. +1 −1 src/Umbraco.Cms.15.x/uSync/v15/MediaTypes/umbracomediaarticle.config
  111. +1 −1 src/Umbraco.Cms.15.x/uSync/v15/MediaTypes/umbracomediaaudio.config
  112. +1 −1 src/Umbraco.Cms.15.x/uSync/v15/MediaTypes/umbracomediavectorgraphics.config
  113. +1 −1 src/Umbraco.Cms.15.x/uSync/v15/MediaTypes/umbracomediavideo.config
  114. +1 −1 src/Umbraco.Cms.15.x/uSync/v15/MemberTypes/member.config
  115. +2 −2 src/Umbraco.Cms.15.x/uSync/v15/Templates/blockgrid.config
  116. +2 −2 src/Umbraco.Cms.15.x/uSync/v15/Templates/blocklist.config
  117. +0 −2 src/Umbraco.Cms.15.x/uSync/v15/usync.config
  118. +6 −6 src/Umbraco.Cms.15.x/umbraco/models/BlockGrid.generated.cs
  119. +6 −6 src/Umbraco.Cms.15.x/umbraco/models/BlockList.generated.cs
  120. +60 −0 src/Umbraco.Cms.15.x/umbraco/models/BlockSettings.generated.cs
  121. +60 −0 src/Umbraco.Cms.15.x/umbraco/models/BlockWithArea.generated.cs
  122. +60 −0 src/Umbraco.Cms.15.x/umbraco/models/ButtonBlock.generated.cs
  123. +6 −6 src/Umbraco.Cms.15.x/umbraco/models/CallToActionBlock.generated.cs
  124. +8 −8 src/Umbraco.Cms.15.x/umbraco/models/CardBlock.generated.cs
  125. +9 −10 src/Umbraco.Cms.15.x/umbraco/models/File.generated.cs
  126. +5 −5 src/Umbraco.Cms.15.x/umbraco/models/Folder.generated.cs
  127. +6 −6 src/Umbraco.Cms.15.x/umbraco/models/HeadlineBlock.generated.cs
  128. +26 −10 src/Umbraco.Cms.15.x/umbraco/models/HeroBlock.generated.cs
  129. +13 −16 src/Umbraco.Cms.15.x/umbraco/models/Image.generated.cs
  130. +6 −6 src/Umbraco.Cms.15.x/umbraco/models/ImageBlock.generated.cs
  131. +5 −5 src/Umbraco.Cms.15.x/umbraco/models/InspirationBlock.generated.cs
  132. +6 −6 src/Umbraco.Cms.15.x/umbraco/models/Member.generated.cs
  133. +60 −0 src/Umbraco.Cms.15.x/umbraco/models/NestedBlockList.generated.cs
  134. +6 −6 src/Umbraco.Cms.15.x/umbraco/models/OneColumnSectionBlock.generated.cs
  135. +6 −6 src/Umbraco.Cms.15.x/umbraco/models/RichTextBlock.generated.cs
  136. +7 −7 src/Umbraco.Cms.15.x/umbraco/models/SectionSettingsBlock.generated.cs
  137. +5 −5 src/Umbraco.Cms.15.x/umbraco/models/TwoColumnSectionBlock.generated.cs
  138. +9 −10 src/Umbraco.Cms.15.x/umbraco/models/UmbracoMediaArticle.generated.cs
  139. +9 −10 src/Umbraco.Cms.15.x/umbraco/models/UmbracoMediaAudio.generated.cs
  140. +9 −10 src/Umbraco.Cms.15.x/umbraco/models/UmbracoMediaVectorGraphics.generated.cs
  141. +9 −10 src/Umbraco.Cms.15.x/umbraco/models/UmbracoMediaVideo.generated.cs
  142. +2 −2 src/Umbraco.Community.BlockPreview.SchemaGenerator/AppSettings.cs
  143. +955 −304 src/Umbraco.Community.BlockPreview.UI/package-lock.json
  144. +2 −2 src/Umbraco.Community.BlockPreview.UI/package.json
  145. +1 −1 src/Umbraco.Community.BlockPreview.UI/public/umbraco-package.json
  146. +180 −17 src/Umbraco.Community.BlockPreview.UI/src/api/services.gen.ts
  147. +327 −40 src/Umbraco.Community.BlockPreview.UI/src/api/types.gen.ts
  148. +79 −25 src/Umbraco.Community.BlockPreview.UI/src/blockEditor/block-grid-preview.custom-view.element.ts
  149. +141 −52 src/Umbraco.Community.BlockPreview.UI/src/blockEditor/block-list-preview.custom-view.element.ts
  150. +29 −1 src/Umbraco.Community.BlockPreview.UI/src/blockEditor/rich-text-preview.custom-view.element.ts
  151. +27 −1 src/Umbraco.Community.BlockPreview.UI/src/context/block-preview.context.ts
  152. +1 −0 src/Umbraco.Community.BlockPreview/BlockPreviewComposer.cs
  153. +3 −3 src/Umbraco.Community.BlockPreview/BlockPreviewOptions.cs
  154. +1 −1 src/Umbraco.Community.BlockPreview/Constants.cs
  155. +13 −12 src/Umbraco.Community.BlockPreview/Controllers/BlockPreviewApiController.cs
  156. +2 −2 src/Umbraco.Community.BlockPreview/Interfaces/IBlockPreviewService.cs
  157. +102 −30 src/Umbraco.Community.BlockPreview/Services/BlockPreviewService.cs
  158. +1 −1 src/Umbraco.Community.BlockPreview/Umbraco.Community.BlockPreview.csproj
  159. +3 −3 src/Umbraco.Community.BlockPreview/appsettings-schema.blockpreview.json
  160. +450 −328 src/Umbraco.Community.BlockPreview/wwwroot/App_Plugins/Umbraco.Community.BlockPreview/assets.js
  161. +1 −1 src/Umbraco.Community.BlockPreview/wwwroot/App_Plugins/Umbraco.Community.BlockPreview/assets.js.map
  162. +1 −1 ...co.Community.BlockPreview/wwwroot/App_Plugins/Umbraco.Community.BlockPreview/umbraco-package.json
4 changes: 2 additions & 2 deletions .github/README.md
Original file line number Diff line number Diff line change
@@ -22,13 +22,13 @@ The Umbraco v15 version of this package is [available via NuGet](https://www.nug
To install the package, you can use either .NET CLI:

```
dotnet add package Umbraco.Community.BlockPreview --version 3.2.0
dotnet add package Umbraco.Community.BlockPreview --version 3.3.0
```

or the NuGet Package Manager:

```
Install-Package Umbraco.Community.BlockPreview -Version 3.2.0
Install-Package Umbraco.Community.BlockPreview -Version 3.3.0
```

## Setup
50 changes: 50 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: SonarQube
on:
push:
branches:
- v3/dev
- v2/dev
- v1/dev
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
name: Build and analyze
runs-on: windows-latest
steps:
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'zulu' # Alternative distribution options are available.
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Cache SonarQube Cloud packages
uses: actions/cache@v4
with:
path: ~\sonar\cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Cache SonarQube Cloud scanner
id: cache-sonar-scanner
uses: actions/cache@v4
with:
path: .\.sonar\scanner
key: ${{ runner.os }}-sonar-scanner
restore-keys: ${{ runner.os }}-sonar-scanner
- name: Install SonarQube Cloud scanner
if: steps.cache-sonar-scanner.outputs.cache-hit != 'true'
shell: powershell
run: |
New-Item -Path .\.sonar\scanner -ItemType Directory
dotnet tool update dotnet-sonarscanner --tool-path .\.sonar\scanner
- name: Build and analyze
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
shell: powershell
run: |
cd src
..\.sonar\scanner\dotnet-sonarscanner begin /k:"rickbutterfield_Umbraco.Community.BlockPreview" /o:"rickbutterfielddev" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io"
dotnet build
..\.sonar\scanner\dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.2.0
3.3.0
4 changes: 2 additions & 2 deletions src/Umbraco.Cms.15.x/Program.cs
Original file line number Diff line number Diff line change
@@ -12,12 +12,12 @@
options.BlockGrid = new()
{
Enabled = true,
//ContentTypes = [InspirationBlock.ModelTypeAlias],
Stylesheet = "/css/myblockgridlayout.css"
};
options.BlockList = new()
{
Enabled = true
Enabled = true,
Stylesheet = "/css/myblockgridlayout.css"
};
options.RichText.Enabled = true;
})
4 changes: 2 additions & 2 deletions src/Umbraco.Cms.15.x/Properties/launchSettings.json
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:26292",
"sslPort": 44367
"sslPort": 44368
}
},
"profiles": {
@@ -20,7 +20,7 @@
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
"applicationUrl": "https://localhost:44367;http://localhost:26292",
"applicationUrl": "https://localhost:44368;http://localhost:26292",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
11 changes: 4 additions & 7 deletions src/Umbraco.Cms.15.x/Umbraco.Cms.15.x.csproj
Original file line number Diff line number Diff line change
@@ -5,15 +5,12 @@
<Nullable>enable</Nullable>
<RootNamespace>Umbraco.Cms._15.x</RootNamespace>
</PropertyGroup>
<ItemGroup>
<Content Remove="appsettings-schema.blockpreview.json" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Umbraco.Cms" Version="15.1.2" />
<PackageReference Include="Umbraco.Cms.Core" Version="15.1.2" />
<PackageReference Include="Umbraco.Cms.StaticAssets" Version="15.1.2" />
<PackageReference Include="uSync" Version="15.1.0" />
<PackageReference Include="Umbraco.Cms" Version="15.3.0" />
<PackageReference Include="Umbraco.Cms.Core" Version="15.3.0" />
<PackageReference Include="Umbraco.Cms.StaticAssets" Version="15.3.0" />
<PackageReference Include="uSync" Version="15.1.5" />
</ItemGroup>

<ItemGroup>
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage<Umbraco.Cms.Core.Models.Blocks.BlockGridItem<HeroBlock>>
@inherits UmbracoViewPage<BlockGridItem<HeroBlock, BlockSettings>>
@{
var backgroundColor = Model.Content.BackgroundColor;
var image = Model.Content.Image;
var hasBrightContrast = Model.Content.Contrast == "#ffffff";
}

<pre>Dropdown: @Model.Content.Height</pre>
<pre>Content Picker: @Model.Content.ContentPicker?.Name (@Model.Content.ContentPicker?.Url())</pre>
<pre>MNTP: @Model.Content.Mntp?.Name() (@Model.Content.Mntp?.Id)</pre>
@* <pre>MNTP: @(string.Join(", ", Model.Content.Mntp.Select(x => x.Name))) (@(string.Join(", ", Model.Content.Mntp.Select(x => x.Id))))</pre> *@
<pre>Settings Dropdown: @Model.Settings?.Dropdown</pre>

<div
class="hero"
style="background-color:@backgroundColor"
@@ -24,5 +30,4 @@
}
</div>
</div>

<pre>Content Picker: @Model.Content.ContentPicker?.Name (@Model.Content.ContentPicker?.Url())</pre>

Original file line number Diff line number Diff line change
@@ -2,12 +2,15 @@
@{
var backgroundColor = Model.Content.BackgroundColor;
var image = Model.Content.Image;
var hasBrightContrast = Model.Content.Contrast == "ffffff";
var hasBrightContrast = Model.Content.Contrast == "#ffffff";
}

<pre>Dropdown: @Model.Content.Height</pre>
<pre>Content Picker: @Model.Content.ContentPicker?.Name (@Model.Content.ContentPicker?.Url())</pre>

<div
class="hero"
style="background-color:#@backgroundColor"
style="background-color:@backgroundColor"
@(hasBrightContrast ? "bright-contrast" : null)>

@if (image is not null) {
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@inherits UmbracoViewPage<BlockListItem<NestedBlockList>>

@await Html.GetBlockListHtmlAsync(Model.Content.BlockList)
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
@inherits UmbracoViewPage<RichTextBlockItem<HeroBlock>>
@{
var backgroundColor = Model.Content.BackgroundColor;
var image = Model.Content.Image;
var hasBrightContrast = Model.Content.Contrast == "#ffffff";
}

<pre>Dropdown: @Model.Content.Height</pre>
<pre>Content Picker: @Model.Content.ContentPicker?.Name (@Model.Content.ContentPicker?.Url())</pre>

<div
class="hero"
style="background-color:@backgroundColor"
@(hasBrightContrast ? "bright-contrast" : null)>

@if (image is not null) {
<div class="hero-background" style="background-image: url(@image.GetCropUrl(width:3840))">
</div>
}


<div class="hero-content">
<h1>@Model.Content.Headline</h1>
</div>
</div>

149 changes: 120 additions & 29 deletions src/Umbraco.Cms.15.x/uSync/v15/Content/block-list-test.config
Original file line number Diff line number Diff line change
@@ -10,47 +10,138 @@
<SortOrder>2</SortOrder>
<Published Default="true" />
<Schedule />
<Template Key="21af993e-d1d4-4a3b-a7d8-971c3202eddc">BlockList</Template>
<Template Key="c021e223-9e49-4725-b942-eb2562f00b84">BlockList</Template>
</Info>
<Properties>
<content>
<Value><![CDATA[{
"layout": {
"Umbraco.BlockList": [
{
"contentUdi": "umb://element/b753b77647ca40e7bbef7637237fd560",
"settingsUdi": "umb://element/edf219148160418b96da6d11d063fa7a"
}
]
},
"contentData": [
{
"contentTypeKey": "432b58a8-01b7-47dc-8664-f72bf1045f66",
"udi": "umb://element/b753b77647ca40e7bbef7637237fd560",
"headline": "Test",
"image": [
"contentTypeKey": "43e5784f-e3f1-4725-8d2c-876cadaba21b",
"key": "11d9782e-7e5a-45a1-9152-dbfd11f28973",
"udi": null,
"values": [
{
"key": "59b1c1a0-203d-491f-ac3e-0311a0c00330",
"mediaKey": "65a066c2-b30d-497b-a53c-968e3f9a20d1"
"alias": "blockList",
"culture": null,
"editorAlias": null,
"segment": null,
"value": {
"contentData": [
{
"contentTypeKey": "432b58a8-01b7-47dc-8664-f72bf1045f66",
"key": "262c697d-b9db-47f7-9f5d-507fab25accd",
"udi": null,
"values": [
{
"alias": "headline",
"culture": null,
"editorAlias": null,
"segment": null,
"value": "Test"
},
{
"alias": "contentPicker",
"culture": null,
"editorAlias": null,
"segment": null,
"value": "umb://document/6e2ff1f7114e484ba407918daded1aa6"
},
{
"alias": "height",
"culture": null,
"editorAlias": null,
"segment": null,
"value": [
"150"
]
},
{
"alias": "image",
"culture": null,
"editorAlias": null,
"segment": null,
"value": [
{
"key": "bd823f3e-1587-4437-a946-58790b2be204",
"mediaKey": "ff67c98b-dc69-43ec-859a-d22bba816664",
"mediaTypeAlias": "Image",
"crops": [],
"focalPoint": null
}
]
},
{
"alias": "backgroundColor",
"culture": null,
"editorAlias": null,
"segment": null,
"value": {
"label": "113635",
"value": "#113635"
}
},
{
"alias": "contrast",
"culture": null,
"editorAlias": null,
"segment": null,
"value": {
"label": "ffffff",
"value": "#ffffff"
}
}
]
}
],
"settingsData": [
{
"contentTypeKey": "1a16c578-dacc-4552-ad07-26553c8a34fd",
"key": "da8cc569-a488-42db-a62d-e86d5d5c5857",
"udi": null,
"values": []
}
],
"expose": [
{
"contentKey": "262c697d-b9db-47f7-9f5d-507fab25accd",
"culture": null,
"segment": null
}
],
"Layout": {
"Umbraco.BlockList": [
{
"contentKey": "262c697d-b9db-47f7-9f5d-507fab25accd",
"contentUdi": null,
"settingsKey": "da8cc569-a488-42db-a62d-e86d5d5c5857",
"settingsUdi": null
}
]
}
}
}
],
"backgroundColor": "",
"contrast": {
"value": "ffffff",
"label": "ffffff",
"sortOrder": 1,
"id": "2"
}
]
}
],
"settingsData": [
"settingsData": [],
"expose": [
{
"contentTypeKey": "1a16c578-dacc-4552-ad07-26553c8a34fd",
"udi": "umb://element/edf219148160418b96da6d11d063fa7a",
"backgroundColor": "",
"contrast": ""
"contentKey": "11d9782e-7e5a-45a1-9152-dbfd11f28973",
"culture": null,
"segment": null
}
]
],
"Layout": {
"Umbraco.BlockList": [
{
"contentKey": "11d9782e-7e5a-45a1-9152-dbfd11f28973",
"contentUdi": null,
"settingsKey": null,
"settingsUdi": null
}
]
}
}]]></Value>
</content>
</Properties>
Loading