feat(templates): add arrows stickers (#7518)

Add the arrow SVGs from [handy-arrows](https://github.com/Eronred/handy-arrows) to the template.
Thanks to [handy-arrows](https://github.com/Eronred/handy-arrows) for these beautiful SVGs.
This commit is contained in:
JimmFly
2024-07-19 06:25:29 +00:00
parent a62b7f0024
commit f65380f847
374 changed files with 6182 additions and 183 deletions

View File

@@ -10,12 +10,20 @@ const categories = Array.from(
await fs.readdir(join(__dirname, './stickers'))
).filter(v => v !== '.DS_Store');
const naturalSort = array => {
return array.sort(
new Intl.Collator(undefined, { numeric: true, sensitivity: 'base' }).compare
);
};
let i = 0;
for (const category of categories) {
const stickers = Array.from(
await fs.readdir(join(__dirname, './stickers', category, 'Cover'))
).filter(v => v !== '.DS_Store');
const stickers = naturalSort(
Array.from(
await fs.readdir(join(__dirname, './stickers', category, 'Cover'))
).filter(v => v !== '.DS_Store')
);
data[category] = {};