public static ApplicationModel Build(IKolaConfigurationRegistry kolaConfigurationRegistry) { var editorScripts = kolaConfigurationRegistry.Plugins .Where(p => !string.IsNullOrEmpty(p.PropertyEditor)) .Select(p => $"/_kola/plugins/{p.PluginName}/{p.PropertyEditor}"); var editorStylesheets = kolaConfigurationRegistry.Plugins .Where(p => !string.IsNullOrEmpty(p.PropertyEditorStylesheet)) .Select(p => $"/_kola/plugins/{p.PluginName}/{p.PropertyEditorStylesheet}"); return new ApplicationModel(editorScripts, editorStylesheets); }
public static ApplicationModel Build(IKolaConfigurationRegistry kolaConfigurationRegistry) { var editorScripts = kolaConfigurationRegistry.Plugins .Where(p => !string.IsNullOrEmpty(p.PropertyEditor)) .Select(p => $"/_kola/plugins/{p.PluginName}/{p.PropertyEditor}"); var editorStylesheets = kolaConfigurationRegistry.Plugins .Where(p => !string.IsNullOrEmpty(p.PropertyEditorStylesheet)) .Select(p => $"/_kola/plugins/{p.PluginName}/{p.PropertyEditorStylesheet}"); return(new ApplicationModel(editorScripts, editorStylesheets)); }
public TemplateModule(ITemplateService templateService, IKolaConfigurationRegistry kolaConfigurationRegistry) : base("/_kola/templates") { this.templateService = templateService; this.kolaConfigurationRegistry = kolaConfigurationRegistry; this.Get["/"] = p => this.GetTemplate(); this.Put["/"] = p => this.PutTemplate(); this.Get["/components"] = p => this.GetComponent(); this.Get["/amendments"] = p => this.GetAmendments(); this.Post["/amendments"] = p => this.PostAmendment(); this.Put["/amendments"] = p => this.ApplyAmendments(); this.Delete["/amendments"] = p => this.UndoAmendment(); }
public TemplateModule(ITemplateService templateService, IKolaConfigurationRegistry kolaConfigurationRegistry) : base("/_kola/templates") { this.templateService = templateService; this.kolaConfigurationRegistry = kolaConfigurationRegistry; this.Get["/"] = p => this.GetTemplate(); this.Put["/"] = p => this.PutTemplate(); this.Get["/components"] = p => this.GetComponent(); this.Get["/amendments"] = p => this.GetAmendments(); this.Post["/amendments"] = p => this.PostAmendment(); this.Put["/amendments"] = p => this.ApplyAmendments(); this.Delete["/amendments"] = p => this.UndoAmendment(); }
public ComponentSpecificationLibrary(IKolaConfigurationRegistry registry, IWidgetSpecificationRepository widgetRepository) { this.registry = registry; this.widgetRepository = widgetRepository; }
public ApplicationModule(IKolaConfigurationRegistry kolaConfigurationRegistry) { this.kolaConfigurationRegistry = kolaConfigurationRegistry; this.Get["/_kola"] = p => this.GetApplication(); }
public ComponentSpecificationLibrary(IKolaConfigurationRegistry registry, IWidgetSpecificationRepository widgetRepository) { this.registry = registry; this.widgetRepository = widgetRepository; }
public ApplicationModule(IKolaConfigurationRegistry kolaConfigurationRegistry) { this.kolaConfigurationRegistry = kolaConfigurationRegistry; this.Get["/_kola"] = p => this.GetApplication(); }