You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* ✨ feat: Add win98 template with localization
Adds a new "win98" template, emulating a Windows 98 error page, and includes localization support for various UI elements like "My Computer", "My Documents", and "Start" button. Also updates the CLI documentation to include the new template.
* Update templates/win98.html
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* 🐛 fix(win98): Correct AM/PM determination in clock
The original logic used `hours` which was already in 24-hour format,
leading to incorrect AM/PM display after noon; switched to `hours24`
to fix this issue.
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
<!-- Documentation inside this block generated by github.com/urfave/cli; DO NOT EDIT -->
838
+
<!-- Documentation inside this block generated by github.com/urfave/cli-docs/v3; DO NOT EDIT -->
823
839
## CLI interface
824
840
825
841
Usage:
@@ -857,7 +873,7 @@ The following flags are supported:
857
873
|`--json-format="…"`| Override the default error page response in JSON format (Go templates are supported; the error page will use this template if the client requests JSON content type) ||`RESPONSE_JSON_FORMAT`|
858
874
|`--xml-format="…"`| Override the default error page response in XML format (Go templates are supported; the error page will use this template if the client requests XML content type) ||`RESPONSE_XML_FORMAT`|
859
875
|`--plaintext-format="…"`| Override the default error page response in plain text format (Go templates are supported; the error page will use this template if the client requests plain text content type or does not specify any) ||`RESPONSE_PLAINTEXT_FORMAT`|
860
-
|`--template-name="…"` (`-t`) | Name of the template to use for rendering error pages (built-in templates: app-down, cats, connection, ghost, hacker-terminal, l7, lost-in-space, noise, orient, shuffle) |`app-down`|`TEMPLATE_NAME`|
876
+
|`--template-name="…"` (`-t`) | Name of the template to use for rendering error pages (built-in templates: app-down, cats, connection, ghost, hacker-terminal, l7, lost-in-space, noise, orient, shuffle, win98)|`app-down`|`TEMPLATE_NAME`|
861
877
|`--disable-l10n`| Disable localization of error pages (if the template supports localization) |`false`|`DISABLE_L10N`|
862
878
|`--default-error-page="…"`| The code of the default (index page, when a code is not specified) error page to render |`404`|`DEFAULT_ERROR_PAGE`|
863
879
|`--send-same-http-code`| The HTTP response should have the same status code as the requested error page (by default, every response with an error page will have a status code of 200) |`false`|`SEND_SAME_HTTP_CODE`|
0 commit comments