Skip to content

Commit

Permalink
Initial upgrade to v11.0.0-rc1
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeavon committed Oct 25, 2022
1 parent d6578ad commit 5d5d2d1
Show file tree
Hide file tree
Showing 9 changed files with 77 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: .NET

on:
push:
branches: [ "develop" ]
branches: [ "develop-v11" ]
pull_request:
branches: [ "develop" ]
branches: [ "develop-v11" ]

jobs:
build:
Expand All @@ -19,7 +19,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
dotnet-version: 7.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,7 @@ $RECYCLE.BIN/
# JSON Schema file for appsettings
# This is auto generated from the build
appsettings-schema.json
appsettings-schema.Umbraco.Cms.json

**/App_Plugins/*
!**/App_Plugins/MyCustomDashboard
Expand Down
4 changes: 2 additions & 2 deletions Umbraco.Docs.Samples.Web/Umbraco.Docs.Samples.Web.csproj
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="NWebsec.AspNetCore.Middleware" Version="3.0.0" />
<PackageReference Include="Umbraco.Cms" Version="10.3.1" />
<PackageReference Include="Umbraco.Cms" Version="11.0.0-rc1" />
<PackageReference Include="Umbraco.TheStarterKit" Version="10.0.0" />
</ItemGroup>

Expand Down
19 changes: 19 additions & 0 deletions Umbraco.Docs.Samples.Web/Views/Partials/blockgrid/areas.cshtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
@using Umbraco.Extensions
@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage<Umbraco.Cms.Core.Models.Blocks.BlockGridItem>
@{
if (Model?.Areas.Any() != true) { return; }
}

<div class="umb-block-grid__area-container"
style="--umb-block-grid--area-grid-columns: @(Model.AreaGridColumns?.ToString() ?? Model.GridColumns?.ToString() ?? "12");">
@foreach (var area in Model.Areas)
{
<div class="umb-block-grid__area"
data-area-col-span="@area.ColumnSpan"
data-area-row-span="@area.RowSpan"
data-area-alias="@area.Alias"
style="--umb-block-grid--grid-columns: @area.ColumnSpan;--umb-block-grid--area-column-span: @area.ColumnSpan; --umb-block-grid--area-row-span: @area.RowSpan;">
@await Html.GetBlockGridItemsHtmlAsync(area)
</div>
}
</div>
11 changes: 11 additions & 0 deletions Umbraco.Docs.Samples.Web/Views/Partials/blockgrid/default.cshtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@using Umbraco.Extensions
@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage<Umbraco.Cms.Core.Models.Blocks.BlockGridModel>
@{
if (Model?.Any() != true) { return; }
}

<div class="umb-block-grid"
data-grid-columns="@(Model.GridColumns?.ToString() ?? "12");"
style="--umb-block-grid--grid-columns: @(Model.GridColumns?.ToString() ?? "12");">
@await Html.GetBlockGridItemsHtmlAsync(Model)
</div>
39 changes: 39 additions & 0 deletions Umbraco.Docs.Samples.Web/Views/Partials/blockgrid/items.cshtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
@using Umbraco.Cms.Core.Models.Blocks
@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage<IEnumerable<BlockGridItem>>
@{
if (Model?.Any() != true) { return; }
}

<div class="umb-block-grid__layout-container">
@foreach (var item in Model)
{
bool attrForceLeft = item.ForceLeft;
bool attrForceRight = item.ForceRight;
<div
class="umb-block-grid__layout-item"
data-content-element-type-alias="@item.Content.ContentType.Alias"
data-content-element-type-key="@item.Content.ContentType.Key"
data-element-udi="@item.ContentUdi"
data-col-span="@item.ColumnSpan"
data-row-span="@item.RowSpan"
@(attrForceLeft ? "data-force-left" : null)
@(attrForceRight ? "data-force-right" : null)
style=" --umb-block-grid--item-column-span: @item.ColumnSpan; --umb-block-grid--item-row-span: @item.RowSpan; ">
@{
var partialViewName = "blockgrid/Components/" + item.Content.ContentType.Alias;
try
{
@await Html.PartialAsync(partialViewName, item)
}
catch (InvalidOperationException)
{
<p>
<strong>Could not render component of type: @(item.Content.ContentType.Alias)</strong>
<br/>
This likely happened because the partial view <em>@partialViewName</em> could not be found.
</p>
}
}
</div>
}
</div>
Binary file modified Umbraco.Docs.Samples.Web/umbraco/Data/Umbraco.sqlite.db-shm
Binary file not shown.
Binary file modified Umbraco.Docs.Samples.Web/umbraco/Data/Umbraco.sqlite.db-wal
Binary file not shown.
4 changes: 2 additions & 2 deletions global.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"sdk": {
"version": "6.0",
"version": "7.0",
"rollForward": "latestMinor",
"allowPrerelease": false
"allowPrerelease": true
}
}

0 comments on commit 5d5d2d1

Please sign in to comment.