Commit Graph

163 Commits (master)

Author SHA1 Message Date
tycrek 20db648bc1
feat: display ass version in Webhook author
1 year ago
tycrek 338f6a73e1
feat: switch to `@tycrek/discord-hookr` for webhooks
1 year ago
tycrek 16ba3ca438
feat: allow password resets over the API
1 year ago
tycrek cb1d75ff1d
feat: added user API routes
1 year ago
tycrek 55401441fa
fix: remove duplicate function
1 year ago
tycrek 118039f849
fix: user names that make sense
1 year ago
tycrek ac8c861bb1
feat: add middleware function for verifying admin users
1 year ago
tycrek 6c9b8166e9
feat: use functions instead because why not
1 year ago
tycrek fd06e92191
fix: API auth middleware for new auth system
1 year ago
tycrek 87c8e64698
fix: remove this method for duplicating the list (ironically correctly)
1 year ago
tycrek a774ab311b
feat: try to reset user array at start of onStart*
1 year ago
tycrek 4c4009207f
feat: migrate datafile (token => uploader unid)
1 year ago
tycrek 6cc0cb3ffa
feat: use vars for filenames instead of direct strings
1 year ago
tycrek 76dc68405a
feat: deprecate `token` in FileData, switch to `uploader`
1 year ago
tycrek 619a30d685
fix: auth file written before bcrypt Promise resolved
1 year ago
tycrek 1887409eeb
fix: put salt rounds in a constant
1 year ago
tycrek 2dad6f13ce
feat: `createNewUser` now accepts a password and handles hashing
1 year ago
tycrek dc2f3937b2
feat: added CLI scripts for setting & testing hashed passwords
1 year ago
tycrek 6cfd353a54
feat: added export for setting passwords
1 year ago
tycrek 6be768d655
feat: auto-gen random unknown admin password during migration
1 year ago
tycrek 42a7b4758f
chore: rename this to improve understanding
1 year ago
tycrek 27aa264d37
refactor: switch to arrays instead of Objects/maps
1 year ago
tycrek 340b44a300
fix: use `setURL` instead of `setUrl`, package seems unmaintained
1 year ago
tycrek 1a9fad7076
feat: BREAKING: overhaul auth file format and handling (etc, expand)
1 year ago
tycrek 7b88ee9638
feat: added type definitions for auth
1 year ago
tycrek e425425749
build: added nanoid package
1 year ago
tycrek f302f56ac6
feat: gave API an onStart()
1 year ago
tycrek 62b2bf953f
feat: added initial API routers (no routes yet)
1 year ago
tycrek 3dab919e3f
fix: DeepSource JS-0295 but idfk why it's only complaining here
2 years ago
tycrek 1aaf298b02
feat: added global admin webhook (#142)
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
2 years ago
tycrek f1f8468651
fix: Added Javadoc to `removeGPS`
2 years ago
tycrek f36acef1cc
feat: Strip EXIF GPS data from files during upload
2 years ago
tycrek 9a0b4078a8
fix: TS linter was complaining
2 years ago
tycrek a36f944eba
fix: Replace `fs.createReadStream` with `res.sendFile`
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
2 years ago
tycrek 7cf60f965c
This was supposed to be negated
2 years ago
tycrek b591727a50
Try to avoid crashing on launch
2 years ago
tycrek 3dcc07498d
Use TypeScript-ified express-postcss package
2 years ago
tycrek 38501ce433
Fixed Metrics script with weird ass sleeper function
2 years ago
tycrek 0abc56c5f7
Actually fixed setup 😭
2 years ago
tycrek c697a7c5e5
Fixed logs in .js files
2 years ago
tycrek 1e2332918b
Added purge script `npm run purge`
2 years ago
tycrek f71248e05a
Fixed duplicate files not being deleted properly (closes #132)
2 years ago
tycrek 7ca47df7bc
Create directory if necessary
2 years ago
tycrek ed6595fc3b
Fix not checking proper path type
2 years ago
tycrek 651f213351
Added toggle for brand line
2 years ago
tycrek a6c246b134
Use new experimental TLog
2 years ago
tycrek 612f86cb12
Fixed incorrect type
2 years ago
tycrek 901e831589
Removed old JSDoc (replaced with TypeScript)
2 years ago
tycrek b44172d999
Switched to using Sharp to fix JPEG uploads failing (remove Jimp)
2 years ago
tycrek c1a5d77f0f
Fix DeepSource JS-0356
2 years ago
tycrek 5b88d5e585
Removed these again
2 years ago
tycrek a37577bb35
Fix ordering to resolve DeepSource JS-0357
2 years ago
tycrek 1e943859eb
Removed all of these now redundant symbols
2 years ago
tycrek 70689b9240
Fixed startup sequence
2 years ago
tycrek 587d4d6452
Fixed other parts
2 years ago
tycrek 29add713c3
Significantly improve loading data & config
2 years ago
tycrek dbb024815e
Fix type importing (simple diffs)
2 years ago
tycrek 35afc9cd0f
Added more definition files
2 years ago
tycrek 0f54ac24b4
Somehow converted my modules to `import` by declaring empty namespaces?
2 years ago
tycrek ab471d43ed
Properly extend Express interfaces
2 years ago
tycrek c5460b38e9
Removed Marked as it wasn't used anymore
2 years ago
tycrek 36179e8ec0
Merge branch 'master' into tailwind
2 years ago
Josh Moore fc82a6d6b3
Fix crash if file is missing from`uploads/` (closes #103) (#112)
2 years ago
Josh Moore a2aa4d58bc
Added shitty patch for `webp` failing to upload (#111)
2 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
3 years ago
tycrek 4c63c889ad
Updated dependency versions in `package.json`
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