Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(templates): add arrows stickers #7518

Merged
merged 1 commit into from
Jul 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
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
Loading