forked from rDrama/rDrama
1
0
Fork 0
rDrama/files/templates
justcool393 8f2f48d6d1
[DO NOT MERGE] import detanglation (#442)
* move Base definition to files.classes.__init__.py

* fix ImportError

* move userpage listing to users.py

* don't import the app from classes

* consts: set default values to avoid crashes
consts: warn if the secret key is the default config value

* card view: sneed (user db schema)

* cloudflare: use DEFAULT_CONFIG_VALUE

* const: set default values

* decouple media.py from __main__

* pass database to avoid imports

* import cleanup and import request not in const, but in the requests mega import

* move asset_submissions site check to __init__

* asset submissions feature flag

* flag

* g.is_tor

* don't import request where it's not needed

* i think this is fine

* mail: move to own routes and helper

* wrappers

* required wrappers move

* unfuck wrappers a bit

* move snappy quotes and marseys to stateful consts

* marsify

* :pepodrool:

* fix missing import

* import cache

* ...and settings.py

* and static.py

* static needs cache

* route

* lmao all of the jinja shit was in feeds.py amazing

* classes should only import what they need from flask

* import Response

* hdjbjdhbhjf

* ...

* dfdfdfdf

* make get a non-required import

* isort imports (mostly)

* but actually

* configs

* reload config on import

* fgfgfgfg

* config

* config

* initialize snappy and test

* cookie of doom debug

* edfjnkf

* xikscdfd

* debug config

* set session cookie domain, i think this fixes the can't login bug

* sdfbgnhvfdsghbnjfbdvvfghnn

* hrsfxgf

* dump the entire config on a request

* kyskyskyskyskyskyskyskyskys

* duifhdskfjdfd

* dfdfdfdfdfdfdfdfdfdfdfdf

* dfdfdfdf

* imoprt all of the consts beacuse fuck it

* 😭

* dfdfdfdfdfdfsdasdf

* print the entire session

* rffdfdfjkfksj

* fgbhffh

* not the secret keys

* minor bug fixes

* be helpful in the warning

* gfgfgfg

* move warning lower

* isort main imports (i hope this doesn't fuck something up)

* test

* session cookie domain redux

* dfdfdfd

* try only importing Flask

* formkeys fix

* y

* :pepodrool:

* route helper

* remove before flight

* dfdfdfdfdf

* isort classes

* isort helpers

* move check_for_alts to routehelpers and also sort imports and get rid of unused ones

* that previous commit but actkally

* readd the cache in a dozen places they were implicitly imported

* use g.is_tor instead of request.headers. bla bla bla

* upgrade streamers to their own route file

* get rid of unused imports in __main__

* fgfgf

* don't pull in the entire ORM where we don't need it

* features

* explicit imports for the get helper

* explicit imports for the get helper redux

* testing allroutes

* remove unused import

* decouple flask from classes

* syntax fix also remember these have side fx for some reason (why?)

* move side effects out of the class

* posts

* testing on devrama

* settings

* reloading

* settingssdsdsds

* streamer features

* site settings

* testing settings on devrama

* import

* fix modlog

* remove debug stuff

* revert commit 67275b21ab6e2f2520819e84d10bfc1c746a15b6

* archiveorg to _archiveorg

* skhudkfkjfd

* fix cron for PCM

* fix bugs that snekky wants me to

* Fix call to realbody passing db, standardize kwarg

* test

* import check_for_alts from the right place

* cloudflare

* testing on devrama

* fix cron i think

* shadow properly

* tasks

* Remove print which will surely be annoying in prod.

* v and create new session

* use files.classes

* make errors import little and fix rare 500 in /allow_nsfw

* Revert "use files.classes"

This reverts commit 98c10b876cf86ce058b7fb955cf1ec0bfb9996c6.

* pass v to media functions rather than using g

* fix

* dfdfdfdfd

* cleanup, py type checking is dumb so don't use it where it causes issues

* Fix some merge bugs, add DEFAULT_RATELIMIT to main.

* Fix imports on sqlalchemy expressions.

* `from random import random` is an error.

* Fix replies db param.

* errors: fix missing import

* fix rare 500: only send to GIFT_NOTIF_ID if it exists, and send them the right text

* Fix signup formkey.

* fix 2 500s

* propagate db to submissions

* fix replies

* dfdfdfdf

* Fix verifiedcolor.

* is_manual

* can't use getters outside of an app context

* don't attempt to do gumroad on sites where it's not enabled

* don't attempt to do gumraod on sites's where it's unnecessary

* Revert "don't attempt to do gumroad on sites where it's not enabled"

This reverts commit 6f8a6331878655492dfaf1907b27f8be513c14d3.

* fix 500

* validate media type

Co-authored-by: TLSM <duolsm@outlook.com>
2022-11-15 03:19:08 -06:00
..
admin [DO NOT MERGE] import detanglation (#442) 2022-11-15 03:19:08 -06:00
casino remove double spaces 2022-11-12 20:02:02 +02:00
email remove trailing slashes in html files (I dont like them) 2022-10-10 07:40:33 +02:00
errors remove ajax.cloudflare.com from CSP 2022-11-09 21:49:50 +02:00
settings [DO NOT MERGE] import detanglation (#442) 2022-11-15 03:19:08 -06:00
sub [DO NOT MERGE] import detanglation (#442) 2022-11-15 03:19:08 -06:00
userpage [DO NOT MERGE] import detanglation (#442) 2022-11-15 03:19:08 -06:00
util more consistency in templates 2022-10-10 07:23:02 +02:00
admins.html rename truecoins to truescore 2022-11-06 23:04:34 -08:00
api.html get rid of <pre> being used as vertical spacing 2022-10-29 02:47:48 +02:00
authforms.html remove some spacing insanity in login/signup pages 2022-10-29 03:01:59 +02:00
award_modal.html get rid of <pre> being used as vertical spacing 2022-10-29 02:47:48 +02:00
awards.html Respect upper bound on award quantity. 2022-11-09 04:15:19 -05:00
awards_PCM.html simplify awards (#434) 2022-11-09 00:39:05 -05:00
badges.html get rid of <pre> being used as vertical spacing 2022-10-29 02:47:48 +02:00
ban_modal.html [DO NOT MERGE] import detanglation (#442) 2022-11-15 03:19:08 -06:00
banned.html add hats to most tables 2022-09-05 05:01:06 +02:00
blocks.html get rid of <pre> being used as vertical spacing 2022-10-29 02:47:48 +02:00
casino.html remove 2 weird role="button" 2022-10-28 22:19:05 +02:00
chat.html chat fix i think? 2022-10-21 17:24:17 -05:00
chuds.html rename /agendaposters to /chuds 2022-10-15 08:55:54 +02:00
comments.html [DO NOT MERGE] import detanglation (#442) 2022-11-15 03:19:08 -06:00
contact.html [DO NOT MERGE] import detanglation (#442) 2022-11-15 03:19:08 -06:00
default.html PCM: enable multiple banners. 2022-11-07 16:40:43 -05:00
delete_post_modal.html get rid of all header classes 2022-10-29 02:55:49 +02:00
donate_PCM.html remove redundant noreferrer tags 2022-10-29 16:46:22 -05:00
donate_WPD.html rename truecoins to truescore 2022-11-06 23:04:34 -08:00
donate_rDrama.html rename truecoins to truescore 2022-11-06 23:04:34 -08:00
emoji_modal.html add type="button" to all <button> tags 2022-10-29 01:35:14 +02:00
expanded_image_modal.html same as last commit 2022-11-05 05:38:32 +02:00
forgot_password.html remove insane indentation in a template 2022-11-07 08:26:37 +02:00
formatting.html small margin change 2022-10-30 21:44:02 +02:00
gif_modal.html assetcache: apply to all CSS and JS assets. 2022-09-24 03:04:06 -04:00
grassed.html add hats to most tables 2022-09-05 05:01:06 +02:00
hats.html [DO NOT MERGE] import detanglation (#442) 2022-11-15 03:19:08 -06:00
header.html [DO NOT MERGE] import detanglation (#442) 2022-11-15 03:19:08 -06:00
home.html send xhr header so errors don't give back HTML pages 2022-11-11 23:46:21 -06:00
home_comments.html remove using invisible character as spacing 2022-10-29 03:31:25 +02:00
html_head.html remove the code i added for rdrama.com 2022-11-11 15:52:18 +02:00
journoid_banner.html add the subsidiary to the random blurbs 2022-11-04 20:30:56 +02:00
leaderboard.html cosmetic fix in leaderboard 2022-11-07 14:08:59 +02:00
live.html [DO NOT MERGE] import detanglation (#442) 2022-11-15 03:19:08 -06:00
log.html fix previous commit 2022-11-04 18:51:42 -05:00
loggedin.html rename truecoins to truescore 2022-11-06 23:04:34 -08:00
loggedout.html
…
login.html Revert "Merge pull request #396 from nekobbbbbbit/debooterstrap" 2022-10-31 18:35:47 -04:00
login_2fa.html fix bugs resulting from fdd608532b 2022-10-29 03:26:46 +02:00
lost_2fa.html get rid of some header classes 2022-10-29 02:52:11 +02:00
lottery.html fix capitlization 2022-11-14 07:49:23 +02:00
marseys.html remove the code i added for rdrama.com 2022-11-11 15:52:18 +02:00
megathread_index.html change shirt color in megathread index 2022-11-14 21:06:04 +02:00
message.html get rid of <pre> being used as vertical spacing 2022-10-29 02:47:48 +02:00
message_success.html
…
mine.html Remove 'Create Post' from /admin/users. 2022-09-01 18:41:47 -04:00
mobile_navigation_bar.html fix this https://rdrama.life/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/3038729?context=8#context 2022-11-07 23:38:49 +02:00
notifications.html show the hole name in sub modaction notifs 2022-11-09 20:23:59 +02:00
oauth.html [DO NOT MERGE] import detanglation (#442) 2022-11-15 03:19:08 -06:00
patrons.html more consistency in templates 2022-10-10 07:23:02 +02:00
poll_votes.html rename truecoins to truescore 2022-11-06 23:04:34 -08:00
popover.html Revert "minor margin fix" 2022-11-12 17:06:50 +02:00
post_actions.html [DO NOT MERGE] import detanglation (#442) 2022-11-15 03:19:08 -06:00
post_actions_mobile.html [DO NOT MERGE] import detanglation (#442) 2022-11-15 03:19:08 -06:00
post_admin_actions_mobile.html improve ban modal and add chud modal 2022-11-05 04:12:22 +02:00
report_post_modal.html get rid of all header classes 2022-10-29 02:55:49 +02:00
reset_password.html get rid of some header classes 2022-10-29 02:52:11 +02:00
search.html add cc post search parameter 2022-11-07 02:22:06 +02:00
search_comments.html get rid of some header classes 2022-10-29 02:52:11 +02:00
search_users.html
…
settings.html [DO NOT MERGE] import detanglation (#442) 2022-11-15 03:19:08 -06:00
settings2.html Revert "set astolfo background to everyone in drama" 2022-11-01 00:21:32 -04:00
shadowbanned.html use ban_reason column as a reason for shadowbanning too 2022-09-29 08:36:59 +02:00
shop.html rename postToast -> postToastSwitch and postToastCallback -> postToast for clarity 2022-11-03 21:08:22 +02:00
sidebar.html get rid of <pre> being used as vertical spacing 2022-10-29 02:47:48 +02:00
sidebar_PCM.html remove redundant noreferrer tags 2022-10-29 16:46:22 -05:00
sidebar_WPD.html fix sidebar margins 2022-11-09 21:53:37 +02:00
sidebar_rDrama.html extend the joan blurb (I like it) 2022-11-12 12:59:36 +02:00
sign_up.html switch from hcaptcha to turnstile 2022-11-11 20:34:06 +02:00
sign_up_failed_ref.html remove some spacing insanity in login/signup pages 2022-10-29 03:01:59 +02:00
stats.html stats: add time 2022-11-05 19:15:13 -05:00
submission.html [DO NOT MERGE] import detanglation (#442) 2022-11-15 03:19:08 -06:00
submission_banned.html adjust margins 2022-11-05 04:12:22 +02:00
submission_listing.html [DO NOT MERGE] import detanglation (#442) 2022-11-15 03:19:08 -06:00
submit.html [DO NOT MERGE] import detanglation (#442) 2022-11-15 03:19:08 -06:00
submit_hats.html [DO NOT MERGE] import detanglation (#442) 2022-11-15 03:19:08 -06:00
submit_marseys.html [DO NOT MERGE] import detanglation (#442) 2022-11-15 03:19:08 -06:00
transfers.html get rid of <pre> being used as vertical spacing 2022-10-29 02:47:48 +02:00
update_assets.html [DO NOT MERGE] import detanglation (#442) 2022-11-15 03:19:08 -06:00
user_cards.html show a list of blockers 2022-09-05 22:23:35 +02:00
user_in_table.html remove referrer from html tags 2022-10-29 23:42:30 +02:00
user_listing.html Remove is_nofollow from backend. 2022-11-09 10:05:36 -05:00
userpage.html [DO NOT MERGE] import detanglation (#442) 2022-11-15 03:19:08 -06:00
votes.html rename truecoins to truescore 2022-11-06 23:04:34 -08:00