karin-plugin-kkk 2.20.2 → 2.21.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 +69 -0
- package/config/default_config/app.yaml +6 -6
- package/config/default_config/bilibili.yaml +3 -3
- package/config/default_config/douyin.yaml +0 -3
- package/config/default_config/kuaishou.yaml +0 -3
- package/config/default_config/xiaohongshu.yaml +0 -3
- package/lib/apps/admin.js +4 -4
- package/lib/apps/help.js +3 -3
- package/lib/apps/push.js +3 -3
- package/lib/apps/qrlogin.js +3 -3
- package/lib/apps/tools.js +3 -3
- package/lib/apps/update.js +3 -3
- package/lib/build-metadata.json +5 -5
- package/lib/core_chunk/{main-Du8yBcGG.js → main-eqK3KHoJ.js} +988 -328
- package/lib/core_chunk/{template-CQ-u6h09.js → template-n3eb7E79.js} +757 -360
- package/lib/core_chunk/template.d.mts +25 -6
- package/lib/core_chunk/template.js +2 -2
- package/lib/core_chunk/{vendor-B3KhGHI_.js → vendor-CYCcUtqE.js} +137541 -136555
- package/lib/index.js +3 -3
- package/lib/karin-plugin-kkk.css +189 -100
- package/lib/root.js +1 -1
- package/lib/web.config.js +3 -3
- package/package.json +3 -4
|
@@ -627,8 +627,8 @@ interface SubCommentItem {
|
|
|
627
627
|
frame?: string;
|
|
628
628
|
/** 评论内容 */
|
|
629
629
|
message: string;
|
|
630
|
-
/**
|
|
631
|
-
|
|
630
|
+
/** 评论所有图片 */
|
|
631
|
+
pictures: string[];
|
|
632
632
|
/** 创建时间 */
|
|
633
633
|
ctime: string;
|
|
634
634
|
/** IP标签/地理位置 */
|
|
@@ -664,8 +664,8 @@ interface CommentItem {
|
|
|
664
664
|
status_label?: string | null;
|
|
665
665
|
/** 评论内容 */
|
|
666
666
|
message: string;
|
|
667
|
-
/**
|
|
668
|
-
|
|
667
|
+
/** 评论所有图片 */
|
|
668
|
+
pictures: string[];
|
|
669
669
|
/** VIP状态 */
|
|
670
670
|
vipstatus?: number;
|
|
671
671
|
/** 贴纸 */
|
|
@@ -1084,7 +1084,14 @@ interface BilibiliVideoDynamicProps extends BaseComponentProps {
|
|
|
1084
1084
|
fans: string | number; /** 动态类型 */
|
|
1085
1085
|
dynamicTYPE: string; /** 分享链接 */
|
|
1086
1086
|
share_url: string; /** 动态ID */
|
|
1087
|
-
dynamic_id: string;
|
|
1087
|
+
dynamic_id: string; /** 共创者列表 (可选) */
|
|
1088
|
+
staff?: Array<{
|
|
1089
|
+
/** 用户ID */mid: number; /** 职位标题 (UP主/参演) */
|
|
1090
|
+
title: string; /** 用户名 */
|
|
1091
|
+
name: string; /** 头像URL */
|
|
1092
|
+
face: string; /** 粉丝数 */
|
|
1093
|
+
follower: number;
|
|
1094
|
+
}>;
|
|
1088
1095
|
};
|
|
1089
1096
|
/** 预生成的二维码数据URL */
|
|
1090
1097
|
qrCodeDataUrl?: string;
|
|
@@ -1799,6 +1806,7 @@ declare class ResourcePathManager {
|
|
|
1799
1806
|
private packageDir;
|
|
1800
1807
|
private NODE_ENV;
|
|
1801
1808
|
private static initialized;
|
|
1809
|
+
private isDevelopment;
|
|
1802
1810
|
constructor();
|
|
1803
1811
|
/**
|
|
1804
1812
|
* 获取包目录路径
|
|
@@ -1808,7 +1816,7 @@ declare class ResourcePathManager {
|
|
|
1808
1816
|
/**
|
|
1809
1817
|
* 查找开发环境目录
|
|
1810
1818
|
* @param cwd 当前工作目录
|
|
1811
|
-
* @returns
|
|
1819
|
+
* @returns 开发环境目录路径,如果找不到返回 null
|
|
1812
1820
|
*/
|
|
1813
1821
|
private findDevelopmentDir;
|
|
1814
1822
|
/**
|
|
@@ -1840,12 +1848,23 @@ declare class ResourcePathManager {
|
|
|
1840
1848
|
private isPluginMode;
|
|
1841
1849
|
/**
|
|
1842
1850
|
* 获取静态资源路径配置
|
|
1851
|
+
* 统一处理开发和生产环境的资源路径
|
|
1843
1852
|
* @returns 静态资源路径配置对象
|
|
1844
1853
|
*/
|
|
1845
1854
|
getResourcePaths(): {
|
|
1846
1855
|
cssDir: string;
|
|
1847
1856
|
imageDir: string;
|
|
1848
1857
|
};
|
|
1858
|
+
/**
|
|
1859
|
+
* 获取所有可能的资源路径
|
|
1860
|
+
* @returns 可能的 CSS 和图片路径列表
|
|
1861
|
+
*/
|
|
1862
|
+
private getPossibleResourcePaths;
|
|
1863
|
+
/**
|
|
1864
|
+
* 从当前模块路径向上查找 karin-plugin-kkk 包
|
|
1865
|
+
* @returns karin-plugin-kkk 包的路径,如果找不到返回 null
|
|
1866
|
+
*/
|
|
1867
|
+
private findKarinPluginKkkPackage;
|
|
1849
1868
|
}
|
|
1850
1869
|
/**
|
|
1851
1870
|
* 渲染器配置选项接口
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "./rolldown-runtime-BMXAG3ag.js";
|
|
2
|
-
import "./vendor-
|
|
3
|
-
import { r as reactServerRender, t as template_default } from "./template-
|
|
2
|
+
import "./vendor-CYCcUtqE.js";
|
|
3
|
+
import { r as reactServerRender, t as template_default } from "./template-n3eb7E79.js";
|
|
4
4
|
export { template_default as default, reactServerRender };
|