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
/* package.manifest... | |
* | |
* { | |
* "javascript" : ["~/App_Plugins/nunpublish/script.js"] | |
* } | |
*/ | |
(function () { | |
function directive(authResource) { |
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
//A PublishEventHandler catches the DataTypeService.Saved method as a developer workflow entry point; | |
//When the data type is saved this kicks off the generation and writes a model to our models folder | |
//This could be app_code if you don't use VS to build your solution, but we generate our ModelsBuilder models | |
//into a class which is then built as part of the solution | |
internal class PublishEventHandler : ApplicationEventHandler | |
{ | |
public const string FileSuffix = ".smartpropertytype.cs"; | |
protected override void ApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext) |
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
public class DefaultController : RenderMvcController | |
{ | |
[UmbracoDonutOutputCache(CacheProfile = "LongPageCache", | |
Options = OutputCacheOptions.NoCacheLookupForPosts & | |
OutputCacheOptions.ReplaceDonutsInChildActions, Order = 100)] | |
public override ActionResult Index(RenderModel model) | |
{ | |
return base.Index(model); | |
} | |
} |
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.Globalization; | |
using Umbraco.Core; | |
using Umbraco.Core.Configuration; | |
using Umbraco.Core.Configuration.UmbracoSettings; | |
using Umbraco.Core.Strings; | |
namespace Custom | |
{ | |
public class CustomApplicationEventHandler : ApplicationEventHandler | |
{ |
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
var audio,music,musicParse;audio="",musicParse=function(f){return eval("for(var t=0,S='RIFF_oO_WAVEfmt "+atob("EAAAAAEAAQBAHwAAQB8AAAEACAA")+"data';++t<3e5;)S+=String.fromCharCode("+f+")")},(music=function(){var a;return a="(t<<3)*[8/9,1,9/8,6/5,4/3,3/2,0][[0xd2d2c8,0xce4088,0xca32c8,0x8e4009][t>>14&3]>>(0x3dbe4688>>((t>>10&15)>9?18:t>>10&15)*3&7)*3&7]&255",audio=new Audio("data:audio/wav;base64,"+btoa(musicParse(a))),audio.play()})(); |
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.Generic; | |
using System.Globalization; | |
using Umbraco.Core; | |
using Umbraco.Core.Services; | |
using Umbraco.Web; | |
using Umbraco.Web.Editors; | |
using Umbraco.Web.Models.ContentEditing; | |
namespace MyWebsite | |
{ |
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
public class NestedContentEditorGroupHandler : ApplicationEventHandler | |
{ | |
protected override void OnApplicationStarted(object sender, EventArgs e) | |
{ | |
base.OnApplicationStarted(sender, e); | |
var dtMap = Mapper.FindTypeMapFor<IDataTypeDefinition, DataTypeBasic>(); | |
dtMap?.AddAfterMapAction((s, d) => | |
{ | |
var src = (IDataTypeDefinition) s; |
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 MyProj.Extensions; | |
using MyProj.Models; | |
using Umbraco.Core; | |
using Umbraco.Core.Persistence; | |
namespace MyProj.Helpers | |
{ |
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
// -------------------------------------------------------------------------------------------------------------------- | |
// <copyright file="ContentExtensions.cs" company="Colours B.V."> | |
// © Colours B.V. 2015 | |
// </copyright> | |
// <summary> | |
// The content extensions. | |
// </summary> | |
// -------------------------------------------------------------------------------------------------------------------- | |
namespace Project.Web.Core.Extensions |
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
robocopy /PURGE <empty_dir> <directory_to_remove> |