Kim Alvefur
48f26f9b98
mod_http_errors: Simplify CSS via built-in dark mode
2 years ago
Kim Alvefur
98922d54b1
plugins: Prefix module imports with prosody namespace
3 years ago
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.
4 years ago
Kim Alvefur
4439ef50e4
mod_http_errors: Set status code 200 from root page
...
It isn't quite an error.
5 years ago
Kim Alvefur
b24d7fe90d
mod_http_errors: Add a Prosody logo to root page
5 years ago
Kim Alvefur
fa1e274fb4
mod_http_errors: Allow adding icons on error pages
5 years ago
Kim Alvefur
fcaf27fc8a
mod_http_errors: Add some comments
5 years ago
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
5 years ago
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.
5 years ago
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.
5 years ago
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.
5 years ago
Kim Alvefur
699e27da56
mod_http_errors: Minify CSS
...
Because It looks too big in view source!
5 years ago
Kim Alvefur
b4af560c97
mod_http_errors: Remove 'extra' element when empty
5 years ago
Kim Alvefur
6518e5f41b
mod_http_errors: Dark theme!
5 years ago
Kim Alvefur
09e8795afb
mod_http_errors: Use a class on extra data section
...
This CSS selector makes it awkward to add more items.
5 years ago
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.
6 years ago
Kim Alvefur
dfa2bdffc0
mod_http_errors: Show a friendly page instead of 404 on top level
6 years ago
Kim Alvefur
78b88eff88
mod_http_errors: Use util.interpolation to render HTML template
8 years ago
Kim Alvefur
44860ff0db
mod_http_errors: Set Content-Type header to HTML ( fixes #1030 )
8 years ago
Kim Alvefur
135071b736
mod_http_errors: Add a newline after end of HTML
10 years ago
Florian Zeitz
1d833bb807
Remove all trailing whitespace
13 years ago
Kim Alvefur
91cc88b338
mod_motd, mod_register, mod_private, mod_http_errors, mod_admin_adhoc: Remove unused imports
13 years ago
Kim Alvefur
c3c38cd2b3
mod_http_errors: Normalize CSS
7 years ago
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)
14 years ago
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)
14 years ago
Matthew Wild
84cfab1030
mod_http_errors: Module to handle HTTP errors with a HTML page
14 years ago