Commit graph

315 commits

Author SHA1 Message Date
linkability e5b8b83e6b
admin delete user endpoint api-v1 2023-10-06 22:55:00 +01:00
linkability 44133630a7
fix: 🐛 body is not sent in delete requests requiring a parameter
Switches from using req.body to using req.params to know whether or not to delete their files
2023-10-06 22:43:58 +01:00
linkability d87583392e
http method changes and use ServeError 2023-10-06 22:35:09 +01:00
linkability a1b6917831
add admin password and elevate route 2023-10-06 22:34:40 +01:00
linkability 03fa036e38
change nickname added to apiv1 2023-10-05 23:31:52 +01:00
linkability e574438ea8
files is not mounted to accounts 2023-10-05 20:51:12 +01:00
linkability 48e00b1b54
Merge branch 'api-v1' of https://github.com/nbitzz/monofile into api-v1 2023-10-05 20:08:42 +01:00
linkability 01bb4684a3
delete your own account endpoint 2023-10-05 20:08:39 +01:00
May 9e83d751bd api-v1: Charlie is on meth 2023-10-04 19:02:11 -07:00
linkability c51d8dab95
accidentally left comment in from old api 2023-10-05 02:26:23 +01:00
linkability 6b8d050fa5
account api half done 2023-10-05 02:25:04 +01:00
linkability 03c638b951
assertAPI instead of noAPIAccessIf 2023-10-05 02:00:41 +01:00
linkability 36b59d1908
fix: 🐛 it does not import Accounts 2023-10-05 01:41:09 +01:00
linkability ceac1fc9a6
Merge branch 'api-v1' of https://github.com/nbitzz/monofile into api-v1 2023-10-05 01:38:03 +01:00
May 503f5f315f
api-v1: start work on sanitize middleware func 2023-10-04 10:41:21 -07:00
May 6e6afd274b
api-v1: fix middleware func 2023-10-04 10:21:33 -07:00
May 01fe79d050
api-v1: add new middleware function 2023-10-04 10:21:04 -07:00
linkability 087454659b
Add middleware to account api-v1 2023-10-04 16:10:42 +01:00
May ab617461fa housekeeping 2023-10-03 22:02:37 -07:00
May 9a589d3638 clear up internal libs (@Jack5079) 2023-10-03 20:16:05 -07:00
May 1ed1acca1c api-v1: apihandler 2023-10-03 20:10:08 -07:00
May 70591c78e9 api-v1: apihandler 2023-10-03 20:09:49 -07:00
linkability f4e7dfa123
api-v1: Adds initial empty files 2023-10-04 01:36:52 +01:00
May 3163ad649b
TSDoc files.ts & errors.ts 2023-10-03 13:37:37 -07:00
May 937363c9ee
TSDoc: mail.ts, middleware.ts, ratelimit.ts 2023-10-03 13:21:28 -07:00
May 9f480cbc87
btr-inline-docs: TSDoc accounts.ts 2023-10-03 11:48:57 -07:00
May 0071c17fe5 tokens: ability to set no expiration 2023-10-02 22:00:21 -07:00
May 5e15b20c10 token-permissions: bugfix 2023-10-02 21:01:53 -07:00
May 8bec8a4360 token-permissions: update adminRoutes 2023-10-02 19:20:32 -07:00
May af9c3233d8 token-permissions: update primaryApi 2023-10-02 19:20:11 -07:00
May 6742bf724f token-permissions: update fileApiRoutes 2023-10-02 19:18:29 -07:00
May 2006fa1cca token-permissions: update authRoutes 2023-10-02 19:14:00 -07:00
May fad320d7fb token-permissions: update middleware further 2023-10-02 18:27:48 -07:00
May a04cc9a376 token-permissions: update middleware 2023-10-02 18:22:18 -07:00
May b3efd8ca29 token-permissions: implement into tokens 2023-10-02 17:17:38 -07:00
May 8a4dfd361c more accepted characters in ids (doom) 2023-10-01 17:48:44 -07:00
May 8f6a5b5474 swap to crypto.randomInt over Math.random 2023-10-01 17:45:07 -07:00
May 261b81ee04 bump token length to 36bytes 2023-10-01 17:42:00 -07:00
May 11602b5556 bugfix: deindex not working for idx 0 2023-10-01 17:41:31 -07:00
May 76119811ff bearer-auth: customcss cleanup 2023-10-01 16:32:04 -07:00
May c8e486630e bearer-auth: move /download route to middleware 2023-10-01 16:28:15 -07:00
May a5d3131180 bearer-auth: make primaryApi use middleware 2023-10-01 16:27:22 -07:00
May 14d4261858 bearer-auth: make fileApiRoutes use middleware 2023-10-01 16:25:21 -07:00
May 64dd66dc03 bearer-auth: add to middleware:getAccount 2023-10-01 16:18:47 -07:00
May a4bbbf8d53
Merge pull request #10 from nbitzz/express-ssl-force
Force SSL through expressjs
2023-10-01 10:59:13 -07:00
May 3bf0e7491a force-ssl: trustproxy 2023-10-01 10:50:05 -07:00
May 1d387de3dd force-ssl: switch to req.protocol? 2023-10-01 10:40:03 -07:00
May cb17eb1433 initial: force-ssl 2023-10-01 10:31:18 -07:00
May 142bee3f7e mail-unlink: send 200 response 2023-09-30 21:47:16 -07:00
May 4def0d3fa6 mail-unlink: break in case 2023-09-30 21:45:11 -07:00
May f27f7b8921 mail-unlink: fetch acc data on unlink 2023-09-30 21:43:20 -07:00
May c687b0767d mail-unlink: fixup icons, fix setemail 2023-09-30 21:41:29 -07:00
May 4377052856 mail-unlink: use emailpotentialremove 2023-09-30 21:35:14 -07:00
May 6b59732aa1 mail-unlink: initial 2023-09-30 21:31:59 -07:00
May ed9d7b5f8b fix an error code 2023-09-02 15:29:05 -07:00
May 8f512d1433 fix icon 2023-08-28 22:05:52 -07:00
May 4c47d641e5 fix route name & owned files, add more s. chars 2023-08-28 22:02:18 -07:00
May 1eced462fe hhhidk what im doing :verygood: 2023-08-28 20:40:49 -07:00
May f4697850c6 quick patch to fix issue with updates 2023-08-28 11:08:00 -07:00
May df939f38f9 Bug: fix discord video embeds 2023-08-27 17:43:17 -07:00
May 5afc025851 Bug: Hex not working when uppercase 2023-08-27 17:38:59 -07:00
May dc9d9ddb4f oh wait i forgot to Serve from server 2023-08-27 00:49:51 -07:00
May 3cf1a251c7 i think this is good enough?
i have no idea i just wanna get this over with
Monofile One Point Three Here We Come!
Code Cleanup Update #2 Soon ! Maybe
2023-08-27 00:33:34 -07:00
May 089def4ab5 fontsource refuses to work in scss for me
so give up! i don't think importing in svelte will work
due to how it's currently configured
2023-08-12 10:16:40 +00:00
May b7b8f887f4 just wooooork please 2023-08-12 10:13:59 +00:00
May f749472dcd @Jack5079's suggestions (hopefully these work lol)
Later I'll use Svelte 4, I guess
2023-08-12 09:53:53 +00:00
May 411e01a5c1 organize 2023-08-12 09:44:10 +00:00
May 6dc6b12b91 files update on get 2023-08-11 14:27:40 +00:00
May 2ebc50a312 oh im stupid 2023-08-04 05:00:48 +00:00
May 4a2b0633f2 redirect 2023-08-04 04:28:21 +00:00
May 7f694f1a4a updates 2023-08-04 04:05:52 +00:00
May 42062eaf86 complete 2023-08-04 02:41:30 +00:00
May ceb4e746ec try fixing errmsgs 2023-08-04 02:30:12 +00:00
May 99bdc5fcef Fix email 2023-08-04 02:03:54 +00:00
May 99a0800128 log email errors so i can figure out wtf is going on 2023-08-04 02:00:33 +00:00
May 09feefffcd move up an endpoint 2023-08-03 12:38:23 +00:00
May a4f3eac37b Move file routes out of index.ts, some cleanup 2023-08-03 12:31:43 +00:00
May de795b6c88 DRY up code 2023-08-03 11:59:25 +00:00
May 6d6f8b1832 rid of pointless functions (thanks jack) 2023-08-02 12:58:05 +00:00
May 7651cd65ab add shitty fallback 2023-08-02 00:28:15 +00:00
May 006177db46 wanna see where doing this will take me 2023-08-02 00:08:53 +00:00
May 28ca9b2224 Oh. 2023-08-02 00:04:24 +00:00
May b48d087b6b ... 2023-08-01 23:54:29 +00:00
May df185541a3 add empty image which theoretically should work 2023-08-01 23:47:12 +00:00
May eb1824a14e see if that fixes things lol 2023-08-01 23:43:29 +00:00
May c25da84355 Fixes 2023-08-01 23:35:32 +00:00
May 5281021f71 Small fixes 2023-08-01 17:47:46 +00:00
May 45da932326 🚀🎉 Bump to beta 2023-08-01 17:40:11 +00:00
May 98f86b6427 Hotfix 2023-08-01 15:05:07 +00:00
May 28c066e1fc 🎉 bump to alpha 2023-08-01 14:50:28 +00:00
May a5404ecc13 fuck me 2023-08-01 13:49:37 +00:00
May 9f47a0f6ea oops 2023-08-01 13:47:30 +00:00
May f43162abef Audio previews 2023-08-01 13:36:14 +00:00
May eb6d06cf25 woops 2023-07-19 10:29:14 -07:00
May 42931ab3cf Experimental, and very bad & likely broken email 2023-07-18 19:37:10 -07:00
May 27791fc7e5 /cpt 2023-07-11 12:38:42 -07:00
May e9c68d0280 Delete file 2023-07-02 23:35:38 -07:00
May dd0a080ba8 quik patchin 2023-07-02 22:54:09 -07:00
May b93fd38bcd wait that actually fixed it? 2023-06-28 23:28:21 -07:00
May e38014bf51 pls 2023-06-28 23:23:10 -07:00
May 0b72a64b84 attempt 2023-06-28 23:22:26 -07:00
May aaa1d64f1f young man, KILL YOURSELF!! 2023-06-28 23:03:08 -07:00
May 6fd5177c7a w2oops 2023-06-28 22:49:18 -07:00
May f608eb053f ok 2023-06-28 22:48:44 -07:00
May b484489710 woops 2023-06-28 22:33:20 -07:00
May 35f914a58a update debug 2023-06-28 22:20:20 -07:00
May aeaa838b19 debugging 2023-06-28 22:15:18 -07:00
May cfd55d7230 change file owner 2023-06-28 22:08:24 -07:00
May abedda18e3 adminopts 2023-06-28 21:57:13 -07:00
May 38dd9e9c57 further fix 2023-06-24 18:20:38 -07:00
May 486fb6912e hopefully implement backpressure 2023-06-24 17:34:12 -07:00
May 81378fc0dc cool 2023-05-28 21:13:50 -07:00
May 3b4fba797d add cor 2023-05-28 21:00:48 -07:00
May 0f962d81e2
Update files.ts 2023-05-22 13:30:33 -07:00
May 736f7fc138
pls 2023-05-22 13:04:16 -07:00
May b879b3702c
typo 2023-05-22 11:31:01 -07:00
May 74c63f5f68
Patch range header for single chunk files and multi message files 2023-05-22 11:20:14 -07:00
May 72efec9f6d RANGE HEADER 🎉 I AM SO UNBELIEVABLY HAPPY 2023-05-19 22:50:56 -07:00
May 9bb5babd1d pls 2023-05-19 15:58:50 +00:00
May 81bca21a9a pls 2023-05-19 15:40:25 +00:00
May 213ae8e8a5 workpls 2023-05-17 19:33:03 -07:00
May 58da5da26e G 2023-05-13 18:13:38 -07:00
May a21535cbda
Update fileApiRoutes.ts 2023-05-13 11:41:25 -07:00
May 6b6f05ea4c
Update fileApiRoutes.ts 2023-05-13 11:37:38 -07:00
May f4d7128e04 i hope this works lol
next up: backups
2023-05-12 22:37:13 +00:00
May 9dbeb6d94f T!!! 2023-05-11 22:33:39 -07:00
May 7699258159 patch 2023-05-11 19:25:34 -07:00
May 78de4764bc custom css...hopefully 2023-05-11 17:59:49 -07:00
May 2c5984d628 hopeuflly this can fix some stuf 2023-05-11 15:32:00 -07:00
May df44249539 NO IDEA IF THIS WORKS!!! 2023-05-11 20:54:32 +00:00
May b029dc9e12 ok so small few changes 2023-05-11 20:42:24 +00:00
May eb53609e79 FUCK YOU! YOU FUCKIN' DICK! 2023-05-10 15:53:55 -07:00
May fce3397014 G 2023-05-10 15:31:31 -07:00
May 92c48a52ef tags ig 2023-05-10 15:29:57 -07:00
May b82577e1a8 so thats why you dont work 2023-05-09 23:00:17 -07:00
May d916247e0d you are Very stupid 2023-05-09 22:53:50 -07:00
May baebcfa716 further fixes 2023-05-09 22:51:03 -07:00
May 982154465a rrrggrrr 2023-05-09 22:44:31 -07:00
May dd39eff6b5 I FORGOR 2023-05-09 22:32:43 -07:00
May 6337521983 m 2023-05-09 22:30:13 -07:00
May 7621b3ce5d SPLIT ACTUALLY WORKS ON MONOFILE 1.3(IMPOSSIBLE) 2023-05-09 22:29:32 -07:00
May dfc08f43b7 OG metatag fix 2023-05-08 16:04:22 -07:00
May 23744f1fc2 ffff 2023-03-24 17:47:47 -07:00
May e75b8fb3aa fix 2023-03-22 23:40:37 -07:00
May 9253228567 HEAVY wip - i'll prob clean up next commit 2023-03-19 12:31:22 -07:00
May 435791de5d jso 2023-03-17 13:56:57 -07:00
May 52e5de2450 file menu wip 2023-03-17 12:07:03 -07:00
stringsplit a72f7afab9 files menu wip
for some reason auth was broken when i tested
so if that's still broken ill fix
2023-03-02 21:38:53 +00:00
May 5ff88d917e upd 2023-03-02 07:45:07 -08:00
May aa715fa868 this is without a doubt the worst code ive written
next commit will probably be me trying to fix this mess
or just the file menu but good idea to fix early
2023-03-01 16:39:11 -08:00