Exemple #1
0
        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);
        }
Exemple #2
0
        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));
        }
Exemple #3
0
        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();
        }
Exemple #4
0
        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;
 }
Exemple #6
0
 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;
 }
Exemple #8
0
 public ApplicationModule(IKolaConfigurationRegistry kolaConfigurationRegistry)
 {
     this.kolaConfigurationRegistry = kolaConfigurationRegistry;
     this.Get["/_kola"] = p => this.GetApplication();
 }