-
-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configuration-As-Code #63
Comments
I strongly emphasize with this idea. I always found it a bit sad that RClone Explorer and RCX weren't able to fully empower what makes RClone shine: abstraction. It handles all remotes in a completely generic/unspecific manner, which this app could completely take advantage of. Not only it makes it cumbersome to add a new remote, it also increases maintenance cost. FWIW, RClone is able to serve a web-based GUI that does exactly this: https://rclone.org/gui/ (which AFAIK is this UI). And obviously, RClone itself does exactly this when using
Regarding images, I think it's fine if most remotes don't have an image. We could focus on providing images for the most frequently used remotes, and just rely on the first letter of the remote names to provide a dummy "logo" in the listing when we don't have one. However, there's simple icons that provides colorless SVG logos of many brands. Maybe we could source some from there. Regarding translations, I think the most straightforward way would be something as follow:
A template could be used as the name of the exported strings (such as It's also worth noting that most frequently used providers (such as the ones already implemented) should probably appear first in the providers list. Other esoteric remotes (such as Union or Mail.ru) could be proposed in a collapsible menu just below. A search bar could also be helpful if there are lots of providers to pick from. |
Ugh it would be amazing if this would already be included in the rclone-lib. Though to make this work as i want to, it would need theming, "stripping" and a better mobile navigation. None of those are supported sadly :/
Good idea. I always wanted to try to fetch favicons if possible, so this would further reduce the need to have every icon!
Yikes. I feared something like this. I dont think there is any reasonable way to actually translate that. Also it's not quite what i initially meant. I'll explain in a short while. My current draft implements a "normal" activitiy based ui just like we have now. But instead of predefining each option, textfield and whatnot, i generate a function that can generate those inputs "on-demand". So if i select a webdav-remote as an example, we would instanciate a "webdav-config-list" which contains a list of type,name,option,etc which will be used to generate the ui. The benefit: We only have to edit a relatively simple list to add/edit options, while keeping the ui in one "simple" config-ui. On a second thought: |
In the meantime, I don't think it's that big of a deal if some options remain in english. But I guess AI-based translation services can do miracles nowadays, that may be another option.
You lost me there. I think For instance, you can get all options for PCloud provider through:
What I was suggesting in my previous message was actually to use this output to provide a generic way of supporting all backends, just like |
Okay now i feel stupid. Thanks, that is what i am looking for! I never really did a deep-dive in ALL the capabilities rclone provides, so this was new to me. But this will work fine, albeit actually fully implementing this will take quite a bit time! Edit:
And i will do exactly that ;) Thanks for the great input! |
If you need assistance, feel free to reach out. I can't guarantee I'll spend many time on this, but that's something I've been willing to contribute in RCX for a long time. I never found the motivation because RCX had turned unmaintained, and I felt overwhelmed by the work needed to bring the project back up and on the path I wanted.
You're certainly not, and it is not what I wanted to imply by any mean 😅. Thanks for your work on extRact :) . Very much appreciated. |
So, i have now a working prototype. There are two problems i see with this:
I am open for ideas on how to improve this! |
Currently the ui for configuring remotes is done on a per remote basis, requiring a lot of work.
Instead, i should implement a json-format that can be read by a generic ui, that allows to display the available options. This would allow for easy addition of new/changed config items.
A "guided" config would also be preferable. Eg in each configuration gets it's own page.
Questions: how to deal with images and translations?
The text was updated successfully, but these errors were encountered: