Skip to content

Add all icon variants - #13

Merged
stplasim merged 8 commits into
masterfrom
add_all_icon_variants
Sep 8, 2022
Merged

Add all icon variants#13
stplasim merged 8 commits into
masterfrom
add_all_icon_variants

Conversation

@stplasim

@stplasim stplasim commented Sep 6, 2022

Copy link
Copy Markdown
Contributor

This PR extends the icon generator script to generate all variants of all icons. The script was also improved to handle better the lage amount of icons.

Related ticket

@stplasim

stplasim commented Sep 6, 2022

Copy link
Copy Markdown
Contributor Author

Hi @alexlanz, I push the icons after the review

@stplasim
stplasim requested a review from alexlanz September 6, 2022 06:36
Comment thread generator.js Outdated
Comment thread generator.js Outdated
Comment on lines +101 to +105
const iconChunks = new Array(
Math.ceil(icons.icons.length / DOWNLOAD_CHUNK_SIZE)
)
.fill()
.map(() => icons.icons.splice(0, DOWNLOAD_CHUNK_SIZE))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you do the split up into multiple chunks? I don't really see any benefit here how you handle it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have cleaned it up

Comment thread generator.js Outdated
Comment thread generator.js Outdated
Comment thread generator.js Outdated
@stplasim
stplasim requested a review from alexlanz September 7, 2022 14:48

@alexlanz alexlanz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really nice, good job! I like the last refactoring. 🔥

Comment thread generator.js Outdated
Comment thread generator.js Outdated
Simon Planinschek added 2 commits September 7, 2022 17:00
@stplasim
stplasim merged commit 2210dfc into master Sep 8, 2022
@stplasim
stplasim deleted the add_all_icon_variants branch September 8, 2022 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants