karin-plugin-kkk 2.22.0 → 2.23.1

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.
@@ -1706,6 +1706,59 @@ interface QrLoginProps {
1706
1706
  useDarkTheme?: boolean;
1707
1707
  }
1708
1708
  //#endregion
1709
+ //#region ../template/src/types/platforms/other/statistics.d.ts
1710
+ /**
1711
+ * 群组解析统计数据接口
1712
+ */
1713
+ interface GroupStatisticsProps extends BaseComponentProps {
1714
+ data: {
1715
+ /** 是否使用深色主题 */useDarkTheme?: boolean; /** 群组ID */
1716
+ groupId: string; /** 群组名称 */
1717
+ groupName?: string; /** 群组人数 */
1718
+ groupMemberCount?: number; /** 群组头像 */
1719
+ groupAvatar?: string; /** 群组总解析次数 */
1720
+ groupTotalParses: number; /** 群组唯一用户数 */
1721
+ groupUniqueUsers: number; /** 各平台解析数据 */
1722
+ platformData: {
1723
+ douyin: number;
1724
+ bilibili: number;
1725
+ kuaishou: number;
1726
+ xiaohongshu: number;
1727
+ }; /** 全局总群组数 */
1728
+ globalTotalGroups: number; /** 全局总解析次数 */
1729
+ globalTotalParses: number;
1730
+ };
1731
+ }
1732
+ /**
1733
+ * 全局解析统计数据接口
1734
+ */
1735
+ interface GlobalStatisticsProps extends BaseComponentProps {
1736
+ data: {
1737
+ /** 是否使用深色主题 */useDarkTheme?: boolean; /** 所有统计数据 */
1738
+ allStats: Array<{
1739
+ id: number;
1740
+ groupId: string;
1741
+ userId: string;
1742
+ platform: 'douyin' | 'bilibili' | 'kuaishou' | 'xiaohongshu';
1743
+ parseCount: number;
1744
+ createdAt: string;
1745
+ updatedAt: string;
1746
+ }>; /** 历史数据(最近30天) */
1747
+ historyData: Array<{
1748
+ date: string;
1749
+ totalParses: number;
1750
+ douyin: number;
1751
+ bilibili: number;
1752
+ kuaishou: number;
1753
+ xiaohongshu: number;
1754
+ }>; /** 群组信息映射 */
1755
+ groupInfoMap: Record<string, {
1756
+ groupName?: string;
1757
+ groupAvatar?: string;
1758
+ }>;
1759
+ };
1760
+ }
1761
+ //#endregion
1709
1762
  //#region ../template/src/types/index.d.ts
1710
1763
  /**
1711
1764
  * 二维码区域组件属性接口
@@ -1785,10 +1838,14 @@ type XiaohongshuComponentIds = 'noteInfo' | 'comment';
1785
1838
  * 其他平台组件ID
1786
1839
  */
1787
1840
  type OtherComponentIds = 'help' | 'handlerError' | 'changelog' | 'version_warning' | 'qrlogin';
1841
+ /**
1842
+ * 统计平台组件ID
1843
+ */
1844
+ type StatisticsComponentIds = 'group' | 'global';
1788
1845
  /**
1789
1846
  * 路径类型
1790
1847
  */
1791
- type DynamicRenderPath = `douyin/${DouyinComponentIds}` | `bilibili/${BilibiliComponentIds}` | `kuaishou/${KuaishouComponentIds}` | `xiaohongshu/${XiaohongshuComponentIds}` | `other/${OtherComponentIds}`;
1848
+ type DynamicRenderPath = `douyin/${DouyinComponentIds}` | `bilibili/${BilibiliComponentIds}` | `kuaishou/${KuaishouComponentIds}` | `xiaohongshu/${XiaohongshuComponentIds}` | `other/${OtherComponentIds}` | `statistics/${StatisticsComponentIds}`;
1792
1849
  /**
1793
1850
  * 路径到数据类型的精确映射接口
1794
1851
  */
@@ -1825,6 +1882,8 @@ interface PathToDataTypeMap {
1825
1882
  'other/changelog': ChangelogProps['data'];
1826
1883
  'other/version_warning': VersionWarningProps['data'];
1827
1884
  'other/qrlogin': QrLoginProps['data'];
1885
+ 'statistics/group': GroupStatisticsProps['data'];
1886
+ 'statistics/global': GlobalStatisticsProps['data'];
1828
1887
  }
1829
1888
  /**
1830
1889
  * 从路径字符串中提取数据类型的工具类型
@@ -1,4 +1,4 @@
1
1
  import "./rolldown-runtime-BMXAG3ag.js";
2
- import "./vendor-BcMLByns.js";
3
- import { r as reactServerRender, t as template_default } from "./template-B9tgdrVz.js";
2
+ import "./vendor-DxfKHvj-.js";
3
+ import { r as reactServerRender, t as template_default } from "./template-CnW8M_F0.js";
4
4
  export { template_default as default, reactServerRender };