No description
Find a file
Kumi 0601a39829
feat: add dev mode warning and styling
Introduced a development mode toggle for the app, which, when enabled, displays a distinctive warning on every page to inform users they are viewing a development version of the site. This warning is styled for clear visibility. Development mode is toggled with a new `--dev` command line argument or by setting an environment variable. The change aims to prevent confusion between the development and production environments for both developers and early users.

- Added new CSS rules for a warning alert style in `base.css`.
- Modified `main.py` to check for a development mode flag and pass a warning message to the template if the flag is set.
- Updated `base.html` to include the warning message when present.
- Added a new template for the development warning message.
2024-05-27 17:37:30 +02:00
assets feat: add dev mode warning and styling 2024-05-27 17:37:30 +02:00
contrib feat(Caddyfile): support security.txt redirection 2024-03-15 10:55:50 +01:00
templates feat: add dev mode warning and styling 2024-05-27 17:37:30 +02:00
.gitignore Implement dynamic service rendering with Flask 2023-12-31 13:59:13 +01:00
LICENSE Add LICENSE 2023-03-09 17:26:44 +00:00
main.py feat: add dev mode warning and styling 2024-05-27 17:37:30 +02:00
README.md feat(README): add support badge 2024-04-17 09:38:03 +02:00
requirements.txt Implement dynamic service rendering with Flask 2023-12-31 13:59:13 +01:00
services.json feat(services): exclude YOURLS service from indexes 2024-05-07 15:35:20 +02:00

Private.coffee Website

Support Private.coffee!

This is the source code for the Private.coffee website.

It is a simple Flask application that generates the HTML for the website based on the services defined in the services.json file.

Development

To run the website locally, you will need to have Python 3 installed. Then, you can install the dependencies and run the website with the following commands:

pip install -r requirements.txt
python main.py

The website will be available at http://localhost:9810.

License

This project is licensed under the MIT License - see the LICENSE file for details.