Kim Alvefur
48f26f9b98
mod_http_errors: Simplify CSS via built-in dark mode
2023-12-06 23:52:45 +01:00
Kim Alvefur
98922d54b1
plugins: Prefix module imports with prosody namespace
2023-03-24 13:15:28 +01:00
Kim Alvefur
39cb7aabe0
mod_http_errors: Make it easier to override 'http-message' handler
...
Per the unspoken internal standard of -1 as priority for most built-in
event handlers, since this makes it easy for 3rd party plugins to
override behavior by hooking at the default priority of 0.
2021-09-24 18:39:28 +02:00
Kim Alvefur
4439ef50e4
mod_http_errors: Set status code 200 from root page
...
It isn't quite an error.
2021-07-09 22:06:58 +02:00
Kim Alvefur
b24d7fe90d
mod_http_errors: Add a Prosody logo to root page
2021-07-09 21:55:14 +02:00
Kim Alvefur
fa1e274fb4
mod_http_errors: Allow adding icons on error pages
2021-07-09 21:54:47 +02:00
Kim Alvefur
fcaf27fc8a
mod_http_errors: Add some comments
2021-02-25 13:12:07 +01:00
Kim Alvefur
3180f48bc5
mod_http_errors: Add some silly variations for the '/' page
...
> "You can do anything in XMPP!"
> as a reminiscence of zombo.com
-- jonas’
> A study in simplicity.
Prosody tagline
2021-02-25 12:59:28 +01:00
Kim Alvefur
24974dc1c6
mod_http_errors: Style tweak
...
Weird to have the background all the way to the edge of the viewport.
Would be nice if this could be done without the extra span.
2021-02-21 07:59:17 +01:00
Kim Alvefur
ba8610666a
mod_http_errors: Add a highlighted warning to template
...
It looks sooooo good!
Meant to be used by e.g. mod_bosh to warn in case the request is
considered insecure.
2021-02-21 06:15:59 +01:00
Kim Alvefur
6d29fa653c
mod_http_errors: Add way to reuse the error page template
...
module:fire_event("http-message", {title = "hello"; message = "world"})
Goal is to enable consistent messages from Prosody. Not necessarily
error messages, but warnings or just notices.
This does cause some drift in the purpose of mod_http_errors, but that's
okay.
2021-02-21 06:13:19 +01:00
Kim Alvefur
699e27da56
mod_http_errors: Minify CSS
...
Because It looks too big in view source!
2021-02-18 14:55:38 +01:00
Kim Alvefur
b4af560c97
mod_http_errors: Remove 'extra' element when empty
2020-10-12 18:27:42 +02:00
Kim Alvefur
6518e5f41b
mod_http_errors: Dark theme!
2020-10-12 18:16:18 +02:00
Kim Alvefur
09e8795afb
mod_http_errors: Use a class on extra data section
...
This CSS selector makes it awkward to add more items.
2020-10-12 18:13:20 +02:00
Kim Alvefur
30f7e379d4
mod_http_errors: Use text from util.errror object if included
...
This makes util.error objects useful for more than just an error code
container.
2019-12-29 22:20:51 +01:00
Kim Alvefur
dfa2bdffc0
mod_http_errors: Show a friendly page instead of 404 on top level
2019-11-17 16:16:53 +01:00
Kim Alvefur
c3c38cd2b3
mod_http_errors: Normalize CSS
2019-01-06 10:42:45 +01:00
Kim Alvefur
78b88eff88
mod_http_errors: Use util.interpolation to render HTML template
2017-10-27 13:27:35 +02:00
Kim Alvefur
44860ff0db
mod_http_errors: Set Content-Type header to HTML ( fixes #1030 )
2017-10-27 13:28:34 +02:00
Kim Alvefur
135071b736
mod_http_errors: Add a newline after end of HTML
2016-07-12 10:39:04 +02:00
Florian Zeitz
1d833bb807
Remove all trailing whitespace
2013-08-09 17:48:21 +02:00
Kim Alvefur
91cc88b338
mod_motd, mod_register, mod_private, mod_http_errors, mod_admin_adhoc: Remove unused imports
2013-03-23 01:27:38 +01:00
Matthew Wild
515110f944
mod_http_errors: Fix cyclic dependency - mod_http depends on us now, no need to depend on it (-1 line) (thanks Maranda)
2012-05-11 02:36:26 +01:00
Matthew Wild
97bead16ac
mod_http_errors: Add two new config options, http_errors_always_show (show even for unknown errors) and http_errors_default_message (message for unknown errors)
2012-04-27 23:12:30 +01:00
Matthew Wild
84cfab1030
mod_http_errors: Module to handle HTTP errors with a HTML page
2012-04-26 15:16:29 +01:00