internal static List <AngularView> GetViews() { List <AngularView> Views = new List <AngularView>(); AngularView setting_assets = new AngularView { AccessRoles = "admin", UrlPaths = new List <string> { "assets", }, IsDefaultTemplate = true, TemplatePath = "setting/assets.html", Identifier = Identifier.setting_assets.ToString(), Defaults = new Dictionary <string, string> { } }; Views.Add(setting_assets); AngularView setting_permission = new AngularView { AccessRoles = "admin", UrlPaths = new List <string> { "permission/:pid", }, TemplatePath = "setting/permission.html", Identifier = Identifier.setting_permission.ToString(), Defaults = new Dictionary <string, string> { } }; Views.Add(setting_permission); return(Views); }
public static List <AngularView> GetViews() { List <AngularView> Views = new List <AngularView>(); AngularView setting_logs = new AngularView { AccessRoles = "admin", UrlPaths = new List <string> { "logs" }, IsDefaultTemplate = true, TemplatePath = "setting/logs.html", Identifier = Identifier.setting_logs.ToString(), Defaults = new Dictionary <string, string> { } }; Views.Add(setting_logs); AngularView setting_email = new AngularView { AccessRoles = "admin", UrlPaths = new List <string> { "email" }, TemplatePath = "setting/email.html", Identifier = Identifier.setting_email.ToString(), Defaults = new Dictionary <string, string> { } }; Views.Add(setting_email); return(Views); }
internal static List <AngularView> GetViews() { List <AngularView> Views = new List <AngularView>(); AngularView sites = new AngularView { AccessRoles = "host", UrlPaths = new List <string> { "sitegroups" }, IsDefaultTemplate = true, TemplatePath = "setting/sitegroups.html", Identifier = Identifier.setting_sitegroups.ToString(), Defaults = new Dictionary <string, string> { } }; Views.Add(sites); AngularView add = new AngularView { AccessRoles = "host", UrlPaths = new List <string> { "add", "add/:id" }, TemplatePath = "setting/add.html", Identifier = Identifier.setting_add.ToString(), Defaults = new Dictionary <string, string> { } }; Views.Add(add); return(Views); }
internal static List <AngularView> GetViews() { List <AngularView> Views = new List <AngularView>(); AngularView options = new AngularView { AccessRoles = "user", UrlPaths = new List <string> { "tasks" }, IsDefaultTemplate = true, TemplatePath = "notification/tasks.html", Identifier = Identifier.notification_tasks.ToString(), Defaults = new Dictionary <string, string> { } }; Views.Add(options); AngularView notifications = new AngularView { AccessRoles = "user", UrlPaths = new List <string> { "notifications" }, TemplatePath = "notification/notifications.html", Identifier = Identifier.notification_notifications.ToString(), Defaults = new Dictionary <string, string> { } }; Views.Add(notifications); return(Views); }
internal static List<AngularView> GetViews() { List<AngularView> Views = new List<AngularView>(); AngularView settings = new AngularView { AccessRoles = "admin", UrlPaths = new List<string> { "settings", }, IsDefaultTemplate = true, TemplatePath = "setting/settings.html", Identifier = Identifier.setting_settings.ToString(), Defaults = new Dictionary<string, string> { } }; Views.Add(settings); AngularView setting = new AngularView { AccessRoles = "admin", UrlPaths = new List<string> { "add","add/:mapid" }, TemplatePath = "setting/add.html", Identifier = Identifier.setting_add.ToString(), Defaults = new Dictionary<string, string> { } }; Views.Add(setting); return Views; }
internal static List <AngularView> GetViews() { List <AngularView> Views = new List <AngularView>(); AngularView Options = new AngularView { AccessRoles = "editpage", UrlPaths = new List <string> { "image", }, IsDefaultTemplate = true, TemplatePath = "settings/image.html", Identifier = Identifier.settings_image.ToString(), Defaults = new Dictionary <string, string>() }; Views.Add(Options); AngularView ImageOnline = new AngularView { AccessRoles = "editpage", UrlPaths = new List <string> { "imageonline", }, TemplatePath = "settings/imageonline.html", Identifier = Identifier.settings_imageonline.ToString(), Defaults = new Dictionary <string, string>() }; Views.Add(ImageOnline); return(Views); }
public static List <AngularView> GetViews() { List <AngularView> Views = new List <AngularView>(); AngularView setting_logSetting = new AngularView { AccessRoles = "host", UrlPaths = new List <string> { "logSetting" }, IsDefaultTemplate = true, TemplatePath = "setting/logSetting.html", Identifier = Identifier.setting_logSetting.ToString(), Defaults = new Dictionary <string, string> { } }; Views.Add(setting_logSetting); AngularView setting_editlogsetting = new AngularView { AccessRoles = "host", UrlPaths = new List <string> { "editlogsetting", "editlogsetting/:id" }, TemplatePath = "setting/editlogsetting.html", Identifier = Identifier.setting_editlogsetting.ToString(), Defaults = new Dictionary <string, string> { } }; Views.Add(setting_editlogsetting); return(Views); }
public static List <AngularView> GetViews() { AngularView setting = new AngularView { AccessRoles = "admin", UrlPaths = new List <string> { "settings" }, IsDefaultTemplate = true, TemplatePath = "security/settings.html", Identifier = Identifier.security_settings.ToString(), Defaults = new Dictionary <string, string> { { "Picture_DefaultFolder", "-1" }, { "Picture_MaxUploadSize", (Config.GetMaxUploadSize() / (1024 * 1024)).ToString() }, { "Picture_AllowableFileExtensions", "jpg,jpeg,gif,png,svg,webp" }, { "Video_DefaultFolder", "-1" }, { "Video_MaxUploadSize", (Config.GetMaxUploadSize() / (1024 * 1024)).ToString() }, { "Video_AllowableFileExtensions", "webm,mp4" } } }; Views.Add(setting); return(Views); }
internal static string GetAllowedRoles(string Identifier) { AngularView template = GetViews().Where(t => t.TemplatePath.StartsWith(Identifier.Replace("_", "/"))).FirstOrDefault(); if (template != null) { return(template.AccessRoles); } return(string.Empty); }
internal static string GetAllowedRoles(string Identifier) { AngularView template = GetViews().Where(t => t.Identifier == Identifier).FirstOrDefault(); if (template != null) { return(template.AccessRoles); } return(string.Empty); }
internal static List <AngularView> GetViews() { List <AngularView> Views = new List <AngularView>(); AngularView Options = new AngularView { AccessRoles = "review,pageedit", UrlPaths = new List <string> { "moderator", }, IsDefaultTemplate = true, TemplatePath = "review/moderator.html", Identifier = Identifier.review_moderator.ToString(), Defaults = new Dictionary <string, string> { { "ReviewID", "1" } } }; Views.Add(Options); AngularView version = new AngularView { AccessRoles = "review,pageedit", UrlPaths = new List <string> { "moderator/:version", }, IsDefaultTemplate = false, TemplatePath = "review/moderator.html", Identifier = Identifier.review_moderator.ToString(), Defaults = new Dictionary <string, string> { { "ReviewID", "1" } } }; Views.Add(version); AngularView Review = new AngularView { AccessRoles = "review", UrlPaths = new List <string> { "review", }, TemplatePath = "review/review.html", Identifier = Identifier.review_review.ToString(), }; Views.Add(Review); return(Views); }
public static List <AngularView> GetViews() { AngularView domains = new AngularView { AccessRoles = "admin", UrlPaths = new List <string> { "domains" }, IsDefaultTemplate = true, TemplatePath = "domain/domains.html", Identifier = Identifier.domain_domains.ToString(), Defaults = new Dictionary <string, string> { } }; Views.Add(domains); AngularView setting = new AngularView { AccessRoles = "admin", UrlPaths = new List <string> { "setting" }, TemplatePath = "domain/settings.html", Identifier = Identifier.domain_settings.ToString(), Defaults = new Dictionary <string, string> { } }; Views.Add(setting); AngularView Edit_setting = new AngularView { AccessRoles = "admin", UrlPaths = new List <string> { "setting/:sid" }, TemplatePath = "domain/settings.html", Identifier = Identifier.domain_settings.ToString(), Defaults = new Dictionary <string, string> { } }; Views.Add(Edit_setting); return(Views); }
public static List <AngularView> GetViews() { AngularView revisions = new AngularView { AccessRoles = "editpage", UrlPaths = new List <string> { "revisions" }, IsDefaultTemplate = true, TemplatePath = "history/revisions.html", Identifier = Identifier.history_revisions.ToString(), Defaults = new Dictionary <string, string> { } }; Views.Add(revisions); return(Views); }
public static List <AngularView> GetViews() { AngularView setting = new AngularView { AccessRoles = "user,anonymous", UrlPaths = new List <string> { "setting" }, IsDefaultTemplate = true, TemplatePath = "setting/setting.html", Identifier = Identifier.setting_setting.ToString(), Defaults = new Dictionary <string, string> { } }; Views.Add(setting); return(Views); }
internal static List <AngularView> GetViews() { List <AngularView> Views = new List <AngularView>(); AngularView setting_registerlink = new AngularView { AccessRoles = "admin", UrlPaths = new List <string> { "registerlink" }, IsDefaultTemplate = true, TemplatePath = "setting/registerlink.html", Identifier = Identifier.setting_registerlink.ToString(), Defaults = new Dictionary <string, string> { } }; Views.Add(setting_registerlink); return(Views); }
internal static List <AngularView> GetViews() { List <AngularView> Views = new List <AngularView>(); AngularView setting_login = new AngularView { AccessRoles = "editpage", UrlPaths = new List <string> { "login" }, IsDefaultTemplate = true, TemplatePath = "setting/login.html", Identifier = Identifier.setting_login.ToString(), Defaults = new Dictionary <string, string> { } }; Views.Add(setting_login); return(Views); }
internal static List <AngularView> GetViews() { List <AngularView> Views = new List <AngularView>(); AngularView Options = new AngularView { AccessRoles = "admin", UrlPaths = new List <string> { "permissions/:appid", }, IsDefaultTemplate = false, TemplatePath = "settings/setting.html", Identifier = Identifier.settings_setting.ToString(), Defaults = new Dictionary <string, string>() }; Views.Add(Options); return(Views); }
internal static List <AngularView> GetViews() { List <AngularView> Views = new List <AngularView>(); AngularView Options = new AngularView { AccessRoles = "user", UrlPaths = new List <string> { "about", }, IsDefaultTemplate = true, TemplatePath = "settings/about.html", Identifier = Identifier.settings_about.ToString(), Defaults = new Dictionary <string, string>() }; Views.Add(Options); return(Views); }
internal static List <AngularView> GetViews() { List <AngularView> Views = new List <AngularView>(); AngularView query = new AngularView { AccessRoles = "host", UrlPaths = new List <string> { "setting_sqlquery" }, IsDefaultTemplate = true, TemplatePath = "setting/sqlquery.html", Identifier = Identifier.setting_sqlquery.ToString(), Defaults = new Dictionary <string, string> { } }; Views.Add(query); return(Views); }
internal static List <AngularView> GetViews() { List <AngularView> Views = new List <AngularView>(); AngularView customCSS = new AngularView { AccessRoles = "admin", UrlPaths = new List <string> { "setting_stylesheet" }, IsDefaultTemplate = true, TemplatePath = "setting/stylesheet.html", Identifier = Identifier.setting_stylesheet.ToString(), Defaults = new Dictionary <string, string> { } }; Views.Add(customCSS); return(Views); }
public static string GetValue(int PortalID, int TabID, string Identifier, string Name, List <AngularView> Views) { Setting s = GetSetting(PortalID, TabID, Identifier, Name); if (s != null) { return(s.Value); } //Check Default Value if (Views != null) { AngularView View = Views.Where(t => t.Identifier == Identifier).FirstOrDefault(); KeyValuePair <string, string> Default = View.Defaults.Where(d => d.Key == Name).FirstOrDefault(); if (Default.Key != null) { return(Default.Value); } } return(null); }
internal static List <AngularView> GetViews() { List <AngularView> Views = new List <AngularView>(); AngularView Options = new AngularView { AccessRoles = "admin", UrlPaths = new List <string> { "workflow", }, IsDefaultTemplate = true, TemplatePath = "setting/workflow.html", Identifier = Identifier.setting_workflow.ToString(), Defaults = new Dictionary <string, string> { { "WorkflowID", "1" } } }; Views.Add(Options); return(Views); }
private static void ApplyDefaults(int PortalID, int TabID, string Identifier, List <Setting> Defaults, List <Setting> Settings, List <AngularView> Views) { if (Defaults == null) { AngularView View = Views.Where(t => t.Identifier == Identifier).FirstOrDefault(); if (View != null && View.Defaults.Count > 0) { Defaults = new List <Setting>(); foreach (string key in View.Defaults.Keys) { Defaults.Add(new Setting(key, View.Defaults[key])); } } } if (Defaults != null && Settings != null) { foreach (Setting d in Defaults) { Setting s = Settings.Where(i => i.Name == d.Name).SingleOrDefault(); if (s == null) { //Do Not Track Changes if explictly asked to do so if (!d.DoNotTrackChanges) { d.IsNew = true; } Settings.Add(d); } } //Apply TabID & Identifier Settings.ForEach(s => { s.Identifier = Identifier; s.TabID = TabID; }); } }
public static List <AngularView> GetViews() { if (Views.Count > 0) { return(Views); } AngularView roles = new AngularView { AccessRoles = "admin", UrlPaths = new List <string> { "setting" }, IsDefaultTemplate = true, TemplatePath = "setting/setting.html", Identifier = Identifier.setting_setting.ToString(), Defaults = new Dictionary <string, string> { } }; Views.Add(roles); return(Views); }
internal static List <AngularView> GetViews() { List <AngularView> Views = new List <AngularView>(); AngularView Default = new AngularView { AccessRoles = "user", UrlPaths = new List <string> { "url/manage" }, IsDefaultTemplate = true, TemplatePath = "url/manage.html", Identifier = Identifier.url_manage.ToString(), Defaults = new Dictionary <string, string> { } }; Views.Add(Default); AngularView manage = new AngularView { AccessRoles = "user", UrlPaths = new List <string> { "url/manage/:ename/:eid" }, IsDefaultTemplate = false, TemplatePath = "url/manage.html", Identifier = Identifier.url_manage.ToString(), Defaults = new Dictionary <string, string> { } }; Views.Add(manage); return(Views); }
internal static List <AngularView> GetViews() { List <AngularView> Views = new List <AngularView>(); AngularView Options = new AngularView { AccessRoles = "admin", UrlPaths = new List <string> { "dashboard", }, IsDefaultTemplate = true, TemplatePath = "settings/dashboard.html", Identifier = Identifier.settings_dashboard.ToString(), Defaults = new Dictionary <string, string>() }; Views.Add(Options); AngularView install = new AngularView { AccessRoles = "host", UrlPaths = new List <string> { "install", "install/type/:type/name/:name", }, TemplatePath = "settings/installextension.html", Identifier = Identifier.settings_installextension.ToString(), Defaults = new Dictionary <string, string>() }; Views.Add(install); AngularView editext = new AngularView { AccessRoles = "host", UrlPaths = new List <string> { "edit/pid/:pid", }, TemplatePath = "settings/editextension.html", Identifier = Identifier.settings_editextension.ToString(), Defaults = new Dictionary <string, string>() }; Views.Add(editext); AngularView deleteext = new AngularView { AccessRoles = "host", UrlPaths = new List <string> { "delete/pid/:pid", }, TemplatePath = "settings/deleteextension.html", Identifier = Identifier.settings_deleteextension.ToString(), Defaults = new Dictionary <string, string>() }; Views.Add(deleteext); AngularView usageext = new AngularView { AccessRoles = "admin", UrlPaths = new List <string> { "usage/pid/:pid", }, TemplatePath = "settings/usageextension.html", Identifier = Identifier.settings_usageextension.ToString(), Defaults = new Dictionary <string, string>() }; Views.Add(usageext); AngularView installpack = new AngularView { AccessRoles = "admin", UrlPaths = new List <string> { "installpackage", }, TemplatePath = "settings/installpackage.html", Identifier = Identifier.settings_installpackage.ToString(), Defaults = new Dictionary <string, string>() }; Views.Add(installpack); return(Views); }
internal static List <AngularView> GetViews() { List <AngularView> Views = new List <AngularView>(); AngularView setting_scheduler = new AngularView { AccessRoles = "host", UrlPaths = new List <string> { "scheduler", }, TemplatePath = "setting/scheduler.html", Identifier = Identifier.setting_scheduler.ToString(), Defaults = new Dictionary <string, string> { } }; Views.Add(setting_scheduler); AngularView setting_TaskQueue = new AngularView { AccessRoles = "host", UrlPaths = new List <string> { "taskqueue", }, IsDefaultTemplate = true, TemplatePath = "setting/taskqueue.html", Identifier = Identifier.setting_taskqueue.ToString(), Defaults = new Dictionary <string, string> { } }; Views.Add(setting_TaskQueue); AngularView setting_history = new AngularView { AccessRoles = "host", UrlPaths = new List <string> { "history", }, TemplatePath = "setting/history.html", Identifier = Identifier.setting_history.ToString(), Defaults = new Dictionary <string, string> { } }; Views.Add(setting_history); AngularView setting_settings = new AngularView { AccessRoles = "host", UrlPaths = new List <string> { "settings", }, TemplatePath = "setting/settings.html", Identifier = Identifier.setting_settings.ToString(), Defaults = new Dictionary <string, string> { } }; Views.Add(setting_settings); return(Views); }
public static List <AngularView> GetViews() { AngularView setting_pages = new AngularView { AccessRoles = "admin,edit", UrlPaths = new List <string> { "pages" }, IsDefaultTemplate = true, TemplatePath = "setting/pages.html", Identifier = Identifier.setting_pages.ToString(), Defaults = new Dictionary <string, string> { } }; Views.Add(setting_pages); AngularView setting_detail = new AngularView { AccessRoles = "admin,edit", UrlPaths = new List <string> { "detail" }, IsDefaultTemplate = false, TemplatePath = "setting/detail.html", Identifier = Identifier.setting_detail.ToString(), Defaults = new Dictionary <string, string> { } }; Views.Add(setting_detail); AngularView Edit_Page = new AngularView { AccessRoles = "admin,edit", UrlPaths = new List <string> { "detail/:pid" }, TemplatePath = "setting/detail.html", Identifier = Identifier.setting_detail.ToString(), Defaults = new Dictionary <string, string> { } }; Views.Add(Edit_Page); AngularView CopyPage = new AngularView { AccessRoles = "admin,edit", UrlPaths = new List <string> { "detail/:pid/:copy" }, TemplatePath = "setting/detail.html", Identifier = Identifier.setting_detail.ToString(), Defaults = new Dictionary <string, string> { } }; Views.Add(CopyPage); AngularView SaveTemplateAs = new AngularView { AccessRoles = "admin,edit", UrlPaths = new List <string> { "savetemplateas/:pid" }, TemplatePath = "setting/savetemplateas.html", Identifier = Identifier.setting_savetemplateas.ToString(), Defaults = new Dictionary <string, string> { } }; Views.Add(SaveTemplateAs); AngularView setting_permissions = new AngularView { AccessRoles = "admin,edit", UrlPaths = new List <string> { "permissions" }, IsDefaultTemplate = false, TemplatePath = "setting/permissions.html", Identifier = Identifier.setting_permissions.ToString(), Defaults = new Dictionary <string, string> { } }; Views.Add(setting_permissions); AngularView setting_advanced = new AngularView { AccessRoles = "admin,edit", UrlPaths = new List <string> { "advanced" }, IsDefaultTemplate = false, TemplatePath = "setting/advanced.html", Identifier = Identifier.setting_advanced.ToString(), Defaults = new Dictionary <string, string> { } }; Views.Add(setting_advanced); AngularView setting_recyclebin = new AngularView { AccessRoles = "admin,edit", UrlPaths = new List <string> { "recyclebin" }, IsDefaultTemplate = false, TemplatePath = "setting/recyclebin.html", Identifier = Identifier.setting_recyclebin.ToString(), Defaults = new Dictionary <string, string> { } }; Views.Add(setting_recyclebin); #region Choose Template when migrate the page AngularView ChooseTemplate = new AngularView { AccessRoles = "admin,edit", UrlPaths = new List <string> { "choosetemplate", "choosetemplate/:pid" }, TemplatePath = "setting/choosetemplate.html", Identifier = Identifier.setting_choosetemplate.ToString(), IsDefaultTemplate = false, Defaults = new Dictionary <string, string> { } }; Views.Add(ChooseTemplate); #endregion return(Views); }
public static List <AngularView> GetViews() { AngularView memberprofile_memberprofile = new AngularView { AccessRoles = "admin", UrlPaths = new List <string> { "memberprofile" }, IsDefaultTemplate = true, TemplatePath = "MemberProfile/memberprofile.html", Identifier = Identifier.memberprofile_memberprofile.ToString(), Defaults = new Dictionary <string, string> { } }; Views.Add(memberprofile_memberprofile); AngularView Addmemberprofile = new AngularView { AccessRoles = "admin", UrlPaths = new List <string> { "memberprofilesettings" }, IsDefaultTemplate = false, TemplatePath = "memberprofile/memberprofilesettings.html", Identifier = Identifier.memberprofile_memberprofilesettings.ToString(), Defaults = new Dictionary <string, string> { } }; Views.Add(Addmemberprofile); AngularView Updatememberprofile = new AngularView { AccessRoles = "admin", UrlPaths = new List <string> { "memberprofilesettings/:mpid" }, IsDefaultTemplate = false, TemplatePath = "memberprofile/memberprofilesettings.html", Identifier = Identifier.memberprofile_memberprofilesettings.ToString(), Defaults = new Dictionary <string, string> { } }; Views.Add(Updatememberprofile); AngularView setting = new AngularView { AccessRoles = "admin", UrlPaths = new List <string> { "settings" }, IsDefaultTemplate = false, TemplatePath = "memberprofile/settings.html", Identifier = Identifier.memberprofile_settings.ToString(), Defaults = new Dictionary <string, string> { } }; Views.Add(setting); return(Views); }
public static List <AngularView> GetViews() { if (Views.Count > 0) { return(Views); } AngularView Default = new AngularView { AccessRoles = "admin", UrlPaths = new List <string> { "categories" }, IsDefaultTemplate = true, TemplatePath = "setting/categories.html", Identifier = Identifier.setting_categories.ToString(), Defaults = new Dictionary <string, string> { } }; Views.Add(Default); AngularView DefaultWithTheme = new AngularView { AccessRoles = "admin", UrlPaths = new List <string> { "categories/:themename" }, TemplatePath = "setting/categories.html", Identifier = Identifier.setting_categories.ToString(), Defaults = new Dictionary <string, string> { } }; Views.Add(DefaultWithTheme); AngularView Settings = new AngularView { AccessRoles = "admin", UrlPaths = new List <string> { "settings/:themename/:cat/:guid" }, TemplatePath = "setting/settings.html", Identifier = Identifier.setting_settings.ToString(), Defaults = new Dictionary <string, string> { } }; Views.Add(Settings); AngularView Manage = new AngularView { AccessRoles = "admin", UrlPaths = new List <string> { "manage/:guid" }, TemplatePath = "setting/manage.html", Identifier = Identifier.setting_manage.ToString(), Defaults = new Dictionary <string, string> { } }; Views.Add(Manage); AngularView New = new AngularView { AccessRoles = "admin", UrlPaths = new List <string> { "edit/:catguid" }, TemplatePath = "setting/edit.html", Identifier = Identifier.setting_edit.ToString(), Defaults = new Dictionary <string, string> { } }; Views.Add(New); AngularView Edit = new AngularView { AccessRoles = "admin", UrlPaths = new List <string> { "edit/:catguid/:guid", "edit/:catguid/:cat/:type" }, TemplatePath = "setting/edit.html", Identifier = Identifier.setting_edit.ToString(), Defaults = new Dictionary <string, string> { } }; Views.Add(Edit); return(Views); }