From bd9bfe047ef70fd82622c9de840e0e2168598c0d Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Mon, 17 Jul 2023 16:28:07 +0800 Subject: [PATCH] refactor: add more offline icons --- .../scripts/extract-icons.ts | 2 +- .../com.msgbyte.offline-icons/src/icons.json | 72 ++++++++++++++----- 2 files changed, 57 insertions(+), 17 deletions(-) diff --git a/client/web/plugins/com.msgbyte.offline-icons/scripts/extract-icons.ts b/client/web/plugins/com.msgbyte.offline-icons/scripts/extract-icons.ts index f67e94df..cff74ad5 100644 --- a/client/web/plugins/com.msgbyte.offline-icons/scripts/extract-icons.ts +++ b/client/web/plugins/com.msgbyte.offline-icons/scripts/extract-icons.ts @@ -73,7 +73,7 @@ async function extractIcons(filepath: string): Promise { const name = path.node.name; if ( isJSXIdentifier(name) && - ['Icon', 'BaseChatInputButton'].includes(name.name) + ['Icon', 'IconBtn', 'BaseChatInputButton'].includes(name.name) ) { path.node.attributes.forEach((attribute) => { if (isJSXAttribute(attribute) && attribute.name.name === 'icon') { diff --git a/client/web/plugins/com.msgbyte.offline-icons/src/icons.json b/client/web/plugins/com.msgbyte.offline-icons/src/icons.json index 634a976a..2da015bc 100644 --- a/client/web/plugins/com.msgbyte.offline-icons/src/icons.json +++ b/client/web/plugins/com.msgbyte.offline-icons/src/icons.json @@ -1,20 +1,24 @@ [ { "prefix": "mdi", - "lastModified": 1684129624, - "aliases": {}, + "lastModified": 1689058119, + "aliases": { + "edit": { + "parent": "pencil" + } + }, "width": 24, "height": 24, "icons": { - "account": { - "body": "" - }, - "camera-outline": { - "body": "" + "close-circle-outline": { + "body": "" }, "chevron-right": { "body": "" }, + "camera-outline": { + "body": "" + }, "code-braces": { "body": "" }, @@ -45,8 +49,14 @@ "paperclip": { "body": "" }, - "close-circle-outline": { - "body": "" + "cloud-download-outline": { + "body": "" + }, + "square-edit-outline": { + "body": "" + }, + "check": { + "body": "" }, "arrow-left": { "body": "" @@ -57,6 +67,9 @@ "arrow-right": { "body": "" }, + "cog": { + "body": "" + }, "plus-circle-outline": { "body": "" }, @@ -90,11 +103,26 @@ "file-question-outline": { "body": "" }, + "email-edit-outline": { + "body": "" + }, + "pencil": { + "body": "" + }, + "dots-vertical": { + "body": "" + }, "magnify": { "body": "" }, - "email-edit-outline": { - "body": "" + "account-supervisor-outline": { + "body": "" + }, + "dock-window": { + "body": "" + }, + "account-multiple-plus-outline": { + "body": "" }, "message-badge-outline": { "body": "" @@ -111,8 +139,11 @@ "dots-horizontal": { "body": "" }, - "dock-window": { - "body": "" + "pencil-outline": { + "body": "" + }, + "trash-can-outline": { + "body": "" }, "pin-off": { "body": "" @@ -129,20 +160,29 @@ "puzzle": { "body": "" }, - "video-box": { - "body": "" - }, "compass": { "body": "" }, + "video-box": { + "body": "" + }, "checkbox-marked-outline": { "body": "" }, + "message-text-outline": { + "body": "" + }, + "phone-remove-outline": { + "body": "" + }, "projector-screen-outline": { "body": "" }, "open-in-new": { "body": "" + }, + "message-reply-text-outline": { + "body": "" } } },