23 Commits

Author SHA1 Message Date
0058f8bb4c Add Containerfile
Some checks failed
dustin/dcow-site/pipeline/head There was a failure building this commit
2023-12-15 14:28:03 -06:00
06ef3d4146 wsgi: Add basic WSGI module 2023-12-15 14:27:39 -06:00
810f7d07b8 base: Set response charset
WebOb has started raising an exception when writing a Unicode string to
`Response` objects if no charset is set.
2023-12-15 14:26:53 -06:00
9023294c60 Version 5 2023-12-15 14:26:21 -06:00
d9f194118c ci: Update container image to Fedora 33
Some checks failed
dustin/dcow-site/pipeline/head There was a failure building this commit
2020-12-08 21:50:35 -06:00
97b4f73d8a setup: Include templates in binary distribution 2018-07-27 08:34:26 -05:00
007a3e556a ci: Add Jenkins pipeline 2018-07-27 08:30:04 -05:00
c9ea4d2e77 setup: Express dependencies 2018-07-26 20:04:32 -05:00
4b229c7283 templates: base: Add viewport metadata
Without the "viewport" metadata element, the site is not properly scaled
for mobile.
2017-07-02 12:02:28 -05:00
118ce902a9 Merge tauscorpii:src/dcow-site 2017-07-02 12:02:20 -05:00
d8a685524e Version 4 2017-07-02 12:00:57 -05:00
ab5a41f686 upload: Add form to upload images
The upload form allows users to upload images to the Dark Chest of
Wonders screenshot gallery. No authentication, etc. is performed, so
this needs to be handled by the web server.
2017-07-02 11:37:46 -05:00
65f1a46d17 app: Add global error handling
When a controller raises an error, the application now handles it and
ensures that the proper representation is returned to the user-agent.
2017-07-02 11:36:48 -05:00
2cdc613f3a gallery: Use new response.set_payload method
The `set_payload` method of the `VariedResponse` class takes care of
rendering the Jinja template  or serializing the context object as JSON,
so that no longer needs to be handled by controllers.
2017-07-02 11:36:11 -05:00
860c36b0f2 app: Support multiple resource representations
The `VariedResponse` class essentially turns the website into a REST
API. When a controller returns a response object that is an instance of
this class, the response representation sent to the user-agent will vary
based on the value of the `Accept` request header. Specifically,
requests containing `Accept: application/json` will receive a
JSON-encoded object, while typical browser requests will get an (X)HTML
document.
2017-07-02 11:32:28 -05:00
bb9f19ff04 templates: Move template boilerplate to base
Moving HTML boilerplate to a separate file will allow other templates to
inherit it.
2017-07-02 11:25:09 -05:00
5f323faf95 Version 3 2017-07-02 09:46:06 -05:00
Gyrfalcon
607d3120f6 thumbnails: Handle non-ASCII filenames
The WSGI specification requires that URL-paths be encoded as ISO-8859-1
(Latin-1). For filenames that only use ASCII characters, this works
correctly. When a filename includes characters encoded in other
character sets, however, the thumbnail controller will return always
HTTP 404 if the local filesystem does not also use the Latin-1 character
set.

To work around this discrepancy and ensure that requested file names are
looked up on the local filesystem correctly, the string must be
re-encoded in the proper character set.
2016-10-31 23:11:25 -05:00
Gyrfalcon
15719c20b5 gallery: Sort by screenshots modification time 2016-05-13 18:32:35 -05:00
Gyrfalcon
04b7e0cb9b Add thumbnail generation support 2016-05-13 18:21:35 -05:00
Gyrfalcon
8e99f4baff Version 2 2016-05-13 18:21:35 -05:00
Gyrfalcon
ff3678ab99 Add basic gallery functionality 2016-05-13 18:21:35 -05:00
Gyrfalcon
8f3c6af6db Initial commit 2016-05-12 19:34:30 -05:00