Now working on Vuejs template.
vuejs-template for web addons
The idea is, develop and test the addon page locally, using Vite. API call will be proxied to router. Still need to figure out how the login page work and get the auth token for proxied api call.
I just thinking, maybe changing the name of the config file addon_settings.txt to addon_menus.txt is more appropriate.
Also why the 20 tabs limit on Tools tabs? Are there any more limitations on how many menus and tabs can be added to the UI? Currently I haven’t put any limitations on tabs and...
More update:
Latest commit
So here is what i have done to the webUI
create a new ej_function in httpd to read the /jffs/addons/addon_settings.txt. (Mostly just copy&paste existing ej_get_custom_settings())
modify menuTree.js, read the config_file. If web_addons flag is enable. Add new entry to...
Source code updated.
A new way to add add-on webpage
Now it looks like this
And the setting file. I just reuse the tools page because I dont have a test page ready yet.
web_addons 1
Test_Addon menu_Addon&Tools_Sysinfo.asp&Sysinfo&Tools_OtherSettings.asp&Other_Settings
Some api if you are interested.
All of them use js fetch method
appGet.cgi
Get values, by http query string, method GET
fetch('/appGet.cgi?hook=<insert method here>', { credentials: 'same-origin' }).then(resp => console.log(resp))
example method:
nvram_get(<nvram_vals>)
for multiple values...
I have some new idea about extending the webUI
My previous post here
I am currently pocking with httpd webAPI and I think I have figured out most of it.
currently I am able to get & set nvram_settings, trigger rc_service script, reading and writing /jffs/addons/custom_settings.txt.
In my...
I am trying to add api to merlin's firmware, currently testing it on GT-AC2900. I want to create an appCentre for future addons using Vuejs because the current add-on method is too limiting. I actually have figured out how to change nvram values, trigger rc_service script using js fetch though...