diff --git a/.gitignore b/.gitignore index 3f5524f..8a3d85c 100644 --- a/.gitignore +++ b/.gitignore @@ -29,8 +29,8 @@ bld/ [Oo]bj/ [Ll]og/ [Ll]ogs/ -src-old/App_Plugins -src-old/App_Plugins/** +src/Our.Umbraco.BlockPreview/App_Plugins +src/Our.Umbraco.BlockPreview/App_Plugins/** # Visual Studio 2015/2017 cache/options directory .vs/ diff --git a/README.md b/README.md index 95f3f83..6bf89c9 100644 --- a/README.md +++ b/README.md @@ -13,13 +13,13 @@ The Umbraco 10.4+ version of this package is [available via NuGet](https://www.n To install the package, you can use either .NET CLI: ``` -dotnet add package Umbraco.Community.BlockPreview --version 1.3.1 +dotnet add package Umbraco.Community.BlockPreview --version 1.4.0 ``` or the older NuGet Package Manager: ``` -Install-Package Umbraco.Community.BlockPreview -Version 1.3.1 +Install-Package Umbraco.Community.BlockPreview -Version 1.4.0 ``` ## Setup diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..e21e727 --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +1.4.0 \ No newline at end of file diff --git a/build/release.bat b/build/release.bat index 1bc1203..49b3d56 100644 --- a/build/release.bat +++ b/build/release.bat @@ -1,3 +1,3 @@ @echo off -dotnet build ../src/Umbraco.Community.BlockPreview.csproj --configuration Release /t:rebuild /t:pack -p:PackageOutputPath=../releases/nuget -dotnet build ../src-old/Our.Umbraco.BlockPreview.csproj --configuration Release /t:rebuild /t:pack -p:PackageOutputPath=../releases/nuget \ No newline at end of file +dotnet build ../src/Umbraco.Community.BlockPreview/Umbraco.Community.BlockPreview.csproj --configuration Release /t:rebuild /t:pack -p:PackageOutputPath=../../releases/nuget +dotnet build ../src/Our.Umbraco.BlockPreview/Our.Umbraco.BlockPreview.csproj --configuration Release /t:rebuild /t:pack -p:PackageOutputPath=../../releases/nuget \ No newline at end of file diff --git a/build/release.sh b/build/release.sh index 1bc1203..49b3d56 100644 --- a/build/release.sh +++ b/build/release.sh @@ -1,3 +1,3 @@ @echo off -dotnet build ../src/Umbraco.Community.BlockPreview.csproj --configuration Release /t:rebuild /t:pack -p:PackageOutputPath=../releases/nuget -dotnet build ../src-old/Our.Umbraco.BlockPreview.csproj --configuration Release /t:rebuild /t:pack -p:PackageOutputPath=../releases/nuget \ No newline at end of file +dotnet build ../src/Umbraco.Community.BlockPreview/Umbraco.Community.BlockPreview.csproj --configuration Release /t:rebuild /t:pack -p:PackageOutputPath=../../releases/nuget +dotnet build ../src/Our.Umbraco.BlockPreview/Our.Umbraco.BlockPreview.csproj --configuration Release /t:rebuild /t:pack -p:PackageOutputPath=../../releases/nuget \ No newline at end of file diff --git a/releases/nuget/Our.Umbraco.BlockPreview.1.3.1.nupkg b/releases/nuget/Our.Umbraco.BlockPreview.1.3.1.nupkg index d65fd13..c5c296a 100644 Binary files a/releases/nuget/Our.Umbraco.BlockPreview.1.3.1.nupkg and b/releases/nuget/Our.Umbraco.BlockPreview.1.3.1.nupkg differ diff --git a/releases/nuget/Umbraco.Community.BlockPreview.1.4.0.nupkg b/releases/nuget/Umbraco.Community.BlockPreview.1.4.0.nupkg new file mode 100644 index 0000000..88b18f6 Binary files /dev/null and b/releases/nuget/Umbraco.Community.BlockPreview.1.4.0.nupkg differ diff --git a/src/App_Plugins/Umbraco.Community.BlockPreview/views/block-preview.html b/src/App_Plugins/Umbraco.Community.BlockPreview/views/block-preview.html deleted file mode 100644 index 85c5ff1..0000000 --- a/src/App_Plugins/Umbraco.Community.BlockPreview/views/block-preview.html +++ /dev/null @@ -1,8 +0,0 @@ -
- -
- -
diff --git a/src-old/Our.Umbraco.BlockPreview.csproj b/src/Our.Umbraco.BlockPreview/Our.Umbraco.BlockPreview.csproj similarity index 91% rename from src-old/Our.Umbraco.BlockPreview.csproj rename to src/Our.Umbraco.BlockPreview/Our.Umbraco.BlockPreview.csproj index ce23017..9a278a9 100644 --- a/src-old/Our.Umbraco.BlockPreview.csproj +++ b/src/Our.Umbraco.BlockPreview/Our.Umbraco.BlockPreview.csproj @@ -25,6 +25,8 @@ true + README.md + @@ -40,15 +42,15 @@ true Always - + true buildTransitive - + True \ - + True \ diff --git a/src/Umbraco.Cms.11.x/.gitignore b/src/Umbraco.Cms.11.x/.gitignore new file mode 100644 index 0000000..8bcfaae --- /dev/null +++ b/src/Umbraco.Cms.11.x/.gitignore @@ -0,0 +1,479 @@ +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. +## +## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore + +# User-specific files +*.rsuser +*.suo +*.user +*.userosscache +*.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Mono auto generated files +mono_crash.* + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +[Ww][Ii][Nn]32/ +[Aa][Rr][Mm]/ +[Aa][Rr][Mm]64/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ +[Ll]ogs/ + +# Visual Studio 2015/2017 cache/options directory +.vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# Visual Studio 2017 auto generated files +Generated\ Files/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUnit +*.VisualState.xml +TestResult.xml +nunit-*.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# Benchmark Results +BenchmarkDotNet.Artifacts/ + +# .NET Core +project.lock.json +project.fragment.lock.json +artifacts/ + +# Tye +.tye/ + +# ASP.NET Scaffolding +ScaffoldingReadMe.txt + +# StyleCop +StyleCopReport.xml + +# Files built by Visual Studio +*_i.c +*_p.c +*_h.h +*.ilk +*.meta +*.obj +*.iobj +*.pch +*.pdb +*.ipdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*_wpftmp.csproj +*.log +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opendb +*.opensdf +*.sdf +*.cachefile +*.VC.db +*.VC.VC.opendb + +# Visual Studio profiler +*.psess +*.vsp +*.vspx +*.sap + +# Visual Studio Trace Files +*.e2e + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# AxoCover is a Code Coverage Tool +.axoCover/* +!.axoCover/settings.json + +# Coverlet is a free, cross platform Code Coverage Tool +coverage*.json +coverage*.xml +coverage*.info + +# Visual Studio code coverage results +*.coverage +*.coveragexml + +# NCrunch +_NCrunch_* +.*crunch*.local.xml +nCrunchTemp_* + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +# Note: Comment the next line if you want to checkin your web deploy settings, +# but database connection strings (with potential passwords) will be unencrypted +*.pubxml +*.publishproj + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted +PublishScripts/ + +# NuGet Packages +*.nupkg +# NuGet Symbol Packages +*.snupkg +# The packages folder can be ignored because of Package Restore +**/[Pp]ackages/* +# except build/, which is used as an MSBuild target. +!**/[Pp]ackages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/[Pp]ackages/repositories.config +# NuGet v3's project.json files produces more ignorable files +*.nuget.props +*.nuget.targets + +# Microsoft Azure Build Output +csx/ +*.build.csdef + +# Microsoft Azure Emulator +ecf/ +rcf/ + +# Windows Store app package directories and files +AppPackages/ +BundleArtifacts/ +Package.StoreAssociation.xml +_pkginfo.txt +*.appx +*.appxbundle +*.appxupload + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!?*.[Cc]ache/ + +# Others +ClientBin/ +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.jfm +*.pfx +*.publishsettings +orleans.codegen.cs + +# Including strong name files can present a security risk +# (https://github.com/github/gitignore/pull/2483#issue-259490424) +#*.snk + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) +#bower_components/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm +ServiceFabricBackup/ +*.rptproj.bak + +# SQL Server files +*.mdf +*.ldf +*.ndf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings +*.rptproj.rsuser +*- [Bb]ackup.rdl +*- [Bb]ackup ([0-9]).rdl +*- [Bb]ackup ([0-9][0-9]).rdl + +# Microsoft Fakes +FakesAssemblies/ + +# GhostDoc plugin setting file +*.GhostDoc.xml + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat +node_modules/ + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) +*.vbw + +# Visual Studio LightSwitch build output +**/*.HTMLClient/GeneratedArtifacts +**/*.DesktopClient/GeneratedArtifacts +**/*.DesktopClient/ModelManifest.xml +**/*.Server/GeneratedArtifacts +**/*.Server/ModelManifest.xml +_Pvt_Extensions + +# Paket dependency manager +.paket/paket.exe +paket-files/ + +# FAKE - F# Make +.fake/ + +# CodeRush personal settings +.cr/personal + +# Python Tools for Visual Studio (PTVS) +__pycache__/ +*.pyc + +# Cake - Uncomment if you are using it +# tools/** +# !tools/packages.config + +# Tabs Studio +*.tss + +# Telerik's JustMock configuration file +*.jmconfig + +# BizTalk build output +*.btp.cs +*.btm.cs +*.odx.cs +*.xsd.cs + +# OpenCover UI analysis results +OpenCover/ + +# Azure Stream Analytics local run output +ASALocalRun/ + +# MSBuild Binary and Structured Log +*.binlog + +# NVidia Nsight GPU debugger configuration file +*.nvuser + +# MFractors (Xamarin productivity tool) working folder +.mfractor/ + +# Local History for Visual Studio +.localhistory/ + +# BeatPulse healthcheck temp database +healthchecksdb + +# Backup folder for Package Reference Convert tool in Visual Studio 2017 +MigrationBackup/ + +# Ionide (cross platform F# VS Code tools) working folder +.ionide/ + +# Fody - auto-generated XML schema +FodyWeavers.xsd + +## +## Visual studio for Mac +## + + +# globs +Makefile.in +*.userprefs +*.usertasks +config.make +config.status +aclocal.m4 +install-sh +autom4te.cache/ +*.tar.gz +tarballs/ +test-results/ + +# Mac bundle stuff +*.dmg +*.app + +# content below from: https://github.com/github/gitignore/blob/master/Global/macOS.gitignore +# General +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + + +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns +.com.apple.timemachine.donotpresent + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +# content below from: https://github.com/github/gitignore/blob/master/Global/Windows.gitignore +# Windows thumbnail cache files +Thumbs.db +ehthumbs.db +ehthumbs_vista.db + +# Dump file +*.stackdump + +# Folder config file +[Dd]esktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msix +*.msm +*.msp + +# Windows shortcuts +*.lnk + +# JetBrains Rider +.idea/ +*.sln.iml + +## +## Visual Studio Code +## +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json + +## +## Umbraco CMS +## + +# JSON schema files for appsettings.json +appsettings-schema.json +appsettings-schema.*.json + +# Packages created from the backoffice (package.xml/package.zip) +/umbraco/Data/CreatedPackages/ + +# Temp folder containing Examine indexes, NuCache, MediaCache, etc. +/umbraco/Data/TEMP/ + +# SQLite database files +/umbraco/Data/*.sqlite.db +/umbraco/Data/*.sqlite.db-shm +/umbraco/Data/*.sqlite.db-wal + +# Log files +/umbraco/Logs/ + +# Media files +/wwwroot/media/ diff --git a/src/App_Plugins/Umbraco.Community.BlockPreview/js/controllers/block-preview.controller.js b/src/Umbraco.Cms.11.x/App_Plugins/Umbraco.Community.BlockPreview/js/controllers/block-preview.controller.js similarity index 93% rename from src/App_Plugins/Umbraco.Community.BlockPreview/js/controllers/block-preview.controller.js rename to src/Umbraco.Cms.11.x/App_Plugins/Umbraco.Community.BlockPreview/js/controllers/block-preview.controller.js index 6a0557b..c81198c 100644 --- a/src/App_Plugins/Umbraco.Community.BlockPreview/js/controllers/block-preview.controller.js +++ b/src/Umbraco.Cms.11.x/App_Plugins/Umbraco.Community.BlockPreview/js/controllers/block-preview.controller.js @@ -13,10 +13,10 @@ $scope.id = editorState.getCurrent().id; $scope.loading = true; - $scope.markup = $sce.trustAsHtml('Loading preview'); + $scope.markup = $sce.trustAsHtml('
Loading preview
'); function loadPreview(content, settings) { - $scope.markup = $sce.trustAsHtml('Loading preview'); + $scope.markup = $sce.trustAsHtml('
Loading preview
'); $scope.loading = true; var formattedBlockData = { diff --git a/src/App_Plugins/Umbraco.Community.BlockPreview/js/directives/bind-compile.directive.js b/src/Umbraco.Cms.11.x/App_Plugins/Umbraco.Community.BlockPreview/js/directives/bind-compile.directive.js similarity index 100% rename from src/App_Plugins/Umbraco.Community.BlockPreview/js/directives/bind-compile.directive.js rename to src/Umbraco.Cms.11.x/App_Plugins/Umbraco.Community.BlockPreview/js/directives/bind-compile.directive.js diff --git a/src/App_Plugins/Umbraco.Community.BlockPreview/js/directives/published-check.directive.js b/src/Umbraco.Cms.11.x/App_Plugins/Umbraco.Community.BlockPreview/js/directives/published-check.directive.js similarity index 100% rename from src/App_Plugins/Umbraco.Community.BlockPreview/js/directives/published-check.directive.js rename to src/Umbraco.Cms.11.x/App_Plugins/Umbraco.Community.BlockPreview/js/directives/published-check.directive.js diff --git a/src/App_Plugins/Umbraco.Community.BlockPreview/js/resources/preview.resource.js b/src/Umbraco.Cms.11.x/App_Plugins/Umbraco.Community.BlockPreview/js/resources/preview.resource.js similarity index 100% rename from src/App_Plugins/Umbraco.Community.BlockPreview/js/resources/preview.resource.js rename to src/Umbraco.Cms.11.x/App_Plugins/Umbraco.Community.BlockPreview/js/resources/preview.resource.js diff --git a/src/App_Plugins/Umbraco.Community.BlockPreview/package.manifest b/src/Umbraco.Cms.11.x/App_Plugins/Umbraco.Community.BlockPreview/package.manifest similarity index 95% rename from src/App_Plugins/Umbraco.Community.BlockPreview/package.manifest rename to src/Umbraco.Cms.11.x/App_Plugins/Umbraco.Community.BlockPreview/package.manifest index 361ade6..cad9c59 100644 --- a/src/App_Plugins/Umbraco.Community.BlockPreview/package.manifest +++ b/src/Umbraco.Cms.11.x/App_Plugins/Umbraco.Community.BlockPreview/package.manifest @@ -1,6 +1,6 @@ { "name": "Umbraco.Community.BlockPreview", - "version": "1.1.1", + "version": "1.4.0", "allowPackageTelemetry": true, "javascript": [ "~/App_Plugins/Umbraco.Community.BlockPreview/js/resources/preview.resource.js", diff --git a/src/Umbraco.Cms.11.x/App_Plugins/Umbraco.Community.BlockPreview/views/block-preview.html b/src/Umbraco.Cms.11.x/App_Plugins/Umbraco.Community.BlockPreview/views/block-preview.html new file mode 100644 index 0000000..45182a0 --- /dev/null +++ b/src/Umbraco.Cms.11.x/App_Plugins/Umbraco.Community.BlockPreview/views/block-preview.html @@ -0,0 +1,10 @@ + + +
+ +
+ +
diff --git a/src/Umbraco.Cms.11.x/App_Plugins/UmbracoBlockGrid/BlockViews/callToAction.html b/src/Umbraco.Cms.11.x/App_Plugins/UmbracoBlockGrid/BlockViews/callToAction.html new file mode 100644 index 0000000..fec70ae --- /dev/null +++ b/src/Umbraco.Cms.11.x/App_Plugins/UmbracoBlockGrid/BlockViews/callToAction.html @@ -0,0 +1,9 @@ + +
+ {{block.data.link[0].name}} +
\ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/App_Plugins/UmbracoBlockGrid/BlockViews/card.html b/src/Umbraco.Cms.11.x/App_Plugins/UmbracoBlockGrid/BlockViews/card.html new file mode 100644 index 0000000..4019f8f --- /dev/null +++ b/src/Umbraco.Cms.11.x/App_Plugins/UmbracoBlockGrid/BlockViews/card.html @@ -0,0 +1,32 @@ + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/App_Plugins/UmbracoBlockGrid/BlockViews/headline.html b/src/Umbraco.Cms.11.x/App_Plugins/UmbracoBlockGrid/BlockViews/headline.html new file mode 100644 index 0000000..9a9707b --- /dev/null +++ b/src/Umbraco.Cms.11.x/App_Plugins/UmbracoBlockGrid/BlockViews/headline.html @@ -0,0 +1,8 @@ + + +

{{block.data.headline}}

\ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/App_Plugins/UmbracoBlockGrid/BlockViews/hero.html b/src/Umbraco.Cms.11.x/App_Plugins/UmbracoBlockGrid/BlockViews/hero.html new file mode 100644 index 0000000..461bfb9 --- /dev/null +++ b/src/Umbraco.Cms.11.x/App_Plugins/UmbracoBlockGrid/BlockViews/hero.html @@ -0,0 +1,31 @@ + +
+ +
+
+
+

{{block.data.headline}}

+ +
+
\ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/App_Plugins/UmbracoBlockGrid/BlockViews/image.html b/src/Umbraco.Cms.11.x/App_Plugins/UmbracoBlockGrid/BlockViews/image.html new file mode 100644 index 0000000..23d506a --- /dev/null +++ b/src/Umbraco.Cms.11.x/App_Plugins/UmbracoBlockGrid/BlockViews/image.html @@ -0,0 +1,50 @@ + + + +
+ {{mediaItem = (block.data.image[0].mediaKey | mediaItemResolver); ""}} + {{mediaItem.name}} + + {{mediaItem.name}} +
\ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/App_Plugins/UmbracoBlockGrid/BlockViews/inspiration.html b/src/Umbraco.Cms.11.x/App_Plugins/UmbracoBlockGrid/BlockViews/inspiration.html new file mode 100644 index 0000000..066cdb2 --- /dev/null +++ b/src/Umbraco.Cms.11.x/App_Plugins/UmbracoBlockGrid/BlockViews/inspiration.html @@ -0,0 +1,12 @@ +
+ +
+ + + +
+ +
\ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/App_Plugins/UmbracoBlockGrid/BlockViews/oneColumnSection.html b/src/Umbraco.Cms.11.x/App_Plugins/UmbracoBlockGrid/BlockViews/oneColumnSection.html new file mode 100644 index 0000000..8606108 --- /dev/null +++ b/src/Umbraco.Cms.11.x/App_Plugins/UmbracoBlockGrid/BlockViews/oneColumnSection.html @@ -0,0 +1,6 @@ +
+ +
\ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/App_Plugins/UmbracoBlockGrid/BlockViews/richText.html b/src/Umbraco.Cms.11.x/App_Plugins/UmbracoBlockGrid/BlockViews/richText.html new file mode 100644 index 0000000..4389f3f --- /dev/null +++ b/src/Umbraco.Cms.11.x/App_Plugins/UmbracoBlockGrid/BlockViews/richText.html @@ -0,0 +1,8 @@ + +
+
\ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/App_Plugins/UmbracoBlockGrid/BlockViews/twoColumnSection.html b/src/Umbraco.Cms.11.x/App_Plugins/UmbracoBlockGrid/BlockViews/twoColumnSection.html new file mode 100644 index 0000000..8606108 --- /dev/null +++ b/src/Umbraco.Cms.11.x/App_Plugins/UmbracoBlockGrid/BlockViews/twoColumnSection.html @@ -0,0 +1,6 @@ +
+ +
\ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/App_Plugins/UmbracoBlockGrid/package.manifest b/src/Umbraco.Cms.11.x/App_Plugins/UmbracoBlockGrid/package.manifest new file mode 100644 index 0000000..108f1a3 --- /dev/null +++ b/src/Umbraco.Cms.11.x/App_Plugins/UmbracoBlockGrid/package.manifest @@ -0,0 +1,5 @@ +{ + "name": "Umbraco Block Grid Example Website", + "version": "1.0.0", + "allowPackageTelemetry": true +} \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/Program.cs b/src/Umbraco.Cms.11.x/Program.cs new file mode 100644 index 0000000..4c98660 --- /dev/null +++ b/src/Umbraco.Cms.11.x/Program.cs @@ -0,0 +1,19 @@ +namespace Umbraco.Cms._11.x +{ + public class Program + { + public static void Main(string[] args) + => CreateHostBuilder(args) + .Build() + .Run(); + + public static IHostBuilder CreateHostBuilder(string[] args) => + Host.CreateDefaultBuilder(args) + .ConfigureUmbracoDefaults() + .ConfigureWebHostDefaults(webBuilder => + { + webBuilder.UseStaticWebAssets(); + webBuilder.UseStartup(); + }); + } +} diff --git a/src/Umbraco.Cms.11.x/Properties/launchSettings.json b/src/Umbraco.Cms.11.x/Properties/launchSettings.json new file mode 100644 index 0000000..ade336c --- /dev/null +++ b/src/Umbraco.Cms.11.x/Properties/launchSettings.json @@ -0,0 +1,29 @@ +{ + "$schema": "https://json.schemastore.org/launchsettings.json", + "iisSettings": { + "windowsAuthentication": false, + "anonymousAuthentication": true, + "iisExpress": { + "applicationUrl": "http://localhost:63790", + "sslPort": 44354 + } + }, + "profiles": { + "IIS Express": { + "commandName": "IISExpress", + "launchBrowser": true, + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "Umbraco.Web.UI": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": true, + "applicationUrl": "https://localhost:44354;http://localhost:63790", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + } + } +} diff --git a/src/Umbraco.Cms.11.x/Startup.cs b/src/Umbraco.Cms.11.x/Startup.cs new file mode 100644 index 0000000..9b99ce7 --- /dev/null +++ b/src/Umbraco.Cms.11.x/Startup.cs @@ -0,0 +1,68 @@ +using Umbraco.Community.BlockPreview; + +namespace Umbraco.Cms._11.x +{ + public class Startup + { + private readonly IWebHostEnvironment _env; + private readonly IConfiguration _config; + + /// + /// Initializes a new instance of the class. + /// + /// The web hosting environment. + /// The configuration. + /// + /// Only a few services are possible to be injected here https://github.com/dotnet/aspnetcore/issues/9337. + /// + public Startup(IWebHostEnvironment webHostEnvironment, IConfiguration config) + { + _env = webHostEnvironment ?? throw new ArgumentNullException(nameof(webHostEnvironment)); + _config = config ?? throw new ArgumentNullException(nameof(config)); + } + + /// + /// Configures the services. + /// + /// The services. + /// + /// This method gets called by the runtime. Use this method to add services to the container. + /// For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940. + /// + public void ConfigureServices(IServiceCollection services) + { + services.AddUmbraco(_env, _config) + .AddBackOffice() + .AddWebsite() + .AddBlockPreview() + .AddComposers() + .Build(); + } + + /// + /// Configures the application. + /// + /// The application builder. + /// The web hosting environment. + public void Configure(IApplicationBuilder app, IWebHostEnvironment env) + { + if (env.IsDevelopment()) + { + app.UseDeveloperExceptionPage(); + } + + app.UseUmbraco() + .WithMiddleware(u => + { + u.UseBackOffice(); + u.UseWebsite(); + }) + .WithEndpoints(u => + { + u.UseInstallerEndpoints(); + u.UseBackOfficeEndpoints(); + u.UseWebsiteEndpoints(); + }); + } + } +} diff --git a/src/Umbraco.Cms.11.x/Umbraco.Cms.11.x.csproj b/src/Umbraco.Cms.11.x/Umbraco.Cms.11.x.csproj new file mode 100644 index 0000000..166bfca --- /dev/null +++ b/src/Umbraco.Cms.11.x/Umbraco.Cms.11.x.csproj @@ -0,0 +1,59 @@ + + + net7.0 + enable + enable + Umbraco.Cms._11.x + + + + true + Always + + + true + Always + + + true + Always + + + true + Always + + + true + Always + + + true + Always + + + + + + + + + + + + + + + + + + + true + + + + + false + false + + + diff --git a/src/Umbraco.Cms.11.x/Views/BlockGrid.cshtml b/src/Umbraco.Cms.11.x/Views/BlockGrid.cshtml new file mode 100644 index 0000000..9392975 --- /dev/null +++ b/src/Umbraco.Cms.11.x/Views/BlockGrid.cshtml @@ -0,0 +1,7 @@ +@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage +@using ContentModels = Umbraco.Cms.Web.Common.PublishedModels; +@{ + Layout = "Layout.cshtml"; +} + +@await Html.GetBlockGridHtmlAsync(Model.Content) \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/Views/Layout.cshtml b/src/Umbraco.Cms.11.x/Views/Layout.cshtml new file mode 100644 index 0000000..35d3caf --- /dev/null +++ b/src/Umbraco.Cms.11.x/Views/Layout.cshtml @@ -0,0 +1,23 @@ +@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage +@{ + Layout = null; +} + + + + Block Grid Examples + + + + + + + + + + + + @RenderBody() + + + diff --git a/src/Umbraco.Cms.11.x/Views/Partials/blockgrid/Components/callToActionBlock.cshtml b/src/Umbraco.Cms.11.x/Views/Partials/blockgrid/Components/callToActionBlock.cshtml new file mode 100644 index 0000000..f9ac3f8 --- /dev/null +++ b/src/Umbraco.Cms.11.x/Views/Partials/blockgrid/Components/callToActionBlock.cshtml @@ -0,0 +1,11 @@ +@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage> +@using ContentModels = Umbraco.Cms.Web.Common.PublishedModels; +@{ + var link = Model.Content.Link; + if (link is null) + { + return; + } +} + +@link.Name \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/Views/Partials/blockgrid/Components/cardBlock.cshtml b/src/Umbraco.Cms.11.x/Views/Partials/blockgrid/Components/cardBlock.cshtml new file mode 100644 index 0000000..424d817 --- /dev/null +++ b/src/Umbraco.Cms.11.x/Views/Partials/blockgrid/Components/cardBlock.cshtml @@ -0,0 +1,23 @@ +@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage> + +
+ +
+ @{ + var image = Model.Content.Image; + if (image is not null) + { + + } + else + { +

Missing image

+ } + } +
+
+

@Model.Content.Headline

+
@Model.Content.RichText
+
+ +
\ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/Views/Partials/blockgrid/Components/headlineBlock.cshtml b/src/Umbraco.Cms.11.x/Views/Partials/blockgrid/Components/headlineBlock.cshtml new file mode 100644 index 0000000..d6da42b --- /dev/null +++ b/src/Umbraco.Cms.11.x/Views/Partials/blockgrid/Components/headlineBlock.cshtml @@ -0,0 +1,4 @@ +@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage> +@using ContentModels = Umbraco.Cms.Web.Common.PublishedModels; + +

@Model.Content.Headline

\ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/Views/Partials/blockgrid/Components/heroBlock.cshtml b/src/Umbraco.Cms.11.x/Views/Partials/blockgrid/Components/heroBlock.cshtml new file mode 100644 index 0000000..7becb66 --- /dev/null +++ b/src/Umbraco.Cms.11.x/Views/Partials/blockgrid/Components/heroBlock.cshtml @@ -0,0 +1,27 @@ +@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage> +@{ + var backgroundColor = Model.Content.BackgroundColor; + var image = Model.Content.Image; + var hasBrightContrast = Model.Content.Contrast == "ffffff"; +} + +
+ + @if (image is not null) { +
+
+ } + +
+

@Model.Content.Headline

+ @* Only render if there is some content... *@ + @if (Model.Areas.Any(a => a.Any())) { + @await Html.GetPreviewBlockGridItemAreasHtmlAsync(Model) + } +
+
+ + diff --git a/src/Umbraco.Cms.11.x/Views/Partials/blockgrid/Components/imageBlock.cshtml b/src/Umbraco.Cms.11.x/Views/Partials/blockgrid/Components/imageBlock.cshtml new file mode 100644 index 0000000..47a7fb5 --- /dev/null +++ b/src/Umbraco.Cms.11.x/Views/Partials/blockgrid/Components/imageBlock.cshtml @@ -0,0 +1,12 @@ +@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage> +@{ + var image = Model.Content.Image; + if (image is not null) + { + @image.Name + } + else + { +

Missing image

+ } +} diff --git a/src/Umbraco.Cms.11.x/Views/Partials/blockgrid/Components/inspirationBlock.cshtml b/src/Umbraco.Cms.11.x/Views/Partials/blockgrid/Components/inspirationBlock.cshtml new file mode 100644 index 0000000..8f7e372 --- /dev/null +++ b/src/Umbraco.Cms.11.x/Views/Partials/blockgrid/Components/inspirationBlock.cshtml @@ -0,0 +1,24 @@ +@using Umbraco.Extensions; +@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage> +@using ContentModels = Umbraco.Cms.Web.Common.PublishedModels; +@{ + var backgroundColor = Model.Settings.BackgroundColor; + var hasBrightContrast = Model.Settings.Contrast == "ffffff"; +} + +
+
+
+ @await Html.GetPreviewBlockGridItemAreaHtmlAsync(Model, "leftArea") +
+
+ @await Html.GetPreviewBlockGridItemAreaHtmlAsync(Model, "rightArea") +
+
+ @await Html.GetPreviewBlockGridItemAreaHtmlAsync(Model, "contentArea") +
+
+
diff --git a/src/Umbraco.Cms.11.x/Views/Partials/blockgrid/Components/oneColumnSectionBlock.cshtml b/src/Umbraco.Cms.11.x/Views/Partials/blockgrid/Components/oneColumnSectionBlock.cshtml new file mode 100644 index 0000000..ec481c6 --- /dev/null +++ b/src/Umbraco.Cms.11.x/Views/Partials/blockgrid/Components/oneColumnSectionBlock.cshtml @@ -0,0 +1,14 @@ +@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage> +@using ContentModels = Umbraco.Cms.Web.Common.PublishedModels; +@{ + var backgroundColor = Model.Settings.BackgroundColor; + var noBackgroundColor = string.IsNullOrEmpty(backgroundColor); + var hasBrightContrast = Model.Settings.Contrast == "ffffff"; +} + +
+ @await Html.GetPreviewBlockGridItemAreasHtmlAsync(Model) +
diff --git a/src/Umbraco.Cms.11.x/Views/Partials/blockgrid/Components/richTextBlock.cshtml b/src/Umbraco.Cms.11.x/Views/Partials/blockgrid/Components/richTextBlock.cshtml new file mode 100644 index 0000000..bd050c0 --- /dev/null +++ b/src/Umbraco.Cms.11.x/Views/Partials/blockgrid/Components/richTextBlock.cshtml @@ -0,0 +1,4 @@ +@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage> +@using ContentModels = Umbraco.Cms.Web.Common.PublishedModels; + +
@Model.Content.RichText
\ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/Views/Partials/blockgrid/Components/twoColumnSectionBlock.cshtml b/src/Umbraco.Cms.11.x/Views/Partials/blockgrid/Components/twoColumnSectionBlock.cshtml new file mode 100644 index 0000000..50d46b8 --- /dev/null +++ b/src/Umbraco.Cms.11.x/Views/Partials/blockgrid/Components/twoColumnSectionBlock.cshtml @@ -0,0 +1,15 @@ +@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage> +@using ContentModels = Umbraco.Cms.Web.Common.PublishedModels; + +@{ + var backgroundColor = Model.Settings.BackgroundColor; + var noBackgroundColor = String.IsNullOrEmpty(backgroundColor); + var hasBrightContrast = Model.Settings.Contrast == "ffffff"; +} + +
+ @await Html.GetPreviewBlockGridItemAreasHtmlAsync(Model) +
diff --git a/src/Umbraco.Cms.11.x/Views/Partials/blockgrid/area.cshtml b/src/Umbraco.Cms.11.x/Views/Partials/blockgrid/area.cshtml new file mode 100644 index 0000000..e59d8fe --- /dev/null +++ b/src/Umbraco.Cms.11.x/Views/Partials/blockgrid/area.cshtml @@ -0,0 +1,10 @@ +@using Umbraco.Extensions +@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage + +
+ @await Html.GetPreviewBlockGridItemsHtmlAsync(Model) +
diff --git a/src/Umbraco.Cms.11.x/Views/Partials/blockgrid/areas.cshtml b/src/Umbraco.Cms.11.x/Views/Partials/blockgrid/areas.cshtml new file mode 100644 index 0000000..3f4a537 --- /dev/null +++ b/src/Umbraco.Cms.11.x/Views/Partials/blockgrid/areas.cshtml @@ -0,0 +1,13 @@ +@using Umbraco.Extensions +@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage +@{ + if (Model?.Areas.Any() != true) { return; } +} + +
+ @foreach (var area in Model.Areas) + { + @await Html.GetPreviewBlockGridItemAreaHtmlAsync(area) + } +
diff --git a/src/Umbraco.Cms.11.x/Views/Partials/blockgrid/default.cshtml b/src/Umbraco.Cms.11.x/Views/Partials/blockgrid/default.cshtml new file mode 100644 index 0000000..cc998c6 --- /dev/null +++ b/src/Umbraco.Cms.11.x/Views/Partials/blockgrid/default.cshtml @@ -0,0 +1,11 @@ +@using Umbraco.Extensions +@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage +@{ + if (Model?.Any() != true) { return; } +} + +
+ @await Html.GetPreviewBlockGridItemsHtmlAsync(Model) +
diff --git a/src/Umbraco.Cms.11.x/Views/Partials/blockgrid/items.cshtml b/src/Umbraco.Cms.11.x/Views/Partials/blockgrid/items.cshtml new file mode 100644 index 0000000..0164d64 --- /dev/null +++ b/src/Umbraco.Cms.11.x/Views/Partials/blockgrid/items.cshtml @@ -0,0 +1,35 @@ +@using Umbraco.Cms.Core.Models.Blocks +@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage> +@{ + if (Model?.Any() != true) { return; } +} + +
+ @foreach (var item in Model) + { +
+ @{ + var partialViewName = "blockgrid/Components/" + item.Content.ContentType.Alias; + try + { + @await Html.PartialAsync(partialViewName, item) + } + catch (InvalidOperationException) + { +

+ Could not render component of type: @(item.Content.ContentType.Alias) +
+ This likely happened because the partial view @partialViewName could not be found. +

+ } + } +
+ } +
diff --git a/src/Umbraco.Cms.11.x/Views/Partials/blocklist/default.cshtml b/src/Umbraco.Cms.11.x/Views/Partials/blocklist/default.cshtml new file mode 100644 index 0000000..accca2e --- /dev/null +++ b/src/Umbraco.Cms.11.x/Views/Partials/blocklist/default.cshtml @@ -0,0 +1,13 @@ +@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage +@{ + if (Model?.Any() != true) { return; } +} +
+ @foreach (var block in Model) + { + if (block?.ContentUdi == null) { continue; } + var data = block.Content; + + @await Html.PartialAsync("blocklist/Components/" + data.ContentType.Alias, block) + } +
diff --git a/src/Umbraco.Cms.11.x/Views/Partials/grid/bootstrap3-fluid.cshtml b/src/Umbraco.Cms.11.x/Views/Partials/grid/bootstrap3-fluid.cshtml new file mode 100644 index 0000000..b92734e --- /dev/null +++ b/src/Umbraco.Cms.11.x/Views/Partials/grid/bootstrap3-fluid.cshtml @@ -0,0 +1,106 @@ +@using System.Web +@using Microsoft.AspNetCore.Html +@using Newtonsoft.Json.Linq +@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage + +@* + Razor helpers located at the bottom of this file +*@ + +@if (Model is JObject && Model?.sections is not null) +{ + var oneColumn = ((System.Collections.ICollection)Model.sections).Count == 1; + +
+ @if (oneColumn) + { + foreach (var section in Model.sections) + { +
+ @foreach (var row in section.rows) + { + renderRow(row); + } +
+ } + } + else + { +
+ @foreach (var sec in Model.sections) + { +
+
+ @foreach (var row in sec.rows) + { + renderRow(row); + } +
+
+ } +
+ } +
+} + +@functions{ + + private async Task renderRow(dynamic row) + { +
+
+ @foreach (var area in row.areas) + { +
+
+ @foreach (var control in area.controls) + { + if (control?.editor?.view != null) + { + @await Html.PartialAsync("grid/editors/base", (object)control) + } + } +
+
+ } +
+
+ } +} + +@functions{ + + public static HtmlString RenderElementAttributes(dynamic contentItem) + { + var attrs = new List(); + JObject cfg = contentItem.config; + + if (cfg != null) + { + foreach (JProperty property in cfg.Properties()) + { + var propertyValue = HttpUtility.HtmlAttributeEncode(property.Value.ToString()); + attrs.Add(property.Name + "=\"" + propertyValue + "\""); + } + } + + JObject style = contentItem.styles; + + if (style != null) { + var cssVals = new List(); + foreach (JProperty property in style.Properties()) + { + var propertyValue = property.Value.ToString(); + if (string.IsNullOrWhiteSpace(propertyValue) == false) + { + cssVals.Add(property.Name + ":" + propertyValue + ";"); + } + } + + if (cssVals.Any()) + attrs.Add("style='" + HttpUtility.HtmlAttributeEncode(string.Join(" ", cssVals)) + "'"); + } + + return new HtmlString(string.Join(" ", attrs)); + } +} diff --git a/src/Umbraco.Cms.11.x/Views/Partials/grid/bootstrap3.cshtml b/src/Umbraco.Cms.11.x/Views/Partials/grid/bootstrap3.cshtml new file mode 100644 index 0000000..8863788 --- /dev/null +++ b/src/Umbraco.Cms.11.x/Views/Partials/grid/bootstrap3.cshtml @@ -0,0 +1,112 @@ +@using System.Web +@using Microsoft.AspNetCore.Html +@using Newtonsoft.Json.Linq +@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage + +@if (Model is JObject && Model?.sections is not null) +{ + var oneColumn = ((System.Collections.ICollection)Model.sections).Count == 1; + +
+ @if (oneColumn) + { + foreach (var section in Model.sections) + { +
+ @foreach (var row in section.rows) + { + renderRow(row, true); + } +
+ } + } + else + { +
+
+ @foreach (var sec in Model.sections) + { +
+
+ @foreach (var row in sec.rows) + { + renderRow(row, false); + } +
+
+ } +
+
+ } +
+} + +@functions{ + + private async Task renderRow(dynamic row, bool singleColumn) + { +
+ @if (singleColumn) { + @:
+ } +
+ @foreach (var area in row.areas) + { +
+
+ @foreach (var control in area.controls) + { + if (control?.editor?.view != null) + { + @await Html.PartialAsync("grid/editors/base", (object)control) + } + } +
+
+ } +
+ @if (singleColumn) { + @:
+ } +
+ } + +} + +@functions{ + + public static HtmlString RenderElementAttributes(dynamic contentItem) + { + var attrs = new List(); + JObject cfg = contentItem.config; + + if (cfg != null) + { + foreach (JProperty property in cfg.Properties()) + { + var propertyValue = HttpUtility.HtmlAttributeEncode(property.Value.ToString()); + attrs.Add(property.Name + "=\"" + propertyValue + "\""); + } + } + + JObject style = contentItem.styles; + + if (style != null) + { + var cssVals = new List(); + foreach (JProperty property in style.Properties()) + { + var propertyValue = property.Value.ToString(); + if (string.IsNullOrWhiteSpace(propertyValue) == false) + { + cssVals.Add(property.Name + ":" + propertyValue + ";"); + } + } + + if (cssVals.Any()) + attrs.Add("style=\"" + HttpUtility.HtmlAttributeEncode(string.Join(" ", cssVals)) + "\""); + } + + return new HtmlString(string.Join(" ", attrs)); + } +} diff --git a/src/Umbraco.Cms.11.x/Views/Partials/grid/editors/base.cshtml b/src/Umbraco.Cms.11.x/Views/Partials/grid/editors/base.cshtml new file mode 100644 index 0000000..e40543b --- /dev/null +++ b/src/Umbraco.Cms.11.x/Views/Partials/grid/editors/base.cshtml @@ -0,0 +1,27 @@ +@model dynamic + +@try +{ + string editor = EditorView(Model); + @await Html.PartialAsync(editor, Model as object) +} +catch (Exception ex) +{ +
@ex.ToString()
+} + +@functions{ + + public static string EditorView(dynamic contentItem) + { + string view = contentItem.editor.render != null ? contentItem.editor.render.ToString() : contentItem.editor.view.ToString(); + view = view.Replace(".html", ".cshtml"); + + if (!view.Contains("/")) + { + view = "grid/editors/" + view; + } + + return view; + } +} diff --git a/src/Umbraco.Cms.11.x/Views/Partials/grid/editors/embed.cshtml b/src/Umbraco.Cms.11.x/Views/Partials/grid/editors/embed.cshtml new file mode 100644 index 0000000..74c8fe2 --- /dev/null +++ b/src/Umbraco.Cms.11.x/Views/Partials/grid/editors/embed.cshtml @@ -0,0 +1,11 @@ +@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage + +@if (Model is not null) +{ + string embedValue = Convert.ToString(Model.value); + embedValue = embedValue.DetectIsJson() ? Model.value.preview : Model.value; + +
+ @Html.Raw(embedValue) +
+} diff --git a/src/Umbraco.Cms.11.x/Views/Partials/grid/editors/macro.cshtml b/src/Umbraco.Cms.11.x/Views/Partials/grid/editors/macro.cshtml new file mode 100644 index 0000000..a4450d1 --- /dev/null +++ b/src/Umbraco.Cms.11.x/Views/Partials/grid/editors/macro.cshtml @@ -0,0 +1,15 @@ +@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage + +@if (Model?.value is not null) +{ + string macroAlias = Model.value.macroAlias.ToString(); + var parameters = new Dictionary(); + foreach (var mpd in Model.value.macroParamsDictionary) + { + parameters.Add(mpd.Name, mpd.Value); + } + + + @await Umbraco.RenderMacroAsync(macroAlias, parameters) + +} diff --git a/src/Umbraco.Cms.11.x/Views/Partials/grid/editors/media.cshtml b/src/Umbraco.Cms.11.x/Views/Partials/grid/editors/media.cshtml new file mode 100644 index 0000000..bc3b111 --- /dev/null +++ b/src/Umbraco.Cms.11.x/Views/Partials/grid/editors/media.cshtml @@ -0,0 +1,64 @@ +@model dynamic +@using Umbraco.Cms.Core.Media +@using Umbraco.Cms.Core.PropertyEditors.ValueConverters +@inject IImageUrlGenerator ImageUrlGenerator + +@if (Model?.value is not null) +{ + var url = Model.value.image; + + if (Model.editor.config != null && Model.editor.config.size != null) + { + if (Model.value.coordinates != null) + { + url = ImageCropperTemplateCoreExtensions.GetCropUrl( + (string)url, + ImageUrlGenerator, + width: (int)Model.editor.config.size.width, + height: (int)Model.editor.config.size.height, + cropAlias: "default", + cropDataSet: new ImageCropperValue + { + Crops = new[] + { + new ImageCropperValue.ImageCropperCrop + { + Alias = "default", + Coordinates = new ImageCropperValue.ImageCropperCropCoordinates + { + X1 = (decimal)Model.value.coordinates.x1, + Y1 = (decimal)Model.value.coordinates.y1, + X2 = (decimal)Model.value.coordinates.x2, + Y2 = (decimal)Model.value.coordinates.y2 + } + } + } + }); + } + else + { + url = ImageCropperTemplateCoreExtensions.GetCropUrl( + (string)url, + ImageUrlGenerator, + width: (int)Model.editor.config.size.width, + height: (int)Model.editor.config.size.height, + cropDataSet: new ImageCropperValue + { + FocalPoint = new ImageCropperValue.ImageCropperFocalPoint + { + Top = Model.value.focalPoint == null ? 0.5m : Model.value.focalPoint.top, + Left = Model.value.focalPoint == null ? 0.5m : Model.value.focalPoint.left + } + }); + } + } + + var altText = Model.value.altText ?? Model.value.caption ?? string.Empty; + + @altText + + if (Model.value.caption != null) + { +

@Model.value.caption

+ } +} diff --git a/src/Umbraco.Cms.11.x/Views/Partials/grid/editors/rte.cshtml b/src/Umbraco.Cms.11.x/Views/Partials/grid/editors/rte.cshtml new file mode 100644 index 0000000..9445666 --- /dev/null +++ b/src/Umbraco.Cms.11.x/Views/Partials/grid/editors/rte.cshtml @@ -0,0 +1,13 @@ +@using Umbraco.Cms.Core.Templates +@model dynamic +@inject HtmlLocalLinkParser HtmlLocalLinkParser; +@inject HtmlUrlParser HtmlUrlParser; +@inject HtmlImageSourceParser HtmlImageSourceParser; + +@{ + var value = HtmlLocalLinkParser.EnsureInternalLinks(Model?.value.ToString()); + value = HtmlUrlParser.EnsureUrls(value); + value = HtmlImageSourceParser.EnsureImageSources(value); +} + +@Html.Raw(value) diff --git a/src/Umbraco.Cms.11.x/Views/Partials/grid/editors/textstring.cshtml b/src/Umbraco.Cms.11.x/Views/Partials/grid/editors/textstring.cshtml new file mode 100644 index 0000000..e6b9352 --- /dev/null +++ b/src/Umbraco.Cms.11.x/Views/Partials/grid/editors/textstring.cshtml @@ -0,0 +1,22 @@ +@model dynamic + +@if (Model?.editor.config.markup is not null) +{ + string markup = Model.editor.config.markup.ToString(); + markup = markup.Replace("#value#", Html.ReplaceLineBreaks((string)Model.value.ToString()).ToString()); + + if (Model.editor.config.style != null) + { + markup = markup.Replace("#style#", Model.editor.config.style.ToString()); + } + + + @Html.Raw(markup) + +} +else +{ + +
@Model?.value
+
+} diff --git a/src/Umbraco.Cms.11.x/Views/_ViewImports.cshtml b/src/Umbraco.Cms.11.x/Views/_ViewImports.cshtml new file mode 100644 index 0000000..e155aa0 --- /dev/null +++ b/src/Umbraco.Cms.11.x/Views/_ViewImports.cshtml @@ -0,0 +1,10 @@ +@using Umbraco.Extensions +@using Umbraco.Cms._11.x +@using Umbraco.Cms.Web.Common.PublishedModels +@using Umbraco.Cms.Web.Common.Views +@using Umbraco.Cms.Core.Models.PublishedContent +@using Umbraco.Community.BlockPreview.Extensions +@using Microsoft.AspNetCore.Html +@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers +@addTagHelper *, Smidge +@inject Smidge.SmidgeHelper SmidgeHelper diff --git a/src/Umbraco.Cms.11.x/appsettings.Development.json b/src/Umbraco.Cms.11.x/appsettings.Development.json new file mode 100644 index 0000000..9413e85 --- /dev/null +++ b/src/Umbraco.Cms.11.x/appsettings.Development.json @@ -0,0 +1,48 @@ +{ + "$schema": "appsettings-schema.json", + "Serilog": { + "MinimumLevel": { + "Default": "Information" + }, + "WriteTo": [ + { + "Name": "Async", + "Args": { + "configure": [ + { + "Name": "Console" + } + ] + } + } + ] + }, + "ConnectionStrings": { + "umbracoDbDSN": "Data Source=|DataDirectory|/Umbraco.sqlite.db;Cache=Shared;Foreign Keys=True;Pooling=True", + "umbracoDbDSN_ProviderName": "Microsoft.Data.Sqlite" + }, + "Umbraco": { + "CMS": { + "Unattended": { + "InstallUnattended": true, + "UpgradeUnattended": true, + "UnattendedUserName": "Admin", + "UnattendedUserEmail": "admin@example.com", + "UnattendedUserPassword": "1234567890" + }, + "Content": { + "MacroErrors": "Throw" + }, + "Hosting": { + "Debug": true + }, + "ModelsBuilder": { + "ModelsMode": "SourceCodeAuto" + }, + "RuntimeMinification": { + "UseInMemoryCache": true, + "CacheBuster": "Timestamp" + } + } + } +} diff --git a/src/Umbraco.Cms.11.x/appsettings.json b/src/Umbraco.Cms.11.x/appsettings.json new file mode 100644 index 0000000..b26ea0a --- /dev/null +++ b/src/Umbraco.Cms.11.x/appsettings.json @@ -0,0 +1,27 @@ +{ + "$schema": "appsettings-schema.json", + "Serilog": { + "MinimumLevel": { + "Default": "Information", + "Override": { + "Microsoft": "Warning", + "Microsoft.Hosting.Lifetime": "Information", + "System": "Warning" + } + } + }, + "Umbraco": { + "CMS": { + "Global": { + "Id": "35725dfe-97ba-4171-a75a-8ea18d0591fb", + "SanitizeTinyMce": true + }, + "Content": { + "AllowEditInvariantFromNonDefault": true, + "ContentVersionCleanupPolicy": { + "EnableCleanup": true + } + } + } + } +} diff --git a/src/Umbraco.Cms.11.x/uSync/v9/Content/home.config b/src/Umbraco.Cms.11.x/uSync/v9/Content/home.config new file mode 100644 index 0000000..464259b --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/Content/home.config @@ -0,0 +1,460 @@ + + + + + /Home + false + blockGrid + 2023-06-27T19:04:55 + + 0 + + + + + + + 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.

" + }, + { + "contentTypeKey": "964feee4-efb3-4676-91a0-b960f26e9d92", + "udi": "umb://element/f299ce4988d54a10b313455583752403" + }, + { + "contentTypeKey": "69de9db6-ec92-4989-a5f6-8437b8f3d5cd", + "udi": "umb://element/0d8e8778175b4b898a6aed340ea86934", + "richText": "

Five ways to reduce your greenhouse gas emissions

\n

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:

\n

Eat less (or no) meat. 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.

\n

Hook your home up to clean energy. 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.

\n

Insulate your house. 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.

\n

Travel smart. 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.

\n

Use only the energy you need. 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.

" + }, + { + "contentTypeKey": "e7cd2fff-36b9-4853-9a29-5afe4c1c47bb", + "udi": "umb://element/5572afb2ccc74433911fb208c59cf256" + }, + { + "contentTypeKey": "e91cd36f-4bdf-4c74-90bf-b2c85fd00dae", + "udi": "umb://element/f92e56bd758649228727563a19e03fbc", + "image": "[\r\n {\r\n \"key\": \"b100279e-83bc-4d85-9701-384ceae63865\",\r\n \"mediaKey\": \"0adf4aaf-9738-4c8c-970d-5e4bf1fc9707\"\r\n }\r\n]" + }, + { + "contentTypeKey": "62351bd5-75fc-4d93-a6b2-b99439a9161f", + "udi": "umb://element/c06bb715ddfc4bf3858229ebce5bddfd", + "headline": "Energy usage" + }, + { + "contentTypeKey": "69de9db6-ec92-4989-a5f6-8437b8f3d5cd", + "udi": "umb://element/ddf2400ecb0942dab46a863b28e8c190", + "richText": "

Humans derive energy from burning fossil fuels, which releases almost three quarters of all human-produced greenhouse gases into the atmosphere. Half of all fossil fuels are burned to provide electricity and heat; the next big users of fossil fuels are manufacturing and transportation.

" + }, + { + "contentTypeKey": "1d05aa7a-16bd-4f3f-b094-023fd0bf0332", + "udi": "umb://element/939d9aa00101481986110f27aed97c5c", + "link": "[{\"name\":\"Find your solution\",\"target\":\"\",\"udi\":\"umb://document/6ac5363ad8124ce9aa893a3973426c70\"}]" + }, + { + "contentTypeKey": "e7cd2fff-36b9-4853-9a29-5afe4c1c47bb", + "udi": "umb://element/82a9e6a51c284e4c929759021871d495" + }, + { + "contentTypeKey": "e91cd36f-4bdf-4c74-90bf-b2c85fd00dae", + "udi": "umb://element/a60f6ce454bd490eb349f8e2b1ae806e", + "image": "[\r\n {\r\n \"key\": \"be4c4bb3-8c48-4403-8f75-be1a8b8c74de\",\r\n \"mediaKey\": \"fbb3c9cb-f708-4106-8588-f7e99ebf0d8d\"\r\n }\r\n]" + }, + { + "contentTypeKey": "62351bd5-75fc-4d93-a6b2-b99439a9161f", + "udi": "umb://element/5e5974a3716c4f1fb3f24a6401289249", + "headline": "Renewable energy" + }, + { + "contentTypeKey": "69de9db6-ec92-4989-a5f6-8437b8f3d5cd", + "udi": "umb://element/7f1a610ac1da4143a5158bcd9483fd2b", + "richText": "

The phrase “global warming” hasn’t been around long, but climate change, as it’s also known, is nothing new. In fact, it has been a constant throughout history. Earth’s climate today is very different from what it was 2 million years ago, let alone 10,000 years ago.

" + }, + { + "contentTypeKey": "1d05aa7a-16bd-4f3f-b094-023fd0bf0332", + "udi": "umb://element/4bd258d683cd45478991f7ae8c4b1faa", + "link": "[{\"name\":\"Get inspired today\",\"target\":\"\",\"udi\":\"umb://document/6ac5363ad8124ce9aa893a3973426c70\"}]" + }, + { + "contentTypeKey": "e7cd2fff-36b9-4853-9a29-5afe4c1c47bb", + "udi": "umb://element/87c966fc4ade4261b03ed5e0191677dc" + }, + { + "contentTypeKey": "e91cd36f-4bdf-4c74-90bf-b2c85fd00dae", + "udi": "umb://element/890066c8df5c4323bcd7abe3185e3046", + "image": "[\r\n {\r\n \"key\": \"b4dda200-1e4a-46f7-9cac-7e934703cdba\",\r\n \"mediaKey\": \"76e87651-7962-4c73-ae6b-684921a81c1e\"\r\n }\r\n]" + }, + { + "contentTypeKey": "62351bd5-75fc-4d93-a6b2-b99439a9161f", + "udi": "umb://element/abbd585a19da4a53a380843399f6913d", + "headline": "Emerging use of technologies" + }, + { + "contentTypeKey": "69de9db6-ec92-4989-a5f6-8437b8f3d5cd", + "udi": "umb://element/bb3875a42a3243c88820f39f31668bfc", + "richText": "

Humans derive energy from burning fossil fuels, which releases almost three quarters of all human-produced greenhouse gases into the atmosphere. Half of all fossil fuels are burned to provide electricity and heat; the next big users of fossil fuels are manufacturing and transportation.

" + }, + { + "contentTypeKey": "1d05aa7a-16bd-4f3f-b094-023fd0bf0332", + "udi": "umb://element/d13498b835094994bfe943b2e91c74e6", + "link": "[{\"name\":\"Solutions for life\",\"udi\":\"umb://document/6ac5363ad8124ce9aa893a3973426c70\"}]" + }, + { + "contentTypeKey": "964feee4-efb3-4676-91a0-b960f26e9d92", + "udi": "umb://element/51e5a28718704b8fb58319c4d1cbabe9" + }, + { + "contentTypeKey": "69de9db6-ec92-4989-a5f6-8437b8f3d5cd", + "udi": "umb://element/4c3ac78ea12d454fab3d3441fd066d5b", + "richText": "

Other ways to reduce your greenhouse content reuse

\n

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:

\n

Eat less (or no) meat. 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.

\n

Hook your home up to clean energy. 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.

\n

Insulate your house. 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.

\n

Travel smart. 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.

\n

Use only the energy you need. 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.

" + }, + { + "contentTypeKey": "054fd67a-a72d-4044-8226-11abeab7937d", + "udi": "umb://element/e92e509297e5423fa56967f44ca4df5c" + }, + { + "contentTypeKey": "e91cd36f-4bdf-4c74-90bf-b2c85fd00dae", + "udi": "umb://element/18b0960c746f43e39bbfaefd858f55c7", + "image": "[\r\n {\r\n \"key\": \"c21ddb33-b3fd-4b38-82b6-a171c2e39f9a\",\r\n \"mediaKey\": \"cb4659fc-57b1-449a-a64c-6545e8495883\"\r\n }\r\n]" + }, + { + "contentTypeKey": "1d05aa7a-16bd-4f3f-b094-023fd0bf0332", + "udi": "umb://element/9d55fa3e437f465b97e83d4d504e8f99", + "link": "[{\"name\":\"Get creative now\",\"udi\":\"umb://document/6ac5363ad8124ce9aa893a3973426c70\"}]" + }, + { + "contentTypeKey": "69de9db6-ec92-4989-a5f6-8437b8f3d5cd", + "udi": "umb://element/1ccc80cff546483cb26f583a4b73a2e9", + "richText": "

Creative Ways to Reduce Your Carbon Footprint

\n

Greenhouse gases are carbon dioxide and methane which contribute to global warming and climate change. We need to talk about what we can do on a personal level to make changes in our own lives so we can find creative ways to reduce our carbon footprint. 

" + }, + { + "contentTypeKey": "e91cd36f-4bdf-4c74-90bf-b2c85fd00dae", + "udi": "umb://element/d8fc805b103e4f5c9e52930182fe1ec9", + "image": "[\r\n {\r\n \"key\": \"7226feaf-0348-4899-bfa8-944a2c1738a3\",\r\n \"mediaKey\": \"a406a55f-7122-4822-9fbb-95ae9f6bc39b\"\r\n }\r\n]" + }, + { + "contentTypeKey": "1d05aa7a-16bd-4f3f-b094-023fd0bf0332", + "udi": "umb://element/f61f0278863441c8b39f25e9c0b70021", + "link": "[{\"name\":\"See our solutions\",\"udi\":\"umb://document/6ac5363ad8124ce9aa893a3973426c70\"}]" + } + ], + "settingsData": [ + { + "contentTypeKey": "1a16c578-dacc-4552-ad07-26553c8a34fd", + "udi": "umb://element/b72dcda2c9d54b5facd8fa220a9ffc34", + "backgroundColor": "{\r\n \"value\": \"f4f1ec\",\r\n \"label\": \"f4f1ec\",\r\n \"sortOrder\": 3,\r\n \"id\": \"4\"\r\n}" + }, + { + "contentTypeKey": "1a16c578-dacc-4552-ad07-26553c8a34fd", + "udi": "umb://element/7d274fd111544a23b86d8fbe4af3cafe" + }, + { + "contentTypeKey": "1a16c578-dacc-4552-ad07-26553c8a34fd", + "udi": "umb://element/1a34b67fa68947599153b59022917a7e" + }, + { + "contentTypeKey": "1a16c578-dacc-4552-ad07-26553c8a34fd", + "udi": "umb://element/ee9077a4a06f4eb48351f3d3aebe01fb" + }, + { + "contentTypeKey": "1a16c578-dacc-4552-ad07-26553c8a34fd", + "udi": "umb://element/bc9c7e522c264cb78f6b89700b54f103" + }, + { + "contentTypeKey": "1a16c578-dacc-4552-ad07-26553c8a34fd", + "udi": "umb://element/aa9fca1883294a8cba19b6a8b02ef410" + }, + { + "contentTypeKey": "1a16c578-dacc-4552-ad07-26553c8a34fd", + "udi": "umb://element/78cb82c0711b4a2a9604796a24466634", + "backgroundColor": "{\r\n \"value\": \"113635\",\r\n \"label\": \"113635\",\r\n \"sortOrder\": 7,\r\n \"id\": \"8\"\r\n}", + "contrast": "{\r\n \"value\": \"ffffff\",\r\n \"label\": \"ffffff\",\r\n \"sortOrder\": 1,\r\n \"id\": \"2\"\r\n}" + } + ] +}]]>
+
+
+
\ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/Content/services.config b/src/Umbraco.Cms.11.x/uSync/v9/Content/services.config new file mode 100644 index 0000000..adbe10d --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/Content/services.config @@ -0,0 +1,348 @@ + + + + Home + /Home/Services + false + blockGrid + 2023-06-27T19:04:55 + + 0 + + + + + + + We provide several solutions for changing the environment, the economy, and production lines.\n

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.

" + }, + { + "contentTypeKey": "56a73241-9dbd-46aa-a1ff-3d24ae2b6a33", + "udi": "umb://element/f9287d8ba41743aea1015738afd362f0", + "image": "[\r\n {\r\n \"key\": \"b78be6c0-f0bd-400b-8412-2773b86dbbed\",\r\n \"mediaKey\": \"0d47b9c5-a0e1-474f-a867-e59c592e417f\"\r\n }\r\n]", + "headline": "Innovative indoor climate solution", + "richText": "

Keep your organization sustainable with a green agenda.

" + }, + { + "contentTypeKey": "56a73241-9dbd-46aa-a1ff-3d24ae2b6a33", + "udi": "umb://element/4a0f761f824a4bae91866dfc557acf73", + "image": "[\r\n {\r\n \"key\": \"b0a2a241-e24d-4c37-9f62-108c22863d71\",\r\n \"mediaKey\": \"591f607c-6a13-4773-a868-76db1148ffb0\"\r\n }\r\n]", + "headline": "Green production transition", + "richText": "

Analysis and facilitation, Use a combination of the two and implement them.

" + }, + { + "contentTypeKey": "56a73241-9dbd-46aa-a1ff-3d24ae2b6a33", + "udi": "umb://element/faddecf8aa3a4b299bc6c7bf611d4d27", + "image": "[\r\n {\r\n \"key\": \"f294e7ef-fd7f-4e30-84dc-9346d329b33e\",\r\n \"mediaKey\": \"87b7776d-f21b-4dda-8325-87b4d004dceb\"\r\n }\r\n]", + "headline": "Analysis & evaluation", + "richText": "

We provide a platform of knowledge, so you can use that knowledge for branding and marketing.

" + }, + { + "contentTypeKey": "56a73241-9dbd-46aa-a1ff-3d24ae2b6a33", + "udi": "umb://element/329bb5128b3e4a59a103079ddc500dad", + "image": "[\r\n {\r\n \"key\": \"bf356e7a-8b59-4963-8dc8-f6284870cde4\",\r\n \"mediaKey\": \"76e87651-7962-4c73-ae6b-684921a81c1e\"\r\n }\r\n]", + "headline": "Optimisation & implementation", + "richText": "

You can use that knowledge for branding and marketing.

" + }, + { + "contentTypeKey": "56a73241-9dbd-46aa-a1ff-3d24ae2b6a33", + "udi": "umb://element/3ee573f93eda4f0c80d6c52544837967", + "image": "[\r\n {\r\n \"key\": \"70f31be4-6bcf-425e-a49d-1fee2fedd81d\",\r\n \"mediaKey\": \"a406a55f-7122-4822-9fbb-95ae9f6bc39b\"\r\n }\r\n]", + "headline": "The transition to green production", + "richText": "

Use a combination of analysis and facilitation, we help you make the right decisions and implement them.

" + }, + { + "contentTypeKey": "56a73241-9dbd-46aa-a1ff-3d24ae2b6a33", + "udi": "umb://element/9cee4fda73314d97b33c507a038c2c2f", + "image": "[\r\n {\r\n \"key\": \"c1934b6f-077c-4677-847b-a6df6d9f5394\",\r\n \"mediaKey\": \"91f42a8e-6bdd-48ba-9e51-cc4e4540ffad\"\r\n }\r\n]", + "headline": "Environmental footprint", + "richText": "

Creating sustainable product innovation is an important parameter

" + }, + { + "contentTypeKey": "56a73241-9dbd-46aa-a1ff-3d24ae2b6a33", + "udi": "umb://element/e6b7a7bb31a84ce8a67a97b990b7b367", + "image": "[\r\n {\r\n \"key\": \"7f9a190e-c4ed-4c2a-86b8-48a4454eed23\",\r\n \"mediaKey\": \"0ce0babd-8047-48a0-bcc3-a2d1bf7cc7aa\"\r\n }\r\n]", + "headline": "Carbon dioxide", + "richText": "

Chemical compound made up of molecules that each have one carbon atom covalently double bonded to two oxygen atoms

" + }, + { + "contentTypeKey": "964feee4-efb3-4676-91a0-b960f26e9d92", + "udi": "umb://element/a4b6a642bffc4f349232c056b84b2cd1" + }, + { + "contentTypeKey": "69de9db6-ec92-4989-a5f6-8437b8f3d5cd", + "udi": "umb://element/e5ab4ac7ce1843528aca261576a88536", + "richText": "

Five service annoncements to reduce your greenhouse gas emissions

\n

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:

\n

Eat less (or no) meat. 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.

\n

Hook your home up to clean energy. 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.

\n

Insulate your house. 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.

\n

Travel smart. 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.

\n

Use only the energy you need. 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.

" + }, + { + "contentTypeKey": "e7cd2fff-36b9-4853-9a29-5afe4c1c47bb", + "udi": "umb://element/2cfc183497714d27a938ea4f369e8aa8" + }, + { + "contentTypeKey": "e91cd36f-4bdf-4c74-90bf-b2c85fd00dae", + "udi": "umb://element/14868939c7f3496f90fda4f7bfe1ed97", + "image": "[\r\n {\r\n \"key\": \"003e5cc1-70f9-4f45-9081-037125e80eea\",\r\n \"mediaKey\": \"8d71873a-4a79-41d9-817d-4e60fea33792\"\r\n }\r\n]" + }, + { + "contentTypeKey": "62351bd5-75fc-4d93-a6b2-b99439a9161f", + "udi": "umb://element/aa4fceaf479148b781eaae21d68978b0", + "headline": "Conserve our natural resources" + }, + { + "contentTypeKey": "69de9db6-ec92-4989-a5f6-8437b8f3d5cd", + "udi": "umb://element/7a66fc6c7a794e4c8049f68f95f0e3eb", + "richText": "

Humans derive energy from burning fossil fuels, which releases almost three quarters of all human-produced greenhouse gases into the atmosphere. Half of all fossil fuels are burned to provide electricity and heat; the next big users of fossil fuels are manufacturing and transportation.

" + }, + { + "contentTypeKey": "1d05aa7a-16bd-4f3f-b094-023fd0bf0332", + "udi": "umb://element/6a19709c18334c93a4e2a515d8e8ff4a", + "link": "[{\"name\":\"Learn more\",\"udi\":\"umb://document/6e2ff1f7114e484ba407918daded1aa6\"}]" + }, + { + "contentTypeKey": "e7cd2fff-36b9-4853-9a29-5afe4c1c47bb", + "udi": "umb://element/7c7030a693014cda8d64a6803172ba2d" + }, + { + "contentTypeKey": "e91cd36f-4bdf-4c74-90bf-b2c85fd00dae", + "udi": "umb://element/9738df7d64814b28ae25a231e4a7d4c7", + "image": "[\r\n {\r\n \"key\": \"232198b5-a5dc-4d14-9684-e401185604f4\",\r\n \"mediaKey\": \"43933cb4-0d29-412e-8e89-25ae76274b05\"\r\n }\r\n]" + }, + { + "contentTypeKey": "62351bd5-75fc-4d93-a6b2-b99439a9161f", + "udi": "umb://element/e013c27b47e3466db4dae0494f6a4e3f", + "headline": "A bright future for renewable energy" + }, + { + "contentTypeKey": "69de9db6-ec92-4989-a5f6-8437b8f3d5cd", + "udi": "umb://element/7a53ce3b088e4e1cad67f5ca05d02540", + "richText": "

The phrase “global warming” hasn’t been around long, but climate change, as it’s also known, is nothing new. In fact, it has been a constant throughout history. Earth’s climate today is very different from what it was 2 million years ago, let alone 10,000 years ago.

" + }, + { + "contentTypeKey": "1d05aa7a-16bd-4f3f-b094-023fd0bf0332", + "udi": "umb://element/6ba7dafc14ed4742891dfbcad44d93e1", + "link": "[{\"name\":\"Explorer\",\"udi\":\"umb://document/6e2ff1f7114e484ba407918daded1aa6\"}]" + } + ], + "settingsData": [ + { + "contentTypeKey": "1a16c578-dacc-4552-ad07-26553c8a34fd", + "udi": "umb://element/398a058e2e8846339e9013ebfa4517b7", + "backgroundColor": "{\r\n \"value\": \"f4f1ec\",\r\n \"label\": \"f4f1ec\",\r\n \"sortOrder\": 3,\r\n \"id\": \"4\"\r\n}" + }, + { + "contentTypeKey": "1a16c578-dacc-4552-ad07-26553c8a34fd", + "udi": "umb://element/1b30c4ca55ed45e2af4acf70b0ad3bc6", + "backgroundColor": "" + }, + { + "contentTypeKey": "1a16c578-dacc-4552-ad07-26553c8a34fd", + "udi": "umb://element/dc8ab3910a404ea0939999643f43cfa2", + "backgroundColor": "{\r\n \"value\": \"c97990\",\r\n \"label\": \"c97990\",\r\n \"sortOrder\": 1,\r\n \"id\": \"2\"\r\n}", + "contrast": "{\r\n \"value\": \"ffffff\",\r\n \"label\": \"ffffff\",\r\n \"sortOrder\": 1,\r\n \"id\": \"2\"\r\n}" + }, + { + "contentTypeKey": "1a16c578-dacc-4552-ad07-26553c8a34fd", + "udi": "umb://element/c55b4bb7d02e43c39dfb252e04fb0acd", + "backgroundColor": "" + } + ] +}]]>
+
+
+
\ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/Content/test.config b/src/Umbraco.Cms.11.x/uSync/v9/Content/test.config new file mode 100644 index 0000000..927bc53 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/Content/test.config @@ -0,0 +1,45 @@ + + + + + /[-20]/Test + true + blockGrid + 2023-06-28T17:49:49 + + 0 + + + + + + + + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/ContentTypes/blockgrid.config b/src/Umbraco.Cms.11.x/uSync/v9/ContentTypes/blockgrid.config new file mode 100644 index 0000000..c26078a --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/ContentTypes/blockgrid.config @@ -0,0 +1,53 @@ + + + + Block Grid + icon-layout color-black + folder.png + + True + False + Nothing + false + + False + + + + + BlockGrid + + + + + + blockGrid + + + + 7b0420c9-87ac-4b2f-a6ee-3dbafa83c7a9 + Content + content + c3384287-a9ca-463c-a0b9-adfaa4ca679f + Umbraco.BlockGrid + false + + + 1 + Content + Nothing + + + true + + + + + 97bd9bea-80a7-42fe-9e85-92cf280446eb + Content + content + Group + 0 + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/ContentTypes/calltoactionblock.config b/src/Umbraco.Cms.11.x/uSync/v9/ContentTypes/calltoactionblock.config new file mode 100644 index 0000000..8298d93 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/ContentTypes/calltoactionblock.config @@ -0,0 +1,50 @@ + + + + Call to Action + icon-candy color-black + folder.png + + False + False + Nothing + true + + False + + + + Blocks + + + + + + + + 24268764-5ef2-4032-96d0-aefa3a1e86ee + Link + link + b5a4834e-8492-4f0e-b055-fc7fb8971456 + Umbraco.MultiUrlPicker + false + + + 0 + Call to Action + Nothing + + + false + + + + + 16cad6f9-7106-4bd2-b5ce-bd27393c5c32 + Call to Action + callToAction + Group + 0 + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/ContentTypes/cardblock.config b/src/Umbraco.Cms.11.x/uSync/v9/ContentTypes/cardblock.config new file mode 100644 index 0000000..b25b008 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/ContentTypes/cardblock.config @@ -0,0 +1,82 @@ + + + + Card + icon-pictures-alt-2 color-black + folder.png + + False + False + Nothing + true + + False + + + + Blocks + + + + + + + + 071f1e2c-c3f1-4781-a188-b12dee5155ee + Headline + headline + 0cc0eba1-9960-42c9-bf9b-60e150b429ae + Umbraco.TextBox + false + + + 0 + Content + Nothing + + + false + + + 9207cf33-48e5-46d4-b8b8-d22b08b3f781 + Image + image + ad9f0cf2-bda2-45d5-9ea1-a63cfc873fd3 + Umbraco.MediaPicker3 + false + + + 2 + Content + Nothing + + + false + + + 0575255d-304c-4658-8525-65a52a12a7a8 + Rich Text + richText + ca90c950-0aff-4e72-b976-a30b1ac57dad + Umbraco.TinyMCE + false + + + 1 + Content + Nothing + + + false + + + + + 2b2c9b06-f0bb-41d7-b397-f93a50869629 + Content + content + Group + 0 + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/ContentTypes/headlineblock.config b/src/Umbraco.Cms.11.x/uSync/v9/ContentTypes/headlineblock.config new file mode 100644 index 0000000..8954348 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/ContentTypes/headlineblock.config @@ -0,0 +1,50 @@ + + + + Headline + icon-font color-black + folder.png + + False + False + Nothing + true + + False + + + + Blocks + + + + + + + + d12ce005-4039-4606-bca3-a0565211b76c + Headline + headline + 0cc0eba1-9960-42c9-bf9b-60e150b429ae + Umbraco.TextBox + true + + + 0 + Content + Nothing + + + false + + + + + f445e496-d440-47f1-b2ee-200addcc363c + Content + content + Group + 0 + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/ContentTypes/heroblock.config b/src/Umbraco.Cms.11.x/uSync/v9/ContentTypes/heroblock.config new file mode 100644 index 0000000..524db4d --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/ContentTypes/heroblock.config @@ -0,0 +1,98 @@ + + + + Hero + icon-birthday-cake color-black + folder.png + + False + False + Nothing + true + + False + + + + Blocks + + + + + + + + b5a79ad9-c13f-4fb1-a095-48c1ff64f180 + Background Color + backgroundColor + b3f77e71-396d-4f49-b264-b1eacd63cbca + Umbraco.ColorPicker + false + + + 2 + Content + Nothing + + + false + + + 9f76b3b1-d7d4-4982-b828-c7fb528e0c3c + Contrast + contrast + d320454a-b023-4e83-9557-60bdb9fbc048 + Umbraco.ColorPicker + false + + + 3 + Content + Nothing + + + false + + + 5290713e-71f9-4575-8026-7ed536d4a40d + Headline + headline + 0cc0eba1-9960-42c9-bf9b-60e150b429ae + Umbraco.TextBox + true + + + 0 + Content + Nothing + + + false + + + 5d985a99-99e9-4747-af1f-9941c17430a4 + Image + image + ad9f0cf2-bda2-45d5-9ea1-a63cfc873fd3 + Umbraco.MediaPicker3 + false + + + 1 + Content + Nothing + + + false + + + + + fea5d453-a3e2-48bf-93a3-30d2e959a4f8 + Content + content + Group + 0 + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/ContentTypes/imageblock.config b/src/Umbraco.Cms.11.x/uSync/v9/ContentTypes/imageblock.config new file mode 100644 index 0000000..6c4f917 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/ContentTypes/imageblock.config @@ -0,0 +1,50 @@ + + + + Image + icon-umb-media color-black + folder.png + + False + False + Nothing + true + + False + + + + Blocks + + + + + + + + cde7e19e-3026-4b7e-b377-25bc61e53a40 + Image + image + ad9f0cf2-bda2-45d5-9ea1-a63cfc873fd3 + Umbraco.MediaPicker3 + false + + + 0 + Content + Nothing + + + false + + + + + cb005da1-722f-4e67-8838-57b2cf81bb65 + Content + content + Group + 0 + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/ContentTypes/inspirationblock.config b/src/Umbraco.Cms.11.x/uSync/v9/ContentTypes/inspirationblock.config new file mode 100644 index 0000000..12acbe3 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/ContentTypes/inspirationblock.config @@ -0,0 +1,25 @@ + + + + Inspiration + icon-screensharing color-black + folder.png + + False + False + Nothing + true + + False + + + + Blocks + + + + + + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/ContentTypes/onecolumnsectionblock.config b/src/Umbraco.Cms.11.x/uSync/v9/ContentTypes/onecolumnsectionblock.config new file mode 100644 index 0000000..4b71281 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/ContentTypes/onecolumnsectionblock.config @@ -0,0 +1,25 @@ + + + + One Column Section + icon-book color-black + folder.png + + False + False + Nothing + true + + False + + + + Blocks/Layouts + + + + + + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/ContentTypes/richtextblock.config b/src/Umbraco.Cms.11.x/uSync/v9/ContentTypes/richtextblock.config new file mode 100644 index 0000000..cab65dc --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/ContentTypes/richtextblock.config @@ -0,0 +1,50 @@ + + + + Rich Text + icon-script color-black + folder.png + + False + False + Nothing + true + + False + + + + Blocks + + + + + + + + fc72e040-f521-4127-8ffe-03878ed54993 + Text + richText + 522af7ab-361a-48ee-8ca2-1f2f1e098d2a + Umbraco.TinyMCE + false + + + 0 + Content + Nothing + + + true + + + + + 294bf9a7-e23e-40d2-8596-815e174f90fa + Content + content + Group + 0 + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/ContentTypes/sectionsettingsblock.config b/src/Umbraco.Cms.11.x/uSync/v9/ContentTypes/sectionsettingsblock.config new file mode 100644 index 0000000..160530e --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/ContentTypes/sectionsettingsblock.config @@ -0,0 +1,66 @@ + + + + Section Settings + icon-defrag color-black + folder.png + + False + False + Nothing + true + + False + + + + Blocks + + + + + + + + 4ca6e2ba-2567-4f3a-9918-671dfd2a374a + Background color + backgroundColor + b3f77e71-396d-4f49-b264-b1eacd63cbca + Umbraco.ColorPicker + false + + + 0 + Styling + Nothing + + + false + + + ff229870-38b3-4cc1-8b46-cdd7948232c9 + Contrast + contrast + d320454a-b023-4e83-9557-60bdb9fbc048 + Umbraco.ColorPicker + false + + + 1 + Styling + Nothing + + + false + + + + + b07cc85d-536c-4469-b9a5-5ce69d5b060a + Styling + styling + Group + 0 + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/ContentTypes/twocolumnsectionblock.config b/src/Umbraco.Cms.11.x/uSync/v9/ContentTypes/twocolumnsectionblock.config new file mode 100644 index 0000000..c52659c --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/ContentTypes/twocolumnsectionblock.config @@ -0,0 +1,25 @@ + + + + Two Column Section + icon-book-alt color-black + folder.png + + False + False + Nothing + true + + False + + + + Blocks/Layouts + + + + + + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/ApprovedColor.config b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/ApprovedColor.config new file mode 100644 index 0000000..821eec1 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/ApprovedColor.config @@ -0,0 +1,12 @@ + + + + Approved Color + Umbraco.ColorPicker + Nvarchar + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/BackgroundColors.config b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/BackgroundColors.config new file mode 100644 index 0000000..28f8538 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/BackgroundColors.config @@ -0,0 +1,46 @@ + + + + Background colors + Umbraco.ColorPicker + Nvarchar + Block+Grid + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/BlockGridContent.config b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/BlockGridContent.config new file mode 100644 index 0000000..b005613 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/BlockGridContent.config @@ -0,0 +1,329 @@ + + + + Block Grid - Content + Umbraco.BlockGrid + Ntext + Block+Grid + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/CTAURLPicker.config b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/CTAURLPicker.config new file mode 100644 index 0000000..5e26e63 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/CTAURLPicker.config @@ -0,0 +1,16 @@ + + + + CTA URL Picker + Umbraco.MultiUrlPicker + Ntext + Block+Grid + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/CheckboxList.config b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/CheckboxList.config new file mode 100644 index 0000000..354bf20 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/CheckboxList.config @@ -0,0 +1,11 @@ + + + + Checkbox list + Umbraco.CheckBoxList + Nvarchar + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/ContentPicker.config b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/ContentPicker.config new file mode 100644 index 0000000..50c6f64 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/ContentPicker.config @@ -0,0 +1,13 @@ + + + + Content Picker + Umbraco.ContentPicker + Nvarchar + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/ContrastColors.config b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/ContrastColors.config new file mode 100644 index 0000000..fd573db --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/ContrastColors.config @@ -0,0 +1,22 @@ + + + + Contrast Colors + Umbraco.ColorPicker + Nvarchar + Block+Grid + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/DatePicker.config b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/DatePicker.config new file mode 100644 index 0000000..3f9c5c2 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/DatePicker.config @@ -0,0 +1,12 @@ + + + + Date Picker + Umbraco.DateTime + Date + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/DatePickerWithTime.config b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/DatePickerWithTime.config new file mode 100644 index 0000000..2c289d1 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/DatePickerWithTime.config @@ -0,0 +1,12 @@ + + + + Date Picker with time + Umbraco.DateTime + Date + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/Dropdown.config b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/Dropdown.config new file mode 100644 index 0000000..673eb7a --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/Dropdown.config @@ -0,0 +1,12 @@ + + + + Dropdown + Umbraco.DropDown.Flexible + Nvarchar + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/DropdownMultiple.config b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/DropdownMultiple.config new file mode 100644 index 0000000..e8a7998 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/DropdownMultiple.config @@ -0,0 +1,12 @@ + + + + Dropdown multiple + Umbraco.DropDown.Flexible + Nvarchar + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/ImageCropper.config b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/ImageCropper.config new file mode 100644 index 0000000..ccd9162 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/ImageCropper.config @@ -0,0 +1,11 @@ + + + + Image Cropper + Umbraco.ImageCropper + Ntext + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/ImageMediaPicker.config b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/ImageMediaPicker.config new file mode 100644 index 0000000..e0b3db7 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/ImageMediaPicker.config @@ -0,0 +1,20 @@ + + + + Image Media Picker + Umbraco.MediaPicker3 + Ntext + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/LabelBigint.config b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/LabelBigint.config new file mode 100644 index 0000000..909f50d --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/LabelBigint.config @@ -0,0 +1,11 @@ + + + + Label (bigint) + Umbraco.Label + Nvarchar + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/LabelDatetime.config b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/LabelDatetime.config new file mode 100644 index 0000000..7163ac9 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/LabelDatetime.config @@ -0,0 +1,11 @@ + + + + Label (datetime) + Umbraco.Label + Date + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/LabelDecimal.config b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/LabelDecimal.config new file mode 100644 index 0000000..045b4f5 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/LabelDecimal.config @@ -0,0 +1,11 @@ + + + + Label (decimal) + Umbraco.Label + Decimal + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/LabelInteger.config b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/LabelInteger.config new file mode 100644 index 0000000..19ea1dc --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/LabelInteger.config @@ -0,0 +1,11 @@ + + + + Label (integer) + Umbraco.Label + Integer + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/LabelString.config b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/LabelString.config new file mode 100644 index 0000000..af5067c --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/LabelString.config @@ -0,0 +1,11 @@ + + + + Label (string) + Umbraco.Label + Nvarchar + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/LabelTime.config b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/LabelTime.config new file mode 100644 index 0000000..df2170a --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/LabelTime.config @@ -0,0 +1,11 @@ + + + + Label (time) + Umbraco.Label + Date + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/ListViewContent.config b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/ListViewContent.config new file mode 100644 index 0000000..821f787 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/ListViewContent.config @@ -0,0 +1,54 @@ + + + + List View - Content + Umbraco.ListView + Nvarchar + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/ListViewMedia.config b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/ListViewMedia.config new file mode 100644 index 0000000..4fcba13 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/ListViewMedia.config @@ -0,0 +1,54 @@ + + + + List View - Media + Umbraco.ListView + Nvarchar + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/ListViewMembers.config b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/ListViewMembers.config new file mode 100644 index 0000000..f23eb03 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/ListViewMembers.config @@ -0,0 +1,60 @@ + + + + List View - Members + Umbraco.ListView + Nvarchar + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/MediaPicker.config b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/MediaPicker.config new file mode 100644 index 0000000..721575a --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/MediaPicker.config @@ -0,0 +1,20 @@ + + + + Media Picker + Umbraco.MediaPicker3 + Ntext + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/MediaPickerLegacy.config b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/MediaPickerLegacy.config new file mode 100644 index 0000000..d97a303 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/MediaPickerLegacy.config @@ -0,0 +1,15 @@ + + + + Media Picker (legacy) + Umbraco.MediaPicker + Ntext + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/MemberPicker.config b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/MemberPicker.config new file mode 100644 index 0000000..260c185 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/MemberPicker.config @@ -0,0 +1,9 @@ + + + + Member Picker + Umbraco.MemberPicker + Nvarchar + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/MultiURLPicker.config b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/MultiURLPicker.config new file mode 100644 index 0000000..e00831f --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/MultiURLPicker.config @@ -0,0 +1,15 @@ + + + + Multi URL Picker + Umbraco.MultiUrlPicker + Ntext + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/MultipleImageMediaPicker.config b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/MultipleImageMediaPicker.config new file mode 100644 index 0000000..407c8af --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/MultipleImageMediaPicker.config @@ -0,0 +1,20 @@ + + + + Multiple Image Media Picker + Umbraco.MediaPicker3 + Ntext + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/MultipleMediaPicker.config b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/MultipleMediaPicker.config new file mode 100644 index 0000000..2a066f0 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/MultipleMediaPicker.config @@ -0,0 +1,20 @@ + + + + Multiple Media Picker + Umbraco.MediaPicker3 + Ntext + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/MultipleMediaPickerLegacy.config b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/MultipleMediaPickerLegacy.config new file mode 100644 index 0000000..5b3573e --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/MultipleMediaPickerLegacy.config @@ -0,0 +1,15 @@ + + + + Multiple Media Picker (legacy) + Umbraco.MediaPicker + Ntext + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/Numeric.config b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/Numeric.config new file mode 100644 index 0000000..cd6d29b --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/Numeric.config @@ -0,0 +1,9 @@ + + + + Numeric + Umbraco.Integer + Integer + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/Radiobox.config b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/Radiobox.config new file mode 100644 index 0000000..a166cb7 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/Radiobox.config @@ -0,0 +1,11 @@ + + + + Radiobox + Umbraco.RadioButtonList + Nvarchar + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/RichTextBlockGrid.config b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/RichTextBlockGrid.config new file mode 100644 index 0000000..dcbe104 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/RichTextBlockGrid.config @@ -0,0 +1,38 @@ + + + + Rich Text Block Grid + Umbraco.TinyMCE + Ntext + Block+Grid + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/RichtextEditor.config b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/RichtextEditor.config new file mode 100644 index 0000000..e411e7b --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/RichtextEditor.config @@ -0,0 +1,15 @@ + + + + Richtext editor + Umbraco.TinyMCE + Ntext + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/Tags.config b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/Tags.config new file mode 100644 index 0000000..ee5eb68 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/Tags.config @@ -0,0 +1,13 @@ + + + + Tags + Umbraco.Tags + Ntext + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/Textarea.config b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/Textarea.config new file mode 100644 index 0000000..a495b9e --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/Textarea.config @@ -0,0 +1,12 @@ + + + + Textarea + Umbraco.TextArea + Ntext + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/Textstring.config b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/Textstring.config new file mode 100644 index 0000000..dc90bf0 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/Textstring.config @@ -0,0 +1,11 @@ + + + + Textstring + Umbraco.TextBox + Nvarchar + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/Truefalse.config b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/Truefalse.config new file mode 100644 index 0000000..a08bf8f --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/Truefalse.config @@ -0,0 +1,14 @@ + + + + True/false + Umbraco.TrueFalse + Integer + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/UploadArticle.config b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/UploadArticle.config new file mode 100644 index 0000000..1d76dc8 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/UploadArticle.config @@ -0,0 +1,24 @@ + + + + Upload Article + Umbraco.UploadField + Nvarchar + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/UploadAudio.config b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/UploadAudio.config new file mode 100644 index 0000000..66b66ca --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/UploadAudio.config @@ -0,0 +1,28 @@ + + + + Upload Audio + Umbraco.UploadField + Nvarchar + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/UploadFile.config b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/UploadFile.config new file mode 100644 index 0000000..bdd8d01 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/UploadFile.config @@ -0,0 +1,11 @@ + + + + Upload File + Umbraco.UploadField + Nvarchar + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/UploadVectorGraphics.config b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/UploadVectorGraphics.config new file mode 100644 index 0000000..6088f33 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/UploadVectorGraphics.config @@ -0,0 +1,16 @@ + + + + Upload Vector Graphics + Umbraco.UploadField + Nvarchar + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/UploadVideo.config b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/UploadVideo.config new file mode 100644 index 0000000..fb8f018 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/DataTypes/UploadVideo.config @@ -0,0 +1,24 @@ + + + + Upload Video + Umbraco.UploadField + Nvarchar + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/Languages/en-us.config b/src/Umbraco.Cms.11.x/uSync/v9/Languages/en-us.config new file mode 100644 index 0000000..c2fe77b --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/Languages/en-us.config @@ -0,0 +1,6 @@ + + + en-US + false + true + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/Media/bosco-shots-slr66yjpsoi-unsplash.config b/src/Umbraco.Cms.11.x/uSync/v9/Media/bosco-shots-slr66yjpsoi-unsplash.config new file mode 100644 index 0000000..a0bb8ea --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/Media/bosco-shots-slr66yjpsoi-unsplash.config @@ -0,0 +1,19 @@ + + + + Buildings + /Buildings/BoscoShotsSlr66yjpsoiUnsplash + false + Image + 2023-06-27T19:04:56 + + 11 + + + + + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/Media/buildings.config b/src/Umbraco.Cms.11.x/uSync/v9/Media/buildings.config new file mode 100644 index 0000000..004814b --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/Media/buildings.config @@ -0,0 +1,13 @@ + + + + + /Buildings + false + Folder + 2023-06-27T19:04:56 + + 0 + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/Media/casey-horner-wkjiek4qsnk-unsplash.config b/src/Umbraco.Cms.11.x/uSync/v9/Media/casey-horner-wkjiek4qsnk-unsplash.config new file mode 100644 index 0000000..8b04731 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/Media/casey-horner-wkjiek4qsnk-unsplash.config @@ -0,0 +1,19 @@ + + + + Nature + /Nature/CaseyHornerWkjiek4qsnkUnsplash + false + Image + 2023-06-27T19:04:56 + + 6 + + + + + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/Media/collin-clyne-eg8-h52znw0-unsplash.config b/src/Umbraco.Cms.11.x/uSync/v9/Media/collin-clyne-eg8-h52znw0-unsplash.config new file mode 100644 index 0000000..1ef302a --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/Media/collin-clyne-eg8-h52znw0-unsplash.config @@ -0,0 +1,19 @@ + + + + Nature + /Nature/CollinClyneEg8H52znw0Unsplash + false + Image + 2023-06-27T19:04:56 + + 4 + + + + + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/Media/collin-clyne-zsuely56fzu-unsplash.config b/src/Umbraco.Cms.11.x/uSync/v9/Media/collin-clyne-zsuely56fzu-unsplash.config new file mode 100644 index 0000000..000ed0a --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/Media/collin-clyne-zsuely56fzu-unsplash.config @@ -0,0 +1,19 @@ + + + + Nature + /Nature/CollinClyneZsuely56fzuUnsplash + false + Image + 2023-06-27T19:04:56 + + 5 + + + + + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/Media/ed-259-xcri6cpkkjs-unsplash.config b/src/Umbraco.Cms.11.x/uSync/v9/Media/ed-259-xcri6cpkkjs-unsplash.config new file mode 100644 index 0000000..9b6e835 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/Media/ed-259-xcri6cpkkjs-unsplash.config @@ -0,0 +1,19 @@ + + + + Nature + /Nature/Ed259Xcri6cpkkjsUnsplash + false + Image + 2023-06-27T19:04:56 + + 7 + + + + + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/Media/geran-de-klerk-qzgn45hsen0-unsplash.config b/src/Umbraco.Cms.11.x/uSync/v9/Media/geran-de-klerk-qzgn45hsen0-unsplash.config new file mode 100644 index 0000000..4cc42f5 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/Media/geran-de-klerk-qzgn45hsen0-unsplash.config @@ -0,0 +1,19 @@ + + + + Nature + /Nature/GeranDeKlerkQzgn45hsen0Unsplash + false + Image + 2023-06-27T19:04:56 + + 3 + + + + + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/Media/geran-de-klerk-wjkc3xzjsxw-unsplash.config b/src/Umbraco.Cms.11.x/uSync/v9/Media/geran-de-klerk-wjkc3xzjsxw-unsplash.config new file mode 100644 index 0000000..2151024 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/Media/geran-de-klerk-wjkc3xzjsxw-unsplash.config @@ -0,0 +1,19 @@ + + + + Nature + /Nature/GeranDeKlerkWjkc3xzjsxwUnsplash + false + Image + 2023-06-27T19:04:56 + + 2 + + + + + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/Media/grant-ritchie-fbkrqhnlqoy-unsplash.config b/src/Umbraco.Cms.11.x/uSync/v9/Media/grant-ritchie-fbkrqhnlqoy-unsplash.config new file mode 100644 index 0000000..2acd9f8 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/Media/grant-ritchie-fbkrqhnlqoy-unsplash.config @@ -0,0 +1,19 @@ + + + + Buildings + /Buildings/GrantRitchieFbkrqhnlqoyUnsplash + false + Image + 2023-06-27T19:04:56 + + 9 + + + + + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/Media/hernan-lucio-gjfvhkuhdsi-unsplash.config b/src/Umbraco.Cms.11.x/uSync/v9/Media/hernan-lucio-gjfvhkuhdsi-unsplash.config new file mode 100644 index 0000000..83258f9 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/Media/hernan-lucio-gjfvhkuhdsi-unsplash.config @@ -0,0 +1,19 @@ + + + + Buildings + /Buildings/HernanLucioGjfvhkuhdsiUnsplash + false + Image + 2023-06-27T19:04:56 + + 8 + + + + + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/Media/hossein-nasr-2nuu-j3zgke-unsplash.config b/src/Umbraco.Cms.11.x/uSync/v9/Media/hossein-nasr-2nuu-j3zgke-unsplash.config new file mode 100644 index 0000000..590a811 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/Media/hossein-nasr-2nuu-j3zgke-unsplash.config @@ -0,0 +1,19 @@ + + + + Buildings + /Buildings/HosseinNasr2NuuJ3zgkeUnsplash + false + Image + 2023-06-27T19:04:56 + + 7 + + + + + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/Media/hossein-nasr-uj99hdy2mmw-unsplash.config b/src/Umbraco.Cms.11.x/uSync/v9/Media/hossein-nasr-uj99hdy2mmw-unsplash.config new file mode 100644 index 0000000..ded65a4 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/Media/hossein-nasr-uj99hdy2mmw-unsplash.config @@ -0,0 +1,19 @@ + + + + Buildings + /Buildings/HosseinNasrUj99hdy2mmwUnsplash + false + Image + 2023-06-27T19:04:56 + + 6 + + + + + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/Media/hossein-nasr-vmst7pnoto-unsplash.config b/src/Umbraco.Cms.11.x/uSync/v9/Media/hossein-nasr-vmst7pnoto-unsplash.config new file mode 100644 index 0000000..72f1f7d --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/Media/hossein-nasr-vmst7pnoto-unsplash.config @@ -0,0 +1,19 @@ + + + + Buildings + /Buildings/HosseinNasrVmst7pnotoUnsplash + false + Image + 2023-06-27T19:04:56 + + 10 + + + + + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/Media/hossein-nasr-vwzdwriw3xu-unsplash.config b/src/Umbraco.Cms.11.x/uSync/v9/Media/hossein-nasr-vwzdwriw3xu-unsplash.config new file mode 100644 index 0000000..5873200 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/Media/hossein-nasr-vwzdwriw3xu-unsplash.config @@ -0,0 +1,19 @@ + + + + Buildings + /Buildings/HosseinNasrVwzdwriw3xuUnsplash + false + Image + 2023-06-27T19:04:56 + + 1 + + + + + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/Media/hossein-nasr-wr56ynk67uc-unsplash.config b/src/Umbraco.Cms.11.x/uSync/v9/Media/hossein-nasr-wr56ynk67uc-unsplash.config new file mode 100644 index 0000000..422a518 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/Media/hossein-nasr-wr56ynk67uc-unsplash.config @@ -0,0 +1,19 @@ + + + + Buildings + /Buildings/HosseinNasrWr56ynk67ucUnsplash + false + Image + 2023-06-27T19:04:56 + + 3 + + + + + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/Media/jay-mantri-qkfxq3x-ybi-unsplash.config b/src/Umbraco.Cms.11.x/uSync/v9/Media/jay-mantri-qkfxq3x-ybi-unsplash.config new file mode 100644 index 0000000..75e1fae --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/Media/jay-mantri-qkfxq3x-ybi-unsplash.config @@ -0,0 +1,19 @@ + + + + Nature + /Nature/JayMantriQkfxq3xYbiUnsplash + false + Image + 2023-06-27T19:04:56 + + 8 + + + + + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/Media/jay-mantri-tfyi0qox08c-unsplash.config b/src/Umbraco.Cms.11.x/uSync/v9/Media/jay-mantri-tfyi0qox08c-unsplash.config new file mode 100644 index 0000000..c3ff7d3 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/Media/jay-mantri-tfyi0qox08c-unsplash.config @@ -0,0 +1,19 @@ + + + + Nature + /Nature/JayMantriTfyi0qox08cUnsplash + false + Image + 2023-06-27T19:04:56 + + 1 + + + + + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/Media/meiying-ng-orwkd-iwgqg-unsplash.config b/src/Umbraco.Cms.11.x/uSync/v9/Media/meiying-ng-orwkd-iwgqg-unsplash.config new file mode 100644 index 0000000..ebac6a4 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/Media/meiying-ng-orwkd-iwgqg-unsplash.config @@ -0,0 +1,19 @@ + + + + Buildings + /Buildings/MeiyingNgOrwkdIwgqgUnsplash + false + Image + 2023-06-27T19:04:56 + + 4 + + + + + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/Media/merve-sehirli-nasir-r-slzigonz4-unsplash.config b/src/Umbraco.Cms.11.x/uSync/v9/Media/merve-sehirli-nasir-r-slzigonz4-unsplash.config new file mode 100644 index 0000000..04ae797 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/Media/merve-sehirli-nasir-r-slzigonz4-unsplash.config @@ -0,0 +1,19 @@ + + + + Buildings + /Buildings/MerveSehirliNasirRSlzigonz4Unsplash + false + Image + 2023-06-27T19:04:56 + + 0 + + + + + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/Media/nature.config b/src/Umbraco.Cms.11.x/uSync/v9/Media/nature.config new file mode 100644 index 0000000..ef299a4 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/Media/nature.config @@ -0,0 +1,13 @@ + + + + + /Nature + false + Folder + 2023-06-27T19:04:56 + + 1 + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/Media/scott-webb-k-qkkbn7ds-unsplash.config b/src/Umbraco.Cms.11.x/uSync/v9/Media/scott-webb-k-qkkbn7ds-unsplash.config new file mode 100644 index 0000000..b327de2 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/Media/scott-webb-k-qkkbn7ds-unsplash.config @@ -0,0 +1,19 @@ + + + + Buildings + /Buildings/ScottWebbKQkkbn7dsUnsplash + false + Image + 2023-06-27T19:04:56 + + 5 + + + + + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/Media/simone-hutsch-l8fyk9rs-ou-unsplash.config b/src/Umbraco.Cms.11.x/uSync/v9/Media/simone-hutsch-l8fyk9rs-ou-unsplash.config new file mode 100644 index 0000000..ccf82b3 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/Media/simone-hutsch-l8fyk9rs-ou-unsplash.config @@ -0,0 +1,19 @@ + + + + Buildings + /Buildings/SimoneHutschL8fyk9rsOUUnsplash + false + Image + 2023-06-27T19:04:56 + + 2 + + + + + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/Media/thomas-griesbeck-bs-uxe8wu5y-unsplash.config b/src/Umbraco.Cms.11.x/uSync/v9/Media/thomas-griesbeck-bs-uxe8wu5y-unsplash.config new file mode 100644 index 0000000..ccc9842 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/Media/thomas-griesbeck-bs-uxe8wu5y-unsplash.config @@ -0,0 +1,19 @@ + + + + Nature + /Nature/ThomasGriesbeckBSUxe8wu5yUnsplash + false + Image + 2023-06-27T19:04:56 + + 9 + + + + + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/Media/tiago-alexandre-lopes-5vdftgpwv2g-unsplash.config b/src/Umbraco.Cms.11.x/uSync/v9/Media/tiago-alexandre-lopes-5vdftgpwv2g-unsplash.config new file mode 100644 index 0000000..9cbfd47 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/Media/tiago-alexandre-lopes-5vdftgpwv2g-unsplash.config @@ -0,0 +1,19 @@ + + + + Nature + /Nature/TiagoAlexandreLopes5Vdftgpwv2gUnsplash + false + Image + 2023-06-27T19:04:56 + + 10 + + + + + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/Media/yoal-desurmont-jqgsm3b9fpo-unsplash.config b/src/Umbraco.Cms.11.x/uSync/v9/Media/yoal-desurmont-jqgsm3b9fpo-unsplash.config new file mode 100644 index 0000000..0252ea3 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/Media/yoal-desurmont-jqgsm3b9fpo-unsplash.config @@ -0,0 +1,19 @@ + + + + Nature + /Nature/YoalDesurmontJqgsm3b9fpoUnsplash + false + Image + 2023-06-27T19:04:56 + + 0 + + + + + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/MediaTypes/file.config b/src/Umbraco.Cms.11.x/uSync/v9/MediaTypes/file.config new file mode 100644 index 0000000..425dce3 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/MediaTypes/file.config @@ -0,0 +1,71 @@ + + + + File + icon-document + icon-document + + True + False + Nothing + false + + + + + 0000001a-0000-0000-0000-000000000000 + Size + umbracoBytes + 930861bf-e262-4ead-a704-f99453565708 + Umbraco.Label + false + + + 2 + File + + + false + + + 00000019-0000-0000-0000-000000000000 + Type + umbracoExtension + f0bc4bfb-b499-40d6-ba86-058885a5178c + Umbraco.Label + false + + + 1 + File + + + false + + + 00000018-0000-0000-0000-000000000000 + File + umbracoFile + 84c6b441-31df-4ffe-b67e-67d5bc3ae65a + Umbraco.UploadField + true + + + 0 + File + + + false + + + + + + 50899f9c-023a-4466-b623-aba9049885fe + File + file + Group + 1 + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/MediaTypes/folder.config b/src/Umbraco.Cms.11.x/uSync/v9/MediaTypes/folder.config new file mode 100644 index 0000000..8565321 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/MediaTypes/folder.config @@ -0,0 +1,25 @@ + + + + Folder + icon-folder + icon-folder + + True + False + Nothing + false + + + + + Folder + Image + File + umbracoMediaVideo + umbracoMediaAudio + umbracoMediaArticle + umbracoMediaVectorGraphics + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/MediaTypes/image.config b/src/Umbraco.Cms.11.x/uSync/v9/MediaTypes/image.config new file mode 100644 index 0000000..c1dd686 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/MediaTypes/image.config @@ -0,0 +1,101 @@ + + + + Image + icon-picture + icon-picture + + True + False + Nothing + false + + + + + 00000009-0000-0000-0000-000000000000 + Size + umbracoBytes + 930861bf-e262-4ead-a704-f99453565708 + Umbraco.Label + false + + + 3 + Image + + + false + + + 0000000a-0000-0000-0000-000000000000 + Type + umbracoExtension + f0bc4bfb-b499-40d6-ba86-058885a5178c + Umbraco.Label + false + + + 4 + Image + + + false + + + 00000006-0000-0000-0000-000000000000 + Image + umbracoFile + 1df9f033-e6d4-451f-b8d2-e0cbc50a836f + Umbraco.ImageCropper + true + + + 0 + Image + + + false + + + 00000008-0000-0000-0000-000000000000 + Height + umbracoHeight + 8e7f995c-bd81-4627-9932-c40e568ec788 + Umbraco.Label + false + + + 2 + Image + + + false + + + 00000007-0000-0000-0000-000000000000 + Width + umbracoWidth + 8e7f995c-bd81-4627-9932-c40e568ec788 + Umbraco.Label + false + + + 1 + Image + + + false + + + + + + 79ed4d07-254a-42cf-8fa9-ebe1c116a596 + Image + image + Group + 1 + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/MediaTypes/umbracomediaarticle.config b/src/Umbraco.Cms.11.x/uSync/v9/MediaTypes/umbracomediaarticle.config new file mode 100644 index 0000000..11f2f7a --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/MediaTypes/umbracomediaarticle.config @@ -0,0 +1,71 @@ + + + + Article + icon-article + icon-article + + True + False + Nothing + false + + + + + 00000030-0000-0000-0000-000000000000 + Size + umbracoBytes + 930861bf-e262-4ead-a704-f99453565708 + Umbraco.Label + false + + + 2 + Article + + + false + + + 0000002f-0000-0000-0000-000000000000 + Type + umbracoExtension + f0bc4bfb-b499-40d6-ba86-058885a5178c + Umbraco.Label + false + + + 1 + Article + + + false + + + 0000002e-0000-0000-0000-000000000000 + Article + umbracoFile + bc1e266c-dac4-4164-bf08-8a1ec6a7143d + Umbraco.UploadField + true + + + 0 + Article + + + false + + + + + + 9af3bd65-f687-4453-9518-5f180d1898ec + Article + article + Group + 1 + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/MediaTypes/umbracomediaaudio.config b/src/Umbraco.Cms.11.x/uSync/v9/MediaTypes/umbracomediaaudio.config new file mode 100644 index 0000000..3b241c3 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/MediaTypes/umbracomediaaudio.config @@ -0,0 +1,71 @@ + + + + Audio + icon-sound-waves + icon-sound-waves + + True + False + Nothing + false + + + + + 0000002d-0000-0000-0000-000000000000 + Size + umbracoBytes + 930861bf-e262-4ead-a704-f99453565708 + Umbraco.Label + false + + + 2 + Audio + + + false + + + 0000002c-0000-0000-0000-000000000000 + Type + umbracoExtension + f0bc4bfb-b499-40d6-ba86-058885a5178c + Umbraco.Label + false + + + 1 + Audio + + + false + + + 0000002b-0000-0000-0000-000000000000 + Audio + umbracoFile + 8f430dd6-4e96-447e-9dc0-cb552c8cd1f3 + Umbraco.UploadField + true + + + 0 + Audio + + + false + + + + + + 335fb495-0a87-4e82-b902-30eb367b767c + Audio + audio + Group + 1 + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/MediaTypes/umbracomediavectorgraphics.config b/src/Umbraco.Cms.11.x/uSync/v9/MediaTypes/umbracomediavectorgraphics.config new file mode 100644 index 0000000..3ebd344 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/MediaTypes/umbracomediavectorgraphics.config @@ -0,0 +1,71 @@ + + + + Vector Graphics (SVG) + icon-picture + icon-picture + + True + False + Nothing + false + + + + + 00000033-0000-0000-0000-000000000000 + Size + umbracoBytes + 930861bf-e262-4ead-a704-f99453565708 + Umbraco.Label + false + + + 2 + Vector Graphics + + + false + + + 00000032-0000-0000-0000-000000000000 + Type + umbracoExtension + f0bc4bfb-b499-40d6-ba86-058885a5178c + Umbraco.Label + false + + + 1 + Vector Graphics + + + false + + + 00000031-0000-0000-0000-000000000000 + Vector Graphics + umbracoFile + 215cb418-2153-4429-9aef-8c0f0041191b + Umbraco.UploadField + true + + + 0 + Vector Graphics + + + false + + + + + + f199b4d7-9e84-439f-8531-f87d9af37711 + Vector Graphics + vectorGraphics + Group + 1 + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/MediaTypes/umbracomediavideo.config b/src/Umbraco.Cms.11.x/uSync/v9/MediaTypes/umbracomediavideo.config new file mode 100644 index 0000000..0dd0ffc --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/MediaTypes/umbracomediavideo.config @@ -0,0 +1,71 @@ + + + + Video + icon-video + icon-video + + True + False + Nothing + false + + + + + 0000002a-0000-0000-0000-000000000000 + Size + umbracoBytes + 930861bf-e262-4ead-a704-f99453565708 + Umbraco.Label + false + + + 2 + Video + + + false + + + 00000029-0000-0000-0000-000000000000 + Type + umbracoExtension + f0bc4bfb-b499-40d6-ba86-058885a5178c + Umbraco.Label + false + + + 1 + Video + + + false + + + 00000028-0000-0000-0000-000000000000 + Video + umbracoFile + 70575fe7-9812-4396-bbe1-c81a76db71b5 + Umbraco.UploadField + true + + + 0 + Video + + + false + + + + + + 2f0a61b6-cf92-4ff4-b437-751ab35eb254 + Video + video + Group + 1 + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/MemberTypes/member.config b/src/Umbraco.Cms.11.x/uSync/v9/MemberTypes/member.config new file mode 100644 index 0000000..bb1c2dc --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/MemberTypes/member.config @@ -0,0 +1,44 @@ + + + + Member + icon-user + icon-user + + False + False + Nothing + false + + + + + 2a280588-0000-0000-0000-000000000000 + Comments + umbracoMemberComments + c6bac0dd-4ab9-45b1-8e30-e4b619ee5da3 + Umbraco.TextArea + false + + + 0 + Membership + false + false + false + + + false + + + + + + 0756729d-d665-46e3-b84a-37aceaa614f8 + Membership + membership + Group + 1 + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/Templates/blockgrid.config b/src/Umbraco.Cms.11.x/uSync/v9/Templates/blockgrid.config new file mode 100644 index 0000000..0833e9e --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/Templates/blockgrid.config @@ -0,0 +1,5 @@ + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/Templates/layout.config b/src/Umbraco.Cms.11.x/uSync/v9/Templates/layout.config new file mode 100644 index 0000000..4780ccd --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/Templates/layout.config @@ -0,0 +1,5 @@ + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/uSync/v9/usync.config b/src/Umbraco.Cms.11.x/uSync/v9/usync.config new file mode 100644 index 0000000..05df709 --- /dev/null +++ b/src/Umbraco.Cms.11.x/uSync/v9/usync.config @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/umbraco/models/BlockGrid.generated.cs b/src/Umbraco.Cms.11.x/umbraco/models/BlockGrid.generated.cs new file mode 100644 index 0000000..9649481 --- /dev/null +++ b/src/Umbraco.Cms.11.x/umbraco/models/BlockGrid.generated.cs @@ -0,0 +1,60 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Umbraco.ModelsBuilder.Embedded v11.0.0+d713b38 +// +// Changes to this file will be lost if the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Linq.Expressions; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Infrastructure.ModelsBuilder; +using Umbraco.Cms.Core; +using Umbraco.Extensions; + +namespace Umbraco.Cms.Web.Common.PublishedModels +{ + /// Block Grid + [PublishedModel("blockGrid")] + public partial class BlockGrid : PublishedContentModel + { + // helpers +#pragma warning disable 0109 // new is redundant + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + public new const string ModelTypeAlias = "blockGrid"; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + public new const PublishedItemType ModelItemType = PublishedItemType.Content; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public new static IPublishedContentType GetModelContentType(IPublishedSnapshotAccessor publishedSnapshotAccessor) + => PublishedModelUtility.GetModelContentType(publishedSnapshotAccessor, ModelItemType, ModelTypeAlias); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public static IPublishedPropertyType GetModelPropertyType(IPublishedSnapshotAccessor publishedSnapshotAccessor, Expression> selector) + => PublishedModelUtility.GetModelPropertyType(GetModelContentType(publishedSnapshotAccessor), selector); +#pragma warning restore 0109 + + private IPublishedValueFallback _publishedValueFallback; + + // ctor + public BlockGrid(IPublishedContent content, IPublishedValueFallback publishedValueFallback) + : base(content, publishedValueFallback) + { + _publishedValueFallback = publishedValueFallback; + } + + // properties + + /// + /// Content + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [global::System.Diagnostics.CodeAnalysis.MaybeNull] + [ImplementPropertyType("content")] + public virtual global::Umbraco.Cms.Core.Models.Blocks.BlockGridModel Content => this.Value(_publishedValueFallback, "content"); + } +} diff --git a/src/Umbraco.Cms.11.x/umbraco/models/CallToActionBlock.generated.cs b/src/Umbraco.Cms.11.x/umbraco/models/CallToActionBlock.generated.cs new file mode 100644 index 0000000..01745df --- /dev/null +++ b/src/Umbraco.Cms.11.x/umbraco/models/CallToActionBlock.generated.cs @@ -0,0 +1,60 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Umbraco.ModelsBuilder.Embedded v11.0.0+d713b38 +// +// Changes to this file will be lost if the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Linq.Expressions; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Infrastructure.ModelsBuilder; +using Umbraco.Cms.Core; +using Umbraco.Extensions; + +namespace Umbraco.Cms.Web.Common.PublishedModels +{ + /// Call to Action + [PublishedModel("callToActionBlock")] + public partial class CallToActionBlock : PublishedElementModel + { + // helpers +#pragma warning disable 0109 // new is redundant + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + public new const string ModelTypeAlias = "callToActionBlock"; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + public new const PublishedItemType ModelItemType = PublishedItemType.Content; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public new static IPublishedContentType GetModelContentType(IPublishedSnapshotAccessor publishedSnapshotAccessor) + => PublishedModelUtility.GetModelContentType(publishedSnapshotAccessor, ModelItemType, ModelTypeAlias); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public static IPublishedPropertyType GetModelPropertyType(IPublishedSnapshotAccessor publishedSnapshotAccessor, Expression> selector) + => PublishedModelUtility.GetModelPropertyType(GetModelContentType(publishedSnapshotAccessor), selector); +#pragma warning restore 0109 + + private IPublishedValueFallback _publishedValueFallback; + + // ctor + public CallToActionBlock(IPublishedElement content, IPublishedValueFallback publishedValueFallback) + : base(content, publishedValueFallback) + { + _publishedValueFallback = publishedValueFallback; + } + + // properties + + /// + /// Link + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [global::System.Diagnostics.CodeAnalysis.MaybeNull] + [ImplementPropertyType("link")] + public virtual global::Umbraco.Cms.Core.Models.Link Link => this.Value(_publishedValueFallback, "link"); + } +} diff --git a/src/Umbraco.Cms.11.x/umbraco/models/CardBlock.generated.cs b/src/Umbraco.Cms.11.x/umbraco/models/CardBlock.generated.cs new file mode 100644 index 0000000..dc6d88a --- /dev/null +++ b/src/Umbraco.Cms.11.x/umbraco/models/CardBlock.generated.cs @@ -0,0 +1,76 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Umbraco.ModelsBuilder.Embedded v11.0.0+d713b38 +// +// Changes to this file will be lost if the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Linq.Expressions; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Infrastructure.ModelsBuilder; +using Umbraco.Cms.Core; +using Umbraco.Extensions; + +namespace Umbraco.Cms.Web.Common.PublishedModels +{ + /// Card + [PublishedModel("cardBlock")] + public partial class CardBlock : PublishedElementModel + { + // helpers +#pragma warning disable 0109 // new is redundant + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + public new const string ModelTypeAlias = "cardBlock"; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + public new const PublishedItemType ModelItemType = PublishedItemType.Content; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public new static IPublishedContentType GetModelContentType(IPublishedSnapshotAccessor publishedSnapshotAccessor) + => PublishedModelUtility.GetModelContentType(publishedSnapshotAccessor, ModelItemType, ModelTypeAlias); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public static IPublishedPropertyType GetModelPropertyType(IPublishedSnapshotAccessor publishedSnapshotAccessor, Expression> selector) + => PublishedModelUtility.GetModelPropertyType(GetModelContentType(publishedSnapshotAccessor), selector); +#pragma warning restore 0109 + + private IPublishedValueFallback _publishedValueFallback; + + // ctor + public CardBlock(IPublishedElement content, IPublishedValueFallback publishedValueFallback) + : base(content, publishedValueFallback) + { + _publishedValueFallback = publishedValueFallback; + } + + // properties + + /// + /// Headline + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [global::System.Diagnostics.CodeAnalysis.MaybeNull] + [ImplementPropertyType("headline")] + public virtual string Headline => this.Value(_publishedValueFallback, "headline"); + + /// + /// Image + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [global::System.Diagnostics.CodeAnalysis.MaybeNull] + [ImplementPropertyType("image")] + public virtual global::Umbraco.Cms.Core.Models.MediaWithCrops Image => this.Value(_publishedValueFallback, "image"); + + /// + /// Rich Text + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [global::System.Diagnostics.CodeAnalysis.MaybeNull] + [ImplementPropertyType("richText")] + public virtual global::Umbraco.Cms.Core.Strings.IHtmlEncodedString RichText => this.Value(_publishedValueFallback, "richText"); + } +} diff --git a/src/Umbraco.Cms.11.x/umbraco/models/File.generated.cs b/src/Umbraco.Cms.11.x/umbraco/models/File.generated.cs new file mode 100644 index 0000000..827875d --- /dev/null +++ b/src/Umbraco.Cms.11.x/umbraco/models/File.generated.cs @@ -0,0 +1,75 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Umbraco.ModelsBuilder.Embedded v11.0.0+d713b38 +// +// Changes to this file will be lost if the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Linq.Expressions; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Infrastructure.ModelsBuilder; +using Umbraco.Cms.Core; +using Umbraco.Extensions; + +namespace Umbraco.Cms.Web.Common.PublishedModels +{ + /// File + [PublishedModel("File")] + public partial class File : PublishedContentModel + { + // helpers +#pragma warning disable 0109 // new is redundant + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + public new const string ModelTypeAlias = "File"; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + public new const PublishedItemType ModelItemType = PublishedItemType.Media; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public new static IPublishedContentType GetModelContentType(IPublishedSnapshotAccessor publishedSnapshotAccessor) + => PublishedModelUtility.GetModelContentType(publishedSnapshotAccessor, ModelItemType, ModelTypeAlias); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public static IPublishedPropertyType GetModelPropertyType(IPublishedSnapshotAccessor publishedSnapshotAccessor, Expression> selector) + => PublishedModelUtility.GetModelPropertyType(GetModelContentType(publishedSnapshotAccessor), selector); +#pragma warning restore 0109 + + private IPublishedValueFallback _publishedValueFallback; + + // ctor + public File(IPublishedContent content, IPublishedValueFallback publishedValueFallback) + : base(content, publishedValueFallback) + { + _publishedValueFallback = publishedValueFallback; + } + + // properties + + /// + /// Size: in bytes + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [ImplementPropertyType("umbracoBytes")] + public virtual long UmbracoBytes => this.Value(_publishedValueFallback, "umbracoBytes"); + + /// + /// Type + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [global::System.Diagnostics.CodeAnalysis.MaybeNull] + [ImplementPropertyType("umbracoExtension")] + public virtual string UmbracoExtension => this.Value(_publishedValueFallback, "umbracoExtension"); + + /// + /// File + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [global::System.Diagnostics.CodeAnalysis.MaybeNull] + [ImplementPropertyType("umbracoFile")] + public virtual string UmbracoFile => this.Value(_publishedValueFallback, "umbracoFile"); + } +} diff --git a/src/Umbraco.Cms.11.x/umbraco/models/Folder.generated.cs b/src/Umbraco.Cms.11.x/umbraco/models/Folder.generated.cs new file mode 100644 index 0000000..d83be0d --- /dev/null +++ b/src/Umbraco.Cms.11.x/umbraco/models/Folder.generated.cs @@ -0,0 +1,52 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Umbraco.ModelsBuilder.Embedded v11.0.0+d713b38 +// +// Changes to this file will be lost if the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Linq.Expressions; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Infrastructure.ModelsBuilder; +using Umbraco.Cms.Core; +using Umbraco.Extensions; + +namespace Umbraco.Cms.Web.Common.PublishedModels +{ + /// Folder + [PublishedModel("Folder")] + public partial class Folder : PublishedContentModel + { + // helpers +#pragma warning disable 0109 // new is redundant + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + public new const string ModelTypeAlias = "Folder"; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + public new const PublishedItemType ModelItemType = PublishedItemType.Media; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public new static IPublishedContentType GetModelContentType(IPublishedSnapshotAccessor publishedSnapshotAccessor) + => PublishedModelUtility.GetModelContentType(publishedSnapshotAccessor, ModelItemType, ModelTypeAlias); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public static IPublishedPropertyType GetModelPropertyType(IPublishedSnapshotAccessor publishedSnapshotAccessor, Expression> selector) + => PublishedModelUtility.GetModelPropertyType(GetModelContentType(publishedSnapshotAccessor), selector); +#pragma warning restore 0109 + + private IPublishedValueFallback _publishedValueFallback; + + // ctor + public Folder(IPublishedContent content, IPublishedValueFallback publishedValueFallback) + : base(content, publishedValueFallback) + { + _publishedValueFallback = publishedValueFallback; + } + + // properties + } +} diff --git a/src/Umbraco.Cms.11.x/umbraco/models/HeadlineBlock.generated.cs b/src/Umbraco.Cms.11.x/umbraco/models/HeadlineBlock.generated.cs new file mode 100644 index 0000000..b68181f --- /dev/null +++ b/src/Umbraco.Cms.11.x/umbraco/models/HeadlineBlock.generated.cs @@ -0,0 +1,60 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Umbraco.ModelsBuilder.Embedded v11.0.0+d713b38 +// +// Changes to this file will be lost if the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Linq.Expressions; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Infrastructure.ModelsBuilder; +using Umbraco.Cms.Core; +using Umbraco.Extensions; + +namespace Umbraco.Cms.Web.Common.PublishedModels +{ + /// Headline + [PublishedModel("headlineBlock")] + public partial class HeadlineBlock : PublishedElementModel + { + // helpers +#pragma warning disable 0109 // new is redundant + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + public new const string ModelTypeAlias = "headlineBlock"; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + public new const PublishedItemType ModelItemType = PublishedItemType.Content; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public new static IPublishedContentType GetModelContentType(IPublishedSnapshotAccessor publishedSnapshotAccessor) + => PublishedModelUtility.GetModelContentType(publishedSnapshotAccessor, ModelItemType, ModelTypeAlias); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public static IPublishedPropertyType GetModelPropertyType(IPublishedSnapshotAccessor publishedSnapshotAccessor, Expression> selector) + => PublishedModelUtility.GetModelPropertyType(GetModelContentType(publishedSnapshotAccessor), selector); +#pragma warning restore 0109 + + private IPublishedValueFallback _publishedValueFallback; + + // ctor + public HeadlineBlock(IPublishedElement content, IPublishedValueFallback publishedValueFallback) + : base(content, publishedValueFallback) + { + _publishedValueFallback = publishedValueFallback; + } + + // properties + + /// + /// Headline + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [global::System.Diagnostics.CodeAnalysis.MaybeNull] + [ImplementPropertyType("headline")] + public virtual string Headline => this.Value(_publishedValueFallback, "headline"); + } +} diff --git a/src/Umbraco.Cms.11.x/umbraco/models/HeroBlock.generated.cs b/src/Umbraco.Cms.11.x/umbraco/models/HeroBlock.generated.cs new file mode 100644 index 0000000..d8e99a4 --- /dev/null +++ b/src/Umbraco.Cms.11.x/umbraco/models/HeroBlock.generated.cs @@ -0,0 +1,84 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Umbraco.ModelsBuilder.Embedded v11.0.0+d713b38 +// +// Changes to this file will be lost if the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Linq.Expressions; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Infrastructure.ModelsBuilder; +using Umbraco.Cms.Core; +using Umbraco.Extensions; + +namespace Umbraco.Cms.Web.Common.PublishedModels +{ + /// Hero + [PublishedModel("heroBlock")] + public partial class HeroBlock : PublishedElementModel + { + // helpers +#pragma warning disable 0109 // new is redundant + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + public new const string ModelTypeAlias = "heroBlock"; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + public new const PublishedItemType ModelItemType = PublishedItemType.Content; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public new static IPublishedContentType GetModelContentType(IPublishedSnapshotAccessor publishedSnapshotAccessor) + => PublishedModelUtility.GetModelContentType(publishedSnapshotAccessor, ModelItemType, ModelTypeAlias); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public static IPublishedPropertyType GetModelPropertyType(IPublishedSnapshotAccessor publishedSnapshotAccessor, Expression> selector) + => PublishedModelUtility.GetModelPropertyType(GetModelContentType(publishedSnapshotAccessor), selector); +#pragma warning restore 0109 + + private IPublishedValueFallback _publishedValueFallback; + + // ctor + public HeroBlock(IPublishedElement content, IPublishedValueFallback publishedValueFallback) + : base(content, publishedValueFallback) + { + _publishedValueFallback = publishedValueFallback; + } + + // properties + + /// + /// Background Color + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [global::System.Diagnostics.CodeAnalysis.MaybeNull] + [ImplementPropertyType("backgroundColor")] + public virtual string BackgroundColor => this.Value(_publishedValueFallback, "backgroundColor"); + + /// + /// Contrast + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [global::System.Diagnostics.CodeAnalysis.MaybeNull] + [ImplementPropertyType("contrast")] + public virtual string Contrast => this.Value(_publishedValueFallback, "contrast"); + + /// + /// Headline + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [global::System.Diagnostics.CodeAnalysis.MaybeNull] + [ImplementPropertyType("headline")] + public virtual string Headline => this.Value(_publishedValueFallback, "headline"); + + /// + /// Image + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [global::System.Diagnostics.CodeAnalysis.MaybeNull] + [ImplementPropertyType("image")] + public virtual global::Umbraco.Cms.Core.Models.MediaWithCrops Image => this.Value(_publishedValueFallback, "image"); + } +} diff --git a/src/Umbraco.Cms.11.x/umbraco/models/Image.generated.cs b/src/Umbraco.Cms.11.x/umbraco/models/Image.generated.cs new file mode 100644 index 0000000..0c9bf45 --- /dev/null +++ b/src/Umbraco.Cms.11.x/umbraco/models/Image.generated.cs @@ -0,0 +1,89 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Umbraco.ModelsBuilder.Embedded v11.0.0+d713b38 +// +// Changes to this file will be lost if the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Linq.Expressions; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Infrastructure.ModelsBuilder; +using Umbraco.Cms.Core; +using Umbraco.Extensions; + +namespace Umbraco.Cms.Web.Common.PublishedModels +{ + /// Image + [PublishedModel("Image")] + public partial class Image : PublishedContentModel + { + // helpers +#pragma warning disable 0109 // new is redundant + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + public new const string ModelTypeAlias = "Image"; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + public new const PublishedItemType ModelItemType = PublishedItemType.Media; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public new static IPublishedContentType GetModelContentType(IPublishedSnapshotAccessor publishedSnapshotAccessor) + => PublishedModelUtility.GetModelContentType(publishedSnapshotAccessor, ModelItemType, ModelTypeAlias); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public static IPublishedPropertyType GetModelPropertyType(IPublishedSnapshotAccessor publishedSnapshotAccessor, Expression> selector) + => PublishedModelUtility.GetModelPropertyType(GetModelContentType(publishedSnapshotAccessor), selector); +#pragma warning restore 0109 + + private IPublishedValueFallback _publishedValueFallback; + + // ctor + public Image(IPublishedContent content, IPublishedValueFallback publishedValueFallback) + : base(content, publishedValueFallback) + { + _publishedValueFallback = publishedValueFallback; + } + + // properties + + /// + /// Size: in bytes + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [ImplementPropertyType("umbracoBytes")] + public virtual long UmbracoBytes => this.Value(_publishedValueFallback, "umbracoBytes"); + + /// + /// Type + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [global::System.Diagnostics.CodeAnalysis.MaybeNull] + [ImplementPropertyType("umbracoExtension")] + public virtual string UmbracoExtension => this.Value(_publishedValueFallback, "umbracoExtension"); + + /// + /// Image + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [global::System.Diagnostics.CodeAnalysis.MaybeNull] + [ImplementPropertyType("umbracoFile")] + public virtual global::Umbraco.Cms.Core.PropertyEditors.ValueConverters.ImageCropperValue UmbracoFile => this.Value(_publishedValueFallback, "umbracoFile"); + + /// + /// Height: in pixels + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [ImplementPropertyType("umbracoHeight")] + public virtual int UmbracoHeight => this.Value(_publishedValueFallback, "umbracoHeight"); + + /// + /// Width: in pixels + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [ImplementPropertyType("umbracoWidth")] + public virtual int UmbracoWidth => this.Value(_publishedValueFallback, "umbracoWidth"); + } +} diff --git a/src/Umbraco.Cms.11.x/umbraco/models/ImageBlock.generated.cs b/src/Umbraco.Cms.11.x/umbraco/models/ImageBlock.generated.cs new file mode 100644 index 0000000..b283de5 --- /dev/null +++ b/src/Umbraco.Cms.11.x/umbraco/models/ImageBlock.generated.cs @@ -0,0 +1,60 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Umbraco.ModelsBuilder.Embedded v11.0.0+d713b38 +// +// Changes to this file will be lost if the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Linq.Expressions; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Infrastructure.ModelsBuilder; +using Umbraco.Cms.Core; +using Umbraco.Extensions; + +namespace Umbraco.Cms.Web.Common.PublishedModels +{ + /// Image + [PublishedModel("imageBlock")] + public partial class ImageBlock : PublishedElementModel + { + // helpers +#pragma warning disable 0109 // new is redundant + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + public new const string ModelTypeAlias = "imageBlock"; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + public new const PublishedItemType ModelItemType = PublishedItemType.Content; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public new static IPublishedContentType GetModelContentType(IPublishedSnapshotAccessor publishedSnapshotAccessor) + => PublishedModelUtility.GetModelContentType(publishedSnapshotAccessor, ModelItemType, ModelTypeAlias); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public static IPublishedPropertyType GetModelPropertyType(IPublishedSnapshotAccessor publishedSnapshotAccessor, Expression> selector) + => PublishedModelUtility.GetModelPropertyType(GetModelContentType(publishedSnapshotAccessor), selector); +#pragma warning restore 0109 + + private IPublishedValueFallback _publishedValueFallback; + + // ctor + public ImageBlock(IPublishedElement content, IPublishedValueFallback publishedValueFallback) + : base(content, publishedValueFallback) + { + _publishedValueFallback = publishedValueFallback; + } + + // properties + + /// + /// Image + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [global::System.Diagnostics.CodeAnalysis.MaybeNull] + [ImplementPropertyType("image")] + public virtual global::Umbraco.Cms.Core.Models.MediaWithCrops Image => this.Value(_publishedValueFallback, "image"); + } +} diff --git a/src/Umbraco.Cms.11.x/umbraco/models/InspirationBlock.generated.cs b/src/Umbraco.Cms.11.x/umbraco/models/InspirationBlock.generated.cs new file mode 100644 index 0000000..cf08e55 --- /dev/null +++ b/src/Umbraco.Cms.11.x/umbraco/models/InspirationBlock.generated.cs @@ -0,0 +1,52 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Umbraco.ModelsBuilder.Embedded v11.0.0+d713b38 +// +// Changes to this file will be lost if the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Linq.Expressions; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Infrastructure.ModelsBuilder; +using Umbraco.Cms.Core; +using Umbraco.Extensions; + +namespace Umbraco.Cms.Web.Common.PublishedModels +{ + /// Inspiration + [PublishedModel("inspirationBlock")] + public partial class InspirationBlock : PublishedElementModel + { + // helpers +#pragma warning disable 0109 // new is redundant + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + public new const string ModelTypeAlias = "inspirationBlock"; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + public new const PublishedItemType ModelItemType = PublishedItemType.Content; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public new static IPublishedContentType GetModelContentType(IPublishedSnapshotAccessor publishedSnapshotAccessor) + => PublishedModelUtility.GetModelContentType(publishedSnapshotAccessor, ModelItemType, ModelTypeAlias); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public static IPublishedPropertyType GetModelPropertyType(IPublishedSnapshotAccessor publishedSnapshotAccessor, Expression> selector) + => PublishedModelUtility.GetModelPropertyType(GetModelContentType(publishedSnapshotAccessor), selector); +#pragma warning restore 0109 + + private IPublishedValueFallback _publishedValueFallback; + + // ctor + public InspirationBlock(IPublishedElement content, IPublishedValueFallback publishedValueFallback) + : base(content, publishedValueFallback) + { + _publishedValueFallback = publishedValueFallback; + } + + // properties + } +} diff --git a/src/Umbraco.Cms.11.x/umbraco/models/Member.generated.cs b/src/Umbraco.Cms.11.x/umbraco/models/Member.generated.cs new file mode 100644 index 0000000..235066d --- /dev/null +++ b/src/Umbraco.Cms.11.x/umbraco/models/Member.generated.cs @@ -0,0 +1,60 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Umbraco.ModelsBuilder.Embedded v11.0.0+d713b38 +// +// Changes to this file will be lost if the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Linq.Expressions; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Infrastructure.ModelsBuilder; +using Umbraco.Cms.Core; +using Umbraco.Extensions; + +namespace Umbraco.Cms.Web.Common.PublishedModels +{ + /// Member + [PublishedModel("Member")] + public partial class Member : PublishedContentModel + { + // helpers +#pragma warning disable 0109 // new is redundant + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + public new const string ModelTypeAlias = "Member"; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + public new const PublishedItemType ModelItemType = PublishedItemType.Member; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public new static IPublishedContentType GetModelContentType(IPublishedSnapshotAccessor publishedSnapshotAccessor) + => PublishedModelUtility.GetModelContentType(publishedSnapshotAccessor, ModelItemType, ModelTypeAlias); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public static IPublishedPropertyType GetModelPropertyType(IPublishedSnapshotAccessor publishedSnapshotAccessor, Expression> selector) + => PublishedModelUtility.GetModelPropertyType(GetModelContentType(publishedSnapshotAccessor), selector); +#pragma warning restore 0109 + + private IPublishedValueFallback _publishedValueFallback; + + // ctor + public Member(IPublishedContent content, IPublishedValueFallback publishedValueFallback) + : base(content, publishedValueFallback) + { + _publishedValueFallback = publishedValueFallback; + } + + // properties + + /// + /// Comments + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [global::System.Diagnostics.CodeAnalysis.MaybeNull] + [ImplementPropertyType("umbracoMemberComments")] + public virtual string UmbracoMemberComments => this.Value(_publishedValueFallback, "umbracoMemberComments"); + } +} diff --git a/src/Umbraco.Cms.11.x/umbraco/models/OneColumnSectionBlock.generated.cs b/src/Umbraco.Cms.11.x/umbraco/models/OneColumnSectionBlock.generated.cs new file mode 100644 index 0000000..518b431 --- /dev/null +++ b/src/Umbraco.Cms.11.x/umbraco/models/OneColumnSectionBlock.generated.cs @@ -0,0 +1,52 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Umbraco.ModelsBuilder.Embedded v11.0.0+d713b38 +// +// Changes to this file will be lost if the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Linq.Expressions; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Infrastructure.ModelsBuilder; +using Umbraco.Cms.Core; +using Umbraco.Extensions; + +namespace Umbraco.Cms.Web.Common.PublishedModels +{ + /// One Column Section + [PublishedModel("oneColumnSectionBlock")] + public partial class OneColumnSectionBlock : PublishedElementModel + { + // helpers +#pragma warning disable 0109 // new is redundant + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + public new const string ModelTypeAlias = "oneColumnSectionBlock"; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + public new const PublishedItemType ModelItemType = PublishedItemType.Content; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public new static IPublishedContentType GetModelContentType(IPublishedSnapshotAccessor publishedSnapshotAccessor) + => PublishedModelUtility.GetModelContentType(publishedSnapshotAccessor, ModelItemType, ModelTypeAlias); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public static IPublishedPropertyType GetModelPropertyType(IPublishedSnapshotAccessor publishedSnapshotAccessor, Expression> selector) + => PublishedModelUtility.GetModelPropertyType(GetModelContentType(publishedSnapshotAccessor), selector); +#pragma warning restore 0109 + + private IPublishedValueFallback _publishedValueFallback; + + // ctor + public OneColumnSectionBlock(IPublishedElement content, IPublishedValueFallback publishedValueFallback) + : base(content, publishedValueFallback) + { + _publishedValueFallback = publishedValueFallback; + } + + // properties + } +} diff --git a/src/Umbraco.Cms.11.x/umbraco/models/RichTextBlock.generated.cs b/src/Umbraco.Cms.11.x/umbraco/models/RichTextBlock.generated.cs new file mode 100644 index 0000000..36e110f --- /dev/null +++ b/src/Umbraco.Cms.11.x/umbraco/models/RichTextBlock.generated.cs @@ -0,0 +1,60 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Umbraco.ModelsBuilder.Embedded v11.0.0+d713b38 +// +// Changes to this file will be lost if the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Linq.Expressions; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Infrastructure.ModelsBuilder; +using Umbraco.Cms.Core; +using Umbraco.Extensions; + +namespace Umbraco.Cms.Web.Common.PublishedModels +{ + /// Rich Text + [PublishedModel("richTextBlock")] + public partial class RichTextBlock : PublishedElementModel + { + // helpers +#pragma warning disable 0109 // new is redundant + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + public new const string ModelTypeAlias = "richTextBlock"; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + public new const PublishedItemType ModelItemType = PublishedItemType.Content; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public new static IPublishedContentType GetModelContentType(IPublishedSnapshotAccessor publishedSnapshotAccessor) + => PublishedModelUtility.GetModelContentType(publishedSnapshotAccessor, ModelItemType, ModelTypeAlias); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public static IPublishedPropertyType GetModelPropertyType(IPublishedSnapshotAccessor publishedSnapshotAccessor, Expression> selector) + => PublishedModelUtility.GetModelPropertyType(GetModelContentType(publishedSnapshotAccessor), selector); +#pragma warning restore 0109 + + private IPublishedValueFallback _publishedValueFallback; + + // ctor + public RichTextBlock(IPublishedElement content, IPublishedValueFallback publishedValueFallback) + : base(content, publishedValueFallback) + { + _publishedValueFallback = publishedValueFallback; + } + + // properties + + /// + /// Text + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [global::System.Diagnostics.CodeAnalysis.MaybeNull] + [ImplementPropertyType("richText")] + public virtual global::Umbraco.Cms.Core.Strings.IHtmlEncodedString RichText => this.Value(_publishedValueFallback, "richText"); + } +} diff --git a/src/Umbraco.Cms.11.x/umbraco/models/SectionSettingsBlock.generated.cs b/src/Umbraco.Cms.11.x/umbraco/models/SectionSettingsBlock.generated.cs new file mode 100644 index 0000000..bd959a9 --- /dev/null +++ b/src/Umbraco.Cms.11.x/umbraco/models/SectionSettingsBlock.generated.cs @@ -0,0 +1,68 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Umbraco.ModelsBuilder.Embedded v11.0.0+d713b38 +// +// Changes to this file will be lost if the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Linq.Expressions; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Infrastructure.ModelsBuilder; +using Umbraco.Cms.Core; +using Umbraco.Extensions; + +namespace Umbraco.Cms.Web.Common.PublishedModels +{ + /// Section Settings + [PublishedModel("sectionSettingsBlock")] + public partial class SectionSettingsBlock : PublishedElementModel + { + // helpers +#pragma warning disable 0109 // new is redundant + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + public new const string ModelTypeAlias = "sectionSettingsBlock"; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + public new const PublishedItemType ModelItemType = PublishedItemType.Content; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public new static IPublishedContentType GetModelContentType(IPublishedSnapshotAccessor publishedSnapshotAccessor) + => PublishedModelUtility.GetModelContentType(publishedSnapshotAccessor, ModelItemType, ModelTypeAlias); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public static IPublishedPropertyType GetModelPropertyType(IPublishedSnapshotAccessor publishedSnapshotAccessor, Expression> selector) + => PublishedModelUtility.GetModelPropertyType(GetModelContentType(publishedSnapshotAccessor), selector); +#pragma warning restore 0109 + + private IPublishedValueFallback _publishedValueFallback; + + // ctor + public SectionSettingsBlock(IPublishedElement content, IPublishedValueFallback publishedValueFallback) + : base(content, publishedValueFallback) + { + _publishedValueFallback = publishedValueFallback; + } + + // properties + + /// + /// Background color + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [global::System.Diagnostics.CodeAnalysis.MaybeNull] + [ImplementPropertyType("backgroundColor")] + public virtual string BackgroundColor => this.Value(_publishedValueFallback, "backgroundColor"); + + /// + /// Contrast + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [global::System.Diagnostics.CodeAnalysis.MaybeNull] + [ImplementPropertyType("contrast")] + public virtual string Contrast => this.Value(_publishedValueFallback, "contrast"); + } +} diff --git a/src/Umbraco.Cms.11.x/umbraco/models/TwoColumnSectionBlock.generated.cs b/src/Umbraco.Cms.11.x/umbraco/models/TwoColumnSectionBlock.generated.cs new file mode 100644 index 0000000..2d72600 --- /dev/null +++ b/src/Umbraco.Cms.11.x/umbraco/models/TwoColumnSectionBlock.generated.cs @@ -0,0 +1,52 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Umbraco.ModelsBuilder.Embedded v11.0.0+d713b38 +// +// Changes to this file will be lost if the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Linq.Expressions; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Infrastructure.ModelsBuilder; +using Umbraco.Cms.Core; +using Umbraco.Extensions; + +namespace Umbraco.Cms.Web.Common.PublishedModels +{ + /// Two Column Section + [PublishedModel("twoColumnSectionBlock")] + public partial class TwoColumnSectionBlock : PublishedElementModel + { + // helpers +#pragma warning disable 0109 // new is redundant + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + public new const string ModelTypeAlias = "twoColumnSectionBlock"; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + public new const PublishedItemType ModelItemType = PublishedItemType.Content; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public new static IPublishedContentType GetModelContentType(IPublishedSnapshotAccessor publishedSnapshotAccessor) + => PublishedModelUtility.GetModelContentType(publishedSnapshotAccessor, ModelItemType, ModelTypeAlias); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public static IPublishedPropertyType GetModelPropertyType(IPublishedSnapshotAccessor publishedSnapshotAccessor, Expression> selector) + => PublishedModelUtility.GetModelPropertyType(GetModelContentType(publishedSnapshotAccessor), selector); +#pragma warning restore 0109 + + private IPublishedValueFallback _publishedValueFallback; + + // ctor + public TwoColumnSectionBlock(IPublishedElement content, IPublishedValueFallback publishedValueFallback) + : base(content, publishedValueFallback) + { + _publishedValueFallback = publishedValueFallback; + } + + // properties + } +} diff --git a/src/Umbraco.Cms.11.x/umbraco/models/UmbracoMediaArticle.generated.cs b/src/Umbraco.Cms.11.x/umbraco/models/UmbracoMediaArticle.generated.cs new file mode 100644 index 0000000..d812e30 --- /dev/null +++ b/src/Umbraco.Cms.11.x/umbraco/models/UmbracoMediaArticle.generated.cs @@ -0,0 +1,75 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Umbraco.ModelsBuilder.Embedded v11.0.0+d713b38 +// +// Changes to this file will be lost if the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Linq.Expressions; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Infrastructure.ModelsBuilder; +using Umbraco.Cms.Core; +using Umbraco.Extensions; + +namespace Umbraco.Cms.Web.Common.PublishedModels +{ + /// Article + [PublishedModel("umbracoMediaArticle")] + public partial class UmbracoMediaArticle : PublishedContentModel + { + // helpers +#pragma warning disable 0109 // new is redundant + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + public new const string ModelTypeAlias = "umbracoMediaArticle"; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + public new const PublishedItemType ModelItemType = PublishedItemType.Media; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public new static IPublishedContentType GetModelContentType(IPublishedSnapshotAccessor publishedSnapshotAccessor) + => PublishedModelUtility.GetModelContentType(publishedSnapshotAccessor, ModelItemType, ModelTypeAlias); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public static IPublishedPropertyType GetModelPropertyType(IPublishedSnapshotAccessor publishedSnapshotAccessor, Expression> selector) + => PublishedModelUtility.GetModelPropertyType(GetModelContentType(publishedSnapshotAccessor), selector); +#pragma warning restore 0109 + + private IPublishedValueFallback _publishedValueFallback; + + // ctor + public UmbracoMediaArticle(IPublishedContent content, IPublishedValueFallback publishedValueFallback) + : base(content, publishedValueFallback) + { + _publishedValueFallback = publishedValueFallback; + } + + // properties + + /// + /// Size: in bytes + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [ImplementPropertyType("umbracoBytes")] + public virtual long UmbracoBytes => this.Value(_publishedValueFallback, "umbracoBytes"); + + /// + /// Type + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [global::System.Diagnostics.CodeAnalysis.MaybeNull] + [ImplementPropertyType("umbracoExtension")] + public virtual string UmbracoExtension => this.Value(_publishedValueFallback, "umbracoExtension"); + + /// + /// Article + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [global::System.Diagnostics.CodeAnalysis.MaybeNull] + [ImplementPropertyType("umbracoFile")] + public virtual string UmbracoFile => this.Value(_publishedValueFallback, "umbracoFile"); + } +} diff --git a/src/Umbraco.Cms.11.x/umbraco/models/UmbracoMediaAudio.generated.cs b/src/Umbraco.Cms.11.x/umbraco/models/UmbracoMediaAudio.generated.cs new file mode 100644 index 0000000..6094727 --- /dev/null +++ b/src/Umbraco.Cms.11.x/umbraco/models/UmbracoMediaAudio.generated.cs @@ -0,0 +1,75 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Umbraco.ModelsBuilder.Embedded v11.0.0+d713b38 +// +// Changes to this file will be lost if the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Linq.Expressions; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Infrastructure.ModelsBuilder; +using Umbraco.Cms.Core; +using Umbraco.Extensions; + +namespace Umbraco.Cms.Web.Common.PublishedModels +{ + /// Audio + [PublishedModel("umbracoMediaAudio")] + public partial class UmbracoMediaAudio : PublishedContentModel + { + // helpers +#pragma warning disable 0109 // new is redundant + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + public new const string ModelTypeAlias = "umbracoMediaAudio"; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + public new const PublishedItemType ModelItemType = PublishedItemType.Media; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public new static IPublishedContentType GetModelContentType(IPublishedSnapshotAccessor publishedSnapshotAccessor) + => PublishedModelUtility.GetModelContentType(publishedSnapshotAccessor, ModelItemType, ModelTypeAlias); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public static IPublishedPropertyType GetModelPropertyType(IPublishedSnapshotAccessor publishedSnapshotAccessor, Expression> selector) + => PublishedModelUtility.GetModelPropertyType(GetModelContentType(publishedSnapshotAccessor), selector); +#pragma warning restore 0109 + + private IPublishedValueFallback _publishedValueFallback; + + // ctor + public UmbracoMediaAudio(IPublishedContent content, IPublishedValueFallback publishedValueFallback) + : base(content, publishedValueFallback) + { + _publishedValueFallback = publishedValueFallback; + } + + // properties + + /// + /// Size: in bytes + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [ImplementPropertyType("umbracoBytes")] + public virtual long UmbracoBytes => this.Value(_publishedValueFallback, "umbracoBytes"); + + /// + /// Type + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [global::System.Diagnostics.CodeAnalysis.MaybeNull] + [ImplementPropertyType("umbracoExtension")] + public virtual string UmbracoExtension => this.Value(_publishedValueFallback, "umbracoExtension"); + + /// + /// Audio + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [global::System.Diagnostics.CodeAnalysis.MaybeNull] + [ImplementPropertyType("umbracoFile")] + public virtual string UmbracoFile => this.Value(_publishedValueFallback, "umbracoFile"); + } +} diff --git a/src/Umbraco.Cms.11.x/umbraco/models/UmbracoMediaVectorGraphics.generated.cs b/src/Umbraco.Cms.11.x/umbraco/models/UmbracoMediaVectorGraphics.generated.cs new file mode 100644 index 0000000..c861d00 --- /dev/null +++ b/src/Umbraco.Cms.11.x/umbraco/models/UmbracoMediaVectorGraphics.generated.cs @@ -0,0 +1,75 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Umbraco.ModelsBuilder.Embedded v11.0.0+d713b38 +// +// Changes to this file will be lost if the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Linq.Expressions; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Infrastructure.ModelsBuilder; +using Umbraco.Cms.Core; +using Umbraco.Extensions; + +namespace Umbraco.Cms.Web.Common.PublishedModels +{ + /// Vector Graphics (SVG) + [PublishedModel("umbracoMediaVectorGraphics")] + public partial class UmbracoMediaVectorGraphics : PublishedContentModel + { + // helpers +#pragma warning disable 0109 // new is redundant + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + public new const string ModelTypeAlias = "umbracoMediaVectorGraphics"; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + public new const PublishedItemType ModelItemType = PublishedItemType.Media; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public new static IPublishedContentType GetModelContentType(IPublishedSnapshotAccessor publishedSnapshotAccessor) + => PublishedModelUtility.GetModelContentType(publishedSnapshotAccessor, ModelItemType, ModelTypeAlias); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public static IPublishedPropertyType GetModelPropertyType(IPublishedSnapshotAccessor publishedSnapshotAccessor, Expression> selector) + => PublishedModelUtility.GetModelPropertyType(GetModelContentType(publishedSnapshotAccessor), selector); +#pragma warning restore 0109 + + private IPublishedValueFallback _publishedValueFallback; + + // ctor + public UmbracoMediaVectorGraphics(IPublishedContent content, IPublishedValueFallback publishedValueFallback) + : base(content, publishedValueFallback) + { + _publishedValueFallback = publishedValueFallback; + } + + // properties + + /// + /// Size: in bytes + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [ImplementPropertyType("umbracoBytes")] + public virtual long UmbracoBytes => this.Value(_publishedValueFallback, "umbracoBytes"); + + /// + /// Type + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [global::System.Diagnostics.CodeAnalysis.MaybeNull] + [ImplementPropertyType("umbracoExtension")] + public virtual string UmbracoExtension => this.Value(_publishedValueFallback, "umbracoExtension"); + + /// + /// Vector Graphics + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [global::System.Diagnostics.CodeAnalysis.MaybeNull] + [ImplementPropertyType("umbracoFile")] + public virtual string UmbracoFile => this.Value(_publishedValueFallback, "umbracoFile"); + } +} diff --git a/src/Umbraco.Cms.11.x/umbraco/models/UmbracoMediaVideo.generated.cs b/src/Umbraco.Cms.11.x/umbraco/models/UmbracoMediaVideo.generated.cs new file mode 100644 index 0000000..1b12f3e --- /dev/null +++ b/src/Umbraco.Cms.11.x/umbraco/models/UmbracoMediaVideo.generated.cs @@ -0,0 +1,75 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Umbraco.ModelsBuilder.Embedded v11.0.0+d713b38 +// +// Changes to this file will be lost if the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Linq.Expressions; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Infrastructure.ModelsBuilder; +using Umbraco.Cms.Core; +using Umbraco.Extensions; + +namespace Umbraco.Cms.Web.Common.PublishedModels +{ + /// Video + [PublishedModel("umbracoMediaVideo")] + public partial class UmbracoMediaVideo : PublishedContentModel + { + // helpers +#pragma warning disable 0109 // new is redundant + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + public new const string ModelTypeAlias = "umbracoMediaVideo"; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + public new const PublishedItemType ModelItemType = PublishedItemType.Media; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public new static IPublishedContentType GetModelContentType(IPublishedSnapshotAccessor publishedSnapshotAccessor) + => PublishedModelUtility.GetModelContentType(publishedSnapshotAccessor, ModelItemType, ModelTypeAlias); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public static IPublishedPropertyType GetModelPropertyType(IPublishedSnapshotAccessor publishedSnapshotAccessor, Expression> selector) + => PublishedModelUtility.GetModelPropertyType(GetModelContentType(publishedSnapshotAccessor), selector); +#pragma warning restore 0109 + + private IPublishedValueFallback _publishedValueFallback; + + // ctor + public UmbracoMediaVideo(IPublishedContent content, IPublishedValueFallback publishedValueFallback) + : base(content, publishedValueFallback) + { + _publishedValueFallback = publishedValueFallback; + } + + // properties + + /// + /// Size: in bytes + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [ImplementPropertyType("umbracoBytes")] + public virtual long UmbracoBytes => this.Value(_publishedValueFallback, "umbracoBytes"); + + /// + /// Type + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [global::System.Diagnostics.CodeAnalysis.MaybeNull] + [ImplementPropertyType("umbracoExtension")] + public virtual string UmbracoExtension => this.Value(_publishedValueFallback, "umbracoExtension"); + + /// + /// Video + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "11.0.0+d713b38")] + [global::System.Diagnostics.CodeAnalysis.MaybeNull] + [ImplementPropertyType("umbracoFile")] + public virtual string UmbracoFile => this.Value(_publishedValueFallback, "umbracoFile"); + } +} diff --git a/src/Umbraco.Cms.11.x/wwwroot/css/myblockgridlayout.css b/src/Umbraco.Cms.11.x/wwwroot/css/myblockgridlayout.css new file mode 100644 index 0000000..ddde66e --- /dev/null +++ b/src/Umbraco.Cms.11.x/wwwroot/css/myblockgridlayout.css @@ -0,0 +1,364 @@ +.umb-block-grid__layout-container { + position: relative; + display: grid; + grid-template-columns: repeat(var(--umb-block-grid--grid-columns, 1), minmax(0, 1fr)); + grid-auto-flow: row; + grid-auto-rows: minmax(50px, min-content); + column-gap: var(--umb-block-grid--column-gap, 0); + row-gap: var(--umb-block-grid--row-gap, 0); +} + +.umb-block-grid__layout-item { + position: relative; + /* For small devices we scale columnSpan by three, to make everything bigger than 1/3 take full width: */ + grid-column-end: span min(calc(var(--umb-block-grid--item-column-span, 1) * 3), var(--umb-block-grid--grid-columns)); + grid-row: span var(--umb-block-grid--item-row-span, 1); +} + + +.umb-block-grid__area-container, .umb-block-grid__block--view::part(area-container) { + position: relative; + display: grid; + grid-template-columns: repeat(var(--umb-block-grid--area-grid-columns, var(--umb-block-grid--grid-columns, 1)), minmax(0, 1fr)); + grid-auto-flow: row; + grid-auto-rows: minmax(50px, min-content); + column-gap: var(--umb-block-grid--areas-column-gap, 0); + row-gap: var(--umb-block-grid--areas-row-gap, 0); +} + +.umb-block-grid__area { + position: relative; + height: 100%; + display: flex; + flex-direction: column; + /* For small devices we scale columnSpan by three, to make everything bigger than 1/3 take full width: */ + grid-column-end: span min(calc(var(--umb-block-grid--area-column-span, 1) * 3), var(--umb-block-grid--grid-columns)); + grid-row: span var(--umb-block-grid--area-row-span, 1); +} + +@media (min-width:1024px) { + .umb-block-grid__layout-item { + grid-column-end: span min(var(--umb-block-grid--item-column-span, 1), var(--umb-block-grid--grid-columns)); + } + + .umb-block-grid__area { + grid-column-end: span var(--umb-block-grid--area-column-span, 1); + } +} + + +/**** Custom additions to the default Grid Layout Stylehseet: ****/ + + +/* additional CSS options for area-container and areas: */ +.umb-block-grid__area-container, .umb-block-grid__block--view::part(area-container) { + max-width: var(--my-container-max-width); + padding: var(--my-container-padding); + margin-left: auto; + margin-right: auto; + --umb-block-grid--areas-column-gap: 60px; + --umb-block-grid--areas-row-gap: 60px; +} + +.umb-block-grid__area { + justify-content: center; +} + +.umb-block-grid__layout-item[data-content-element-type-alias="oneColumnSectionBlock"] .umb-block-grid__layout-container { + --umb-block-grid--column-gap: 60px; + --umb-block-grid--row-gap: 60px; +} + + + + + +/**** My custom website styles: ****/ + +:root, :host, body { + font-family: 'Lato'; + font-weight: 500; + font-size: 15px; + line-height: 1.5; + margin: 0; +} + +.umb-block-grid { + container-type: inline-size; + --my-container-max-width: 1200px; + --my-container-padding: 0 20px; +} +@container (min-width: 720px) { + .umb-block-grid__layout-container { + --my-container-padding: 0 60px; + } +} + +section { + padding: var(--section-padding, 60px 0); +} +section[bright-contrast] { + color:white; + --my-bright-contrast: ; +} + + +/** only works on website. */ +.umb-block-grid__layout-item:has(section[nobackgroundcolor]) + +.umb-block-grid__layout-item section[nobackgroundcolor] { + padding-top: 0; +} + +h1 { + font-size: 60px; + font-weight: 300; + line-height: 0.96; + margin: 0; + margin-bottom: 20px; + color: inherit; +} + +h2 { + font-size: 35px; + font-weight: 300; + line-height: 1.2; + margin: 0; + color: inherit; +} + +/**umb_name:H3*/ +h3 { + font-size: 30px; + font-weight: 300; + line-height: 1.2; + margin:0; + color: inherit; +} + +/**umb_name:H4*/ +h4 { + font-size: 21px; + font-weight: 300; + line-height: 1.2; + margin:0; + color: inherit; +} + + + + + +/** Image */ + +img.image { + object-fit: cover; + height: 100%; + width: 100%; +} + + + + + +/** Rich Text */ + +.rich-text { + font-weight: 300; + color: inherit; + /** Using CSS Calculation, which gives 1 for column spans of 1-11 and 2 for column span of 12. */ + columns: clamp(1, calc(var(--umb-block-grid--item-column-span) - 10), 2); + column-gap: 60px; +} + +.rich-text > p:first-child { + margin-top: 0; +} + +/**umb_name:Lead Paragraph*/ +p.lead-paragraph { + font-size: 18px; +} + + + + +/** Hero */ + +.umb-block-grid__layout-item[data-content-element-type-alias="heroBlock"] .umb-block-grid__area-container, +.umb-block-grid__layout-item[data-content-element-type-alias="heroBlock"] .umb-block-grid__block--view::part(area-container) { + padding: 0; +} + +.hero { + position: relative; + height: 80vh; + width: 100%; + display: flex; + align-items: end; + padding: 60px 0; + box-sizing: border-box; +} +.hero[bright-contrast] { + color: white; + --my-bright-contrast: ; +} + +.hero .hero-background { + position: absolute; + inset: 0; + background-position: 50% 50%; + background-size: cover; +} + +.hero .hero-background:after { + content: ''; + position: absolute; + inset: 0; + background-color: rgba(0,0,0,.22); + pointer-events: none; +} + +.hero .hero-content { + position: relative; + width: 100%; + max-width: var(--my-container-max-width); + padding: var(--my-container-padding); + margin-left: auto; + margin-right: auto; +} + +.hero .hero-content > h1 { + max-width: 14em; +} + + + + +/** Call to action */ + +.call-to-action { + display: inline-block; + --call-to-action--background-color--condition: var(--my-bright-contrast) white; + background-color: var(--call-to-action--background-color--condition, #3544b1); + --call-to-action--text-color--condition: var(--my-bright-contrast) black; + color: var(--call-to-action--text-color--condition, white); + font-weight: 500; + padding: 14px 28px; + margin-top: 10px; + margin-bottom: 10px; + margin-right: auto; + max-width: 180px; + text-decoration: none; +} + + + +/** Inspiration */ + +.inspiration[bright-contrast] { + --my-bright-contrast: ; +} + +.inspiration .area-container { + max-width: var(--my-container-max-width); + padding: var(--my-container-padding); + margin-left: auto; + margin-right: auto; + + display: grid; + grid-template-columns: 1fr 1fr 1fr 1fr; + grid-auto-flow: row; + column-gap: 60px; +} + +.inspiration .left-area { + grid-column-end: span 1; + display: block; + margin-bottom: 60px; +} + +.inspiration .right-area { + grid-column-end: span 1; + display: block; + margin-top: 60px; + margin-right: -120px; + transform: translateX(-120px); +} + +.inspiration .content-area { + grid-column-end: span 2; + display: block; +} + +.umb-block-grid__layout-item[data-content-element-type-alias="inspirationBlock"] .umb-block-grid__area[data-area-alias="leftArea"] { + justify-content: start; +} + +.umb-block-grid__layout-item[data-content-element-type-alias="inspirationBlock"] .umb-block-grid__area[data-area-alias="rightArea"] { + justify-content: end; +} + + + + + + + +/* Card */ + +.card { + display: flex; + flex-direction: column; + height: 100%; + color: black; + background-color: white; +} + +.card .card-media { + position: relative; + width: 100%; + aspect-ratio: 16 / 9; + overflow: hidden; +} + +.card .card-media img { + object-fit: cover; + height: 100%; + width: 100%; +} + +.card .card-content { + display: flex; + flex-direction: column; + gap: 10px; + padding: 20px; + font-weight: 300; +} + +.card .card-content p { + margin: 0; +} + + +.card.--medium { + height: auto; +} + +.card.--medium .card-media::after { + content: ''; + position: absolute; + inset: 0; + background-color: rgba(0,0,0,.22); + pointer-events: none; +} + +.card.--medium .card-content { + position: absolute; + z-index: 1; + bottom: 0; + color: white; +} + +.card.--medium .card-content h4 { + font-size: 30px; +} \ No newline at end of file diff --git a/src/Umbraco.Cms.11.x/wwwroot/favicon.ico b/src/Umbraco.Cms.11.x/wwwroot/favicon.ico new file mode 100644 index 0000000..c0749dd Binary files /dev/null and b/src/Umbraco.Cms.11.x/wwwroot/favicon.ico differ diff --git a/src/Umbraco.Cms.12.x/.gitignore b/src/Umbraco.Cms.12.x/.gitignore new file mode 100644 index 0000000..8bcfaae --- /dev/null +++ b/src/Umbraco.Cms.12.x/.gitignore @@ -0,0 +1,479 @@ +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. +## +## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore + +# User-specific files +*.rsuser +*.suo +*.user +*.userosscache +*.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Mono auto generated files +mono_crash.* + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +[Ww][Ii][Nn]32/ +[Aa][Rr][Mm]/ +[Aa][Rr][Mm]64/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ +[Ll]ogs/ + +# Visual Studio 2015/2017 cache/options directory +.vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# Visual Studio 2017 auto generated files +Generated\ Files/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUnit +*.VisualState.xml +TestResult.xml +nunit-*.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# Benchmark Results +BenchmarkDotNet.Artifacts/ + +# .NET Core +project.lock.json +project.fragment.lock.json +artifacts/ + +# Tye +.tye/ + +# ASP.NET Scaffolding +ScaffoldingReadMe.txt + +# StyleCop +StyleCopReport.xml + +# Files built by Visual Studio +*_i.c +*_p.c +*_h.h +*.ilk +*.meta +*.obj +*.iobj +*.pch +*.pdb +*.ipdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*_wpftmp.csproj +*.log +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opendb +*.opensdf +*.sdf +*.cachefile +*.VC.db +*.VC.VC.opendb + +# Visual Studio profiler +*.psess +*.vsp +*.vspx +*.sap + +# Visual Studio Trace Files +*.e2e + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# AxoCover is a Code Coverage Tool +.axoCover/* +!.axoCover/settings.json + +# Coverlet is a free, cross platform Code Coverage Tool +coverage*.json +coverage*.xml +coverage*.info + +# Visual Studio code coverage results +*.coverage +*.coveragexml + +# NCrunch +_NCrunch_* +.*crunch*.local.xml +nCrunchTemp_* + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +# Note: Comment the next line if you want to checkin your web deploy settings, +# but database connection strings (with potential passwords) will be unencrypted +*.pubxml +*.publishproj + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted +PublishScripts/ + +# NuGet Packages +*.nupkg +# NuGet Symbol Packages +*.snupkg +# The packages folder can be ignored because of Package Restore +**/[Pp]ackages/* +# except build/, which is used as an MSBuild target. +!**/[Pp]ackages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/[Pp]ackages/repositories.config +# NuGet v3's project.json files produces more ignorable files +*.nuget.props +*.nuget.targets + +# Microsoft Azure Build Output +csx/ +*.build.csdef + +# Microsoft Azure Emulator +ecf/ +rcf/ + +# Windows Store app package directories and files +AppPackages/ +BundleArtifacts/ +Package.StoreAssociation.xml +_pkginfo.txt +*.appx +*.appxbundle +*.appxupload + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!?*.[Cc]ache/ + +# Others +ClientBin/ +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.jfm +*.pfx +*.publishsettings +orleans.codegen.cs + +# Including strong name files can present a security risk +# (https://github.com/github/gitignore/pull/2483#issue-259490424) +#*.snk + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) +#bower_components/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm +ServiceFabricBackup/ +*.rptproj.bak + +# SQL Server files +*.mdf +*.ldf +*.ndf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings +*.rptproj.rsuser +*- [Bb]ackup.rdl +*- [Bb]ackup ([0-9]).rdl +*- [Bb]ackup ([0-9][0-9]).rdl + +# Microsoft Fakes +FakesAssemblies/ + +# GhostDoc plugin setting file +*.GhostDoc.xml + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat +node_modules/ + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) +*.vbw + +# Visual Studio LightSwitch build output +**/*.HTMLClient/GeneratedArtifacts +**/*.DesktopClient/GeneratedArtifacts +**/*.DesktopClient/ModelManifest.xml +**/*.Server/GeneratedArtifacts +**/*.Server/ModelManifest.xml +_Pvt_Extensions + +# Paket dependency manager +.paket/paket.exe +paket-files/ + +# FAKE - F# Make +.fake/ + +# CodeRush personal settings +.cr/personal + +# Python Tools for Visual Studio (PTVS) +__pycache__/ +*.pyc + +# Cake - Uncomment if you are using it +# tools/** +# !tools/packages.config + +# Tabs Studio +*.tss + +# Telerik's JustMock configuration file +*.jmconfig + +# BizTalk build output +*.btp.cs +*.btm.cs +*.odx.cs +*.xsd.cs + +# OpenCover UI analysis results +OpenCover/ + +# Azure Stream Analytics local run output +ASALocalRun/ + +# MSBuild Binary and Structured Log +*.binlog + +# NVidia Nsight GPU debugger configuration file +*.nvuser + +# MFractors (Xamarin productivity tool) working folder +.mfractor/ + +# Local History for Visual Studio +.localhistory/ + +# BeatPulse healthcheck temp database +healthchecksdb + +# Backup folder for Package Reference Convert tool in Visual Studio 2017 +MigrationBackup/ + +# Ionide (cross platform F# VS Code tools) working folder +.ionide/ + +# Fody - auto-generated XML schema +FodyWeavers.xsd + +## +## Visual studio for Mac +## + + +# globs +Makefile.in +*.userprefs +*.usertasks +config.make +config.status +aclocal.m4 +install-sh +autom4te.cache/ +*.tar.gz +tarballs/ +test-results/ + +# Mac bundle stuff +*.dmg +*.app + +# content below from: https://github.com/github/gitignore/blob/master/Global/macOS.gitignore +# General +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + + +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns +.com.apple.timemachine.donotpresent + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +# content below from: https://github.com/github/gitignore/blob/master/Global/Windows.gitignore +# Windows thumbnail cache files +Thumbs.db +ehthumbs.db +ehthumbs_vista.db + +# Dump file +*.stackdump + +# Folder config file +[Dd]esktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msix +*.msm +*.msp + +# Windows shortcuts +*.lnk + +# JetBrains Rider +.idea/ +*.sln.iml + +## +## Visual Studio Code +## +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json + +## +## Umbraco CMS +## + +# JSON schema files for appsettings.json +appsettings-schema.json +appsettings-schema.*.json + +# Packages created from the backoffice (package.xml/package.zip) +/umbraco/Data/CreatedPackages/ + +# Temp folder containing Examine indexes, NuCache, MediaCache, etc. +/umbraco/Data/TEMP/ + +# SQLite database files +/umbraco/Data/*.sqlite.db +/umbraco/Data/*.sqlite.db-shm +/umbraco/Data/*.sqlite.db-wal + +# Log files +/umbraco/Logs/ + +# Media files +/wwwroot/media/ diff --git a/src/Umbraco.Cms.12.x/App_Plugins/Umbraco.Community.BlockPreview/js/controllers/block-preview.controller.js b/src/Umbraco.Cms.12.x/App_Plugins/Umbraco.Community.BlockPreview/js/controllers/block-preview.controller.js new file mode 100644 index 0000000..c81198c --- /dev/null +++ b/src/Umbraco.Cms.12.x/App_Plugins/Umbraco.Community.BlockPreview/js/controllers/block-preview.controller.js @@ -0,0 +1,75 @@ +angular.module('umbraco').controller('Umbraco.Community.BlockPreview.Controllers.BlockPreviewController', + ['$scope', '$sce', '$element', '$compile', '$timeout', 'editorState', 'Umbraco.Community.BlockPreview.Resources.PreviewResource', 'blockEditorService', + function ($scope, $sce, $element, $compile, $timeout, editorState, previewResource, blockEditorService) { + var active = editorState.getCurrent().variants.find(function (v) { + return v.active; + }); + + if (active !== null) { + if (active.language !== null) { + $scope.language = active.language.culture; + } + } + + $scope.id = editorState.getCurrent().id; + $scope.loading = true; + $scope.markup = $sce.trustAsHtml('
Loading preview
'); + + function loadPreview(content, settings) { + $scope.markup = $sce.trustAsHtml('
Loading preview
'); + $scope.loading = true; + + var formattedBlockData = { + layout: $scope.block.layout, + contentData: [content || $scope.block.data], + settingsData: [settings || $scope.block.settingsData] + }; + + previewResource.getPreview(formattedBlockData, $scope.id, $scope.model.constructor.name == 'BlockGridBlockController', $scope.language).then(function (data) { + $scope.markup = $sce.trustAsHtml(data); + $scope.loading = false; + }); + } + + loadPreview($scope.block.data, $scope.block.settingsData); + + var timeoutPromise; + + $scope.$watch('block.data', function (newValue, oldValue) { + if (newValue !== oldValue) { + $timeout.cancel(timeoutPromise); + + timeoutPromise = $timeout(function () { //Set timeout + loadPreview(newValue, null); + }, 500); + } + }, true); + + $scope.$watch('block.settingsData', function (newValue, oldValue) { + if (newValue !== oldValue) { + $timeout.cancel(timeoutPromise); + + timeoutPromise = $timeout(function () { //Set timeout + loadPreview(null, newValue); + }, 500); + } + }, true); + + $scope.editBlock = function ($event, block) { + var target = $event.target; + var blockActions = target.closest('.umb-block-grid__block--actions'); + var areaCreate = target.closest('.umb-block-grid__create-button'); + var blockCreateButton = target.closest('.umb-block-grid__block--inline-create-button'); + var blockCreateButtonLast = target.closest('.umb-block-grid__block--last-inline-create-button'); + + if (!blockActions && !areaCreate && !blockCreateButton && !blockCreateButtonLast) { + block.edit(); + $event.preventDefault(); + $event.stopPropagation(); + $event.stopImmediatePropagation(); + $event.cancelBubble = true; + return; + } + } + } + ]); diff --git a/src/Umbraco.Cms.12.x/App_Plugins/Umbraco.Community.BlockPreview/js/directives/bind-compile.directive.js b/src/Umbraco.Cms.12.x/App_Plugins/Umbraco.Community.BlockPreview/js/directives/bind-compile.directive.js new file mode 100644 index 0000000..0645193 --- /dev/null +++ b/src/Umbraco.Cms.12.x/App_Plugins/Umbraco.Community.BlockPreview/js/directives/bind-compile.directive.js @@ -0,0 +1,25 @@ +/* + * angular-bind-compile v0.1.0 + * https://github.com/emn178/angular-bind-compile + * + * Copyright 2014, emn178@gmail.com + * + * Licensed under the MIT license: + * http://www.opensource.org/licenses/MIT + */ +angular.module('umbraco.filters') + .directive('ngBindCompile', ['$sce', '$compile', function ($sce, $compile) { + return { + restrict: 'A', + compile: function (tElement, tAttrs) { + return function (scope, element, attrs) { + scope.$watch(function () { + return $sce.getTrustedHtml(scope.$eval(attrs.ngBindCompile)); + }, function (value) { + element.html(value); + $compile(element.contents())(scope); + }); + }; + } + }; + }]); \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/App_Plugins/Umbraco.Community.BlockPreview/js/directives/published-check.directive.js b/src/Umbraco.Cms.12.x/App_Plugins/Umbraco.Community.BlockPreview/js/directives/published-check.directive.js new file mode 100644 index 0000000..97be5ac --- /dev/null +++ b/src/Umbraco.Cms.12.x/App_Plugins/Umbraco.Community.BlockPreview/js/directives/published-check.directive.js @@ -0,0 +1,50 @@ +angular.module('umbraco.filters') + .directive('publicationCheck', [function () { + + function setStyle(scope, element) { + if (!scope.settings) { + element[0].style.opacity = 1; + return; + } + if (scope.settings.hideBlock === '1') { + element[0].style.opacity = 0.25; + return; + } + + if (scope.settings.startDate === '' && scope.settings.endDate === '') { + element[0].style.opacity = 1; + return; + } + + if (Date.parse(scope.settings.startDate) > new Date()) { + element[0].style.opacity = 0.25; + return; + } + + if (Date.parse(scope.settings.endDate) < new Date()) { + element[0].style.opacity = 0.25; + return; + } + + element[0].style.opacity = 1; + } + + function link(scope, element, attrs) { + + setStyle(scope, element); + + scope.$watch('settings', function (newValue, oldValue) { + if (newValue) + setStyle(scope, element); + }, true); + + } + + return { + restrict: 'A', + scope: { + 'settings': '=', + }, + link: link, + }; + }]); \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/App_Plugins/Umbraco.Community.BlockPreview/js/resources/preview.resource.js b/src/Umbraco.Cms.12.x/App_Plugins/Umbraco.Community.BlockPreview/js/resources/preview.resource.js new file mode 100644 index 0000000..12fc44f --- /dev/null +++ b/src/Umbraco.Cms.12.x/App_Plugins/Umbraco.Community.BlockPreview/js/resources/preview.resource.js @@ -0,0 +1,26 @@ +(function () { + 'use strict'; + + function previewResource($http, umbRequestHelper) { + + var apiUrl = Umbraco.Sys.ServerVariables.UmbracoCommunityBlockPreview.PreviewApi; + + var resource = { + getPreview: getPreview, + }; + + return resource; + + function getPreview(data, pageId, isGrid, culture) { + culture = culture || ''; + + return umbRequestHelper.resourcePromise( + $http.post(apiUrl + '?pageId=' + pageId + '&isGrid=' + isGrid + '&culture=' + culture, data), + 'Failed getting block preview markup' + ); + }; + } + + angular.module('umbraco.resources').factory('Umbraco.Community.BlockPreview.Resources.PreviewResource', previewResource); + +})(); diff --git a/src/Umbraco.Cms.12.x/App_Plugins/Umbraco.Community.BlockPreview/package.manifest b/src/Umbraco.Cms.12.x/App_Plugins/Umbraco.Community.BlockPreview/package.manifest new file mode 100644 index 0000000..cad9c59 --- /dev/null +++ b/src/Umbraco.Cms.12.x/App_Plugins/Umbraco.Community.BlockPreview/package.manifest @@ -0,0 +1,11 @@ +{ + "name": "Umbraco.Community.BlockPreview", + "version": "1.4.0", + "allowPackageTelemetry": true, + "javascript": [ + "~/App_Plugins/Umbraco.Community.BlockPreview/js/resources/preview.resource.js", + "~/App_Plugins/Umbraco.Community.BlockPreview/js/directives/published-check.directive.js", + "~/App_Plugins/Umbraco.Community.BlockPreview/js/directives/bind-compile.directive.js", + "~/App_Plugins/Umbraco.Community.BlockPreview/js/controllers/block-preview.controller.js" + ] +} \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/App_Plugins/Umbraco.Community.BlockPreview/views/block-preview.html b/src/Umbraco.Cms.12.x/App_Plugins/Umbraco.Community.BlockPreview/views/block-preview.html new file mode 100644 index 0000000..7a9c83a --- /dev/null +++ b/src/Umbraco.Cms.12.x/App_Plugins/Umbraco.Community.BlockPreview/views/block-preview.html @@ -0,0 +1,11 @@ + + +
+ +
+
+ + diff --git a/src/Umbraco.Cms.12.x/App_Plugins/UmbracoBlockGrid/BlockViews/callToAction.html b/src/Umbraco.Cms.12.x/App_Plugins/UmbracoBlockGrid/BlockViews/callToAction.html new file mode 100644 index 0000000..fec70ae --- /dev/null +++ b/src/Umbraco.Cms.12.x/App_Plugins/UmbracoBlockGrid/BlockViews/callToAction.html @@ -0,0 +1,9 @@ + +
+ {{block.data.link[0].name}} +
\ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/App_Plugins/UmbracoBlockGrid/BlockViews/card.html b/src/Umbraco.Cms.12.x/App_Plugins/UmbracoBlockGrid/BlockViews/card.html new file mode 100644 index 0000000..4019f8f --- /dev/null +++ b/src/Umbraco.Cms.12.x/App_Plugins/UmbracoBlockGrid/BlockViews/card.html @@ -0,0 +1,32 @@ + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/App_Plugins/UmbracoBlockGrid/BlockViews/headline.html b/src/Umbraco.Cms.12.x/App_Plugins/UmbracoBlockGrid/BlockViews/headline.html new file mode 100644 index 0000000..9a9707b --- /dev/null +++ b/src/Umbraco.Cms.12.x/App_Plugins/UmbracoBlockGrid/BlockViews/headline.html @@ -0,0 +1,8 @@ + + +

{{block.data.headline}}

\ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/App_Plugins/UmbracoBlockGrid/BlockViews/hero.html b/src/Umbraco.Cms.12.x/App_Plugins/UmbracoBlockGrid/BlockViews/hero.html new file mode 100644 index 0000000..461bfb9 --- /dev/null +++ b/src/Umbraco.Cms.12.x/App_Plugins/UmbracoBlockGrid/BlockViews/hero.html @@ -0,0 +1,31 @@ + +
+ +
+
+
+

{{block.data.headline}}

+ +
+
\ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/App_Plugins/UmbracoBlockGrid/BlockViews/image.html b/src/Umbraco.Cms.12.x/App_Plugins/UmbracoBlockGrid/BlockViews/image.html new file mode 100644 index 0000000..23d506a --- /dev/null +++ b/src/Umbraco.Cms.12.x/App_Plugins/UmbracoBlockGrid/BlockViews/image.html @@ -0,0 +1,50 @@ + + + +
+ {{mediaItem = (block.data.image[0].mediaKey | mediaItemResolver); ""}} + {{mediaItem.name}} + + {{mediaItem.name}} +
\ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/App_Plugins/UmbracoBlockGrid/BlockViews/inspiration.html b/src/Umbraco.Cms.12.x/App_Plugins/UmbracoBlockGrid/BlockViews/inspiration.html new file mode 100644 index 0000000..066cdb2 --- /dev/null +++ b/src/Umbraco.Cms.12.x/App_Plugins/UmbracoBlockGrid/BlockViews/inspiration.html @@ -0,0 +1,12 @@ +
+ +
+ + + +
+ +
\ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/App_Plugins/UmbracoBlockGrid/BlockViews/oneColumnSection.html b/src/Umbraco.Cms.12.x/App_Plugins/UmbracoBlockGrid/BlockViews/oneColumnSection.html new file mode 100644 index 0000000..8606108 --- /dev/null +++ b/src/Umbraco.Cms.12.x/App_Plugins/UmbracoBlockGrid/BlockViews/oneColumnSection.html @@ -0,0 +1,6 @@ +
+ +
\ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/App_Plugins/UmbracoBlockGrid/BlockViews/richText.html b/src/Umbraco.Cms.12.x/App_Plugins/UmbracoBlockGrid/BlockViews/richText.html new file mode 100644 index 0000000..4389f3f --- /dev/null +++ b/src/Umbraco.Cms.12.x/App_Plugins/UmbracoBlockGrid/BlockViews/richText.html @@ -0,0 +1,8 @@ + +
+
\ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/App_Plugins/UmbracoBlockGrid/BlockViews/twoColumnSection.html b/src/Umbraco.Cms.12.x/App_Plugins/UmbracoBlockGrid/BlockViews/twoColumnSection.html new file mode 100644 index 0000000..8606108 --- /dev/null +++ b/src/Umbraco.Cms.12.x/App_Plugins/UmbracoBlockGrid/BlockViews/twoColumnSection.html @@ -0,0 +1,6 @@ +
+ +
\ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/App_Plugins/UmbracoBlockGrid/package.manifest b/src/Umbraco.Cms.12.x/App_Plugins/UmbracoBlockGrid/package.manifest new file mode 100644 index 0000000..108f1a3 --- /dev/null +++ b/src/Umbraco.Cms.12.x/App_Plugins/UmbracoBlockGrid/package.manifest @@ -0,0 +1,5 @@ +{ + "name": "Umbraco Block Grid Example Website", + "version": "1.0.0", + "allowPackageTelemetry": true +} \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/Program.cs b/src/Umbraco.Cms.12.x/Program.cs new file mode 100644 index 0000000..fa39a11 --- /dev/null +++ b/src/Umbraco.Cms.12.x/Program.cs @@ -0,0 +1,19 @@ +namespace Umbraco.Cms._12.x +{ + public class Program + { + public static void Main(string[] args) + => CreateHostBuilder(args) + .Build() + .Run(); + + public static IHostBuilder CreateHostBuilder(string[] args) => + Host.CreateDefaultBuilder(args) + .ConfigureUmbracoDefaults() + .ConfigureWebHostDefaults(webBuilder => + { + webBuilder.UseStaticWebAssets(); + webBuilder.UseStartup(); + }); + } +} diff --git a/src/Umbraco.Cms.12.x/Properties/launchSettings.json b/src/Umbraco.Cms.12.x/Properties/launchSettings.json new file mode 100644 index 0000000..86f3f3e --- /dev/null +++ b/src/Umbraco.Cms.12.x/Properties/launchSettings.json @@ -0,0 +1,29 @@ +{ + "$schema": "https://json.schemastore.org/launchsettings.json", + "iisSettings": { + "windowsAuthentication": false, + "anonymousAuthentication": true, + "iisExpress": { + "applicationUrl": "http://localhost:53489", + "sslPort": 44334 + } + }, + "profiles": { + "IIS Express": { + "commandName": "IISExpress", + "launchBrowser": true, + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "Umbraco.Web.UI": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": true, + "applicationUrl": "https://localhost:44334;http://localhost:53489", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + } + } +} diff --git a/src/Umbraco.Cms.12.x/Startup.cs b/src/Umbraco.Cms.12.x/Startup.cs new file mode 100644 index 0000000..3f1db78 --- /dev/null +++ b/src/Umbraco.Cms.12.x/Startup.cs @@ -0,0 +1,69 @@ +using Umbraco.Community.BlockPreview; + +namespace Umbraco.Cms._12.x +{ + public class Startup + { + private readonly IWebHostEnvironment _env; + private readonly IConfiguration _config; + + /// + /// Initializes a new instance of the class. + /// + /// The web hosting environment. + /// The configuration. + /// + /// Only a few services are possible to be injected here https://github.com/dotnet/aspnetcore/issues/9337. + /// + public Startup(IWebHostEnvironment webHostEnvironment, IConfiguration config) + { + _env = webHostEnvironment ?? throw new ArgumentNullException(nameof(webHostEnvironment)); + _config = config ?? throw new ArgumentNullException(nameof(config)); + } + + /// + /// Configures the services. + /// + /// The services. + /// + /// This method gets called by the runtime. Use this method to add services to the container. + /// For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940. + /// + public void ConfigureServices(IServiceCollection services) + { + services.AddUmbraco(_env, _config) + .AddBackOffice() + .AddWebsite() + .AddBlockPreview() + .AddDeliveryApi() + .AddComposers() + .Build(); + } + + /// + /// Configures the application. + /// + /// The application builder. + /// The web hosting environment. + public void Configure(IApplicationBuilder app, IWebHostEnvironment env) + { + if (env.IsDevelopment()) + { + app.UseDeveloperExceptionPage(); + } + + app.UseUmbraco() + .WithMiddleware(u => + { + u.UseBackOffice(); + u.UseWebsite(); + }) + .WithEndpoints(u => + { + u.UseInstallerEndpoints(); + u.UseBackOfficeEndpoints(); + u.UseWebsiteEndpoints(); + }); + } + } +} diff --git a/src/Umbraco.Cms.12.x/Umbraco.Cms.12.x.csproj b/src/Umbraco.Cms.12.x/Umbraco.Cms.12.x.csproj new file mode 100644 index 0000000..dc4cc2f --- /dev/null +++ b/src/Umbraco.Cms.12.x/Umbraco.Cms.12.x.csproj @@ -0,0 +1,59 @@ + + + net7.0 + enable + enable + Umbraco.Cms._12.x + + + + true + Always + + + true + Always + + + true + Always + + + true + Always + + + true + Always + + + true + Always + + + + + + + + + + + + + + + + + + + true + + + + + false + false + + + diff --git a/src/Umbraco.Cms.12.x/Views/BlockGrid.cshtml b/src/Umbraco.Cms.12.x/Views/BlockGrid.cshtml new file mode 100644 index 0000000..9392975 --- /dev/null +++ b/src/Umbraco.Cms.12.x/Views/BlockGrid.cshtml @@ -0,0 +1,7 @@ +@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage +@using ContentModels = Umbraco.Cms.Web.Common.PublishedModels; +@{ + Layout = "Layout.cshtml"; +} + +@await Html.GetBlockGridHtmlAsync(Model.Content) \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/Views/Layout.cshtml b/src/Umbraco.Cms.12.x/Views/Layout.cshtml new file mode 100644 index 0000000..35d3caf --- /dev/null +++ b/src/Umbraco.Cms.12.x/Views/Layout.cshtml @@ -0,0 +1,23 @@ +@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage +@{ + Layout = null; +} + + + + Block Grid Examples + + + + + + + + + + + + @RenderBody() + + + diff --git a/src/Umbraco.Cms.12.x/Views/Partials/blockgrid/Components/callToActionBlock.cshtml b/src/Umbraco.Cms.12.x/Views/Partials/blockgrid/Components/callToActionBlock.cshtml new file mode 100644 index 0000000..f9ac3f8 --- /dev/null +++ b/src/Umbraco.Cms.12.x/Views/Partials/blockgrid/Components/callToActionBlock.cshtml @@ -0,0 +1,11 @@ +@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage> +@using ContentModels = Umbraco.Cms.Web.Common.PublishedModels; +@{ + var link = Model.Content.Link; + if (link is null) + { + return; + } +} + +@link.Name \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/Views/Partials/blockgrid/Components/cardBlock.cshtml b/src/Umbraco.Cms.12.x/Views/Partials/blockgrid/Components/cardBlock.cshtml new file mode 100644 index 0000000..424d817 --- /dev/null +++ b/src/Umbraco.Cms.12.x/Views/Partials/blockgrid/Components/cardBlock.cshtml @@ -0,0 +1,23 @@ +@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage> + +
+ +
+ @{ + var image = Model.Content.Image; + if (image is not null) + { + + } + else + { +

Missing image

+ } + } +
+
+

@Model.Content.Headline

+
@Model.Content.RichText
+
+ +
\ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/Views/Partials/blockgrid/Components/headlineBlock.cshtml b/src/Umbraco.Cms.12.x/Views/Partials/blockgrid/Components/headlineBlock.cshtml new file mode 100644 index 0000000..d6da42b --- /dev/null +++ b/src/Umbraco.Cms.12.x/Views/Partials/blockgrid/Components/headlineBlock.cshtml @@ -0,0 +1,4 @@ +@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage> +@using ContentModels = Umbraco.Cms.Web.Common.PublishedModels; + +

@Model.Content.Headline

\ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/Views/Partials/blockgrid/Components/heroBlock.cshtml b/src/Umbraco.Cms.12.x/Views/Partials/blockgrid/Components/heroBlock.cshtml new file mode 100644 index 0000000..7becb66 --- /dev/null +++ b/src/Umbraco.Cms.12.x/Views/Partials/blockgrid/Components/heroBlock.cshtml @@ -0,0 +1,27 @@ +@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage> +@{ + var backgroundColor = Model.Content.BackgroundColor; + var image = Model.Content.Image; + var hasBrightContrast = Model.Content.Contrast == "ffffff"; +} + +
+ + @if (image is not null) { +
+
+ } + +
+

@Model.Content.Headline

+ @* Only render if there is some content... *@ + @if (Model.Areas.Any(a => a.Any())) { + @await Html.GetPreviewBlockGridItemAreasHtmlAsync(Model) + } +
+
+ + diff --git a/src/Umbraco.Cms.12.x/Views/Partials/blockgrid/Components/imageBlock.cshtml b/src/Umbraco.Cms.12.x/Views/Partials/blockgrid/Components/imageBlock.cshtml new file mode 100644 index 0000000..47a7fb5 --- /dev/null +++ b/src/Umbraco.Cms.12.x/Views/Partials/blockgrid/Components/imageBlock.cshtml @@ -0,0 +1,12 @@ +@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage> +@{ + var image = Model.Content.Image; + if (image is not null) + { + @image.Name + } + else + { +

Missing image

+ } +} diff --git a/src/Umbraco.Cms.12.x/Views/Partials/blockgrid/Components/inspirationBlock.cshtml b/src/Umbraco.Cms.12.x/Views/Partials/blockgrid/Components/inspirationBlock.cshtml new file mode 100644 index 0000000..8f7e372 --- /dev/null +++ b/src/Umbraco.Cms.12.x/Views/Partials/blockgrid/Components/inspirationBlock.cshtml @@ -0,0 +1,24 @@ +@using Umbraco.Extensions; +@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage> +@using ContentModels = Umbraco.Cms.Web.Common.PublishedModels; +@{ + var backgroundColor = Model.Settings.BackgroundColor; + var hasBrightContrast = Model.Settings.Contrast == "ffffff"; +} + +
+
+
+ @await Html.GetPreviewBlockGridItemAreaHtmlAsync(Model, "leftArea") +
+
+ @await Html.GetPreviewBlockGridItemAreaHtmlAsync(Model, "rightArea") +
+
+ @await Html.GetPreviewBlockGridItemAreaHtmlAsync(Model, "contentArea") +
+
+
diff --git a/src/Umbraco.Cms.12.x/Views/Partials/blockgrid/Components/oneColumnSectionBlock.cshtml b/src/Umbraco.Cms.12.x/Views/Partials/blockgrid/Components/oneColumnSectionBlock.cshtml new file mode 100644 index 0000000..ec481c6 --- /dev/null +++ b/src/Umbraco.Cms.12.x/Views/Partials/blockgrid/Components/oneColumnSectionBlock.cshtml @@ -0,0 +1,14 @@ +@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage> +@using ContentModels = Umbraco.Cms.Web.Common.PublishedModels; +@{ + var backgroundColor = Model.Settings.BackgroundColor; + var noBackgroundColor = string.IsNullOrEmpty(backgroundColor); + var hasBrightContrast = Model.Settings.Contrast == "ffffff"; +} + +
+ @await Html.GetPreviewBlockGridItemAreasHtmlAsync(Model) +
diff --git a/src/Umbraco.Cms.12.x/Views/Partials/blockgrid/Components/richTextBlock.cshtml b/src/Umbraco.Cms.12.x/Views/Partials/blockgrid/Components/richTextBlock.cshtml new file mode 100644 index 0000000..bd050c0 --- /dev/null +++ b/src/Umbraco.Cms.12.x/Views/Partials/blockgrid/Components/richTextBlock.cshtml @@ -0,0 +1,4 @@ +@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage> +@using ContentModels = Umbraco.Cms.Web.Common.PublishedModels; + +
@Model.Content.RichText
\ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/Views/Partials/blockgrid/Components/twoColumnSectionBlock.cshtml b/src/Umbraco.Cms.12.x/Views/Partials/blockgrid/Components/twoColumnSectionBlock.cshtml new file mode 100644 index 0000000..50d46b8 --- /dev/null +++ b/src/Umbraco.Cms.12.x/Views/Partials/blockgrid/Components/twoColumnSectionBlock.cshtml @@ -0,0 +1,15 @@ +@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage> +@using ContentModels = Umbraco.Cms.Web.Common.PublishedModels; + +@{ + var backgroundColor = Model.Settings.BackgroundColor; + var noBackgroundColor = String.IsNullOrEmpty(backgroundColor); + var hasBrightContrast = Model.Settings.Contrast == "ffffff"; +} + +
+ @await Html.GetPreviewBlockGridItemAreasHtmlAsync(Model) +
diff --git a/src/Umbraco.Cms.12.x/Views/Partials/blockgrid/area.cshtml b/src/Umbraco.Cms.12.x/Views/Partials/blockgrid/area.cshtml new file mode 100644 index 0000000..a497ca3 --- /dev/null +++ b/src/Umbraco.Cms.12.x/Views/Partials/blockgrid/area.cshtml @@ -0,0 +1,10 @@ +@using Umbraco.Extensions +@inherits UmbracoViewPage + +
+ @await Html.GetPreviewBlockGridItemsHtmlAsync(Model) +
diff --git a/src/Umbraco.Cms.12.x/Views/Partials/blockgrid/areas.cshtml b/src/Umbraco.Cms.12.x/Views/Partials/blockgrid/areas.cshtml new file mode 100644 index 0000000..af06602 --- /dev/null +++ b/src/Umbraco.Cms.12.x/Views/Partials/blockgrid/areas.cshtml @@ -0,0 +1,13 @@ +@using Umbraco.Extensions +@inherits UmbracoViewPage +@{ + if (Model?.Areas.Any() != true) { return; } +} + +
+ @foreach (var area in Model.Areas) + { + @await Html.GetPreviewBlockGridItemAreaHtmlAsync(area) + } +
diff --git a/src/Umbraco.Cms.12.x/Views/Partials/blockgrid/default.cshtml b/src/Umbraco.Cms.12.x/Views/Partials/blockgrid/default.cshtml new file mode 100644 index 0000000..e25a3c9 --- /dev/null +++ b/src/Umbraco.Cms.12.x/Views/Partials/blockgrid/default.cshtml @@ -0,0 +1,11 @@ +@using Umbraco.Extensions +@inherits UmbracoViewPage +@{ + if (Model?.Any() != true) { return; } +} + +
+ @await Html.GetPreviewBlockGridItemsHtmlAsync(Model) +
diff --git a/src/Umbraco.Cms.12.x/Views/Partials/blockgrid/items.cshtml b/src/Umbraco.Cms.12.x/Views/Partials/blockgrid/items.cshtml new file mode 100644 index 0000000..0fa0bfd --- /dev/null +++ b/src/Umbraco.Cms.12.x/Views/Partials/blockgrid/items.cshtml @@ -0,0 +1,34 @@ +@inherits UmbracoViewPage> +@{ + if (Model?.Any() != true) { return; } +} + +
+ @foreach (var item in Model) + { +
+ @{ + var partialViewName = "blockgrid/Components/" + item.Content.ContentType.Alias; + try + { + @await Html.PartialAsync(partialViewName, item) + } + catch (InvalidOperationException) + { +

+ Could not render component of type: @(item.Content.ContentType.Alias) +
+ This likely happened because the partial view @partialViewName could not be found. +

+ } + } +
+ } +
diff --git a/src/Umbraco.Cms.12.x/Views/Partials/blocklist/default.cshtml b/src/Umbraco.Cms.12.x/Views/Partials/blocklist/default.cshtml new file mode 100644 index 0000000..accca2e --- /dev/null +++ b/src/Umbraco.Cms.12.x/Views/Partials/blocklist/default.cshtml @@ -0,0 +1,13 @@ +@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage +@{ + if (Model?.Any() != true) { return; } +} +
+ @foreach (var block in Model) + { + if (block?.ContentUdi == null) { continue; } + var data = block.Content; + + @await Html.PartialAsync("blocklist/Components/" + data.ContentType.Alias, block) + } +
diff --git a/src/Umbraco.Cms.12.x/Views/Partials/grid/bootstrap3-fluid.cshtml b/src/Umbraco.Cms.12.x/Views/Partials/grid/bootstrap3-fluid.cshtml new file mode 100644 index 0000000..b92734e --- /dev/null +++ b/src/Umbraco.Cms.12.x/Views/Partials/grid/bootstrap3-fluid.cshtml @@ -0,0 +1,106 @@ +@using System.Web +@using Microsoft.AspNetCore.Html +@using Newtonsoft.Json.Linq +@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage + +@* + Razor helpers located at the bottom of this file +*@ + +@if (Model is JObject && Model?.sections is not null) +{ + var oneColumn = ((System.Collections.ICollection)Model.sections).Count == 1; + +
+ @if (oneColumn) + { + foreach (var section in Model.sections) + { +
+ @foreach (var row in section.rows) + { + renderRow(row); + } +
+ } + } + else + { +
+ @foreach (var sec in Model.sections) + { +
+
+ @foreach (var row in sec.rows) + { + renderRow(row); + } +
+
+ } +
+ } +
+} + +@functions{ + + private async Task renderRow(dynamic row) + { +
+
+ @foreach (var area in row.areas) + { +
+
+ @foreach (var control in area.controls) + { + if (control?.editor?.view != null) + { + @await Html.PartialAsync("grid/editors/base", (object)control) + } + } +
+
+ } +
+
+ } +} + +@functions{ + + public static HtmlString RenderElementAttributes(dynamic contentItem) + { + var attrs = new List(); + JObject cfg = contentItem.config; + + if (cfg != null) + { + foreach (JProperty property in cfg.Properties()) + { + var propertyValue = HttpUtility.HtmlAttributeEncode(property.Value.ToString()); + attrs.Add(property.Name + "=\"" + propertyValue + "\""); + } + } + + JObject style = contentItem.styles; + + if (style != null) { + var cssVals = new List(); + foreach (JProperty property in style.Properties()) + { + var propertyValue = property.Value.ToString(); + if (string.IsNullOrWhiteSpace(propertyValue) == false) + { + cssVals.Add(property.Name + ":" + propertyValue + ";"); + } + } + + if (cssVals.Any()) + attrs.Add("style='" + HttpUtility.HtmlAttributeEncode(string.Join(" ", cssVals)) + "'"); + } + + return new HtmlString(string.Join(" ", attrs)); + } +} diff --git a/src/Umbraco.Cms.12.x/Views/Partials/grid/bootstrap3.cshtml b/src/Umbraco.Cms.12.x/Views/Partials/grid/bootstrap3.cshtml new file mode 100644 index 0000000..8863788 --- /dev/null +++ b/src/Umbraco.Cms.12.x/Views/Partials/grid/bootstrap3.cshtml @@ -0,0 +1,112 @@ +@using System.Web +@using Microsoft.AspNetCore.Html +@using Newtonsoft.Json.Linq +@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage + +@if (Model is JObject && Model?.sections is not null) +{ + var oneColumn = ((System.Collections.ICollection)Model.sections).Count == 1; + +
+ @if (oneColumn) + { + foreach (var section in Model.sections) + { +
+ @foreach (var row in section.rows) + { + renderRow(row, true); + } +
+ } + } + else + { +
+
+ @foreach (var sec in Model.sections) + { +
+
+ @foreach (var row in sec.rows) + { + renderRow(row, false); + } +
+
+ } +
+
+ } +
+} + +@functions{ + + private async Task renderRow(dynamic row, bool singleColumn) + { +
+ @if (singleColumn) { + @:
+ } +
+ @foreach (var area in row.areas) + { +
+
+ @foreach (var control in area.controls) + { + if (control?.editor?.view != null) + { + @await Html.PartialAsync("grid/editors/base", (object)control) + } + } +
+
+ } +
+ @if (singleColumn) { + @:
+ } +
+ } + +} + +@functions{ + + public static HtmlString RenderElementAttributes(dynamic contentItem) + { + var attrs = new List(); + JObject cfg = contentItem.config; + + if (cfg != null) + { + foreach (JProperty property in cfg.Properties()) + { + var propertyValue = HttpUtility.HtmlAttributeEncode(property.Value.ToString()); + attrs.Add(property.Name + "=\"" + propertyValue + "\""); + } + } + + JObject style = contentItem.styles; + + if (style != null) + { + var cssVals = new List(); + foreach (JProperty property in style.Properties()) + { + var propertyValue = property.Value.ToString(); + if (string.IsNullOrWhiteSpace(propertyValue) == false) + { + cssVals.Add(property.Name + ":" + propertyValue + ";"); + } + } + + if (cssVals.Any()) + attrs.Add("style=\"" + HttpUtility.HtmlAttributeEncode(string.Join(" ", cssVals)) + "\""); + } + + return new HtmlString(string.Join(" ", attrs)); + } +} diff --git a/src/Umbraco.Cms.12.x/Views/Partials/grid/editors/base.cshtml b/src/Umbraco.Cms.12.x/Views/Partials/grid/editors/base.cshtml new file mode 100644 index 0000000..e40543b --- /dev/null +++ b/src/Umbraco.Cms.12.x/Views/Partials/grid/editors/base.cshtml @@ -0,0 +1,27 @@ +@model dynamic + +@try +{ + string editor = EditorView(Model); + @await Html.PartialAsync(editor, Model as object) +} +catch (Exception ex) +{ +
@ex.ToString()
+} + +@functions{ + + public static string EditorView(dynamic contentItem) + { + string view = contentItem.editor.render != null ? contentItem.editor.render.ToString() : contentItem.editor.view.ToString(); + view = view.Replace(".html", ".cshtml"); + + if (!view.Contains("/")) + { + view = "grid/editors/" + view; + } + + return view; + } +} diff --git a/src/Umbraco.Cms.12.x/Views/Partials/grid/editors/embed.cshtml b/src/Umbraco.Cms.12.x/Views/Partials/grid/editors/embed.cshtml new file mode 100644 index 0000000..74c8fe2 --- /dev/null +++ b/src/Umbraco.Cms.12.x/Views/Partials/grid/editors/embed.cshtml @@ -0,0 +1,11 @@ +@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage + +@if (Model is not null) +{ + string embedValue = Convert.ToString(Model.value); + embedValue = embedValue.DetectIsJson() ? Model.value.preview : Model.value; + +
+ @Html.Raw(embedValue) +
+} diff --git a/src/Umbraco.Cms.12.x/Views/Partials/grid/editors/macro.cshtml b/src/Umbraco.Cms.12.x/Views/Partials/grid/editors/macro.cshtml new file mode 100644 index 0000000..a4450d1 --- /dev/null +++ b/src/Umbraco.Cms.12.x/Views/Partials/grid/editors/macro.cshtml @@ -0,0 +1,15 @@ +@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage + +@if (Model?.value is not null) +{ + string macroAlias = Model.value.macroAlias.ToString(); + var parameters = new Dictionary(); + foreach (var mpd in Model.value.macroParamsDictionary) + { + parameters.Add(mpd.Name, mpd.Value); + } + + + @await Umbraco.RenderMacroAsync(macroAlias, parameters) + +} diff --git a/src/Umbraco.Cms.12.x/Views/Partials/grid/editors/media.cshtml b/src/Umbraco.Cms.12.x/Views/Partials/grid/editors/media.cshtml new file mode 100644 index 0000000..bc3b111 --- /dev/null +++ b/src/Umbraco.Cms.12.x/Views/Partials/grid/editors/media.cshtml @@ -0,0 +1,64 @@ +@model dynamic +@using Umbraco.Cms.Core.Media +@using Umbraco.Cms.Core.PropertyEditors.ValueConverters +@inject IImageUrlGenerator ImageUrlGenerator + +@if (Model?.value is not null) +{ + var url = Model.value.image; + + if (Model.editor.config != null && Model.editor.config.size != null) + { + if (Model.value.coordinates != null) + { + url = ImageCropperTemplateCoreExtensions.GetCropUrl( + (string)url, + ImageUrlGenerator, + width: (int)Model.editor.config.size.width, + height: (int)Model.editor.config.size.height, + cropAlias: "default", + cropDataSet: new ImageCropperValue + { + Crops = new[] + { + new ImageCropperValue.ImageCropperCrop + { + Alias = "default", + Coordinates = new ImageCropperValue.ImageCropperCropCoordinates + { + X1 = (decimal)Model.value.coordinates.x1, + Y1 = (decimal)Model.value.coordinates.y1, + X2 = (decimal)Model.value.coordinates.x2, + Y2 = (decimal)Model.value.coordinates.y2 + } + } + } + }); + } + else + { + url = ImageCropperTemplateCoreExtensions.GetCropUrl( + (string)url, + ImageUrlGenerator, + width: (int)Model.editor.config.size.width, + height: (int)Model.editor.config.size.height, + cropDataSet: new ImageCropperValue + { + FocalPoint = new ImageCropperValue.ImageCropperFocalPoint + { + Top = Model.value.focalPoint == null ? 0.5m : Model.value.focalPoint.top, + Left = Model.value.focalPoint == null ? 0.5m : Model.value.focalPoint.left + } + }); + } + } + + var altText = Model.value.altText ?? Model.value.caption ?? string.Empty; + + @altText + + if (Model.value.caption != null) + { +

@Model.value.caption

+ } +} diff --git a/src/Umbraco.Cms.12.x/Views/Partials/grid/editors/rte.cshtml b/src/Umbraco.Cms.12.x/Views/Partials/grid/editors/rte.cshtml new file mode 100644 index 0000000..9445666 --- /dev/null +++ b/src/Umbraco.Cms.12.x/Views/Partials/grid/editors/rte.cshtml @@ -0,0 +1,13 @@ +@using Umbraco.Cms.Core.Templates +@model dynamic +@inject HtmlLocalLinkParser HtmlLocalLinkParser; +@inject HtmlUrlParser HtmlUrlParser; +@inject HtmlImageSourceParser HtmlImageSourceParser; + +@{ + var value = HtmlLocalLinkParser.EnsureInternalLinks(Model?.value.ToString()); + value = HtmlUrlParser.EnsureUrls(value); + value = HtmlImageSourceParser.EnsureImageSources(value); +} + +@Html.Raw(value) diff --git a/src/Umbraco.Cms.12.x/Views/Partials/grid/editors/textstring.cshtml b/src/Umbraco.Cms.12.x/Views/Partials/grid/editors/textstring.cshtml new file mode 100644 index 0000000..e6b9352 --- /dev/null +++ b/src/Umbraco.Cms.12.x/Views/Partials/grid/editors/textstring.cshtml @@ -0,0 +1,22 @@ +@model dynamic + +@if (Model?.editor.config.markup is not null) +{ + string markup = Model.editor.config.markup.ToString(); + markup = markup.Replace("#value#", Html.ReplaceLineBreaks((string)Model.value.ToString()).ToString()); + + if (Model.editor.config.style != null) + { + markup = markup.Replace("#style#", Model.editor.config.style.ToString()); + } + + + @Html.Raw(markup) + +} +else +{ + +
@Model?.value
+
+} diff --git a/src/Umbraco.Cms.12.x/Views/_ViewImports.cshtml b/src/Umbraco.Cms.12.x/Views/_ViewImports.cshtml new file mode 100644 index 0000000..f3cdc87 --- /dev/null +++ b/src/Umbraco.Cms.12.x/Views/_ViewImports.cshtml @@ -0,0 +1,11 @@ +@using Umbraco.Extensions +@using Umbraco.Cms._12.x +@using Umbraco.Cms.Web.Common.PublishedModels +@using Umbraco.Cms.Web.Common.Views +@using Umbraco.Cms.Core.Models.PublishedContent +@using Umbraco.Cms.Core.Models.Blocks +@using Umbraco.Community.BlockPreview.Extensions +@using Microsoft.AspNetCore.Html +@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers +@addTagHelper *, Smidge +@inject Smidge.SmidgeHelper SmidgeHelper diff --git a/src/Umbraco.Cms.12.x/appsettings.Development.json b/src/Umbraco.Cms.12.x/appsettings.Development.json new file mode 100644 index 0000000..9413e85 --- /dev/null +++ b/src/Umbraco.Cms.12.x/appsettings.Development.json @@ -0,0 +1,48 @@ +{ + "$schema": "appsettings-schema.json", + "Serilog": { + "MinimumLevel": { + "Default": "Information" + }, + "WriteTo": [ + { + "Name": "Async", + "Args": { + "configure": [ + { + "Name": "Console" + } + ] + } + } + ] + }, + "ConnectionStrings": { + "umbracoDbDSN": "Data Source=|DataDirectory|/Umbraco.sqlite.db;Cache=Shared;Foreign Keys=True;Pooling=True", + "umbracoDbDSN_ProviderName": "Microsoft.Data.Sqlite" + }, + "Umbraco": { + "CMS": { + "Unattended": { + "InstallUnattended": true, + "UpgradeUnattended": true, + "UnattendedUserName": "Admin", + "UnattendedUserEmail": "admin@example.com", + "UnattendedUserPassword": "1234567890" + }, + "Content": { + "MacroErrors": "Throw" + }, + "Hosting": { + "Debug": true + }, + "ModelsBuilder": { + "ModelsMode": "SourceCodeAuto" + }, + "RuntimeMinification": { + "UseInMemoryCache": true, + "CacheBuster": "Timestamp" + } + } + } +} diff --git a/src/Umbraco.Cms.12.x/appsettings.json b/src/Umbraco.Cms.12.x/appsettings.json new file mode 100644 index 0000000..ec500a5 --- /dev/null +++ b/src/Umbraco.Cms.12.x/appsettings.json @@ -0,0 +1,27 @@ +{ + "$schema": "appsettings-schema.json", + "Serilog": { + "MinimumLevel": { + "Default": "Information", + "Override": { + "Microsoft": "Warning", + "Microsoft.Hosting.Lifetime": "Information", + "System": "Warning" + } + } + }, + "Umbraco": { + "CMS": { + "Global": { + "Id": "dfcff9f0-3174-4676-ba5d-802eb9470cf1", + "SanitizeTinyMce": true + }, + "Content": { + "AllowEditInvariantFromNonDefault": true, + "ContentVersionCleanupPolicy": { + "EnableCleanup": true + } + } + } + } +} diff --git a/src/Umbraco.Cms.12.x/uSync/v9/Content/home.config b/src/Umbraco.Cms.12.x/uSync/v9/Content/home.config new file mode 100644 index 0000000..464259b --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/Content/home.config @@ -0,0 +1,460 @@ + + + + + /Home + false + blockGrid + 2023-06-27T19:04:55 + + 0 + + + + + + + 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.

" + }, + { + "contentTypeKey": "964feee4-efb3-4676-91a0-b960f26e9d92", + "udi": "umb://element/f299ce4988d54a10b313455583752403" + }, + { + "contentTypeKey": "69de9db6-ec92-4989-a5f6-8437b8f3d5cd", + "udi": "umb://element/0d8e8778175b4b898a6aed340ea86934", + "richText": "

Five ways to reduce your greenhouse gas emissions

\n

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:

\n

Eat less (or no) meat. 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.

\n

Hook your home up to clean energy. 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.

\n

Insulate your house. 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.

\n

Travel smart. 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.

\n

Use only the energy you need. 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.

" + }, + { + "contentTypeKey": "e7cd2fff-36b9-4853-9a29-5afe4c1c47bb", + "udi": "umb://element/5572afb2ccc74433911fb208c59cf256" + }, + { + "contentTypeKey": "e91cd36f-4bdf-4c74-90bf-b2c85fd00dae", + "udi": "umb://element/f92e56bd758649228727563a19e03fbc", + "image": "[\r\n {\r\n \"key\": \"b100279e-83bc-4d85-9701-384ceae63865\",\r\n \"mediaKey\": \"0adf4aaf-9738-4c8c-970d-5e4bf1fc9707\"\r\n }\r\n]" + }, + { + "contentTypeKey": "62351bd5-75fc-4d93-a6b2-b99439a9161f", + "udi": "umb://element/c06bb715ddfc4bf3858229ebce5bddfd", + "headline": "Energy usage" + }, + { + "contentTypeKey": "69de9db6-ec92-4989-a5f6-8437b8f3d5cd", + "udi": "umb://element/ddf2400ecb0942dab46a863b28e8c190", + "richText": "

Humans derive energy from burning fossil fuels, which releases almost three quarters of all human-produced greenhouse gases into the atmosphere. Half of all fossil fuels are burned to provide electricity and heat; the next big users of fossil fuels are manufacturing and transportation.

" + }, + { + "contentTypeKey": "1d05aa7a-16bd-4f3f-b094-023fd0bf0332", + "udi": "umb://element/939d9aa00101481986110f27aed97c5c", + "link": "[{\"name\":\"Find your solution\",\"target\":\"\",\"udi\":\"umb://document/6ac5363ad8124ce9aa893a3973426c70\"}]" + }, + { + "contentTypeKey": "e7cd2fff-36b9-4853-9a29-5afe4c1c47bb", + "udi": "umb://element/82a9e6a51c284e4c929759021871d495" + }, + { + "contentTypeKey": "e91cd36f-4bdf-4c74-90bf-b2c85fd00dae", + "udi": "umb://element/a60f6ce454bd490eb349f8e2b1ae806e", + "image": "[\r\n {\r\n \"key\": \"be4c4bb3-8c48-4403-8f75-be1a8b8c74de\",\r\n \"mediaKey\": \"fbb3c9cb-f708-4106-8588-f7e99ebf0d8d\"\r\n }\r\n]" + }, + { + "contentTypeKey": "62351bd5-75fc-4d93-a6b2-b99439a9161f", + "udi": "umb://element/5e5974a3716c4f1fb3f24a6401289249", + "headline": "Renewable energy" + }, + { + "contentTypeKey": "69de9db6-ec92-4989-a5f6-8437b8f3d5cd", + "udi": "umb://element/7f1a610ac1da4143a5158bcd9483fd2b", + "richText": "

The phrase “global warming” hasn’t been around long, but climate change, as it’s also known, is nothing new. In fact, it has been a constant throughout history. Earth’s climate today is very different from what it was 2 million years ago, let alone 10,000 years ago.

" + }, + { + "contentTypeKey": "1d05aa7a-16bd-4f3f-b094-023fd0bf0332", + "udi": "umb://element/4bd258d683cd45478991f7ae8c4b1faa", + "link": "[{\"name\":\"Get inspired today\",\"target\":\"\",\"udi\":\"umb://document/6ac5363ad8124ce9aa893a3973426c70\"}]" + }, + { + "contentTypeKey": "e7cd2fff-36b9-4853-9a29-5afe4c1c47bb", + "udi": "umb://element/87c966fc4ade4261b03ed5e0191677dc" + }, + { + "contentTypeKey": "e91cd36f-4bdf-4c74-90bf-b2c85fd00dae", + "udi": "umb://element/890066c8df5c4323bcd7abe3185e3046", + "image": "[\r\n {\r\n \"key\": \"b4dda200-1e4a-46f7-9cac-7e934703cdba\",\r\n \"mediaKey\": \"76e87651-7962-4c73-ae6b-684921a81c1e\"\r\n }\r\n]" + }, + { + "contentTypeKey": "62351bd5-75fc-4d93-a6b2-b99439a9161f", + "udi": "umb://element/abbd585a19da4a53a380843399f6913d", + "headline": "Emerging use of technologies" + }, + { + "contentTypeKey": "69de9db6-ec92-4989-a5f6-8437b8f3d5cd", + "udi": "umb://element/bb3875a42a3243c88820f39f31668bfc", + "richText": "

Humans derive energy from burning fossil fuels, which releases almost three quarters of all human-produced greenhouse gases into the atmosphere. Half of all fossil fuels are burned to provide electricity and heat; the next big users of fossil fuels are manufacturing and transportation.

" + }, + { + "contentTypeKey": "1d05aa7a-16bd-4f3f-b094-023fd0bf0332", + "udi": "umb://element/d13498b835094994bfe943b2e91c74e6", + "link": "[{\"name\":\"Solutions for life\",\"udi\":\"umb://document/6ac5363ad8124ce9aa893a3973426c70\"}]" + }, + { + "contentTypeKey": "964feee4-efb3-4676-91a0-b960f26e9d92", + "udi": "umb://element/51e5a28718704b8fb58319c4d1cbabe9" + }, + { + "contentTypeKey": "69de9db6-ec92-4989-a5f6-8437b8f3d5cd", + "udi": "umb://element/4c3ac78ea12d454fab3d3441fd066d5b", + "richText": "

Other ways to reduce your greenhouse content reuse

\n

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:

\n

Eat less (or no) meat. 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.

\n

Hook your home up to clean energy. 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.

\n

Insulate your house. 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.

\n

Travel smart. 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.

\n

Use only the energy you need. 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.

" + }, + { + "contentTypeKey": "054fd67a-a72d-4044-8226-11abeab7937d", + "udi": "umb://element/e92e509297e5423fa56967f44ca4df5c" + }, + { + "contentTypeKey": "e91cd36f-4bdf-4c74-90bf-b2c85fd00dae", + "udi": "umb://element/18b0960c746f43e39bbfaefd858f55c7", + "image": "[\r\n {\r\n \"key\": \"c21ddb33-b3fd-4b38-82b6-a171c2e39f9a\",\r\n \"mediaKey\": \"cb4659fc-57b1-449a-a64c-6545e8495883\"\r\n }\r\n]" + }, + { + "contentTypeKey": "1d05aa7a-16bd-4f3f-b094-023fd0bf0332", + "udi": "umb://element/9d55fa3e437f465b97e83d4d504e8f99", + "link": "[{\"name\":\"Get creative now\",\"udi\":\"umb://document/6ac5363ad8124ce9aa893a3973426c70\"}]" + }, + { + "contentTypeKey": "69de9db6-ec92-4989-a5f6-8437b8f3d5cd", + "udi": "umb://element/1ccc80cff546483cb26f583a4b73a2e9", + "richText": "

Creative Ways to Reduce Your Carbon Footprint

\n

Greenhouse gases are carbon dioxide and methane which contribute to global warming and climate change. We need to talk about what we can do on a personal level to make changes in our own lives so we can find creative ways to reduce our carbon footprint. 

" + }, + { + "contentTypeKey": "e91cd36f-4bdf-4c74-90bf-b2c85fd00dae", + "udi": "umb://element/d8fc805b103e4f5c9e52930182fe1ec9", + "image": "[\r\n {\r\n \"key\": \"7226feaf-0348-4899-bfa8-944a2c1738a3\",\r\n \"mediaKey\": \"a406a55f-7122-4822-9fbb-95ae9f6bc39b\"\r\n }\r\n]" + }, + { + "contentTypeKey": "1d05aa7a-16bd-4f3f-b094-023fd0bf0332", + "udi": "umb://element/f61f0278863441c8b39f25e9c0b70021", + "link": "[{\"name\":\"See our solutions\",\"udi\":\"umb://document/6ac5363ad8124ce9aa893a3973426c70\"}]" + } + ], + "settingsData": [ + { + "contentTypeKey": "1a16c578-dacc-4552-ad07-26553c8a34fd", + "udi": "umb://element/b72dcda2c9d54b5facd8fa220a9ffc34", + "backgroundColor": "{\r\n \"value\": \"f4f1ec\",\r\n \"label\": \"f4f1ec\",\r\n \"sortOrder\": 3,\r\n \"id\": \"4\"\r\n}" + }, + { + "contentTypeKey": "1a16c578-dacc-4552-ad07-26553c8a34fd", + "udi": "umb://element/7d274fd111544a23b86d8fbe4af3cafe" + }, + { + "contentTypeKey": "1a16c578-dacc-4552-ad07-26553c8a34fd", + "udi": "umb://element/1a34b67fa68947599153b59022917a7e" + }, + { + "contentTypeKey": "1a16c578-dacc-4552-ad07-26553c8a34fd", + "udi": "umb://element/ee9077a4a06f4eb48351f3d3aebe01fb" + }, + { + "contentTypeKey": "1a16c578-dacc-4552-ad07-26553c8a34fd", + "udi": "umb://element/bc9c7e522c264cb78f6b89700b54f103" + }, + { + "contentTypeKey": "1a16c578-dacc-4552-ad07-26553c8a34fd", + "udi": "umb://element/aa9fca1883294a8cba19b6a8b02ef410" + }, + { + "contentTypeKey": "1a16c578-dacc-4552-ad07-26553c8a34fd", + "udi": "umb://element/78cb82c0711b4a2a9604796a24466634", + "backgroundColor": "{\r\n \"value\": \"113635\",\r\n \"label\": \"113635\",\r\n \"sortOrder\": 7,\r\n \"id\": \"8\"\r\n}", + "contrast": "{\r\n \"value\": \"ffffff\",\r\n \"label\": \"ffffff\",\r\n \"sortOrder\": 1,\r\n \"id\": \"2\"\r\n}" + } + ] +}]]>
+
+
+
\ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/Content/services.config b/src/Umbraco.Cms.12.x/uSync/v9/Content/services.config new file mode 100644 index 0000000..adbe10d --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/Content/services.config @@ -0,0 +1,348 @@ + + + + Home + /Home/Services + false + blockGrid + 2023-06-27T19:04:55 + + 0 + + + + + + + We provide several solutions for changing the environment, the economy, and production lines.\n

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.

" + }, + { + "contentTypeKey": "56a73241-9dbd-46aa-a1ff-3d24ae2b6a33", + "udi": "umb://element/f9287d8ba41743aea1015738afd362f0", + "image": "[\r\n {\r\n \"key\": \"b78be6c0-f0bd-400b-8412-2773b86dbbed\",\r\n \"mediaKey\": \"0d47b9c5-a0e1-474f-a867-e59c592e417f\"\r\n }\r\n]", + "headline": "Innovative indoor climate solution", + "richText": "

Keep your organization sustainable with a green agenda.

" + }, + { + "contentTypeKey": "56a73241-9dbd-46aa-a1ff-3d24ae2b6a33", + "udi": "umb://element/4a0f761f824a4bae91866dfc557acf73", + "image": "[\r\n {\r\n \"key\": \"b0a2a241-e24d-4c37-9f62-108c22863d71\",\r\n \"mediaKey\": \"591f607c-6a13-4773-a868-76db1148ffb0\"\r\n }\r\n]", + "headline": "Green production transition", + "richText": "

Analysis and facilitation, Use a combination of the two and implement them.

" + }, + { + "contentTypeKey": "56a73241-9dbd-46aa-a1ff-3d24ae2b6a33", + "udi": "umb://element/faddecf8aa3a4b299bc6c7bf611d4d27", + "image": "[\r\n {\r\n \"key\": \"f294e7ef-fd7f-4e30-84dc-9346d329b33e\",\r\n \"mediaKey\": \"87b7776d-f21b-4dda-8325-87b4d004dceb\"\r\n }\r\n]", + "headline": "Analysis & evaluation", + "richText": "

We provide a platform of knowledge, so you can use that knowledge for branding and marketing.

" + }, + { + "contentTypeKey": "56a73241-9dbd-46aa-a1ff-3d24ae2b6a33", + "udi": "umb://element/329bb5128b3e4a59a103079ddc500dad", + "image": "[\r\n {\r\n \"key\": \"bf356e7a-8b59-4963-8dc8-f6284870cde4\",\r\n \"mediaKey\": \"76e87651-7962-4c73-ae6b-684921a81c1e\"\r\n }\r\n]", + "headline": "Optimisation & implementation", + "richText": "

You can use that knowledge for branding and marketing.

" + }, + { + "contentTypeKey": "56a73241-9dbd-46aa-a1ff-3d24ae2b6a33", + "udi": "umb://element/3ee573f93eda4f0c80d6c52544837967", + "image": "[\r\n {\r\n \"key\": \"70f31be4-6bcf-425e-a49d-1fee2fedd81d\",\r\n \"mediaKey\": \"a406a55f-7122-4822-9fbb-95ae9f6bc39b\"\r\n }\r\n]", + "headline": "The transition to green production", + "richText": "

Use a combination of analysis and facilitation, we help you make the right decisions and implement them.

" + }, + { + "contentTypeKey": "56a73241-9dbd-46aa-a1ff-3d24ae2b6a33", + "udi": "umb://element/9cee4fda73314d97b33c507a038c2c2f", + "image": "[\r\n {\r\n \"key\": \"c1934b6f-077c-4677-847b-a6df6d9f5394\",\r\n \"mediaKey\": \"91f42a8e-6bdd-48ba-9e51-cc4e4540ffad\"\r\n }\r\n]", + "headline": "Environmental footprint", + "richText": "

Creating sustainable product innovation is an important parameter

" + }, + { + "contentTypeKey": "56a73241-9dbd-46aa-a1ff-3d24ae2b6a33", + "udi": "umb://element/e6b7a7bb31a84ce8a67a97b990b7b367", + "image": "[\r\n {\r\n \"key\": \"7f9a190e-c4ed-4c2a-86b8-48a4454eed23\",\r\n \"mediaKey\": \"0ce0babd-8047-48a0-bcc3-a2d1bf7cc7aa\"\r\n }\r\n]", + "headline": "Carbon dioxide", + "richText": "

Chemical compound made up of molecules that each have one carbon atom covalently double bonded to two oxygen atoms

" + }, + { + "contentTypeKey": "964feee4-efb3-4676-91a0-b960f26e9d92", + "udi": "umb://element/a4b6a642bffc4f349232c056b84b2cd1" + }, + { + "contentTypeKey": "69de9db6-ec92-4989-a5f6-8437b8f3d5cd", + "udi": "umb://element/e5ab4ac7ce1843528aca261576a88536", + "richText": "

Five service annoncements to reduce your greenhouse gas emissions

\n

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:

\n

Eat less (or no) meat. 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.

\n

Hook your home up to clean energy. 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.

\n

Insulate your house. 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.

\n

Travel smart. 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.

\n

Use only the energy you need. 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.

" + }, + { + "contentTypeKey": "e7cd2fff-36b9-4853-9a29-5afe4c1c47bb", + "udi": "umb://element/2cfc183497714d27a938ea4f369e8aa8" + }, + { + "contentTypeKey": "e91cd36f-4bdf-4c74-90bf-b2c85fd00dae", + "udi": "umb://element/14868939c7f3496f90fda4f7bfe1ed97", + "image": "[\r\n {\r\n \"key\": \"003e5cc1-70f9-4f45-9081-037125e80eea\",\r\n \"mediaKey\": \"8d71873a-4a79-41d9-817d-4e60fea33792\"\r\n }\r\n]" + }, + { + "contentTypeKey": "62351bd5-75fc-4d93-a6b2-b99439a9161f", + "udi": "umb://element/aa4fceaf479148b781eaae21d68978b0", + "headline": "Conserve our natural resources" + }, + { + "contentTypeKey": "69de9db6-ec92-4989-a5f6-8437b8f3d5cd", + "udi": "umb://element/7a66fc6c7a794e4c8049f68f95f0e3eb", + "richText": "

Humans derive energy from burning fossil fuels, which releases almost three quarters of all human-produced greenhouse gases into the atmosphere. Half of all fossil fuels are burned to provide electricity and heat; the next big users of fossil fuels are manufacturing and transportation.

" + }, + { + "contentTypeKey": "1d05aa7a-16bd-4f3f-b094-023fd0bf0332", + "udi": "umb://element/6a19709c18334c93a4e2a515d8e8ff4a", + "link": "[{\"name\":\"Learn more\",\"udi\":\"umb://document/6e2ff1f7114e484ba407918daded1aa6\"}]" + }, + { + "contentTypeKey": "e7cd2fff-36b9-4853-9a29-5afe4c1c47bb", + "udi": "umb://element/7c7030a693014cda8d64a6803172ba2d" + }, + { + "contentTypeKey": "e91cd36f-4bdf-4c74-90bf-b2c85fd00dae", + "udi": "umb://element/9738df7d64814b28ae25a231e4a7d4c7", + "image": "[\r\n {\r\n \"key\": \"232198b5-a5dc-4d14-9684-e401185604f4\",\r\n \"mediaKey\": \"43933cb4-0d29-412e-8e89-25ae76274b05\"\r\n }\r\n]" + }, + { + "contentTypeKey": "62351bd5-75fc-4d93-a6b2-b99439a9161f", + "udi": "umb://element/e013c27b47e3466db4dae0494f6a4e3f", + "headline": "A bright future for renewable energy" + }, + { + "contentTypeKey": "69de9db6-ec92-4989-a5f6-8437b8f3d5cd", + "udi": "umb://element/7a53ce3b088e4e1cad67f5ca05d02540", + "richText": "

The phrase “global warming” hasn’t been around long, but climate change, as it’s also known, is nothing new. In fact, it has been a constant throughout history. Earth’s climate today is very different from what it was 2 million years ago, let alone 10,000 years ago.

" + }, + { + "contentTypeKey": "1d05aa7a-16bd-4f3f-b094-023fd0bf0332", + "udi": "umb://element/6ba7dafc14ed4742891dfbcad44d93e1", + "link": "[{\"name\":\"Explorer\",\"udi\":\"umb://document/6e2ff1f7114e484ba407918daded1aa6\"}]" + } + ], + "settingsData": [ + { + "contentTypeKey": "1a16c578-dacc-4552-ad07-26553c8a34fd", + "udi": "umb://element/398a058e2e8846339e9013ebfa4517b7", + "backgroundColor": "{\r\n \"value\": \"f4f1ec\",\r\n \"label\": \"f4f1ec\",\r\n \"sortOrder\": 3,\r\n \"id\": \"4\"\r\n}" + }, + { + "contentTypeKey": "1a16c578-dacc-4552-ad07-26553c8a34fd", + "udi": "umb://element/1b30c4ca55ed45e2af4acf70b0ad3bc6", + "backgroundColor": "" + }, + { + "contentTypeKey": "1a16c578-dacc-4552-ad07-26553c8a34fd", + "udi": "umb://element/dc8ab3910a404ea0939999643f43cfa2", + "backgroundColor": "{\r\n \"value\": \"c97990\",\r\n \"label\": \"c97990\",\r\n \"sortOrder\": 1,\r\n \"id\": \"2\"\r\n}", + "contrast": "{\r\n \"value\": \"ffffff\",\r\n \"label\": \"ffffff\",\r\n \"sortOrder\": 1,\r\n \"id\": \"2\"\r\n}" + }, + { + "contentTypeKey": "1a16c578-dacc-4552-ad07-26553c8a34fd", + "udi": "umb://element/c55b4bb7d02e43c39dfb252e04fb0acd", + "backgroundColor": "" + } + ] +}]]>
+
+
+
\ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/Content/test.config b/src/Umbraco.Cms.12.x/uSync/v9/Content/test.config new file mode 100644 index 0000000..5d492c9 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/Content/test.config @@ -0,0 +1,45 @@ + + + + + /[-20]/Test + true + blockGrid + 2023-06-28T18:28:37 + + 0 + + + + + + + + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/ContentTypes/blockgrid.config b/src/Umbraco.Cms.12.x/uSync/v9/ContentTypes/blockgrid.config new file mode 100644 index 0000000..c26078a --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/ContentTypes/blockgrid.config @@ -0,0 +1,53 @@ + + + + Block Grid + icon-layout color-black + folder.png + + True + False + Nothing + false + + False + + + + + BlockGrid + + + + + + blockGrid + + + + 7b0420c9-87ac-4b2f-a6ee-3dbafa83c7a9 + Content + content + c3384287-a9ca-463c-a0b9-adfaa4ca679f + Umbraco.BlockGrid + false + + + 1 + Content + Nothing + + + true + + + + + 97bd9bea-80a7-42fe-9e85-92cf280446eb + Content + content + Group + 0 + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/ContentTypes/calltoactionblock.config b/src/Umbraco.Cms.12.x/uSync/v9/ContentTypes/calltoactionblock.config new file mode 100644 index 0000000..8298d93 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/ContentTypes/calltoactionblock.config @@ -0,0 +1,50 @@ + + + + Call to Action + icon-candy color-black + folder.png + + False + False + Nothing + true + + False + + + + Blocks + + + + + + + + 24268764-5ef2-4032-96d0-aefa3a1e86ee + Link + link + b5a4834e-8492-4f0e-b055-fc7fb8971456 + Umbraco.MultiUrlPicker + false + + + 0 + Call to Action + Nothing + + + false + + + + + 16cad6f9-7106-4bd2-b5ce-bd27393c5c32 + Call to Action + callToAction + Group + 0 + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/ContentTypes/cardblock.config b/src/Umbraco.Cms.12.x/uSync/v9/ContentTypes/cardblock.config new file mode 100644 index 0000000..b25b008 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/ContentTypes/cardblock.config @@ -0,0 +1,82 @@ + + + + Card + icon-pictures-alt-2 color-black + folder.png + + False + False + Nothing + true + + False + + + + Blocks + + + + + + + + 071f1e2c-c3f1-4781-a188-b12dee5155ee + Headline + headline + 0cc0eba1-9960-42c9-bf9b-60e150b429ae + Umbraco.TextBox + false + + + 0 + Content + Nothing + + + false + + + 9207cf33-48e5-46d4-b8b8-d22b08b3f781 + Image + image + ad9f0cf2-bda2-45d5-9ea1-a63cfc873fd3 + Umbraco.MediaPicker3 + false + + + 2 + Content + Nothing + + + false + + + 0575255d-304c-4658-8525-65a52a12a7a8 + Rich Text + richText + ca90c950-0aff-4e72-b976-a30b1ac57dad + Umbraco.TinyMCE + false + + + 1 + Content + Nothing + + + false + + + + + 2b2c9b06-f0bb-41d7-b397-f93a50869629 + Content + content + Group + 0 + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/ContentTypes/headlineblock.config b/src/Umbraco.Cms.12.x/uSync/v9/ContentTypes/headlineblock.config new file mode 100644 index 0000000..8954348 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/ContentTypes/headlineblock.config @@ -0,0 +1,50 @@ + + + + Headline + icon-font color-black + folder.png + + False + False + Nothing + true + + False + + + + Blocks + + + + + + + + d12ce005-4039-4606-bca3-a0565211b76c + Headline + headline + 0cc0eba1-9960-42c9-bf9b-60e150b429ae + Umbraco.TextBox + true + + + 0 + Content + Nothing + + + false + + + + + f445e496-d440-47f1-b2ee-200addcc363c + Content + content + Group + 0 + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/ContentTypes/heroblock.config b/src/Umbraco.Cms.12.x/uSync/v9/ContentTypes/heroblock.config new file mode 100644 index 0000000..524db4d --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/ContentTypes/heroblock.config @@ -0,0 +1,98 @@ + + + + Hero + icon-birthday-cake color-black + folder.png + + False + False + Nothing + true + + False + + + + Blocks + + + + + + + + b5a79ad9-c13f-4fb1-a095-48c1ff64f180 + Background Color + backgroundColor + b3f77e71-396d-4f49-b264-b1eacd63cbca + Umbraco.ColorPicker + false + + + 2 + Content + Nothing + + + false + + + 9f76b3b1-d7d4-4982-b828-c7fb528e0c3c + Contrast + contrast + d320454a-b023-4e83-9557-60bdb9fbc048 + Umbraco.ColorPicker + false + + + 3 + Content + Nothing + + + false + + + 5290713e-71f9-4575-8026-7ed536d4a40d + Headline + headline + 0cc0eba1-9960-42c9-bf9b-60e150b429ae + Umbraco.TextBox + true + + + 0 + Content + Nothing + + + false + + + 5d985a99-99e9-4747-af1f-9941c17430a4 + Image + image + ad9f0cf2-bda2-45d5-9ea1-a63cfc873fd3 + Umbraco.MediaPicker3 + false + + + 1 + Content + Nothing + + + false + + + + + fea5d453-a3e2-48bf-93a3-30d2e959a4f8 + Content + content + Group + 0 + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/ContentTypes/imageblock.config b/src/Umbraco.Cms.12.x/uSync/v9/ContentTypes/imageblock.config new file mode 100644 index 0000000..6c4f917 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/ContentTypes/imageblock.config @@ -0,0 +1,50 @@ + + + + Image + icon-umb-media color-black + folder.png + + False + False + Nothing + true + + False + + + + Blocks + + + + + + + + cde7e19e-3026-4b7e-b377-25bc61e53a40 + Image + image + ad9f0cf2-bda2-45d5-9ea1-a63cfc873fd3 + Umbraco.MediaPicker3 + false + + + 0 + Content + Nothing + + + false + + + + + cb005da1-722f-4e67-8838-57b2cf81bb65 + Content + content + Group + 0 + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/ContentTypes/inspirationblock.config b/src/Umbraco.Cms.12.x/uSync/v9/ContentTypes/inspirationblock.config new file mode 100644 index 0000000..12acbe3 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/ContentTypes/inspirationblock.config @@ -0,0 +1,25 @@ + + + + Inspiration + icon-screensharing color-black + folder.png + + False + False + Nothing + true + + False + + + + Blocks + + + + + + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/ContentTypes/onecolumnsectionblock.config b/src/Umbraco.Cms.12.x/uSync/v9/ContentTypes/onecolumnsectionblock.config new file mode 100644 index 0000000..4b71281 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/ContentTypes/onecolumnsectionblock.config @@ -0,0 +1,25 @@ + + + + One Column Section + icon-book color-black + folder.png + + False + False + Nothing + true + + False + + + + Blocks/Layouts + + + + + + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/ContentTypes/richtextblock.config b/src/Umbraco.Cms.12.x/uSync/v9/ContentTypes/richtextblock.config new file mode 100644 index 0000000..cab65dc --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/ContentTypes/richtextblock.config @@ -0,0 +1,50 @@ + + + + Rich Text + icon-script color-black + folder.png + + False + False + Nothing + true + + False + + + + Blocks + + + + + + + + fc72e040-f521-4127-8ffe-03878ed54993 + Text + richText + 522af7ab-361a-48ee-8ca2-1f2f1e098d2a + Umbraco.TinyMCE + false + + + 0 + Content + Nothing + + + true + + + + + 294bf9a7-e23e-40d2-8596-815e174f90fa + Content + content + Group + 0 + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/ContentTypes/sectionsettingsblock.config b/src/Umbraco.Cms.12.x/uSync/v9/ContentTypes/sectionsettingsblock.config new file mode 100644 index 0000000..160530e --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/ContentTypes/sectionsettingsblock.config @@ -0,0 +1,66 @@ + + + + Section Settings + icon-defrag color-black + folder.png + + False + False + Nothing + true + + False + + + + Blocks + + + + + + + + 4ca6e2ba-2567-4f3a-9918-671dfd2a374a + Background color + backgroundColor + b3f77e71-396d-4f49-b264-b1eacd63cbca + Umbraco.ColorPicker + false + + + 0 + Styling + Nothing + + + false + + + ff229870-38b3-4cc1-8b46-cdd7948232c9 + Contrast + contrast + d320454a-b023-4e83-9557-60bdb9fbc048 + Umbraco.ColorPicker + false + + + 1 + Styling + Nothing + + + false + + + + + b07cc85d-536c-4469-b9a5-5ce69d5b060a + Styling + styling + Group + 0 + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/ContentTypes/twocolumnsectionblock.config b/src/Umbraco.Cms.12.x/uSync/v9/ContentTypes/twocolumnsectionblock.config new file mode 100644 index 0000000..c52659c --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/ContentTypes/twocolumnsectionblock.config @@ -0,0 +1,25 @@ + + + + Two Column Section + icon-book-alt color-black + folder.png + + False + False + Nothing + true + + False + + + + Blocks/Layouts + + + + + + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/ApprovedColor.config b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/ApprovedColor.config new file mode 100644 index 0000000..821eec1 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/ApprovedColor.config @@ -0,0 +1,12 @@ + + + + Approved Color + Umbraco.ColorPicker + Nvarchar + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/BackgroundColors.config b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/BackgroundColors.config new file mode 100644 index 0000000..28f8538 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/BackgroundColors.config @@ -0,0 +1,46 @@ + + + + Background colors + Umbraco.ColorPicker + Nvarchar + Block+Grid + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/BlockGridContent.config b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/BlockGridContent.config new file mode 100644 index 0000000..b005613 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/BlockGridContent.config @@ -0,0 +1,329 @@ + + + + Block Grid - Content + Umbraco.BlockGrid + Ntext + Block+Grid + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/CTAURLPicker.config b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/CTAURLPicker.config new file mode 100644 index 0000000..5e26e63 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/CTAURLPicker.config @@ -0,0 +1,16 @@ + + + + CTA URL Picker + Umbraco.MultiUrlPicker + Ntext + Block+Grid + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/CheckboxList.config b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/CheckboxList.config new file mode 100644 index 0000000..354bf20 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/CheckboxList.config @@ -0,0 +1,11 @@ + + + + Checkbox list + Umbraco.CheckBoxList + Nvarchar + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/ContentPicker.config b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/ContentPicker.config new file mode 100644 index 0000000..50c6f64 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/ContentPicker.config @@ -0,0 +1,13 @@ + + + + Content Picker + Umbraco.ContentPicker + Nvarchar + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/ContrastColors.config b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/ContrastColors.config new file mode 100644 index 0000000..fd573db --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/ContrastColors.config @@ -0,0 +1,22 @@ + + + + Contrast Colors + Umbraco.ColorPicker + Nvarchar + Block+Grid + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/DatePicker.config b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/DatePicker.config new file mode 100644 index 0000000..3f9c5c2 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/DatePicker.config @@ -0,0 +1,12 @@ + + + + Date Picker + Umbraco.DateTime + Date + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/DatePickerWithTime.config b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/DatePickerWithTime.config new file mode 100644 index 0000000..2c289d1 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/DatePickerWithTime.config @@ -0,0 +1,12 @@ + + + + Date Picker with time + Umbraco.DateTime + Date + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/Dropdown.config b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/Dropdown.config new file mode 100644 index 0000000..673eb7a --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/Dropdown.config @@ -0,0 +1,12 @@ + + + + Dropdown + Umbraco.DropDown.Flexible + Nvarchar + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/DropdownMultiple.config b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/DropdownMultiple.config new file mode 100644 index 0000000..e8a7998 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/DropdownMultiple.config @@ -0,0 +1,12 @@ + + + + Dropdown multiple + Umbraco.DropDown.Flexible + Nvarchar + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/ImageCropper.config b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/ImageCropper.config new file mode 100644 index 0000000..ccd9162 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/ImageCropper.config @@ -0,0 +1,11 @@ + + + + Image Cropper + Umbraco.ImageCropper + Ntext + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/ImageMediaPicker.config b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/ImageMediaPicker.config new file mode 100644 index 0000000..e0b3db7 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/ImageMediaPicker.config @@ -0,0 +1,20 @@ + + + + Image Media Picker + Umbraco.MediaPicker3 + Ntext + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/LabelBigint.config b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/LabelBigint.config new file mode 100644 index 0000000..909f50d --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/LabelBigint.config @@ -0,0 +1,11 @@ + + + + Label (bigint) + Umbraco.Label + Nvarchar + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/LabelDatetime.config b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/LabelDatetime.config new file mode 100644 index 0000000..7163ac9 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/LabelDatetime.config @@ -0,0 +1,11 @@ + + + + Label (datetime) + Umbraco.Label + Date + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/LabelDecimal.config b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/LabelDecimal.config new file mode 100644 index 0000000..045b4f5 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/LabelDecimal.config @@ -0,0 +1,11 @@ + + + + Label (decimal) + Umbraco.Label + Decimal + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/LabelInteger.config b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/LabelInteger.config new file mode 100644 index 0000000..19ea1dc --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/LabelInteger.config @@ -0,0 +1,11 @@ + + + + Label (integer) + Umbraco.Label + Integer + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/LabelString.config b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/LabelString.config new file mode 100644 index 0000000..af5067c --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/LabelString.config @@ -0,0 +1,11 @@ + + + + Label (string) + Umbraco.Label + Nvarchar + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/LabelTime.config b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/LabelTime.config new file mode 100644 index 0000000..df2170a --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/LabelTime.config @@ -0,0 +1,11 @@ + + + + Label (time) + Umbraco.Label + Date + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/ListViewContent.config b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/ListViewContent.config new file mode 100644 index 0000000..821f787 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/ListViewContent.config @@ -0,0 +1,54 @@ + + + + List View - Content + Umbraco.ListView + Nvarchar + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/ListViewMedia.config b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/ListViewMedia.config new file mode 100644 index 0000000..4fcba13 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/ListViewMedia.config @@ -0,0 +1,54 @@ + + + + List View - Media + Umbraco.ListView + Nvarchar + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/ListViewMembers.config b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/ListViewMembers.config new file mode 100644 index 0000000..f23eb03 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/ListViewMembers.config @@ -0,0 +1,60 @@ + + + + List View - Members + Umbraco.ListView + Nvarchar + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/MediaPicker.config b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/MediaPicker.config new file mode 100644 index 0000000..721575a --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/MediaPicker.config @@ -0,0 +1,20 @@ + + + + Media Picker + Umbraco.MediaPicker3 + Ntext + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/MediaPickerLegacy.config b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/MediaPickerLegacy.config new file mode 100644 index 0000000..d97a303 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/MediaPickerLegacy.config @@ -0,0 +1,15 @@ + + + + Media Picker (legacy) + Umbraco.MediaPicker + Ntext + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/MemberPicker.config b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/MemberPicker.config new file mode 100644 index 0000000..260c185 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/MemberPicker.config @@ -0,0 +1,9 @@ + + + + Member Picker + Umbraco.MemberPicker + Nvarchar + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/MultiURLPicker.config b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/MultiURLPicker.config new file mode 100644 index 0000000..e00831f --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/MultiURLPicker.config @@ -0,0 +1,15 @@ + + + + Multi URL Picker + Umbraco.MultiUrlPicker + Ntext + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/MultipleImageMediaPicker.config b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/MultipleImageMediaPicker.config new file mode 100644 index 0000000..407c8af --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/MultipleImageMediaPicker.config @@ -0,0 +1,20 @@ + + + + Multiple Image Media Picker + Umbraco.MediaPicker3 + Ntext + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/MultipleMediaPicker.config b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/MultipleMediaPicker.config new file mode 100644 index 0000000..2a066f0 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/MultipleMediaPicker.config @@ -0,0 +1,20 @@ + + + + Multiple Media Picker + Umbraco.MediaPicker3 + Ntext + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/MultipleMediaPickerLegacy.config b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/MultipleMediaPickerLegacy.config new file mode 100644 index 0000000..5b3573e --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/MultipleMediaPickerLegacy.config @@ -0,0 +1,15 @@ + + + + Multiple Media Picker (legacy) + Umbraco.MediaPicker + Ntext + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/Numeric.config b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/Numeric.config new file mode 100644 index 0000000..cd6d29b --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/Numeric.config @@ -0,0 +1,9 @@ + + + + Numeric + Umbraco.Integer + Integer + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/Radiobox.config b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/Radiobox.config new file mode 100644 index 0000000..a166cb7 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/Radiobox.config @@ -0,0 +1,11 @@ + + + + Radiobox + Umbraco.RadioButtonList + Nvarchar + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/RichTextBlockGrid.config b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/RichTextBlockGrid.config new file mode 100644 index 0000000..dcbe104 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/RichTextBlockGrid.config @@ -0,0 +1,38 @@ + + + + Rich Text Block Grid + Umbraco.TinyMCE + Ntext + Block+Grid + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/RichtextEditor.config b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/RichtextEditor.config new file mode 100644 index 0000000..e411e7b --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/RichtextEditor.config @@ -0,0 +1,15 @@ + + + + Richtext editor + Umbraco.TinyMCE + Ntext + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/Tags.config b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/Tags.config new file mode 100644 index 0000000..ee5eb68 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/Tags.config @@ -0,0 +1,13 @@ + + + + Tags + Umbraco.Tags + Ntext + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/Textarea.config b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/Textarea.config new file mode 100644 index 0000000..a495b9e --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/Textarea.config @@ -0,0 +1,12 @@ + + + + Textarea + Umbraco.TextArea + Ntext + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/Textstring.config b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/Textstring.config new file mode 100644 index 0000000..dc90bf0 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/Textstring.config @@ -0,0 +1,11 @@ + + + + Textstring + Umbraco.TextBox + Nvarchar + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/Truefalse.config b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/Truefalse.config new file mode 100644 index 0000000..a08bf8f --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/Truefalse.config @@ -0,0 +1,14 @@ + + + + True/false + Umbraco.TrueFalse + Integer + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/UploadArticle.config b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/UploadArticle.config new file mode 100644 index 0000000..1d76dc8 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/UploadArticle.config @@ -0,0 +1,24 @@ + + + + Upload Article + Umbraco.UploadField + Nvarchar + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/UploadAudio.config b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/UploadAudio.config new file mode 100644 index 0000000..66b66ca --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/UploadAudio.config @@ -0,0 +1,28 @@ + + + + Upload Audio + Umbraco.UploadField + Nvarchar + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/UploadFile.config b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/UploadFile.config new file mode 100644 index 0000000..bdd8d01 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/UploadFile.config @@ -0,0 +1,11 @@ + + + + Upload File + Umbraco.UploadField + Nvarchar + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/UploadVectorGraphics.config b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/UploadVectorGraphics.config new file mode 100644 index 0000000..6088f33 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/UploadVectorGraphics.config @@ -0,0 +1,16 @@ + + + + Upload Vector Graphics + Umbraco.UploadField + Nvarchar + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/UploadVideo.config b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/UploadVideo.config new file mode 100644 index 0000000..fb8f018 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/DataTypes/UploadVideo.config @@ -0,0 +1,24 @@ + + + + Upload Video + Umbraco.UploadField + Nvarchar + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/Languages/en-us.config b/src/Umbraco.Cms.12.x/uSync/v9/Languages/en-us.config new file mode 100644 index 0000000..c2fe77b --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/Languages/en-us.config @@ -0,0 +1,6 @@ + + + en-US + false + true + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/Media/bosco-shots-slr66yjpsoi-unsplash.config b/src/Umbraco.Cms.12.x/uSync/v9/Media/bosco-shots-slr66yjpsoi-unsplash.config new file mode 100644 index 0000000..1c40599 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/Media/bosco-shots-slr66yjpsoi-unsplash.config @@ -0,0 +1,17 @@ + + + + Buildings + /Buildings/BoscoShotsSlr66yjpsoiUnsplash + false + Image + 2023-06-27T19:04:56 + + 11 + + + + + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/Media/buildings.config b/src/Umbraco.Cms.12.x/uSync/v9/Media/buildings.config new file mode 100644 index 0000000..004814b --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/Media/buildings.config @@ -0,0 +1,13 @@ + + + + + /Buildings + false + Folder + 2023-06-27T19:04:56 + + 0 + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/Media/casey-horner-wkjiek4qsnk-unsplash.config b/src/Umbraco.Cms.12.x/uSync/v9/Media/casey-horner-wkjiek4qsnk-unsplash.config new file mode 100644 index 0000000..bb38f97 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/Media/casey-horner-wkjiek4qsnk-unsplash.config @@ -0,0 +1,17 @@ + + + + Nature + /Nature/CaseyHornerWkjiek4qsnkUnsplash + false + Image + 2023-06-27T19:04:56 + + 6 + + + + + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/Media/collin-clyne-eg8-h52znw0-unsplash.config b/src/Umbraco.Cms.12.x/uSync/v9/Media/collin-clyne-eg8-h52znw0-unsplash.config new file mode 100644 index 0000000..da64a77 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/Media/collin-clyne-eg8-h52znw0-unsplash.config @@ -0,0 +1,17 @@ + + + + Nature + /Nature/CollinClyneEg8H52znw0Unsplash + false + Image + 2023-06-27T19:04:56 + + 4 + + + + + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/Media/collin-clyne-zsuely56fzu-unsplash.config b/src/Umbraco.Cms.12.x/uSync/v9/Media/collin-clyne-zsuely56fzu-unsplash.config new file mode 100644 index 0000000..93034d1 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/Media/collin-clyne-zsuely56fzu-unsplash.config @@ -0,0 +1,17 @@ + + + + Nature + /Nature/CollinClyneZsuely56fzuUnsplash + false + Image + 2023-06-27T19:04:56 + + 5 + + + + + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/Media/ed-259-xcri6cpkkjs-unsplash.config b/src/Umbraco.Cms.12.x/uSync/v9/Media/ed-259-xcri6cpkkjs-unsplash.config new file mode 100644 index 0000000..ea5b75d --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/Media/ed-259-xcri6cpkkjs-unsplash.config @@ -0,0 +1,17 @@ + + + + Nature + /Nature/Ed259Xcri6cpkkjsUnsplash + false + Image + 2023-06-27T19:04:56 + + 7 + + + + + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/Media/geran-de-klerk-qzgn45hsen0-unsplash.config b/src/Umbraco.Cms.12.x/uSync/v9/Media/geran-de-klerk-qzgn45hsen0-unsplash.config new file mode 100644 index 0000000..2f41cb8 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/Media/geran-de-klerk-qzgn45hsen0-unsplash.config @@ -0,0 +1,17 @@ + + + + Nature + /Nature/GeranDeKlerkQzgn45hsen0Unsplash + false + Image + 2023-06-27T19:04:56 + + 3 + + + + + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/Media/geran-de-klerk-wjkc3xzjsxw-unsplash.config b/src/Umbraco.Cms.12.x/uSync/v9/Media/geran-de-klerk-wjkc3xzjsxw-unsplash.config new file mode 100644 index 0000000..7d87838 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/Media/geran-de-klerk-wjkc3xzjsxw-unsplash.config @@ -0,0 +1,17 @@ + + + + Nature + /Nature/GeranDeKlerkWjkc3xzjsxwUnsplash + false + Image + 2023-06-27T19:04:56 + + 2 + + + + + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/Media/grant-ritchie-fbkrqhnlqoy-unsplash.config b/src/Umbraco.Cms.12.x/uSync/v9/Media/grant-ritchie-fbkrqhnlqoy-unsplash.config new file mode 100644 index 0000000..fa495c6 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/Media/grant-ritchie-fbkrqhnlqoy-unsplash.config @@ -0,0 +1,17 @@ + + + + Buildings + /Buildings/GrantRitchieFbkrqhnlqoyUnsplash + false + Image + 2023-06-27T19:04:56 + + 9 + + + + + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/Media/hernan-lucio-gjfvhkuhdsi-unsplash.config b/src/Umbraco.Cms.12.x/uSync/v9/Media/hernan-lucio-gjfvhkuhdsi-unsplash.config new file mode 100644 index 0000000..6894974 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/Media/hernan-lucio-gjfvhkuhdsi-unsplash.config @@ -0,0 +1,17 @@ + + + + Buildings + /Buildings/HernanLucioGjfvhkuhdsiUnsplash + false + Image + 2023-06-27T19:04:56 + + 8 + + + + + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/Media/hossein-nasr-2nuu-j3zgke-unsplash.config b/src/Umbraco.Cms.12.x/uSync/v9/Media/hossein-nasr-2nuu-j3zgke-unsplash.config new file mode 100644 index 0000000..4b305b0 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/Media/hossein-nasr-2nuu-j3zgke-unsplash.config @@ -0,0 +1,17 @@ + + + + Buildings + /Buildings/HosseinNasr2NuuJ3zgkeUnsplash + false + Image + 2023-06-27T19:04:56 + + 7 + + + + + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/Media/hossein-nasr-uj99hdy2mmw-unsplash.config b/src/Umbraco.Cms.12.x/uSync/v9/Media/hossein-nasr-uj99hdy2mmw-unsplash.config new file mode 100644 index 0000000..29b2747 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/Media/hossein-nasr-uj99hdy2mmw-unsplash.config @@ -0,0 +1,17 @@ + + + + Buildings + /Buildings/HosseinNasrUj99hdy2mmwUnsplash + false + Image + 2023-06-27T19:04:56 + + 6 + + + + + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/Media/hossein-nasr-vmst7pnoto-unsplash.config b/src/Umbraco.Cms.12.x/uSync/v9/Media/hossein-nasr-vmst7pnoto-unsplash.config new file mode 100644 index 0000000..d32f25e --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/Media/hossein-nasr-vmst7pnoto-unsplash.config @@ -0,0 +1,17 @@ + + + + Buildings + /Buildings/HosseinNasrVmst7pnotoUnsplash + false + Image + 2023-06-27T19:04:56 + + 10 + + + + + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/Media/hossein-nasr-vwzdwriw3xu-unsplash.config b/src/Umbraco.Cms.12.x/uSync/v9/Media/hossein-nasr-vwzdwriw3xu-unsplash.config new file mode 100644 index 0000000..daad3f4 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/Media/hossein-nasr-vwzdwriw3xu-unsplash.config @@ -0,0 +1,17 @@ + + + + Buildings + /Buildings/HosseinNasrVwzdwriw3xuUnsplash + false + Image + 2023-06-27T19:04:56 + + 1 + + + + + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/Media/hossein-nasr-wr56ynk67uc-unsplash.config b/src/Umbraco.Cms.12.x/uSync/v9/Media/hossein-nasr-wr56ynk67uc-unsplash.config new file mode 100644 index 0000000..a2f919c --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/Media/hossein-nasr-wr56ynk67uc-unsplash.config @@ -0,0 +1,17 @@ + + + + Buildings + /Buildings/HosseinNasrWr56ynk67ucUnsplash + false + Image + 2023-06-27T19:04:56 + + 3 + + + + + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/Media/jay-mantri-qkfxq3x-ybi-unsplash.config b/src/Umbraco.Cms.12.x/uSync/v9/Media/jay-mantri-qkfxq3x-ybi-unsplash.config new file mode 100644 index 0000000..41996b7 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/Media/jay-mantri-qkfxq3x-ybi-unsplash.config @@ -0,0 +1,17 @@ + + + + Nature + /Nature/JayMantriQkfxq3xYbiUnsplash + false + Image + 2023-06-27T19:04:56 + + 8 + + + + + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/Media/jay-mantri-tfyi0qox08c-unsplash.config b/src/Umbraco.Cms.12.x/uSync/v9/Media/jay-mantri-tfyi0qox08c-unsplash.config new file mode 100644 index 0000000..23820e1 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/Media/jay-mantri-tfyi0qox08c-unsplash.config @@ -0,0 +1,17 @@ + + + + Nature + /Nature/JayMantriTfyi0qox08cUnsplash + false + Image + 2023-06-27T19:04:56 + + 1 + + + + + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/Media/meiying-ng-orwkd-iwgqg-unsplash.config b/src/Umbraco.Cms.12.x/uSync/v9/Media/meiying-ng-orwkd-iwgqg-unsplash.config new file mode 100644 index 0000000..63ae1fc --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/Media/meiying-ng-orwkd-iwgqg-unsplash.config @@ -0,0 +1,17 @@ + + + + Buildings + /Buildings/MeiyingNgOrwkdIwgqgUnsplash + false + Image + 2023-06-27T19:04:56 + + 4 + + + + + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/Media/merve-sehirli-nasir-r-slzigonz4-unsplash.config b/src/Umbraco.Cms.12.x/uSync/v9/Media/merve-sehirli-nasir-r-slzigonz4-unsplash.config new file mode 100644 index 0000000..9afef84 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/Media/merve-sehirli-nasir-r-slzigonz4-unsplash.config @@ -0,0 +1,17 @@ + + + + Buildings + /Buildings/MerveSehirliNasirRSlzigonz4Unsplash + false + Image + 2023-06-27T19:04:56 + + 0 + + + + + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/Media/nature.config b/src/Umbraco.Cms.12.x/uSync/v9/Media/nature.config new file mode 100644 index 0000000..ef299a4 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/Media/nature.config @@ -0,0 +1,13 @@ + + + + + /Nature + false + Folder + 2023-06-27T19:04:56 + + 1 + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/Media/scott-webb-k-qkkbn7ds-unsplash.config b/src/Umbraco.Cms.12.x/uSync/v9/Media/scott-webb-k-qkkbn7ds-unsplash.config new file mode 100644 index 0000000..6bb4db5 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/Media/scott-webb-k-qkkbn7ds-unsplash.config @@ -0,0 +1,17 @@ + + + + Buildings + /Buildings/ScottWebbKQkkbn7dsUnsplash + false + Image + 2023-06-27T19:04:56 + + 5 + + + + + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/Media/simone-hutsch-l8fyk9rs-ou-unsplash.config b/src/Umbraco.Cms.12.x/uSync/v9/Media/simone-hutsch-l8fyk9rs-ou-unsplash.config new file mode 100644 index 0000000..6177f26 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/Media/simone-hutsch-l8fyk9rs-ou-unsplash.config @@ -0,0 +1,17 @@ + + + + Buildings + /Buildings/SimoneHutschL8fyk9rsOUUnsplash + false + Image + 2023-06-27T19:04:56 + + 2 + + + + + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/Media/thomas-griesbeck-bs-uxe8wu5y-unsplash.config b/src/Umbraco.Cms.12.x/uSync/v9/Media/thomas-griesbeck-bs-uxe8wu5y-unsplash.config new file mode 100644 index 0000000..8a02c5b --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/Media/thomas-griesbeck-bs-uxe8wu5y-unsplash.config @@ -0,0 +1,17 @@ + + + + Nature + /Nature/ThomasGriesbeckBSUxe8wu5yUnsplash + false + Image + 2023-06-27T19:04:56 + + 9 + + + + + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/Media/tiago-alexandre-lopes-5vdftgpwv2g-unsplash.config b/src/Umbraco.Cms.12.x/uSync/v9/Media/tiago-alexandre-lopes-5vdftgpwv2g-unsplash.config new file mode 100644 index 0000000..b8ec705 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/Media/tiago-alexandre-lopes-5vdftgpwv2g-unsplash.config @@ -0,0 +1,17 @@ + + + + Nature + /Nature/TiagoAlexandreLopes5Vdftgpwv2gUnsplash + false + Image + 2023-06-27T19:04:56 + + 10 + + + + + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/Media/yoal-desurmont-jqgsm3b9fpo-unsplash.config b/src/Umbraco.Cms.12.x/uSync/v9/Media/yoal-desurmont-jqgsm3b9fpo-unsplash.config new file mode 100644 index 0000000..d83348a --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/Media/yoal-desurmont-jqgsm3b9fpo-unsplash.config @@ -0,0 +1,17 @@ + + + + Nature + /Nature/YoalDesurmontJqgsm3b9fpoUnsplash + false + Image + 2023-06-27T19:04:56 + + 0 + + + + + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/MediaTypes/file.config b/src/Umbraco.Cms.12.x/uSync/v9/MediaTypes/file.config new file mode 100644 index 0000000..425dce3 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/MediaTypes/file.config @@ -0,0 +1,71 @@ + + + + File + icon-document + icon-document + + True + False + Nothing + false + + + + + 0000001a-0000-0000-0000-000000000000 + Size + umbracoBytes + 930861bf-e262-4ead-a704-f99453565708 + Umbraco.Label + false + + + 2 + File + + + false + + + 00000019-0000-0000-0000-000000000000 + Type + umbracoExtension + f0bc4bfb-b499-40d6-ba86-058885a5178c + Umbraco.Label + false + + + 1 + File + + + false + + + 00000018-0000-0000-0000-000000000000 + File + umbracoFile + 84c6b441-31df-4ffe-b67e-67d5bc3ae65a + Umbraco.UploadField + true + + + 0 + File + + + false + + + + + + 50899f9c-023a-4466-b623-aba9049885fe + File + file + Group + 1 + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/MediaTypes/folder.config b/src/Umbraco.Cms.12.x/uSync/v9/MediaTypes/folder.config new file mode 100644 index 0000000..8565321 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/MediaTypes/folder.config @@ -0,0 +1,25 @@ + + + + Folder + icon-folder + icon-folder + + True + False + Nothing + false + + + + + Folder + Image + File + umbracoMediaVideo + umbracoMediaAudio + umbracoMediaArticle + umbracoMediaVectorGraphics + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/MediaTypes/image.config b/src/Umbraco.Cms.12.x/uSync/v9/MediaTypes/image.config new file mode 100644 index 0000000..c1dd686 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/MediaTypes/image.config @@ -0,0 +1,101 @@ + + + + Image + icon-picture + icon-picture + + True + False + Nothing + false + + + + + 00000009-0000-0000-0000-000000000000 + Size + umbracoBytes + 930861bf-e262-4ead-a704-f99453565708 + Umbraco.Label + false + + + 3 + Image + + + false + + + 0000000a-0000-0000-0000-000000000000 + Type + umbracoExtension + f0bc4bfb-b499-40d6-ba86-058885a5178c + Umbraco.Label + false + + + 4 + Image + + + false + + + 00000006-0000-0000-0000-000000000000 + Image + umbracoFile + 1df9f033-e6d4-451f-b8d2-e0cbc50a836f + Umbraco.ImageCropper + true + + + 0 + Image + + + false + + + 00000008-0000-0000-0000-000000000000 + Height + umbracoHeight + 8e7f995c-bd81-4627-9932-c40e568ec788 + Umbraco.Label + false + + + 2 + Image + + + false + + + 00000007-0000-0000-0000-000000000000 + Width + umbracoWidth + 8e7f995c-bd81-4627-9932-c40e568ec788 + Umbraco.Label + false + + + 1 + Image + + + false + + + + + + 79ed4d07-254a-42cf-8fa9-ebe1c116a596 + Image + image + Group + 1 + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/MediaTypes/umbracomediaarticle.config b/src/Umbraco.Cms.12.x/uSync/v9/MediaTypes/umbracomediaarticle.config new file mode 100644 index 0000000..11f2f7a --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/MediaTypes/umbracomediaarticle.config @@ -0,0 +1,71 @@ + + + + Article + icon-article + icon-article + + True + False + Nothing + false + + + + + 00000030-0000-0000-0000-000000000000 + Size + umbracoBytes + 930861bf-e262-4ead-a704-f99453565708 + Umbraco.Label + false + + + 2 + Article + + + false + + + 0000002f-0000-0000-0000-000000000000 + Type + umbracoExtension + f0bc4bfb-b499-40d6-ba86-058885a5178c + Umbraco.Label + false + + + 1 + Article + + + false + + + 0000002e-0000-0000-0000-000000000000 + Article + umbracoFile + bc1e266c-dac4-4164-bf08-8a1ec6a7143d + Umbraco.UploadField + true + + + 0 + Article + + + false + + + + + + 9af3bd65-f687-4453-9518-5f180d1898ec + Article + article + Group + 1 + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/MediaTypes/umbracomediaaudio.config b/src/Umbraco.Cms.12.x/uSync/v9/MediaTypes/umbracomediaaudio.config new file mode 100644 index 0000000..3b241c3 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/MediaTypes/umbracomediaaudio.config @@ -0,0 +1,71 @@ + + + + Audio + icon-sound-waves + icon-sound-waves + + True + False + Nothing + false + + + + + 0000002d-0000-0000-0000-000000000000 + Size + umbracoBytes + 930861bf-e262-4ead-a704-f99453565708 + Umbraco.Label + false + + + 2 + Audio + + + false + + + 0000002c-0000-0000-0000-000000000000 + Type + umbracoExtension + f0bc4bfb-b499-40d6-ba86-058885a5178c + Umbraco.Label + false + + + 1 + Audio + + + false + + + 0000002b-0000-0000-0000-000000000000 + Audio + umbracoFile + 8f430dd6-4e96-447e-9dc0-cb552c8cd1f3 + Umbraco.UploadField + true + + + 0 + Audio + + + false + + + + + + 335fb495-0a87-4e82-b902-30eb367b767c + Audio + audio + Group + 1 + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/MediaTypes/umbracomediavectorgraphics.config b/src/Umbraco.Cms.12.x/uSync/v9/MediaTypes/umbracomediavectorgraphics.config new file mode 100644 index 0000000..3ebd344 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/MediaTypes/umbracomediavectorgraphics.config @@ -0,0 +1,71 @@ + + + + Vector Graphics (SVG) + icon-picture + icon-picture + + True + False + Nothing + false + + + + + 00000033-0000-0000-0000-000000000000 + Size + umbracoBytes + 930861bf-e262-4ead-a704-f99453565708 + Umbraco.Label + false + + + 2 + Vector Graphics + + + false + + + 00000032-0000-0000-0000-000000000000 + Type + umbracoExtension + f0bc4bfb-b499-40d6-ba86-058885a5178c + Umbraco.Label + false + + + 1 + Vector Graphics + + + false + + + 00000031-0000-0000-0000-000000000000 + Vector Graphics + umbracoFile + 215cb418-2153-4429-9aef-8c0f0041191b + Umbraco.UploadField + true + + + 0 + Vector Graphics + + + false + + + + + + f199b4d7-9e84-439f-8531-f87d9af37711 + Vector Graphics + vectorGraphics + Group + 1 + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/MediaTypes/umbracomediavideo.config b/src/Umbraco.Cms.12.x/uSync/v9/MediaTypes/umbracomediavideo.config new file mode 100644 index 0000000..0dd0ffc --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/MediaTypes/umbracomediavideo.config @@ -0,0 +1,71 @@ + + + + Video + icon-video + icon-video + + True + False + Nothing + false + + + + + 0000002a-0000-0000-0000-000000000000 + Size + umbracoBytes + 930861bf-e262-4ead-a704-f99453565708 + Umbraco.Label + false + + + 2 + Video + + + false + + + 00000029-0000-0000-0000-000000000000 + Type + umbracoExtension + f0bc4bfb-b499-40d6-ba86-058885a5178c + Umbraco.Label + false + + + 1 + Video + + + false + + + 00000028-0000-0000-0000-000000000000 + Video + umbracoFile + 70575fe7-9812-4396-bbe1-c81a76db71b5 + Umbraco.UploadField + true + + + 0 + Video + + + false + + + + + + 2f0a61b6-cf92-4ff4-b437-751ab35eb254 + Video + video + Group + 1 + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/MemberTypes/member.config b/src/Umbraco.Cms.12.x/uSync/v9/MemberTypes/member.config new file mode 100644 index 0000000..bb1c2dc --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/MemberTypes/member.config @@ -0,0 +1,44 @@ + + + + Member + icon-user + icon-user + + False + False + Nothing + false + + + + + 2a280588-0000-0000-0000-000000000000 + Comments + umbracoMemberComments + c6bac0dd-4ab9-45b1-8e30-e4b619ee5da3 + Umbraco.TextArea + false + + + 0 + Membership + false + false + false + + + false + + + + + + 0756729d-d665-46e3-b84a-37aceaa614f8 + Membership + membership + Group + 1 + + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/Templates/blockgrid.config b/src/Umbraco.Cms.12.x/uSync/v9/Templates/blockgrid.config new file mode 100644 index 0000000..0833e9e --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/Templates/blockgrid.config @@ -0,0 +1,5 @@ + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/Templates/layout.config b/src/Umbraco.Cms.12.x/uSync/v9/Templates/layout.config new file mode 100644 index 0000000..4780ccd --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/Templates/layout.config @@ -0,0 +1,5 @@ + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/uSync/v9/usync.config b/src/Umbraco.Cms.12.x/uSync/v9/usync.config new file mode 100644 index 0000000..05df709 --- /dev/null +++ b/src/Umbraco.Cms.12.x/uSync/v9/usync.config @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/umbraco/models/BlockGrid.generated.cs b/src/Umbraco.Cms.12.x/umbraco/models/BlockGrid.generated.cs new file mode 100644 index 0000000..1bba133 --- /dev/null +++ b/src/Umbraco.Cms.12.x/umbraco/models/BlockGrid.generated.cs @@ -0,0 +1,60 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Umbraco.ModelsBuilder.Embedded v12.0.0+ba724ed +// +// Changes to this file will be lost if the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Linq.Expressions; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Infrastructure.ModelsBuilder; +using Umbraco.Cms.Core; +using Umbraco.Extensions; + +namespace Umbraco.Cms.Web.Common.PublishedModels +{ + /// Block Grid + [PublishedModel("blockGrid")] + public partial class BlockGrid : PublishedContentModel + { + // helpers +#pragma warning disable 0109 // new is redundant + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + public new const string ModelTypeAlias = "blockGrid"; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + public new const PublishedItemType ModelItemType = PublishedItemType.Content; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public new static IPublishedContentType GetModelContentType(IPublishedSnapshotAccessor publishedSnapshotAccessor) + => PublishedModelUtility.GetModelContentType(publishedSnapshotAccessor, ModelItemType, ModelTypeAlias); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public static IPublishedPropertyType GetModelPropertyType(IPublishedSnapshotAccessor publishedSnapshotAccessor, Expression> selector) + => PublishedModelUtility.GetModelPropertyType(GetModelContentType(publishedSnapshotAccessor), selector); +#pragma warning restore 0109 + + private IPublishedValueFallback _publishedValueFallback; + + // ctor + public BlockGrid(IPublishedContent content, IPublishedValueFallback publishedValueFallback) + : base(content, publishedValueFallback) + { + _publishedValueFallback = publishedValueFallback; + } + + // properties + + /// + /// Content + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [global::System.Diagnostics.CodeAnalysis.MaybeNull] + [ImplementPropertyType("content")] + public virtual global::Umbraco.Cms.Core.Models.Blocks.BlockGridModel Content => this.Value(_publishedValueFallback, "content"); + } +} diff --git a/src/Umbraco.Cms.12.x/umbraco/models/CallToActionBlock.generated.cs b/src/Umbraco.Cms.12.x/umbraco/models/CallToActionBlock.generated.cs new file mode 100644 index 0000000..7b60410 --- /dev/null +++ b/src/Umbraco.Cms.12.x/umbraco/models/CallToActionBlock.generated.cs @@ -0,0 +1,60 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Umbraco.ModelsBuilder.Embedded v12.0.0+ba724ed +// +// Changes to this file will be lost if the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Linq.Expressions; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Infrastructure.ModelsBuilder; +using Umbraco.Cms.Core; +using Umbraco.Extensions; + +namespace Umbraco.Cms.Web.Common.PublishedModels +{ + /// Call to Action + [PublishedModel("callToActionBlock")] + public partial class CallToActionBlock : PublishedElementModel + { + // helpers +#pragma warning disable 0109 // new is redundant + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + public new const string ModelTypeAlias = "callToActionBlock"; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + public new const PublishedItemType ModelItemType = PublishedItemType.Content; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public new static IPublishedContentType GetModelContentType(IPublishedSnapshotAccessor publishedSnapshotAccessor) + => PublishedModelUtility.GetModelContentType(publishedSnapshotAccessor, ModelItemType, ModelTypeAlias); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public static IPublishedPropertyType GetModelPropertyType(IPublishedSnapshotAccessor publishedSnapshotAccessor, Expression> selector) + => PublishedModelUtility.GetModelPropertyType(GetModelContentType(publishedSnapshotAccessor), selector); +#pragma warning restore 0109 + + private IPublishedValueFallback _publishedValueFallback; + + // ctor + public CallToActionBlock(IPublishedElement content, IPublishedValueFallback publishedValueFallback) + : base(content, publishedValueFallback) + { + _publishedValueFallback = publishedValueFallback; + } + + // properties + + /// + /// Link + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [global::System.Diagnostics.CodeAnalysis.MaybeNull] + [ImplementPropertyType("link")] + public virtual global::Umbraco.Cms.Core.Models.Link Link => this.Value(_publishedValueFallback, "link"); + } +} diff --git a/src/Umbraco.Cms.12.x/umbraco/models/CardBlock.generated.cs b/src/Umbraco.Cms.12.x/umbraco/models/CardBlock.generated.cs new file mode 100644 index 0000000..cc7ce53 --- /dev/null +++ b/src/Umbraco.Cms.12.x/umbraco/models/CardBlock.generated.cs @@ -0,0 +1,76 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Umbraco.ModelsBuilder.Embedded v12.0.0+ba724ed +// +// Changes to this file will be lost if the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Linq.Expressions; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Infrastructure.ModelsBuilder; +using Umbraco.Cms.Core; +using Umbraco.Extensions; + +namespace Umbraco.Cms.Web.Common.PublishedModels +{ + /// Card + [PublishedModel("cardBlock")] + public partial class CardBlock : PublishedElementModel + { + // helpers +#pragma warning disable 0109 // new is redundant + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + public new const string ModelTypeAlias = "cardBlock"; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + public new const PublishedItemType ModelItemType = PublishedItemType.Content; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public new static IPublishedContentType GetModelContentType(IPublishedSnapshotAccessor publishedSnapshotAccessor) + => PublishedModelUtility.GetModelContentType(publishedSnapshotAccessor, ModelItemType, ModelTypeAlias); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public static IPublishedPropertyType GetModelPropertyType(IPublishedSnapshotAccessor publishedSnapshotAccessor, Expression> selector) + => PublishedModelUtility.GetModelPropertyType(GetModelContentType(publishedSnapshotAccessor), selector); +#pragma warning restore 0109 + + private IPublishedValueFallback _publishedValueFallback; + + // ctor + public CardBlock(IPublishedElement content, IPublishedValueFallback publishedValueFallback) + : base(content, publishedValueFallback) + { + _publishedValueFallback = publishedValueFallback; + } + + // properties + + /// + /// Headline + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [global::System.Diagnostics.CodeAnalysis.MaybeNull] + [ImplementPropertyType("headline")] + public virtual string Headline => this.Value(_publishedValueFallback, "headline"); + + /// + /// Image + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [global::System.Diagnostics.CodeAnalysis.MaybeNull] + [ImplementPropertyType("image")] + public virtual global::Umbraco.Cms.Core.Models.MediaWithCrops Image => this.Value(_publishedValueFallback, "image"); + + /// + /// Rich Text + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [global::System.Diagnostics.CodeAnalysis.MaybeNull] + [ImplementPropertyType("richText")] + public virtual global::Umbraco.Cms.Core.Strings.IHtmlEncodedString RichText => this.Value(_publishedValueFallback, "richText"); + } +} diff --git a/src/Umbraco.Cms.12.x/umbraco/models/File.generated.cs b/src/Umbraco.Cms.12.x/umbraco/models/File.generated.cs new file mode 100644 index 0000000..fdf00f0 --- /dev/null +++ b/src/Umbraco.Cms.12.x/umbraco/models/File.generated.cs @@ -0,0 +1,75 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Umbraco.ModelsBuilder.Embedded v12.0.0+ba724ed +// +// Changes to this file will be lost if the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Linq.Expressions; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Infrastructure.ModelsBuilder; +using Umbraco.Cms.Core; +using Umbraco.Extensions; + +namespace Umbraco.Cms.Web.Common.PublishedModels +{ + /// File + [PublishedModel("File")] + public partial class File : PublishedContentModel + { + // helpers +#pragma warning disable 0109 // new is redundant + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + public new const string ModelTypeAlias = "File"; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + public new const PublishedItemType ModelItemType = PublishedItemType.Media; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public new static IPublishedContentType GetModelContentType(IPublishedSnapshotAccessor publishedSnapshotAccessor) + => PublishedModelUtility.GetModelContentType(publishedSnapshotAccessor, ModelItemType, ModelTypeAlias); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public static IPublishedPropertyType GetModelPropertyType(IPublishedSnapshotAccessor publishedSnapshotAccessor, Expression> selector) + => PublishedModelUtility.GetModelPropertyType(GetModelContentType(publishedSnapshotAccessor), selector); +#pragma warning restore 0109 + + private IPublishedValueFallback _publishedValueFallback; + + // ctor + public File(IPublishedContent content, IPublishedValueFallback publishedValueFallback) + : base(content, publishedValueFallback) + { + _publishedValueFallback = publishedValueFallback; + } + + // properties + + /// + /// Size: in bytes + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [ImplementPropertyType("umbracoBytes")] + public virtual long UmbracoBytes => this.Value(_publishedValueFallback, "umbracoBytes"); + + /// + /// Type + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [global::System.Diagnostics.CodeAnalysis.MaybeNull] + [ImplementPropertyType("umbracoExtension")] + public virtual string UmbracoExtension => this.Value(_publishedValueFallback, "umbracoExtension"); + + /// + /// File + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [global::System.Diagnostics.CodeAnalysis.MaybeNull] + [ImplementPropertyType("umbracoFile")] + public virtual string UmbracoFile => this.Value(_publishedValueFallback, "umbracoFile"); + } +} diff --git a/src/Umbraco.Cms.12.x/umbraco/models/Folder.generated.cs b/src/Umbraco.Cms.12.x/umbraco/models/Folder.generated.cs new file mode 100644 index 0000000..c560091 --- /dev/null +++ b/src/Umbraco.Cms.12.x/umbraco/models/Folder.generated.cs @@ -0,0 +1,52 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Umbraco.ModelsBuilder.Embedded v12.0.0+ba724ed +// +// Changes to this file will be lost if the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Linq.Expressions; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Infrastructure.ModelsBuilder; +using Umbraco.Cms.Core; +using Umbraco.Extensions; + +namespace Umbraco.Cms.Web.Common.PublishedModels +{ + /// Folder + [PublishedModel("Folder")] + public partial class Folder : PublishedContentModel + { + // helpers +#pragma warning disable 0109 // new is redundant + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + public new const string ModelTypeAlias = "Folder"; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + public new const PublishedItemType ModelItemType = PublishedItemType.Media; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public new static IPublishedContentType GetModelContentType(IPublishedSnapshotAccessor publishedSnapshotAccessor) + => PublishedModelUtility.GetModelContentType(publishedSnapshotAccessor, ModelItemType, ModelTypeAlias); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public static IPublishedPropertyType GetModelPropertyType(IPublishedSnapshotAccessor publishedSnapshotAccessor, Expression> selector) + => PublishedModelUtility.GetModelPropertyType(GetModelContentType(publishedSnapshotAccessor), selector); +#pragma warning restore 0109 + + private IPublishedValueFallback _publishedValueFallback; + + // ctor + public Folder(IPublishedContent content, IPublishedValueFallback publishedValueFallback) + : base(content, publishedValueFallback) + { + _publishedValueFallback = publishedValueFallback; + } + + // properties + } +} diff --git a/src/Umbraco.Cms.12.x/umbraco/models/HeadlineBlock.generated.cs b/src/Umbraco.Cms.12.x/umbraco/models/HeadlineBlock.generated.cs new file mode 100644 index 0000000..ceea0b9 --- /dev/null +++ b/src/Umbraco.Cms.12.x/umbraco/models/HeadlineBlock.generated.cs @@ -0,0 +1,60 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Umbraco.ModelsBuilder.Embedded v12.0.0+ba724ed +// +// Changes to this file will be lost if the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Linq.Expressions; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Infrastructure.ModelsBuilder; +using Umbraco.Cms.Core; +using Umbraco.Extensions; + +namespace Umbraco.Cms.Web.Common.PublishedModels +{ + /// Headline + [PublishedModel("headlineBlock")] + public partial class HeadlineBlock : PublishedElementModel + { + // helpers +#pragma warning disable 0109 // new is redundant + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + public new const string ModelTypeAlias = "headlineBlock"; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + public new const PublishedItemType ModelItemType = PublishedItemType.Content; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public new static IPublishedContentType GetModelContentType(IPublishedSnapshotAccessor publishedSnapshotAccessor) + => PublishedModelUtility.GetModelContentType(publishedSnapshotAccessor, ModelItemType, ModelTypeAlias); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public static IPublishedPropertyType GetModelPropertyType(IPublishedSnapshotAccessor publishedSnapshotAccessor, Expression> selector) + => PublishedModelUtility.GetModelPropertyType(GetModelContentType(publishedSnapshotAccessor), selector); +#pragma warning restore 0109 + + private IPublishedValueFallback _publishedValueFallback; + + // ctor + public HeadlineBlock(IPublishedElement content, IPublishedValueFallback publishedValueFallback) + : base(content, publishedValueFallback) + { + _publishedValueFallback = publishedValueFallback; + } + + // properties + + /// + /// Headline + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [global::System.Diagnostics.CodeAnalysis.MaybeNull] + [ImplementPropertyType("headline")] + public virtual string Headline => this.Value(_publishedValueFallback, "headline"); + } +} diff --git a/src/Umbraco.Cms.12.x/umbraco/models/HeroBlock.generated.cs b/src/Umbraco.Cms.12.x/umbraco/models/HeroBlock.generated.cs new file mode 100644 index 0000000..f59c2ec --- /dev/null +++ b/src/Umbraco.Cms.12.x/umbraco/models/HeroBlock.generated.cs @@ -0,0 +1,84 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Umbraco.ModelsBuilder.Embedded v12.0.0+ba724ed +// +// Changes to this file will be lost if the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Linq.Expressions; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Infrastructure.ModelsBuilder; +using Umbraco.Cms.Core; +using Umbraco.Extensions; + +namespace Umbraco.Cms.Web.Common.PublishedModels +{ + /// Hero + [PublishedModel("heroBlock")] + public partial class HeroBlock : PublishedElementModel + { + // helpers +#pragma warning disable 0109 // new is redundant + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + public new const string ModelTypeAlias = "heroBlock"; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + public new const PublishedItemType ModelItemType = PublishedItemType.Content; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public new static IPublishedContentType GetModelContentType(IPublishedSnapshotAccessor publishedSnapshotAccessor) + => PublishedModelUtility.GetModelContentType(publishedSnapshotAccessor, ModelItemType, ModelTypeAlias); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public static IPublishedPropertyType GetModelPropertyType(IPublishedSnapshotAccessor publishedSnapshotAccessor, Expression> selector) + => PublishedModelUtility.GetModelPropertyType(GetModelContentType(publishedSnapshotAccessor), selector); +#pragma warning restore 0109 + + private IPublishedValueFallback _publishedValueFallback; + + // ctor + public HeroBlock(IPublishedElement content, IPublishedValueFallback publishedValueFallback) + : base(content, publishedValueFallback) + { + _publishedValueFallback = publishedValueFallback; + } + + // properties + + /// + /// Background Color + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [global::System.Diagnostics.CodeAnalysis.MaybeNull] + [ImplementPropertyType("backgroundColor")] + public virtual string BackgroundColor => this.Value(_publishedValueFallback, "backgroundColor"); + + /// + /// Contrast + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [global::System.Diagnostics.CodeAnalysis.MaybeNull] + [ImplementPropertyType("contrast")] + public virtual string Contrast => this.Value(_publishedValueFallback, "contrast"); + + /// + /// Headline + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [global::System.Diagnostics.CodeAnalysis.MaybeNull] + [ImplementPropertyType("headline")] + public virtual string Headline => this.Value(_publishedValueFallback, "headline"); + + /// + /// Image + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [global::System.Diagnostics.CodeAnalysis.MaybeNull] + [ImplementPropertyType("image")] + public virtual global::Umbraco.Cms.Core.Models.MediaWithCrops Image => this.Value(_publishedValueFallback, "image"); + } +} diff --git a/src/Umbraco.Cms.12.x/umbraco/models/Image.generated.cs b/src/Umbraco.Cms.12.x/umbraco/models/Image.generated.cs new file mode 100644 index 0000000..94081a5 --- /dev/null +++ b/src/Umbraco.Cms.12.x/umbraco/models/Image.generated.cs @@ -0,0 +1,89 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Umbraco.ModelsBuilder.Embedded v12.0.0+ba724ed +// +// Changes to this file will be lost if the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Linq.Expressions; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Infrastructure.ModelsBuilder; +using Umbraco.Cms.Core; +using Umbraco.Extensions; + +namespace Umbraco.Cms.Web.Common.PublishedModels +{ + /// Image + [PublishedModel("Image")] + public partial class Image : PublishedContentModel + { + // helpers +#pragma warning disable 0109 // new is redundant + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + public new const string ModelTypeAlias = "Image"; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + public new const PublishedItemType ModelItemType = PublishedItemType.Media; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public new static IPublishedContentType GetModelContentType(IPublishedSnapshotAccessor publishedSnapshotAccessor) + => PublishedModelUtility.GetModelContentType(publishedSnapshotAccessor, ModelItemType, ModelTypeAlias); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public static IPublishedPropertyType GetModelPropertyType(IPublishedSnapshotAccessor publishedSnapshotAccessor, Expression> selector) + => PublishedModelUtility.GetModelPropertyType(GetModelContentType(publishedSnapshotAccessor), selector); +#pragma warning restore 0109 + + private IPublishedValueFallback _publishedValueFallback; + + // ctor + public Image(IPublishedContent content, IPublishedValueFallback publishedValueFallback) + : base(content, publishedValueFallback) + { + _publishedValueFallback = publishedValueFallback; + } + + // properties + + /// + /// Size: in bytes + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [ImplementPropertyType("umbracoBytes")] + public virtual long UmbracoBytes => this.Value(_publishedValueFallback, "umbracoBytes"); + + /// + /// Type + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [global::System.Diagnostics.CodeAnalysis.MaybeNull] + [ImplementPropertyType("umbracoExtension")] + public virtual string UmbracoExtension => this.Value(_publishedValueFallback, "umbracoExtension"); + + /// + /// Image + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [global::System.Diagnostics.CodeAnalysis.MaybeNull] + [ImplementPropertyType("umbracoFile")] + public virtual global::Umbraco.Cms.Core.PropertyEditors.ValueConverters.ImageCropperValue UmbracoFile => this.Value(_publishedValueFallback, "umbracoFile"); + + /// + /// Height: in pixels + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [ImplementPropertyType("umbracoHeight")] + public virtual int UmbracoHeight => this.Value(_publishedValueFallback, "umbracoHeight"); + + /// + /// Width: in pixels + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [ImplementPropertyType("umbracoWidth")] + public virtual int UmbracoWidth => this.Value(_publishedValueFallback, "umbracoWidth"); + } +} diff --git a/src/Umbraco.Cms.12.x/umbraco/models/ImageBlock.generated.cs b/src/Umbraco.Cms.12.x/umbraco/models/ImageBlock.generated.cs new file mode 100644 index 0000000..8e804f9 --- /dev/null +++ b/src/Umbraco.Cms.12.x/umbraco/models/ImageBlock.generated.cs @@ -0,0 +1,60 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Umbraco.ModelsBuilder.Embedded v12.0.0+ba724ed +// +// Changes to this file will be lost if the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Linq.Expressions; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Infrastructure.ModelsBuilder; +using Umbraco.Cms.Core; +using Umbraco.Extensions; + +namespace Umbraco.Cms.Web.Common.PublishedModels +{ + /// Image + [PublishedModel("imageBlock")] + public partial class ImageBlock : PublishedElementModel + { + // helpers +#pragma warning disable 0109 // new is redundant + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + public new const string ModelTypeAlias = "imageBlock"; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + public new const PublishedItemType ModelItemType = PublishedItemType.Content; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public new static IPublishedContentType GetModelContentType(IPublishedSnapshotAccessor publishedSnapshotAccessor) + => PublishedModelUtility.GetModelContentType(publishedSnapshotAccessor, ModelItemType, ModelTypeAlias); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public static IPublishedPropertyType GetModelPropertyType(IPublishedSnapshotAccessor publishedSnapshotAccessor, Expression> selector) + => PublishedModelUtility.GetModelPropertyType(GetModelContentType(publishedSnapshotAccessor), selector); +#pragma warning restore 0109 + + private IPublishedValueFallback _publishedValueFallback; + + // ctor + public ImageBlock(IPublishedElement content, IPublishedValueFallback publishedValueFallback) + : base(content, publishedValueFallback) + { + _publishedValueFallback = publishedValueFallback; + } + + // properties + + /// + /// Image + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [global::System.Diagnostics.CodeAnalysis.MaybeNull] + [ImplementPropertyType("image")] + public virtual global::Umbraco.Cms.Core.Models.MediaWithCrops Image => this.Value(_publishedValueFallback, "image"); + } +} diff --git a/src/Umbraco.Cms.12.x/umbraco/models/InspirationBlock.generated.cs b/src/Umbraco.Cms.12.x/umbraco/models/InspirationBlock.generated.cs new file mode 100644 index 0000000..1a2f48c --- /dev/null +++ b/src/Umbraco.Cms.12.x/umbraco/models/InspirationBlock.generated.cs @@ -0,0 +1,52 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Umbraco.ModelsBuilder.Embedded v12.0.0+ba724ed +// +// Changes to this file will be lost if the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Linq.Expressions; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Infrastructure.ModelsBuilder; +using Umbraco.Cms.Core; +using Umbraco.Extensions; + +namespace Umbraco.Cms.Web.Common.PublishedModels +{ + /// Inspiration + [PublishedModel("inspirationBlock")] + public partial class InspirationBlock : PublishedElementModel + { + // helpers +#pragma warning disable 0109 // new is redundant + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + public new const string ModelTypeAlias = "inspirationBlock"; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + public new const PublishedItemType ModelItemType = PublishedItemType.Content; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public new static IPublishedContentType GetModelContentType(IPublishedSnapshotAccessor publishedSnapshotAccessor) + => PublishedModelUtility.GetModelContentType(publishedSnapshotAccessor, ModelItemType, ModelTypeAlias); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public static IPublishedPropertyType GetModelPropertyType(IPublishedSnapshotAccessor publishedSnapshotAccessor, Expression> selector) + => PublishedModelUtility.GetModelPropertyType(GetModelContentType(publishedSnapshotAccessor), selector); +#pragma warning restore 0109 + + private IPublishedValueFallback _publishedValueFallback; + + // ctor + public InspirationBlock(IPublishedElement content, IPublishedValueFallback publishedValueFallback) + : base(content, publishedValueFallback) + { + _publishedValueFallback = publishedValueFallback; + } + + // properties + } +} diff --git a/src/Umbraco.Cms.12.x/umbraco/models/Member.generated.cs b/src/Umbraco.Cms.12.x/umbraco/models/Member.generated.cs new file mode 100644 index 0000000..c02df4f --- /dev/null +++ b/src/Umbraco.Cms.12.x/umbraco/models/Member.generated.cs @@ -0,0 +1,60 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Umbraco.ModelsBuilder.Embedded v12.0.0+ba724ed +// +// Changes to this file will be lost if the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Linq.Expressions; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Infrastructure.ModelsBuilder; +using Umbraco.Cms.Core; +using Umbraco.Extensions; + +namespace Umbraco.Cms.Web.Common.PublishedModels +{ + /// Member + [PublishedModel("Member")] + public partial class Member : PublishedContentModel + { + // helpers +#pragma warning disable 0109 // new is redundant + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + public new const string ModelTypeAlias = "Member"; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + public new const PublishedItemType ModelItemType = PublishedItemType.Member; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public new static IPublishedContentType GetModelContentType(IPublishedSnapshotAccessor publishedSnapshotAccessor) + => PublishedModelUtility.GetModelContentType(publishedSnapshotAccessor, ModelItemType, ModelTypeAlias); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public static IPublishedPropertyType GetModelPropertyType(IPublishedSnapshotAccessor publishedSnapshotAccessor, Expression> selector) + => PublishedModelUtility.GetModelPropertyType(GetModelContentType(publishedSnapshotAccessor), selector); +#pragma warning restore 0109 + + private IPublishedValueFallback _publishedValueFallback; + + // ctor + public Member(IPublishedContent content, IPublishedValueFallback publishedValueFallback) + : base(content, publishedValueFallback) + { + _publishedValueFallback = publishedValueFallback; + } + + // properties + + /// + /// Comments + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [global::System.Diagnostics.CodeAnalysis.MaybeNull] + [ImplementPropertyType("umbracoMemberComments")] + public virtual string UmbracoMemberComments => this.Value(_publishedValueFallback, "umbracoMemberComments"); + } +} diff --git a/src/Umbraco.Cms.12.x/umbraco/models/OneColumnSectionBlock.generated.cs b/src/Umbraco.Cms.12.x/umbraco/models/OneColumnSectionBlock.generated.cs new file mode 100644 index 0000000..deb32f8 --- /dev/null +++ b/src/Umbraco.Cms.12.x/umbraco/models/OneColumnSectionBlock.generated.cs @@ -0,0 +1,52 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Umbraco.ModelsBuilder.Embedded v12.0.0+ba724ed +// +// Changes to this file will be lost if the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Linq.Expressions; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Infrastructure.ModelsBuilder; +using Umbraco.Cms.Core; +using Umbraco.Extensions; + +namespace Umbraco.Cms.Web.Common.PublishedModels +{ + /// One Column Section + [PublishedModel("oneColumnSectionBlock")] + public partial class OneColumnSectionBlock : PublishedElementModel + { + // helpers +#pragma warning disable 0109 // new is redundant + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + public new const string ModelTypeAlias = "oneColumnSectionBlock"; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + public new const PublishedItemType ModelItemType = PublishedItemType.Content; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public new static IPublishedContentType GetModelContentType(IPublishedSnapshotAccessor publishedSnapshotAccessor) + => PublishedModelUtility.GetModelContentType(publishedSnapshotAccessor, ModelItemType, ModelTypeAlias); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public static IPublishedPropertyType GetModelPropertyType(IPublishedSnapshotAccessor publishedSnapshotAccessor, Expression> selector) + => PublishedModelUtility.GetModelPropertyType(GetModelContentType(publishedSnapshotAccessor), selector); +#pragma warning restore 0109 + + private IPublishedValueFallback _publishedValueFallback; + + // ctor + public OneColumnSectionBlock(IPublishedElement content, IPublishedValueFallback publishedValueFallback) + : base(content, publishedValueFallback) + { + _publishedValueFallback = publishedValueFallback; + } + + // properties + } +} diff --git a/src/Umbraco.Cms.12.x/umbraco/models/RichTextBlock.generated.cs b/src/Umbraco.Cms.12.x/umbraco/models/RichTextBlock.generated.cs new file mode 100644 index 0000000..03b7502 --- /dev/null +++ b/src/Umbraco.Cms.12.x/umbraco/models/RichTextBlock.generated.cs @@ -0,0 +1,60 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Umbraco.ModelsBuilder.Embedded v12.0.0+ba724ed +// +// Changes to this file will be lost if the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Linq.Expressions; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Infrastructure.ModelsBuilder; +using Umbraco.Cms.Core; +using Umbraco.Extensions; + +namespace Umbraco.Cms.Web.Common.PublishedModels +{ + /// Rich Text + [PublishedModel("richTextBlock")] + public partial class RichTextBlock : PublishedElementModel + { + // helpers +#pragma warning disable 0109 // new is redundant + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + public new const string ModelTypeAlias = "richTextBlock"; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + public new const PublishedItemType ModelItemType = PublishedItemType.Content; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public new static IPublishedContentType GetModelContentType(IPublishedSnapshotAccessor publishedSnapshotAccessor) + => PublishedModelUtility.GetModelContentType(publishedSnapshotAccessor, ModelItemType, ModelTypeAlias); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public static IPublishedPropertyType GetModelPropertyType(IPublishedSnapshotAccessor publishedSnapshotAccessor, Expression> selector) + => PublishedModelUtility.GetModelPropertyType(GetModelContentType(publishedSnapshotAccessor), selector); +#pragma warning restore 0109 + + private IPublishedValueFallback _publishedValueFallback; + + // ctor + public RichTextBlock(IPublishedElement content, IPublishedValueFallback publishedValueFallback) + : base(content, publishedValueFallback) + { + _publishedValueFallback = publishedValueFallback; + } + + // properties + + /// + /// Text + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [global::System.Diagnostics.CodeAnalysis.MaybeNull] + [ImplementPropertyType("richText")] + public virtual global::Umbraco.Cms.Core.Strings.IHtmlEncodedString RichText => this.Value(_publishedValueFallback, "richText"); + } +} diff --git a/src/Umbraco.Cms.12.x/umbraco/models/SectionSettingsBlock.generated.cs b/src/Umbraco.Cms.12.x/umbraco/models/SectionSettingsBlock.generated.cs new file mode 100644 index 0000000..0b9147b --- /dev/null +++ b/src/Umbraco.Cms.12.x/umbraco/models/SectionSettingsBlock.generated.cs @@ -0,0 +1,68 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Umbraco.ModelsBuilder.Embedded v12.0.0+ba724ed +// +// Changes to this file will be lost if the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Linq.Expressions; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Infrastructure.ModelsBuilder; +using Umbraco.Cms.Core; +using Umbraco.Extensions; + +namespace Umbraco.Cms.Web.Common.PublishedModels +{ + /// Section Settings + [PublishedModel("sectionSettingsBlock")] + public partial class SectionSettingsBlock : PublishedElementModel + { + // helpers +#pragma warning disable 0109 // new is redundant + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + public new const string ModelTypeAlias = "sectionSettingsBlock"; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + public new const PublishedItemType ModelItemType = PublishedItemType.Content; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public new static IPublishedContentType GetModelContentType(IPublishedSnapshotAccessor publishedSnapshotAccessor) + => PublishedModelUtility.GetModelContentType(publishedSnapshotAccessor, ModelItemType, ModelTypeAlias); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public static IPublishedPropertyType GetModelPropertyType(IPublishedSnapshotAccessor publishedSnapshotAccessor, Expression> selector) + => PublishedModelUtility.GetModelPropertyType(GetModelContentType(publishedSnapshotAccessor), selector); +#pragma warning restore 0109 + + private IPublishedValueFallback _publishedValueFallback; + + // ctor + public SectionSettingsBlock(IPublishedElement content, IPublishedValueFallback publishedValueFallback) + : base(content, publishedValueFallback) + { + _publishedValueFallback = publishedValueFallback; + } + + // properties + + /// + /// Background color + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [global::System.Diagnostics.CodeAnalysis.MaybeNull] + [ImplementPropertyType("backgroundColor")] + public virtual string BackgroundColor => this.Value(_publishedValueFallback, "backgroundColor"); + + /// + /// Contrast + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [global::System.Diagnostics.CodeAnalysis.MaybeNull] + [ImplementPropertyType("contrast")] + public virtual string Contrast => this.Value(_publishedValueFallback, "contrast"); + } +} diff --git a/src/Umbraco.Cms.12.x/umbraco/models/TwoColumnSectionBlock.generated.cs b/src/Umbraco.Cms.12.x/umbraco/models/TwoColumnSectionBlock.generated.cs new file mode 100644 index 0000000..461abaf --- /dev/null +++ b/src/Umbraco.Cms.12.x/umbraco/models/TwoColumnSectionBlock.generated.cs @@ -0,0 +1,52 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Umbraco.ModelsBuilder.Embedded v12.0.0+ba724ed +// +// Changes to this file will be lost if the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Linq.Expressions; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Infrastructure.ModelsBuilder; +using Umbraco.Cms.Core; +using Umbraco.Extensions; + +namespace Umbraco.Cms.Web.Common.PublishedModels +{ + /// Two Column Section + [PublishedModel("twoColumnSectionBlock")] + public partial class TwoColumnSectionBlock : PublishedElementModel + { + // helpers +#pragma warning disable 0109 // new is redundant + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + public new const string ModelTypeAlias = "twoColumnSectionBlock"; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + public new const PublishedItemType ModelItemType = PublishedItemType.Content; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public new static IPublishedContentType GetModelContentType(IPublishedSnapshotAccessor publishedSnapshotAccessor) + => PublishedModelUtility.GetModelContentType(publishedSnapshotAccessor, ModelItemType, ModelTypeAlias); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public static IPublishedPropertyType GetModelPropertyType(IPublishedSnapshotAccessor publishedSnapshotAccessor, Expression> selector) + => PublishedModelUtility.GetModelPropertyType(GetModelContentType(publishedSnapshotAccessor), selector); +#pragma warning restore 0109 + + private IPublishedValueFallback _publishedValueFallback; + + // ctor + public TwoColumnSectionBlock(IPublishedElement content, IPublishedValueFallback publishedValueFallback) + : base(content, publishedValueFallback) + { + _publishedValueFallback = publishedValueFallback; + } + + // properties + } +} diff --git a/src/Umbraco.Cms.12.x/umbraco/models/UmbracoMediaArticle.generated.cs b/src/Umbraco.Cms.12.x/umbraco/models/UmbracoMediaArticle.generated.cs new file mode 100644 index 0000000..2ebb6a2 --- /dev/null +++ b/src/Umbraco.Cms.12.x/umbraco/models/UmbracoMediaArticle.generated.cs @@ -0,0 +1,75 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Umbraco.ModelsBuilder.Embedded v12.0.0+ba724ed +// +// Changes to this file will be lost if the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Linq.Expressions; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Infrastructure.ModelsBuilder; +using Umbraco.Cms.Core; +using Umbraco.Extensions; + +namespace Umbraco.Cms.Web.Common.PublishedModels +{ + /// Article + [PublishedModel("umbracoMediaArticle")] + public partial class UmbracoMediaArticle : PublishedContentModel + { + // helpers +#pragma warning disable 0109 // new is redundant + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + public new const string ModelTypeAlias = "umbracoMediaArticle"; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + public new const PublishedItemType ModelItemType = PublishedItemType.Media; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public new static IPublishedContentType GetModelContentType(IPublishedSnapshotAccessor publishedSnapshotAccessor) + => PublishedModelUtility.GetModelContentType(publishedSnapshotAccessor, ModelItemType, ModelTypeAlias); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public static IPublishedPropertyType GetModelPropertyType(IPublishedSnapshotAccessor publishedSnapshotAccessor, Expression> selector) + => PublishedModelUtility.GetModelPropertyType(GetModelContentType(publishedSnapshotAccessor), selector); +#pragma warning restore 0109 + + private IPublishedValueFallback _publishedValueFallback; + + // ctor + public UmbracoMediaArticle(IPublishedContent content, IPublishedValueFallback publishedValueFallback) + : base(content, publishedValueFallback) + { + _publishedValueFallback = publishedValueFallback; + } + + // properties + + /// + /// Size: in bytes + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [ImplementPropertyType("umbracoBytes")] + public virtual long UmbracoBytes => this.Value(_publishedValueFallback, "umbracoBytes"); + + /// + /// Type + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [global::System.Diagnostics.CodeAnalysis.MaybeNull] + [ImplementPropertyType("umbracoExtension")] + public virtual string UmbracoExtension => this.Value(_publishedValueFallback, "umbracoExtension"); + + /// + /// Article + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [global::System.Diagnostics.CodeAnalysis.MaybeNull] + [ImplementPropertyType("umbracoFile")] + public virtual string UmbracoFile => this.Value(_publishedValueFallback, "umbracoFile"); + } +} diff --git a/src/Umbraco.Cms.12.x/umbraco/models/UmbracoMediaAudio.generated.cs b/src/Umbraco.Cms.12.x/umbraco/models/UmbracoMediaAudio.generated.cs new file mode 100644 index 0000000..c7d5eb3 --- /dev/null +++ b/src/Umbraco.Cms.12.x/umbraco/models/UmbracoMediaAudio.generated.cs @@ -0,0 +1,75 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Umbraco.ModelsBuilder.Embedded v12.0.0+ba724ed +// +// Changes to this file will be lost if the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Linq.Expressions; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Infrastructure.ModelsBuilder; +using Umbraco.Cms.Core; +using Umbraco.Extensions; + +namespace Umbraco.Cms.Web.Common.PublishedModels +{ + /// Audio + [PublishedModel("umbracoMediaAudio")] + public partial class UmbracoMediaAudio : PublishedContentModel + { + // helpers +#pragma warning disable 0109 // new is redundant + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + public new const string ModelTypeAlias = "umbracoMediaAudio"; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + public new const PublishedItemType ModelItemType = PublishedItemType.Media; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public new static IPublishedContentType GetModelContentType(IPublishedSnapshotAccessor publishedSnapshotAccessor) + => PublishedModelUtility.GetModelContentType(publishedSnapshotAccessor, ModelItemType, ModelTypeAlias); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public static IPublishedPropertyType GetModelPropertyType(IPublishedSnapshotAccessor publishedSnapshotAccessor, Expression> selector) + => PublishedModelUtility.GetModelPropertyType(GetModelContentType(publishedSnapshotAccessor), selector); +#pragma warning restore 0109 + + private IPublishedValueFallback _publishedValueFallback; + + // ctor + public UmbracoMediaAudio(IPublishedContent content, IPublishedValueFallback publishedValueFallback) + : base(content, publishedValueFallback) + { + _publishedValueFallback = publishedValueFallback; + } + + // properties + + /// + /// Size: in bytes + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [ImplementPropertyType("umbracoBytes")] + public virtual long UmbracoBytes => this.Value(_publishedValueFallback, "umbracoBytes"); + + /// + /// Type + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [global::System.Diagnostics.CodeAnalysis.MaybeNull] + [ImplementPropertyType("umbracoExtension")] + public virtual string UmbracoExtension => this.Value(_publishedValueFallback, "umbracoExtension"); + + /// + /// Audio + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [global::System.Diagnostics.CodeAnalysis.MaybeNull] + [ImplementPropertyType("umbracoFile")] + public virtual string UmbracoFile => this.Value(_publishedValueFallback, "umbracoFile"); + } +} diff --git a/src/Umbraco.Cms.12.x/umbraco/models/UmbracoMediaVectorGraphics.generated.cs b/src/Umbraco.Cms.12.x/umbraco/models/UmbracoMediaVectorGraphics.generated.cs new file mode 100644 index 0000000..f9299fd --- /dev/null +++ b/src/Umbraco.Cms.12.x/umbraco/models/UmbracoMediaVectorGraphics.generated.cs @@ -0,0 +1,75 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Umbraco.ModelsBuilder.Embedded v12.0.0+ba724ed +// +// Changes to this file will be lost if the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Linq.Expressions; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Infrastructure.ModelsBuilder; +using Umbraco.Cms.Core; +using Umbraco.Extensions; + +namespace Umbraco.Cms.Web.Common.PublishedModels +{ + /// Vector Graphics (SVG) + [PublishedModel("umbracoMediaVectorGraphics")] + public partial class UmbracoMediaVectorGraphics : PublishedContentModel + { + // helpers +#pragma warning disable 0109 // new is redundant + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + public new const string ModelTypeAlias = "umbracoMediaVectorGraphics"; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + public new const PublishedItemType ModelItemType = PublishedItemType.Media; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public new static IPublishedContentType GetModelContentType(IPublishedSnapshotAccessor publishedSnapshotAccessor) + => PublishedModelUtility.GetModelContentType(publishedSnapshotAccessor, ModelItemType, ModelTypeAlias); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public static IPublishedPropertyType GetModelPropertyType(IPublishedSnapshotAccessor publishedSnapshotAccessor, Expression> selector) + => PublishedModelUtility.GetModelPropertyType(GetModelContentType(publishedSnapshotAccessor), selector); +#pragma warning restore 0109 + + private IPublishedValueFallback _publishedValueFallback; + + // ctor + public UmbracoMediaVectorGraphics(IPublishedContent content, IPublishedValueFallback publishedValueFallback) + : base(content, publishedValueFallback) + { + _publishedValueFallback = publishedValueFallback; + } + + // properties + + /// + /// Size: in bytes + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [ImplementPropertyType("umbracoBytes")] + public virtual long UmbracoBytes => this.Value(_publishedValueFallback, "umbracoBytes"); + + /// + /// Type + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [global::System.Diagnostics.CodeAnalysis.MaybeNull] + [ImplementPropertyType("umbracoExtension")] + public virtual string UmbracoExtension => this.Value(_publishedValueFallback, "umbracoExtension"); + + /// + /// Vector Graphics + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [global::System.Diagnostics.CodeAnalysis.MaybeNull] + [ImplementPropertyType("umbracoFile")] + public virtual string UmbracoFile => this.Value(_publishedValueFallback, "umbracoFile"); + } +} diff --git a/src/Umbraco.Cms.12.x/umbraco/models/UmbracoMediaVideo.generated.cs b/src/Umbraco.Cms.12.x/umbraco/models/UmbracoMediaVideo.generated.cs new file mode 100644 index 0000000..b067ccb --- /dev/null +++ b/src/Umbraco.Cms.12.x/umbraco/models/UmbracoMediaVideo.generated.cs @@ -0,0 +1,75 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Umbraco.ModelsBuilder.Embedded v12.0.0+ba724ed +// +// Changes to this file will be lost if the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Linq.Expressions; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Infrastructure.ModelsBuilder; +using Umbraco.Cms.Core; +using Umbraco.Extensions; + +namespace Umbraco.Cms.Web.Common.PublishedModels +{ + /// Video + [PublishedModel("umbracoMediaVideo")] + public partial class UmbracoMediaVideo : PublishedContentModel + { + // helpers +#pragma warning disable 0109 // new is redundant + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + public new const string ModelTypeAlias = "umbracoMediaVideo"; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + public new const PublishedItemType ModelItemType = PublishedItemType.Media; + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public new static IPublishedContentType GetModelContentType(IPublishedSnapshotAccessor publishedSnapshotAccessor) + => PublishedModelUtility.GetModelContentType(publishedSnapshotAccessor, ModelItemType, ModelTypeAlias); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [return: global::System.Diagnostics.CodeAnalysis.MaybeNull] + public static IPublishedPropertyType GetModelPropertyType(IPublishedSnapshotAccessor publishedSnapshotAccessor, Expression> selector) + => PublishedModelUtility.GetModelPropertyType(GetModelContentType(publishedSnapshotAccessor), selector); +#pragma warning restore 0109 + + private IPublishedValueFallback _publishedValueFallback; + + // ctor + public UmbracoMediaVideo(IPublishedContent content, IPublishedValueFallback publishedValueFallback) + : base(content, publishedValueFallback) + { + _publishedValueFallback = publishedValueFallback; + } + + // properties + + /// + /// Size: in bytes + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [ImplementPropertyType("umbracoBytes")] + public virtual long UmbracoBytes => this.Value(_publishedValueFallback, "umbracoBytes"); + + /// + /// Type + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [global::System.Diagnostics.CodeAnalysis.MaybeNull] + [ImplementPropertyType("umbracoExtension")] + public virtual string UmbracoExtension => this.Value(_publishedValueFallback, "umbracoExtension"); + + /// + /// Video + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "12.0.0+ba724ed")] + [global::System.Diagnostics.CodeAnalysis.MaybeNull] + [ImplementPropertyType("umbracoFile")] + public virtual string UmbracoFile => this.Value(_publishedValueFallback, "umbracoFile"); + } +} diff --git a/src/Umbraco.Cms.12.x/wwwroot/css/myblockgridlayout.css b/src/Umbraco.Cms.12.x/wwwroot/css/myblockgridlayout.css new file mode 100644 index 0000000..ddde66e --- /dev/null +++ b/src/Umbraco.Cms.12.x/wwwroot/css/myblockgridlayout.css @@ -0,0 +1,364 @@ +.umb-block-grid__layout-container { + position: relative; + display: grid; + grid-template-columns: repeat(var(--umb-block-grid--grid-columns, 1), minmax(0, 1fr)); + grid-auto-flow: row; + grid-auto-rows: minmax(50px, min-content); + column-gap: var(--umb-block-grid--column-gap, 0); + row-gap: var(--umb-block-grid--row-gap, 0); +} + +.umb-block-grid__layout-item { + position: relative; + /* For small devices we scale columnSpan by three, to make everything bigger than 1/3 take full width: */ + grid-column-end: span min(calc(var(--umb-block-grid--item-column-span, 1) * 3), var(--umb-block-grid--grid-columns)); + grid-row: span var(--umb-block-grid--item-row-span, 1); +} + + +.umb-block-grid__area-container, .umb-block-grid__block--view::part(area-container) { + position: relative; + display: grid; + grid-template-columns: repeat(var(--umb-block-grid--area-grid-columns, var(--umb-block-grid--grid-columns, 1)), minmax(0, 1fr)); + grid-auto-flow: row; + grid-auto-rows: minmax(50px, min-content); + column-gap: var(--umb-block-grid--areas-column-gap, 0); + row-gap: var(--umb-block-grid--areas-row-gap, 0); +} + +.umb-block-grid__area { + position: relative; + height: 100%; + display: flex; + flex-direction: column; + /* For small devices we scale columnSpan by three, to make everything bigger than 1/3 take full width: */ + grid-column-end: span min(calc(var(--umb-block-grid--area-column-span, 1) * 3), var(--umb-block-grid--grid-columns)); + grid-row: span var(--umb-block-grid--area-row-span, 1); +} + +@media (min-width:1024px) { + .umb-block-grid__layout-item { + grid-column-end: span min(var(--umb-block-grid--item-column-span, 1), var(--umb-block-grid--grid-columns)); + } + + .umb-block-grid__area { + grid-column-end: span var(--umb-block-grid--area-column-span, 1); + } +} + + +/**** Custom additions to the default Grid Layout Stylehseet: ****/ + + +/* additional CSS options for area-container and areas: */ +.umb-block-grid__area-container, .umb-block-grid__block--view::part(area-container) { + max-width: var(--my-container-max-width); + padding: var(--my-container-padding); + margin-left: auto; + margin-right: auto; + --umb-block-grid--areas-column-gap: 60px; + --umb-block-grid--areas-row-gap: 60px; +} + +.umb-block-grid__area { + justify-content: center; +} + +.umb-block-grid__layout-item[data-content-element-type-alias="oneColumnSectionBlock"] .umb-block-grid__layout-container { + --umb-block-grid--column-gap: 60px; + --umb-block-grid--row-gap: 60px; +} + + + + + +/**** My custom website styles: ****/ + +:root, :host, body { + font-family: 'Lato'; + font-weight: 500; + font-size: 15px; + line-height: 1.5; + margin: 0; +} + +.umb-block-grid { + container-type: inline-size; + --my-container-max-width: 1200px; + --my-container-padding: 0 20px; +} +@container (min-width: 720px) { + .umb-block-grid__layout-container { + --my-container-padding: 0 60px; + } +} + +section { + padding: var(--section-padding, 60px 0); +} +section[bright-contrast] { + color:white; + --my-bright-contrast: ; +} + + +/** only works on website. */ +.umb-block-grid__layout-item:has(section[nobackgroundcolor]) + +.umb-block-grid__layout-item section[nobackgroundcolor] { + padding-top: 0; +} + +h1 { + font-size: 60px; + font-weight: 300; + line-height: 0.96; + margin: 0; + margin-bottom: 20px; + color: inherit; +} + +h2 { + font-size: 35px; + font-weight: 300; + line-height: 1.2; + margin: 0; + color: inherit; +} + +/**umb_name:H3*/ +h3 { + font-size: 30px; + font-weight: 300; + line-height: 1.2; + margin:0; + color: inherit; +} + +/**umb_name:H4*/ +h4 { + font-size: 21px; + font-weight: 300; + line-height: 1.2; + margin:0; + color: inherit; +} + + + + + +/** Image */ + +img.image { + object-fit: cover; + height: 100%; + width: 100%; +} + + + + + +/** Rich Text */ + +.rich-text { + font-weight: 300; + color: inherit; + /** Using CSS Calculation, which gives 1 for column spans of 1-11 and 2 for column span of 12. */ + columns: clamp(1, calc(var(--umb-block-grid--item-column-span) - 10), 2); + column-gap: 60px; +} + +.rich-text > p:first-child { + margin-top: 0; +} + +/**umb_name:Lead Paragraph*/ +p.lead-paragraph { + font-size: 18px; +} + + + + +/** Hero */ + +.umb-block-grid__layout-item[data-content-element-type-alias="heroBlock"] .umb-block-grid__area-container, +.umb-block-grid__layout-item[data-content-element-type-alias="heroBlock"] .umb-block-grid__block--view::part(area-container) { + padding: 0; +} + +.hero { + position: relative; + height: 80vh; + width: 100%; + display: flex; + align-items: end; + padding: 60px 0; + box-sizing: border-box; +} +.hero[bright-contrast] { + color: white; + --my-bright-contrast: ; +} + +.hero .hero-background { + position: absolute; + inset: 0; + background-position: 50% 50%; + background-size: cover; +} + +.hero .hero-background:after { + content: ''; + position: absolute; + inset: 0; + background-color: rgba(0,0,0,.22); + pointer-events: none; +} + +.hero .hero-content { + position: relative; + width: 100%; + max-width: var(--my-container-max-width); + padding: var(--my-container-padding); + margin-left: auto; + margin-right: auto; +} + +.hero .hero-content > h1 { + max-width: 14em; +} + + + + +/** Call to action */ + +.call-to-action { + display: inline-block; + --call-to-action--background-color--condition: var(--my-bright-contrast) white; + background-color: var(--call-to-action--background-color--condition, #3544b1); + --call-to-action--text-color--condition: var(--my-bright-contrast) black; + color: var(--call-to-action--text-color--condition, white); + font-weight: 500; + padding: 14px 28px; + margin-top: 10px; + margin-bottom: 10px; + margin-right: auto; + max-width: 180px; + text-decoration: none; +} + + + +/** Inspiration */ + +.inspiration[bright-contrast] { + --my-bright-contrast: ; +} + +.inspiration .area-container { + max-width: var(--my-container-max-width); + padding: var(--my-container-padding); + margin-left: auto; + margin-right: auto; + + display: grid; + grid-template-columns: 1fr 1fr 1fr 1fr; + grid-auto-flow: row; + column-gap: 60px; +} + +.inspiration .left-area { + grid-column-end: span 1; + display: block; + margin-bottom: 60px; +} + +.inspiration .right-area { + grid-column-end: span 1; + display: block; + margin-top: 60px; + margin-right: -120px; + transform: translateX(-120px); +} + +.inspiration .content-area { + grid-column-end: span 2; + display: block; +} + +.umb-block-grid__layout-item[data-content-element-type-alias="inspirationBlock"] .umb-block-grid__area[data-area-alias="leftArea"] { + justify-content: start; +} + +.umb-block-grid__layout-item[data-content-element-type-alias="inspirationBlock"] .umb-block-grid__area[data-area-alias="rightArea"] { + justify-content: end; +} + + + + + + + +/* Card */ + +.card { + display: flex; + flex-direction: column; + height: 100%; + color: black; + background-color: white; +} + +.card .card-media { + position: relative; + width: 100%; + aspect-ratio: 16 / 9; + overflow: hidden; +} + +.card .card-media img { + object-fit: cover; + height: 100%; + width: 100%; +} + +.card .card-content { + display: flex; + flex-direction: column; + gap: 10px; + padding: 20px; + font-weight: 300; +} + +.card .card-content p { + margin: 0; +} + + +.card.--medium { + height: auto; +} + +.card.--medium .card-media::after { + content: ''; + position: absolute; + inset: 0; + background-color: rgba(0,0,0,.22); + pointer-events: none; +} + +.card.--medium .card-content { + position: absolute; + z-index: 1; + bottom: 0; + color: white; +} + +.card.--medium .card-content h4 { + font-size: 30px; +} \ No newline at end of file diff --git a/src/Umbraco.Cms.12.x/wwwroot/favicon.ico b/src/Umbraco.Cms.12.x/wwwroot/favicon.ico new file mode 100644 index 0000000..c0749dd Binary files /dev/null and b/src/Umbraco.Cms.12.x/wwwroot/favicon.ico differ diff --git a/src/Umbraco.Community.BlockPreview.sln b/src/Umbraco.Community.BlockPreview.sln index c4b8ca8..f1694fa 100644 --- a/src/Umbraco.Community.BlockPreview.sln +++ b/src/Umbraco.Community.BlockPreview.sln @@ -3,7 +3,11 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.4.33122.133 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Umbraco.Community.BlockPreview", "Umbraco.Community.BlockPreview.csproj", "{ECC30653-56E0-4FC2-AC35-8F21347B8CEE}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Umbraco.Community.BlockPreview", "Umbraco.Community.BlockPreview\Umbraco.Community.BlockPreview.csproj", "{ECC30653-56E0-4FC2-AC35-8F21347B8CEE}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Umbraco.Cms.12.x", "Umbraco.Cms.12.x\Umbraco.Cms.12.x.csproj", "{C32E4D3A-64B7-4798-8BCB-0C016A971646}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Umbraco.Cms.11.x", "Umbraco.Cms.11.x\Umbraco.Cms.11.x.csproj", "{388C51A7-7A5D-4450-91B1-CC31468D8EFC}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -15,6 +19,14 @@ Global {ECC30653-56E0-4FC2-AC35-8F21347B8CEE}.Debug|Any CPU.Build.0 = Debug|Any CPU {ECC30653-56E0-4FC2-AC35-8F21347B8CEE}.Release|Any CPU.ActiveCfg = Release|Any CPU {ECC30653-56E0-4FC2-AC35-8F21347B8CEE}.Release|Any CPU.Build.0 = Release|Any CPU + {C32E4D3A-64B7-4798-8BCB-0C016A971646}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C32E4D3A-64B7-4798-8BCB-0C016A971646}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C32E4D3A-64B7-4798-8BCB-0C016A971646}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C32E4D3A-64B7-4798-8BCB-0C016A971646}.Release|Any CPU.Build.0 = Release|Any CPU + {388C51A7-7A5D-4450-91B1-CC31468D8EFC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {388C51A7-7A5D-4450-91B1-CC31468D8EFC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {388C51A7-7A5D-4450-91B1-CC31468D8EFC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {388C51A7-7A5D-4450-91B1-CC31468D8EFC}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/src/Umbraco.Community.BlockPreview/App_Plugins/Umbraco.Community.BlockPreview/js/controllers/block-preview.controller.js b/src/Umbraco.Community.BlockPreview/App_Plugins/Umbraco.Community.BlockPreview/js/controllers/block-preview.controller.js new file mode 100644 index 0000000..c81198c --- /dev/null +++ b/src/Umbraco.Community.BlockPreview/App_Plugins/Umbraco.Community.BlockPreview/js/controllers/block-preview.controller.js @@ -0,0 +1,75 @@ +angular.module('umbraco').controller('Umbraco.Community.BlockPreview.Controllers.BlockPreviewController', + ['$scope', '$sce', '$element', '$compile', '$timeout', 'editorState', 'Umbraco.Community.BlockPreview.Resources.PreviewResource', 'blockEditorService', + function ($scope, $sce, $element, $compile, $timeout, editorState, previewResource, blockEditorService) { + var active = editorState.getCurrent().variants.find(function (v) { + return v.active; + }); + + if (active !== null) { + if (active.language !== null) { + $scope.language = active.language.culture; + } + } + + $scope.id = editorState.getCurrent().id; + $scope.loading = true; + $scope.markup = $sce.trustAsHtml('
Loading preview
'); + + function loadPreview(content, settings) { + $scope.markup = $sce.trustAsHtml('
Loading preview
'); + $scope.loading = true; + + var formattedBlockData = { + layout: $scope.block.layout, + contentData: [content || $scope.block.data], + settingsData: [settings || $scope.block.settingsData] + }; + + previewResource.getPreview(formattedBlockData, $scope.id, $scope.model.constructor.name == 'BlockGridBlockController', $scope.language).then(function (data) { + $scope.markup = $sce.trustAsHtml(data); + $scope.loading = false; + }); + } + + loadPreview($scope.block.data, $scope.block.settingsData); + + var timeoutPromise; + + $scope.$watch('block.data', function (newValue, oldValue) { + if (newValue !== oldValue) { + $timeout.cancel(timeoutPromise); + + timeoutPromise = $timeout(function () { //Set timeout + loadPreview(newValue, null); + }, 500); + } + }, true); + + $scope.$watch('block.settingsData', function (newValue, oldValue) { + if (newValue !== oldValue) { + $timeout.cancel(timeoutPromise); + + timeoutPromise = $timeout(function () { //Set timeout + loadPreview(null, newValue); + }, 500); + } + }, true); + + $scope.editBlock = function ($event, block) { + var target = $event.target; + var blockActions = target.closest('.umb-block-grid__block--actions'); + var areaCreate = target.closest('.umb-block-grid__create-button'); + var blockCreateButton = target.closest('.umb-block-grid__block--inline-create-button'); + var blockCreateButtonLast = target.closest('.umb-block-grid__block--last-inline-create-button'); + + if (!blockActions && !areaCreate && !blockCreateButton && !blockCreateButtonLast) { + block.edit(); + $event.preventDefault(); + $event.stopPropagation(); + $event.stopImmediatePropagation(); + $event.cancelBubble = true; + return; + } + } + } + ]); diff --git a/src/Umbraco.Community.BlockPreview/App_Plugins/Umbraco.Community.BlockPreview/js/directives/bind-compile.directive.js b/src/Umbraco.Community.BlockPreview/App_Plugins/Umbraco.Community.BlockPreview/js/directives/bind-compile.directive.js new file mode 100644 index 0000000..0645193 --- /dev/null +++ b/src/Umbraco.Community.BlockPreview/App_Plugins/Umbraco.Community.BlockPreview/js/directives/bind-compile.directive.js @@ -0,0 +1,25 @@ +/* + * angular-bind-compile v0.1.0 + * https://github.com/emn178/angular-bind-compile + * + * Copyright 2014, emn178@gmail.com + * + * Licensed under the MIT license: + * http://www.opensource.org/licenses/MIT + */ +angular.module('umbraco.filters') + .directive('ngBindCompile', ['$sce', '$compile', function ($sce, $compile) { + return { + restrict: 'A', + compile: function (tElement, tAttrs) { + return function (scope, element, attrs) { + scope.$watch(function () { + return $sce.getTrustedHtml(scope.$eval(attrs.ngBindCompile)); + }, function (value) { + element.html(value); + $compile(element.contents())(scope); + }); + }; + } + }; + }]); \ No newline at end of file diff --git a/src/Umbraco.Community.BlockPreview/App_Plugins/Umbraco.Community.BlockPreview/js/directives/published-check.directive.js b/src/Umbraco.Community.BlockPreview/App_Plugins/Umbraco.Community.BlockPreview/js/directives/published-check.directive.js new file mode 100644 index 0000000..97be5ac --- /dev/null +++ b/src/Umbraco.Community.BlockPreview/App_Plugins/Umbraco.Community.BlockPreview/js/directives/published-check.directive.js @@ -0,0 +1,50 @@ +angular.module('umbraco.filters') + .directive('publicationCheck', [function () { + + function setStyle(scope, element) { + if (!scope.settings) { + element[0].style.opacity = 1; + return; + } + if (scope.settings.hideBlock === '1') { + element[0].style.opacity = 0.25; + return; + } + + if (scope.settings.startDate === '' && scope.settings.endDate === '') { + element[0].style.opacity = 1; + return; + } + + if (Date.parse(scope.settings.startDate) > new Date()) { + element[0].style.opacity = 0.25; + return; + } + + if (Date.parse(scope.settings.endDate) < new Date()) { + element[0].style.opacity = 0.25; + return; + } + + element[0].style.opacity = 1; + } + + function link(scope, element, attrs) { + + setStyle(scope, element); + + scope.$watch('settings', function (newValue, oldValue) { + if (newValue) + setStyle(scope, element); + }, true); + + } + + return { + restrict: 'A', + scope: { + 'settings': '=', + }, + link: link, + }; + }]); \ No newline at end of file diff --git a/src/Umbraco.Community.BlockPreview/App_Plugins/Umbraco.Community.BlockPreview/js/resources/preview.resource.js b/src/Umbraco.Community.BlockPreview/App_Plugins/Umbraco.Community.BlockPreview/js/resources/preview.resource.js new file mode 100644 index 0000000..12fc44f --- /dev/null +++ b/src/Umbraco.Community.BlockPreview/App_Plugins/Umbraco.Community.BlockPreview/js/resources/preview.resource.js @@ -0,0 +1,26 @@ +(function () { + 'use strict'; + + function previewResource($http, umbRequestHelper) { + + var apiUrl = Umbraco.Sys.ServerVariables.UmbracoCommunityBlockPreview.PreviewApi; + + var resource = { + getPreview: getPreview, + }; + + return resource; + + function getPreview(data, pageId, isGrid, culture) { + culture = culture || ''; + + return umbRequestHelper.resourcePromise( + $http.post(apiUrl + '?pageId=' + pageId + '&isGrid=' + isGrid + '&culture=' + culture, data), + 'Failed getting block preview markup' + ); + }; + } + + angular.module('umbraco.resources').factory('Umbraco.Community.BlockPreview.Resources.PreviewResource', previewResource); + +})(); diff --git a/src/Umbraco.Community.BlockPreview/App_Plugins/Umbraco.Community.BlockPreview/package.manifest b/src/Umbraco.Community.BlockPreview/App_Plugins/Umbraco.Community.BlockPreview/package.manifest new file mode 100644 index 0000000..cad9c59 --- /dev/null +++ b/src/Umbraco.Community.BlockPreview/App_Plugins/Umbraco.Community.BlockPreview/package.manifest @@ -0,0 +1,11 @@ +{ + "name": "Umbraco.Community.BlockPreview", + "version": "1.4.0", + "allowPackageTelemetry": true, + "javascript": [ + "~/App_Plugins/Umbraco.Community.BlockPreview/js/resources/preview.resource.js", + "~/App_Plugins/Umbraco.Community.BlockPreview/js/directives/published-check.directive.js", + "~/App_Plugins/Umbraco.Community.BlockPreview/js/directives/bind-compile.directive.js", + "~/App_Plugins/Umbraco.Community.BlockPreview/js/controllers/block-preview.controller.js" + ] +} \ No newline at end of file diff --git a/src/Umbraco.Community.BlockPreview/App_Plugins/Umbraco.Community.BlockPreview/views/block-preview.html b/src/Umbraco.Community.BlockPreview/App_Plugins/Umbraco.Community.BlockPreview/views/block-preview.html new file mode 100644 index 0000000..45182a0 --- /dev/null +++ b/src/Umbraco.Community.BlockPreview/App_Plugins/Umbraco.Community.BlockPreview/views/block-preview.html @@ -0,0 +1,10 @@ + + +
+ +
+ +
diff --git a/src/BlockPreviewUmbracoBuilderExtensions.cs b/src/Umbraco.Community.BlockPreview/BlockPreviewUmbracoBuilderExtensions.cs similarity index 100% rename from src/BlockPreviewUmbracoBuilderExtensions.cs rename to src/Umbraco.Community.BlockPreview/BlockPreviewUmbracoBuilderExtensions.cs diff --git a/src/Constants.cs b/src/Umbraco.Community.BlockPreview/Constants.cs similarity index 100% rename from src/Constants.cs rename to src/Umbraco.Community.BlockPreview/Constants.cs diff --git a/src/Controllers/BlockPreviewApiController.cs b/src/Umbraco.Community.BlockPreview/Controllers/BlockPreviewApiController.cs similarity index 95% rename from src/Controllers/BlockPreviewApiController.cs rename to src/Umbraco.Community.BlockPreview/Controllers/BlockPreviewApiController.cs index 1df56ea..fc5a35b 100644 --- a/src/Controllers/BlockPreviewApiController.cs +++ b/src/Umbraco.Community.BlockPreview/Controllers/BlockPreviewApiController.cs @@ -84,7 +84,7 @@ public async Task PreviewMarkup( if (page == null) { - return Ok("The page is not saved yet, so we can't create a preview. Save the page first."); + return Ok("
The page is not saved yet, so we can't create a preview. Save the page first.
"); } var currentCulture = GetCurrentCulture(page, culture); @@ -99,7 +99,7 @@ public async Task PreviewMarkup( } catch (Exception ex) { - markup = "Something went wrong rendering a preview."; + markup = $"
Something went wrong rendering a preview.
{ex.Message}
"; _logger.LogError(ex, "Error rendering preview for block {ContentTypeAlias}", data.ContentData.FirstOrDefault()?.ContentTypeAlias); } diff --git a/src/Extensions/BlockGridPreviewTemplateExtensions.cs b/src/Umbraco.Community.BlockPreview/Extensions/BlockGridPreviewTemplateExtensions.cs similarity index 58% rename from src/Extensions/BlockGridPreviewTemplateExtensions.cs rename to src/Umbraco.Community.BlockPreview/Extensions/BlockGridPreviewTemplateExtensions.cs index cc741f8..1d70e74 100644 --- a/src/Extensions/BlockGridPreviewTemplateExtensions.cs +++ b/src/Umbraco.Community.BlockPreview/Extensions/BlockGridPreviewTemplateExtensions.cs @@ -25,6 +25,19 @@ public static async Task GetPreviewBlockGridItemAreasHtmlAsync(thi return await html.GetBlockGridItemAreasHtmlAsync(item, template); } + public static async Task GetPreviewBlockGridItemAreasHtmlAsync(this IHtmlHelper html, BlockGridItem item, string template = BlockGridTemplateExtensions.DefaultItemAreasTemplate) + { + if (html.ViewData.IsBlockPreview()) + { + return await Task.FromResult( + new HtmlContentBuilder() + .AppendHtml(AREA_TEMPLATE) + ); + } + + return await html.GetBlockGridItemAreasHtmlAsync(item, template); + } + public static async Task GetPreviewBlockGridItemAreaHtmlAsync(this IHtmlHelper html, BlockGridArea area, string template = BlockGridTemplateExtensions.DefaultItemAreaTemplate) { if (html.ViewData.IsBlockPreview()) @@ -38,6 +51,19 @@ public static async Task GetPreviewBlockGridItemAreaHtmlAsync(this return await html.GetBlockGridItemAreaHtmlAsync(area, template); } + public static async Task GetPreviewBlockGridItemAreaHtmlAsync(this IHtmlHelper html, BlockGridArea area, string template = BlockGridTemplateExtensions.DefaultItemAreaTemplate) + { + if (html.ViewData.IsBlockPreview()) + { + return await Task.FromResult( + new HtmlContentBuilder() + .AppendHtml(AREA_TEMPLATE) + ); + } + + return await html.GetBlockGridItemAreaHtmlAsync(area, template); + } + public static async Task GetPreviewBlockGridItemAreaHtmlAsync(this IHtmlHelper html, BlockGridItem item, string template = BlockGridTemplateExtensions.DefaultItemAreaTemplate) { if (html.ViewData.IsBlockPreview()) @@ -51,11 +77,29 @@ public static async Task GetPreviewBlockGridItemAreaHtmlAsync(this return await html.GetBlockGridItemAreaHtmlAsync(item, template); } + public static async Task GetPreviewBlockGridItemAreaHtmlAsync(this IHtmlHelper html, BlockGridItem item, string template = BlockGridTemplateExtensions.DefaultItemAreaTemplate) + { + if (html.ViewData.IsBlockPreview()) + { + return await Task.FromResult( + new HtmlContentBuilder() + .AppendHtml($"") + ); + } + + return await html.GetBlockGridItemAreaHtmlAsync(item, template); + } + public static async Task GetPreviewBlockGridItemsHtmlAsync(this IHtmlHelper html, IEnumerable items, string template = BlockGridTemplateExtensions.DefaultItemsTemplate) { return await html.GetBlockGridItemsHtmlAsync(items, template); } + public static async Task GetPreviewBlockGridItemsHtmlAsync(this IHtmlHelper html, IEnumerable items, string template = BlockGridTemplateExtensions.DefaultItemsTemplate) + { + return await html.GetBlockGridItemsHtmlAsync(items, template); + } + private static bool IsBlockPreview(this ViewDataDictionary viewData) { if (viewData.ContainsKey("blockPreview")) diff --git a/src/Extensions/HttpRequestExtensions.cs b/src/Umbraco.Community.BlockPreview/Extensions/HttpRequestExtensions.cs similarity index 100% rename from src/Extensions/HttpRequestExtensions.cs rename to src/Umbraco.Community.BlockPreview/Extensions/HttpRequestExtensions.cs diff --git a/src/Helpers/ViewComponentHelperWrapper.cs b/src/Umbraco.Community.BlockPreview/Helpers/ViewComponentHelperWrapper.cs similarity index 100% rename from src/Helpers/ViewComponentHelperWrapper.cs rename to src/Umbraco.Community.BlockPreview/Helpers/ViewComponentHelperWrapper.cs diff --git a/src/Interfaces/IBackOfficeGridPreviewService.cs b/src/Umbraco.Community.BlockPreview/Interfaces/IBackOfficeGridPreviewService.cs similarity index 100% rename from src/Interfaces/IBackOfficeGridPreviewService.cs rename to src/Umbraco.Community.BlockPreview/Interfaces/IBackOfficeGridPreviewService.cs diff --git a/src/Interfaces/IBackOfficeListPreviewService.cs b/src/Umbraco.Community.BlockPreview/Interfaces/IBackOfficeListPreviewService.cs similarity index 100% rename from src/Interfaces/IBackOfficeListPreviewService.cs rename to src/Umbraco.Community.BlockPreview/Interfaces/IBackOfficeListPreviewService.cs diff --git a/src/Interfaces/IBackOfficePreviewService.cs b/src/Umbraco.Community.BlockPreview/Interfaces/IBackOfficePreviewService.cs similarity index 100% rename from src/Interfaces/IBackOfficePreviewService.cs rename to src/Umbraco.Community.BlockPreview/Interfaces/IBackOfficePreviewService.cs diff --git a/src/Interfaces/IViewComponentHelperWrapper.cs b/src/Umbraco.Community.BlockPreview/Interfaces/IViewComponentHelperWrapper.cs similarity index 100% rename from src/Interfaces/IViewComponentHelperWrapper.cs rename to src/Umbraco.Community.BlockPreview/Interfaces/IViewComponentHelperWrapper.cs diff --git a/src/NotificationHandlers/ServerVariablesParsingNotificationHandler.cs b/src/Umbraco.Community.BlockPreview/NotificationHandlers/ServerVariablesParsingNotificationHandler.cs similarity index 100% rename from src/NotificationHandlers/ServerVariablesParsingNotificationHandler.cs rename to src/Umbraco.Community.BlockPreview/NotificationHandlers/ServerVariablesParsingNotificationHandler.cs diff --git a/src/Services/BackOfficeGridPreviewService.cs b/src/Umbraco.Community.BlockPreview/Services/BackOfficeGridPreviewService.cs similarity index 100% rename from src/Services/BackOfficeGridPreviewService.cs rename to src/Umbraco.Community.BlockPreview/Services/BackOfficeGridPreviewService.cs diff --git a/src/Services/BackOfficeListPreviewService.cs b/src/Umbraco.Community.BlockPreview/Services/BackOfficeListPreviewService.cs similarity index 100% rename from src/Services/BackOfficeListPreviewService.cs rename to src/Umbraco.Community.BlockPreview/Services/BackOfficeListPreviewService.cs diff --git a/src/Services/BackOfficePreviewService.cs b/src/Umbraco.Community.BlockPreview/Services/BackOfficePreviewService.cs similarity index 100% rename from src/Services/BackOfficePreviewService.cs rename to src/Umbraco.Community.BlockPreview/Services/BackOfficePreviewService.cs diff --git a/src/Umbraco.Community.BlockPreview.csproj b/src/Umbraco.Community.BlockPreview/Umbraco.Community.BlockPreview.csproj similarity index 80% rename from src/Umbraco.Community.BlockPreview.csproj rename to src/Umbraco.Community.BlockPreview/Umbraco.Community.BlockPreview.csproj index ac65ac3..6ae3456 100644 --- a/src/Umbraco.Community.BlockPreview.csproj +++ b/src/Umbraco.Community.BlockPreview/Umbraco.Community.BlockPreview.csproj @@ -7,7 +7,7 @@ Umbraco.Community.BlockPreview Umbraco.Community.BlockPreview - 1.3.1 + 1.4.0 Rick Butterfield, Dave Woestenborghs, Matthew Wise @@ -24,6 +24,8 @@ snupkg true + + README.md @@ -34,9 +36,9 @@
- - - + + + @@ -44,17 +46,24 @@ true Always - + true buildTransitive - + True \ - + True \ + + + + true + Always + + diff --git a/src/ViewEngines/BlockPreviewViewEngineOptionsSetup.cs b/src/Umbraco.Community.BlockPreview/ViewEngines/BlockPreviewViewEngineOptionsSetup.cs similarity index 100% rename from src/ViewEngines/BlockPreviewViewEngineOptionsSetup.cs rename to src/Umbraco.Community.BlockPreview/ViewEngines/BlockPreviewViewEngineOptionsSetup.cs diff --git a/src/build/Our.Umbraco.BlockPreview.targets b/src/Umbraco.Community.BlockPreview/build/Our.Umbraco.BlockPreview.targets similarity index 100% rename from src/build/Our.Umbraco.BlockPreview.targets rename to src/Umbraco.Community.BlockPreview/build/Our.Umbraco.BlockPreview.targets diff --git a/src/build/Umbraco.Community.BlockPreview.targets b/src/Umbraco.Community.BlockPreview/build/Umbraco.Community.BlockPreview.targets similarity index 100% rename from src/build/Umbraco.Community.BlockPreview.targets rename to src/Umbraco.Community.BlockPreview/build/Umbraco.Community.BlockPreview.targets