Commit Graph

241 Commits

Author SHA1 Message Date
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
ash
667f1e6a21 feat(progress): calc started features as ½ complete 2022-06-17 22:39:48 +02:00
Jonathan Barrow
17d404870f Check Trello list names for valid boards 2022-06-09 16:50:52 -04:00
Ash Monty
10ac3de62d
feat: add global completion percentage in home 2022-06-09 15:42:30 +02:00
Ash Monty
bbc7c2a22a
chore(deps): update browserify 2022-04-01 00:47:25 +02:00
Ash
5ed412c64d
Merge branch 'dev' into master 2022-03-15 20:52:33 +01:00
Ash
61159d53e8
Merge pull request #97 from PretendoNetwork/dependabot/npm_and_yarn/marked-4.0.10
chore(deps): bump marked from 3.0.4 to 4.0.10
2022-02-20 21:21:50 +01:00
Ash Monty
2a3c9ba78e
fix(deps): fix breaking changes for marked 3.0.4 -> 4.0.10 2022-02-20 21:21:13 +01:00
Ash Monty
e4ee8048a4
chore(locales): Add polish to language picker 2022-02-20 21:03:24 +01:00
Ash Monty
753c3e7aea
chore(locales): add Norsk to language detection and switcher 2022-01-23 20:46:53 +01:00
Ash Monty
fd70cf6a6c
chore(locales): add @ninstar to all locales + add missing strings 2022-01-23 18:06:45 +01:00
Jonathan Barrow
2cf7e669da Merge branch 'dev' of https://github.com/PretendoNetwork/website into dev 2021-12-19 19:19:28 -05:00
Jonathan Barrow
d5b32c4575 added hcaptcha to register page 2021-12-19 19:19:18 -05:00
Ash Monty
961a9caf69
feat: add online Mii editor 2021-12-19 22:56:40 +01:00
Jonathan Barrow
6681388bcd removed useless route 2021-12-19 08:52:03 -05:00
Ash Monty
7153a48fa4
fix special thanks rows not being tripled correctly 2021-12-14 21:17:55 +01:00
Ash Monty
cc33c4f9fc
chore: reorganize account views folder 2021-12-13 16:51:58 +01:00
Ash Monty
1e96dc3eac
styles: update login/register forms design 2021-12-13 16:48:53 +01:00
Ash Monty
b9f4da3f55
Merge branch 'dev' of https://github.com/PretendoNetwork/website into dev 2021-12-13 16:24:41 +01:00
Jonathan Barrow
9618dbf1c7 Fixed account.dat generation 2021-12-13 08:12:42 -05:00
Jonathan Barrow
498ac2e79a Merge branch 'dev' of https://github.com/PretendoNetwork/website into dev 2021-12-12 20:55:48 -05:00
Jonathan Barrow
f8f651d641 Added Cemu files download 2021-12-12 20:48:20 -05:00
Ash Monty
1beba945c3
fix: animation jumping 2021-12-12 20:51:59 +01:00
Ash Monty
135ba1064d
feat(styles): add mobile layout, minor changes 2021-12-12 17:42:33 +01:00
Jonathan Barrow
3da33fa3d2 removed random string? 2021-12-12 09:31:32 -05:00
Jonathan Barrow
918cab9004 Added register page 2021-12-12 09:24:17 -05:00
Ash Monty
2481749648
feat(locales): add automatic locale fallback 2021-12-09 21:03:01 +01:00
Ash Monty
eb35ec8feb
feat: add showQuickLinks boolean 2021-12-09 18:33:18 +01:00
Ash Monty
c65c656a75
chore: Remove render caching
Turns out it wasn't needed after all
2021-12-09 18:23:44 +01:00
Ash Monty
aabcf0e337
feat(docs): Add render caching, add sidebar element selection, add missing locale notice, minor changes 2021-12-08 23:29:54 +01:00
Ash Monty
13e63f1a59
feat(docs): add base documentation page layout 2021-12-08 18:41:29 +01:00
Ash Monty
5681fe85ba
fix(locales): correct Japanese language code mapping 2021-12-08 11:27:58 +01:00
sjk
b866077c24
Add support for Japanese 2021-12-08 09:13:26 +09:00
Jip Fr
56bb915c70 locales(dutch): add Dutch locale
Thanks to @therealprocyon for correcting a bunch of my silly mistakes!
2021-12-01 13:56:08 +01:00
Jonathan Barrow
b46e7041e3 cookies now work on all subdomains 2021-11-28 09:25:12 -05:00
Jonathan Barrow
0d2fdeb130 Added error check for login 2021-11-25 14:19:39 -05:00
Jonathan Barrow
f3236f26d5 Changed trello available check 2021-11-25 13:02:31 -05:00
Monty
174dee6580
feat(login): style page, add navbar, registration btn & pwd reset link 2021-11-21 14:40:44 +01:00
Jonathan Barrow
8feae58ddd Merge branch 'dev' of https://github.com/PretendoNetwork/website into dev 2021-11-20 19:55:31 -05:00
Jonathan Barrow
4079e3f99a Discord account linking 2021-11-20 17:41:17 -05:00
Monty
1087c94eab
Merge branch 'master' into dev 2021-11-15 19:11:38 +01:00
Jonathan Barrow
7c96d31a9a Removed trello and implemented in-memory cache 2021-11-14 12:16:50 -05:00
Jonathan Barrow
316c98b530 Dirty way of flushing Trello cache before updating 2021-10-18 22:31:42 -04:00
Jonathan Barrow
60d70d1c8e Check if Trello API is available before updating 2021-10-18 22:30:53 -04:00
Monty
aef4036212
feat(account): add basic account management page + Discord OAuth 2021-10-15 21:40:21 +02:00
Monty
9e4906931b
chore(handlebars): reorganize templates 2021-10-07 19:07:48 +02:00
Monty
9afbd2d08a
Add custom OpenGraph to posts
Thanks to @Eyadplayz for the idea
2021-10-04 22:07:08 +02:00
Monty
8320cd0092
feat(locales): Add romanian to locale selector 2021-10-04 11:15:04 +02:00
Monty
b258477384
chore: made the server listening message clickable, 'cause I'm too lazy to type it out every time 2021-10-02 23:11:31 +02:00
Monty
390f6975b7
fix(posts): infinite loading due to replaceAll() not being present in Node 14 2021-10-02 10:38:24 +02:00
Monty
3a0ee14aaf
feat(blog): Add easy to use YouTube iframe with aspect-ratio fallback
[yt-iframe](videoID)
2021-09-30 21:12:50 +02:00
Monty
41e7d8c810
feat(blog) add cover images to RSS via <enclosure> 2021-09-29 15:59:07 +02:00
Monty
38ccd7c591
Add <pubDate> to RSS posts, add RSS subscribe button, minor changes 2021-09-28 22:17:30 +02:00
Monty
db03304803
Add RSS functionality, minor changes to post css 2021-09-27 23:47:33 +02:00
Monty
308f0c6337
[blog] Minor changes following feedback 2021-09-25 16:01:38 +02:00
Monty
f554a4c6a2
[blog]: Add syntax highlighting, styling for all elements, mobile support 2021-09-18 18:25:28 +02:00
Monty
7f1f293f0d
Handle missing post 2021-09-18 14:01:35 +02:00
Monty
a78baa1b61
feat(blog): add /blog page generation, add /blog preview generation 2021-09-15 06:50:01 +02:00
Monty
8d50d0b559
Merge branch 'master' into dev 2021-09-13 16:27:24 +02:00
Jip Fr
852b1de7c9 feat(blog): add hard-coded blog page w/ base design 2021-09-13 15:33:46 +02:00
Monty
4b780ada13
Linting 2021-09-13 15:26:08 +02:00
Monty
30caf86658
Add Brazilizan Portoguese and Korean to locale dropdown, reorder dropdown 2021-09-11 23:56:43 +02:00
montylion
91d644e87d
Add locale tester to website 2021-08-24 23:41:55 +02:00
montylion
85eb608414
Add French language to dropdown 2021-08-23 21:28:42 +02:00
montylion
f4f0ca1616
Map unavailable regions to available locales from the same language
TODO: map more regions to the available locales
2021-08-23 17:11:56 +02:00
montylion
ee83ca7067
Add Arabic language to dropdown, fix header locale not working 2021-08-23 16:35:28 +02:00
Monty
4479ffe3a1
Merge branch 'PretendoNetwork:master' into locale-switcher-bugfixes 2021-08-23 15:19:09 +02:00
montylion
f2dd459d6b
Fix default locale in dropdown not setting on en-GB 2021-08-23 09:25:22 +02:00
mrjvs
cdcd91bfbe
Merge branch 'dev' into mrjvs-progress-github-links 2021-08-23 00:08:10 +02:00
montylion
19a42d3613
Replace trello-new with trello (reverts f8c7eca)
OK so apparently trello-new is broken
2021-08-22 23:55:29 +02:00
montylion
f8c7eca294
Fix vulnerabilities
Switch from trello to trello-new, a clone of the original package with security fixes
2021-08-22 22:28:04 +02:00
montylion
6ff919b2fb
Add Turkish locale to dropdown 2021-08-22 22:10:21 +02:00
mrjvs
a5bbc1742c working github links 2021-08-22 17:42:05 +02:00
mrjvs
cf570d2b19 added github links to progress 2021-08-22 16:45:10 +02:00
montylion
8e0a40079c
Add auto locale detection and custom locale selection (preference saved to cookie) 2021-08-22 16:37:51 +02:00
Monty
cd22e72f7b
Fix broken /faq redirect 2021-05-26 15:12:22 +02:00
Jonathan Barrow
0558583277 Fixed issue with some boards not loading
Boards with one or more lists empty, even with other valid lists, wouldn't show
2021-04-27 18:53:17 -04:00
Jonathan Barrow
c0f9c6dec2 moved trello to src 2021-04-25 08:44:50 -04:00
Jonathan Barrow
5ffcd439c6 Fixed public folder not being found
public folder was defined after the 404 handler which made all asset files return 404
2021-04-23 20:08:10 -04:00
Jonathan Barrow
28f6a7fef3 Update home.js 2021-04-23 19:57:13 -04:00
Jonathan Barrow
7ed5b81a13 Moved getLocale to util.js 2021-04-23 19:51:43 -04:00
Jonathan Barrow
17174a18a7 Added more debug logging 2021-04-23 19:06:17 -04:00
Jonathan Barrow
9a4293b37c small server refactor 2021-04-23 18:10:33 -04:00
Jonathan Barrow
481b051213 moved checkboxes out of JS
checkbox code now lives entirely in the handlebars views and not inside the JS
2021-04-23 18:06:47 -04:00
Jonathan Barrow
c0bdaa63c8 backend refactor
Move some stuff around
2021-04-23 08:32:34 -04:00
Jonathan Barrow
53e6ce4497 Merge branch 'dev' of https://github.com/PretendoNetwork/website into dev 2021-04-21 15:06:25 -04:00
Jip Fr
f248aeed1c Oops — fix logger 2021-04-21 10:51:12 +02:00
Jip Fr
45dcb975fd Improve layout and coloring issues 2021-04-21 10:47:22 +02:00
Jonathan Barrow
9be553cd9f Get progress info from trello 2021-04-19 16:21:50 -04:00
Jip Fr
5f50fe4ed1 Redesign progress page with jvs' design 2021-04-11 15:50:53 +02:00
Jip Fr
2ef14bba21 Progress page 2021-04-09 15:40:19 +02:00
Jip Fr
8f042e81ae Rename web-server to src/ and change start script accordingly 2021-04-09 15:11:59 +02:00