karin-plugin-kkk 2.18.3 → 2.19.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 +24 -0
- package/README.md +1 -1
- package/config/default_config/pushlist.yaml +8 -0
- package/lib/apps/admin.js +3 -3
- 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-DFGREgML.js → main-Dj5f-cmP.js} +913 -136
- package/lib/core_chunk/{template-BBVRQ9ag.js → template-CHNHRIxO.js} +1064 -496
- package/lib/core_chunk/template.d.mts +65 -4
- package/lib/core_chunk/template.js +2 -2
- package/lib/core_chunk/{vendor-B-twx8Ds.js → vendor-BsdYKPEs.js} +434 -309
- package/lib/index.js +3 -3
- package/lib/karin-plugin-kkk.css +497 -11
- package/lib/root.js +1 -1
- package/lib/web.config.js +3 -3
- package/package.json +2 -2
|
@@ -95,7 +95,8 @@ interface DouyinDynamicProps extends BaseComponentProps {
|
|
|
95
95
|
获赞: string; /** 关注数 */
|
|
96
96
|
关注: string; /** 粉丝数 */
|
|
97
97
|
粉丝: string; /** 分享链接 */
|
|
98
|
-
share_url: string; /**
|
|
98
|
+
share_url: string; /** 动态类型 */
|
|
99
|
+
dynamicTYPE?: string; /** 合作信息 */
|
|
99
100
|
cooperation_info?: {
|
|
100
101
|
co_creator_nums: number;
|
|
101
102
|
co_creators: Array<{
|
|
@@ -111,6 +112,35 @@ interface DouyinDynamicProps extends BaseComponentProps {
|
|
|
111
112
|
qrCodeDataUrl: string;
|
|
112
113
|
}
|
|
113
114
|
//#endregion
|
|
115
|
+
//#region ../template/src/types/platforms/douyin/favorite-list.d.ts
|
|
116
|
+
/**
|
|
117
|
+
* 抖音喜欢列表组件属性接口
|
|
118
|
+
* 用于展示"谁喜欢了谁的作品"
|
|
119
|
+
*/
|
|
120
|
+
interface DouyinFavoriteListProps extends BaseComponentProps {
|
|
121
|
+
/** 渲染请求数据 */
|
|
122
|
+
data: {
|
|
123
|
+
/** 是否使用深色主题 */useDarkTheme?: boolean; /** 作品封面图片URL */
|
|
124
|
+
image_url: string; /** 作品描述内容 */
|
|
125
|
+
desc: string; /** 点赞数 */
|
|
126
|
+
dianzan: string; /** 评论数 */
|
|
127
|
+
pinglun: string; /** 收藏数 */
|
|
128
|
+
shouchang: string; /** 分享数 */
|
|
129
|
+
share: string; /** 推荐数 */
|
|
130
|
+
tuijian: string; /** 作品创建时间 */
|
|
131
|
+
create_time: string; /** 点赞者(订阅者)用户名 */
|
|
132
|
+
liker_username: string; /** 点赞者头像URL */
|
|
133
|
+
liker_avatar: string; /** 点赞者抖音号 */
|
|
134
|
+
liker_douyin_id: string; /** 作品作者用户名 */
|
|
135
|
+
author_username: string; /** 作品作者头像URL */
|
|
136
|
+
author_avatar: string; /** 作品作者抖音号 */
|
|
137
|
+
author_douyin_id: string; /** 分享链接 */
|
|
138
|
+
share_url: string;
|
|
139
|
+
};
|
|
140
|
+
/** 预生成的二维码数据URL */
|
|
141
|
+
qrCodeDataUrl: string;
|
|
142
|
+
}
|
|
143
|
+
//#endregion
|
|
114
144
|
//#region ../template/src/types/platforms/douyin/live.d.ts
|
|
115
145
|
/**
|
|
116
146
|
* 抖音直播组件属性接口
|
|
@@ -159,6 +189,34 @@ interface DouyinMusicInfoProps extends BaseComponentProps {
|
|
|
159
189
|
qrCodeDataUrl: string;
|
|
160
190
|
}
|
|
161
191
|
//#endregion
|
|
192
|
+
//#region ../template/src/types/platforms/douyin/recommend-list.d.ts
|
|
193
|
+
/**
|
|
194
|
+
* 抖音推荐列表组件属性接口
|
|
195
|
+
*/
|
|
196
|
+
interface DouyinRecommendListProps extends BaseComponentProps {
|
|
197
|
+
/** 渲染请求数据 */
|
|
198
|
+
data: {
|
|
199
|
+
/** 是否使用深色主题 */useDarkTheme?: boolean; /** 图片URL */
|
|
200
|
+
image_url: string; /** 描述内容 */
|
|
201
|
+
desc: string; /** 点赞数 */
|
|
202
|
+
dianzan: string; /** 评论数 */
|
|
203
|
+
pinglun: string; /** 收藏数 */
|
|
204
|
+
shouchang: string; /** 推荐数 */
|
|
205
|
+
tuijian: string; /** 分享数 */
|
|
206
|
+
share: string; /** 创建时间 */
|
|
207
|
+
create_time: string; /** 推荐者(订阅者)用户名 */
|
|
208
|
+
recommender_username: string; /** 推荐者头像URL */
|
|
209
|
+
recommender_avatar: string; /** 推荐者抖音号 */
|
|
210
|
+
recommender_douyin_id: string; /** 作品作者用户名 */
|
|
211
|
+
author_username: string; /** 作品作者头像URL */
|
|
212
|
+
author_avatar: string; /** 作品作者抖音号 */
|
|
213
|
+
author_douyin_id: string; /** 分享链接 */
|
|
214
|
+
share_url: string;
|
|
215
|
+
};
|
|
216
|
+
/** 预生成的二维码数据URL */
|
|
217
|
+
qrCodeDataUrl: string;
|
|
218
|
+
}
|
|
219
|
+
//#endregion
|
|
162
220
|
//#region ../template/src/types/platforms/douyin/userlist.d.ts
|
|
163
221
|
/**
|
|
164
222
|
* 抖音用户列表组件属性接口
|
|
@@ -178,7 +236,8 @@ interface DouyinUserListProps extends BaseComponentProps {
|
|
|
178
236
|
fans: string; /** 获赞总数 */
|
|
179
237
|
total_favorited: string; /** 关注数 */
|
|
180
238
|
following_count: string; /** 全局推送开关状态 */
|
|
181
|
-
switch: boolean;
|
|
239
|
+
switch: boolean; /** 推送类型列表 */
|
|
240
|
+
pushTypes: string[];
|
|
182
241
|
}[];
|
|
183
242
|
};
|
|
184
243
|
}
|
|
@@ -1583,7 +1642,7 @@ interface BaseComponentProps<T = Record<string, any>> extends Pick<RenderRequest
|
|
|
1583
1642
|
/**
|
|
1584
1643
|
* 抖音平台组件ID
|
|
1585
1644
|
*/
|
|
1586
|
-
type DouyinComponentIds = 'comment' | 'dynamic' | 'live' | 'musicinfo' | 'user_profile' | 'userlist' | 'videoInfo' | 'user_videolist' | 'qrcodeImg';
|
|
1645
|
+
type DouyinComponentIds = 'comment' | 'dynamic' | 'favorite-list' | 'live' | 'musicinfo' | 'recommend-list' | 'user_profile' | 'userlist' | 'videoInfo' | 'user_videolist' | 'qrcodeImg';
|
|
1587
1646
|
/**
|
|
1588
1647
|
* B站平台组件ID
|
|
1589
1648
|
*/
|
|
@@ -1610,8 +1669,10 @@ type DynamicRenderPath = `douyin/${DouyinComponentIds}` | `bilibili/${BilibiliCo
|
|
|
1610
1669
|
interface PathToDataTypeMap {
|
|
1611
1670
|
'douyin/comment': DouyinCommentProps['data'];
|
|
1612
1671
|
'douyin/dynamic': DouyinDynamicProps['data'];
|
|
1672
|
+
'douyin/favorite-list': DouyinFavoriteListProps['data'];
|
|
1613
1673
|
'douyin/live': DouyinLiveProps['data'];
|
|
1614
1674
|
'douyin/musicinfo': DouyinMusicInfoProps['data'];
|
|
1675
|
+
'douyin/recommend-list': DouyinRecommendListProps['data'];
|
|
1615
1676
|
'douyin/user_profile': DouyinUserVideoListProps['data'];
|
|
1616
1677
|
'douyin/userlist': DouyinUserListProps['data'];
|
|
1617
1678
|
'douyin/videoInfo': DouyinVideoInfoProps['data'];
|
|
@@ -1646,7 +1707,7 @@ type ExtractDataTypeFromPath<P extends string> = P extends keyof PathToDataTypeM
|
|
|
1646
1707
|
*/
|
|
1647
1708
|
interface DataTypeMap {
|
|
1648
1709
|
/** 抖音平台数据类型 */
|
|
1649
|
-
douyin: DouyinCommentProps['data'] | DouyinDynamicProps['data'] | DouyinLiveProps['data'] | DouyinMusicInfoProps['data'] | DouyinQrcodeImgProps['data'];
|
|
1710
|
+
douyin: DouyinCommentProps['data'] | DouyinDynamicProps['data'] | DouyinFavoriteListProps['data'] | DouyinLiveProps['data'] | DouyinMusicInfoProps['data'] | DouyinQrcodeImgProps['data'] | DouyinRecommendListProps['data'];
|
|
1650
1711
|
/** B站平台数据类型 */
|
|
1651
1712
|
bilibili: BilibiliCommentProps['data'] | BilibiliForwardDynamicProps['data'];
|
|
1652
1713
|
/** 快手平台数据类型 */
|
|
@@ -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-BsdYKPEs.js";
|
|
3
|
+
import { r as reactServerRender, t as template_default } from "./template-CHNHRIxO.js";
|
|
4
4
|
export { template_default as default, reactServerRender };
|