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
#!/bin/sh | |
# Pre-commit Git hook | |
# It runs Sitecore CLI Serialization check | |
# And doesn't allow to perform commit if serialization is broken | |
validate=$(dotnet sitecore ser validate) | |
regex_errors="Errors were detected" | |
count=$(echo "${validate}" | grep -c "${regex_errors}") | |
if test $count -gt 0 | |
then | |
echo "Sitecore serialization errors were detected" |
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 GraphQL.Types; | |
using Newtonsoft.Json; | |
using Sitecore.Configuration; | |
using Sitecore.Data.Items; | |
using Sitecore.Data.Fields; | |
using Sitecore.Diagnostics; | |
using Sitecore.LayoutService.Serialization.FieldSerializers; | |
using Sitecore.LayoutService.Serialization.ItemSerializers; | |
using Sitecore.LayoutService.Serialization.Pipelines.GetFieldSerializer; | |
using Sitecore.Services.GraphQL.Content.GraphTypes; |
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
module.exports = function () { | |
var config = { | |
websiteRoot: "C:\\inetpub\\wwwroot\\sc911.sc", | |
sitecoreLibraries: "C:\\inetpub\\wwwroot\\sc911.sc\\bin", | |
hostName: "http://sc911.sc", | |
solutionName: "sc911", | |
buildConfiguration: "Debug", | |
runCleanBuilds: false, | |
toolsVersion: "16.0" | |
} |
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.Text; | |
using System.Threading.Tasks; | |
namespace SessionDeserialize | |
{ | |
public class HexEncoding | |
{ |
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; | |
using System.Collections.Concurrent; | |
using System.IO; | |
using System.Reflection; | |
using System.Xml; | |
using Sitecore.Caching; | |
using Sitecore.Caching.Generics; | |
using Sitecore.Configuration; | |
using Sitecore.Data; |
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
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HtmlCache.aspx.cs" Inherits="Sitecore.Utils.HtmlCacheList" %> | |
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<body> | |
<form id="form1" runat="server"> | |
<asp:Repeater ID="WebsiteCache" runat="server" ItemType="System.Tuple`2 [System.String, System.String]"> | |
<HeaderTemplate> | |
<table> | |
</HeaderTemplate> | |
<ItemTemplate> |