move basic stuff into ZeroVue config which is loaded by vue on startup

This commit is contained in:
2020-04-11 17:45:39 +02:00
parent 2838eeadab
commit 2799f62be8
7 changed files with 203 additions and 79 deletions
+2 -1
View File
@@ -82,7 +82,7 @@ namespace zero.Web
var section = new Section("commerce", "Commerce", "fth-shopping-bag", "#52bba1");
section.Children.Add(new Section("orders", "Orders"));
section.Children.Add(new Section("customers", "Customers"));
section.Children.Add(new Section("catalogue", "Catalogue"));
section.Children.Add(new Section("catalogue & ÖBB", "Catalogue"));
section.Children.Add(new Section("promotions", "Promotions"));
section.Children.Add(new Section("channels", "Channels"));
opts.Sections.Insert(3, section);
@@ -131,6 +131,7 @@ namespace zero.Web
services.AddSingleton<IHttpContextAccessor, HttpContextAccessor>();
// TODO move registration into core
services.AddTransient<IZeroVue, ZeroVue>();
services.AddTransient<ISetupApi, SetupApi>();
services.AddTransient<ISectionsApi, SectionsApi>();
services.AddTransient<IApplicationsApi, ApplicationsApi>();