Commit Graph

1136 Commits (ecc32382b2eddff9a4988d1fa043081069f85e70)

Author SHA1 Message Date
Aevann1 fea5ee75eb try to fix pusher 2022-09-16 20:28:35 +02:00
Aevann1 2e31b52366 for consistency's sake, don't use {sub.name} inside strings anymore 2022-09-12 07:25:04 +02:00
Snakes b8675977b6
Show sidebar on all posts, including unholed. 2022-09-10 14:46:10 -04:00
Aevann1 e9445efc22 make bootstrap work on localhost 2022-09-08 19:12:46 +02:00
Aevann1 71b5367874 cachebust all css and js 2022-09-05 01:50:43 +02:00
Aevann1 906c21acc4 add nocss parameter to holes 2022-09-02 19:03:42 +02:00
Aevann1 c40fa120e8 remove ((( from chud award 2022-08-30 06:03:16 +02:00
Aevann1 0f11312d24 add house awards 2022-08-27 04:57:19 +02:00
Aevann1 2139b89d44 cachebust 2022-08-25 00:23:57 +02:00
Aevann1 754bef72f9 remove funonly.xyz 2022-08-24 21:06:26 +02:00
Aevann1 604c2583af make clicking on the image inside posts expands it 2022-08-24 18:43:08 +02:00
Aevann1 19c38b9730 refactor banners 2022-08-19 22:16:31 +02:00
Snakes 0a1e1c7c96
PCM: swap banner. 2022-08-19 11:19:02 -04:00
Aevann1 1079b99ee6 fix pusher 2022-08-19 00:29:44 +02:00
Snakes b81b19d838
PCM: change banner. 2022-08-11 20:24:29 -04:00
Snakes 997cb2df89
rDrama: restore non-Juggalo site styling. 2022-08-06 11:45:53 -04:00
Aevann1 b83a16668b re-move bootstrap.js back to the top of documents to fix broken shit 2022-08-06 03:20:25 +02:00
Aevann1 48608f0448 add a preview for holes when linked on other sites 2022-08-06 00:40:20 +02:00
Aevann1 cfa4841ffe testing in prod 2022-08-06 00:28:22 +02:00
Snakes da55adb790
rDrama: banners: remove 114, compress new; ICP. 2022-08-04 03:20:47 -04:00
Snakes ac948acb4a
PCM: swap banners, move banners to distinct URL. 2022-08-03 19:21:21 -04:00
Aevann1 f12f67405a cached banner for WPD 2022-08-02 00:05:39 +02:00
Aevann1 aeedc934cb sneed 2022-07-23 08:55:54 +02:00
Aevann1 8af9b8a339 wipe cringetopia 2022-07-18 04:46:03 +02:00
Snakes 5005c7ab97 Center voting on submission_listing desktop. 2022-07-13 16:25:05 -04:00
Aevann1 2d21863e19 replace "request.host" with "SITE" 2022-07-13 20:14:37 +02:00
Aevann1 334c5d449b change deux assets 2022-07-12 02:35:40 +02:00
Aevann1 68ba0f564c do this https://watchpeopledie.co/h/meta/post/2750/what-would-u-like-to-see/29788?context=8#context 2022-07-11 15:18:05 +02:00
Aevann1 70ea10eaf6 rename chudrama to deuxrama 2022-07-11 14:25:27 +02:00
Aevann1 79ba533351 change donation link for chudrama 2022-07-10 11:48:28 +02:00
Aevann1 da40122a5c change chudrama banner 2022-07-10 11:44:30 +02:00
Aevann1 e65b86cbfc change banners for chudrama 2022-07-10 11:43:03 +02:00
Aevann1 382df30e1f show ALL timestamps in user's timezone + move scripts to the bottom of HTML templates to mimic rocketloader's behavior on localhost (for testing) 2022-07-09 10:35:47 +02:00
Aevann1 57e424af5b revert the "defer" thing 2022-07-03 12:10:04 +02:00
Aevann1 a49325ba14 defer all scripts (this won't change anything for us since we use rocketloader, but it will fix javascript on localhost) 2022-07-03 09:42:33 +02:00
Aevann1 d59f346f0b 1 less request, 1 less transaction, 1 less query 2022-07-01 23:10:48 +02:00
Snakes 1b9237ceaf Add assetcache.asset_siteimg, has_logo.
Commit began by changing the duplicated SITE_NAME conditional in the
header to use a `has_logo` param, much like the recent `has_sidebar`.
From there, a need to include site-specific assets in assetcache was
revealed, adding the `asset_siteimg(...)` macro. This was applied
quite broadly, though not comprehensively.
2022-07-01 01:55:53 -04:00
Snakes 39c945f7ca LGB: Initial sidebar & const. 2022-07-01 01:08:15 -04:00
Aevann1 11d0163740 sneed 2022-07-01 01:28:33 +02:00
Aevann1 bf4e608dae sneed 2022-06-29 09:54:06 +02:00
Aevann1 6e52348432 sneed 2022-06-29 09:50:54 +02:00
Aevann1 f4ff2b71fb restore accidentially removed condition 2022-06-28 08:35:24 +02:00
Aevann1 42a6b5731a sneed 2022-06-28 08:17:21 +02:00
Aevann1 6bd4efa61f Revert "make small text less small"
This reverts commit 42b0f37034.
2022-06-27 04:33:38 +02:00
Aevann1 42b0f37034 make small text less small 2022-06-27 04:18:14 +02:00
Aevann1 b5d993569f embed rework 2022-06-27 03:00:45 +02:00
Aevann1 8e73d7aaad remove checking for device RAM 2022-06-26 23:48:39 +02:00
Aevann1 e022b29ef6 rework custom css a little 2022-06-26 07:26:45 +02:00
Aevann1 74978bfbf7 Revert "put custom CSS into HTML templates"
This reverts commit 19c82b7ea1.
2022-06-26 07:07:28 +02:00
Aevann1 19c82b7ea1 put custom CSS into HTML templates 2022-06-26 06:33:41 +02:00
Aevann1 1abcbecf19 fix RAM shit 2022-06-25 17:33:46 +02:00
Aevann1 70c2b2cffa try fixing RAM thing 2022-06-25 05:19:28 +02:00
Aevann1 e4c50939e6 Revert "make threshold for RAM 3GB instead of 2.99GB"
This reverts commit 37b8fc5666.
2022-06-25 05:06:25 +02:00
Aevann1 37b8fc5666 make threshold for RAM 3GB instead of 2.99GB 2022-06-25 05:01:19 +02:00
Aevann1 13143a72ab disable animations for ppl with lower than 3GB RAM 2022-06-24 18:12:58 +02:00
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