Giter Site home page Giter Site logo

episerver / alloydemokit Goto Github PK

View Code? Open in Web Editor NEW
69.0 38.0 72.0 539.86 MB

A version of the Alloy reference site containing additional features for demoing purposes

License: Apache License 2.0

ASP 5.33% C# 53.55% CSS 3.45% JavaScript 24.40% HTML 13.28%

alloydemokit's Introduction

AlloyDemoKit

A version of the Alloy reference site containing additional features for demoing purposes. This is not intended to be a starter solution but provides the ability to showcase a number of features and add-ons that may be needed for a demo.

See the wiki for more information

The site can be re-designed or updated quite easily. There are a number of useful block and page types and Find is used by default for search.

Note: Add-ons and packages installed will need to be configured. For example, Social Reach, Goolge Analytics, etc. If you are making commits to AlloyDemoKit you must ensure that you have removed any configuration that is specific to your demos.

alloydemokit's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

alloydemokit's Issues

Not able to add criteria to visitor group

The new "VisitorGroupUIStyling" pieces are breaking visitor group UI. I am unable to drop the criteria when building a new visitor group.

Tested in latest Chrome.

Cannot login to alloy

I cloned the repo and I'm running it locally.

Frontpage works ok. When I try to access backoffice I see login screen, I enter credentials from https://github.com/episerver/AlloyDemoKit/wiki/Logins and I'm being redirected back to login page.

Any ideas why / what is missing? (note: when I use random password I'm being redirected to login page with "login failed" message. If I enter proper credentials there's a redirect but without any message)

Current master branch not working

Step to reproduce

Check out the master, build solution and start without debugging receiving the following error

500 - Internal server error.

Error details

Exception has been thrown by the target of an invocation. at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) at System.Activator.CreateInstance(Type type, Boolean nonPublic) at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture) at System.Web.HttpRuntime.CreateNonPublicInstance(Type type, Object[] args) at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) Initialize action failed for Initialize on class EPiServer.Shell.ShellInitialization, EPiServer.Shell, Version=11.17.1.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7 at EPiServer.Framework.Initialization.InitializationEngine.InitializeModules() at EPiServer.Framework.Initialization.InitializationEngine.ExecuteTransition(Boolean continueTransitions) at EPiServer.Framework.Initialization.InitializationEngine.Initialize() at EPiServer.Framework.Initialization.InitializationModule.<>c.<FrameworkInitialization>b__7_0(InitializationEngine e) at EPiServer.Framework.Initialization.InitializationModule.EngineExecute(HostType hostType, Action1 engineAction) at EPiServer.Framework.Initialization.InitializationModule.FrameworkInitialization(HostType hostType) at EPiServer.Global..ctor() at AlloyDemoKit.EPiServerApplication..ctor() at ASP.global_asax..ctor() Could not load file or assembly 'System.IO.Compression, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified. at EPiServer.Web.Hosting.ZipArchiveVirtualPathProvider.ContainsFileEntry(String virtualPath) at EPiServer.Web.Hosting.ZipArchiveVirtualPathProvider.FileExists(String virtualPath) at EPiServer.Find.Framework.UI.AssemblyResourceProvider.FileExists(String virtualPath) at EPiServer.Web.Hosting.VirtualPathNonUnifiedProvider.FileExists(String virtualPath) at EPiServer.Shell.Modules.ModuleFinder.ReadManifest(String manifestVirtualPath) at EPiServer.Shell.Modules.ModuleFinder.GetModuleInDirectory(String routeBasePath, String moduleResourcePath, IEnumerable1 configuredAssemblyNames, AutoDiscoveryLevel discoveryMode, String configuredName) at EPiServer.Shell.Modules.ConfigModuleProvider.<>c__DisplayClass7_0.<GetConfiguredModules>b__0(ModuleDetails i) at System.Linq.Enumerable.WhereSelectListIterator2.MoveNext() at System.Linq.Enumerable.WhereEnumerableIterator1.MoveNext() at System.Collections.Generic.List1..ctor(IEnumerable1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source) at EPiServer.Shell.Modules.ConfigModuleProvider.GetConfiguredModules(ModuleOptionsBase moduleInfo) at EPiServer.Shell.Modules.ConfigModuleProvider.GetModules() at EPiServer.Shell.ShellInitialization.<>c.b__16_0(IModuleProvider p) at System.Linq.Enumerable.d__172.MoveNext() at System.Collections.Generic.List1..ctor(IEnumerable1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source) at EPiServer.Shell.Modules.ShellModule.MergeDuplicateModules(IEnumerable`1 modules) at EPiServer.Shell.ShellInitialization.GetConfiguredModules(IServiceLocator locator) at EPiServer.Shell.ShellInitialization.Initialize(InitializationEngine context) at EPiServer.Framework.Initialization.Internal.ModuleNode.<>c__DisplayClass2_0.b__0() at EPiServer.Framework.Initialization.Internal.ModuleNode.Execute(Action a, String key) at EPiServer.Framework.Initialization.Internal.ModuleNode.Initialize(InitializationEngine context) at EPiServer.Framework.Initialization.InitializationEngine.InitializeModules() Could not load file or assembly 'System.IO.Compression, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified.

`

Database version issue

The database 'alloydemokit' cannot be opened because it is version 869. This server supports version 852 and earlier. A downgrade path is not supported.
Could not open new database 'alloydemokit'. CREATE DATABASE is aborted.
Is it possible to solve this? may make the database compatible with older sql server?
That would be really nice

Localization Issue/ Error

When I run the Alloy Demo Kit I am getting the following error. It appears to be an issue with the localization services not being able to find the resource key? Not quite sure, but I can sometime get past this with an IIS Reset.

Error:
Collection was modified; enumeration operation may not execute.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: Collection was modified; enumeration operation may not execute.

Source Error:

Line 44: string value;
Line 45:
Line 46: if(!LocalizationService.Service.TryGetString(resurceKey, out value))
Line 47: {
Line 48: value = resurceKey;

Error when first loading AlloyDemoKit: There is no build provider registered for the extension '.cshtml'.

When you first start AlloyDemoKit you may encounter the following error:

There is no build provider registered for the extension '.cshtml'.

The solution to this issue is to:

  • Change the optimizeCompilations attribute of the element to "false"
  • Clean the solution
  • Rebuild
  • Delete temporary ASP.net files: C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files

The solution should resolve itself after that

Missing SearchPageController in the solution

Solution does not reference SearchPageController.cs, but the file is available in the repository.

Either include the controller in the solution or remove the file from repository.

A/B Test images not showing

Maybe since the image resizer got changed? I can't see how though... or it could be the new submitted form KPI?

database read-only error

I pulled down the latest master and ran into the following error

Failed to update database "alloydemokit" because the database is read-only.

Can anyone help with this issue?

Getting 400 Bad request error for episerver find

Line 36 of ClosestLocationBlockController.cs

  •   $exception  {"The remote server returned an error: (400) Bad Request.\r\nSearchPhaseExecutionException[Failed to execute phase [query], all shards failed; shardFailures {[xIimx-ItQgixbBifpr87Eg][fulgore_celadon][0]: RemoteTransportException[[euw1afinddev01esd01][inet[/10.54.3.201:9300]][search/phase/query]]; nested: SearchParseException[[fulgore_celadon][0]: query[filtered(ConstantScore(+NotFilter(cache(___types:EPiServer.Core.IContent)) cache(IsDeleted$$bool:false) ++NotFilter(cache(___types:EPiServer.Core.ILocalizable)) +NotFilter(cache(___types:EPiServer.Core.IVersionable)) +cache(___types:EPiServer.Core.ILocalizable) +NotFilter(cache(___types:EPiServer.Core.IVersionable)) +cache(Language.Name$$string:en) +NotFilter(cache(___types:EPiServer.Core.ILocalizable)) +cache(___types:EPiServer.Core.IVersionable) ++cache(Status:4) +cache(StartPublishedNormalized$$date:[0001-01-01T05:00:00Z TO 2015-10-28T14:20:00Z]) +NotFilter(cache(BooleanFilter(StopPublish$$date:[\* TO _]))) cache(StopPublish$$date:{2015-10-28T14:20:00Z TO *]) +NotFilter(cache(BooleanFilter(PublishedInLanguage.en.StopPublish$$date:[_ TO _]))) cache(PublishedInLanguage.en.StopPublish$$date:{2015-10-28T14:20:00Z TO *]) +cache(PublishedInLanguage.en.StartPublish$$date:[0001-01-01T05:00:00Z TO 2015-10-28T14:20:00Z]) +NotFilter(cache(___types:EPiServer.Security.IContentSecurable)) cache(UsersWithReadAccess$$string.lowercase:) cache(RolesWithReadAccess$$string:Anonymous RolesWithReadAccess$$string:Everyone) +cache(___types:EPiServer.Core.IContent)))->cache(___types:AlloyDemoKit.Models.Pages.LocationPage)],from[-1],size[1]: Parse Failure [Failed to parse source [{\"size\":1,\"query\":{\"filtered\":{\"query\":{\"constant_score\":{\"filter\":{\"and\":[{\"or\":[{\"not\":{\"filter\":{\"term\":{\"___types\":\"EPiServer.Core.IContent\"}}}},{\"term\":{\"IsDeleted$$bool\":false}}]},{\"or\":[{\"and\":[{\"not\":{\"filter\":{\"term\":{\"___types\":\"EPiServer.Core.ILocalizable\"}}}},{\"not\":{\"filter\":{\"term\":{\"___types\":\"EPiServer.Core.IVersionable\"}}}}]},{\"and\":[{\"term\":{\"___types\":\"EPiServer.Core.ILocalizable\"}},{\"not\":{\"filter\":{\"term\":{\"___types\":\"EPiServer.Core.IVersionable\"}}}},{\"term\":{\"Language.Name$$string\":\"en\"}}]},{\"and\":[{\"not\":{\"filter\":{\"term\":{\"___types\":\"EPiServer.Core.ILocalizable\"}}}},{\"term\":{\"___types\":\"EPiServer.Core.IVersionable\"}},{\"and\":[{\"term\":{\"Status\":4}},{\"range\":{\"StartPublishedNormalized$$date\":{\"from\":\"0001-01-01T05:00:00Z\",\"to\":\"2015-10-28T14:20:00Z\",\"include_lower\":true,\"include_upper\":true}}},{\"or\":[{\"not\":{\"filter\":{\"exists\":{\"field\":\"StopPublish$$date\"}}}},{\"range\":{\"StopPublish$$date\":{\"from\":\"2015-10-28T14:20:00Z\",\"include_lower\":false}}}]}]}]},{\"and\":[{\"or\":[{\"not\":{\"filter\":{\"exists\":{\"field\":\"PublishedInLanguage.en.StopPublish$$date\"}}}},{\"range\":{\"PublishedInLanguage.en.StopPublish$$date\":{\"from\":\"2015-10-28T14:20:00Z\",\"include_lower\":false}}}]},{\"range\":{\"PublishedInLanguage.en.StartPublish$$date\":{\"from\":\"0001-01-01T05:00:00Z\",\"to\":\"2015-10-28T14:20:00Z\",\"include_lower\":true,\"include_upper\":true}}}]}]},{\"or\":[{\"not\":{\"filter\":{\"term\":{\"___types\":\"EPiServer.Security.IContentSecurable\"}}}},{\"term\":{\"UsersWithReadAccess$$string.lowercase\":\"\"}},{\"terms\":{\"RolesWithReadAccess$$string\":[\"Everyone\",\"Anonymous\"]}}]},{\"term\":{\"___types\":\"EPiServer.Core.IContent\"}}]}}},\"filter\":{\"term\":{\"___types\":\"AlloyDemoKit.Models.Pages.LocationPage\"}}}},\"sort\":[{\"_geo_distance\":{\"Coordinates$$geo\":{\"lat\":39.8442,\"lon\":-85.974},\"order\":\"asc\"}}],\"fields\":[\"___types\",\"ContentLink.ID$$number\",\"ContentLink.ProviderName$$string\",\"Language.Name$$string\"]}]]]; nested: ElasticSearchIllegalArgumentException[failed to find mapper for [Coordinates$$geo] for geo distance based sort]; }{[i6Gjg-PsSGqclQQFnOreBw][fulgore_celadon][1]: SearchParseException[[fulgore_celadon][1]: query[filtered(ConstantScore(+NotFilter(cache(___types:EPiServer.Core.IContent)) cache(IsDeleted$$bool:false) ++NotFilter(cache(___types:EPiServer.Core.ILocalizable)) +NotFilter(cache(___types:EPiServer.Core.IVersionable)) +cache(___types:EPiServer.Core.ILocalizable) +NotFilter(cache(___types:EPiServer.Core.IVersionable)) +cache(Language.Name$$string:en) +NotFilter(cache(___types:EPiServer.Core.ILocalizable)) +cache(___types:EPiServer.Core.IVersionable) ++cache(Status:4) +cache(StartPublishedNormalized$$date:[0001-01-01T05:00:00Z TO 2015-10-28T14:20:00Z]) +NotFilter(cache(BooleanFilter(StopPublish$$date:[_ TO _]))) cache(StopPublish$$date:{2015-10-28T14:20:00Z TO *]) +NotFilter(cache(BooleanFilter(PublishedInLanguage.en.StopPublish$$date:[_ TO *]))) cache(PublishedInLanguage.en.StopPublish$$date:{2015-10-28T14:20:00Z TO *]) +cache(PublishedInLanguage.en.StartPublish$$date:[0001-01-01T05:00:00Z TO 2015-10-28T14:20:00Z]) +NotFilter(cache(___types:EPiServer.Security.IContentSecurable)) cache(UsersWithReadAccess$$string.lowercase:) cache(RolesWithReadAccess$$string:Anonymous RolesWithReadAccess$$string:Everyone) +cache(___types:EPiServer.Core.IContent)))->cache(___types:AlloyDemoKit.Models.Pages.LocationPage)],from[-1],size[1]: Parse Failure [Failed to parse source [{\"size\":1,\"query\":{\"filtered\":{\"query\":{\"constant_score\":{\"filter\":{\"and\":[{\"or\":[{\"not\":{\"filter\":{\"term\":{\"___types\":\"EPiServer.Core.IContent\"}}}},{\"term\":{\"IsDeleted$$bool\":false}}]},{\"or\":[{\"and\":[{\"not\":{\"filter\":{\"term\":{\"___types\":\"EPiServer.Core.ILocalizable\"}}}},{\"not\":{\"filter\":{\"term\":{\"___types\":\"EPiServer.Core.IVersionable\"}}}}]},{\"and\":[{\"term\":{\"___types\":\"EPiServer.Core.ILocalizable\"}},{\"not\":{\"filter\":{\"term\":{\"___types\":\"EPiServer.Core.IVersionable\"}}}},{\"term\":{\"Language.Name$$string\":\"en\"}}]},{\"and\":[{\"not\":{\"filter\":{\"term\":{\"___types\":\"EPiServer.Core.ILocalizable\"}}}},{\"term\":{\"___types\":\"EPiServer.Core.IVersionable\"}},{\"and\":[{\"term\":{\"Status\":4}},{\"range\":{\"StartPublishedNormalized$$date\":{\"from\":\"0001-01-01T05:00:00Z\",\"to\":\"2015-10-28T14:20:00Z\",\"include_lower\":true,\"include_upper\":true}}},{\"or\":[{\"not\":{\"filter\":{\"exists\":{\"field\":\"StopPublish$$date\"}}}},{\"range\":{\"StopPublish$$date\":{\"from\":\"2015-10-28T14:20:00Z\",\"include_lower\":false}}}]}]}]},{\"and\":[{\"or\":[{\"not\":{\"filter\":{\"exists\":{\"field\":\"PublishedInLanguage.en.StopPublish$$date\"}}}},{\"range\":{\"PublishedInLanguage.en.StopPublish$$date\":{\"from\":\"2015-10-28T14:20:00Z\",\"include_lower\":false}}}]},{\"range\":{\"PublishedInLanguage.en.StartPublish$$date\":{\"from\":\"0001-01-01T05:00:00Z\",\"to\":\"2015-10-28T14:20:00Z\",\"include_lower\":true,\"include_upper\":true}}}]}]},{\"or\":[{\"not\":{\"filter\":{\"term\":{\"___types\":\"EPiServer.Security.IContentSecurable\"}}}},{\"term\":{\"UsersWithReadAccess$$string.lowercase\":\"\"}},{\"terms\":{\"RolesWithReadAccess$$string\":[\"Everyone\",\"Anonymous\"]}}]},{\"term\":{\"___types\":\"EPiServer.Core.IContent\"}}]}}},\"filter\":{\"term\":{\"___types\":\"AlloyDemoKit.Models.Pages.LocationPage\"}}}},\"sort\":[{\"_geo_distance\":{\"Coordinates$$geo\":{\"lat\":39.8442,\"lon\":-85.974},\"order\":\"asc\"}}],\"fields\":[\"___types\",\"ContentLink.ID$$number\",\"ContentLink.ProviderName$$string\",\"Language.Name$$string\"]}]]]; nested: ElasticSearchIllegalArgumentException[failed to find mapper for [Coordinates$$geo] for geo distance based sort]; }]"}  EPiServer.Find.ServiceException
    

My webconfig entry.
<episerver.find
serviceUrl="http://es-eu-dev-api01.episerver.net/CVP26KNDEEiQNk6ZUIa5FxkpCUQDvQ7Z/"
defaultIndex="fulgore_celadon"/>
response uri

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.