This project has been replaced by the Asset Management UI.
Please use that project to manage our waifu!
- Yarn Package Manager
ts-node
installed globally (runyarn global add ts-node
)
- Run
yarn install
to get all teh goodies - Run
yarn download
to sync your local machine with all of the current assets.
Just add assets to the directories defined in AssetTools
.
- Be sure to do a
git pull
to update the assets download before uploading to avoid overwriting changed assets- If you did a
pull
and you got changes in thesyncedAssets.json
please runyarn download
before continuing, and update accordingly.
- If you did a
- Run
yarn build:asset-lists
to generate theassets.json
with the items you added. - Run
yarn upload
to send them to the cloud!
Some assets may have been uploaded that we don't want to appear anymore.
- Move the entry from
syncedAssets.json
toblacklistedAssets.json
. - Remove the asset from the appropriate
asset.json
file. - Run
yarn upload
to publish changes.
You can group assets for an alert context. Just add a groupId
property with UUID value (we're currently using UUID v4).
For example: audible:
{
"path": "...",
"categories": ["..."],
"groupId": "6ae8f9cd-c7b6-4f6a-964b-8252e4135e4f"
}
visual:
{
"imagePath": "...",
"path": "...",
"imageAlt": "",
"imageDimensions": {},
"categories": ["..."],
"groupId": "6ae8f9cd-c7b6-4f6a-964b-8252e4135e4f"
}
Note: Both audible
and visual
assets contain the same "groupId": "6ae8f9cd-c7b6-4f6a-964b-8252e4135e4f"
value.
Be sure to commit your changes so we all can be in sync!