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:
@@ -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] = {};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user