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,276 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.SmartGlowBorder = exports.GlowBorderContainer = exports.SimpleGlowIcon = exports.GlowIcon = exports.RealGlowText = exports.GlowText = exports.GlowImage = void 0;
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
const react_1 = __importDefault(require("react"));
|
|
9
|
+
const GlowImage = ({ src, children, alt, className, imgClassName, mode = 'blur-layer', blurRadius = 18, glowStrength = 0.6, scale = 1.06, shadowRadius = 28, crossOrigin }) => {
|
|
10
|
+
const [shadowColor, setShadowColor] = react_1.default.useState('rgba(255,255,255,0.5)');
|
|
11
|
+
react_1.default.useEffect(() => {
|
|
12
|
+
if (mode !== 'dominant-shadow' || !src)
|
|
13
|
+
return;
|
|
14
|
+
const img = new Image();
|
|
15
|
+
if (crossOrigin)
|
|
16
|
+
img.crossOrigin = crossOrigin;
|
|
17
|
+
img.src = src;
|
|
18
|
+
img.onload = () => {
|
|
19
|
+
try {
|
|
20
|
+
const size = 16;
|
|
21
|
+
const canvas = document.createElement('canvas');
|
|
22
|
+
canvas.width = size;
|
|
23
|
+
canvas.height = size;
|
|
24
|
+
const ctx = canvas.getContext('2d');
|
|
25
|
+
if (!ctx)
|
|
26
|
+
return;
|
|
27
|
+
ctx.drawImage(img, 0, 0, size, size);
|
|
28
|
+
const data = ctx.getImageData(0, 0, size, size).data;
|
|
29
|
+
let r = 0, g = 0, b = 0, count = 0;
|
|
30
|
+
for (let i = 0; i < data.length; i += 4) {
|
|
31
|
+
const a = data[i + 3];
|
|
32
|
+
if (a < 10)
|
|
33
|
+
continue;
|
|
34
|
+
r += data[i];
|
|
35
|
+
g += data[i + 1];
|
|
36
|
+
b += data[i + 2];
|
|
37
|
+
count++;
|
|
38
|
+
}
|
|
39
|
+
if (count > 0) {
|
|
40
|
+
r = Math.round(r / count);
|
|
41
|
+
g = Math.round(g / count);
|
|
42
|
+
b = Math.round(b / count);
|
|
43
|
+
setShadowColor(`rgba(${r}, ${g}, ${b}, ${Math.min(glowStrength, 0.85)})`);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
catch {
|
|
47
|
+
// ignore errors (e.g. tainted canvas), keep default color
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
}, [mode, src, glowStrength, crossOrigin]);
|
|
51
|
+
if (children) {
|
|
52
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: className, style: { position: 'relative', display: 'inline-block' }, children: [(0, jsx_runtime_1.jsx)("div", { "aria-hidden": "true", className: imgClassName, style: {
|
|
53
|
+
position: 'absolute',
|
|
54
|
+
inset: 0,
|
|
55
|
+
transform: `scale(${scale})`,
|
|
56
|
+
filter: `blur(${blurRadius}px) saturate(1.2)`,
|
|
57
|
+
opacity: glowStrength,
|
|
58
|
+
pointerEvents: 'none',
|
|
59
|
+
display: 'flex',
|
|
60
|
+
justifyContent: 'center',
|
|
61
|
+
alignItems: 'center'
|
|
62
|
+
}, children: children }), (0, jsx_runtime_1.jsx)("div", { className: imgClassName, style: { position: 'relative' }, children: children })] }));
|
|
63
|
+
}
|
|
64
|
+
if (mode === 'dominant-shadow') {
|
|
65
|
+
return ((0, jsx_runtime_1.jsx)("img", { src: src, alt: alt, className: imgClassName, style: {
|
|
66
|
+
filter: `drop-shadow(0 0 ${shadowRadius}px ${shadowColor}) drop-shadow(0 0 ${Math.round(shadowRadius * 0.6)}px ${shadowColor})`
|
|
67
|
+
} }));
|
|
68
|
+
}
|
|
69
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: className, style: { position: 'relative', display: 'inline-block' }, children: [(0, jsx_runtime_1.jsx)("img", { src: src, alt: alt, "aria-hidden": "true", style: {
|
|
70
|
+
position: 'absolute',
|
|
71
|
+
inset: 0,
|
|
72
|
+
transform: `scale(${scale})`,
|
|
73
|
+
filter: `blur(${blurRadius}px) saturate(1.2)`,
|
|
74
|
+
opacity: glowStrength,
|
|
75
|
+
pointerEvents: 'none'
|
|
76
|
+
} }), (0, jsx_runtime_1.jsx)("img", { src: src, alt: alt, className: imgClassName })] }));
|
|
77
|
+
};
|
|
78
|
+
exports.GlowImage = GlowImage;
|
|
79
|
+
const GlowText = ({ children, className, glowClassName, blurRadius = 12, glowStrength = 0.6, scale = 1.02 }) => {
|
|
80
|
+
return ((0, jsx_runtime_1.jsxs)("span", { className: className, style: { position: 'relative', display: 'inline-block' }, children: [(0, jsx_runtime_1.jsx)("span", { "aria-hidden": "true", className: glowClassName, style: {
|
|
81
|
+
position: 'absolute',
|
|
82
|
+
inset: 0,
|
|
83
|
+
transform: `scale(${scale})`,
|
|
84
|
+
filter: `blur(${blurRadius}px) saturate(1.1)`,
|
|
85
|
+
opacity: glowStrength,
|
|
86
|
+
pointerEvents: 'none'
|
|
87
|
+
}, children: children }), (0, jsx_runtime_1.jsx)("span", { children: children })] }));
|
|
88
|
+
};
|
|
89
|
+
exports.GlowText = GlowText;
|
|
90
|
+
const RealGlowText = ({ children, className, levels = 4, baseBlur = 6, spread = 6 }) => {
|
|
91
|
+
return ((0, jsx_runtime_1.jsx)("span", { className: className, style: {
|
|
92
|
+
textShadow: Array.from({ length: levels }, (_, i) => {
|
|
93
|
+
const blur = baseBlur + i * spread;
|
|
94
|
+
return `0 0 ${blur}px currentColor`;
|
|
95
|
+
}).join(', ')
|
|
96
|
+
}, children: children }));
|
|
97
|
+
};
|
|
98
|
+
exports.RealGlowText = RealGlowText;
|
|
99
|
+
const GlowIcon = ({ Icon, iconProps = {}, className, glowColor, glowStrength = 0.8, glowRadius = 12, glowLayers = 3, glowSpread = 4 }) => {
|
|
100
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: className, style: { display: 'inline-block' }, children: (0, jsx_runtime_1.jsx)(Icon, { ...iconProps, style: {
|
|
101
|
+
filter: Array.from({ length: glowLayers }, (_, i) => {
|
|
102
|
+
const radius = glowRadius + i * glowSpread;
|
|
103
|
+
const opacity = Math.min(glowStrength * (1 - i * 0.2), 1);
|
|
104
|
+
const shadowColor = glowColor ? glowColor.replace(/rgb\(([^)]+)\)/, `rgba($1, ${opacity})`) : `rgba(255, 255, 255, ${opacity})`;
|
|
105
|
+
return `drop-shadow(0 0 ${radius}px ${shadowColor})`;
|
|
106
|
+
}).join(' '),
|
|
107
|
+
...iconProps.style
|
|
108
|
+
} }) }));
|
|
109
|
+
};
|
|
110
|
+
exports.GlowIcon = GlowIcon;
|
|
111
|
+
const SimpleGlowIcon = ({ Icon, iconProps = {}, className, glowColor, glowIntensity = 'medium' }) => {
|
|
112
|
+
const getGlowFilter = () => {
|
|
113
|
+
const color = glowColor || 'currentColor';
|
|
114
|
+
switch (glowIntensity) {
|
|
115
|
+
case 'light':
|
|
116
|
+
return `drop-shadow(0 0 8px ${color}) drop-shadow(0 0 16px ${color})`;
|
|
117
|
+
case 'strong':
|
|
118
|
+
return `drop-shadow(0 0 12px ${color}) drop-shadow(0 0 24px ${color}) drop-shadow(0 0 36px ${color})`;
|
|
119
|
+
default: // medium
|
|
120
|
+
return `drop-shadow(0 0 10px ${color}) drop-shadow(0 0 20px ${color})`;
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: className, style: { display: 'inline-block' }, children: (0, jsx_runtime_1.jsx)(Icon, { ...iconProps, style: {
|
|
124
|
+
filter: getGlowFilter(),
|
|
125
|
+
...iconProps.style
|
|
126
|
+
} }) }));
|
|
127
|
+
};
|
|
128
|
+
exports.SimpleGlowIcon = SimpleGlowIcon;
|
|
129
|
+
const GlowBorderContainer = ({ children, className, glowColor = 'rgb(245, 158, 11)', glowStrength = 0.6, borderWidth = 1, borderRadius, glowPosition = 'left-top', lightInfluenceRange = 0.3 }) => {
|
|
130
|
+
/**
|
|
131
|
+
* 根据发光位置生成边框渐变样式
|
|
132
|
+
* @param position 发光元素位置
|
|
133
|
+
* @returns CSS渐变字符串
|
|
134
|
+
*/
|
|
135
|
+
const generateBorderGradient = (position) => {
|
|
136
|
+
// 解析辉光颜色的RGB值
|
|
137
|
+
const glowRgbMatch = glowColor.match(/rgb\((\d+),\s*(\d+),\s*(\d+)\)/);
|
|
138
|
+
const glowRgb = glowRgbMatch ? `${glowRgbMatch[1]}, ${glowRgbMatch[2]}, ${glowRgbMatch[3]}` : '245, 158, 11';
|
|
139
|
+
// 辉光颜色渐变层
|
|
140
|
+
const maxGlow = `rgba(${glowRgb}, ${glowStrength})`;
|
|
141
|
+
const strongGlow = `rgba(${glowRgb}, ${glowStrength * 0.7})`;
|
|
142
|
+
const mediumGlow = `rgba(${glowRgb}, ${glowStrength * 0.4})`;
|
|
143
|
+
const weakGlow = `rgba(${glowRgb}, ${glowStrength * 0.15})`;
|
|
144
|
+
// 光影扩散范围
|
|
145
|
+
const maxInfluence = Math.round(lightInfluenceRange * 100);
|
|
146
|
+
switch (position) {
|
|
147
|
+
case 'left-top':
|
|
148
|
+
return `
|
|
149
|
+
radial-gradient(circle 220px at 5% 15%,
|
|
150
|
+
${maxGlow} 0%,
|
|
151
|
+
${strongGlow} 20%,
|
|
152
|
+
${mediumGlow} 40%,
|
|
153
|
+
${weakGlow} 65%,
|
|
154
|
+
transparent ${maxInfluence}%
|
|
155
|
+
)
|
|
156
|
+
`;
|
|
157
|
+
case 'left':
|
|
158
|
+
return `
|
|
159
|
+
radial-gradient(circle 150px at 10% 50%,
|
|
160
|
+
${maxGlow} 0%,
|
|
161
|
+
${strongGlow} 25%,
|
|
162
|
+
${mediumGlow} 45%,
|
|
163
|
+
${weakGlow} 70%,
|
|
164
|
+
transparent ${maxInfluence}%
|
|
165
|
+
)
|
|
166
|
+
`;
|
|
167
|
+
case 'right':
|
|
168
|
+
return `
|
|
169
|
+
radial-gradient(circle 150px at 90% 50%,
|
|
170
|
+
${maxGlow} 0%,
|
|
171
|
+
${strongGlow} 25%,
|
|
172
|
+
${mediumGlow} 45%,
|
|
173
|
+
${weakGlow} 70%,
|
|
174
|
+
transparent ${maxInfluence}%
|
|
175
|
+
)
|
|
176
|
+
`;
|
|
177
|
+
case 'top':
|
|
178
|
+
return `
|
|
179
|
+
radial-gradient(circle 150px at 50% 10%,
|
|
180
|
+
${maxGlow} 0%,
|
|
181
|
+
${strongGlow} 25%,
|
|
182
|
+
${mediumGlow} 45%,
|
|
183
|
+
${weakGlow} 70%,
|
|
184
|
+
transparent ${maxInfluence}%
|
|
185
|
+
)
|
|
186
|
+
`;
|
|
187
|
+
case 'bottom':
|
|
188
|
+
return `
|
|
189
|
+
radial-gradient(circle 150px at 50% 90%,
|
|
190
|
+
${maxGlow} 0%,
|
|
191
|
+
${strongGlow} 25%,
|
|
192
|
+
${mediumGlow} 45%,
|
|
193
|
+
${weakGlow} 70%,
|
|
194
|
+
transparent ${maxInfluence}%
|
|
195
|
+
)
|
|
196
|
+
`;
|
|
197
|
+
case 'right-top':
|
|
198
|
+
return `
|
|
199
|
+
radial-gradient(circle 150px at 92% 15%,
|
|
200
|
+
${maxGlow} 0%,
|
|
201
|
+
${strongGlow} 20%,
|
|
202
|
+
${mediumGlow} 40%,
|
|
203
|
+
${weakGlow} 65%,
|
|
204
|
+
transparent ${maxInfluence}%
|
|
205
|
+
)
|
|
206
|
+
`;
|
|
207
|
+
case 'left-bottom':
|
|
208
|
+
return `
|
|
209
|
+
radial-gradient(circle 150px at 8% 85%,
|
|
210
|
+
${maxGlow} 0%,
|
|
211
|
+
${strongGlow} 20%,
|
|
212
|
+
${mediumGlow} 40%,
|
|
213
|
+
${weakGlow} 65%,
|
|
214
|
+
transparent ${maxInfluence}%
|
|
215
|
+
)
|
|
216
|
+
`;
|
|
217
|
+
case 'right-bottom':
|
|
218
|
+
return `
|
|
219
|
+
radial-gradient(circle 150px at 92% 85%,
|
|
220
|
+
${maxGlow} 0%,
|
|
221
|
+
${strongGlow} 20%,
|
|
222
|
+
${mediumGlow} 40%,
|
|
223
|
+
${weakGlow} 65%,
|
|
224
|
+
transparent ${maxInfluence}%
|
|
225
|
+
)
|
|
226
|
+
`;
|
|
227
|
+
case 'center':
|
|
228
|
+
return `
|
|
229
|
+
radial-gradient(circle at center,
|
|
230
|
+
${maxGlow} 0%,
|
|
231
|
+
${strongGlow} 30%,
|
|
232
|
+
${mediumGlow} 55%,
|
|
233
|
+
${weakGlow} 80%,
|
|
234
|
+
transparent ${maxInfluence}%
|
|
235
|
+
)
|
|
236
|
+
`;
|
|
237
|
+
default:
|
|
238
|
+
return 'transparent';
|
|
239
|
+
}
|
|
240
|
+
};
|
|
241
|
+
const borderGradient = generateBorderGradient(glowPosition);
|
|
242
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: className, style: {
|
|
243
|
+
position: 'relative',
|
|
244
|
+
background: borderGradient,
|
|
245
|
+
padding: `${borderWidth}px`,
|
|
246
|
+
borderRadius: borderRadius
|
|
247
|
+
}, children: (0, jsx_runtime_1.jsx)("div", { style: {
|
|
248
|
+
borderRadius: borderRadius ? `calc(${borderRadius} - ${borderWidth}px)` : undefined,
|
|
249
|
+
overflow: 'hidden',
|
|
250
|
+
background: 'var(--background)',
|
|
251
|
+
width: '100%',
|
|
252
|
+
height: '100%'
|
|
253
|
+
}, children: children }) }));
|
|
254
|
+
};
|
|
255
|
+
exports.GlowBorderContainer = GlowBorderContainer;
|
|
256
|
+
const SmartGlowBorder = ({ children, className, glowColor, glowStrength = 0.5, borderWidth = 1, borderRadius = '1.5rem', glowPosition = 'left-top', lightInfluenceRange = 0.3, enableDynamicGlow = true }) => {
|
|
257
|
+
const containerRef = react_1.default.useRef(null);
|
|
258
|
+
const [detectedGlowColor, setDetectedGlowColor] = react_1.default.useState('rgb(245, 158, 11)');
|
|
259
|
+
react_1.default.useEffect(() => {
|
|
260
|
+
if (!enableDynamicGlow || glowColor)
|
|
261
|
+
return;
|
|
262
|
+
// 尝试从子元素中提取辉光颜色
|
|
263
|
+
const container = containerRef.current;
|
|
264
|
+
if (container) {
|
|
265
|
+
const glowElements = container.querySelectorAll('[style*="drop-shadow"], [style*="filter"]');
|
|
266
|
+
if (glowElements.length > 0) {
|
|
267
|
+
// 这里可以添加更复杂的颜色提取逻辑
|
|
268
|
+
// 暂时使用默认的橙色
|
|
269
|
+
setDetectedGlowColor('rgb(245, 158, 11)');
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
}, [enableDynamicGlow, glowColor, children]);
|
|
273
|
+
const finalGlowColor = glowColor || detectedGlowColor;
|
|
274
|
+
return ((0, jsx_runtime_1.jsx)("div", { ref: containerRef, children: (0, jsx_runtime_1.jsx)(exports.GlowBorderContainer, { className: className, glowColor: finalGlowColor, glowStrength: glowStrength, borderWidth: borderWidth, borderRadius: borderRadius, glowPosition: glowPosition, lightInfluenceRange: lightInfluenceRange, children: children }) }));
|
|
275
|
+
};
|
|
276
|
+
exports.SmartGlowBorder = SmartGlowBorder;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.QRCodeWithAvatar = void 0;
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
const react_1 = __importDefault(require("react"));
|
|
9
|
+
const QRcode_1 = require("../../utils/QRcode");
|
|
10
|
+
const QRCodeAvatar_1 = require("../../utils/QRCodeAvatar");
|
|
11
|
+
const QRCodeImage = ({ value, avatarUrl: _, useDarkTheme = false, avatar, alt = '二维码', ...imageProps }) => (0, jsx_runtime_1.jsx)("img", { ...imageProps, src: (0, QRcode_1.generateQRCode)(value, useDarkTheme, avatar), alt: alt });
|
|
12
|
+
/** Node SSR 版本:在服务端流式渲染期间等待头像二进制。 */
|
|
13
|
+
const QRCodeWithAvatarServer = async (props) => {
|
|
14
|
+
const avatar = await (0, QRCodeAvatar_1.loadQRCodeAvatar)(props.avatarUrl);
|
|
15
|
+
return (0, jsx_runtime_1.jsx)(QRCodeImage, { ...props, avatar: avatar });
|
|
16
|
+
};
|
|
17
|
+
/** 浏览器版本:保持同步组件语义,通过 effect 异步补充头像二维码。 */
|
|
18
|
+
const QRCodeWithAvatarClient = (props) => {
|
|
19
|
+
const [avatar, setAvatar] = react_1.default.useState();
|
|
20
|
+
react_1.default.useEffect(() => {
|
|
21
|
+
let active = true;
|
|
22
|
+
setAvatar(undefined);
|
|
23
|
+
void (0, QRCodeAvatar_1.loadQRCodeAvatar)(props.avatarUrl).then((image) => {
|
|
24
|
+
if (active)
|
|
25
|
+
setAvatar(image);
|
|
26
|
+
});
|
|
27
|
+
return () => {
|
|
28
|
+
active = false;
|
|
29
|
+
};
|
|
30
|
+
}, [props.avatarUrl]);
|
|
31
|
+
return (0, jsx_runtime_1.jsx)(QRCodeImage, { ...props, avatar: avatar });
|
|
32
|
+
};
|
|
33
|
+
exports.QRCodeWithAvatar = typeof window === 'undefined' ? react_1.default.memo(QRCodeWithAvatarServer) : react_1.default.memo(QRCodeWithAvatarClient);
|
|
34
|
+
exports.QRCodeWithAvatar.displayName = 'QRCodeWithAvatar';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RolldownLogo = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const RolldownLogo = ({ className = 'w-auto h-10' }) => ((0, jsx_runtime_1.jsxs)("svg", { viewBox: "0 0 177 15", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: className, children: [(0, jsx_runtime_1.jsx)("path", { 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", fill: "currentColor" }), (0, jsx_runtime_1.jsx)("path", { 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", fill: "#FF5500" }), (0, jsx_runtime_1.jsx)("mask", { id: "mask0_rd", style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "157", y: "0", width: "15", height: "15", children: (0, jsx_runtime_1.jsx)("path", { 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", fill: "black" }) }), (0, jsx_runtime_1.jsxs)("g", { mask: "url(#mask0_rd)", children: [(0, jsx_runtime_1.jsx)("g", { filter: "url(#f0_rd)", children: (0, jsx_runtime_1.jsx)("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" }) }), (0, jsx_runtime_1.jsx)("g", { filter: "url(#f1_rd)", children: (0, jsx_runtime_1.jsx)("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" }) }), (0, jsx_runtime_1.jsx)("g", { filter: "url(#f2_rd)", children: (0, jsx_runtime_1.jsx)("ellipse", { cx: "157.85", cy: "0.46", rx: "1.19", ry: "7", transform: "rotate(-36.09 157.85 0.46)", fill: "#FF19AF" }) }), (0, jsx_runtime_1.jsx)("g", { filter: "url(#f3_rd)", children: (0, jsx_runtime_1.jsx)("ellipse", { cx: "159.7", cy: "10.93", rx: "1.19", ry: "7", transform: "rotate(-36.09 159.7 10.93)", fill: "#FF19AF" }) }), (0, jsx_runtime_1.jsx)("g", { filter: "url(#f4_rd)", children: (0, jsx_runtime_1.jsx)("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" }) }), (0, jsx_runtime_1.jsx)("g", { filter: "url(#f5_rd)", children: (0, jsx_runtime_1.jsx)("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" }) }), (0, jsx_runtime_1.jsx)("g", { filter: "url(#f6_rd)", children: (0, jsx_runtime_1.jsx)("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" }) }), (0, jsx_runtime_1.jsx)("g", { filter: "url(#f7_rd)", children: (0, jsx_runtime_1.jsx)("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" }) }), (0, jsx_runtime_1.jsx)("g", { filter: "url(#f8_rd)", children: (0, jsx_runtime_1.jsx)("ellipse", { cx: "158.53", cy: "0.97", rx: "1.73", ry: "7.56", transform: "rotate(-40.91 158.53 0.97)", fill: "#D14B2A" }) }), (0, jsx_runtime_1.jsx)("g", { filter: "url(#f9_rd)", children: (0, jsx_runtime_1.jsx)("ellipse", { cx: "159.71", cy: "9.14", rx: "1.73", ry: "7.56", transform: "rotate(-35.89 159.71 9.14)", fill: "#D14B2A" }) })] }), (0, jsx_runtime_1.jsx)("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" }), (0, jsx_runtime_1.jsx)("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" }), (0, jsx_runtime_1.jsxs)("defs", { children: [(0, jsx_runtime_1.jsxs)("filter", { id: "f0_rd", x: "165.15", y: "-8.5", width: "12.61", height: "17.6", filterUnits: "userSpaceOnUse", colorInterpolationFilters: "sRGB", children: [(0, jsx_runtime_1.jsx)("feFlood", { floodOpacity: "0", result: "bg" }), (0, jsx_runtime_1.jsx)("feBlend", { in: "SourceGraphic", in2: "bg", result: "shape" }), (0, jsx_runtime_1.jsx)("feGaussianBlur", { stdDeviation: "1.1", result: "blur" })] }), (0, jsx_runtime_1.jsxs)("filter", { id: "f1_rd", x: "164.78", y: "-1.13", width: "12.61", height: "17.6", filterUnits: "userSpaceOnUse", colorInterpolationFilters: "sRGB", children: [(0, jsx_runtime_1.jsx)("feFlood", { floodOpacity: "0", result: "bg" }), (0, jsx_runtime_1.jsx)("feBlend", { in: "SourceGraphic", in2: "bg", result: "shape" }), (0, jsx_runtime_1.jsx)("feGaussianBlur", { stdDeviation: "1.1", result: "blur" })] }), (0, jsx_runtime_1.jsxs)("filter", { id: "f2_rd", x: "151.41", y: "-7.45", width: "12.89", height: "15.82", filterUnits: "userSpaceOnUse", colorInterpolationFilters: "sRGB", children: [(0, jsx_runtime_1.jsx)("feFlood", { floodOpacity: "0", result: "bg" }), (0, jsx_runtime_1.jsx)("feBlend", { in: "SourceGraphic", in2: "bg", result: "shape" }), (0, jsx_runtime_1.jsx)("feGaussianBlur", { stdDeviation: "1.1", result: "blur" })] }), (0, jsx_runtime_1.jsxs)("filter", { id: "f3_rd", x: "153.25", y: "3.02", width: "12.89", height: "15.82", filterUnits: "userSpaceOnUse", colorInterpolationFilters: "sRGB", children: [(0, jsx_runtime_1.jsx)("feFlood", { floodOpacity: "0", result: "bg" }), (0, jsx_runtime_1.jsx)("feBlend", { in: "SourceGraphic", in2: "bg", result: "shape" }), (0, jsx_runtime_1.jsx)("feGaussianBlur", { stdDeviation: "1.1", result: "blur" })] }), (0, jsx_runtime_1.jsxs)("filter", { id: "f4_rd", x: "164.67", y: "-7.45", width: "12.89", height: "15.82", filterUnits: "userSpaceOnUse", colorInterpolationFilters: "sRGB", children: [(0, jsx_runtime_1.jsx)("feFlood", { floodOpacity: "0", result: "bg" }), (0, jsx_runtime_1.jsx)("feBlend", { in: "SourceGraphic", in2: "bg", result: "shape" }), (0, jsx_runtime_1.jsx)("feGaussianBlur", { stdDeviation: "1.1", result: "blur" })] }), (0, jsx_runtime_1.jsxs)("filter", { id: "f5_rd", x: "162.46", y: "3.02", width: "12.89", height: "15.82", filterUnits: "userSpaceOnUse", colorInterpolationFilters: "sRGB", children: [(0, jsx_runtime_1.jsx)("feFlood", { floodOpacity: "0", result: "bg" }), (0, jsx_runtime_1.jsx)("feBlend", { in: "SourceGraphic", in2: "bg", result: "shape" }), (0, jsx_runtime_1.jsx)("feGaussianBlur", { stdDeviation: "1.1", result: "blur" })] }), (0, jsx_runtime_1.jsxs)("filter", { id: "f6_rd", x: "163.56", y: "-7.45", width: "12.89", height: "15.82", filterUnits: "userSpaceOnUse", colorInterpolationFilters: "sRGB", children: [(0, jsx_runtime_1.jsx)("feFlood", { floodOpacity: "0", result: "bg" }), (0, jsx_runtime_1.jsx)("feBlend", { in: "SourceGraphic", in2: "bg", result: "shape" }), (0, jsx_runtime_1.jsx)("feGaussianBlur", { stdDeviation: "1.1", result: "blur" })] }), (0, jsx_runtime_1.jsxs)("filter", { id: "f7_rd", x: "161.72", y: "3.02", width: "12.89", height: "15.82", filterUnits: "userSpaceOnUse", colorInterpolationFilters: "sRGB", children: [(0, jsx_runtime_1.jsx)("feFlood", { floodOpacity: "0", result: "bg" }), (0, jsx_runtime_1.jsx)("feBlend", { in: "SourceGraphic", in2: "bg", result: "shape" }), (0, jsx_runtime_1.jsx)("feGaussianBlur", { stdDeviation: "1.1", result: "blur" })] }), (0, jsx_runtime_1.jsxs)("filter", { id: "f8_rd", x: "151.2", y: "-7.07", width: "14.66", height: "16.07", filterUnits: "userSpaceOnUse", colorInterpolationFilters: "sRGB", children: [(0, jsx_runtime_1.jsx)("feFlood", { floodOpacity: "0", result: "bg" }), (0, jsx_runtime_1.jsx)("feBlend", { in: "SourceGraphic", in2: "bg", result: "shape" }), (0, jsx_runtime_1.jsx)("feGaussianBlur", { stdDeviation: "1.1", result: "blur" })] }), (0, jsx_runtime_1.jsxs)("filter", { id: "f9_rd", x: "152.85", y: "0.72", width: "13.72", height: "16.84", filterUnits: "userSpaceOnUse", colorInterpolationFilters: "sRGB", children: [(0, jsx_runtime_1.jsx)("feFlood", { floodOpacity: "0", result: "bg" }), (0, jsx_runtime_1.jsx)("feBlend", { in: "SourceGraphic", in2: "bg", result: "shape" }), (0, jsx_runtime_1.jsx)("feGaussianBlur", { stdDeviation: "1.1", result: "blur" })] })] })] }));
|
|
6
|
+
exports.RolldownLogo = RolldownLogo;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ViteLogo = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const ViteLogo = ({ className = 'w-auto h-12' }) => ((0, jsx_runtime_1.jsxs)("svg", { viewBox: "0 0 87 15", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: className, children: [(0, jsx_runtime_1.jsx)("path", { 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", fill: "#863BFF" }), (0, jsx_runtime_1.jsx)("mask", { id: "mask0_vite", style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "66", y: "0", width: "16", height: "15", children: (0, jsx_runtime_1.jsx)("path", { 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", fill: "black" }) }), (0, jsx_runtime_1.jsxs)("g", { mask: "url(#mask0_vite)", children: [(0, jsx_runtime_1.jsx)("g", { filter: "url(#f0_vite)", children: (0, jsx_runtime_1.jsx)("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" }) }), (0, jsx_runtime_1.jsx)("g", { filter: "url(#f1_vite)", children: (0, jsx_runtime_1.jsx)("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" }) }), (0, jsx_runtime_1.jsx)("g", { filter: "url(#f2_vite)", children: (0, jsx_runtime_1.jsx)("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" }) }), (0, jsx_runtime_1.jsx)("g", { filter: "url(#f3_vite)", children: (0, jsx_runtime_1.jsx)("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" }) }), (0, jsx_runtime_1.jsx)("g", { filter: "url(#f4_vite)", children: (0, jsx_runtime_1.jsx)("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" }) }), (0, jsx_runtime_1.jsx)("g", { filter: "url(#f5_vite)", children: (0, jsx_runtime_1.jsx)("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" }) }), (0, jsx_runtime_1.jsx)("g", { filter: "url(#f6_vite)", children: (0, jsx_runtime_1.jsx)("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" }) }), (0, jsx_runtime_1.jsx)("g", { filter: "url(#f7_vite)", children: (0, jsx_runtime_1.jsx)("ellipse", { cx: "66.749", cy: "3.123", rx: "1.413", ry: "9.332", transform: "rotate(39.51 66.749 3.123)", fill: "#7E14FF" }) }), (0, jsx_runtime_1.jsx)("g", { filter: "url(#f8_vite)", children: (0, jsx_runtime_1.jsx)("ellipse", { cx: "81.86", cy: "-1.706", rx: "1.413", ry: "9.332", transform: "rotate(37.89 81.86 -1.706)", fill: "#7E14FF" }) }), (0, jsx_runtime_1.jsx)("g", { filter: "url(#f9_vite)", children: (0, jsx_runtime_1.jsx)("ellipse", { cx: "79.902", cy: "2.278", rx: "1.914", ry: "3.099", transform: "rotate(37.89 79.902 2.278)", fill: "#47BFFF" }) }), (0, jsx_runtime_1.jsx)("g", { filter: "url(#f10_vite)", children: (0, jsx_runtime_1.jsx)("ellipse", { cx: "66.022", cy: "12.536", rx: "1.413", ry: "9.332", transform: "rotate(37.89 66.022 12.536)", fill: "#7E14FF" }) }), (0, jsx_runtime_1.jsx)("g", { filter: "url(#f11_vite)", children: (0, jsx_runtime_1.jsx)("ellipse", { cx: "78.055", cy: "9.835", rx: "1.413", ry: "9.332", transform: "rotate(37.89 78.055 9.835)", fill: "#7E14FF" }) }), (0, jsx_runtime_1.jsx)("g", { filter: "url(#f12_vite)", children: (0, jsx_runtime_1.jsx)("ellipse", { cx: "78.941", cy: "10.634", rx: "1.914", ry: "4.904", transform: "rotate(37.89 78.941 10.634)", fill: "#47BFFF" }) })] }), (0, jsx_runtime_1.jsx)("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" }), (0, jsx_runtime_1.jsx)("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" }), (0, jsx_runtime_1.jsx)("path", { 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", fill: "currentColor" }), (0, jsx_runtime_1.jsxs)("defs", { children: [(0, jsx_runtime_1.jsxs)("filter", { id: "f0_vite", x: "60.29", y: "5.42", width: "19.25", height: "13.35", filterUnits: "userSpaceOnUse", colorInterpolationFilters: "sRGB", children: [(0, jsx_runtime_1.jsx)("feFlood", { floodOpacity: "0", result: "bg" }), (0, jsx_runtime_1.jsx)("feBlend", { in: "SourceGraphic", in2: "bg", result: "shape" }), (0, jsx_runtime_1.jsx)("feGaussianBlur", { stdDeviation: "2.46", result: "blur" })] }), (0, jsx_runtime_1.jsxs)("filter", { id: "f1_vite", x: "49.12", y: "-2.17", width: "28.96", height: "16.49", filterUnits: "userSpaceOnUse", colorInterpolationFilters: "sRGB", children: [(0, jsx_runtime_1.jsx)("feFlood", { floodOpacity: "0", result: "bg" }), (0, jsx_runtime_1.jsx)("feBlend", { in: "SourceGraphic", in2: "bg", result: "shape" }), (0, jsx_runtime_1.jsx)("feGaussianBlur", { stdDeviation: "2.46", result: "blur" })] }), (0, jsx_runtime_1.jsxs)("filter", { id: "f2_vite", x: "50.71", y: "0.9", width: "25.44", height: "9.43", filterUnits: "userSpaceOnUse", colorInterpolationFilters: "sRGB", children: [(0, jsx_runtime_1.jsx)("feFlood", { floodOpacity: "0", result: "bg" }), (0, jsx_runtime_1.jsx)("feBlend", { in: "SourceGraphic", in2: "bg", result: "shape" }), (0, jsx_runtime_1.jsx)("feGaussianBlur", { stdDeviation: "1.47", result: "blur" })] }), (0, jsx_runtime_1.jsxs)("filter", { id: "f3_vite", x: "52.18", y: "6.67", width: "25.51", height: "9.43", filterUnits: "userSpaceOnUse", colorInterpolationFilters: "sRGB", children: [(0, jsx_runtime_1.jsx)("feFlood", { floodOpacity: "0", result: "bg" }), (0, jsx_runtime_1.jsx)("feBlend", { in: "SourceGraphic", in2: "bg", result: "shape" }), (0, jsx_runtime_1.jsx)("feGaussianBlur", { stdDeviation: "1.47", result: "blur" })] }), (0, jsx_runtime_1.jsxs)("filter", { id: "f4_vite", x: "52.68", y: "7.04", width: "25.51", height: "9.43", filterUnits: "userSpaceOnUse", colorInterpolationFilters: "sRGB", children: [(0, jsx_runtime_1.jsx)("feFlood", { floodOpacity: "0", result: "bg" }), (0, jsx_runtime_1.jsx)("feBlend", { in: "SourceGraphic", in2: "bg", result: "shape" }), (0, jsx_runtime_1.jsx)("feGaussianBlur", { stdDeviation: "1.47", result: "blur" })] }), (0, jsx_runtime_1.jsxs)("filter", { id: "f5_vite", x: "71.68", y: "-5.49", width: "23.96", height: "18.87", filterUnits: "userSpaceOnUse", colorInterpolationFilters: "sRGB", children: [(0, jsx_runtime_1.jsx)("feFlood", { floodOpacity: "0", result: "bg" }), (0, jsx_runtime_1.jsx)("feBlend", { in: "SourceGraphic", in2: "bg", result: "shape" }), (0, jsx_runtime_1.jsx)("feGaussianBlur", { stdDeviation: "2.46", result: "blur" })] }), (0, jsx_runtime_1.jsxs)("filter", { id: "f6_vite", x: "74.17", y: "0.98", width: "19.68", height: "8.13", filterUnits: "userSpaceOnUse", colorInterpolationFilters: "sRGB", children: [(0, jsx_runtime_1.jsx)("feFlood", { floodOpacity: "0", result: "bg" }), (0, jsx_runtime_1.jsx)("feBlend", { in: "SourceGraphic", in2: "bg", result: "shape" }), (0, jsx_runtime_1.jsx)("feGaussianBlur", { stdDeviation: "1.47", result: "blur" })] }), (0, jsx_runtime_1.jsxs)("filter", { id: "f7_vite", x: "57.77", y: "-7.08", width: "17.97", height: "20.41", filterUnits: "userSpaceOnUse", colorInterpolationFilters: "sRGB", children: [(0, jsx_runtime_1.jsx)("feFlood", { floodOpacity: "0", result: "bg" }), (0, jsx_runtime_1.jsx)("feBlend", { in: "SourceGraphic", in2: "bg", result: "shape" }), (0, jsx_runtime_1.jsx)("feGaussianBlur", { stdDeviation: "1.47", result: "blur" })] }), (0, jsx_runtime_1.jsxs)("filter", { id: "f8_vite", x: "73.07", y: "-12.07", width: "17.57", height: "20.72", filterUnits: "userSpaceOnUse", colorInterpolationFilters: "sRGB", children: [(0, jsx_runtime_1.jsx)("feFlood", { floodOpacity: "0", result: "bg" }), (0, jsx_runtime_1.jsx)("feBlend", { in: "SourceGraphic", in2: "bg", result: "shape" }), (0, jsx_runtime_1.jsx)("feGaussianBlur", { stdDeviation: "1.47", result: "blur" })] }), (0, jsx_runtime_1.jsxs)("filter", { id: "f9_vite", x: "74.53", y: "-3.38", width: "10.75", height: "11.32", filterUnits: "userSpaceOnUse", colorInterpolationFilters: "sRGB", children: [(0, jsx_runtime_1.jsx)("feFlood", { floodOpacity: "0", result: "bg" }), (0, jsx_runtime_1.jsx)("feBlend", { in: "SourceGraphic", in2: "bg", result: "shape" }), (0, jsx_runtime_1.jsx)("feGaussianBlur", { stdDeviation: "1.47", result: "blur" })] }), (0, jsx_runtime_1.jsxs)("filter", { id: "f10_vite", x: "57.24", y: "2.17", width: "17.57", height: "20.72", filterUnits: "userSpaceOnUse", colorInterpolationFilters: "sRGB", children: [(0, jsx_runtime_1.jsx)("feFlood", { floodOpacity: "0", result: "bg" }), (0, jsx_runtime_1.jsx)("feBlend", { in: "SourceGraphic", in2: "bg", result: "shape" }), (0, jsx_runtime_1.jsx)("feGaussianBlur", { stdDeviation: "1.47", result: "blur" })] }), (0, jsx_runtime_1.jsxs)("filter", { id: "f11_vite", x: "69.27", y: "-0.53", width: "17.57", height: "20.72", filterUnits: "userSpaceOnUse", colorInterpolationFilters: "sRGB", children: [(0, jsx_runtime_1.jsx)("feFlood", { floodOpacity: "0", result: "bg" }), (0, jsx_runtime_1.jsx)("feBlend", { in: "SourceGraphic", in2: "bg", result: "shape" }), (0, jsx_runtime_1.jsx)("feGaussianBlur", { stdDeviation: "1.47", result: "blur" })] }), (0, jsx_runtime_1.jsxs)("filter", { id: "f12_vite", x: "72.62", y: "3.64", width: "12.63", height: "13.99", filterUnits: "userSpaceOnUse", colorInterpolationFilters: "sRGB", children: [(0, jsx_runtime_1.jsx)("feFlood", { floodOpacity: "0", result: "bg" }), (0, jsx_runtime_1.jsx)("feBlend", { in: "SourceGraphic", in2: "bg", result: "shape" }), (0, jsx_runtime_1.jsx)("feGaussianBlur", { stdDeviation: "1.47", result: "blur" })] })] })] }));
|
|
6
|
+
exports.ViteLogo = ViteLogo;
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DEFAULT_FALLBACK_ICON = exports.iconRegistry = void 0;
|
|
4
|
+
exports.resolveIcon = resolveIcon;
|
|
5
|
+
const react_simple_icons_1 = require("@icons-pack/react-simple-icons");
|
|
6
|
+
const react_1 = require("../../../compat/phosphor-icons.js");
|
|
7
|
+
const lucide_react_1 = require("lucide-react");
|
|
8
|
+
const ai_1 = require("react-icons/ai");
|
|
9
|
+
const bi_1 = require("react-icons/bi");
|
|
10
|
+
const fa6_1 = require("react-icons/fa6");
|
|
11
|
+
const md_1 = require("react-icons/md");
|
|
12
|
+
const ri_1 = require("react-icons/ri");
|
|
13
|
+
/**
|
|
14
|
+
* Maps old iconify icon name strings to their replacement React components.
|
|
15
|
+
* Used by Help.tsx for dynamic icon resolution from plugin config data.
|
|
16
|
+
*/
|
|
17
|
+
exports.iconRegistry = {
|
|
18
|
+
// === lucide (62 icons) ===
|
|
19
|
+
'lucide:alert-circle': lucide_react_1.AlertCircle,
|
|
20
|
+
'lucide:alert-triangle': lucide_react_1.AlertTriangle,
|
|
21
|
+
'lucide:bookmark': lucide_react_1.Bookmark,
|
|
22
|
+
'lucide:bot': lucide_react_1.Bot,
|
|
23
|
+
'lucide:box': lucide_react_1.Box,
|
|
24
|
+
'lucide:calendar': lucide_react_1.Calendar,
|
|
25
|
+
'lucide:camera': lucide_react_1.Camera,
|
|
26
|
+
'lucide:check': lucide_react_1.Check,
|
|
27
|
+
'lucide:check-circle': lucide_react_1.CheckCircle,
|
|
28
|
+
'lucide:check-circle-2': lucide_react_1.CheckCircle2,
|
|
29
|
+
'lucide:circle-ellipsis': lucide_react_1.CircleEllipsis,
|
|
30
|
+
'lucide:circle-fading-arrow-up': lucide_react_1.CircleFadingArrowUp,
|
|
31
|
+
'lucide:clock': lucide_react_1.Clock,
|
|
32
|
+
'lucide:code': lucide_react_1.Code,
|
|
33
|
+
'lucide:copy': lucide_react_1.Copy,
|
|
34
|
+
'lucide:corner-down-left': lucide_react_1.CornerDownLeft,
|
|
35
|
+
'lucide:cpu': lucide_react_1.Cpu,
|
|
36
|
+
'lucide:crown': lucide_react_1.Crown,
|
|
37
|
+
'lucide:download': lucide_react_1.Download,
|
|
38
|
+
'lucide:edit': lucide_react_1.Edit,
|
|
39
|
+
'lucide:external-link': lucide_react_1.ExternalLink,
|
|
40
|
+
'lucide:eye': lucide_react_1.Eye,
|
|
41
|
+
'lucide:eye-off': lucide_react_1.EyeOff,
|
|
42
|
+
'lucide:file-text': lucide_react_1.FileText,
|
|
43
|
+
'lucide:file-video': lucide_react_1.FileVideo,
|
|
44
|
+
'lucide:git-branch': lucide_react_1.GitBranch,
|
|
45
|
+
'lucide:hash': lucide_react_1.Hash,
|
|
46
|
+
'lucide:heart': lucide_react_1.Heart,
|
|
47
|
+
'lucide:info': lucide_react_1.Info,
|
|
48
|
+
'lucide:layout-template': lucide_react_1.LayoutTemplate,
|
|
49
|
+
'lucide:loader-2': lucide_react_1.Loader2,
|
|
50
|
+
'lucide:map-pin': lucide_react_1.MapPin,
|
|
51
|
+
'lucide:maximize': lucide_react_1.Maximize,
|
|
52
|
+
'lucide:message-circle': lucide_react_1.MessageCircle,
|
|
53
|
+
'lucide:monitor': lucide_react_1.Monitor,
|
|
54
|
+
'lucide:moon': lucide_react_1.Moon,
|
|
55
|
+
'lucide:music': lucide_react_1.Music,
|
|
56
|
+
'lucide:palette': lucide_react_1.Palette,
|
|
57
|
+
'lucide:pencil': lucide_react_1.Pencil,
|
|
58
|
+
'lucide:play': lucide_react_1.Play,
|
|
59
|
+
'lucide:plus': lucide_react_1.Plus,
|
|
60
|
+
'lucide:puzzle': lucide_react_1.Puzzle,
|
|
61
|
+
'lucide:qr-code': lucide_react_1.QrCode,
|
|
62
|
+
'lucide:quote': lucide_react_1.Quote,
|
|
63
|
+
'lucide:refresh-cw': lucide_react_1.RefreshCw,
|
|
64
|
+
'lucide:rotate-ccw': lucide_react_1.RotateCcw,
|
|
65
|
+
'lucide:save': lucide_react_1.Save,
|
|
66
|
+
'lucide:scan-line': lucide_react_1.ScanLine,
|
|
67
|
+
'lucide:search': lucide_react_1.Search,
|
|
68
|
+
'lucide:settings-2': lucide_react_1.Settings2,
|
|
69
|
+
'lucide:share-2': lucide_react_1.Share2,
|
|
70
|
+
'lucide:shield': lucide_react_1.Shield,
|
|
71
|
+
'lucide:shield-check': lucide_react_1.ShieldCheck,
|
|
72
|
+
'lucide:shopping-bag': lucide_react_1.ShoppingBag,
|
|
73
|
+
'lucide:smartphone': lucide_react_1.Smartphone,
|
|
74
|
+
'lucide:sparkles': lucide_react_1.Sparkles,
|
|
75
|
+
'lucide:square': lucide_react_1.Square,
|
|
76
|
+
'lucide:star': lucide_react_1.Star,
|
|
77
|
+
'lucide:sun': lucide_react_1.Sun,
|
|
78
|
+
'lucide:terminal': lucide_react_1.Terminal,
|
|
79
|
+
'lucide:trash-2': lucide_react_1.Trash2,
|
|
80
|
+
'lucide:upload': lucide_react_1.Upload,
|
|
81
|
+
'lucide:user': lucide_react_1.User,
|
|
82
|
+
'lucide:user-plus': lucide_react_1.UserPlus,
|
|
83
|
+
'lucide:users': lucide_react_1.Users,
|
|
84
|
+
'lucide:wand-2': lucide_react_1.WandSparkles,
|
|
85
|
+
'lucide:x': lucide_react_1.X,
|
|
86
|
+
'lucide:zap': lucide_react_1.Zap,
|
|
87
|
+
// === mingcute (21 icons) mapped to lucide-react ===
|
|
88
|
+
'mingcute:article-line': lucide_react_1.FileText,
|
|
89
|
+
'mingcute:bell-ringing-fill': lucide_react_1.BellRing,
|
|
90
|
+
'mingcute:bookmark-fill': lucide_react_1.Bookmark,
|
|
91
|
+
'mingcute:chart-bar-fill': lucide_react_1.BarChart3,
|
|
92
|
+
'mingcute:comment-2-fill': lucide_react_1.MessageCircle,
|
|
93
|
+
'mingcute:eye-fill': lucide_react_1.Eye,
|
|
94
|
+
'mingcute:file-text-line': lucide_react_1.FileText,
|
|
95
|
+
'mingcute:game-1-fill': lucide_react_1.Gamepad2,
|
|
96
|
+
'mingcute:gift-fill': lucide_react_1.Gift,
|
|
97
|
+
'mingcute:group-fill': lucide_react_1.UsersRound,
|
|
98
|
+
'mingcute:group-line': lucide_react_1.UsersRound,
|
|
99
|
+
'mingcute:hashtag-fill': lucide_react_1.Hash,
|
|
100
|
+
'mingcute:hashtag-line': lucide_react_1.Hash,
|
|
101
|
+
'mingcute:heart-line': lucide_react_1.Heart,
|
|
102
|
+
'mingcute:live-line': lucide_react_1.Radio,
|
|
103
|
+
'mingcute:pic-line': lucide_react_1.Image,
|
|
104
|
+
'mingcute:radio-fill': lucide_react_1.Radio,
|
|
105
|
+
'mingcute:share-forward-line': lucide_react_1.Share2,
|
|
106
|
+
'mingcute:time-fill': lucide_react_1.Clock,
|
|
107
|
+
'mingcute:user-add-line': lucide_react_1.UserPlus,
|
|
108
|
+
'mingcute:video-line': lucide_react_1.Video,
|
|
109
|
+
// === ri / Remix Icons (18 icons) ===
|
|
110
|
+
'ri:arrow-right-fill': ri_1.RiArrowRightFill,
|
|
111
|
+
'ri:group-line': ri_1.RiGroupLine,
|
|
112
|
+
'ri:hashtag': ri_1.RiHashtag,
|
|
113
|
+
'ri:heart-3-fill': ri_1.RiHeart3Fill,
|
|
114
|
+
'ri:heart-3-line': ri_1.RiHeart3Line,
|
|
115
|
+
'ri:heart-line': ri_1.RiHeartLine,
|
|
116
|
+
'ri:live-line': ri_1.RiLiveLine,
|
|
117
|
+
'ri:message-3-fill': ri_1.RiMessage3Fill,
|
|
118
|
+
'ri:pie-chart-2-fill': ri_1.RiPieChart2Fill,
|
|
119
|
+
'ri:share-forward-fill': ri_1.RiShareForwardFill,
|
|
120
|
+
'ri:star-fill': ri_1.RiStarFill,
|
|
121
|
+
'ri:star-line': ri_1.RiStarLine,
|
|
122
|
+
'ri:thumb-up-fill': ri_1.RiThumbUpFill,
|
|
123
|
+
'ri:tiktok-fill': ri_1.RiTiktokFill,
|
|
124
|
+
'ri:trophy-fill': ri_1.RiTrophyFill,
|
|
125
|
+
'ri:user-follow-line': ri_1.RiUserFollowLine,
|
|
126
|
+
'ri:verified-badge-fill': ri_1.RiVerifiedBadgeFill,
|
|
127
|
+
'ri:video-line': ri_1.RiVideoLine,
|
|
128
|
+
// === material-symbols (5 icons) ===
|
|
129
|
+
'material-symbols:fit-screen': md_1.MdFitScreen,
|
|
130
|
+
'material-symbols:info-outline': md_1.MdInfoOutline,
|
|
131
|
+
'material-symbols:lightbulb-outline': md_1.MdLightbulbOutline,
|
|
132
|
+
'material-symbols:location-on': md_1.MdLocationOn,
|
|
133
|
+
'material-symbols:schedule-outline': md_1.MdSchedule,
|
|
134
|
+
// === ant-design (4 icons) ===
|
|
135
|
+
'ant-design:heart-filled': ai_1.AiFillHeart,
|
|
136
|
+
'ant-design:pushpin-filled': ai_1.AiFillPushpin,
|
|
137
|
+
'ant-design:star-filled': ai_1.AiFillStar,
|
|
138
|
+
'ant-design:video-camera-outlined': ai_1.AiOutlineVideoCamera,
|
|
139
|
+
// === fa6-solid (3 icons) ===
|
|
140
|
+
'fa6-solid:music': fa6_1.FaMusic,
|
|
141
|
+
'fa6-solid:comment-dots': fa6_1.FaCommentDots,
|
|
142
|
+
'fa6-solid:user-group': fa6_1.FaUserGroup,
|
|
143
|
+
// === fa6-brands (1 icon) ===
|
|
144
|
+
'fa6-brands:tiktok': fa6_1.FaTiktok,
|
|
145
|
+
// === simple-icons (11 icons) ===
|
|
146
|
+
'simple-icons:github': react_simple_icons_1.SiGithub,
|
|
147
|
+
'simple-icons:bilibili': react_simple_icons_1.SiBilibili,
|
|
148
|
+
'simple-icons:openai': lucide_react_1.Sparkles,
|
|
149
|
+
'simple-icons:anthropic': react_simple_icons_1.SiAnthropic,
|
|
150
|
+
'simple-icons:googlephotos': react_simple_icons_1.SiGooglephotos,
|
|
151
|
+
'simple-icons:xiaomi': react_simple_icons_1.SiXiaomi,
|
|
152
|
+
'simple-icons:oppo': react_simple_icons_1.SiOppo,
|
|
153
|
+
'simple-icons:huawei': react_simple_icons_1.SiHuawei,
|
|
154
|
+
'simple-icons:honor': react_simple_icons_1.SiHonor,
|
|
155
|
+
'simple-icons:vivo': react_simple_icons_1.SiVivo,
|
|
156
|
+
'simple-icons:samsung': react_simple_icons_1.SiSamsung,
|
|
157
|
+
// === tabler (2 icons) mapped to lucide-react ===
|
|
158
|
+
'tabler:message-circle': lucide_react_1.MessageCircle,
|
|
159
|
+
'tabler:scan': lucide_react_1.ScanLine,
|
|
160
|
+
// === ph / phosphor (2 icons) ===
|
|
161
|
+
'ph:play-fill': react_1.Play,
|
|
162
|
+
'ph:question-fill': react_1.Question,
|
|
163
|
+
// === solar (1 icon) mapped to lucide-react ===
|
|
164
|
+
'solar:calendar-linear': lucide_react_1.Calendar,
|
|
165
|
+
// === heroicons-outline (1 icon) mapped to lucide-react ===
|
|
166
|
+
'heroicons-outline:menu-alt-2': lucide_react_1.Menu,
|
|
167
|
+
// === bi (1 icon) ===
|
|
168
|
+
'bi:image': bi_1.BiImage
|
|
169
|
+
};
|
|
170
|
+
exports.DEFAULT_FALLBACK_ICON = lucide_react_1.HelpCircle;
|
|
171
|
+
function resolveIcon(iconName) {
|
|
172
|
+
return exports.iconRegistry[iconName] ?? exports.DEFAULT_FALLBACK_ICON;
|
|
173
|
+
}
|