-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathconstants.ts
64 lines (62 loc) · 1.4 KB
/
constants.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import { FilterTypes } from "./FilterTypes"
const base = new URL(location.href).origin
export const SHARE_TARGET_PICKER_FIXED_ARGUMENT_LIST = [
{
label: 'text',
value: {
type: 'text',
text: 'Hello, World!',
},
},
{
label: 'sticker',
value: {
type: 'sticker',
packageId: '446',
stickerId: '1988',
},
},
{
label: 'image',
value: {
type: 'image',
originalContentUrl: `${base}/assets/stp_image.jpg`,
previewImageUrl: `${base}/assets/stp_image.jpg`,
},
},
{
label: 'video',
value: {
type: 'video',
originalContentUrl: `${base}/assets/stp_video.mp4`,
previewImageUrl: `${base}/assets/stp_image.jpg`,
trackingId: 'track-id',
},
},
{
label: 'audio',
value: {
type: 'audio',
originalContentUrl: `${base}/assets/stp_audio.mp3`,
duration: 60000,
},
},
{
label: 'location',
value: {
type: 'location',
title: 'my location',
address: '〒102-8282 東京都千代田区紀尾井町1番3号',
latitude: 35.67966,
longitude: 139.73669,
},
},
].map(({ label, value }) => ({
label,
value: JSON.stringify(value, null, 4),
}))
export const QR_IMG_MAP = {
[FilterTypes.LIFF]: `${base}/assets/qr_liff.png`,
[FilterTypes.MINI]: `${base}/assets/qr_mini.png`,
[FilterTypes.MINI_PREVIEW]: `${base}/assets/qr_mini_preview.png`,
}