Skip to content

Commit

Permalink
v1.10.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Rick Butterfield committed Aug 28, 2024
1 parent 244e26b commit e221e2d
Show file tree
Hide file tree
Showing 37 changed files with 572 additions and 187 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.10.1
1.10.2
4 changes: 2 additions & 2 deletions src/Umbraco.Cms.13.x/Umbraco.Cms.13.x.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
Expand All @@ -17,7 +17,7 @@

<ItemGroup>
<PackageReference Include="Umbraco.BlockGrid.Example.Website" Version="1.0.2" />
<PackageReference Include="Umbraco.Cms" Version="13.0.0" />
<PackageReference Include="Umbraco.Cms" Version="13.2.0" />
<PackageReference Include="uSync" Version="13.0.0" />
</ItemGroup>

Expand Down
7 changes: 7 additions & 0 deletions src/Umbraco.Cms.13.x/Views/BlockList.cshtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage<ContentModels.BlockList>
@using ContentModels = Umbraco.Cms.Web.Common.PublishedModels;
@{
Layout = "Layout.cshtml";
}

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

<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>


Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
@inherits UmbracoViewPage<RichTextBlockItem<CardBlock>>

<div class="card --medium">

<div class="card-media">
@{
var image = Model.Content.Image;
if (image is not null)
{
<img src="@image.GetCropUrl(width: 360)" />
}
else
{
<p>Missing image</p>
}
}
</div>
<div class="card-content">
<h4>@Model.Content.Headline</h4>
<div>@Model.Content.RichText</div>
</div>

</div>
57 changes: 57 additions & 0 deletions src/Umbraco.Cms.13.x/uSync/v9/Content/block-list-test.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<?xml version="1.0" encoding="utf-8"?>
<Content Key="2ed5a2c4-b6a0-4566-9d44-23fb7844abdc" Alias="Block List Test" Level="2">
<Info>
<Parent Key="6e2ff1f7-114e-484b-a407-918daded1aa6">Home</Parent>
<Path>/Home/BlockListTest</Path>
<Trashed>false</Trashed>
<ContentType>blockList</ContentType>
<CreateDate>2024-04-23T14:41:04</CreateDate>
<NodeName Default="Block List Test" />
<SortOrder>2</SortOrder>
<Published Default="true" />
<Schedule />
<Template Key="21af993e-d1d4-4a3b-a7d8-971c3202eddc">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": [
{
"key": "59b1c1a0-203d-491f-ac3e-0311a0c00330",
"mediaKey": "65a066c2-b30d-497b-a53c-968e3f9a20d1"
}
],
"backgroundColor": "",
"contrast": {
"value": "ffffff",
"label": "ffffff",
"sortOrder": 1,
"id": "2"
}
}
],
"settingsData": [
{
"contentTypeKey": "1a16c578-dacc-4552-ad07-26553c8a34fd",
"udi": "umb://element/edf219148160418b96da6d11d063fa7a",
"backgroundColor": "",
"contrast": ""
}
]
}]]></Value>
</content>
</Properties>
</Content>
12 changes: 6 additions & 6 deletions src/Umbraco.Cms.13.x/uSync/v9/Content/home.config
Original file line number Diff line number Diff line change
Expand Up @@ -330,22 +330,22 @@
"contentTypeKey": "69de9db6-ec92-4989-a5f6-8437b8f3d5cd",
"udi": "umb://element/0d8e8778175b4b898a6aed340ea86934",
"richText": {
"markup": "<h3>Five ways to reduce your greenhouse gas emissions</h3>\n<p>What you can do to help reduce your carbon footprint depends on where you live, the resources you have, and how much time you can give. If you want to do something about global warming, however, then simple changes can have a big impact. Here are some straightforward solutions that you can implement right away:</p>\n<p><strong>Eat less (or no) meat.</strong> Going vegetarian has the same impact on reducing greenhouse gas emissions as if you trade in a regular car for a hybrid. The process of making a pound of commercial meat uses ten times more energy than making a pound of beans or grains.</p>\n<p><strong>Hook your home up to clean energy.</strong> If you can’t afford to install solar panels or wind turbines on your roof, you can tap into an independent clean energy supplier. Let them build the wind turbine, and you reap the benefits. This step reduces your own emissions and helps build the renewable energy industry.</p>\n<p><strong>Insulate your house. </strong>The average home has the equivalent of a basketball-sized hole in the side of its wall. That’s how much heating and cooling you can keep from escaping if you properly insulate your home’s ceilings, walls, windows, and doors.</p>\n<p><strong>Travel smart.</strong> Reducing the number of flights you take in a year has a huge impact. One long-haul flight can be enough to double your impact on climate change, so think twice before taking that long trip. Whenever possible, take the train or bus. Minimize your driving by carpooling, walking, biking, or taking public transit.</p>\n<p><strong>Use only the energy you need.</strong> Develop energy-saving habits — turn off the lights and TV when you leave the room, and turn down your thermostats when the house is empty in winter, and up in summer. Choose low-energy technologies by looking for the ENERGY STAR or Energy Savings logos on all appliances, electronics, computers, and more. These qualification standards highlight products that use the least energy.</p>\n<umb-rte-block class=\"ng-scope ng-isolate-scope\" data-content-udi=\"umb://element/f5deeefef86e4d7b9265ad2873e2190a\"><!--Umbraco-Block--></umb-rte-block>",
"markup": "<h3>Five ways to reduce your greenhouse gas emissions</h3>\n<p>What you can do to help reduce your carbon footprint depends on where you live, the resources you have, and how much time you can give. If you want to do something about global warming, however, then simple changes can have a big impact. Here are some straightforward solutions that you can implement right away:</p>\n<p><strong>Eat less (or no) meat.</strong> Going vegetarian has the same impact on reducing greenhouse gas emissions as if you trade in a regular car for a hybrid. The process of making a pound of commercial meat uses ten times more energy than making a pound of beans or grains.</p>\n<p><strong>Hook your home up to clean energy.</strong> If you can’t afford to install solar panels or wind turbines on your roof, you can tap into an independent clean energy supplier. Let them build the wind turbine, and you reap the benefits. This step reduces your own emissions and helps build the renewable energy industry.</p>\n<p><strong>Insulate your house. </strong>The average home has the equivalent of a basketball-sized hole in the side of its wall. That’s how much heating and cooling you can keep from escaping if you properly insulate your home’s ceilings, walls, windows, and doors.</p>\n<p><strong>Travel smart.</strong> Reducing the number of flights you take in a year has a huge impact. One long-haul flight can be enough to double your impact on climate change, so think twice before taking that long trip. Whenever possible, take the train or bus. Minimize your driving by carpooling, walking, biking, or taking public transit.</p>\n<p><strong>Use only the energy you need.</strong> Develop energy-saving habits — turn off the lights and TV when you leave the room, and turn down your thermostats when the house is empty in winter, and up in summer. Choose low-energy technologies by looking for the ENERGY STAR or Energy Savings logos on all appliances, electronics, computers, and more. These qualification standards highlight products that use the least energy.</p>\n<umb-rte-block class=\"ng-scope ng-isolate-scope\" data-content-udi=\"umb://element/5df2f64200ff4d95bcbaf931b483c975\"><!--Umbraco-Block--></umb-rte-block>",
"blocks": {
"layout": {
"Umbraco.TinyMCE": [
{
"contentUdi": "umb://element/f5deeefef86e4d7b9265ad2873e2190a"
"contentUdi": "umb://element/5df2f64200ff4d95bcbaf931b483c975"
}
]
},
"contentData": [
{
"contentTypeKey": "56a73241-9dbd-46aa-a1ff-3d24ae2b6a33",
"udi": "umb://element/f5deeefef86e4d7b9265ad2873e2190a",
"headline": "Test Card",
"richText": "{\"markup\":\"<p>This is a card block inside an RTE</p>\",\"blocks\":{\"contentData\":[],\"settingsData\":[]}}",
"image": "[{\"key\":\"c77083dd-c566-433f-8d94-99a7523cca5b\",\"mediaKey\":\"3cd41cf6-f78a-47a5-9da7-cb50cb0be7c5\"}]"
"udi": "umb://element/5df2f64200ff4d95bcbaf931b483c975",
"headline": "Test Card in RTE",
"richText": "{\"markup\":\"<p>Blah blah blah</p>\",\"blocks\":{\"contentData\":[],\"settingsData\":[]}}",
"image": "[]"
}
],
"settingsData": []
Expand Down
108 changes: 108 additions & 0 deletions src/Umbraco.Cms.13.x/uSync/v9/Content/test_jjdoauzk.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
<?xml version="1.0" encoding="utf-8"?>
<Content Key="53e0464a-d92a-44dd-a067-668a778b6fdb" Alias="Test" Level="2">
<Info>
<Parent Key="6e2ff1f7-114e-484b-a407-918daded1aa6">Home</Parent>
<Path>/Home/Test</Path>
<Trashed>false</Trashed>
<ContentType>blockGrid</ContentType>
<CreateDate>2024-04-22T20:05:43</CreateDate>
<NodeName Default="Test" />
<SortOrder>1</SortOrder>
<Published Default="true" />
<Schedule />
<Template Key="bce3dfc2-5152-427f-999b-0f0901548bdc">BlockGrid</Template>
</Info>
<Properties>
<content>
<Value><![CDATA[{
"layout": {
"Umbraco.BlockGrid": [
{
"contentUdi": "umb://element/b77e9f1fc48d467bb9523e3c27d430eb",
"areas": [
{
"key": "3b490f17-1471-4ac4-9434-60e676639e29",
"items": []
}
],
"columnSpan": 12,
"rowSpan": 1
},
{
"contentUdi": "umb://element/b825be81ca8246e192cae6a49df26ce4",
"settingsUdi": "umb://element/70df878539664925aeb8f0c8b64029d9",
"areas": [
{
"key": "9f1c62ff-38ec-4488-bdc4-b39edfd425f3",
"items": [
{
"contentUdi": "umb://element/3e0a7fda6dce45ceb512230c2f9db9c6",
"areas": [],
"columnSpan": 12,
"rowSpan": 1
}
]
}
],
"columnSpan": 12,
"rowSpan": 1
}
]
},
"contentData": [
{
"contentTypeKey": "432b58a8-01b7-47dc-8664-f72bf1045f66",
"udi": "umb://element/b77e9f1fc48d467bb9523e3c27d430eb",
"image": [
{
"key": "fe426d97-d83d-429f-8509-a50d8ffb9eca",
"mediaKey": "65a066c2-b30d-497b-a53c-968e3f9a20d1"
}
],
"headline": "Test",
"backgroundColor": "",
"contrast": ""
},
{
"contentTypeKey": "964feee4-efb3-4676-91a0-b960f26e9d92",
"udi": "umb://element/b825be81ca8246e192cae6a49df26ce4"
},
{
"contentTypeKey": "69de9db6-ec92-4989-a5f6-8437b8f3d5cd",
"udi": "umb://element/3e0a7fda6dce45ceb512230c2f9db9c6",
"richText": {
"markup": "<p>RTE Block test</p>\n<umb-rte-block class=\"ng-scope ng-isolate-scope\" data-content-udi=\"umb://element/faf1d30eb6c540ab9b7e51bedb6c34b1\"><!--Umbraco-Block--></umb-rte-block>",
"blocks": {
"layout": {
"Umbraco.TinyMCE": [
{
"contentUdi": "umb://element/faf1d30eb6c540ab9b7e51bedb6c34b1"
}
]
},
"contentData": [
{
"contentTypeKey": "56a73241-9dbd-46aa-a1ff-3d24ae2b6a33",
"udi": "umb://element/faf1d30eb6c540ab9b7e51bedb6c34b1",
"headline": "Test card block inside RTE",
"richText": "{\"markup\":\"<p>Blah blah blah</p>\",\"blocks\":{\"contentData\":[],\"settingsData\":[]}}",
"image": "[{\"key\":\"90a8b07e-131e-40fc-8c93-af937fa0f6f7\",\"mediaKey\":\"65a066c2-b30d-497b-a53c-968e3f9a20d1\"}]"
}
],
"settingsData": []
}
}
}
],
"settingsData": [
{
"contentTypeKey": "1a16c578-dacc-4552-ad07-26553c8a34fd",
"udi": "umb://element/70df878539664925aeb8f0c8b64029d9",
"backgroundColor": "",
"contrast": ""
}
]
}]]></Value>
</content>
</Properties>
</Content>
53 changes: 53 additions & 0 deletions src/Umbraco.Cms.13.x/uSync/v9/ContentTypes/blocklist.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="utf-8"?>
<ContentType Key="36a2e617-030d-498b-a7d4-18a281923142" Alias="blockList" Level="1">
<Info>
<Name>Block List</Name>
<Icon>icon-filter-arrows color-black</Icon>
<Thumbnail>folder.png</Thumbnail>
<Description></Description>
<AllowAtRoot>True</AllowAtRoot>
<IsListView>False</IsListView>
<Variations>Nothing</Variations>
<IsElement>false</IsElement>
<HistoryCleanup>
<PreventCleanup>False</PreventCleanup>
<KeepAllVersionsNewerThanDays></KeepAllVersionsNewerThanDays>
<KeepLatestVersionPerDayForDays></KeepLatestVersionPerDayForDays>
</HistoryCleanup>
<Compositions />
<DefaultTemplate>BlockList</DefaultTemplate>
<AllowedTemplates>
<Template Key="21af993e-d1d4-4a3b-a7d8-971c3202eddc">BlockList</Template>
</AllowedTemplates>
</Info>
<Structure>
<ContentType Key="ca01f2ad-4fde-42ff-9952-76629e8c1780" SortOrder="0">blockGrid</ContentType>
</Structure>
<GenericProperties>
<GenericProperty>
<Key>1e95879e-7623-443d-9b4c-34910a8fbe20</Key>
<Name>Content</Name>
<Alias>content</Alias>
<Definition>d455ec3d-a214-4b10-9d77-ca61ea867cd0</Definition>
<Type>Umbraco.BlockList</Type>
<Mandatory>false</Mandatory>
<Validation></Validation>
<Description><![CDATA[]]></Description>
<SortOrder>1</SortOrder>
<Tab Alias="content">Content</Tab>
<Variations>Nothing</Variations>
<MandatoryMessage></MandatoryMessage>
<ValidationRegExpMessage></ValidationRegExpMessage>
<LabelOnTop>true</LabelOnTop>
</GenericProperty>
</GenericProperties>
<Tabs>
<Tab>
<Key>5abf23a8-c995-4c3b-bf26-9f9dea2a6604</Key>
<Caption>Content</Caption>
<Alias>content</Alias>
<Type>Group</Type>
<SortOrder>0</SortOrder>
</Tab>
</Tabs>
</ContentType>
33 changes: 33 additions & 0 deletions src/Umbraco.Cms.13.x/uSync/v9/DataTypes/BlockList.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="utf-8"?>
<DataType Key="d455ec3d-a214-4b10-9d77-ca61ea867cd0" Alias="Block List" Level="2">
<Info>
<Name>Block List</Name>
<EditorAlias>Umbraco.BlockList</EditorAlias>
<DatabaseType>Ntext</DatabaseType>
<Folder>Block+Grid</Folder>
</Info>
<Config><![CDATA[{
"Blocks": [
{
"backgroundColor": null,
"contentElementTypeKey": "432b58a8-01b7-47dc-8664-f72bf1045f66",
"editorSize": "medium",
"forceHideContentEditorInOverlay": false,
"iconColor": null,
"label": null,
"settingsElementTypeKey": "1a16c578-dacc-4552-ad07-26553c8a34fd",
"stylesheet": "~/css/myblockgridlayout.css",
"thumbnail": null,
"view": "~/App_Plugins/Umbraco.Community.BlockPreview/views/block-preview.html"
}
],
"MaxPropertyWidth": "100%",
"UseInlineEditingAsDefault": false,
"UseLiveEditing": false,
"UseSingleBlockMode": false,
"ValidationLimit": {
"max": null,
"min": null
}
}]]></Config>
</DataType>
19 changes: 17 additions & 2 deletions src/Umbraco.Cms.13.x/uSync/v9/DataTypes/RichTextBlockGrid.config
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,21 @@
<Folder>Block+Grid</Folder>
</Info>
<Config><![CDATA[{
"Blocks": null,
"Blocks": [
{
"backgroundColor": null,
"contentElementTypeKey": "56a73241-9dbd-46aa-a1ff-3d24ae2b6a33",
"displayInline": false,
"editorSize": "medium",
"forceHideContentEditorInOverlay": false,
"iconColor": null,
"label": null,
"settingsElementTypeKey": null,
"stylesheet": "~/css/myblockgridlayout.css",
"thumbnail": null,
"view": "~/App_Plugins/Umbraco.Community.BlockPreview/views/block-preview.html"
}
],
"Editor": {
"toolbar": [
"ace",
Expand All @@ -23,7 +37,8 @@
"numlist",
"outdent",
"indent",
"link"
"link",
"umbblockpicker"
],
"stylesheets": [
"/css/myblockgridlayout.css"
Expand Down
Loading

0 comments on commit e221e2d

Please sign in to comment.