HawkXP71 119 Posted Monday at 11:39 PM Posted Monday at 11:39 PM The plugin I am working on, initially was pure for admins to look at. However, at least 1 possible 2 pages, have value to the user itself. Is there a JS/Html methodology for adding a non admin "advanced" (or somewhere) page? TIA
Luke 42996 Posted yesterday at 02:36 AM Posted yesterday at 02:36 AM Hi, listenbnrainz is a good example to look at: https://github.com/MediaBrowser/ListenBrainz
HawkXP71 119 Posted yesterday at 03:17 AM Author Posted yesterday at 03:17 AM 40 minutes ago, Luke said: Hi, listenbnrainz is a good example to look at: https://github.com/MediaBrowser/ListenBrainz Thanks Ill take a look
HawkXP71 119 Posted yesterday at 03:22 AM Author Posted yesterday at 03:22 AM 44 minutes ago, Luke said: Hi, listenbnrainz is a good example to look at: https://github.com/MediaBrowser/ListenBrainz Having never used this plugin before, what am I looking for? I dont see any changes. I do see it on the plugins page, but thats it.
HawkXP71 119 Posted yesterday at 03:27 AM Author Posted yesterday at 03:27 AM 49 minutes ago, Luke said: Hi, listenbnrainz is a good example to look at: https://github.com/MediaBrowser/ListenBrainz Found it. Is there a way to add a new Category? Rather than under "preferences"?
HawkXP71 119 Posted yesterday at 04:01 AM Author Posted yesterday at 04:01 AM Other questions Since there is no Dashboard, what is the equivalent call for Dashboard.getConfigurationResourceUrl?
HawkXP71 119 Posted yesterday at 04:04 AM Author Posted yesterday at 04:04 AM Any ideas? "viewmanager.js?v=4.9.5.0:1 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'prototype') at addMethodsToPluginControllerFactory (viewmanager.js?v=4.9.5.0:1:986) at viewmanager.js?v=4.9.5.0:1:10942"
Luke 42996 Posted yesterday at 04:05 AM Posted yesterday at 04:05 AM Just now, HawkXP71 said: Any ideas? "viewmanager.js?v=4.9.5.0:1 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'prototype') at addMethodsToPluginControllerFactory (viewmanager.js?v=4.9.5.0:1:986) at viewmanager.js?v=4.9.5.0:1:10942" I’m not sure. Start with something identical to the example and then go from there.
Luke 42996 Posted yesterday at 04:06 AM Posted yesterday at 04:06 AM 4 minutes ago, HawkXP71 said: Other questions Since there is no Dashboard, what is the equivalent call for Dashboard.getConfigurationResourceUrl? What makes you think there’s no Dashboard? There’s no equivalent on the server if that’s what you’re asking.
HawkXP71 119 Posted yesterday at 04:17 AM Author Posted yesterday at 04:17 AM 10 minutes ago, Luke said: What makes you think there’s no Dashboard? There’s no equivalent on the server if that’s what you’re asking. Because in my js for the page, I have it load a helpers file, in the defines section, and the js engine is saying Dashboard is undefined.
HawkXP71 119 Posted 5 hours ago Author Posted 5 hours ago @Luke@softworkzI am playing with the ListenBrainz trying to get a Dashboard object in the JS file configPage.js Any calls to Dashboard here, fails with Dashboard undefined Just modifying the onResume function to View.prototype.onResume = function (options) { BaseView.prototype.onResume.apply(this, arguments); console.log("onResume", Dashboard); if (options.refresh) { loading.show(); var view = this.view; var form = view.querySelector("form"); var instance = this; loadConfiguration(instance.params.userId, form); } }; should work, but it says undefined when running Thoughts?
HawkXP71 119 Posted 2 hours ago Author Posted 2 hours ago I was able to get it working with the api client. General question @Lukecan these pages be seen on the TV/android apps? Or only via the web page?
Luke 42996 Posted 1 hour ago Posted 1 hour ago Quote Any calls to Dashboard here, fails with Dashboard undefined It's probably not getting loaded there. It is a legacy api at this point that is just a wrapper around other functions. what do you need to do with it?
Luke 42996 Posted 1 hour ago Posted 1 hour ago 20 minutes ago, HawkXP71 said: I was able to get it working with the api client. General question @Lukecan these pages be seen on the TV/android apps? Or only via the web page? Right now only your built-in web app.
HawkXP71 119 Posted 35 minutes ago Author Posted 35 minutes ago 1 hour ago, Luke said: It's probably not getting loaded there. It is a legacy api at this point that is just a wrapper around other functions. what do you need to do with it? I needed a url to a user configuration page I was able to use apiclient.get url, and then had to remove the /emby and added the user Id I am noticing a bug, which I can write up tomorrow.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now