mox/webadmin
Mechiel Lukkien 96d86ad6f1
add ability to include custom css & js in web interface (webmail, webaccount, webadmin), and use css variables in webmail for easier customization
if files {webmail,webaccount,webadmin}.{css,js} exist in the configdir (where
the mox.conf file lives), their contents are included in the web apps.

the webmail now uses css variables, mostly for colors. so you can write a
custom webmail.css that changes the variables, e.g.:

	:root {
		--color: blue
	}

you can also look at css class names and override their styles.

in the future, we may want to make some css variables configurable in the
per-user settings in the webmail. should reduce the number of variables first.

any custom javascript is loaded first. if it defines a global function
"moxBeforeDisplay", that is called each time a page loads (after
authentication) with the DOM element of the page content as parameter. the
webmail is a single persistent page. this can be used to make some changes to
the DOM, e.g. inserting some elements. we'll have to see how well this works in
practice. perhaps some patterns emerge (e.g. adding a logo), and we can make
those use-cases easier to achieve.

helps partially with issue #114, and based on questions from laura-lilly on
matrix.
2024-11-29 10:17:07 +01:00
..
admin.go add ability to include custom css & js in web interface (webmail, webaccount, webadmin), and use css variables in webmail for easier customization 2024-11-29 10:17:07 +01:00
admin.html add ability to include custom css & js in web interface (webmail, webaccount, webadmin), and use css variables in webmail for easier customization 2024-11-29 10:17:07 +01:00
admin.js add ability to include custom css & js in web interface (webmail, webaccount, webadmin), and use css variables in webmail for easier customization 2024-11-29 10:17:07 +01:00
admin.ts add ability to include custom css & js in web interface (webmail, webaccount, webadmin), and use css variables in webmail for easier customization 2024-11-29 10:17:07 +01:00
admin_test.go make tests pass with "go test -count n" with n > 1 2024-06-10 18:18:20 +02:00
api.json improve http request handling for internal services and multiple domains 2024-05-11 11:13:14 +02:00
api.ts improve http request handling for internal services and multiple domains 2024-05-11 11:13:14 +02:00