-
Hi Difegue. Thank you kindly for this software. I have it running perfectly inside a Raspberry Pi 3 with podman (docker, but better, imo). I noticed that every time LRR is loaded, it makes two external (internet) requests: one to api.github.com, and one to cdn.datatables.net. This brings me to two minor feature requests: Regarding the api.github.com request to check for updates, would it be possible to add a button in the admin config panel that would allow toggling this feature? I see it is part of a function listed here. Something like the following, for example, would be a nice feature: Regarding the select.js file, could it instead be locally stored, similar to how other js files are stored? (ie. inside public/js/vendor). Example, within the index.html.tt2 file. What are your opinions on these proposed changes? I could possibly take care of both requests, but may need your help with the first one--the second should be pretty straight forward for me. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Thanks for bringing the select.js thing to my attention! 😳 For the update check, there's already a conditional to disable it here, but it currently checks for debug mode. Adding new options is fairly straightforward! This recent commit 1abce98 deletes an option, but it gives you an idea of what you need. Here's a super quick breakdown:
|
Beta Was this translation helpful? Give feedback.
Thanks for bringing the select.js thing to my attention! 😳
I believe it was inserted when I was iterating on the Jump to Page combobox, but the final code doesn't actually use it. I'll be pushing a commit to simply remove this include in index.html.tt2 later.
For the update check, there's already a conditional to disable it here, but it currently checks for debug mode.
I wouldn't mind having this moved to a dedicated pref at all.
Adding new options is fairly straightforward! This recent commit 1abce98 deletes an option, but it gives you an idea of what you need. Here's a super quick breakdown:
lib/LANraragi/Model/Config.pm
to add a sub for your pref: Something likesub get_autoupd…