Closed bluecraank closed 1 year ago
How are you customising the template files?
At the moment I'm looking to not add new features for a while and make the design and feel of the various UI elements of wag more consistent. So I cant promise that this will be something Im going to do any time soon, or at all.
More context is always useful tho :)
We have a specific design and would like to do the same with the MFA Portal. Therefore it would be great if you could specify in the config what the template files are to overwrite the HTML
Im planning on wrapping this up into the 6.x.x release Im doing soon. Is allowing you to define your own CSS for it enough? Or would you like complete control (as thats a bit harder for me to make)
Hello,
i would prefer full control. You could create a template folder and check if there are any files for overwriting design, this should not be so hard to make
Yep I have a method in mind. You can look forward to this in the next couple days all things going well
I have added this in the latest pre-release. Please give it a shot and tell me if this suites, if it does I'll do a full release.
How to use css and more?
Please read the documentation.
I did, at the moment u can not add javascript / css files to template folder. Using other sources for css/js is not allowed (style-src webserver restriction) So the only way is inline css?
Oh even inline styles not working :(
Refused to apply inline style because it violates the following Content Security Policy directive: "style-src 'self' fonts.googleapis.com". Either the 'unsafe-inline' keyword, a hash ('sha256-QK8bSv1dlnwrOBpQEtdh0AtJ1yALgA+MYljY7NkQMGU='), or a nonce ('nonce-...') is required to enable inline execution. Note that hashes do not apply to event handlers, style attributes and javascript: navigations unless the 'unsafe-hashes' keyword is present.
Yep that's how csps work.
I'll look at adding a css and js folders in the template directory.
Yeah, i now building wag myself and added the style files into the static folder.
At the moment, i have to download source and customize template files.
Maybe it is possible, that the compiled version looks for a folder where templates are in