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 committed 2024-07-19 06:25:30 +00:00
1 parent a62b7f0024
commit f65380f847
374 files changed
+6182 -183

No files matched your search

+11 -3
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] = {};