Potential Cloudron Theme/Dashboard
-
@jdaviescoates thanks! Feel free to give it a spin and let me know if you have any thoughts or suggestions!
-
@girish Had a thought for the base Cloudron image/API to help make such a dashboard (and potentially others) more accessible to everyday users. At the moment, for Homepage to run properly, it requires the user create a new API key and insert it into the config.json file through the Terminal. The only calls needed by the application are the GET for
/api/v1/apps
and/api/v1/apps/{$cloudron_app_id}/icon
for getting the list of applications installed on this Cloudron instance and their respective icon files.The thought is what if the Cloudron API white-listed some calls to its own internal IP/URL? Not sure if this is a thing, but pretty much, if a call is made to the endpoints above (and potentially other 'harmless', non-destructive endpoints), and the referring URL is on the instance's own domain (i.e. the call to
my.cloudron.com/api/v1/apps
is coming fromhomepage.cloudron.com
) then it wouldn't necessarily need an API key.If this were implemented, then Homepage and future dashboard apps wouldn't need any user intervention in order to display all the Cloudron instance's installed applications and icons.
Just a thought! Happy to hear what you think of such a solution.
-
I very much like the idea for such a dashboard being installed as an app instead of trying to make the main/admin dashboard overly configurable or theme-able.
For app listing, we could add a new app addon type which gets a restricted access token to fetch app listings and meta information. However we have to see how that works with regards to the access controls. For future auditing reasons, it may be better to not add some whitelisting mechanism which circumvents token validation. I wonder if the mentioned APIs would be sufficient for a good dashboard?
-
I very much like the idea for such a dashboard being installed as an app instead of trying to make the main/admin dashboard overly configurable or theme-able.
Agreed! I like the idea of a new addon type that would give an app 'automatic access' (doesn't have to be configured by end user) to some API endpoints. I agree with @girish that read-only access would work, but even just the 2 endpoints I listed above would be a solid start. I could eventually see endpoints like 'Get Status' or streams from tasks or services being handy for such dashboards.
-
@thetomester13 said in Potential Cloudron Theme/Dashboard:
homepage-cloudron
Hey there @thetomester13, is this something I can try out? I understand the rudiments of building and installing custom apps, but not sure if I need to fork your repo, of just cloning it will work. I requested access on gitlab.
-
@BrentHueth absolutely it's something you can try out! You can simply clone the repo and then do a
cloudron build
andcloudron install
(there are some prerequisites to this, be sure to check the official Cloudron documentation). I gave you developer access to the repo in case you did want to contribute, just know that the git.cloudron repo is the Cloudron packaged app, you can find the actual application on Github here. -
@thetomester13 If I'm not your first thrilled user, well then I'm another
-
@BrentHueth that makes me happy
@murgero yes, this is similar to Heimdall, it's based off of this Github project of which I'm the author. This particular app is purposefully packaged for Cloudron in that you give it an API key and it will auto-populate with all of your Cloudron apps, so no custom links at the moment.
-
@thetomester13 That's pretty cool!! I'll have to give this a shot then Thanks!
-
@girish No package, it's a simple PHP script - just used the LAMP app. I'd be happy to package it though if there is enough demand for it. That said I do not want to take over this thread so if anyone wants it - start a new thread.
-
We probably won't merge it into Cloudron itself but as a stand alone project which is packaged for Cloudron, we have no problems. Happy to publish it in our App Store as well (but it has to be a stand alone project like the rest of the apps we package).
-
@thetomester13 Very nice work!
Seems like an app to me, perhaps call it "Start Page", similar to: https://start.me
I'd like the links to open in a new window/tab, the ability to adjust icon size, number of columns, and additional non-cloudron links.
I like the Start Page feature in Vivaldi for inspiration: https://help.vivaldi.com/article/speed-dials/
Not a fan of frame scrollbars or hidden features, would prefer just to have it as a URL where they are always shown,, something like startpage.example.com that we can give to users to set as their browser home page with a search bar for a selection of search engines and cloudron itself.
-
More inspiration:
-
@thetomester13
I don't think this is required, as users cannot install and manage apps, only admins can. That means that during the App install there can be a user selection for who it's for by an admin which injects their profile/API key into the app and installs it, becoming the default of what a non-admin user sees at their URL. Login only required per App.Use of Rambox or WebCatalog can do something similar on the desktop, saving the need for crating entries for all the separate apps but just for their 'homepage' / startpage.