This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.Data.Sqlite; | |
using Umbraco.Cms.Core; | |
using Umbraco.Cms.Core.Composing; | |
/// <summary> | |
/// Ensure SQLite in-memory database is persisted for the whole application lifetime. | |
/// </summary> | |
internal sealed class SQLiteMemoryComposer : IComposer | |
{ | |
public void Compose(IUmbracoBuilder builder) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blueprint: | |
name: ZHA - Ecodim, 4 Channel remote | |
description: Control any light using the Ecodim remote on ZHA | |
domain: automation | |
input: | |
remote: | |
name: Remote controller | |
description: Remote to use | |
selector: | |
device: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using Newtonsoft.Json.Linq; | |
using Umbraco.Core; | |
using Umbraco.Core.Composing; | |
using Umbraco.Core.Models; | |
using Umbraco.Core.Models.Editors; | |
using Umbraco.Core.PropertyEditors; | |
using Umbraco.Core.Scoping; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Linq; | |
using Newtonsoft.Json; | |
using Newtonsoft.Json.Linq; | |
using Umbraco.Core; | |
using Umbraco.Core.Composing; | |
using Umbraco.Core.PropertyEditors.ValueConverters; | |
using Umbraco.Core.Services; | |
public class PruneImageCropperPropertyDataComposer : ComponentComposer<PruneImageCropperPropertyDataComponent> | |
{ } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
using System.Web.Http.Filters; | |
using Umbraco.Core.Composing; | |
using Umbraco.Core.Models; | |
using Umbraco.Core.PropertyEditors; | |
using Umbraco.Core.Services; | |
using Umbraco.Web.Editors; | |
using Umbraco.Web.Models.ContentEditing; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Optional cleanup for repeated tests | |
Remove-Item "Umbraco9" -Recurse -ErrorAction SilentlyContinue | |
Remove-Item "Umbraco9.sln" -ErrorAction SilentlyContinue | |
# Configure these values to automatically create a back-office user | |
#Set-Item Env:\UMBRACO__CMS__UNATTENDED__UNATTENDEDUSERNAME "Administrator" | |
#Set-Item Env:\UMBRACO__CMS__UNATTENDED__UNATTENDEDUSEREMAIL "umbraco@example.com" | |
#Set-Item Env:\UMBRACO__CMS__UNATTENDED__UNATTENDEDUSERPASSWORD "1234567890" | |
# Ensure the latest Umbraco templates are installed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using Umbraco.Core.Models.PublishedContent; | |
using Umbraco.Forms.Core.Services; | |
using Umbraco.Web; | |
public class PublishedContentPageService : IPageService | |
{ | |
protected readonly IUmbracoContextAccessor umbracoContextAccessor; | |
public PublishedContentPageService(IUmbracoContextAccessor umbracoContextAccessor) |