Commit Graph

241 Commits

Author SHA1 Message Date
Ash Monty
16bb2e1065
Merge branch 'master' into dev 2022-11-03 17:05:28 +01:00
Jonathan Barrow
d36f9eaa98
Added admin email notifications to tier system 2022-10-27 06:05:49 -04:00
Jonathan Barrow
f2305b8c9f
Uncomment Stripe webhook handling 2022-10-01 17:01:54 -04:00
Jonathan Barrow
be3d62a836
Added password reset support 2022-10-01 17:00:57 -04:00
Jonathan Barrow
4ed31a6871
Error handle refunds 2022-10-01 13:11:33 -04:00
Jonathan Barrow
ffec77b0ad
API base now in config 2022-10-01 13:00:05 -04:00
Jonathan Barrow
11d2a073ea
Check if latest webhook is also same time as current webhook 2022-10-01 11:45:58 -04:00
Jonathan Barrow
9efb061a7e
Handle PNID not found error on all subscription types 2022-10-01 11:45:30 -04:00
Jonathan Barrow
f2115f2ba4
Moved webhook timestamp check to after PNID check 2022-10-01 11:42:14 -04:00
Jonathan Barrow
8a542f38e7
Look for products default price 2022-09-20 19:40:11 -04:00
Ash Monty
5c61fda111
fix cross request pollution in locale handler 2022-09-20 19:06:43 +02:00
Ash Monty
e1cc91a60b
fix: missing login/register error messages (#153) 2022-09-20 18:07:38 +02:00
Ash Monty
1ce3175b0a
feat: reimplement locale fallback, remove localeHelper
Co-Authored-By: Jonathan Barrow <jonbarrow1998@gmail.com>
2022-09-20 16:53:30 +02:00
Jonathan Barrow
1f084003ce
Add check for logout in middleware 2022-09-19 16:37:02 -04:00
Jonathan Barrow
1a47dea580
Added quick nav to progress page 2022-09-19 16:01:49 -04:00
Jonathan Barrow
39519bf935
Check for staff memebrs during tier purchase again 2022-09-19 15:33:46 -04:00
Jonathan Barrow
5d8d5038d6
Merge pull request #149 from PretendoNetwork/feature-assign-discord-roles
Feature assign discord roles
2022-09-19 15:30:10 -04:00
Jonathan Barrow
13b9816585
Remove old Discord roles when changing tiers 2022-09-18 01:43:59 -04:00
Jonathan Barrow
e6f9b4fc52
Added/remove Discord roles when connecting/removing Discord account 2022-09-18 01:24:27 -04:00
Jonathan Barrow
aa69c9fba6
Fixed badly named API methods 2022-09-18 00:49:40 -04:00
Jonathan Barrow
cf440e6770
Add/remove Discord roles when changing tiers 2022-09-18 00:29:06 -04:00
Jonathan Barrow
99e8296a36
Fixed locale not displaying on docs welcome page 2022-09-17 22:52:49 -04:00
Jonathan Barrow
20b6a77179
Merge pull request #143 from PretendoNetwork/feat-bandwidth
Feat: bandwidth
2022-09-17 21:35:26 -04:00
Jonathan Barrow
d664c0a045
Merge branch 'dev' into feature-docs 2022-09-17 21:31:01 -04:00
Ash Monty
f263e075bd
chore: move bandwidth quotes to locale 2022-09-09 18:44:42 +02:00
Ash Monty
6581941115
feat(locales): add Ukranian to locale switcher 2022-09-02 21:20:48 +02:00
Jonathan Barrow
1c46914bc7 Made welcome page into own view 2022-08-19 21:21:54 -04:00
Ash Monty
fbb2b0f230
chore(locales): remove contributions from people who have not agreed to the relicensing 2022-08-18 18:45:52 +02:00
Ash Monty
94060b8f53
locales(docs): convert to POSIX-style 2022-08-15 10:46:18 +02:00
Ash Monty
e673289cae
fix: remove accidental commenting-out of code 2022-08-14 10:24:22 +02:00
Ash Monty
f4b2618b3a
locales: add all strings to locale, rewrite locale helper 2022-08-13 22:19:48 +02:00
Ash Monty
01a34aa268
locales: convert codes to POSIX-style 2022-08-12 21:22:12 +02:00
Jonathan Barrow
c8b424e18e Fixed cookies not being set after refresh 2022-08-11 20:02:33 -04:00
Ash Monty
6fd28ae86e
fix(docs): platform images on firefox 2022-08-08 00:02:03 +02:00
Ash Monty
976a7861aa
style: mobile layout, tips, minor changes 2022-08-07 22:58:38 +02:00
Ash Monty
3f56ae3f9b
feat: install platform selection w/ icons, subpage router support 2022-08-07 16:44:28 +02:00
Jonathan Barrow
80bc0f01c0 Moved from Trello to GitHub porjects 2022-08-07 04:17:53 -04:00
Ash Monty
76edfe0a02
feat(docs): add search, minor style changes 2022-08-06 17:52:52 +02:00
Jonathan Barrow
50daf65329
Merge pull request #131 from PretendoNetwork/feature-mii-editor
feature: mii editor
2022-08-01 21:39:08 -04:00
Ash Monty
a29ce7296f
Merge branch 'pr/126' into dev 2022-07-30 15:24:09 +02:00
Ash Monty
37717f6572
chore: move editor json to separate file 2022-07-30 14:39:07 +02:00
Ash Monty
feb29dd53e
feat(mii editor): add icons, mobile layout, saving animation, 2022-07-30 14:01:41 +02:00
Ash Monty
37256536aa
chore(lint): set up .editorconfig, lint all 2022-07-23 17:24:19 +02:00
Ash Monty
1bf9aa47ab
locales: add rverse to special thanks 2022-07-20 14:48:50 +02:00
Jonathan Barrow
41ad68990c Check for staff members again 2022-07-16 10:34:26 -04:00
Jonathan Barrow
d35d031583 Render users actual Mii in Mii editor 2022-07-16 10:15:24 -04:00
Jonathan Barrow
f537e5e970 Dont run render-data middleware whem requesting assets 2022-07-16 10:07:38 -04:00
Jonathan Barrow
d6713e8e73 Always assign user render data if logged in 2022-07-16 10:05:33 -04:00
Jonathan Barrow
8d4c195ad4 movedIsLoggedIn to render-data middleware 2022-07-16 09:55:09 -04:00
Jonathan Barrow
2575300907 removed duplicate isLoggedIn set 2022-07-16 09:49:23 -04:00
Jonathan Barrow
12d0a9206e Removed ph cookie, users now supply password for online files 2022-07-16 09:44:28 -04:00
Jonathan Barrow
ecb07e7b02 Moved API requests out of route handlers 2022-07-16 08:02:04 -04:00
Jonathan Barrow
512173b470 routers -> routes 2022-07-16 07:02:51 -04:00
Jonathan Barrow
cb4f9f8c35 Moved login check to middleware 2022-07-15 21:09:20 -04:00
Jonathan Barrow
868bc1364a Fixed tier success/error messages 2022-07-15 20:52:21 -04:00
Jonathan Barrow
1fe69f915f default latest_webhook_timestamp value 2022-07-15 20:49:52 -04:00
Jonathan Barrow
6bec0fdc31 Simpler Discord queries 2022-07-15 20:48:37 -04:00
Jonathan Barrow
02da4c10cd Moved cookie messages to middleware 2022-07-10 12:22:15 -04:00
Jonathan Barrow
0696dddaaf handlebars looks for main layout by default 2022-07-10 10:33:03 -04:00
Jonathan Barrow
9e99627839 Moved redirect query param check to middleware 2022-07-10 10:30:40 -04:00
Jonathan Barrow
13c8c24efe locale checking moved to middleware 2022-07-10 10:27:57 -04:00
Jonathan Barrow
b6a7b40840 Moved redirect check to middleware 2022-07-10 09:33:19 -04:00
Ash Monty
6e7e6fbf7a
locales: add Simplified Chinese
Co-Authored-By: Dooda Pooda <109019726+DoodaPooda@users.noreply.github.com>
2022-07-10 11:27:36 +02:00
Ash Monty
748ec633f7
fix: possible unsafe redirect 2022-07-10 10:41:11 +02:00
Ash Monty
1feecdc4cc
feat: add progressbar to upgrade page, text tweaks 2022-07-09 17:57:24 +02:00
Ash Monty
72b0a24734
feat: add donation goal progressbar 2022-07-09 15:23:30 +02:00
Ash Monty
af015cf656
feat: redirect to requested page after the user logs in 2022-07-09 15:21:42 +02:00
Ash Monty
16f0ef8533
fix: trello faiing on minor api degradation 2022-07-09 12:52:11 +02:00
Ash Monty
7087c92d17
fix: error on invalid Discord refresh token, broken user popout 2022-07-09 12:48:25 +02:00
Ash Monty
d4ce74b11a
Merge branch 'feature-stripe-tiers' into feature-stripe-tiers-styling 2022-07-09 10:52:19 +02:00
Ash Monty
f1c18efe35
feat: add user popout to navbar 2022-07-09 10:51:00 +02:00
Jonathan Barrow
e9846ad246 Do check for staff members when subscribing 2022-07-07 17:55:17 -04:00
Jonathan Barrow
3921f01d2a Exit on subscription cancel error 2022-07-07 17:54:56 -04:00
Jonathan Barrow
a4fdcd72ee Cancel subscription, donation cache, minor account page edits 2022-07-06 19:50:53 -04:00
Ash Monty
f9601953b5
Merge branch 'dev' 2022-07-06 14:36:07 +02:00
Ash Monty
39a6dbcc84
fix(trello): return placeholder if cache is undefined 2022-07-06 14:35:53 +02:00
Ash Monty
1877aa54ac
Merge branch 'dev' 2022-07-06 11:34:21 +02:00
Ash Monty
ecd19e3ec6
fix: trello failing on degraded service 2022-07-06 11:24:08 +02:00
Ash Monty
c1ab90518c
style: minor changes to account page 2022-07-04 22:19:26 +02:00
Ash Monty
83e808f551
style: add tier change styling 2022-07-04 18:26:10 +02:00
Jonathan Barrow
8e7ca070a0 Updated webhook timestamp updates and remove all past subscriptions 2022-07-04 11:54:15 -04:00
Jonathan Barrow
2f02d5a1f6 create new subs and remove old ones 2022-06-30 18:17:21 -04:00
Jonathan Barrow
d97ed180f5 Change tier 2022-06-25 19:55:39 -04:00
Jonathan Barrow
bd4cf6aaf0
Merge pull request #116 from PretendoNetwork/feature-stripe-tiers-styling
styles: various style changes
2022-06-25 18:07:29 -04:00
ash
0fe9aabaae styles: various style changes 2022-06-26 00:03:15 +02:00
Jonathan Barrow
e47721801f Added better email sending 2022-06-25 12:02:22 -04:00
Jonathan Barrow
e15b117642 Catch errors when creating checkout session 2022-06-25 08:48:00 -04:00
Jonathan Barrow
4f9f1919f2 Added better logging to util.js 2022-06-25 08:40:26 -04:00
Jonathan Barrow
b1671b4104 order tiers by level on upgrade page 2022-06-24 19:50:44 -04:00
Jonathan Barrow
149456059a only change access level if not staff member 2022-06-24 19:44:45 -04:00
Jonathan Barrow
f32ea19630 Check for older webhooks and ignore 2022-06-24 19:39:21 -04:00
Jonathan Barrow
e622a1e759 self heal from missed webhooks 2022-06-24 19:28:28 -04:00
Jonathan Barrow
027321911b Check if Stripe customer has PNID and if PNID exists 2022-06-24 15:25:41 -04:00
Jonathan Barrow
0241fb1f10 Added perks array to tiers 2022-06-21 18:00:33 -04:00
Jonathan Barrow
b30402b904 only need one await 2022-06-21 17:57:23 -04:00
Jonathan Barrow
2aeca356bf canceled not cancled 2022-06-21 17:56:48 -04:00
Jonathan Barrow
ad60c70831 Use a full Mongo URI instead of address and port in config 2022-06-20 17:16:28 -04:00
Jonathan Barrow
3183e45fb2 await Mongo connection 2022-06-20 17:13:27 -04:00
Jonathan Barrow
92bf38c60f Update PNID through direct query 2022-06-20 17:11:26 -04:00
Jonathan Barrow
afe23b57ab Stripe start create subscription 2022-06-19 20:30:51 -04:00