private void ConfigureResources(DotvvmConfiguration config, string applicationPath) { config.Resources.Register("signalr", new ScriptResource { Location = new UrlResourceLocation("https://cdnjs.cloudflare.com/ajax/libs/microsoft-signalr/3.1.7/signalr.min.js"), RenderPosition = ResourceRenderPosition.Body }); config.Resources.Register("chat", new ScriptResource { Location = new UrlResourceLocation("~/Resources/Scripts/chat.js"), Dependencies = new[] { "dotvvm", "signalr" }, RenderPosition = ResourceRenderPosition.Body }); // register custom resources and adjust paths to the built-in resources config.Resources.Register("Styles", new StylesheetResource() { Location = new UrlResourceLocation("~/styles.css") }); ((ScriptResource)config.Resources.FindNamedResource("dotvvm.debug").Resource).Dependencies = ((ScriptResource)config.Resources.FindNamedResource("dotvvm.debug").Resource).Dependencies .Concat(new[] { "offline-handler" }).ToArray(); LocalStorageInfo.RegisterJavascriptTranslations(config.Markup.JavascriptTranslator.MethodCollection); }
public StorageInfo() { LocalStorage = new LocalStorageInfo(); SDStorage = new SDStorageInfo(); }