0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 20:42:43 +00:00
Commit Graph

414 Commits

Author SHA1 Message Date
Víctor Losada Hernández
067a7cd507 admin fixes, the rest( i think) 2024-01-24 22:20:01 +01:00
Víctor Losada Hernández
0243b5f491 inital commit 2024-01-23 08:09:17 +01:00
Trevor Buckner
b0ea34cc3f Add custom error messages. 2024-01-18 17:20:31 -05:00
G.Ambatte
fb91761c31 Merge branch 'naturalcrit:master' into separateApiErrors-#2975 2023-11-12 13:45:40 +13:00
G.Ambatte
511c38dd1e Remove unnecessary nullish coalescing operators 2023-10-29 14:16:41 +13:00
G.Ambatte
85b0976082 Move API call error handling 2023-10-29 11:52:02 +13:00
G.Ambatte
7052337669 Remove API error message from log 2023-10-29 11:43:24 +13:00
G.Ambatte
e07d1d1ddb Add originalUrl to error object 2023-10-29 11:27:03 +13:00
G.Ambatte
c5ebd0352d Identify API errors and send error response 2023-10-29 11:04:07 +13:00
G.Ambatte
0845234f2f Add brew's shareId to error info 2023-10-14 19:59:51 +13:00
Trevor Buckner
3ac0ac7568 Fix crash when not logged in
If not logged in, brew.authors doesn't exist, so visiting the share page crashes.
2023-10-13 23:44:34 -04:00
Gazook89
1556cf361a Check for author in author list before increasing views. 2023-09-27 23:46:38 -05:00
Sean Robertson
3e43b058a5 Move userpage brew data clean up to app.js 2023-09-06 11:52:28 +12:00
G.Ambatte
6b49e720ca Merge branch 'master' into trimBrewTitlesOnUserPage-#2775 2023-08-11 12:08:40 +12:00
G.Ambatte
cca882869d Add file link to Google icon on User Page 2023-08-07 22:03:17 +12:00
G.Ambatte
7aa374e529 Merge branch 'master' into trimBrewTitlesOnUserPage-#2775 2023-07-08 19:07:55 +12:00
Trevor Buckner
a4584dc78e Fix spec tests 2023-07-06 00:19:23 -04:00
Trevor Buckner
6344eaa17d Handle Old Google Drive links that used 10-char shareID
When the Homebrewery was first made, editIds and ShareIds only had 10 characters. We later increased this to 12.

However this means some old, old Google Drive links (in the form of `googleId + editId`) were being split incorrectly because they assumed the newer 12-char length, accidentally cutting the last 2 chars from the googleId.
2023-07-06 00:10:07 -04:00
G.Ambatte
a41553637a Add trim to brew description 2023-06-29 16:43:30 +12:00
G.Ambatte
636f2f9372 Add title trim before new saves and updates 2023-06-29 16:35:26 +12:00
Trevor Buckner
8baf0fc849 Add additional test for when logged in, but not in author list 2023-06-26 23:26:59 -04:00
Sean Robertson
a7040e554a Fix test 2023-06-27 15:19:33 +12:00
Trevor Buckner
d0de7ca28c Rephrasing of error texts 2023-06-26 22:48:58 -04:00
Trevor Buckner
c0164dce6a Fix for username undefined (not logged in) 2023-06-26 17:02:28 -04:00
G.Ambatte
e88e7f852c Add account check to Google File not found error 2023-06-26 20:40:11 +12:00
G.Ambatte
a3b2c6987f Fix test 2023-06-26 18:08:52 +12:00
G.Ambatte
3d47b5a0bc Fix test 2023-06-26 18:06:37 +12:00
G.Ambatte
c5f4793c23 Add owner info to missing Google file message 2023-06-26 17:43:19 +12:00
G.Ambatte
cff4f8eae5 Catch duplicate delete requests 2023-06-25 21:26:02 +12:00
G.Ambatte
4799e8b443 Fix test 2023-06-25 21:10:28 +12:00
G.Ambatte
fa38d5c892 Additional info in errors 2023-06-25 20:39:36 +12:00
G.Ambatte
04eb7d0556 Add brew title to Not an Author page 2023-06-25 20:13:13 +12:00
G.Ambatte
f175323221 Use common error object to reduce DRY 2023-06-25 18:22:22 +12:00
G.Ambatte
9f4de3c66e Fix test 2023-06-25 18:16:57 +12:00
G.Ambatte
800bff611a Fix test 2023-06-25 18:14:12 +12:00
G.Ambatte
e28b6e7a19 Differentiate Not an Author from Not logged in 2023-06-25 18:10:31 +12:00
G.Ambatte
4c6de90d82 Fix test 2023-06-25 17:13:37 +12:00
G.Ambatte
e5ef0aedd3 Pass all error properties to message generator 2023-06-25 17:10:25 +12:00
G.Ambatte
da8e7ec610 Change Not an Author to 401 2023-06-25 16:51:17 +12:00
G.Ambatte
438cb7f26d Fix test 2023-06-25 14:41:15 +12:00
G.Ambatte
ffa240f78d Fix test 2023-06-25 14:39:42 +12:00
G.Ambatte
782aa8e658 Increase ESLint max lines in app.js 2023-06-25 14:23:14 +12:00
G.Ambatte
7efe8964f1 Change throw method, update HBErrors 2023-06-25 14:21:35 +12:00
G.Ambatte
853515e09e Switch Error gen from spread operator to func 2023-06-25 12:56:22 +12:00
Trevor Buckner
f6c5354ce0 Add support for custom HBErrorCodes 2023-06-24 02:57:03 -04:00
Trevor Buckner
37c88b83f1 Don't redirect/use cookies. Just render page. 2023-06-23 17:24:31 -04:00
Trevor Buckner
2fa1b2bb8b Break out page rendering into function 2023-06-23 16:29:17 -04:00
G.Ambatte
71c384ee0b Fix tests 2023-06-20 16:45:36 +12:00
G.Ambatte
ce538ebbfd Add errorIndex.json 2023-06-20 13:44:41 +12:00
G.Ambatte
9e1d53a30c Basic ErrorPage functionality 2023-06-19 21:06:38 +12:00