Skip to content
This repository has been archived by the owner on Dec 6, 2019. It is now read-only.

Changing structures to static classes to store template references #471

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions src/Feature/Accounts/code/Templates.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
{
using Sitecore.Data;

public struct Templates
public static class Templates
{
public struct AccountsSettings
public static class AccountsSettings
{
public static readonly ID ID = new ID("{59D216D1-035C-4497-97B4-E3C5E9F1C06B}");

public struct Fields
public static class Fields
{
public static readonly ID AccountsDetailsPage = new ID("{ED71D374-8C33-4561-991D-77482AE01330}");
public static readonly ID RegisterPage = new ID("{71962360-10D8-4B98-BB8D-57660CE11127}");
Expand All @@ -20,44 +20,44 @@ public struct Fields
}
}

public struct MailTemplate
public static class MailTemplate
{
public static readonly ID ID = new ID("{26DF8F38-7E1B-43D2-85DD-68DF05FA276B}");

public struct Fields
public static class Fields
{
public static readonly ID From = new ID("{8605948C-60FB-46B8-8AAA-4C52561B53BC}");
public static readonly ID Subject = new ID("{0F45DF05-546F-462D-97C0-BA4FB2B02564}");
public static readonly ID Body = new ID("{1519CCAD-ED26-4F60-82CA-22079AF44D16}");
}
}

public struct Interest
public static class Interest
{
public static readonly ID ID = new ID("{C9B1855E-CA80-4414-B5BA-956CB67DC5A9}");

public struct Fields
public static class Fields
{
public static readonly ID Title = new ID("{1FBE5200-2C62-4A32-BA84-CFFE3CF665D3}");
}
}

public struct ProfileSettigs
public static class ProfileSettigs
{
public static readonly ID ID = new ID("{2D9AA1E4-3359-4F02-9EAA-5CF972FD990D}");

public struct Fields
public static class Fields
{
public static readonly ID UserProfile = new ID("{378B7D87-5775-4EB6-86B7-282D5359B1C6}");
public static readonly ID InterestsFolder = new ID("{021AA3F7-206F-4ACC-9538-F6D7FE86B168}");
}
}

public struct UserProfile
public static class UserProfile
{
public static readonly ID ID = new ID("{696D276B-786A-4D1E-B8BB-8E139DB7BE7C}");

public struct Fields
public static class Fields
{
public static readonly ID FirstName = new ID("{E7BC8A3E-3201-4556-B2FF-FF4DB04DB081}");
public static readonly ID LastName = new ID("{EE21278F-4F83-4A10-8890-66B957F3D312}");
Expand All @@ -66,11 +66,11 @@ public struct Fields
}
}

public struct LoginTeaser
public static class LoginTeaser
{
public static readonly ID ID = new ID("{EF38D9E6-313C-491C-8648-79436D10091C}");

public struct Fields
public static class Fields
{
public static readonly ID Title = new ID("{D9843186-ED10-47D8-8CC7-511AC670B6B4}");
public static readonly ID Summary = new ID("{FFAB401B-8D7C-4172-A82A-AE32B7D2C6C1}");
Expand Down
14 changes: 7 additions & 7 deletions src/Feature/Demo/code/Templates.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@
{
using Sitecore.Data;

public struct Templates
public static class Templates
{
public struct ProfilingSettings
public static class ProfilingSettings
{
public static readonly ID ID = new ID("{C6D4DDD5-B912-4C1A-A3A3-E1D90E4D0939}");

public struct Fields
public static class Fields
{
public static readonly ID SiteProfiles = new ID("{2A84ECA4-68BB-4451-B4AC-98EA71A5A3DC}");
}
}

public struct DemoContent
public static class DemoContent
{
public static readonly ID ID = new ID("{1224B40E-7B6C-42B3-A6D0-C40A6C61345C}");

public struct Fields
public static class Fields
{
public static readonly ID HtmlContent = new ID("{0BC0AEDF-A6D0-4F74-933C-BD1779CD40B2}");
public static readonly ID Referrer = new ID("{D28EFE17-C491-47C0-B62D-934DC9DA38A4}");
Expand All @@ -39,11 +39,11 @@ public struct Fields
}
}

public struct Token
public static class Token
{
public static readonly ID ID = new ID("{A7EBF38A-5F66-4579-92D1-568A8BA50293}");

public struct Fields
public static class Fields
{
public static readonly string TokenValue = "Token Value";
}
Expand Down
6 changes: 3 additions & 3 deletions src/Feature/Identity/code/Templates.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
{
using Sitecore.Data;

public struct Templates
public static class Templates
{
public struct Identity
public static class Identity
{
public static readonly ID ID = new ID("{FA8DE5B9-D5D8-40A7-866A-23AF4F5A9629}");

public struct Fields
public static class Fields
{
public static readonly ID Logo = new ID("{E748D808-64C1-4DEC-9718-F35CF9689E4B}");
public static readonly ID LogoTagLine = new ID("{31D027BB-FAB5-4E1A-A66D-9F5B0FD4F005}");
Expand Down
6 changes: 3 additions & 3 deletions src/Feature/Language/code/Templates.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
{
using Sitecore.Data;

public struct Templates
public static class Templates
{
public struct LanguageSettings
public static class LanguageSettings
{
public static readonly ID ID = new ID("{748EBA96-3F0C-4F45-8AFB-DE8DCC707B84}");

public struct Fields
public static class Fields
{
public static readonly ID SupportedLanguages = new ID("{5F115B6D-6052-4C7E-B442-AE923A7E9BD2}");
}
Expand Down
8 changes: 4 additions & 4 deletions src/Feature/Maps/code/Templates.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@
{
using Data;

public struct Templates
public static class Templates
{
public struct MapPoint
public static class MapPoint
{
public static readonly ID ID = new ID("{1E6A8C8C-6646-4776-8AB4-615265669633}");

public struct Fields
public static class Fields
{
public static readonly ID Name = new ID("{F12C22BB-E57D-4FAB-96E1-1229E4E7FF0E}");
public static readonly ID Address = new ID("{0295C01D-214C-4C23-AFC2-3F0B4E88B643}");
public static readonly ID Location = new ID("{F686AC8E-1D33-45DB-8E1A-1B40CD491E7A}");
}
}

public struct MapPointsFolder
public static class MapPointsFolder
{
public static readonly ID ID = new ID("{31713995-C6BF-4CCB-8807-198493508AFA}");
}
Expand Down
22 changes: 11 additions & 11 deletions src/Feature/Media/code/Templates.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,55 +2,55 @@
{
using Sitecore.Data;

public struct Templates
public static class Templates
{
public struct BackgroundType
public static class BackgroundType
{
public static readonly ID ID = new ID("{55A5BDAD-EB69-40F5-8195-CDA182E48EE4}");

public struct Fields
public static class Fields
{
public static readonly ID Class = new ID("{AF6B8E5C-10A2-46BE-8310-407434EC1055}");
}
}

public struct HasMedia
public static class HasMedia
{
public static readonly ID ID = new ID("{A44E450E-BA3F-4FAF-9C53-C63241CC34EB}");

public struct Fields
public static class Fields
{
public static readonly ID Title = new ID("{63DDA48B-B0CB-45A7-9A1B-B26DDB41009B}");
public static readonly ID Description = new ID("{302C9F8D-F703-4F76-A4AB-73D222648232}");
public static readonly ID Thumbnail = new ID("{4FF62B0A-D73B-4436-BEA2-023154F2FFC4}");
}
}

public struct HasMediaSelector
public static class HasMediaSelector
{
public static readonly ID ID = new ID("{AE4635AF-CFBF-4BF6-9B50-00BE23A910C0}");

public struct Fields
public static class Fields
{
public static readonly ID MediaSelector = new ID("{72EA8682-24D2-4BEB-951C-3E2164974105}");
}
}

public struct HasMediaImage
public static class HasMediaImage
{
public static readonly ID ID = new ID("{FAE0C913-1600-4EBA-95A9-4D6FD7407E25}");

public struct Fields
public static class Fields
{
public static readonly ID Image = new ID("{9F51DEAD-AD6E-41C2-9759-7BE17EB474A4}");
}
}

public struct HasMediaVideo
public static class HasMediaVideo
{
public static readonly ID ID = new ID("{5A1B724B-B396-4C48-A833-655CD19018E1}");

public struct Fields
public static class Fields
{
public static readonly ID VideoLink = new ID("{2628705D-9434-4448-978C-C3BF166FA1EB}");
}
Expand Down
14 changes: 7 additions & 7 deletions src/Feature/Metadata/code/Templates.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
{
using Sitecore.Data;

public struct Templates
public static class Templates
{
public struct PageMetadata
public static class PageMetadata
{
public static ID ID = new ID("{D88CCD80-D851-470D-AF11-701FF23504E7}");

public struct Fields
public static class Fields
{
public static readonly ID BrowserTitle = new ID("{CA0479CE-0BFE-4522-83DE-BA688B380A78}");
public static readonly ID Description = new ID("{BB7A38C0-323C-4F81-8EB9-288ABF7C4638}");
Expand All @@ -19,21 +19,21 @@ public struct Fields
}
}

public struct SiteMetadata
public static class SiteMetadata
{
public static readonly ID ID = new ID("{CF38E914-9298-47CC-9205-210553E79F97}");

public struct Fields
public static class Fields
{
public static readonly ID SiteBrowserTitle = new ID("{235AE392-97AC-4822-BE38-837DA3E7724E}");
}
}

public struct Keyword
public static class Keyword
{
public static ID ID = new ID("{409F883A-0DC8-431A-9508-7316B59B92BE}");

public struct Fields
public static class Fields
{
public static readonly ID Keyword = new ID("{7BDBBA5F-C7E6-45C2-82F5-010DED013588}");
}
Expand Down
6 changes: 3 additions & 3 deletions src/Feature/Multisite/code/Templates.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
{
using Sitecore.Data;

public class Templates
public static class Templates
{
public struct SiteConfiguration
public static class SiteConfiguration
{
public static readonly ID ID = new ID("{0FCCFE4F-B087-498F-BD26-5CDFFC522C9A}");

public struct Fields
public static class Fields
{
public static readonly ID ShowInMenu = new ID("{12537182-F35C-403F-AFB5-747D55C450B8}");
public static readonly ID Title = new ID("{F07811D3-41E9-440A-9D81-310C1D78BED6}");
Expand Down
16 changes: 8 additions & 8 deletions src/Feature/Navigation/code/Templates.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,40 +2,40 @@
{
using Sitecore.Data;

public struct Templates
public static class Templates
{
public struct NavigationRoot
public static class NavigationRoot
{
public static readonly ID ID = new ID("{F9F4FC05-98D0-4C62-860F-F08AE7F0EE25}");
}

public struct Navigable
public static class Navigable
{
public static readonly ID ID = new ID("{A1CBA309-D22B-46D5-80F8-2972C185363F}");

public struct Fields
public static class Fields
{
public static readonly ID ShowInNavigation = new ID("{5585A30D-B115-4753-93CE-422C3455DEB2}");
public static readonly ID NavigationTitle = new ID("{1B483E91-D8C4-4D19-BA03-462074B55936}");
public static readonly ID ShowChildren = new ID("{68016087-AA00-45D6-922A-678475C50D4A}");
}
}

public struct Link
public static class Link
{
public static readonly ID ID = new ID("{A16B74E9-01B8-439C-B44E-42B3FB2EE14B}");

public struct Fields
public static class Fields
{
public static readonly ID Link = new ID("{FE71C30E-F07D-4052-8594-C3028CD76E1F}");
}
}

public struct LinkMenuItem
public static class LinkMenuItem
{
public static readonly ID ID = new ID("{18BAF6B0-E0D6-4CCE-9184-A4849343E7E4}");

public struct Fields
public static class Fields
{
public static readonly ID Icon = new ID("{2C24649E-4460-4114-B026-886CFBE1A96D}");
public static readonly ID DividerBefore = new ID("{4231CD60-47C1-42AD-B838-0A6F8F1C4CFB}");
Expand Down
8 changes: 4 additions & 4 deletions src/Feature/News/code/Templates.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
{
using Sitecore.Data;

public struct Templates
public static class Templates
{
public struct NewsArticle
public static class NewsArticle
{
public static readonly ID ID = new ID("{2F75C8AF-35FC-4A88-B585-7595203F442C}");

public struct Fields
public static class Fields
{
public static readonly ID Title = new ID("{BD9ECD4A-C0B0-4233-A3CD-D995519AC87B}");
public const string Title_FieldName = "NewsTitle";
Expand All @@ -25,7 +25,7 @@ public struct Fields
}
}

public struct NewsFolder
public static class NewsFolder
{
public static readonly ID ID = new ID("{74889B26-061C-4D6A-8CDB-422665FC34EC}");
}
Expand Down
2 changes: 1 addition & 1 deletion src/Feature/PageContent/code/Renderings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
using Sitecore.Data;

public struct Renderings
public static class Renderings
{
public static readonly ID PageTeaser = new ID("{07AB411C-F894-4144-B069-48EF67431D32}");
}
Expand Down
Loading