Commit Graph
245 Commits
Author SHA1 Message Date
mbaharip 2392be302d Make redirect props optional 2023-05-25 22:55:50 +07:00
mbaharip a820c746d7 Redirect 401 to password page instead error page 2023-05-25 22:53:40 +07:00
mbaharip e06acf1ed7 Add not found if error code 404 2023-05-25 22:40:01 +07:00
mbaharip e3f3564313 Add not found if error code 404 2023-05-25 22:39:49 +07:00
mbaharip e93021b134 Simplify error code 2023-05-25 22:39:20 +07:00
mbaharip ed3e4778d7 Remove folder name under message 2023-05-25 22:39:02 +07:00
mbaharip 88dfb6b77d Remove [...path] error 2023-05-25 22:38:30 +07:00
mbaharip df3969a1f3 Revert: Disable open in new tab for download button 2023-05-25 22:27:59 +07:00
mbaharip 5001592a49 Disable open in new tab for download button 2023-05-25 22:14:15 +07:00
mbaharip 20b83d5d8d Remove cache on validate route 2023-05-25 22:13:53 +07:00
mbaharip 7fcb2dbf63 Update base path vercel url 2023-05-25 22:04:52 +07:00
mbaharip 4e1d101f63 Update download url 2023-05-25 21:59:19 +07:00
mbaharip efbd5e9843 Update download url 2023-05-25 21:55:24 +07:00
mbaharip 5b39ad002b Add missing runtime that required for ImageResponse 2023-05-25 21:48:05 +07:00
mbaharip 43e941a0fd Fix import alt and size from test routes 2023-05-25 21:36:20 +07:00
mbaharip d19a28b0dd Remove test routes 2023-05-25 21:30:39 +07:00
mbaharip f313e9baa4 Update thing to do 2023-05-25 21:21:04 +07:00
mbaharip 208e0955ff Remove old config 2023-05-25 21:16:52 +07:00
mbaharip 9648f1aeb9 Fix readmeContent not returning undefined even if there are no readme 2023-05-25 21:16:37 +07:00
mbaharip f13ff0bbf4 Add readme render 2023-05-25 21:15:59 +07:00
mbaharip 19ad8384c9 Update react-icons to 4.8.1-snapshot.2 2023-05-25 21:15:40 +07:00
mbaharip f890a77d6d Loading 2023-05-25 21:15:22 +07:00
mbaharip ab94d98f41 Add no files / folder. 2023-05-25 21:15:14 +07:00
mbaharip fce0033dd2 Remove "powered by" text 2023-05-25 21:14:47 +07:00
mbaharip 04ff6141dd Updated todo for new app dir 2023-05-25 20:40:16 +07:00
mbaharip 3ad12a3ebd Add prettier sort imports 2023-05-25 20:38:48 +07:00
mbaharip c94eb33b4b Update components path 2023-05-25 20:38:29 +07:00
mbaharip d176769a16 Endpoint for generating opengraph since can't put opengraph-image into catch-all routes 2023-05-25 20:37:56 +07:00
mbaharip ea2bbbc28b Endpoint for downloading file 2023-05-25 20:37:18 +07:00
mbaharip acf85ea951 Add validation for root folder 2023-05-25 20:36:22 +07:00
mbaharip 6ccbbe2ff9 Add validation if private index is true 2023-05-25 20:36:08 +07:00
mbaharip a7fc67b755 Add readme content 2023-05-25 20:35:35 +07:00
mbaharip 4faee01965 Add missing thumbnail searchParams, also logic to return default og if file doesn't contain thumbnail 2023-05-25 20:35:18 +07:00
mbaharip e5dd25205e Add function to comparing stored password and actual password 2023-05-25 20:34:18 +07:00
mbaharip d50cb8056c Add path validation and rendering logic 2023-05-25 20:33:54 +07:00
mbaharip b04e266592 Add logic to render readme 2023-05-25 20:33:32 +07:00
mbaharip fc39870999 Opengraph image for root page 2023-05-25 20:33:13 +07:00
mbaharip a685f7a9ff Error page when can't find file / folder 2023-05-25 20:32:59 +07:00
mbaharip 6d175b7822 Add readmeContent so the client only need to fetch 1 endpoint 2023-05-25 20:32:40 +07:00
mbaharip 9734f800a1 Error page using Extended Error that contains category, reason, and error code. 2023-05-25 20:32:10 +07:00
mbaharip 11f866400f Add cookie and type enums. 2023-05-25 20:31:29 +07:00
mbaharip 2a20b392ac Render readme in markdown 2023-05-25 20:30:40 +07:00
mbaharip f38ceda8a1 Password input for protected folder 2023-05-25 20:30:24 +07:00
mbaharip f74b77cc1a Add clear password function 2023-05-25 20:30:00 +07:00
mbaharip b26b12c7b2 Move file type into Enums, Change download URL. 2023-05-25 20:29:39 +07:00
mbaharip 2fd7680bbc Sort import 2023-05-25 20:28:53 +07:00
mbaharip 15bc5d96a7 Sort import 2023-05-25 20:27:47 +07:00
mbaharip e00b5a2681 Sort import 2023-05-25 20:24:40 +07:00
mbaharip 925f0fcfa2 Add error handle - extending error 2023-05-25 20:23:53 +07:00
mbaharip ff794a7601 Add sort imports 2023-05-25 20:22:55 +07:00