Skip to content

Commit 5ea290f

Browse files
committed
chore(persona-icon): sync with figma
1 parent 8694eee commit 5ea290f

File tree

2,327 files changed

+12664
-11789
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,327 files changed

+12664
-11789
lines changed

packages/persona-icon/font/persona-icon.css

Lines changed: 280 additions & 275 deletions
Large diffs are not rendered by default.
764 Bytes
Binary file not shown.

packages/persona-icon/font/persona-icon.svg

Lines changed: 864 additions & 834 deletions
Loading
764 Bytes
Binary file not shown.
776 Bytes
Binary file not shown.
336 Bytes
Binary file not shown.

packages/persona-icon/scripts/changelog.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ async function main () {
5656
console.log(`- ${group}`)
5757
else {
5858
for (const item of items)
59-
console.log(`- ${item.key.replace('.hash', '')}`)
59+
console.log(`- ${(item.key as string).replace('.hash', '')}`)
6060
}
6161
}
6262
}

packages/persona-icon/scripts/sync.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ const svgoConfig: Config = {
8282
if (node.attributes.d)
8383
node.attributes.d = fixPath(node.attributes.d)
8484

85-
if (node.attributes.fill !== 'none' && !node.attributes.fill.startsWith('url'))
85+
if (node.attributes.fill && node.attributes.fill !== 'none' && !node.attributes.fill.startsWith('url'))
8686
node.attributes.fill = 'currentColor'
8787
}
8888
},
@@ -280,6 +280,17 @@ async function main () {
280280
spinner.start(`[${count}/${total}] - Downloading ${object.filename}`)
281281

282282
const res = await ofetch(url, { responseType: 'text', retry: 3 })
283+
284+
if (!res) {
285+
objects.delete(id)
286+
spinner.warn(`[${count}/${total}] - Skip ${object.filename} because it's empty / not found`)
287+
288+
await remove(resolve(SVG_DIR, object.filepath))
289+
await remove(resolve(VUE_DIR, `${object.filename}.vue`))
290+
291+
return
292+
}
293+
283294
const svg = optimize(res, { path: object.filepath, ...svgoConfig }).data
284295

285296
await ensureFile(resolve(SVG_DIR, object.filepath))
Lines changed: 1 addition & 1 deletion
Loading
Lines changed: 1 addition & 1 deletion
Loading

0 commit comments

Comments
 (0)