commits
tldr: the key mapper stripped /index.html, to ensure the entire segment was an index.html at the end and to avoid conflict
because the root of the site wasnt prefixed with a / before mapping, a path of index.html would just get mapped to path /index.html instead of /
fix: add special case for index.html
also make it a map bc more special cases may be added
/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)
tldr: the key mapper stripped /index.html, to ensure the entire segment was an index.html at the end and to avoid conflict
because the root of the site wasnt prefixed with a / before mapping, a path of index.html would just get mapped to path /index.html instead of /
fix: add special case for index.html
also make it a map bc more special cases may be added
- 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