Commit Graph

1131 Commits (a3fa96242cecc298e3f3a303ab68cfe8bce9c0c5)

Author SHA1 Message Date
Aevann1 f34c4e1196 stop using app.config for our own stuff 2022-06-24 17:08:57 +02:00
Aevann1 68dc17ca4e fix ea37966aff 2022-06-24 16:18:48 +02:00
Aevann1 ea37966aff disable all cosmetic awards on devices with less than 3GB ram 2022-06-24 16:17:45 +02:00
Aevann1 f7c3cfbf5b fix 66eb63dcee 2022-06-24 16:10:05 +02:00
Aevann1 66eb63dcee reload pages on back button for me 2022-06-24 15:07:12 +02:00
Aevann1 222367cea8 fix 500 errors 2022-06-24 03:28:34 +02:00
Aevann1 9dbe67bf90 respect user's chosen themecolor 2022-06-24 03:27:49 +02:00
Aevann1 96e14111e3 do this https://chapotraphouse.club/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/2021584?context=8#context 2022-06-24 03:25:12 +02:00
Aevann1 4fc8520e24 remove post_toast2() and post_toast3() and incorporate them into post_toast() 2022-06-24 01:07:47 +02:00
Aevann1 b965666c2d fix catalog view not working while logged-out 2022-06-23 23:46:31 +02:00
Aevann1 ffcdc0aafe make hole banners bigger on desktop 2022-06-22 22:50:58 +02:00
Aevann1 d704592bdd cache-bust all previously broken images 2022-06-22 17:59:47 +02:00
Aevann1 20585ca543 add a shortened endpoint for static images and rename loading.webp to l.webp (to save bytes) 2022-06-22 17:51:19 +02:00
Aevann1 8d83c6944b readjust ricardo3 2022-06-18 15:27:04 +02:00
Aevann1 31b0bd5b68 readjuct ricardo3 again 2022-06-18 15:22:03 +02:00
Aevann1 088e98ed1b readjuct ricardo3 2022-06-18 15:21:03 +02:00
Aevann1 89a85a8ec0 remove weird trailing tabs 2022-06-18 04:13:55 +02:00
Aevann1 c609e98ba5 move ricardo from top-left to translate 2022-06-18 03:39:50 +02:00
Aevann1 8c137fef2b verify cloudflare 2022-06-18 01:22:56 +02:00
Snakes a8155d964a Kitchen sink: emoji content, assert, assetcache.
These are all minor and uncontroversial enough it just felt gross
making multiple commits.
  - Adds marseymummified.
  - Changes the new `raise ValueError(...)` in badge_grant to
    an `assert`.
  - Expands assetcache to a convenient grab bag of JS files.
2022-06-15 17:17:31 -04:00
Aevann1 d32a3774a6 fix bug where user banner sometimes wasn't shown on mobile 2022-06-15 20:29:54 +02:00
Aevann1 8a5d2ad9f8 tinker with image heights a little 2022-06-13 19:00:50 +02:00
Aevann1 b94fabddb4 rDrama -> SITE_NAME 2022-06-11 16:39:00 +02:00
Aevann1 07e98ab2f0 Revert "yandex verification"
This reverts commit dfbc645ffe.
2022-06-11 01:08:34 +02:00
Aevann1 dfbc645ffe yandex verification 2022-06-11 01:05:59 +02:00
Snakes cb5f9d05c6 templates: Fix improper plurals, create helpers.
Previously, the three instances of 'Report[s]' and one instance of
'Coin[s]' in the UI templates were always pluralized, even when they
referred to a singular instance. This has been corrected by creating
a `plural` helper macro.

Additionally, this was used as impetus to create `utils/helpers.html`
to eventually move more recurring template logic into macros.
2022-06-07 05:26:22 -04:00
Snakes fd1429a82f PCM content: swap banner. 2022-06-01 16:08:33 -04:00
Snakes 80d04b6d9d assetcache: Add theme CSS support; bust recent. 2022-05-30 01:50:52 -04:00
Aevann1 79db8254d8 re-added cached banner 2022-05-30 04:33:07 +02:00
Snakes 0aafd810a2 assetcache: Add dynamic file parameter, apply more.
Assetcache macro improvement: to support assets in folders which are
dynamically referenced by e.g. ID or name, the `asset` macro now
accepts an optional second parameter to be included in the path but
not to be used for versioning the class of assets.

To support recent commits, assetcache now applies for:
  - images/badges/*.webp
  - js/: award_modal.js, bootstrap.js, header.js
2022-05-29 00:52:40 -04:00
Aevann1 6584919d41 sdf 2022-05-28 22:25:28 +02:00
Aevann1 20bce86d33 Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-05-27 22:03:25 +02:00
Aevann1 ead4c791a8 sdf 2022-05-27 22:03:23 +02:00
HappyDOGE 9c8c08ecb5 update bootstrap (#287) 2022-05-27 21:40:01 +02:00
HappyDOGE 12b4ab4bec offline_enabled (#286)
* Added offline service worker (serves a static webpage when no internet connection is present)

* add offline_enabled parameter to manifest
2022-05-27 21:30:29 +02:00
HappyDOGE d6b4c3b166 Added offline service worker (serves a static webpage when no internet connection is present) (#285)
based
2022-05-27 21:23:01 +02:00
Aevann1 e659394744 sfd 2022-05-27 18:06:57 +02:00
Aevann1 bb85df4d67 fsd 2022-05-27 17:59:50 +02:00
Snakes af77ec515d Templates: create assetcache template.
For too long, we've Replace-All'd to increment site asset version
numbers. This is a task that has an obvious solution using the
templating engine. As such, we now have templates/util/assetcache.html
which contains a dict of version numbers and a macro to generate the
versioned name of an asset.

Going forward, it is recommended that all future replace-all uses
are used as opportunities to switch to the macro. Do remember to
import the macro in all top-level templates, if not already present.
Recommended form: {%- from 'util/assetcache.html' import asset -%}
Then add a key to CACHE_VER in util/assetcache.html.
Then replace the asset path in templates eg: {{asset('css/main.css')}}

For all future versions of those assets, one can simply increment
the value in util/assetcache.html instead. This will greatly reduce
git spam touching unrelated files and generally be clearer and easier.
2022-05-26 22:47:32 -04:00
Aevann1 27c3d89b5f sfd 2022-05-27 01:12:43 +02:00
Aevann1 22aacf86ec vf 2022-05-27 00:23:16 +02:00
Aevann1 163267c88c Revert "Add Y'all Seein' Eye award."
This reverts commit a0f441a67d.
2022-05-26 02:51:42 +02:00
Snakes a0f441a67d Add Y'all Seein' Eye award.
Adds award to enable viewing profile visitors for non-mops and
non-patrons. This commit should encompass all frontend, backend, and
database changes necessary. Perhaps usable as a model for other
user upgrade flag awards.
2022-05-25 19:44:34 -04:00
Aevann1 6859653e1a sfd 2022-05-25 23:57:38 +02:00
Aevann1 2c67a34047 fsd 2022-05-25 23:55:07 +02:00
Aevann1 3706d3d22c sdf 2022-05-25 20:36:09 +02:00
Aevann1 b1d57227ff sfd 2022-05-25 03:18:36 +02:00
Aevann1 4e4f667387 journoid 2022-05-25 03:14:18 +02:00
Aevann1 454d5173eb sfd 2022-05-25 01:42:55 +02:00
Aevann1 d9145c76d4 sdf 2022-05-25 01:40:50 +02:00
Snakes fdd5704348 Cache bust awards.css for confetti change. 2022-05-24 15:09:42 -04:00
Aevann1 bbd851210e fds 2022-05-24 17:32:49 +02:00
Snakes 727f58f159 Fix confetti appearing in awardModal.
The confetti button in the awardModal had a conflicting ID to the
newly-reimplemented confetti award. This resulted in an amusing bug
where the awardModal was filled with confetti. Conflict has been
resolved by renaming the confetti overlay.

This is what I deserve for writing code at 3AM.
2022-05-23 11:51:10 -04:00
Snakes 517e5ec3b3 Re-implement confetti award.
To replace the implementation of the confetti award, we now use an
animated WebP tiled as a background image on a fixed overlay. This
should alleviate the previous performance concerns (no runtime
calculation of confetti mechanics & rendering) and maintainable
concerns.
2022-05-23 02:57:43 -04:00
Snakes cc75375c82 Un-deploy Birthgay event.
Removes temporary changes for the Birthgay 2022 event, ending
approximately at 2022-05-23 0600Z. Changes:
 - Double XP disabled.
 - Lootboxes disabled.
 - Three event awards given real descriptions and colors.
 - Partyhats: restored to cakeday-only condition and tooltip.
 - Header UI: balloons removed, text visibility outline removed,
   journoid banner reverted, marseyjam as header icon.
 - Birthgay banners: removed from template, moved to new storage dir.

Confetti, though remaining as a permanent award, has been temporarily
removed pending a less performance-intensive implementation and one
that doesn't require maintaining a third-party package in the codebase.
2022-05-23 01:48:25 -04:00
Aevann1 0a74a98ec5 big ass commit 2022-05-23 00:15:29 +02:00
Aevann1 b9316c0073 fsd 2022-05-21 15:19:02 +02:00
Aevann1 20cc20d806 fsd 2022-05-21 14:36:22 +02:00
Aevann1 a83a72ca95 fsd 2022-05-20 16:51:14 +02:00
Aevann1 f4ac063354 sfd 2022-05-20 16:48:13 +02:00
Aevann1 4a6545ef5d dfsfds 2022-05-20 16:39:46 +02:00
Aevann1 40dce26a65 Merge branch 'birthgay-staging' of https://github.com/Aevann1/Drama into birthgay-staging 2022-05-20 16:17:11 +02:00
Aevann1 eead5570e5 fsd 2022-05-20 16:17:09 +02:00
Snakes 97bfdc5d3e Improve readability on header birthgay bg. 2022-05-19 19:15:49 -04:00
Aevann1 0eb39b987c 2022-05-20 00:24:34 +02:00
Snakes c789f6923e Merge remote-tracking branch 'upstream/frost' into birthgay-staging 2022-05-19 17:59:35 -04:00
Snakes 039991dd43 Add birthgay event banner assets, template change. 2022-05-19 17:26:22 -04:00
Aevann1 371c7375c8 fds 2022-05-19 09:44:43 +02:00
Aevann1 15f0b963c7 fc 2022-05-18 20:45:04 +02:00
DrTransmisia d3c404a5f5 CTRL + ENTER TO POST LE NEW COMMENT (#266)
* le shortcut handlers

* le white line as arrived

* Update default.html

Co-authored-by: Aevann1 <59999695+Aevann1@users.noreply.github.com>
2022-05-17 22:44:17 +02:00
Aevann1 3491c9187d pls review 2022-05-17 21:58:41 +02:00
Aevann1 9dbd9f42e0 fsd 2022-05-14 15:17:57 +02:00
Aevann1 f67860c566 sf 2022-05-13 13:03:44 +02:00
Aevann1 fac797006e sf 2022-05-10 14:14:09 +02:00
Aevann1 09f732d009 sf 2022-05-10 13:40:23 +02:00
Aevann1 3f2eb808b8 fd 2022-05-10 10:07:19 +02:00
Aevann1 db99dd8255 sfd 2022-05-10 09:32:11 +02:00
Aevann1 9bd8fcbd1c sf 2022-05-10 09:20:49 +02:00
Aevann1 b7a2527be9 dg 2022-05-10 06:09:14 +02:00
Aevann1 421edf92f4 vxc 2022-05-09 16:44:11 +02:00
Aevann1 8fd2002013 dgf 2022-05-09 16:40:27 +02:00
geese 507d4929f7 brasil #1 2022-05-08 13:37:30 -04:00
Aevann1 8535ec8958 hk 2022-05-07 10:51:07 +02:00
Aevann1 b5abdccff8 sdf 2022-05-07 09:13:52 +02:00
Aevann1 036e61110a sfd 2022-05-07 09:12:59 +02:00
Aevann1 8a5fd22034 sfd 2022-05-07 09:09:46 +02:00
Aevann1 1b86af8def fg 2022-05-07 07:28:51 +02:00
Aevann1 bb43be278b dg 2022-05-05 23:49:27 +02:00
Aevann1 6b10d097a2 mn 2022-05-05 01:09:46 +02:00
Aevann1 a35ef11d77 fds 2022-05-03 21:19:00 +02:00
Aevann1 7b834f2831 fd 2022-05-03 02:13:57 +02:00
Aevann1 df9585017c dsa 2022-05-02 23:30:03 +02:00
Aevann1 18509b653a dfg 2022-05-02 21:39:18 +02:00
Aevann1 999c16e439 sfd 2022-05-02 02:04:25 +02:00
Aevann1 f3983ab491 sdf 2022-05-02 02:02:19 +02:00
Aevann1 41f08325fa sdf 2022-05-02 01:58:06 +02:00
Aevann1 ecf20686bb jg 2022-05-02 01:51:47 +02:00
Aevann1 bc2a20cd4b sfd 2022-05-01 23:44:38 +02:00
Aevann1 ceb03b25bc gfd 2022-04-29 00:03:31 +02:00
Aevann1 43563ec143 sfd 2022-04-28 03:02:37 +02:00
Aevann1 5a689be072 dg4 2022-04-28 02:13:30 +02:00
Aevann1 d961ffc913 fds 2022-04-28 02:04:01 +02:00
Aevann1 6db7bd5885 fsd 2022-04-28 00:43:22 +02:00
Aevann1 583765f259 czx 2022-04-27 17:03:25 +02:00
Aevann1 5a49be1d47 fsd 2022-04-26 15:40:37 +02:00
Aevann1 13166f5ca3 vcx 2022-04-26 00:43:59 +02:00
Aevann1 2d1d946919 vxc 2022-04-26 00:41:34 +02:00
Aevann1 0f05bf3f94 fsd 2022-04-26 00:28:20 +02:00
Aevann1 836ed4ba91 vxc 2022-04-25 22:07:03 +02:00
Aevann1 94a190a46b czx 2022-04-25 00:38:24 +02:00
Aevann1 5fd4a0d83d fds 2022-04-23 01:32:48 +02:00
Aevann1 df046d4677 dsf 2022-04-23 01:31:55 +02:00
Aevann1 68add1eb36 fds 2022-04-23 00:07:58 +02:00
Aevann1 c6252e30e0 fsd 2022-04-22 14:42:40 +02:00
Aevann1 bd6349d448 Revert "RESTORE CACHE"
This reverts commit 3d193357ef.
2022-04-19 22:22:24 +02:00
Aevann1 3d193357ef RESTORE CACHE 2022-04-19 22:21:47 +02:00
Aevann1 f3743d717d fds 2022-04-18 23:11:30 +02:00
Aevann1 8214e2c6f9 fds 2022-04-18 00:13:37 +02:00
Aevann1 252d3df198 gf 2022-04-17 19:51:01 +02:00
Aevann1 782c58e8c0 fsd 2022-04-17 15:54:22 +02:00
Aevann1 48c0094ae5 fds 2022-04-17 15:43:36 +02:00
Aevann1 2c8fe2adce fds 2022-04-16 22:12:34 +02:00
Aevann1 6f6fa51f36 g 2022-04-16 21:15:07 +02:00
Aevann1 2d45a66739 fdsfd 2022-04-16 17:25:17 +02:00
Aevann1 ff32a6bee3 fds 2022-04-16 01:10:23 +02:00
Aevann1 7047953ce7 fdsdfs 2022-04-16 00:39:17 +02:00
Aevann1 0bdfd182d8 fds 2022-04-15 18:53:48 +02:00
Aevann1 43006ba440 fds 2022-04-15 17:03:02 +02:00
Aevann1 b54332b041 fd 2022-04-14 19:41:21 +02:00
Aevann1 923cac0125 fds 2022-04-14 19:40:13 +02:00
Aevann1 9bcc5425d7 fds 2022-04-14 19:24:40 +02:00
Aevann1 ab512b1406 fds 2022-04-14 19:22:37 +02:00
Aevann1 543b9a73cb rfds 2022-04-14 19:20:00 +02:00
Aevann1 396762f799 fsd 2022-04-14 18:48:50 +02:00
Aevann1 c0a0ca0217 fds 2022-04-14 18:46:57 +02:00
Aevann1 bae617974f fds 2022-04-13 22:20:57 +02:00
Aevann1 bbd633e8ca fds 2022-04-13 22:07:58 +02:00
Aevann1 e264084921 fds 2022-04-13 21:38:15 +02:00
Aevann1 9d9ad47be7 fds 2022-04-13 21:35:22 +02:00
Aevann1 3ea5c669d2 fdfsd 2022-04-13 21:31:13 +02:00
Aevann1 d5b6fa4ed3 dfg 2022-04-13 21:27:48 +02:00
Aevann1 2406f332f7 fds 2022-04-13 21:18:33 +02:00
Aevann1 5ce87b1f3e fsd 2022-04-13 19:29:28 +02:00
Aevann1 e86c41799c fds 2022-04-13 17:54:06 +02:00
Aevann1 7e75211049 fsd 2022-04-13 16:14:47 +02:00
Aevann1 c63689a576 fsdfds 2022-04-13 15:34:23 +02:00
Aevann1 862af75b82 gf 2022-04-13 03:13:09 +02:00
Aevann1 784d4d84bd sdf 2022-04-13 02:34:26 +02:00
Aevann1 db8b1a41cd fds 2022-04-13 02:23:44 +02:00
Aevann1 26c2870454 fds 2022-04-13 02:17:37 +02:00