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 System.Web; | |
using System.Web.Routing; | |
using EPiServer; | |
using EPiServer.Core; | |
using EPiServer.Framework.Cache; | |
using EPiServer.Globalization; | |
using EPiServer.Web; |
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
import blockRouter from '@/router/block-router' | |
// TODO ssr move to lib and reuse with entry-server.js | |
function loadBlocksAsyncData({ store, route, model }) { | |
const contentAreas = Object.keys(model) | |
.filter(key => key.endsWith('ContentArea')) | |
.map(key => model[key]) | |
const blockPromises = contentAreas | |
.map(blocks => blockRouter.resolveComponents(blocks)) |
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
[user] | |
name = Pavel Nezhencev | |
email = pavel.nezhencev@creuna.com | |
[core] | |
autocrlf = true | |
editor = code --wait | |
[push] | |
default = simple | |
[alias] | |
ll = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all |
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.Configuration; | |
using System.Linq; | |
using System.Net.Http; | |
using System.Text.RegularExpressions; | |
using System.Threading.Tasks; | |
using System.Web.Hosting; | |
using System.Web.Mvc; |
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.Globalization; | |
using System.Linq; | |
using System.Text; | |
using EPiServer; | |
using EPiServer.Core; | |
using EPiServer.DataAccess; | |
using EPiServer.PlugIn; | |
using EPiServer.Scheduler; |
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 System.Web.Mvc; | |
using EPiServer.Core; | |
using EPiServer.GoogleAnalytics.Models; | |
namespace EPiServer.GoogleAnalytics.Controllers | |
{ | |
// Fixes Google Analytics context gadget for multi-hostname websites or dedicated edit server. |
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
[ModuleDependency(typeof(EPiServer.Commerce.Initialization.InitializationModule))] | |
public class IocConfig : IConfigurableModule | |
{ | |
public void ConfigureContainer(ServiceConfigurationContext context) | |
{ | |
context.Container.EjectAllInstancesOf<ICatalogContentBuilder>(); | |
context.Container.Configure(ConfigureContainer); | |
DependencyResolver.SetResolver(new StructureMap.StructureMapDependencyResolver(context.Container)); |
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
private static void WriteObject(object obj, int indent = 0, string suffix = null) | |
{ | |
foreach (var prop in obj.GetType().GetProperties()) | |
{ | |
var value = prop.GetValue(obj); | |
if (prop.PropertyType.FullName.StartsWith("RDB") && !prop.PropertyType.IsEnum && value != null) | |
{ | |
Console.Write(new string(' ', indent)); | |
Console.WriteLine(prop.Name + ":"); |
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 https = require('https'); | |
var urlParse = require('url').parse; | |
function request(method, url, headers, body, callback) { | |
if (typeof body == 'function') { | |
callback = body; | |
body = undefined; | |
} | |
var parsedUrl = urlParse(url); |
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.IO; | |
using System.Linq; | |
using System.Text; | |
using System.Web.Hosting; | |
using EPiServer; | |
using EPiServer.BaseLibrary.Scheduling; | |
using EPiServer.Commerce.Catalog.ContentTypes; | |
using EPiServer.Core; |