tycrek
|
6c9b8166e9
|
feat: use functions instead because why not
|
2 years ago |
tycrek
|
fd06e92191
|
fix: API auth middleware for new auth system
|
2 years ago |
tycrek
|
87c8e64698
|
fix: remove this method for duplicating the list (ironically correctly)
|
2 years ago |
tycrek
|
a774ab311b
|
feat: try to reset user array at start of onStart*
I don't think it works
|
2 years ago |
tycrek
|
4c4009207f
|
feat: migrate datafile (token => uploader unid)
|
2 years ago |
tycrek
|
6cc0cb3ffa
|
feat: use vars for filenames instead of direct strings
|
2 years ago |
tycrek
|
76dc68405a
|
feat: deprecate `token` in FileData, switch to `uploader`
|
2 years ago |
tycrek
|
619a30d685
|
fix: auth file written before bcrypt Promise resolved
|
2 years ago |
tycrek
|
1887409eeb
|
fix: put salt rounds in a constant
|
2 years ago |
tycrek
|
2dad6f13ce
|
feat: `createNewUser` now accepts a password and handles hashing
|
2 years ago |
tycrek
|
dc2f3937b2
|
feat: added CLI scripts for setting & testing hashed passwords
|
2 years ago |
tycrek
|
6cfd353a54
|
feat: added export for setting passwords
|
2 years ago |
tycrek
|
6be768d655
|
feat: auto-gen random unknown admin password during migration
|
2 years ago |
tycrek
|
42a7b4758f
|
chore: rename this to improve understanding
|
2 years ago |
tycrek
|
27aa264d37
|
refactor: switch to arrays instead of Objects/maps
|
2 years ago |
tycrek
|
340b44a300
|
fix: use `setURL` instead of `setUrl`, package seems unmaintained
|
2 years ago |
tycrek
|
1a9fad7076
|
feat: BREAKING: overhaul auth file format and handling (etc, expand)
BREAKING CHANGE: any hosts with modified deployments of ass utilizing the auth file in its current state will need to fix their modifications.
|
2 years ago |
tycrek
|
7b88ee9638
|
feat: added type definitions for auth
|
2 years ago |
tycrek
|
e425425749
|
build: added nanoid package
|
2 years ago |
tycrek
|
f302f56ac6
|
feat: gave API an onStart()
|
2 years ago |
tycrek
|
62b2bf953f
|
feat: added initial API routers (no routes yet)
|
2 years ago |
tycrek
|
3dab919e3f
|
fix: DeepSource JS-0295 but idfk why it's only complaining here
There's so much `// @ts-ignore` but it only cares about this?
|
2 years ago |
tycrek
|
1aaf298b02
|
feat: added global admin webhook (#142)
Adds options to log all uploads from all users with a webhook
|
2 years ago |
tycrek
|
88534d5adf
|
ez: simplified
|
2 years ago |
tycrek
|
90466f6104
|
🕓 feat: added Timestamp generator
|
2 years ago |
tycrek
|
b06eceda26
|
fix: Usage of the `any` type
Resolves Deepsource JS-0323
|
2 years ago |
tycrek
|
f1f8468651
|
fix: Added Javadoc to `removeGPS`
Resolves Deepsource JS-D1001
|
2 years ago |
tycrek
|
f36acef1cc
|
feat: Strip EXIF GPS data from files during upload
Supported filetypes are: JPG, PNG, TIF, MOV, MP4. Using [@xoi/gps-metadata-remover](https://www.npmjs.com/package/@xoi/gps-metadata-remover).
Closes #91
|
2 years ago |
tycrek
|
9a0b4078a8
|
fix: TS linter was complaining
|
2 years ago |
tycrek
|
a36f944eba
|
fix: Replace `fs.createReadStream` with `res.sendFile`
Some [local installs (non-docker)](https://canary.discord.com/channels/848274994375294986/848313252009869312/1027077979580416050) may have issues with the filesystem calls used by `fs.createReadStream`. Discord user `Ryan#7385` showed that this fixed *something* (though not what we were actually troubleshooting)
|
2 years ago |
tycrek
|
e7f1e2b856
|
Try to resolve DeepSource JS-0356
|
2 years ago |
tycrek
|
e34a980106
|
Added shitty basic rate limiting (CodeQL)
|
2 years ago |
tycrek
|
9c718b3384
|
Suppress DeepSource JS-0359
|
2 years ago |
tycrek
|
dfb0e50903
|
Removed option for custom index filename from setup
|
2 years ago |
tycrek
|
b2b38837e9
|
Rewrote logic for custom index plugging (more seamless now)
|
2 years ago |
tycrek
|
1c068bde3c
|
Simplify condition
|
3 years ago |
tycrek
|
7cf60f965c
|
This was supposed to be negated
|
3 years ago |
tycrek
|
b591727a50
|
Try to avoid crashing on launch
|
3 years ago |
tycrek
|
3dcc07498d
|
Use TypeScript-ified express-postcss package
|
3 years ago |
tycrek
|
38501ce433
|
Fixed Metrics script with weird ass sleeper function
|
3 years ago |
tycrek
|
0abc56c5f7
|
Actually fixed setup 😭
|
3 years ago |
tycrek
|
c697a7c5e5
|
Fixed logs in .js files
|
3 years ago |
tycrek
|
1e2332918b
|
Added purge script `npm run purge`
|
3 years ago |
tycrek
|
f71248e05a
|
Fixed duplicate files not being deleted properly (closes #132)
|
3 years ago |
tycrek
|
7ca47df7bc
|
Create directory if necessary
|
3 years ago |
tycrek
|
ed6595fc3b
|
Fix not checking proper path type
|
3 years ago |
tycrek
|
651f213351
|
Added toggle for brand line
|
3 years ago |
tycrek
|
a6c246b134
|
Use new experimental TLog
|
3 years ago |
tycrek
|
612f86cb12
|
Fixed incorrect type
|
3 years ago |
tycrek
|
901e831589
|
Removed old JSDoc (replaced with TypeScript)
|
3 years ago |
tycrek
|
b44172d999
|
Switched to using Sharp to fix JPEG uploads failing (remove Jimp)
|
3 years ago |
tycrek
|
c1a5d77f0f
|
Fix DeepSource JS-0356
|
3 years ago |
tycrek
|
5b88d5e585
|
Removed these again
|
3 years ago |
tycrek
|
a37577bb35
|
Fix ordering to resolve DeepSource JS-0357
|
3 years ago |
tycrek
|
1e943859eb
|
Removed all of these now redundant symbols
|
3 years ago |
tycrek
|
70689b9240
|
Fixed startup sequence
|
3 years ago |
tycrek
|
587d4d6452
|
Fixed other parts
|
3 years ago |
tycrek
|
29add713c3
|
Significantly improve loading data & config
|
3 years ago |
tycrek
|
dbb024815e
|
Fix type importing (simple diffs)
|
3 years ago |
tycrek
|
35afc9cd0f
|
Added more definition files
|
3 years ago |
tycrek
|
0f54ac24b4
|
Somehow converted my modules to `import` by declaring empty namespaces?
|
3 years ago |
tycrek
|
ab471d43ed
|
Properly extend Express interfaces
|
3 years ago |
tycrek
|
c5460b38e9
|
Removed Marked as it wasn't used anymore
|
3 years ago |
tycrek
|
36179e8ec0
|
Merge branch 'master' into tailwind
|
3 years ago |
Josh Moore
|
fc82a6d6b3
|
Fix crash if file is missing from`uploads/` (closes #103) (#112)
|
3 years ago |
Josh Moore
|
a2aa4d58bc
|
Added shitty patch for `webp` failing to upload (#111)
|
3 years ago |
tycrek
|
8ae078c5be
|
Merge branch 'master' into tailwind
|
3 years ago |
tycrek
|
0667cc0f0a
|
🔗 Added interoperability between S3 hosted files & Sia Skynet files
|
3 years ago |
tycrek
|
6bab3e0375
|
Added Sia Skynet uploading and downloading/viewing
|
3 years ago |
tycrek
|
74678904f2
|
Print "on Sia blockchain" in logs
|
3 years ago |
tycrek
|
b1680c39b3
|
Added `skynet.ts` with functions for uploading and downloading
|
3 years ago |
tycrek
|
efbef491a7
|
Added `useSia` config option for using Sia Skynet decentralized storage
|
3 years ago |
tycrek
|
5c3374991c
|
Index now redirects to GitHub by default
|
3 years ago |
tycrek
|
75c26fb4db
|
Added necessary code for PostCSS/Tailwind compilation
|
3 years ago |
tycrek
|
ad642bc003
|
Lowercased NPM -> npm as per branding FAQ
|
3 years ago |
tycrek
|
55c07e0ab5
|
Migrated `storage.js` to `storage.ts`
|
3 years ago |
tycrek
|
7ee0080ba0
|
Removed redundant comment
|
3 years ago |
tycrek
|
3810db4a8b
|
Updated major versions of some packages
- fs-extra (major)
- luxon (major)
- marked (major)
- node-fetch (patch)
- node-vibrant (??)
|
3 years ago |
tycrek
|
4c63c889ad
|
Updated dependency versions in `package.json`
- also removed an old TODO
|
3 years ago |
tycrek
|
553e07119d
|
Fixed uploads not properly saving to save dir
|
3 years ago |
tycrek
|
3296e119af
|
Moved `getDatedDirname` out of `utils.js` as only one file actually used it
|
3 years ago |
tycrek
|
093e59ccba
|
Fixed express-busboy on TypeScript
|
3 years ago |
tycrek
|
c1447e2d36
|
Squash branch 'master' into ts-attempt-over-9000
|
3 years ago |
tycrek
|
3237f4882b
|
Fixed metrics script
|
3 years ago |
tycrek
|
b38a403bc9
|
Fixed timeoffset breaking TS compilation
|
3 years ago |
tycrek
|
b2ffc44972
|
Merge branch 'master' into ts-attempt-over-9000
|
3 years ago |
tycrek
|
ddb5413cc9
|
Fixed token generation (`npm run new-token <username>`)
|
3 years ago |
tycrek
|
31fa676f5f
|
Merge branch 'master' into ts-attempt-over-9000
|
3 years ago |
tycrek
|
f201792193
|
Fixed incorrect path check for custom index
|
3 years ago |
tycrek
|
934398659d
|
Merge branch 'master' into ts-attempt-over-9000
|
3 years ago |
tycrek
|
590a5f1fe8
|
Merge branch 'master' into ts-attempt-over-9000
|
3 years ago |
tycrek
|
a1448416bc
|
Merge branch 'master' into ts-attempt-over-9000
|
3 years ago |
tycrek
|
2db8a33d2f
|
`spaceReplace` fixed for TS
|
3 years ago |
tycrek
|
ca73a377c4
|
Merge branch 'master' into ts-attempt-over-9000
|
3 years ago |
tycrek
|
9b80ae6ff1
|
converted a ton of `module.exports` to `export` and `require` to `import`
|
3 years ago |
tycrek
|
de1358cfc8
|
moved `verify()` and `generateId()` to TS exports
|
3 years ago |
tycrek
|
c188a7dacd
|
fixed setup flow
|
3 years ago |
tycrek
|
589c85d7e5
|
migrated `ass.js` to `ass.ts`, why tf was this the easy one to migrate?!
|
3 years ago |
tycrek
|
9b45bc21fe
|
migrated `utils.js` to `utils.ts`, goddam!
|
3 years ago |
tycrek
|
75bd856d3e
|
Merge branch 'master' into ts-attempt-over-9000
|
3 years ago |