-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
Customisations - Web interface #71
Comments
At the moment the interface is built using the node / webpack toolchain and then included into the binaries which is also used to generate the checksums for resource integrity to ensure no attacker is modifying the code and therefore grabbing data… So in short: Currently it is not possible. What exactly would you want to customize?
|
Can I say all of the above? Would it be possible to stick an upload API in, to allow you to submit something like a template and the associated files. So the build itself doesnt have to change, and all the checksums are still valid. Just allowing it to be extended with additional parts. |
Of course you can! 🙂 In the end I'm currently trying to figure out whether this can be easily enabled and if so how would be the best way to do so… I'd refrain from an upload-API as OTS itself has no authentication / authorization mechanisms and IMHO implementing them would be overkill… What I could do is to create an "overlay filesystem" for some path to be specified when starting. Assets would be served from that directory and if either the directory or the file inside the directory does not exist it falls back to the baked-in assets. This would give the chance to override the baked-in assets. On the other hand you'd still need to build the frontend with your customizations and put them there. Not sure whether this gives what much of a benefit over building the frontend and then compiling the server once to bake in the assets… For changing just the name in the header-bar and disabling the footer one could simply add some config parameters and read those through an extra API which then would change the frontend behavior. Just replacing texts / layout would mean you'd need to rebuild… |
That actually sounds cool, the overlay part. Then it would serve the same purpose without comprising the platform. Having the config editable would be a good start. The problem (for me at least) is I couldnt even workout how to get it to build.... I barely even got Go installed |
This would be an awesome addition to your ots project. So and yes, please add the possibility to change the layout/colors so that it can better fit our enterprise CI/CD. |
Good points… So basically the outcome of this should be to have the chance to
Which would also contribute to people stopping to fork the project, delete all attribution (and therefore violate the license) to have their customized version… I'm still not a 100% sure how to proceed - unordered thoughts follows: Overwriting the template requires to re-build the whole application… Just overwriting the style would be adding another CSS file overwriting the Bootstrap / Bootswatch theme… With the light/dark theme switcher it would be advisable to patch the @Nephiaust you talked about changing the template itself: Is your intention too to just re-style the interface (CI/CD) or do you want to replace more than that? So would having the style separated from the application address your needs? 🤔 |
For us it would initially be sufficient in the first place to just be able to change the following css attributes for both light and dark modes:
And if you would change the Github link to something like "Github project page" or whatever this would be a great benefit. 👍 |
@Luzifer as @HappyMan4 suggests, its a good start. It would be nice to customise the whole page; but being able to at least change the colours, adding a logo (or 2) would be a good start. |
For customizations, I think an overlay as what gitea is doing would be perfect. Totally agree with comments of @HappyMan4, I am in a similar situation. |
in order to take a little step to make users more comfortable using the tool in enterprise environments refs #71 Signed-off-by: Knut Ahlers <knut@ahlers.me>
refs #71 Signed-off-by: Knut Ahlers <knut@ahlers.me>
refs #71 Signed-off-by: Knut Ahlers <knut@ahlers.me>
Please have a look at the latest (not yet released) version of OTS having support for frontend customizations and let me know whether you need more / other customization options: Documentation for the new customization feature: A Docker image is available here: |
refs #71 Signed-off-by: Knut Ahlers <knut@ahlers.me>
As soon as you release the new version I will give it a go. Just set up a testmachine and prepared everything for testing. |
I did a build of 1.0.0-d3e92c7. All is working well for me. |
Then lets wait for #87 and afterwards create a new release and close this? The new overlay directory and customization options should cover everything wished for in this ticket… 🤔 |
Hey guys, I think I need some help.
But when calling the webui on the ip address it says
I just created a webfonts/fa-solid-900.woff2 and also frontend/webfonts/fa-solid-900.woff2 and recompiled, but the error stays - what am I doing wrong? |
Please execute |
Luzifer, thank you. I just didn't have any docker* things installed so make default failed. |
Yeah I'm not exactly happy that the build requires Docker to build in a specific Node 18 environment (before switching the build tooling some days ago it was Node 14) but managing this on the host machine is just pain… Having all the stuff for frontend-dev in place it should(TM) build on a recent (18+) Node installation using |
This is an enhancement request.
Using the pre-built releases, can there be a way to customise the interface of the portal. To brand it or similar?
The text was updated successfully, but these errors were encountered: