From 3d998f54e3d18f8be42e64c27bcfbc020487a110 Mon Sep 17 00:00:00 2001 From: snowtafir Date: Thu, 17 Oct 2024 20:19:29 +0800 Subject: [PATCH] optimize: img-dev --- jsxp.config.tsx | 120 +++++++++++++++++++++++++----------------------- package.json | 2 +- 2 files changed, 64 insertions(+), 58 deletions(-) diff --git a/jsxp.config.tsx b/jsxp.config.tsx index d627a6d..73c2542 100644 --- a/jsxp.config.tsx +++ b/jsxp.config.tsx @@ -4,9 +4,9 @@ import QRCode from 'qrcode'; import { defineConfig } from 'jsxp'; const Page = (await import(`./components/dynamic/MainPage.tsx`)).default; -//const Page = (await import('./components/version/version.tsx')).default; -//const Page = (await import('./components/help/Help.tsx')).default; -//const Page = (await import('./components/loginQrcode/Page.tsx')).default; +const Version = (await import('./components/version/Version.tsx')).default; +const Help = (await import('./components/help/Help.tsx')).default; +const LoginQrcode = (await import('./components/loginQrcode/Page.tsx')).default; //网页在线url图片资源加载不出,需到对应组件img标签添加:referrerPolicy='no-referrer' const props = { @@ -47,67 +47,73 @@ const props = { } }; -/* const props ={ -data:{[ - { - "version": "2.0.0", - "data": [ - "- 新增自动刷新tempck配置可选项,B站功能添加查看app扫码获取的登录ck的有效状态", - "- #我的B站登陆 详细使用方法请查看 \"#闲心帮助\"" - ] - }, - { - "version": "1.0.0", - "data": [ - "1.支持Yunzai-V4 初版" - ] - } - ]} - } */ +const versionProps = { + data: [ + { + version: '2.0.0', + data: [ + '- 新增自动刷新tempck配置可选项,B站功能添加查看app扫码获取的登录ck的有效状态', + '- #我的B站登陆 详细使用方法请查看 "#闲心帮助"' + ] + }, + { + version: '1.0.0', + data: ['1.支持Yunzai-V4 初版'] + } + ] +}; -/* const props ={ -data:{[ - { - "group": "B站功能", - "list": [ - { icon: "树脂", title: "#订阅B站推送UID
#订阅B站 图文 推送UID", desc: "检测up的B站动态进行推送" }, - { icon: "树脂", title: "#B站动态转发
#转发B站动态", desc: "将B站动态转发到其他平台" }, - { icon: "树脂", title: "#B站动态评论
#评论B站动态", desc: "对B站动态进行评论" }, - { icon: "树脂", title: "#B站动态点赞
#点赞B站动态", desc: "对B站动态进行点赞" }, - { icon: "树脂", title: "#B站动态收藏
#收藏B站动态", desc: "对B站动态进行收藏" }, - { icon: "树脂", title: "#B站动态分享
#分享B站动态", desc: "分享B站动态到其他平台" }, - { icon: "树脂", title: "#B站动态转发到QQ空间
#转发B站动态到QQ空间", desc: "将B站动态转发到QQ空间" }, - { icon: "树脂", title: "#B站动态转发到微博
#转发B站动态到微博", desc: "将B站动态转发到微博" }, - ] - }, - { - "group": "微博功能", - "list": [ - { icon: "树脂", title: "#订阅微博推送UID
#订阅微博 图文 推送UID", desc: "检测up的微博动态进行推送" }, - { icon: "树脂", title: "#微博动态转发
#转发微博动态", desc: "将微博动态转发到其他平台" }, - { icon: "树脂", title: "#微博动态评论
#评论微博动态", desc: "对微博动态进行评论" }, - { icon: "树脂", title: "#微博动态点赞
#点赞微博动态", desc: "对微博动态进行点赞" }, - { icon: "树脂", title: "#微博动态收藏
#收藏微博动态", desc: "对微博动态进行收藏" }, - { icon: "树脂", title: "#微博动态分享
#分享微博动态", desc: "分享微博动态到其他平台" }, - { icon: "树脂", title: "#微博动态转发到B站
#转发微博动态到B站", desc: "将微博动态转发到B站" }, - { icon: "树脂", title: "#微博动态转发到QQ空间
#转发微博动态到QQ空间", desc: "将微博动态转发到QQ空间" }, - { icon: "树脂", title: "#微博动态转发到微信
#转发微博动态到微信", desc: "将微博动态转发到微信" }, - ] - } - ]} - } */ +const helpProps = { + data: [ + { + group: 'B站功能', + list: [ + { icon: '树脂', title: '#订阅B站推送UID
#订阅B站 图文 推送UID', desc: '检测up的B站动态进行推送' }, + { icon: '树脂', title: '#B站动态转发
#转发B站动态', desc: '将B站动态转发到其他平台' }, + { icon: '树脂', title: '#B站动态评论
#评论B站动态', desc: '对B站动态进行评论' }, + { icon: '树脂', title: '#B站动态点赞
#点赞B站动态', desc: '对B站动态进行点赞' }, + { icon: '树脂', title: '#B站动态收藏
#收藏B站动态', desc: '对B站动态进行收藏' }, + { icon: '树脂', title: '#B站动态分享
#分享B站动态', desc: '分享B站动态到其他平台' }, + { icon: '树脂', title: '#B站动态转发到QQ空间
#转发B站动态到QQ空间', desc: '将B站动态转发到QQ空间' }, + { icon: '树脂', title: '#B站动态转发到微博
#转发B站动态到微博', desc: '将B站动态转发到微博' } + ] + }, + { + group: '微博功能', + list: [ + { icon: '树脂', title: '#订阅微博推送UID
#订阅微博 图文 推送UID', desc: '检测up的微博动态进行推送' }, + { icon: '树脂', title: '#微博动态转发
#转发微博动态', desc: '将微博动态转发到其他平台' }, + { icon: '树脂', title: '#微博动态评论
#评论微博动态', desc: '对微博动态进行评论' }, + { icon: '树脂', title: '#微博动态点赞
#点赞微博动态', desc: '对微博动态进行点赞' }, + { icon: '树脂', title: '#微博动态收藏
#收藏微博动态', desc: '对微博动态进行收藏' }, + { icon: '树脂', title: '#微博动态分享
#分享微博动态', desc: '分享微博动态到其他平台' }, + { icon: '树脂', title: '#微博动态转发到B站
#转发微博动态到B站', desc: '将微博动态转发到B站' }, + { icon: '树脂', title: '#微博动态转发到QQ空间
#转发微博动态到QQ空间', desc: '将微博动态转发到QQ空间' }, + { icon: '树脂', title: '#微博动态转发到微信
#转发微博动态到微信', desc: '将微博动态转发到微信' } + ] + } + ] +}; -/* const props ={ - data:{ - { - url: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIIAAACCCAYAAACKAxD9AAAAAXNSR0IArs4c6QAACYNJREFUeF7tnet24kAMg9v3f+jugcAhTGLnkz2hZdH+3E7mYsuy7Azw/fX19fN1wr+fn8e039/fuyuQMZcH1+PWE0XzjotFz0fHXs+bPauei+4jWp+et+LOi4cMhMFyBkIFSsEzJNrJGDPCMbPOcNsTI1Dq6lLq/fks8gjt0jRBAXefr2uHyr6IMylTqXNdxhsIO1YzEFYCj6BqHKMi1oygyTPVvpkPR8YNGYEo1DFyVLWbUTapFKLnqdInKYOyA3ESsSnVRJntIwBk5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FAbCymIGwj58iF0qDEbazeOYFiN0+/D0HQZpOlUij0Q3felUcRhhPZJiM3FM1zAQDtBgIIhfYPWq8rEbIbRMva9jIBgIVywYCBM/11ARL5XIJ1FM5qXahYx71UsnYuOok3n5f1kjRIa8Thb0sskmZ4q9LIoNhMUC7arBQHhY4L9lBLXBQstHVaBR4UnKvz307z2nnj2b96y5aIlKmDl916AewEDY/+0G1Y4UVAYCDf1gHGGks5xHt67qqEobPb2hFH2ugRiPHlLNpZnwzJQv2Y+6F2oHMi/Z34wxpHU9rvNUNZx1GDIvrdcNhGOoGAjHNgo/PkfKymx6AnawvSlDSkBQv4K3slMicigFZ+Xr/W9dEdvNvxRUBDxUu1QqhSd2NRC20DYQKuEOnjEjLEbKmIpUDZmp24ww8/Iqoe3oMN0Wc5dCAZ53nUmf2xunpoa0/APt/ZTpDATNlRUtE61gIOxYxoxw3KV8GSNQeiX0TtCuxWIu6iqR2j0vsQM9Y6Xke1L9zYvDYUOJHiDajIGgWdBA0Oz1NLoLNjPCw5xmhAYQPyI1kJxbeT9A8tplTJcqyTpdRonKZWK77IxdbJJzbXzXeftoIDxcRow/OrjyDAEJmddAWFmSGIwYvhrdM9dX2enPAiFjF9KQoQ57Rbubtos7beFuuzq9vKoidGZqMBAevzNdASvxXTamdTHFQNA0ArXXxwGBKPuKwKL9gYrBSZoilD/qioot1L1EOuLy/7/KCJXDqxSYaQcDATSUSC1MqY4IObIeVedmhH29UWIE4rxxDIkwOi+hV9p0oir+vrfuObrPR0yZAbxzxjQ1UIdVNk3mNhAWK1FQGQg3VNF39Rk9mhFIiIpjSJ7uop1uKdoL1SUqeKLxdD0iiLOzE9tv0vpvXlUzEPbdaSAEMKeRFEWJGeGYO6d+FzOh0Iq4NBCOHanafpzxH6keYzSbSuU3AAAAAElFTkSuQmCC' + } +}; export default defineConfig({ routes: { '/dynamic': { component: + }, + '/version': { + component: + }, + '/help': { + component: + }, + '/login': { + component: } } }); diff --git a/package.json b/package.json index 7fee5f3..46f2340 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "yuki-plugin", - "version": "2.0.5-3", + "version": "2.0.5-4", "author": "snowtafir", "description": "优纪插件,yunzai-V4 关于 微博推送、B站推送 等功能的拓展插件", "main": "./index",