using Microsoft.Extensions.DependencyInjection; using System.Collections.Generic; using zero.Core.Options; using zero.Core.Plugins; using zero.Debug.TestData; using zero.TestData.Lists; namespace zero.TestData { public class TestPlugin : IZeroPlugin { public void Configure(IServiceCollection services, IZeroPluginConfiguration zero) { services.AddTransient(); zero.Configure(opts => { opts.AddList("team", "Team", "Our team members", "fth-users"); opts.AddList("news", "News", "Articles about the company", "fth-edit"); opts.AddSeparator(); opts.AddEditor("social", "Social", "Links to social media", "fth-twitter"); }); zero.Configure(opts => { opts.Add(TestFeatures.Wishlist, "Wishlist", "Frontend wishlist for logged-in users"); opts.Add(TestFeatures.SocialShopping, "Social shopping", "Integrate products into social media portals"); }); zero.Configure(opts => { opts.Add(); opts.Add(); opts.Add(); opts.Add(); opts.Add(); opts.Add(); opts.Add(); }); zero.Configure(opts => { opts.Add("news", "News", "News about the company", "fth-book"); opts.Add("content", "Page", "Page consisting of modules", "fth-box", true, true); opts.Add("redirect", "Redirect", "Redirect to another page or an external URL", "fth-box", true, false, new List() { "content", "redirect" }); }); } } }