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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
/// 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 JD Mini-Program.
pub const MINIAPP_VENDOR_JD: &str = "jd";
/// Canonical vendor identifier for Xiaohongshu Mini-Program.
pub const MINIAPP_VENDOR_XHS: &str = "xhs";
/// Canonical vendor identifier for DingTalk Mini-Program.
pub const MINIAPP_VENDOR_DINGTALK: &str = "dingtalk";
/// Canonical vendor identifier for Feishu / Lark Mini-Program.
pub const MINIAPP_VENDOR_FEISHU: &str = "feishu";
/// Canonical vendor identifier for Taobao Mini-Program.
pub const MINIAPP_VENDOR_TAOBAO: &str = "taobao";
/// Canonical vendor identifier for Meituan Mini-Program.
pub const MINIAPP_VENDOR_MEITUAN: &str = "meituan";
/// 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 JS runtime namespace for JD (`jd`).
pub const MINIAPP_GLOBAL_JD: &str = "jd";
/// Global JS runtime namespace for Xiaohongshu (`xhs`).
pub const MINIAPP_GLOBAL_XHS: &str = "xhs";
/// Global JS runtime namespace for DingTalk (`dd`).
pub const MINIAPP_GLOBAL_DINGTALK: &str = "dd";
/// Global JS runtime namespace for Feishu (`tt`).
pub const MINIAPP_GLOBAL_FEISHU: &str = "tt";
/// Global JS runtime namespace for Taobao (`my`).
pub const MINIAPP_GLOBAL_TAOBAO: &str = "my";
/// Global JS runtime namespace for Meituan (`mt`).
pub const MINIAPP_GLOBAL_MEITUAN: &str = "mt";
/// 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";
/// Mini-program markup template file extensions across all 13 vendors.
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_JXML: &str = "jxml";
pub const MINIAPP_EXT_XHSML: &str = "xhsml";
pub const MINIAPP_EXT_MXML: &str = "mxml";
pub const MINIAPP_EXT_ETS: &str = "ets";
pub const MINIAPP_STYLE_WXSS: &str = "wxss";
pub const MINIAPP_STYLE_ACSS: &str = "acss";
pub const MINIAPP_STYLE_TTSS: &str = "ttss";
pub const MINIAPP_STYLE_CSS: &str = "css";
pub const MINIAPP_STYLE_QSS: &str = "qss";
pub const MINIAPP_STYLE_JXSS: &str = "jxss";
pub const MINIAPP_STYLE_MXSS: &str = "mxss";
pub const MINIAPP_STYLE_ETS: &str = "ets";
pub const MINIAPP_CFG_PROJECT_CONFIG: &str = "project.config.json";
pub const MINIAPP_CFG_MINI_PROJECT: &str = "mini.project.json";
pub const MINIAPP_CFG_PROJECT_SWAN: &str = "project.swan.json";
pub const MINIAPP_CFG_MODULE_JSON5: &str = "module.json5";
pub const MINIAPP_WASM_WX: &str = "WXWebAssembly";
pub const MINIAPP_WASM_MY: &str = "MYWebAssembly";
pub const MINIAPP_WASM_TT: &str = "TTWebAssembly";
pub const MINIAPP_WASM_QQ: &str = "QQWebAssembly";
pub const MINIAPP_WASM_STD: &str = "WebAssembly";
pub const MINIAPP_ALIAS_BYTEDANCE: &str = "bytedance";
pub const MINIAPP_ALIAS_JINGDONG: &str = "jingdong";
pub const MINIAPP_ALIAS_XIAOHONGSHU: &str = "xiaohongshu";
pub const MINIAPP_ALIAS_RED: &str = "red";
pub const MINIAPP_ALIAS_LARK: &str = "lark";
pub const MINIAPP_ALIAS_TB: &str = "tb";
pub const MINIAPP_ALIAS_ATOMIC: &str = "atomic";