back

changes/

changes.md (178B)

this directory serves as a list of changes i've made to my version of file.gallery. i have it here for my own documentation but i hope you find it interesting :)

_markdown.md (25B)

  • add max width for text

_layout.md (290B)

  • add background noise
  • use ryan yan's z-index function to have images always be in the back unless hovered
  • formal collections are organized in reverse so that ISO-formatted dates are in reverse chronological order (newest first) (that is also why the files in here are named weirdly)

_garden_store.md (1.18kB)

inspired by the .DS_Store that file.gallery is built on

currently, file.gallery has no way of knowing how files should be ordered semantically. the current implementation organizes them alphanumerically which is works for formal compositions but results in a nonintuitive DOM for natural layouts

.garden_store.json allows file.gallery to remember the intended DOM order of files and directories. the json stores a sort-order for each directory along with a copy of the processedFiles array used in cultivate.js.

by default, it will retain the alphanumeric order and simply be rewritten everytime npm run cultivate is run but if sort-order is set to custom, it will respect the order that is set, adding new items to the end and removing items that are no longer visible to cultivate.js.

todo

i plan to add some additional filters that can be set like reverse-alpha or date. i'm not sure if that can be done through finder itself but this was the best solution i could think of to set semantic ordering, which was my priority

i want to make a gui that allows for things like adding aria labels, rearranging the order of the items, or adding custom attributes.