koishi-plugin-kkk 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +57 -0
- package/LICENSE +674 -0
- package/README.md +98 -0
- package/assets/web/assets/CronEditor-CYgFpX-g.js +1 -0
- package/assets/web/assets/DesktopLayout-iI43ij11.js +1 -0
- package/assets/web/assets/MobileLayout-CziU8MCR.js +1 -0
- package/assets/web/assets/ThemeSwitch-DFohhwd9.js +1 -0
- package/assets/web/assets/index-BRROK0vh.js +47 -0
- package/assets/web/assets/index-Dj-StEiS.css +2 -0
- package/assets/web/assets/separator-CxcFlCzz.js +1 -0
- package/assets/web/favicon.svg +1 -0
- package/assets/web/icons.svg +24 -0
- package/assets/web/index.html +15 -0
- package/assets/webui.html +115 -0
- package/client/index.ts +63 -0
- package/config/default_config/app.yaml +64 -0
- package/config/default_config/bilibili.yaml +116 -0
- package/config/default_config/config.json +157 -0
- package/config/default_config/cookies.yaml +11 -0
- package/config/default_config/douyin.yaml +99 -0
- package/config/default_config/kuaishou.yaml +8 -0
- package/config/default_config/pushlist.yaml +37 -0
- package/config/default_config/request.yaml +22 -0
- package/config/default_config/upload.yaml +50 -0
- package/config/default_config/xiaohongshu.yaml +23 -0
- package/dist/index.js +1 -0
- package/lib/compat/axios.js +23 -0
- package/lib/compat/cron.js +77 -0
- package/lib/compat/esm.js +15 -0
- package/lib/compat/express.js +23 -0
- package/lib/compat/heroui.js +12 -0
- package/lib/compat/lodash.js +33 -0
- package/lib/compat/logger.js +118 -0
- package/lib/compat/node-karin.js +1053 -0
- package/lib/compat/phosphor-icons.js +27 -0
- package/lib/compat/qqcard.js +256 -0
- package/lib/compat/root.js +44 -0
- package/lib/compat/runtime.js +87 -0
- package/lib/compat/segment.js +167 -0
- package/lib/compat/sqlite3.js +117 -0
- package/lib/compat/start.js +7 -0
- package/lib/compat/syncConfig.js +65 -0
- package/lib/compat/template-react.js +30 -0
- package/lib/compat/text.js +65 -0
- package/lib/compat/yaml.js +13 -0
- package/lib/configBridge.js +91 -0
- package/lib/index.js +775 -0
- package/lib/karin/app.js +34 -0
- package/lib/karin/apps/__ready.js +9 -0
- package/lib/karin/apps/admin.js +136 -0
- package/lib/karin/apps/help.js +233 -0
- package/lib/karin/apps/push.js +291 -0
- package/lib/karin/apps/qrlogin.js +176 -0
- package/lib/karin/apps/statistics.js +209 -0
- package/lib/karin/apps/testPush.js +247 -0
- package/lib/karin/apps/tools.js +473 -0
- package/lib/karin/apps/update.js +252 -0
- package/lib/karin/index.js +37 -0
- package/lib/karin/module/db/bilibili.js +831 -0
- package/lib/karin/module/db/douyin.js +918 -0
- package/lib/karin/module/db/index.js +165 -0
- package/lib/karin/module/db/migration.js +199 -0
- package/lib/karin/module/db/statistics.js +559 -0
- package/lib/karin/module/index.js +94 -0
- package/lib/karin/module/server/constants/routes.js +48 -0
- package/lib/karin/module/server/controllers/bots.js +230 -0
- package/lib/karin/module/server/controllers/config.js +75 -0
- package/lib/karin/module/server/controllers/video.js +208 -0
- package/lib/karin/module/server/index.js +26 -0
- package/lib/karin/module/server/middlewares/auth.js +133 -0
- package/lib/karin/module/server/routes/amagi.js +57 -0
- package/lib/karin/module/server/routes/api.js +40 -0
- package/lib/karin/module/server/routes/index.js +97 -0
- package/lib/karin/module/server/routes/ssr.js +16 -0
- package/lib/karin/module/server/routes/static.js +43 -0
- package/lib/karin/module/utils/Base.js +403 -0
- package/lib/karin/module/utils/CardParser.js +487 -0
- package/lib/karin/module/utils/Common.js +418 -0
- package/lib/karin/module/utils/Config.js +434 -0
- package/lib/karin/module/utils/EmojiReaction.js +242 -0
- package/lib/karin/module/utils/ErrorHandler/handler.js +114 -0
- package/lib/karin/module/utils/ErrorHandler/index.js +55 -0
- package/lib/karin/module/utils/ErrorHandler/render.js +182 -0
- package/lib/karin/module/utils/ErrorHandler/sender.js +206 -0
- package/lib/karin/module/utils/ErrorHandler/strategy.js +41 -0
- package/lib/karin/module/utils/ErrorHandler/types.js +2 -0
- package/lib/karin/module/utils/ErrorHandler/utils.js +108 -0
- package/lib/karin/module/utils/FFmpeg.js +298 -0
- package/lib/karin/module/utils/ImageHelper.js +91 -0
- package/lib/karin/module/utils/ImageSlice.js +429 -0
- package/lib/karin/module/utils/MotionPhoto.js +250 -0
- package/lib/karin/module/utils/Network/Downloader.js +413 -0
- package/lib/karin/module/utils/Network/ImageDownloader.js +250 -0
- package/lib/karin/module/utils/Network/Network.js +332 -0
- package/lib/karin/module/utils/Network/ThrottleStream.js +71 -0
- package/lib/karin/module/utils/Network/constants.js +129 -0
- package/lib/karin/module/utils/Network/helpers.js +174 -0
- package/lib/karin/module/utils/Network/index.js +34 -0
- package/lib/karin/module/utils/Network/types.js +12 -0
- package/lib/karin/module/utils/Networks.js +17 -0
- package/lib/karin/module/utils/ParseLock.js +34 -0
- package/lib/karin/module/utils/ParseOverride.js +88 -0
- package/lib/karin/module/utils/QqCardResolve.js +114 -0
- package/lib/karin/module/utils/QqPanel.js +879 -0
- package/lib/karin/module/utils/Render/coverTheme.js +256 -0
- package/lib/karin/module/utils/Render/index.js +582 -0
- package/lib/karin/module/utils/amagiClient.js +338 -0
- package/lib/karin/module/utils/avatar.js +201 -0
- package/lib/karin/module/utils/bot.js +141 -0
- package/lib/karin/module/utils/build-metadata.js +50 -0
- package/lib/karin/module/utils/changelog.js +166 -0
- package/lib/karin/module/utils/index.js +26 -0
- package/lib/karin/module/utils/loginSession.js +259 -0
- package/lib/karin/module/utils/parseTip.js +93 -0
- package/lib/karin/module/utils/runtime-report.js +140 -0
- package/lib/karin/module/utils/semver.js +72 -0
- package/lib/karin/module/utils/statisticsAggregate.js +415 -0
- package/lib/karin/platform/bilibili/bilibili.js +1805 -0
- package/lib/karin/platform/bilibili/comments.js +294 -0
- package/lib/karin/platform/bilibili/danmaku.js +555 -0
- package/lib/karin/platform/bilibili/dynamic-text.js +827 -0
- package/lib/karin/platform/bilibili/genParams.js +37 -0
- package/lib/karin/platform/bilibili/getID.js +159 -0
- package/lib/karin/platform/bilibili/index.js +24 -0
- package/lib/karin/platform/bilibili/live-status.js +40 -0
- package/lib/karin/platform/bilibili/login.js +132 -0
- package/lib/karin/platform/bilibili/push.js +1397 -0
- package/lib/karin/platform/bilibili/riskControl.js +133 -0
- package/lib/karin/platform/bilibili/search.js +299 -0
- package/lib/karin/platform/common/danmaku-types.js +12 -0
- package/lib/karin/platform/douyin/comments.js +310 -0
- package/lib/karin/platform/douyin/danmaku.js +893 -0
- package/lib/karin/platform/douyin/douyin.js +1145 -0
- package/lib/karin/platform/douyin/getID.js +94 -0
- package/lib/karin/platform/douyin/index.js +24 -0
- package/lib/karin/platform/douyin/login.js +230 -0
- package/lib/karin/platform/douyin/push/favorite.js +75 -0
- package/lib/karin/platform/douyin/push/index.js +21 -0
- package/lib/karin/platform/douyin/push/live.js +69 -0
- package/lib/karin/platform/douyin/push/post.js +60 -0
- package/lib/karin/platform/douyin/push/recommend.js +74 -0
- package/lib/karin/platform/douyin/push/render.js +621 -0
- package/lib/karin/platform/douyin/push/types.js +2 -0
- package/lib/karin/platform/douyin/push.js +1128 -0
- package/lib/karin/platform/douyin/types.js +13 -0
- package/lib/karin/platform/douyin/videoQuality.js +222 -0
- package/lib/karin/platform/douyin/workType.js +182 -0
- package/lib/karin/platform/index.js +20 -0
- package/lib/karin/platform/kuaishou/comments.js +91 -0
- package/lib/karin/platform/kuaishou/getID.js +43 -0
- package/lib/karin/platform/kuaishou/getdata.js +41 -0
- package/lib/karin/platform/kuaishou/index.js +20 -0
- package/lib/karin/platform/kuaishou/kuaishou.js +122 -0
- package/lib/karin/platform/xiaohongshu/comments.js +162 -0
- package/lib/karin/platform/xiaohongshu/getID.js +129 -0
- package/lib/karin/platform/xiaohongshu/index.js +18 -0
- package/lib/karin/platform/xiaohongshu/xiaohongshu.js +643 -0
- package/lib/karin/root.js +73 -0
- package/lib/karin/setup.js +99 -0
- package/lib/karin/types/config/amagi.js +2 -0
- package/lib/karin/types/config/app.js +2 -0
- package/lib/karin/types/config/bilibili.js +2 -0
- package/lib/karin/types/config/cookies.js +2 -0
- package/lib/karin/types/config/douyin.js +2 -0
- package/lib/karin/types/config/index.js +2 -0
- package/lib/karin/types/config/kuaishou.js +2 -0
- package/lib/karin/types/config/pushlist.js +2 -0
- package/lib/karin/types/config/request.js +2 -0
- package/lib/karin/types/config/upload.js +2 -0
- package/lib/karin/types/config/xiaohongshu.js +2 -0
- package/lib/karin/types/datatypes.js +2 -0
- package/lib/karin/types/index.js +18 -0
- package/lib/karin/types/netrorks/NetworksConfigType.js +2 -0
- package/lib/karin/types/netrorks/index.js +17 -0
- package/lib/karin/web.config.js +49 -0
- package/lib/ktr/registry.js +82 -0
- package/lib/ktr/template/_preview/components/PreviewInfoCard.js +10 -0
- package/lib/ktr/template/_preview/components/PreviewLayout.js +10 -0
- package/lib/ktr/template/_preview/components/PreviewVideoCard.js +8 -0
- package/lib/ktr/template/_preview/render.js +142 -0
- package/lib/ktr/template/_preview/types.js +2 -0
- package/lib/ktr/template/_preview/utils/status.js +31 -0
- package/lib/ktr/template/_preview/utils/time.js +12 -0
- package/lib/ktr/template/bilibili/bangumi/components/bangumi.js +127 -0
- package/lib/ktr/template/bilibili/bangumi/components/types.js +2 -0
- package/lib/ktr/template/bilibili/bangumi/index.js +12 -0
- package/lib/ktr/template/bilibili/comment/components/Comment.js +193 -0
- package/lib/ktr/template/bilibili/comment/components/types.js +2 -0
- package/lib/ktr/template/bilibili/comment/index.js +10 -0
- package/lib/ktr/template/bilibili/components/Icons.js +66 -0
- package/lib/ktr/template/bilibili/components/shared.js +93 -0
- package/lib/ktr/template/bilibili/components/types.js +2 -0
- package/lib/ktr/template/bilibili/dynamic/DYNAMIC_TYPE_ARTICLE/components/DYNAMIC_TYPE_ARTICLE.js +66 -0
- package/lib/ktr/template/bilibili/dynamic/DYNAMIC_TYPE_ARTICLE/components/types.js +2 -0
- package/lib/ktr/template/bilibili/dynamic/DYNAMIC_TYPE_ARTICLE/index.js +10 -0
- package/lib/ktr/template/bilibili/dynamic/DYNAMIC_TYPE_AV/components/DYNAMIC_TYPE_AV.js +87 -0
- package/lib/ktr/template/bilibili/dynamic/DYNAMIC_TYPE_AV/components/types.js +2 -0
- package/lib/ktr/template/bilibili/dynamic/DYNAMIC_TYPE_AV/index.js +10 -0
- package/lib/ktr/template/bilibili/dynamic/DYNAMIC_TYPE_DRAW/components/DYNAMIC_TYPE_DRAW.js +93 -0
- package/lib/ktr/template/bilibili/dynamic/DYNAMIC_TYPE_DRAW/components/types.js +2 -0
- package/lib/ktr/template/bilibili/dynamic/DYNAMIC_TYPE_DRAW/index.js +10 -0
- package/lib/ktr/template/bilibili/dynamic/DYNAMIC_TYPE_FORWARD/components/DYNAMIC_TYPE_FORWARD.js +132 -0
- package/lib/ktr/template/bilibili/dynamic/DYNAMIC_TYPE_FORWARD/components/types.js +2 -0
- package/lib/ktr/template/bilibili/dynamic/DYNAMIC_TYPE_FORWARD/index.js +10 -0
- package/lib/ktr/template/bilibili/dynamic/DYNAMIC_TYPE_LIVE_RCMD/components/DYNAMIC_TYPE_LIVE_RCMD.js +84 -0
- package/lib/ktr/template/bilibili/dynamic/DYNAMIC_TYPE_LIVE_RCMD/components/types.js +2 -0
- package/lib/ktr/template/bilibili/dynamic/DYNAMIC_TYPE_LIVE_RCMD/index.js +10 -0
- package/lib/ktr/template/bilibili/dynamic/DYNAMIC_TYPE_WORD/components/DYNAMIC_TYPE_WORD.js +38 -0
- package/lib/ktr/template/bilibili/dynamic/DYNAMIC_TYPE_WORD/components/types.js +2 -0
- package/lib/ktr/template/bilibili/dynamic/DYNAMIC_TYPE_WORD/index.js +10 -0
- package/lib/ktr/template/bilibili/dynamic/components/AdditionalCard.js +59 -0
- package/lib/ktr/template/bilibili/dynamic/components/CommonComponents.js +30 -0
- package/lib/ktr/template/bilibili/dynamic/types.js +2 -0
- package/lib/ktr/template/bilibili/qrcodeImg/components/qrcodeImg.js +48 -0
- package/lib/ktr/template/bilibili/qrcodeImg/components/types.js +3 -0
- package/lib/ktr/template/bilibili/qrcodeImg/index.js +10 -0
- package/lib/ktr/template/bilibili/userlist/components/UserList.js +53 -0
- package/lib/ktr/template/bilibili/userlist/components/types.js +3 -0
- package/lib/ktr/template/bilibili/userlist/index.js +13 -0
- package/lib/ktr/template/bilibili/videoInfo/components/types.js +2 -0
- package/lib/ktr/template/bilibili/videoInfo/components/videoInfo.js +62 -0
- package/lib/ktr/template/bilibili/videoInfo/index.js +10 -0
- package/lib/ktr/template/components/AmbientCover.js +36 -0
- package/lib/ktr/template/components/DefaultLayout.js +33 -0
- package/lib/ktr/template/components/GlowImage.js +276 -0
- package/lib/ktr/template/components/QRCodeWithAvatar.js +34 -0
- package/lib/ktr/template/components/RolldownLogo.js +6 -0
- package/lib/ktr/template/components/ViteLogo.js +6 -0
- package/lib/ktr/template/components/iconRegistry.js +173 -0
- package/lib/ktr/template/douyin/article-work/components/ArticleWork.js +99 -0
- package/lib/ktr/template/douyin/article-work/components/types.js +3 -0
- package/lib/ktr/template/douyin/article-work/index.js +10 -0
- package/lib/ktr/template/douyin/comment/components/Comment.js +189 -0
- package/lib/ktr/template/douyin/comment/components/types.js +2 -0
- package/lib/ktr/template/douyin/comment/index.js +10 -0
- package/lib/ktr/template/douyin/components/Icons.js +29 -0
- package/lib/ktr/template/douyin/components/types.js +3 -0
- package/lib/ktr/template/douyin/dynamic/components/Dynamic.js +90 -0
- package/lib/ktr/template/douyin/dynamic/components/types.js +3 -0
- package/lib/ktr/template/douyin/dynamic/index.js +10 -0
- package/lib/ktr/template/douyin/favorite-list/components/FavoriteList.js +30 -0
- package/lib/ktr/template/douyin/favorite-list/components/types.js +3 -0
- package/lib/ktr/template/douyin/favorite-list/index.js +10 -0
- package/lib/ktr/template/douyin/image-work/components/ImageWork.js +136 -0
- package/lib/ktr/template/douyin/image-work/components/types.js +2 -0
- package/lib/ktr/template/douyin/image-work/index.js +10 -0
- package/lib/ktr/template/douyin/live/components/Live.js +51 -0
- package/lib/ktr/template/douyin/live/components/types.js +3 -0
- package/lib/ktr/template/douyin/live/index.js +10 -0
- package/lib/ktr/template/douyin/musicinfo/components/MusicInfo.js +60 -0
- package/lib/ktr/template/douyin/musicinfo/components/types.js +3 -0
- package/lib/ktr/template/douyin/musicinfo/index.js +10 -0
- package/lib/ktr/template/douyin/qrcodeImg/components/qrcodeImg.js +39 -0
- package/lib/ktr/template/douyin/qrcodeImg/components/types.js +3 -0
- package/lib/ktr/template/douyin/qrcodeImg/index.js +9 -0
- package/lib/ktr/template/douyin/recommend-list/components/RecommendList.js +30 -0
- package/lib/ktr/template/douyin/recommend-list/components/types.js +3 -0
- package/lib/ktr/template/douyin/recommend-list/index.js +10 -0
- package/lib/ktr/template/douyin/user_profile/components/UserVideoList.js +54 -0
- package/lib/ktr/template/douyin/user_profile/components/types.js +3 -0
- package/lib/ktr/template/douyin/user_profile/index.js +9 -0
- package/lib/ktr/template/douyin/userlist/components/UserList.js +50 -0
- package/lib/ktr/template/douyin/userlist/components/types.js +3 -0
- package/lib/ktr/template/douyin/userlist/index.js +13 -0
- package/lib/ktr/template/douyin/video-work/components/VideoWork.js +127 -0
- package/lib/ktr/template/douyin/video-work/components/types.js +2 -0
- package/lib/ktr/template/douyin/video-work/index.js +10 -0
- package/lib/ktr/template/kuaishou/comment/components/Comment.js +88 -0
- package/lib/ktr/template/kuaishou/comment/components/types.js +2 -0
- package/lib/ktr/template/kuaishou/comment/index.js +10 -0
- package/lib/ktr/template/other/changelog/components/changelog.js +117 -0
- package/lib/ktr/template/other/changelog/components/types.js +3 -0
- package/lib/ktr/template/other/changelog/index.js +9 -0
- package/lib/ktr/template/other/handlerError/components/errorTitles.js +227 -0
- package/lib/ktr/template/other/handlerError/components/handlerError.js +392 -0
- package/lib/ktr/template/other/handlerError/components/stackHighlight.js +109 -0
- package/lib/ktr/template/other/handlerError/components/types.js +2 -0
- package/lib/ktr/template/other/handlerError/index.js +9 -0
- package/lib/ktr/template/other/help/components/Help.js +79 -0
- package/lib/ktr/template/other/help/components/types.js +3 -0
- package/lib/ktr/template/other/help/index.js +12 -0
- package/lib/ktr/template/other/live-photo-tip/components/LivePhotoTip.js +80 -0
- package/lib/ktr/template/other/live-photo-tip/components/types.js +3 -0
- package/lib/ktr/template/other/live-photo-tip/index.js +9 -0
- package/lib/ktr/template/other/qrlogin/components/qrlogin.js +58 -0
- package/lib/ktr/template/other/qrlogin/components/types.js +3 -0
- package/lib/ktr/template/other/qrlogin/index.js +9 -0
- package/lib/ktr/template/other/runtime/components/runtime.js +101 -0
- package/lib/ktr/template/other/runtime/components/types.js +3 -0
- package/lib/ktr/template/other/runtime/index.js +9 -0
- package/lib/ktr/template/other/version_warning/components/VersionWarning.js +38 -0
- package/lib/ktr/template/other/version_warning/components/types.js +3 -0
- package/lib/ktr/template/other/version_warning/index.js +9 -0
- package/lib/ktr/template/statistics/components/BoxplotGuide.js +17 -0
- package/lib/ktr/template/statistics/components/ChartCard.js +15 -0
- package/lib/ktr/template/statistics/components/KpiCard.js +14 -0
- package/lib/ktr/template/statistics/components/PlatformTable.js +20 -0
- package/lib/ktr/template/statistics/components/RankList.js +61 -0
- package/lib/ktr/template/statistics/components/SSRChart.js +22 -0
- package/lib/ktr/template/statistics/components/chartPresets.js +630 -0
- package/lib/ktr/template/statistics/components/chartTheme.js +226 -0
- package/lib/ktr/template/statistics/components/format.js +38 -0
- package/lib/ktr/template/statistics/components/types.js +9 -0
- package/lib/ktr/template/statistics/global/components/GlobalStatistics.js +246 -0
- package/lib/ktr/template/statistics/global/components/types.js +3 -0
- package/lib/ktr/template/statistics/global/index.js +9 -0
- package/lib/ktr/template/statistics/group/components/GroupStatistics.js +181 -0
- package/lib/ktr/template/statistics/group/components/types.js +3 -0
- package/lib/ktr/template/statistics/group/index.js +9 -0
- package/lib/ktr/template/types/ctx.js +2 -0
- package/lib/ktr/template/xiaohongshu/comment/components/Comment.js +99 -0
- package/lib/ktr/template/xiaohongshu/comment/components/types.js +3 -0
- package/lib/ktr/template/xiaohongshu/comment/index.js +9 -0
- package/lib/ktr/template/xiaohongshu/noteInfo/components/noteInfo.js +93 -0
- package/lib/ktr/template/xiaohongshu/noteInfo/components/types.js +2 -0
- package/lib/ktr/template/xiaohongshu/noteInfo/index.js +9 -0
- package/lib/ktr/utils/QRCodeAvatar.js +99 -0
- package/lib/ktr/utils/QRcode.js +56 -0
- package/lib/ktr/utils/avatarProxy.js +45 -0
- package/lib/ktr/utils/cn.js +11 -0
- package/lib/ktr/utils/theme.js +12 -0
- package/lib/qqFields.json +75 -0
- package/lib/qqOptions.js +44 -0
- package/lib/richtext/index.js +25 -0
- package/lib/richtext/parse/index.js +232 -0
- package/lib/richtext/react/cn.js +11 -0
- package/lib/richtext/react/index.js +221 -0
- package/lib/richtext/types.js +2 -0
- package/lib/schema.js +352 -0
- package/lib/webui.js +341 -0
- package/package.json +88 -0
- package/resources/image/bilibili/RICH_TEXT_NODE_TYPE/RICH_TEXT_NODE_TYPE_BV.svg +1 -0
- package/resources/image/bilibili/RICH_TEXT_NODE_TYPE/RICH_TEXT_NODE_TYPE_GOODS.svg +1 -0
- package/resources/image/bilibili/RICH_TEXT_NODE_TYPE/RICH_TEXT_NODE_TYPE_LOTTERY.svg +1 -0
- package/resources/image/bilibili/RICH_TEXT_NODE_TYPE/RICH_TEXT_NODE_TYPE_VIEW_PICTURE.svg +1 -0
- package/resources/image/bilibili/RICH_TEXT_NODE_TYPE/RICH_TEXT_NODE_TYPE_VOTE.svg +1 -0
- package/resources/image/bilibili/RICH_TEXT_NODE_TYPE/RICH_TEXT_NODE_TYPE_WEB.svg +1 -0
- package/resources/image/bilibili/bilibili-dark.png +0 -0
- package/resources/image/bilibili/bilibili-light.png +0 -0
- package/resources/image/bilibili/bilibili.png +0 -0
- package/resources/image/bilibili/id-dark.svg +1 -0
- package/resources/image/bilibili/id-light.svg +1 -0
- package/resources/image/bilibili/level/lv0.svg +1 -0
- package/resources/image/bilibili/level/lv1.svg +1 -0
- package/resources/image/bilibili/level/lv2.svg +1 -0
- package/resources/image/bilibili/level/lv3.svg +1 -0
- package/resources/image/bilibili/level/lv4.svg +1 -0
- package/resources/image/bilibili/level/lv5.svg +1 -0
- package/resources/image/bilibili/level/lv6.svg +1 -0
- package/resources/image/bilibili/level/lv7.svg +1 -0
- package/resources/image/bilibili/like-dark.svg +6 -0
- package/resources/image/bilibili/like-light.svg +6 -0
- package/resources/image/bilibili/play.svg +28 -0
- package/resources/image/bilibili/res-local1.png +0 -0
- package/resources/image/bilibili/up_pb.svg +1 -0
- package/resources/image/bilibili//347/233/264/346/222/255/344/270/255.png +0 -0
- package/resources/image/douyin/douyin.png +0 -0
- package/resources/image/douyin/dylogo-dark.svg +23 -0
- package/resources/image/douyin/dylogo-light.svg +38 -0
- package/resources/image/douyin/search-dark.svg +1 -0
- package/resources/image/douyin/search-light.svg +3 -0
- package/resources/image/douyin//346/212/226/351/237/263-/347/233/264/346/222/255/344/270/255.png +0 -0
- package/resources/image/frame-logo.png +0 -0
- package/resources/image/kuaishou/logo.png +0 -0
- package/resources/image/other/handlerError/Milky.png +0 -0
- package/resources/image/other/handlerError/chronocat.svg +43 -0
- package/resources/image/other/handlerError/conwechat.webp +0 -0
- package/resources/image/other/handlerError/gocq-http.webp +0 -0
- package/resources/image/other/handlerError/lagrange.webp +0 -0
- package/resources/image/other/handlerError/llonebot.webp +0 -0
- package/resources/image/other/handlerError/napcat.webp +0 -0
- package/resources/image/other/handlerError/onebot.png +0 -0
- package/resources/image/other/handlerError/satori.png +0 -0
- package/resources/image/xiaohongshu/logo.png +0 -0
- package/resources/template/style.css +23708 -0
- package/resources/vite.svg +130 -0
- package/scripts/build.mjs +129 -0
- package/scripts/check-schema.cjs +55 -0
- package/scripts/deploy.mjs +78 -0
- package/scripts/make-demo-placeholders.mjs +112 -0
- package/scripts/patch-deps.mjs +46 -0
- package/scripts/patch-webui.mjs +112 -0
- package/scripts/smoke-commands.cjs +39 -0
- package/scripts/smoke-config.cjs +122 -0
- package/scripts/smoke-douyin.cjs +170 -0
- package/scripts/smoke-koishi-commands.cjs +210 -0
- package/scripts/smoke-login.cjs +110 -0
- package/scripts/smoke-parse.cjs +54 -0
- package/scripts/smoke-push-mock.cjs +114 -0
- package/scripts/smoke-push.cjs +104 -0
- package/scripts/smoke-qq.cjs +147 -0
- package/scripts/smoke-qqcard.cjs +108 -0
- package/scripts/smoke-qqpanel.cjs +205 -0
- package/scripts/smoke-render.cjs +106 -0
- package/scripts/smoke-server.cjs +94 -0
- package/src/compat/axios.ts +5 -0
- package/src/compat/cron.ts +86 -0
- package/src/compat/esm.ts +13 -0
- package/src/compat/express.ts +5 -0
- package/src/compat/heroui.tsx +53 -0
- package/src/compat/lodash.ts +32 -0
- package/src/compat/logger.ts +121 -0
- package/src/compat/node-karin.ts +1064 -0
- package/src/compat/phosphor-icons.tsx +25 -0
- package/src/compat/qqcard.ts +251 -0
- package/src/compat/root.ts +44 -0
- package/src/compat/runtime.ts +120 -0
- package/src/compat/segment.ts +161 -0
- package/src/compat/sqlite3.ts +123 -0
- package/src/compat/start.ts +3 -0
- package/src/compat/syncConfig.ts +64 -0
- package/src/compat/template-react.ts +54 -0
- package/src/compat/text.ts +58 -0
- package/src/compat/yaml.ts +6 -0
- package/src/configBridge.ts +94 -0
- package/src/index.ts +769 -0
- package/src/karin/app.ts +1 -0
- package/src/karin/apps/__ready.ts +14 -0
- package/src/karin/apps/admin.ts +127 -0
- package/src/karin/apps/help.ts +228 -0
- package/src/karin/apps/push.ts +327 -0
- package/src/karin/apps/qrlogin.ts +160 -0
- package/src/karin/apps/statistics.ts +203 -0
- package/src/karin/apps/testPush.ts +226 -0
- package/src/karin/apps/tools.ts +510 -0
- package/src/karin/apps/update.ts +239 -0
- package/src/karin/index.ts +9 -0
- package/src/karin/module/db/bilibili.ts +1089 -0
- package/src/karin/module/db/douyin.ts +1218 -0
- package/src/karin/module/db/index.ts +159 -0
- package/src/karin/module/db/migration.ts +249 -0
- package/src/karin/module/db/statistics.ts +817 -0
- package/src/karin/module/index.ts +37 -0
- package/src/karin/module/server/constants/routes.ts +53 -0
- package/src/karin/module/server/controllers/bots.ts +289 -0
- package/src/karin/module/server/controllers/config.ts +85 -0
- package/src/karin/module/server/controllers/video.ts +212 -0
- package/src/karin/module/server/index.ts +11 -0
- package/src/karin/module/server/middlewares/auth.ts +147 -0
- package/src/karin/module/server/routes/amagi.ts +57 -0
- package/src/karin/module/server/routes/api.ts +42 -0
- package/src/karin/module/server/routes/index.ts +68 -0
- package/src/karin/module/server/routes/ssr.ts +14 -0
- package/src/karin/module/server/routes/static.ts +43 -0
- package/src/karin/module/utils/Base.ts +497 -0
- package/src/karin/module/utils/CardParser.ts +503 -0
- package/src/karin/module/utils/Common.ts +448 -0
- package/src/karin/module/utils/Config.ts +443 -0
- package/src/karin/module/utils/EmojiReaction.ts +268 -0
- package/src/karin/module/utils/ErrorHandler/handler.ts +124 -0
- package/src/karin/module/utils/ErrorHandler/index.ts +48 -0
- package/src/karin/module/utils/ErrorHandler/render.ts +180 -0
- package/src/karin/module/utils/ErrorHandler/sender.ts +192 -0
- package/src/karin/module/utils/ErrorHandler/strategy.ts +41 -0
- package/src/karin/module/utils/ErrorHandler/types.ts +122 -0
- package/src/karin/module/utils/ErrorHandler/utils.ts +108 -0
- package/src/karin/module/utils/FFmpeg.ts +357 -0
- package/src/karin/module/utils/ImageHelper.ts +90 -0
- package/src/karin/module/utils/ImageSlice.ts +383 -0
- package/src/karin/module/utils/MotionPhoto.ts +297 -0
- package/src/karin/module/utils/Network/Downloader.ts +481 -0
- package/src/karin/module/utils/Network/ImageDownloader.ts +291 -0
- package/src/karin/module/utils/Network/Network.ts +344 -0
- package/src/karin/module/utils/Network/ThrottleStream.ts +76 -0
- package/src/karin/module/utils/Network/constants.ts +135 -0
- package/src/karin/module/utils/Network/helpers.ts +183 -0
- package/src/karin/module/utils/Network/index.ts +28 -0
- package/src/karin/module/utils/Network/types.ts +46 -0
- package/src/karin/module/utils/Networks.ts +20 -0
- package/src/karin/module/utils/ParseLock.ts +33 -0
- package/src/karin/module/utils/ParseOverride.ts +128 -0
- package/src/karin/module/utils/QqCardResolve.ts +116 -0
- package/src/karin/module/utils/QqPanel.ts +880 -0
- package/src/karin/module/utils/Render/coverTheme.ts +294 -0
- package/src/karin/module/utils/Render/index.ts +574 -0
- package/src/karin/module/utils/amagiClient.ts +368 -0
- package/src/karin/module/utils/avatar.ts +220 -0
- package/src/karin/module/utils/bot.ts +115 -0
- package/src/karin/module/utils/build-metadata.ts +60 -0
- package/src/karin/module/utils/changelog.ts +175 -0
- package/src/karin/module/utils/index.ts +10 -0
- package/src/karin/module/utils/loginSession.ts +291 -0
- package/src/karin/module/utils/parseTip.ts +59 -0
- package/src/karin/module/utils/runtime-report.ts +142 -0
- package/src/karin/module/utils/semver.ts +60 -0
- package/src/karin/module/utils/statisticsAggregate.ts +507 -0
- package/src/karin/platform/bilibili/bilibili.ts +2004 -0
- package/src/karin/platform/bilibili/comments.ts +397 -0
- package/src/karin/platform/bilibili/danmaku.ts +653 -0
- package/src/karin/platform/bilibili/dynamic-text.ts +926 -0
- package/src/karin/platform/bilibili/genParams.ts +30 -0
- package/src/karin/platform/bilibili/getID.ts +163 -0
- package/src/karin/platform/bilibili/index.ts +8 -0
- package/src/karin/platform/bilibili/live-status.ts +36 -0
- package/src/karin/platform/bilibili/login.ts +130 -0
- package/src/karin/platform/bilibili/push.ts +1615 -0
- package/src/karin/platform/bilibili/riskControl.ts +114 -0
- package/src/karin/platform/bilibili/search.ts +305 -0
- package/src/karin/platform/common/danmaku-types.ts +18 -0
- package/src/karin/platform/douyin/comments.ts +404 -0
- package/src/karin/platform/douyin/danmaku.ts +1187 -0
- package/src/karin/platform/douyin/douyin.ts +1244 -0
- package/src/karin/platform/douyin/getID.ts +101 -0
- package/src/karin/platform/douyin/index.ts +8 -0
- package/src/karin/platform/douyin/login.ts +251 -0
- package/src/karin/platform/douyin/push/favorite.ts +97 -0
- package/src/karin/platform/douyin/push/index.ts +5 -0
- package/src/karin/platform/douyin/push/live.ts +86 -0
- package/src/karin/platform/douyin/push/post.ts +75 -0
- package/src/karin/platform/douyin/push/recommend.ts +96 -0
- package/src/karin/platform/douyin/push/render.ts +768 -0
- package/src/karin/platform/douyin/push/types.ts +41 -0
- package/src/karin/platform/douyin/push.ts +1241 -0
- package/src/karin/platform/douyin/types.ts +151 -0
- package/src/karin/platform/douyin/videoQuality.ts +234 -0
- package/src/karin/platform/douyin/workType.ts +238 -0
- package/src/karin/platform/index.ts +4 -0
- package/src/karin/platform/kuaishou/comments.ts +114 -0
- package/src/karin/platform/kuaishou/getID.ts +48 -0
- package/src/karin/platform/kuaishou/getdata.ts +78 -0
- package/src/karin/platform/kuaishou/index.ts +4 -0
- package/src/karin/platform/kuaishou/kuaishou.ts +130 -0
- package/src/karin/platform/xiaohongshu/comments.ts +227 -0
- package/src/karin/platform/xiaohongshu/getID.ts +127 -0
- package/src/karin/platform/xiaohongshu/index.ts +2 -0
- package/src/karin/platform/xiaohongshu/xiaohongshu.ts +733 -0
- package/src/karin/root.ts +78 -0
- package/src/karin/setup.ts +77 -0
- package/src/karin/types/config/amagi.ts +46 -0
- package/src/karin/types/config/app.ts +129 -0
- package/src/karin/types/config/bilibili.ts +121 -0
- package/src/karin/types/config/cookies.ts +11 -0
- package/src/karin/types/config/douyin.ts +93 -0
- package/src/karin/types/config/index.ts +41 -0
- package/src/karin/types/config/kuaishou.ts +10 -0
- package/src/karin/types/config/pushlist.ts +55 -0
- package/src/karin/types/config/request.ts +27 -0
- package/src/karin/types/config/upload.ts +49 -0
- package/src/karin/types/config/xiaohongshu.ts +24 -0
- package/src/karin/types/datatypes.ts +42 -0
- package/src/karin/types/index.ts +4 -0
- package/src/karin/types/netrorks/NetworksConfigType.ts +61 -0
- package/src/karin/types/netrorks/index.ts +1 -0
- package/src/karin/web.config.ts +48 -0
- package/src/ktr/registry.ts +55 -0
- package/src/ktr/template/_preview/components/PreviewInfoCard.tsx +33 -0
- package/src/ktr/template/_preview/components/PreviewLayout.tsx +65 -0
- package/src/ktr/template/_preview/components/PreviewVideoCard.tsx +22 -0
- package/src/ktr/template/_preview/render.ts +158 -0
- package/src/ktr/template/_preview/types.ts +15 -0
- package/src/ktr/template/_preview/utils/status.ts +29 -0
- package/src/ktr/template/_preview/utils/time.ts +8 -0
- package/src/ktr/template/bilibili/bangumi/components/bangumi.tsx +462 -0
- package/src/ktr/template/bilibili/bangumi/components/types.ts +36 -0
- package/src/ktr/template/bilibili/bangumi/index.tsx +9 -0
- package/src/ktr/template/bilibili/comment/components/Comment.tsx +657 -0
- package/src/ktr/template/bilibili/comment/components/types.ts +26 -0
- package/src/ktr/template/bilibili/comment/index.tsx +11 -0
- package/src/ktr/template/bilibili/components/Icons.tsx +209 -0
- package/src/ktr/template/bilibili/components/shared.tsx +162 -0
- package/src/ktr/template/bilibili/components/types.ts +388 -0
- package/src/ktr/template/bilibili/dynamic/DYNAMIC_TYPE_ARTICLE/components/DYNAMIC_TYPE_ARTICLE.tsx +251 -0
- package/src/ktr/template/bilibili/dynamic/DYNAMIC_TYPE_ARTICLE/components/types.ts +67 -0
- package/src/ktr/template/bilibili/dynamic/DYNAMIC_TYPE_ARTICLE/index.tsx +12 -0
- package/src/ktr/template/bilibili/dynamic/DYNAMIC_TYPE_AV/components/DYNAMIC_TYPE_AV.tsx +238 -0
- package/src/ktr/template/bilibili/dynamic/DYNAMIC_TYPE_AV/components/types.ts +39 -0
- package/src/ktr/template/bilibili/dynamic/DYNAMIC_TYPE_AV/index.tsx +12 -0
- package/src/ktr/template/bilibili/dynamic/DYNAMIC_TYPE_DRAW/components/DYNAMIC_TYPE_DRAW.tsx +205 -0
- package/src/ktr/template/bilibili/dynamic/DYNAMIC_TYPE_DRAW/components/types.ts +20 -0
- package/src/ktr/template/bilibili/dynamic/DYNAMIC_TYPE_DRAW/index.tsx +11 -0
- package/src/ktr/template/bilibili/dynamic/DYNAMIC_TYPE_FORWARD/components/DYNAMIC_TYPE_FORWARD.tsx +348 -0
- package/src/ktr/template/bilibili/dynamic/DYNAMIC_TYPE_FORWARD/components/types.ts +16 -0
- package/src/ktr/template/bilibili/dynamic/DYNAMIC_TYPE_FORWARD/index.tsx +12 -0
- package/src/ktr/template/bilibili/dynamic/DYNAMIC_TYPE_LIVE_RCMD/components/DYNAMIC_TYPE_LIVE_RCMD.tsx +264 -0
- package/src/ktr/template/bilibili/dynamic/DYNAMIC_TYPE_LIVE_RCMD/components/types.ts +32 -0
- package/src/ktr/template/bilibili/dynamic/DYNAMIC_TYPE_LIVE_RCMD/index.tsx +12 -0
- package/src/ktr/template/bilibili/dynamic/DYNAMIC_TYPE_WORD/components/DYNAMIC_TYPE_WORD.tsx +68 -0
- package/src/ktr/template/bilibili/dynamic/DYNAMIC_TYPE_WORD/components/types.ts +14 -0
- package/src/ktr/template/bilibili/dynamic/DYNAMIC_TYPE_WORD/index.tsx +12 -0
- package/src/ktr/template/bilibili/dynamic/components/AdditionalCard.tsx +165 -0
- package/src/ktr/template/bilibili/dynamic/components/CommonComponents.tsx +142 -0
- package/src/ktr/template/bilibili/dynamic/types.ts +382 -0
- package/src/ktr/template/bilibili/qrcodeImg/components/qrcodeImg.tsx +179 -0
- package/src/ktr/template/bilibili/qrcodeImg/components/types.ts +9 -0
- package/src/ktr/template/bilibili/qrcodeImg/index.tsx +12 -0
- package/src/ktr/template/bilibili/userlist/components/UserList.tsx +246 -0
- package/src/ktr/template/bilibili/userlist/components/types.ts +35 -0
- package/src/ktr/template/bilibili/userlist/index.tsx +11 -0
- package/src/ktr/template/bilibili/videoInfo/components/types.ts +28 -0
- package/src/ktr/template/bilibili/videoInfo/components/videoInfo.tsx +217 -0
- package/src/ktr/template/bilibili/videoInfo/index.tsx +12 -0
- package/src/ktr/template/components/AmbientCover.tsx +50 -0
- package/src/ktr/template/components/DefaultLayout.tsx +166 -0
- package/src/ktr/template/components/GlowImage.tsx +572 -0
- package/src/ktr/template/components/QRCodeWithAvatar.tsx +52 -0
- package/src/ktr/template/components/RolldownLogo.tsx +110 -0
- package/src/ktr/template/components/ViteLogo.tsx +134 -0
- package/src/ktr/template/components/iconRegistry.ts +294 -0
- package/src/ktr/template/douyin/article-work/components/ArticleWork.tsx +301 -0
- package/src/ktr/template/douyin/article-work/components/types.ts +53 -0
- package/src/ktr/template/douyin/article-work/index.tsx +12 -0
- package/src/ktr/template/douyin/comment/components/Comment.tsx +612 -0
- package/src/ktr/template/douyin/comment/components/types.ts +85 -0
- package/src/ktr/template/douyin/comment/index.tsx +11 -0
- package/src/ktr/template/douyin/components/Icons.tsx +75 -0
- package/src/ktr/template/douyin/components/types.ts +83 -0
- package/src/ktr/template/douyin/dynamic/components/Dynamic.tsx +283 -0
- package/src/ktr/template/douyin/dynamic/components/types.ts +46 -0
- package/src/ktr/template/douyin/dynamic/index.tsx +11 -0
- package/src/ktr/template/douyin/favorite-list/components/FavoriteList.tsx +201 -0
- package/src/ktr/template/douyin/favorite-list/components/types.ts +38 -0
- package/src/ktr/template/douyin/favorite-list/index.tsx +12 -0
- package/src/ktr/template/douyin/image-work/components/ImageWork.tsx +437 -0
- package/src/ktr/template/douyin/image-work/components/types.ts +78 -0
- package/src/ktr/template/douyin/image-work/index.tsx +11 -0
- package/src/ktr/template/douyin/live/components/Live.tsx +229 -0
- package/src/ktr/template/douyin/live/components/types.ts +47 -0
- package/src/ktr/template/douyin/live/index.tsx +11 -0
- package/src/ktr/template/douyin/musicinfo/components/MusicInfo.tsx +187 -0
- package/src/ktr/template/douyin/musicinfo/components/types.ts +31 -0
- package/src/ktr/template/douyin/musicinfo/index.tsx +11 -0
- package/src/ktr/template/douyin/qrcodeImg/components/qrcodeImg.tsx +170 -0
- package/src/ktr/template/douyin/qrcodeImg/components/types.ts +9 -0
- package/src/ktr/template/douyin/qrcodeImg/index.tsx +9 -0
- package/src/ktr/template/douyin/recommend-list/components/RecommendList.tsx +201 -0
- package/src/ktr/template/douyin/recommend-list/components/types.ts +37 -0
- package/src/ktr/template/douyin/recommend-list/index.tsx +12 -0
- package/src/ktr/template/douyin/user_profile/components/UserVideoList.tsx +225 -0
- package/src/ktr/template/douyin/user_profile/components/types.ts +71 -0
- package/src/ktr/template/douyin/user_profile/index.tsx +9 -0
- package/src/ktr/template/douyin/userlist/components/UserList.tsx +229 -0
- package/src/ktr/template/douyin/userlist/components/types.ts +35 -0
- package/src/ktr/template/douyin/userlist/index.tsx +11 -0
- package/src/ktr/template/douyin/video-work/components/VideoWork.tsx +398 -0
- package/src/ktr/template/douyin/video-work/components/types.ts +80 -0
- package/src/ktr/template/douyin/video-work/index.tsx +11 -0
- package/src/ktr/template/font.css +6071 -0
- package/src/ktr/template/global.d.ts +69 -0
- package/src/ktr/template/kuaishou/comment/components/Comment.tsx +207 -0
- package/src/ktr/template/kuaishou/comment/components/types.ts +47 -0
- package/src/ktr/template/kuaishou/comment/index.tsx +11 -0
- package/src/ktr/template/other/changelog/components/changelog.tsx +411 -0
- package/src/ktr/template/other/changelog/components/types.ts +21 -0
- package/src/ktr/template/other/changelog/index.tsx +9 -0
- package/src/ktr/template/other/handlerError/components/errorTitles.ts +224 -0
- package/src/ktr/template/other/handlerError/components/handlerError.tsx +1076 -0
- package/src/ktr/template/other/handlerError/components/stackHighlight.ts +127 -0
- package/src/ktr/template/other/handlerError/components/types.ts +124 -0
- package/src/ktr/template/other/handlerError/index.tsx +9 -0
- package/src/ktr/template/other/help/components/Help.tsx +249 -0
- package/src/ktr/template/other/help/components/types.ts +47 -0
- package/src/ktr/template/other/help/index.tsx +9 -0
- package/src/ktr/template/other/live-photo-tip/components/LivePhotoTip.tsx +295 -0
- package/src/ktr/template/other/live-photo-tip/components/types.ts +8 -0
- package/src/ktr/template/other/live-photo-tip/index.tsx +9 -0
- package/src/ktr/template/other/qrlogin/components/qrlogin.tsx +295 -0
- package/src/ktr/template/other/qrlogin/components/types.ts +11 -0
- package/src/ktr/template/other/qrlogin/index.tsx +9 -0
- package/src/ktr/template/other/runtime/components/runtime.tsx +347 -0
- package/src/ktr/template/other/runtime/components/types.ts +75 -0
- package/src/ktr/template/other/runtime/index.tsx +9 -0
- package/src/ktr/template/other/version_warning/components/VersionWarning.tsx +392 -0
- package/src/ktr/template/other/version_warning/components/types.ts +8 -0
- package/src/ktr/template/other/version_warning/index.tsx +9 -0
- package/src/ktr/template/statistics/components/BoxplotGuide.tsx +57 -0
- package/src/ktr/template/statistics/components/ChartCard.tsx +40 -0
- package/src/ktr/template/statistics/components/KpiCard.tsx +39 -0
- package/src/ktr/template/statistics/components/PlatformTable.tsx +83 -0
- package/src/ktr/template/statistics/components/RankList.tsx +127 -0
- package/src/ktr/template/statistics/components/SSRChart.tsx +41 -0
- package/src/ktr/template/statistics/components/chartPresets.ts +700 -0
- package/src/ktr/template/statistics/components/chartTheme.ts +234 -0
- package/src/ktr/template/statistics/components/format.ts +33 -0
- package/src/ktr/template/statistics/components/types.ts +92 -0
- package/src/ktr/template/statistics/global/components/GlobalStatistics.tsx +597 -0
- package/src/ktr/template/statistics/global/components/types.ts +138 -0
- package/src/ktr/template/statistics/global/index.tsx +9 -0
- package/src/ktr/template/statistics/group/components/GroupStatistics.tsx +468 -0
- package/src/ktr/template/statistics/group/components/types.ts +113 -0
- package/src/ktr/template/statistics/group/index.tsx +9 -0
- package/src/ktr/template/style.css +65 -0
- package/src/ktr/template/types/ctx.ts +42 -0
- package/src/ktr/template/xiaohongshu/comment/components/Comment.tsx +264 -0
- package/src/ktr/template/xiaohongshu/comment/components/types.ts +119 -0
- package/src/ktr/template/xiaohongshu/comment/index.tsx +9 -0
- package/src/ktr/template/xiaohongshu/noteInfo/components/noteInfo.tsx +271 -0
- package/src/ktr/template/xiaohongshu/noteInfo/components/types.ts +66 -0
- package/src/ktr/template/xiaohongshu/noteInfo/index.tsx +9 -0
- package/src/ktr/utils/QRCodeAvatar.ts +102 -0
- package/src/ktr/utils/QRcode.ts +65 -0
- package/src/ktr/utils/avatarProxy.ts +42 -0
- package/src/ktr/utils/cn.ts +6 -0
- package/src/ktr/utils/theme.ts +10 -0
- package/src/qqFields.json +75 -0
- package/src/qqOptions.ts +64 -0
- package/src/richtext/index.ts +9 -0
- package/src/richtext/parse/index.ts +271 -0
- package/src/richtext/react/cn.ts +6 -0
- package/src/richtext/react/index.tsx +582 -0
- package/src/richtext/types.ts +320 -0
- package/src/schema.ts +372 -0
- package/src/webui.ts +352 -0
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
|
|
3
|
+
interface RolldownLogoProps {
|
|
4
|
+
className?: string
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export const RolldownLogo: React.FC<RolldownLogoProps> = ({ className = 'w-auto h-10' }) => (
|
|
8
|
+
<svg viewBox="0 0 177 15" fill="none" xmlns="http://www.w3.org/2000/svg" className={className}>
|
|
9
|
+
<path
|
|
10
|
+
d="M27.21 0C33.32 0 36.53 2.57 36.53 7.5C36.53 12.43 33.32 15 27.21 15C21.1 15 17.91 12.43 17.91 7.5C17.91 2.57 21.1 0 27.21 0ZM97.57 0C103.68 0 106.89 2.57 106.89 7.5C106.89 12.43 103.68 15 97.57 15C91.46 15 88.27 12.43 88.27 7.5C88.27 2.57 91.46 0 97.57 0ZM11.33 0.25C14.65 0.25 16.53 1.97 16.53 4.99C16.53 6.73 15.7 8.02 14.42 8.76L16.6 14.75H11.31L9.8 10.05H4.97V14.75H0V0.25H11.33ZM43.41 11.13H52.09V14.75H38.44V0.25H43.41V11.13ZM58.92 11.13H67.6V14.75H53.95V0.25H58.92V11.13ZM78.71 0.25C83.75 0.25 86.63 2.53 86.63 7.5C86.63 12.47 83.73 14.75 78.69 14.75H69.6V0.25H78.71ZM114.34 10.21L116.46 2.84H122.03L124.27 10.5L126.03 0.25H130.88L127.89 14.75H121.61L119.21 6.55L116.87 14.75H110.57L107.59 0.25H112.52L114.34 10.21ZM138.78 0.25L144.76 9.68H144.81V0.25H149.53V14.75H143.56L137.53 5.28H137.47V14.75H132.77V0.25H138.78ZM27.21 3.56C24.33 3.56 22.98 4.81 22.98 7.5C22.98 10.19 24.33 11.42 27.21 11.42C30.09 11.42 31.44 10.21 31.44 7.5C31.44 4.79 30.09 3.56 27.21 3.56ZM97.57 3.56C94.69 3.56 93.34 4.81 93.34 7.5C93.34 10.19 94.69 11.42 97.57 11.42C100.45 11.42 101.8 10.21 101.8 7.5C101.8 4.79 100.45 3.56 97.57 3.56ZM74.57 11.23H78.01C80.37 11.23 81.53 10.21 81.53 7.5C81.53 4.79 80.37 3.77 78.01 3.77H74.57V11.23ZM4.97 6.63H9.92C10.94 6.63 11.44 6.09 11.44 5.14C11.44 4.18 10.94 3.67 9.92 3.67H4.97V6.63Z"
|
|
11
|
+
fill="currentColor"
|
|
12
|
+
/>
|
|
13
|
+
<path
|
|
14
|
+
d="M170.23 0.25C170.54 0.25 170.71 0.61 170.51 0.84L167.16 4.86C166.77 5.33 167.11 6.05 167.72 6.05H170.96C171.27 6.05 171.43 6.41 171.24 6.64L164.76 14.42C164.61 14.59 164.35 14.59 164.2 14.42L157.72 6.64C157.53 6.41 157.69 6.05 158 6.05H161.24C161.85 6.05 162.19 5.33 161.8 4.86L158.45 0.84C158.25 0.61 158.42 0.25 158.73 0.25H170.23Z"
|
|
15
|
+
fill="#FF5500"
|
|
16
|
+
/>
|
|
17
|
+
<mask id="mask0_rd" style={{ maskType: 'alpha' }} maskUnits="userSpaceOnUse" x="157" y="0" width="15" height="15">
|
|
18
|
+
<path
|
|
19
|
+
d="M170.23 0.25C170.54 0.25 170.71 0.61 170.51 0.84L167.16 4.86C166.77 5.33 167.11 6.05 167.72 6.05H170.96C171.27 6.05 171.43 6.41 171.24 6.64L164.76 14.42C164.61 14.59 164.35 14.59 164.2 14.42L157.72 6.64C157.53 6.41 157.69 6.05 158 6.05H161.24C161.85 6.05 162.19 5.33 161.8 4.86L158.45 0.84C158.25 0.61 158.42 0.25 158.73 0.25H170.23Z"
|
|
20
|
+
fill="black"
|
|
21
|
+
/>
|
|
22
|
+
</mask>
|
|
23
|
+
<g mask="url(#mask0_rd)">
|
|
24
|
+
<g filter="url(#f0_rd)">
|
|
25
|
+
<ellipse cx="1.73" cy="7.56" rx="1.73" ry="7.56" transform="matrix(-0.864 -0.504 -0.504 0.864 176.76 -5.36)" fill="#FFE7E5" />
|
|
26
|
+
</g>
|
|
27
|
+
<g filter="url(#f1_rd)">
|
|
28
|
+
<ellipse cx="1.73" cy="7.56" rx="1.73" ry="7.56" transform="matrix(-0.864 -0.504 -0.504 0.864 176.39 2.01)" fill="#FFE7E5" />
|
|
29
|
+
</g>
|
|
30
|
+
<g filter="url(#f2_rd)">
|
|
31
|
+
<ellipse cx="157.85" cy="0.46" rx="1.19" ry="7" transform="rotate(-36.09 157.85 0.46)" fill="#FF19AF" />
|
|
32
|
+
</g>
|
|
33
|
+
<g filter="url(#f3_rd)">
|
|
34
|
+
<ellipse cx="159.7" cy="10.93" rx="1.19" ry="7" transform="rotate(-36.09 159.7 10.93)" fill="#FF19AF" />
|
|
35
|
+
</g>
|
|
36
|
+
<g filter="url(#f4_rd)">
|
|
37
|
+
<ellipse cx="1.19" cy="7" rx="1.19" ry="7" transform="matrix(-0.808 -0.589 -0.589 0.808 176.2 -4.49)" fill="#FF19AF" />
|
|
38
|
+
</g>
|
|
39
|
+
<g filter="url(#f5_rd)">
|
|
40
|
+
<ellipse cx="1.19" cy="7" rx="1.19" ry="7" transform="matrix(-0.808 -0.589 -0.589 0.808 173.99 5.98)" fill="#FF19AF" />
|
|
41
|
+
</g>
|
|
42
|
+
<g filter="url(#f6_rd)">
|
|
43
|
+
<ellipse cx="1.19" cy="7" rx="1.19" ry="7" transform="matrix(-0.808 -0.589 -0.589 0.808 175.1 -4.49)" fill="#FF19AF" />
|
|
44
|
+
</g>
|
|
45
|
+
<g filter="url(#f7_rd)">
|
|
46
|
+
<ellipse cx="1.19" cy="7" rx="1.19" ry="7" transform="matrix(-0.808 -0.589 -0.589 0.808 173.25 5.98)" fill="#FF19AF" />
|
|
47
|
+
</g>
|
|
48
|
+
<g filter="url(#f8_rd)">
|
|
49
|
+
<ellipse cx="158.53" cy="0.97" rx="1.73" ry="7.56" transform="rotate(-40.91 158.53 0.97)" fill="#D14B2A" />
|
|
50
|
+
</g>
|
|
51
|
+
<g filter="url(#f9_rd)">
|
|
52
|
+
<ellipse cx="159.71" cy="9.14" rx="1.73" ry="7.56" transform="rotate(-35.89 159.71 9.14)" fill="#D14B2A" />
|
|
53
|
+
</g>
|
|
54
|
+
</g>
|
|
55
|
+
<path d="M154.47 0C151.53 4.22 151.51 10.76 154.47 15H156.47C153.5 10.76 153.52 4.22 156.47 0H154.47Z" fill="currentColor" />
|
|
56
|
+
<path d="M174.49 0H172.49C175.44 4.22 175.46 10.76 172.49 15H174.49C177.45 10.76 177.43 4.22 174.49 0Z" fill="currentColor" />
|
|
57
|
+
<defs>
|
|
58
|
+
<filter id="f0_rd" x="165.15" y="-8.5" width="12.61" height="17.6" filterUnits="userSpaceOnUse" colorInterpolationFilters="sRGB">
|
|
59
|
+
<feFlood floodOpacity="0" result="bg" />
|
|
60
|
+
<feBlend in="SourceGraphic" in2="bg" result="shape" />
|
|
61
|
+
<feGaussianBlur stdDeviation="1.1" result="blur" />
|
|
62
|
+
</filter>
|
|
63
|
+
<filter id="f1_rd" x="164.78" y="-1.13" width="12.61" height="17.6" filterUnits="userSpaceOnUse" colorInterpolationFilters="sRGB">
|
|
64
|
+
<feFlood floodOpacity="0" result="bg" />
|
|
65
|
+
<feBlend in="SourceGraphic" in2="bg" result="shape" />
|
|
66
|
+
<feGaussianBlur stdDeviation="1.1" result="blur" />
|
|
67
|
+
</filter>
|
|
68
|
+
<filter id="f2_rd" x="151.41" y="-7.45" width="12.89" height="15.82" filterUnits="userSpaceOnUse" colorInterpolationFilters="sRGB">
|
|
69
|
+
<feFlood floodOpacity="0" result="bg" />
|
|
70
|
+
<feBlend in="SourceGraphic" in2="bg" result="shape" />
|
|
71
|
+
<feGaussianBlur stdDeviation="1.1" result="blur" />
|
|
72
|
+
</filter>
|
|
73
|
+
<filter id="f3_rd" x="153.25" y="3.02" width="12.89" height="15.82" filterUnits="userSpaceOnUse" colorInterpolationFilters="sRGB">
|
|
74
|
+
<feFlood floodOpacity="0" result="bg" />
|
|
75
|
+
<feBlend in="SourceGraphic" in2="bg" result="shape" />
|
|
76
|
+
<feGaussianBlur stdDeviation="1.1" result="blur" />
|
|
77
|
+
</filter>
|
|
78
|
+
<filter id="f4_rd" x="164.67" y="-7.45" width="12.89" height="15.82" filterUnits="userSpaceOnUse" colorInterpolationFilters="sRGB">
|
|
79
|
+
<feFlood floodOpacity="0" result="bg" />
|
|
80
|
+
<feBlend in="SourceGraphic" in2="bg" result="shape" />
|
|
81
|
+
<feGaussianBlur stdDeviation="1.1" result="blur" />
|
|
82
|
+
</filter>
|
|
83
|
+
<filter id="f5_rd" x="162.46" y="3.02" width="12.89" height="15.82" filterUnits="userSpaceOnUse" colorInterpolationFilters="sRGB">
|
|
84
|
+
<feFlood floodOpacity="0" result="bg" />
|
|
85
|
+
<feBlend in="SourceGraphic" in2="bg" result="shape" />
|
|
86
|
+
<feGaussianBlur stdDeviation="1.1" result="blur" />
|
|
87
|
+
</filter>
|
|
88
|
+
<filter id="f6_rd" x="163.56" y="-7.45" width="12.89" height="15.82" filterUnits="userSpaceOnUse" colorInterpolationFilters="sRGB">
|
|
89
|
+
<feFlood floodOpacity="0" result="bg" />
|
|
90
|
+
<feBlend in="SourceGraphic" in2="bg" result="shape" />
|
|
91
|
+
<feGaussianBlur stdDeviation="1.1" result="blur" />
|
|
92
|
+
</filter>
|
|
93
|
+
<filter id="f7_rd" x="161.72" y="3.02" width="12.89" height="15.82" filterUnits="userSpaceOnUse" colorInterpolationFilters="sRGB">
|
|
94
|
+
<feFlood floodOpacity="0" result="bg" />
|
|
95
|
+
<feBlend in="SourceGraphic" in2="bg" result="shape" />
|
|
96
|
+
<feGaussianBlur stdDeviation="1.1" result="blur" />
|
|
97
|
+
</filter>
|
|
98
|
+
<filter id="f8_rd" x="151.2" y="-7.07" width="14.66" height="16.07" filterUnits="userSpaceOnUse" colorInterpolationFilters="sRGB">
|
|
99
|
+
<feFlood floodOpacity="0" result="bg" />
|
|
100
|
+
<feBlend in="SourceGraphic" in2="bg" result="shape" />
|
|
101
|
+
<feGaussianBlur stdDeviation="1.1" result="blur" />
|
|
102
|
+
</filter>
|
|
103
|
+
<filter id="f9_rd" x="152.85" y="0.72" width="13.72" height="16.84" filterUnits="userSpaceOnUse" colorInterpolationFilters="sRGB">
|
|
104
|
+
<feFlood floodOpacity="0" result="bg" />
|
|
105
|
+
<feBlend in="SourceGraphic" in2="bg" result="shape" />
|
|
106
|
+
<feGaussianBlur stdDeviation="1.1" result="blur" />
|
|
107
|
+
</filter>
|
|
108
|
+
</defs>
|
|
109
|
+
</svg>
|
|
110
|
+
)
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
|
|
3
|
+
interface ViteLogoProps {
|
|
4
|
+
className?: string
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export const ViteLogo: React.FC<ViteLogoProps> = ({ className = 'w-auto h-12' }) => (
|
|
8
|
+
<svg viewBox="0 0 87 15" fill="none" xmlns="http://www.w3.org/2000/svg" className={className}>
|
|
9
|
+
<path
|
|
10
|
+
d="M74.9427 14.6539C74.73 14.9246 74.295 14.7741 74.295 14.4301V11.127C74.295 10.7264 73.9704 10.4019 73.5698 10.4019H69.9228C69.6279 10.4019 69.4559 10.0683 69.6279 9.82865L72.0256 6.47163C72.3689 5.99166 72.0256 5.32454 71.4352 5.32454H67.0215C66.7266 5.32454 66.5547 4.99098 66.7266 4.75134L69.835 0.399156C69.9034 0.303852 70.0132 0.247223 70.1299 0.247223H79.393C79.6879 0.247223 79.8598 0.580784 79.6879 0.820424L77.2901 4.17745C76.9469 4.65742 77.2901 5.32454 77.8806 5.32454H81.5277C81.8301 5.32454 82 5.67329 81.8129 5.91155L74.9434 14.6546L74.9427 14.6539Z"
|
|
11
|
+
fill="#863BFF"
|
|
12
|
+
/>
|
|
13
|
+
<mask id="mask0_vite" style={{ maskType: 'alpha' }} maskUnits="userSpaceOnUse" x="66" y="0" width="16" height="15">
|
|
14
|
+
<path
|
|
15
|
+
d="M74.9095 14.6538C74.6968 14.9246 74.2618 14.774 74.2618 14.4301V11.1269C74.2618 10.7264 73.9372 10.4018 73.5366 10.4018H69.8896C69.5947 10.4018 69.4227 10.0682 69.5947 9.82859L71.9924 6.47157C72.3357 5.9916 71.9924 5.32448 71.402 5.32448H66.9883C66.6934 5.32448 66.5215 4.99092 66.6934 4.75128L69.8018 0.399095C69.8702 0.303791 69.98 0.247162 70.0967 0.247162H79.3598C79.6547 0.247162 79.8266 0.580723 79.6547 0.820363L77.2569 4.17739C76.9137 4.65735 77.2569 5.32448 77.8474 5.32448H81.4945C81.7969 5.32448 81.9668 5.67323 81.7797 5.91149L74.9102 14.6545L74.9095 14.6538Z"
|
|
16
|
+
fill="black"
|
|
17
|
+
/>
|
|
18
|
+
</mask>
|
|
19
|
+
<g mask="url(#mask0_vite)">
|
|
20
|
+
<g filter="url(#f0_vite)">
|
|
21
|
+
<ellipse cx="1.766" cy="4.714" rx="1.766" ry="4.714" transform="matrix(0.003 1 1 -0.003 65.19 10.35)" fill="#EDE6FF" />
|
|
22
|
+
</g>
|
|
23
|
+
<g filter="url(#f1_vite)">
|
|
24
|
+
<ellipse cx="3.334" cy="9.57" rx="3.334" ry="9.57" transform="matrix(0.003 1 1 -0.003 54.02 2.77)" fill="#EDE6FF" />
|
|
25
|
+
</g>
|
|
26
|
+
<g filter="url(#f2_vite)">
|
|
27
|
+
<ellipse cx="1.766" cy="9.774" rx="1.766" ry="9.774" transform="matrix(0.003 1 1 -0.003 53.65 3.88)" fill="#7E14FF" />
|
|
28
|
+
</g>
|
|
29
|
+
<g filter="url(#f3_vite)">
|
|
30
|
+
<ellipse cx="1.766" cy="9.81" rx="1.766" ry="9.81" transform="matrix(0.003 1 1 -0.003 55.13 9.65)" fill="#7E14FF" />
|
|
31
|
+
</g>
|
|
32
|
+
<g filter="url(#f4_vite)">
|
|
33
|
+
<ellipse cx="1.766" cy="9.81" rx="1.766" ry="9.81" transform="matrix(0.003 1 1 -0.003 55.62 10.02)" fill="#7E14FF" />
|
|
34
|
+
</g>
|
|
35
|
+
<g filter="url(#f5_vite)">
|
|
36
|
+
<ellipse cx="4.511" cy="7.078" rx="4.511" ry="7.078" transform="matrix(0.058 -0.998 -0.998 -0.058 90.46 8.86)" fill="#EDE6FF" />
|
|
37
|
+
</g>
|
|
38
|
+
<g filter="url(#f6_vite)">
|
|
39
|
+
<ellipse cx="1.113" cy="6.893" rx="1.113" ry="6.893" transform="matrix(-0.017 -1 -1 0.017 90.92 6.04)" fill="#7E14FF" />
|
|
40
|
+
</g>
|
|
41
|
+
<g filter="url(#f7_vite)">
|
|
42
|
+
<ellipse cx="66.749" cy="3.123" rx="1.413" ry="9.332" transform="rotate(39.51 66.749 3.123)" fill="#7E14FF" />
|
|
43
|
+
</g>
|
|
44
|
+
<g filter="url(#f8_vite)">
|
|
45
|
+
<ellipse cx="81.86" cy="-1.706" rx="1.413" ry="9.332" transform="rotate(37.89 81.86 -1.706)" fill="#7E14FF" />
|
|
46
|
+
</g>
|
|
47
|
+
<g filter="url(#f9_vite)">
|
|
48
|
+
<ellipse cx="79.902" cy="2.278" rx="1.914" ry="3.099" transform="rotate(37.89 79.902 2.278)" fill="#47BFFF" />
|
|
49
|
+
</g>
|
|
50
|
+
<g filter="url(#f10_vite)">
|
|
51
|
+
<ellipse cx="66.022" cy="12.536" rx="1.413" ry="9.332" transform="rotate(37.89 66.022 12.536)" fill="#7E14FF" />
|
|
52
|
+
</g>
|
|
53
|
+
<g filter="url(#f11_vite)">
|
|
54
|
+
<ellipse cx="78.055" cy="9.835" rx="1.413" ry="9.332" transform="rotate(37.89 78.055 9.835)" fill="#7E14FF" />
|
|
55
|
+
</g>
|
|
56
|
+
<g filter="url(#f12_vite)">
|
|
57
|
+
<ellipse cx="78.941" cy="10.634" rx="1.914" ry="4.904" transform="rotate(37.89 78.941 10.634)" fill="#47BFFF" />
|
|
58
|
+
</g>
|
|
59
|
+
</g>
|
|
60
|
+
<path d="M64.29 0C61.34 4.22 61.32 10.76 64.29 15H66.28C63.32 10.76 63.33 4.22 66.28 0H64.29Z" fill="currentColor" />
|
|
61
|
+
<path d="M84.3 0H82.31C85.26 4.22 85.28 10.76 82.31 15H84.3C87.27 10.76 87.25 4.22 84.3 0Z" fill="currentColor" />
|
|
62
|
+
<path
|
|
63
|
+
d="M9.14 10.69L12.91 0.25H18.07L12.35 14.75H5.72L0 0.25H5.3L9.14 10.69ZM24.76 14.75H19.79V0.25H24.76V14.75ZM42.82 3.81H37.24V14.75H32.27V3.81H26.7V0.25H42.82V3.81ZM59.07 3.77H49.73V5.72H58.93V9.14H49.73V11.23H59.34V14.75H44.76V0.25H59.07V3.77Z"
|
|
64
|
+
fill="currentColor"
|
|
65
|
+
/>
|
|
66
|
+
<defs>
|
|
67
|
+
<filter id="f0_vite" x="60.29" y="5.42" width="19.25" height="13.35" filterUnits="userSpaceOnUse" colorInterpolationFilters="sRGB">
|
|
68
|
+
<feFlood floodOpacity="0" result="bg" />
|
|
69
|
+
<feBlend in="SourceGraphic" in2="bg" result="shape" />
|
|
70
|
+
<feGaussianBlur stdDeviation="2.46" result="blur" />
|
|
71
|
+
</filter>
|
|
72
|
+
<filter id="f1_vite" x="49.12" y="-2.17" width="28.96" height="16.49" filterUnits="userSpaceOnUse" colorInterpolationFilters="sRGB">
|
|
73
|
+
<feFlood floodOpacity="0" result="bg" />
|
|
74
|
+
<feBlend in="SourceGraphic" in2="bg" result="shape" />
|
|
75
|
+
<feGaussianBlur stdDeviation="2.46" result="blur" />
|
|
76
|
+
</filter>
|
|
77
|
+
<filter id="f2_vite" x="50.71" y="0.9" width="25.44" height="9.43" filterUnits="userSpaceOnUse" colorInterpolationFilters="sRGB">
|
|
78
|
+
<feFlood floodOpacity="0" result="bg" />
|
|
79
|
+
<feBlend in="SourceGraphic" in2="bg" result="shape" />
|
|
80
|
+
<feGaussianBlur stdDeviation="1.47" result="blur" />
|
|
81
|
+
</filter>
|
|
82
|
+
<filter id="f3_vite" x="52.18" y="6.67" width="25.51" height="9.43" filterUnits="userSpaceOnUse" colorInterpolationFilters="sRGB">
|
|
83
|
+
<feFlood floodOpacity="0" result="bg" />
|
|
84
|
+
<feBlend in="SourceGraphic" in2="bg" result="shape" />
|
|
85
|
+
<feGaussianBlur stdDeviation="1.47" result="blur" />
|
|
86
|
+
</filter>
|
|
87
|
+
<filter id="f4_vite" x="52.68" y="7.04" width="25.51" height="9.43" filterUnits="userSpaceOnUse" colorInterpolationFilters="sRGB">
|
|
88
|
+
<feFlood floodOpacity="0" result="bg" />
|
|
89
|
+
<feBlend in="SourceGraphic" in2="bg" result="shape" />
|
|
90
|
+
<feGaussianBlur stdDeviation="1.47" result="blur" />
|
|
91
|
+
</filter>
|
|
92
|
+
<filter id="f5_vite" x="71.68" y="-5.49" width="23.96" height="18.87" filterUnits="userSpaceOnUse" colorInterpolationFilters="sRGB">
|
|
93
|
+
<feFlood floodOpacity="0" result="bg" />
|
|
94
|
+
<feBlend in="SourceGraphic" in2="bg" result="shape" />
|
|
95
|
+
<feGaussianBlur stdDeviation="2.46" result="blur" />
|
|
96
|
+
</filter>
|
|
97
|
+
<filter id="f6_vite" x="74.17" y="0.98" width="19.68" height="8.13" filterUnits="userSpaceOnUse" colorInterpolationFilters="sRGB">
|
|
98
|
+
<feFlood floodOpacity="0" result="bg" />
|
|
99
|
+
<feBlend in="SourceGraphic" in2="bg" result="shape" />
|
|
100
|
+
<feGaussianBlur stdDeviation="1.47" result="blur" />
|
|
101
|
+
</filter>
|
|
102
|
+
<filter id="f7_vite" x="57.77" y="-7.08" width="17.97" height="20.41" filterUnits="userSpaceOnUse" colorInterpolationFilters="sRGB">
|
|
103
|
+
<feFlood floodOpacity="0" result="bg" />
|
|
104
|
+
<feBlend in="SourceGraphic" in2="bg" result="shape" />
|
|
105
|
+
<feGaussianBlur stdDeviation="1.47" result="blur" />
|
|
106
|
+
</filter>
|
|
107
|
+
<filter id="f8_vite" x="73.07" y="-12.07" width="17.57" height="20.72" filterUnits="userSpaceOnUse" colorInterpolationFilters="sRGB">
|
|
108
|
+
<feFlood floodOpacity="0" result="bg" />
|
|
109
|
+
<feBlend in="SourceGraphic" in2="bg" result="shape" />
|
|
110
|
+
<feGaussianBlur stdDeviation="1.47" result="blur" />
|
|
111
|
+
</filter>
|
|
112
|
+
<filter id="f9_vite" x="74.53" y="-3.38" width="10.75" height="11.32" filterUnits="userSpaceOnUse" colorInterpolationFilters="sRGB">
|
|
113
|
+
<feFlood floodOpacity="0" result="bg" />
|
|
114
|
+
<feBlend in="SourceGraphic" in2="bg" result="shape" />
|
|
115
|
+
<feGaussianBlur stdDeviation="1.47" result="blur" />
|
|
116
|
+
</filter>
|
|
117
|
+
<filter id="f10_vite" x="57.24" y="2.17" width="17.57" height="20.72" filterUnits="userSpaceOnUse" colorInterpolationFilters="sRGB">
|
|
118
|
+
<feFlood floodOpacity="0" result="bg" />
|
|
119
|
+
<feBlend in="SourceGraphic" in2="bg" result="shape" />
|
|
120
|
+
<feGaussianBlur stdDeviation="1.47" result="blur" />
|
|
121
|
+
</filter>
|
|
122
|
+
<filter id="f11_vite" x="69.27" y="-0.53" width="17.57" height="20.72" filterUnits="userSpaceOnUse" colorInterpolationFilters="sRGB">
|
|
123
|
+
<feFlood floodOpacity="0" result="bg" />
|
|
124
|
+
<feBlend in="SourceGraphic" in2="bg" result="shape" />
|
|
125
|
+
<feGaussianBlur stdDeviation="1.47" result="blur" />
|
|
126
|
+
</filter>
|
|
127
|
+
<filter id="f12_vite" x="72.62" y="3.64" width="12.63" height="13.99" filterUnits="userSpaceOnUse" colorInterpolationFilters="sRGB">
|
|
128
|
+
<feFlood floodOpacity="0" result="bg" />
|
|
129
|
+
<feBlend in="SourceGraphic" in2="bg" result="shape" />
|
|
130
|
+
<feGaussianBlur stdDeviation="1.47" result="blur" />
|
|
131
|
+
</filter>
|
|
132
|
+
</defs>
|
|
133
|
+
</svg>
|
|
134
|
+
)
|
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SiAnthropic,
|
|
3
|
+
SiBilibili,
|
|
4
|
+
SiGithub,
|
|
5
|
+
SiGooglephotos,
|
|
6
|
+
SiHonor,
|
|
7
|
+
SiHuawei,
|
|
8
|
+
SiOppo,
|
|
9
|
+
SiSamsung,
|
|
10
|
+
SiVivo,
|
|
11
|
+
SiXiaomi
|
|
12
|
+
} from '@icons-pack/react-simple-icons'
|
|
13
|
+
import { Play as PhPlay, Question } from '@phosphor-icons/react'
|
|
14
|
+
import {
|
|
15
|
+
AlertCircle,
|
|
16
|
+
AlertTriangle,
|
|
17
|
+
BarChart3,
|
|
18
|
+
BellRing,
|
|
19
|
+
Bookmark,
|
|
20
|
+
Bot,
|
|
21
|
+
Box,
|
|
22
|
+
Calendar,
|
|
23
|
+
Camera,
|
|
24
|
+
Check,
|
|
25
|
+
CheckCircle,
|
|
26
|
+
CheckCircle2,
|
|
27
|
+
CircleEllipsis,
|
|
28
|
+
CircleFadingArrowUp,
|
|
29
|
+
Clock,
|
|
30
|
+
Code,
|
|
31
|
+
Copy,
|
|
32
|
+
CornerDownLeft,
|
|
33
|
+
Cpu,
|
|
34
|
+
Crown,
|
|
35
|
+
Download,
|
|
36
|
+
Edit,
|
|
37
|
+
ExternalLink,
|
|
38
|
+
Eye,
|
|
39
|
+
EyeOff,
|
|
40
|
+
FileText,
|
|
41
|
+
FileVideo,
|
|
42
|
+
Gamepad2,
|
|
43
|
+
Gift,
|
|
44
|
+
GitBranch,
|
|
45
|
+
Hash,
|
|
46
|
+
Heart,
|
|
47
|
+
HelpCircle,
|
|
48
|
+
Image,
|
|
49
|
+
Info,
|
|
50
|
+
LayoutTemplate,
|
|
51
|
+
Loader2,
|
|
52
|
+
MapPin,
|
|
53
|
+
Maximize,
|
|
54
|
+
Menu,
|
|
55
|
+
MessageCircle,
|
|
56
|
+
Monitor,
|
|
57
|
+
Moon,
|
|
58
|
+
Music,
|
|
59
|
+
Palette,
|
|
60
|
+
Pencil,
|
|
61
|
+
Play,
|
|
62
|
+
Plus,
|
|
63
|
+
Puzzle,
|
|
64
|
+
QrCode,
|
|
65
|
+
Quote,
|
|
66
|
+
Radio,
|
|
67
|
+
RefreshCw,
|
|
68
|
+
RotateCcw,
|
|
69
|
+
Save,
|
|
70
|
+
ScanLine,
|
|
71
|
+
Search,
|
|
72
|
+
Settings2,
|
|
73
|
+
Share2,
|
|
74
|
+
Shield,
|
|
75
|
+
ShieldCheck,
|
|
76
|
+
ShoppingBag,
|
|
77
|
+
Smartphone,
|
|
78
|
+
Sparkles,
|
|
79
|
+
Square,
|
|
80
|
+
Star,
|
|
81
|
+
Sun,
|
|
82
|
+
Terminal,
|
|
83
|
+
Trash2,
|
|
84
|
+
Upload,
|
|
85
|
+
User,
|
|
86
|
+
UserPlus,
|
|
87
|
+
Users,
|
|
88
|
+
UsersRound,
|
|
89
|
+
Video,
|
|
90
|
+
WandSparkles,
|
|
91
|
+
X,
|
|
92
|
+
Zap
|
|
93
|
+
} from 'lucide-react'
|
|
94
|
+
import type { ComponentType } from 'react'
|
|
95
|
+
import { AiFillHeart, AiFillPushpin, AiFillStar, AiOutlineVideoCamera } from 'react-icons/ai'
|
|
96
|
+
import { BiImage } from 'react-icons/bi'
|
|
97
|
+
import { FaCommentDots, FaMusic, FaTiktok, FaUserGroup } from 'react-icons/fa6'
|
|
98
|
+
import { MdFitScreen, MdInfoOutline, MdLightbulbOutline, MdLocationOn, MdSchedule } from 'react-icons/md'
|
|
99
|
+
import {
|
|
100
|
+
RiArrowRightFill,
|
|
101
|
+
RiGroupLine,
|
|
102
|
+
RiHashtag,
|
|
103
|
+
RiHeart3Fill,
|
|
104
|
+
RiHeart3Line,
|
|
105
|
+
RiHeartLine,
|
|
106
|
+
RiLiveLine,
|
|
107
|
+
RiMessage3Fill,
|
|
108
|
+
RiPieChart2Fill,
|
|
109
|
+
RiShareForwardFill,
|
|
110
|
+
RiStarFill,
|
|
111
|
+
RiStarLine,
|
|
112
|
+
RiThumbUpFill,
|
|
113
|
+
RiTiktokFill,
|
|
114
|
+
RiTrophyFill,
|
|
115
|
+
RiUserFollowLine,
|
|
116
|
+
RiVerifiedBadgeFill,
|
|
117
|
+
RiVideoLine
|
|
118
|
+
} from 'react-icons/ri'
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Maps old iconify icon name strings to their replacement React components.
|
|
122
|
+
* Used by Help.tsx for dynamic icon resolution from plugin config data.
|
|
123
|
+
*/
|
|
124
|
+
export const iconRegistry: Record<string, ComponentType<any>> = {
|
|
125
|
+
// === lucide (62 icons) ===
|
|
126
|
+
'lucide:alert-circle': AlertCircle,
|
|
127
|
+
'lucide:alert-triangle': AlertTriangle,
|
|
128
|
+
'lucide:bookmark': Bookmark,
|
|
129
|
+
'lucide:bot': Bot,
|
|
130
|
+
'lucide:box': Box,
|
|
131
|
+
'lucide:calendar': Calendar,
|
|
132
|
+
'lucide:camera': Camera,
|
|
133
|
+
'lucide:check': Check,
|
|
134
|
+
'lucide:check-circle': CheckCircle,
|
|
135
|
+
'lucide:check-circle-2': CheckCircle2,
|
|
136
|
+
'lucide:circle-ellipsis': CircleEllipsis,
|
|
137
|
+
'lucide:circle-fading-arrow-up': CircleFadingArrowUp,
|
|
138
|
+
'lucide:clock': Clock,
|
|
139
|
+
'lucide:code': Code,
|
|
140
|
+
'lucide:copy': Copy,
|
|
141
|
+
'lucide:corner-down-left': CornerDownLeft,
|
|
142
|
+
'lucide:cpu': Cpu,
|
|
143
|
+
'lucide:crown': Crown,
|
|
144
|
+
'lucide:download': Download,
|
|
145
|
+
'lucide:edit': Edit,
|
|
146
|
+
'lucide:external-link': ExternalLink,
|
|
147
|
+
'lucide:eye': Eye,
|
|
148
|
+
'lucide:eye-off': EyeOff,
|
|
149
|
+
'lucide:file-text': FileText,
|
|
150
|
+
'lucide:file-video': FileVideo,
|
|
151
|
+
'lucide:git-branch': GitBranch,
|
|
152
|
+
'lucide:hash': Hash,
|
|
153
|
+
'lucide:heart': Heart,
|
|
154
|
+
'lucide:info': Info,
|
|
155
|
+
'lucide:layout-template': LayoutTemplate,
|
|
156
|
+
'lucide:loader-2': Loader2,
|
|
157
|
+
'lucide:map-pin': MapPin,
|
|
158
|
+
'lucide:maximize': Maximize,
|
|
159
|
+
'lucide:message-circle': MessageCircle,
|
|
160
|
+
'lucide:monitor': Monitor,
|
|
161
|
+
'lucide:moon': Moon,
|
|
162
|
+
'lucide:music': Music,
|
|
163
|
+
'lucide:palette': Palette,
|
|
164
|
+
'lucide:pencil': Pencil,
|
|
165
|
+
'lucide:play': Play,
|
|
166
|
+
'lucide:plus': Plus,
|
|
167
|
+
'lucide:puzzle': Puzzle,
|
|
168
|
+
'lucide:qr-code': QrCode,
|
|
169
|
+
'lucide:quote': Quote,
|
|
170
|
+
'lucide:refresh-cw': RefreshCw,
|
|
171
|
+
'lucide:rotate-ccw': RotateCcw,
|
|
172
|
+
'lucide:save': Save,
|
|
173
|
+
'lucide:scan-line': ScanLine,
|
|
174
|
+
'lucide:search': Search,
|
|
175
|
+
'lucide:settings-2': Settings2,
|
|
176
|
+
'lucide:share-2': Share2,
|
|
177
|
+
'lucide:shield': Shield,
|
|
178
|
+
'lucide:shield-check': ShieldCheck,
|
|
179
|
+
'lucide:shopping-bag': ShoppingBag,
|
|
180
|
+
'lucide:smartphone': Smartphone,
|
|
181
|
+
'lucide:sparkles': Sparkles,
|
|
182
|
+
'lucide:square': Square,
|
|
183
|
+
'lucide:star': Star,
|
|
184
|
+
'lucide:sun': Sun,
|
|
185
|
+
'lucide:terminal': Terminal,
|
|
186
|
+
'lucide:trash-2': Trash2,
|
|
187
|
+
'lucide:upload': Upload,
|
|
188
|
+
'lucide:user': User,
|
|
189
|
+
'lucide:user-plus': UserPlus,
|
|
190
|
+
'lucide:users': Users,
|
|
191
|
+
'lucide:wand-2': WandSparkles,
|
|
192
|
+
'lucide:x': X,
|
|
193
|
+
'lucide:zap': Zap,
|
|
194
|
+
|
|
195
|
+
// === mingcute (21 icons) mapped to lucide-react ===
|
|
196
|
+
'mingcute:article-line': FileText,
|
|
197
|
+
'mingcute:bell-ringing-fill': BellRing,
|
|
198
|
+
'mingcute:bookmark-fill': Bookmark,
|
|
199
|
+
'mingcute:chart-bar-fill': BarChart3,
|
|
200
|
+
'mingcute:comment-2-fill': MessageCircle,
|
|
201
|
+
'mingcute:eye-fill': Eye,
|
|
202
|
+
'mingcute:file-text-line': FileText,
|
|
203
|
+
'mingcute:game-1-fill': Gamepad2,
|
|
204
|
+
'mingcute:gift-fill': Gift,
|
|
205
|
+
'mingcute:group-fill': UsersRound,
|
|
206
|
+
'mingcute:group-line': UsersRound,
|
|
207
|
+
'mingcute:hashtag-fill': Hash,
|
|
208
|
+
'mingcute:hashtag-line': Hash,
|
|
209
|
+
'mingcute:heart-line': Heart,
|
|
210
|
+
'mingcute:live-line': Radio,
|
|
211
|
+
'mingcute:pic-line': Image,
|
|
212
|
+
'mingcute:radio-fill': Radio,
|
|
213
|
+
'mingcute:share-forward-line': Share2,
|
|
214
|
+
'mingcute:time-fill': Clock,
|
|
215
|
+
'mingcute:user-add-line': UserPlus,
|
|
216
|
+
'mingcute:video-line': Video,
|
|
217
|
+
|
|
218
|
+
// === ri / Remix Icons (18 icons) ===
|
|
219
|
+
'ri:arrow-right-fill': RiArrowRightFill,
|
|
220
|
+
'ri:group-line': RiGroupLine,
|
|
221
|
+
'ri:hashtag': RiHashtag,
|
|
222
|
+
'ri:heart-3-fill': RiHeart3Fill,
|
|
223
|
+
'ri:heart-3-line': RiHeart3Line,
|
|
224
|
+
'ri:heart-line': RiHeartLine,
|
|
225
|
+
'ri:live-line': RiLiveLine,
|
|
226
|
+
'ri:message-3-fill': RiMessage3Fill,
|
|
227
|
+
'ri:pie-chart-2-fill': RiPieChart2Fill,
|
|
228
|
+
'ri:share-forward-fill': RiShareForwardFill,
|
|
229
|
+
'ri:star-fill': RiStarFill,
|
|
230
|
+
'ri:star-line': RiStarLine,
|
|
231
|
+
'ri:thumb-up-fill': RiThumbUpFill,
|
|
232
|
+
'ri:tiktok-fill': RiTiktokFill,
|
|
233
|
+
'ri:trophy-fill': RiTrophyFill,
|
|
234
|
+
'ri:user-follow-line': RiUserFollowLine,
|
|
235
|
+
'ri:verified-badge-fill': RiVerifiedBadgeFill,
|
|
236
|
+
'ri:video-line': RiVideoLine,
|
|
237
|
+
|
|
238
|
+
// === material-symbols (5 icons) ===
|
|
239
|
+
'material-symbols:fit-screen': MdFitScreen,
|
|
240
|
+
'material-symbols:info-outline': MdInfoOutline,
|
|
241
|
+
'material-symbols:lightbulb-outline': MdLightbulbOutline,
|
|
242
|
+
'material-symbols:location-on': MdLocationOn,
|
|
243
|
+
'material-symbols:schedule-outline': MdSchedule,
|
|
244
|
+
|
|
245
|
+
// === ant-design (4 icons) ===
|
|
246
|
+
'ant-design:heart-filled': AiFillHeart,
|
|
247
|
+
'ant-design:pushpin-filled': AiFillPushpin,
|
|
248
|
+
'ant-design:star-filled': AiFillStar,
|
|
249
|
+
'ant-design:video-camera-outlined': AiOutlineVideoCamera,
|
|
250
|
+
|
|
251
|
+
// === fa6-solid (3 icons) ===
|
|
252
|
+
'fa6-solid:music': FaMusic,
|
|
253
|
+
'fa6-solid:comment-dots': FaCommentDots,
|
|
254
|
+
'fa6-solid:user-group': FaUserGroup,
|
|
255
|
+
|
|
256
|
+
// === fa6-brands (1 icon) ===
|
|
257
|
+
'fa6-brands:tiktok': FaTiktok,
|
|
258
|
+
|
|
259
|
+
// === simple-icons (11 icons) ===
|
|
260
|
+
'simple-icons:github': SiGithub,
|
|
261
|
+
'simple-icons:bilibili': SiBilibili,
|
|
262
|
+
'simple-icons:openai': Sparkles,
|
|
263
|
+
'simple-icons:anthropic': SiAnthropic,
|
|
264
|
+
'simple-icons:googlephotos': SiGooglephotos,
|
|
265
|
+
'simple-icons:xiaomi': SiXiaomi,
|
|
266
|
+
'simple-icons:oppo': SiOppo,
|
|
267
|
+
'simple-icons:huawei': SiHuawei,
|
|
268
|
+
'simple-icons:honor': SiHonor,
|
|
269
|
+
'simple-icons:vivo': SiVivo,
|
|
270
|
+
'simple-icons:samsung': SiSamsung,
|
|
271
|
+
|
|
272
|
+
// === tabler (2 icons) mapped to lucide-react ===
|
|
273
|
+
'tabler:message-circle': MessageCircle,
|
|
274
|
+
'tabler:scan': ScanLine,
|
|
275
|
+
|
|
276
|
+
// === ph / phosphor (2 icons) ===
|
|
277
|
+
'ph:play-fill': PhPlay,
|
|
278
|
+
'ph:question-fill': Question,
|
|
279
|
+
|
|
280
|
+
// === solar (1 icon) mapped to lucide-react ===
|
|
281
|
+
'solar:calendar-linear': Calendar,
|
|
282
|
+
|
|
283
|
+
// === heroicons-outline (1 icon) mapped to lucide-react ===
|
|
284
|
+
'heroicons-outline:menu-alt-2': Menu,
|
|
285
|
+
|
|
286
|
+
// === bi (1 icon) ===
|
|
287
|
+
'bi:image': BiImage
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
export const DEFAULT_FALLBACK_ICON = HelpCircle
|
|
291
|
+
|
|
292
|
+
export function resolveIcon(iconName: string): ComponentType<any> {
|
|
293
|
+
return iconRegistry[iconName] ?? DEFAULT_FALLBACK_ICON
|
|
294
|
+
}
|