commits
/404.html => `404` (special case)
/docs/index.html => `::docs::`
/cat.jpg => `::cat.jpg`
note: i still havent tested anything since upload blobs. and since upload blobs is most of the buisness logic lmao
once jacquard is patched 馃檹馃檹
note: this code is still broke bc uploading blobs still does not work
errors different tho
note: includes `use` commands which are unneeded rn
this is bc i cant be fucked to remove ones which are needed for the next commit. go fuck urself idc
note: this doesnt work bc the auth is failing BUT once i fix auth it will
note: error handling and general setup of main will need refactoring
ts a mess rn
hashmap key no longer includes the source directory from the cli arguments
source dir `./dist`:
./dist/index.html => index.html
./dist/assets/cat.jpg => cat.jpg
etc
refactor things and log the tree state in main bc its debugging info
i am absolving myself of all mime type issues with the upload function
ppl can pr OR manually edit mime types on pdsls OR just use normal file extensions
todo: detect mime type from file extension
use a more robust regex which ensures colons cannot be used in a record key unless they are valid colon escape syntax
it works for everyone on atproto except bluesky it should be Fine here
i hope
please be niceys
note: this isn't production ready, as it still stores CSAM and other illegal content
moderation is the next stage
will need to refactor the backfill directory bc Ho Boy Thats Bad
this doesnt include ingesting their blobs since that'll happen at request time
means currently dependent on bsky.network but in future this should change
- subdomain specific code (index handler and user
site handler) are now in /routes
- constants from index.ts are now defined in utils.ts
so they can be used by other files
- rkey <=> url functions are now in utils.ts
- new and old error/404 pages which were plaintext now
look nicer and have the atcities ascii logo
- designed the atcities logo. added in ascii
TODO: design and add a proper svg
- remove logic related to resolving pdses and fetching blobs
this will return in backfilling
- hardcoded list of backfilled data
- not connected
- doesnt even start up
options are:
- blob: object with blob record which is a blob itself
in future could be used for things like xml-ed xrpc
calls with processors and rss'd xml'd xrpc calls (for
ex: leaflet pubs as an rss feed)
anything else is lowk stupid lmfao
like you can set whatever mime type you want why would you not do that
Might make 404 redirect to sans / if it cant find a route tho and then falling back to 404
this makes no trailing slash the sane default but allows opt in trailing slash for certain urls
TODO:
- security headers for proper origin sandboxing
(users could store sensitive info + general namespace collisions bad)
- backfill and cdn to take load off of the main appview
this will populate a database which the appview does reads from
and will download any referenced routes (to a certain size per user)
and gc old routes
im stupid and didnt clock that route.ts was because my nsid ended in .route
- subdomain specific code (index handler and user
site handler) are now in /routes
- constants from index.ts are now defined in utils.ts
so they can be used by other files
- rkey <=> url functions are now in utils.ts
- new and old error/404 pages which were plaintext now
look nicer and have the atcities ascii logo
- designed the atcities logo. added in ascii
TODO: design and add a proper svg
- remove logic related to resolving pdses and fetching blobs
this will return in backfilling
TODO:
- security headers for proper origin sandboxing
(users could store sensitive info + general namespace collisions bad)
- backfill and cdn to take load off of the main appview
this will populate a database which the appview does reads from
and will download any referenced routes (to a certain size per user)
and gc old routes