Commit Graph

173 Commits (839c7a73a7a1859b539771d769a5b87e7819a190)

Author SHA1 Message Date
tycrek 182d674a7e
feat: add a CLI key for scripts to auth with API
2 years ago
tycrek eb5578ef9e
chore: minor cleanup before release
2 years ago
tycrek 084b5fba3a
fix: run this sequentially to avoid crashing on low-spec servers, maybe
2 years ago
tycrek 93dc91a761
fix: tested password reset in prod, not working for some reason
2 years ago
tycrek 7b6e2b12e1
feat: create default users
2 years ago
tycrek 4663ce40c9
feat: add creating users via API
2 years ago
tycrek faaaa8d572
fix: this shouldn't be an entire `User`, that makes no sense
2 years ago
tycrek 717b788e83
feat: added server-side embed configuration (closes #173)
2 years ago
tycrek 6dc539c7d5
fix: show original if user overrode with zws
2 years ago
tycrek fe79d84662
feat: allow using the generated ID in the web viewer (closes #181)
2 years ago
tycrek 20db648bc1
feat: display ass version in Webhook author
2 years ago
tycrek 338f6a73e1
feat: switch to `@tycrek/discord-hookr` for webhooks
2 years ago
tycrek 16ba3ca438
feat: allow password resets over the API
2 years ago
tycrek cb1d75ff1d
feat: added user API routes
2 years ago
tycrek 55401441fa
fix: remove duplicate function
2 years ago
tycrek 118039f849
fix: user names that make sense
2 years ago
tycrek ac8c861bb1
feat: add middleware function for verifying admin users
2 years ago
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*
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)
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
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
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
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