Skip to content

Commit

Permalink
feat(templates): add arrows stickers (#7518)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
JimmFly committed Jul 19, 2024
1 parent a62b7f0 commit f65380f
Show file tree
Hide file tree
Showing 374 changed files with 6,183 additions and 184 deletions.
14 changes: 11 additions & 3 deletions packages/frontend/templates/build-stickers.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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] = {};

Expand Down
1,850 changes: 1,669 additions & 181 deletions packages/frontend/templates/stickers-templates.gen.ts

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions packages/frontend/templates/stickers/Arrows/Content/arrow-100.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit f65380f

Please sign in to comment.