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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/// Canonical vendor identifier for WeChat Mini-Program.
pub const MINIAPP_VENDOR_WECHAT: &str = "wechat";
/// Canonical vendor identifier for Alipay Mini-Program.
pub const MINIAPP_VENDOR_ALIPAY: &str = "alipay";
/// Canonical vendor identifier for Douyin / ByteDance Mini-Program.
pub const MINIAPP_VENDOR_DOUYIN: &str = "douyin";
/// Canonical vendor identifier for Baidu Smart Mini-Program.
pub const MINIAPP_VENDOR_BAIDU: &str = "baidu";
/// Canonical vendor identifier for QQ Mini-Program.
pub const MINIAPP_VENDOR_QQ: &str = "qq";
/// Canonical vendor identifier for Kuaishou Mini-Program.
pub const MINIAPP_VENDOR_KUAISHOU: &str = "kuaishou";
/// Canonical vendor identifier for HarmonyOS Atomic Service.
pub const MINIAPP_VENDOR_HARMONY_ATOMIC: &str = "harmony-atomic";
/// Global JS runtime namespace for WeChat (`wx`).
pub const MINIAPP_GLOBAL_WECHAT: &str = "wx";
/// Global JS runtime namespace for Alipay (`my`).
pub const MINIAPP_GLOBAL_ALIPAY: &str = "my";
/// Global JS runtime namespace for Douyin (`tt`).
pub const MINIAPP_GLOBAL_DOUYIN: &str = "tt";
/// Global JS runtime namespace for Baidu (`swan`).
pub const MINIAPP_GLOBAL_BAIDU: &str = "swan";
/// Global JS runtime namespace for QQ (`qq`).
pub const MINIAPP_GLOBAL_QQ: &str = "qq";
/// Global JS runtime namespace for Kuaishou (`ks`).
pub const MINIAPP_GLOBAL_KUAISHOU: &str = "ks";
/// Global runtime namespace identifier for HarmonyOS Atomic Service (`atomic`).
pub const MINIAPP_GLOBAL_HARMONY_ATOMIC: &str = "atomic";
/// Extra vertical breathing margin below the host capsule button in logical dp.
pub const MINIAPP_CAPSULE_BOTTOM_GAP_DP: f32 = 6.0;
/// Default mini-program viewport logical width in dp.
pub const MINIAPP_DEFAULT_WIDTH: u32 = 390;
/// Default mini-program viewport logical height in dp.
pub const MINIAPP_DEFAULT_HEIGHT: u32 = 844;
/// Default mini-program display pixel ratio.
pub const MINIAPP_DEFAULT_DPR: f32 = 3.0;
/// Default mini-program status bar height in logical dp.
pub const MINIAPP_DEFAULT_STATUS_BAR_DP: f32 = 44.0;
/// Default mini-program bottom home indicator inset in logical dp.
pub const MINIAPP_DEFAULT_SAFE_BOTTOM_DP: f32 = 34.0;
/// Default mini-program capsule button width in logical dp.
pub const MINIAPP_DEFAULT_CAPSULE_W: f32 = 87.0;
/// Default mini-program capsule button height in logical dp.
pub const MINIAPP_DEFAULT_CAPSULE_H: f32 = 32.0;
/// Default mini-program capsule right edge margin in logical dp.
pub const MINIAPP_DEFAULT_CAPSULE_RIGHT_MARGIN: f32 = 10.0;
/// Default mini-program route path.
pub const MINIAPP_DEFAULT_ROUTE: &str = "/pages/index/index";
/// Default mini-program BCP-47 language tag.
pub const MINIAPP_DEFAULT_LANGUAGE: &str = "zh-CN";
/// WeChat/QQ/Douyin/Kuaishou markup template file extension (`wxml` / `axml` / `ttml` / `swan` / `qml` / `ksml` / `ets`).
pub const MINIAPP_EXT_WXML: &str = "wxml";
pub const MINIAPP_EXT_AXML: &str = "axml";
pub const MINIAPP_EXT_TTML: &str = "ttml";
pub const MINIAPP_EXT_SWAN: &str = "swan";
pub const MINIAPP_EXT_QML: &str = "qml";
pub const MINIAPP_EXT_KSML: &str = "ksml";
pub const MINIAPP_EXT_ETS: &str = "ets";