This file contains hidden or 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 Jumoo.uSync.BackOffice; | |
| using Jumoo.uSync.BackOffice.Handlers; | |
| using Jumoo.uSync.BackOffice.Helpers; | |
| using Jumoo.uSync.Core; | |
| using Jumoo.uSync.Core.Extensions; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Xml.Linq; |
This file contains hidden or 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
| namespace MyApplication.Components | |
| { | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using Umbraco.Core.Composing; | |
| using Umbraco.Core.Configuration.UmbracoSettings; | |
| using Umbraco.Core.Events; | |
| using Umbraco.Core.Models.Entities; | |
| using Umbraco.Core.Services.Implement; |
This file contains hidden or 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.Web.Mvc; | |
| using Umbraco.Web.Models; | |
| using Umbraco.Web; | |
| using Umbraco.Core.Xml; | |
| using Umbraco.Web.Mvc; | |
| namespace MyWebsite.Controllers | |
| { | |
| public class MyController : RenderMvcController | |
| { |
This file contains hidden or 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
| angular.module("umbraco.directives") | |
| .directive('simpledatepicker', function ($parse, $filter, assetsService) { | |
| return { | |
| restrict: 'E', | |
| scope: { | |
| field: '=' | |
| }, | |
| controller: function ($scope, $element) { | |
| assetsService.loadCss('/umbraco/lib/datetimepicker/bootstrap-datetimepicker.min.css').then(function () { | |
| var filesToLoad = ["/umbraco/lib/moment/moment-with-locales.js", |
This file contains hidden or 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 moment = require('moment'); | |
| // Allows dates to be offset in the past rather than right now. offset format "hh:mm:ss". | |
| // "24:00:00" would be 24hrs in the past. | |
| var offsetValue = pm.globals.get("offset"); | |
| var offset = moment.duration(offsetValue); | |
| // Determines the duration between start & end dates format "hh:mm:ss" | |
| // "00:30:00" would be a 30 minute delay. | |
| var durationValue = pm.globals.get("duration"); |
This file contains hidden or 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 Umbraco.Core.Logging; | |
| using Umbraco.Core.Persistence; | |
| using Umbraco.Core.Persistence.Migrations; | |
| using Umbraco.Core.Persistence.SqlSyntax; | |
| namespace MyApp.Migrations | |
| { | |
| [Migration("1.1.0", 1, MyCustomSectionMigrationConstants.ProductName)] | |
| public class AddCustomPropertyToBeAddedLaterToMyPocoTable : MigrationBase |
This file contains hidden or 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 Umbraco.Core.Logging; | |
| using Umbraco.Core.Persistence.Migrations; | |
| using Umbraco.Core.Persistence.SqlSyntax; | |
| namespace My.Website.Migrations | |
| { | |
| public abstract class CustomMigrationBase : MigrationBase | |
| { | |
| public CustomMigrationBase(ISqlSyntaxProvider sqlSyntax, ILogger logger) : base(sqlSyntax, logger) |
This file contains hidden or 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 hidden or 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
| { | |
| javascript: [ | |
| '~/App_Plugins/YourPackage/your.controller.js', | |
| '~/App_Plugins/YourPackage/umbraco-editor-with-config.js', | |
| ] | |
| } |
NewerOlder