private static void Configure(App.ISettings settings) { // You can configure the system default settings here // Check the ISettings interface for more details of what can be configured settings.DefaultLanguage = Language.English; settings.HomeView = state => new HomeView(state); settings.Login.GuestUserName = "******"; settings.Login.GuestPassword = "******"; settings.Login.Brand = Div(_("d-inline-block text-center text-primary"), SetStyle(Image(_("pl-4", src: "./assets/img/virus.svg")), s => s.width = s.height = "10rem"), H2(_("font-weight-bold pt-4", text: "COVID-19 Papers")), Div(_("pt-5 text-muted "), Span(_(text: "If you don't have an account yet, you can log in as a guest by clicking the link below.")), Br(_()), Br(_()), Span(_(text: "For your own private account, reach out to us at ")), A(_(text: "*****@*****.**", href: "mailto://[email protected]")))); settings.Search.PossibleRelatedToAbbreviations = new[] { new App.RelatedFilter(Schema.N.Paper) }; settings.Sidebar.Teams = false; settings.Sidebar.MyFiles = false; settings.Sidebar.ShowCuriosityLogo = true; settings.Sidebar.UploadFile = false; settings.Sidebar.Analysis = false; settings.Sidebar.Settings = false; Mosaik.External.Analytics.GoogleAnalytics.Enable("UA-161417730-1"); }
private static void Configure(App.ISettings settings) { // You can configure the system default settings here // Check the ISettings interface for more details of what can be configured settings.DefaultLanguage = Language.English; settings.CustomHome = () => new HomeView(); settings.Login.GuestUserName = "******"; settings.Login.GuestPassword = "******"; settings.Login.Brand = Div(_("d-inline-block text-center text-primary"), SetStyle(Image(_("pl-4", src: "./assets/img/virus.svg")), s => s.width = s.height = "10rem"), H2(_("font-weight-bold pt-4", text: "COVID-19 Papers")), Div(_("pt-5 text-muted "), Span(_(text: "If you don't have an account yet, you can log in as a guest by clicking the link below.")), Br(_()), Br(_()), Span(_(text: "For your own private account, reach out to us at ")), A(_(text: "*****@*****.**", href: "mailto://[email protected]")))); settings.Navbar.Brand = Span(_(), SetStyle(Image(_("mr-2", src: "./assets/img/virus.svg")), s => { s.width = "28px"; s.height = "28px"; }), Span(_(text: "COVID-19 Papers"))); settings.Search.DefaultIgnoreTypes = new[] { "_Token", "_Abbreviation", "_Notification", "_User", "_AccessGroup", "_RestrictionGroup", "_Topic", "_TopicRule", "_TopicAnalysis" }; settings.Search.SaveViewsOf = new [] { Schema.N.Paper, Schema.N.Author, Schema.N.Affiliation }; settings.Search.DefaultRelatedFacets = new[] { Schema.N.Author, Schema.N.Affiliation, Schema.N.Location, Schema.N.Journal, "_Topic", Schema.N.Disease }; settings.Sidebar.Teams = false; settings.Sidebar.MyFiles = false; settings.Sidebar.ShowCuriosityLogo = true; settings.Sidebar.UploadFile = false; settings.Sidebar.Analysis = false; settings.Sidebar.Settings = false; }