@hlw-zbzs/gift 1.0.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.
- package/index.ts +7 -0
- package/package.json +64 -0
- package/src/core.ts +93 -0
- package/src/data/bili.json +62 -0
- package/src/data/dy.json +7418 -0
- package/src/data/ks.json +1094 -0
- package/src/data/sph.json +44 -0
- package/src/data/tk.json +3866 -0
- package/src/platforms/bili.ts +9 -0
- package/src/platforms/dy.ts +9 -0
- package/src/platforms/index.ts +28 -0
- package/src/platforms/ks.ts +9 -0
- package/src/platforms/sph.ts +9 -0
- package/src/platforms/tk.ts +9 -0
- package/src/types.d.ts +1 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file 各平台礼物数据集汇总
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import type { PlatformInfo, PlatformType, GiftItem } from '../types'
|
|
6
|
+
import dyGifts from './dy'
|
|
7
|
+
import ksGifts from './ks'
|
|
8
|
+
import sphGifts from './sph'
|
|
9
|
+
import biliGifts from './bili'
|
|
10
|
+
import tkGifts from './tk'
|
|
11
|
+
|
|
12
|
+
export const PLATFORMS: PlatformInfo[] = [
|
|
13
|
+
{ key: 'dy', name: '抖音' },
|
|
14
|
+
{ key: 'ks', name: '快手' },
|
|
15
|
+
{ key: 'sph', name: '视频号' },
|
|
16
|
+
{ key: 'bili', name: '哔哩哔哩' },
|
|
17
|
+
{ key: 'tk', name: 'TikTok' }
|
|
18
|
+
]
|
|
19
|
+
|
|
20
|
+
export const PLATFORM_GIFTS: Record<PlatformType, GiftItem[]> = {
|
|
21
|
+
dy: dyGifts,
|
|
22
|
+
ks: ksGifts,
|
|
23
|
+
sph: sphGifts,
|
|
24
|
+
bili: biliGifts,
|
|
25
|
+
tk: tkGifts
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export { dyGifts, ksGifts, sphGifts, biliGifts, tkGifts }
|
package/src/types.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type * from '../types'
|