diff --git a/client/web/plugins/com.msgbyte.genshin/package.json b/client/web/plugins/com.msgbyte.genshin/package.json index 6c061acd..7fcf2631 100644 --- a/client/web/plugins/com.msgbyte.genshin/package.json +++ b/client/web/plugins/com.msgbyte.genshin/package.json @@ -1,6 +1,6 @@ { "name": "@plugins/com.msgbyte.genshin", - "main": "src/index.ts", + "main": "src/index.tsx", "version": "0.0.0", "private": true, "dependencies": { diff --git a/client/web/plugins/com.msgbyte.genshin/src/index.ts b/client/web/plugins/com.msgbyte.genshin/src/index.tsx similarity index 100% rename from client/web/plugins/com.msgbyte.genshin/src/index.ts rename to client/web/plugins/com.msgbyte.genshin/src/index.tsx 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 cff74ad5..dde42b0d 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 @@ -2,7 +2,6 @@ import { parse } from '@babel/parser'; import traverse from '@babel/traverse'; import { isArrayExpression, - isExpression, isIdentifier, isJSXAttribute, isJSXIdentifier, @@ -73,7 +72,9 @@ async function extractIcons(filepath: string): Promise { const name = path.node.name; if ( isJSXIdentifier(name) && - ['Icon', 'IconBtn', 'BaseChatInputButton'].includes(name.name) + ['Icon', 'IconBtn', 'LogoLink', '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 2da015bc..284a5238 100644 --- a/client/web/plugins/com.msgbyte.offline-icons/src/icons.json +++ b/client/web/plugins/com.msgbyte.offline-icons/src/icons.json @@ -160,12 +160,12 @@ "puzzle": { "body": "" }, - "compass": { - "body": "" - }, "video-box": { "body": "" }, + "compass": { + "body": "" + }, "checkbox-marked-outline": { "body": "" }, @@ -198,6 +198,18 @@ } } }, + { + "prefix": "akar-icons", + "lastModified": 1684129183, + "aliases": {}, + "width": 24, + "height": 24, + "icons": { + "game-controller": { + "body": "" + } + } + }, { "prefix": "openmoji", "lastModified": 1686116966, @@ -210,6 +222,38 @@ } } }, + { + "prefix": "logos", + "lastModified": 1686721805, + "aliases": {}, + "width": 256, + "height": 256, + "icons": { + "github-octocat": { + "body": "", + "height": 259.3 + }, + "opensource": { + "body": "", + "height": 248 + }, + "docker-icon": { + "body": "", + "height": 185 + }, + "react": { + "body": "", + "height": 228 + }, + "redux": { + "body": "", + "height": 244 + }, + "typescript-icon": { + "body": "" + } + } + }, { "prefix": "emojione", "lastModified": 1672651879, diff --git a/client/web/src/components/UserPicker/UserPicker.tsx b/client/web/src/components/UserPicker/UserPicker.tsx index 8ae37c6b..560717f0 100644 --- a/client/web/src/components/UserPicker/UserPicker.tsx +++ b/client/web/src/components/UserPicker/UserPicker.tsx @@ -1,9 +1,10 @@ -import { Checkbox, Empty, Input } from 'antd'; +import { Checkbox, Input } from 'antd'; import React, { useCallback, useState } from 'react'; import { t, useUserInfoList } from 'tailchat-shared'; import _take from 'lodash/take'; import _without from 'lodash/without'; import { Avatar } from 'tailchat-design'; +import { NotFound } from '../NotFound'; /** * 用户选择器 @@ -90,7 +91,7 @@ export const UserPicker: React.FC = React.memo((props) => { ); }) ) : ( - + )} );