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
| import React from 'react'; | |
| import { Head } from 'next/document'; | |
| import { cleanAmpPath } from 'next/dist/next-server/server/utils' | |
| function getOptionalModernScriptVariant(path: string) { | |
| if (process.env.__NEXT_MODERN_BUILD) { | |
| return path.replace(/\.js$/, '.module.js') | |
| } | |
| return path | |
| } |
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 Newtonsoft.Json.Linq; | |
| using Sitecore; | |
| using Sitecore.Data.Items; | |
| using Sitecore.Diagnostics; | |
| using Sitecore.LayoutService.Configuration; | |
| using Sitecore.LayoutService.ItemRendering; | |
| using Sitecore.Links; | |
| using Sitecore.Mvc.Presentation; | |
| namespace Nomad.Jss.CodeFirst.ItemRendering |
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 Counter = React.createClass({ | |
| getInitialState: function() { | |
| return {secondsElapsed: 0}; | |
| }, | |
| tick: function() { | |
| this.setState({secondsElapsed: this.state.secondsElapsed + 1}); | |
| }, | |
| componentDidMount: function() { | |
| this.interval = setInterval(this.tick, 1000); | |
| }, |
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
| private dynamic GetProps() | |
| { | |
| dynamic props = new ExpandoObject(); | |
| var dataSourceItem = GetDataSourceItem(); | |
| foreach (Field field in dataSourceItem.Fields) | |
| { | |
| if (field.Name.StartsWith("__")) | |
| { | |
| continue; |
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
| db.Interactions.aggregate([ | |
| { "$match": { "StartDateTime": { $gte: ISODate("2015-11-01T00:00:00.000Z"), | |
| $lt: ISODate("2015-11-01T03:00:00.000Z")}}}, | |
| { $project : { Pages : "$Pages" } }, | |
| // Un-wind the array's to access filtering | |
| { "$unwind": "$Pages" }, | |
| { "$unwind": "$Pages.PageEvents" }, | |
| // Group results to obtain the matched count per key | |
| { "$group": { |
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 map = function m() { | |
| for (var p = 0; p < this.Pages.length; p++) | |
| { | |
| if(this.Pages[p].PageEvents){ | |
| for (var e = 0; e < this.Pages[p].PageEvents.length; e++){ | |
| var key = this.Pages[p].PageEvents[e].Name; | |
| var text = this.Pages[p].PageEvents[e].Text; | |
| if(text && text.indexOf('=' > -1) && text.indexOf('&' > -1)){ | |
| var keys = text.split("&"); | |
| if(keys.length > 0) |
Built with blockbuilder.org
[ Launch: sitecorian ] 770b3d723cb8d80aa9af by sitecorian
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 config = new JetBrains.dotTrace.Api.SaveSnapshotProfilingConfig(@"C:\perflog\publish_profiling\") | |
| { | |
| ProfilingControlKind = JetBrains.dotTrace.Api.ProfilingControlKind.API, | |
| TempPath = @"C:\perflog\publish_profiling\temp", | |
| //changed this | |
| RedistPath = @"C:\perflog\Redist\", | |
| SavePath = @"C:\perflog\publish_profiling\", | |
| SnapshotFormat = JetBrains.dotTrace.Api.SnapshotFormat.Compressed, | |
| CoreLogMask = 6, | |
| }; |
NewerOlder