@macle-community/simulator-web 0.0.0-stage → 1.0.0
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/README.md +125 -2
- package/bin/macle-web-simulator.js +108 -0
- package/package.json +37 -4
- package/runtime/framework/service/service.js +1 -0
- package/runtime/framework/view/view.js +1 -0
- package/runtime/remoteDebug/adapter.js +1 -0
- package/runtime/remoteDebug/service.html +16 -0
- package/runtime/remoteDebug/sub-packages.js +1 -0
- package/runtime/simulator/config/config.json +40 -0
- package/runtime/simulator/css/common.css +945 -0
- package/runtime/simulator/index.html +95 -0
- package/runtime/simulator/mockApi.json +1 -0
- package/runtime/simulator/native/native.js +1 -0
- package/runtime/simulator/public/default-user-avatar@128w.jpg +0 -0
- package/runtime/simulator/service/app.js +1 -0
- package/runtime/simulator/service/service.html +14 -0
- package/runtime/simulator/service/sync-api.js +1 -0
- package/runtime/simulator/version.json +1 -0
- package/runtime/simulator/view/webview.js +1 -0
- package/src/compiler.js +117 -0
- package/src/mock-backend.js +225 -0
- package/src/project-parser.js +87 -0
- package/src/server.js +334 -0
- package/src/watcher.js +76 -0
- package/web/index.html +234 -0
- package/web/qrcode.js +1145 -0
- package/web/simulator.css +526 -0
- package/web/simulator.js +510 -0
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="zh-CN">
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="UTF-8" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover" />
|
|
7
|
+
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline' 'unsafe-eval' https://maps.googleapis.com">
|
|
8
|
+
<link rel="icon" href="data:image/ico;base64,aWNv">
|
|
9
|
+
<link rel="stylesheet" href="css/common.css">
|
|
10
|
+
<script type="text/javascript" src="native/native.js"></script>
|
|
11
|
+
<style>
|
|
12
|
+
body {
|
|
13
|
+
background-color: rgb(248, 248, 248);
|
|
14
|
+
}
|
|
15
|
+
</style>
|
|
16
|
+
</head>
|
|
17
|
+
|
|
18
|
+
<body id='macle-main'>
|
|
19
|
+
<div class="sc-bdVaJa etovjn" id="status" style="background-color:rgb(0, 0, 0); color: rgb(0, 0, 0);">
|
|
20
|
+
<div>
|
|
21
|
+
<span><i class="sc-bwzfXH cCYaul" id="signal" style="background-color: rgb(0, 0, 0);"></i></span>
|
|
22
|
+
<span style="margin: 0px 2px;">Macle</span>
|
|
23
|
+
<span><i class="sc-htpNat hvitLT" style="background-color: rgb(0, 0, 0);"></i></span>
|
|
24
|
+
</div>
|
|
25
|
+
<div class="sc-bZQynM henTnI"><p>11:36</p></div>
|
|
26
|
+
<div>
|
|
27
|
+
<span class="sc-gzVnrw jpXuzg">100%</span>
|
|
28
|
+
<span>
|
|
29
|
+
<div class="sc-bxivhb bjcVct" id="battery-a" style="border-color: rgb(0, 0, 0);">
|
|
30
|
+
<div class="sc-ifAKCX cdRCoD" id='battery-b' style="background-color: rgb(0, 0, 0);"></div>
|
|
31
|
+
<div class="sc-EHOje fOLVCs" id='battery-c' style="background-color: rgb(0, 0, 0);"></div>
|
|
32
|
+
</div>
|
|
33
|
+
</span>
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
<div id="head-tabbar" class="sc-htoDjs cQjVZl" style="background-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">
|
|
37
|
+
<div class="sc-jTzLTM cdZISU" id="goback" onclick="goBackPage()" style="visibility: hidden;">
|
|
38
|
+
<i class="sc-jzJRlG ksBUTu" id="head-tabbar-i" style="background-color: rgb(0, 0, 0);"></i>
|
|
39
|
+
</div>
|
|
40
|
+
<div class="sc-dnqmqq ebXHwU" style="display: block;">
|
|
41
|
+
<h2 class="sc-iwsKbI gferPh">
|
|
42
|
+
<i class="sc-cSHVUG bPHVPr" style="display: none; background-color: rgb(0, 0, 0);"></i>
|
|
43
|
+
<span id="title" style="font-family: GothamRounded, GothamRounded-Bold;font-size: 16px;font-weight: 500;"></span>
|
|
44
|
+
</h2>
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
<div id="menuButton" class="sc-gZMcBi jZVkoE" style="position: absolute;right: 10px;z-index: 100;">
|
|
48
|
+
<div class="sc-gqjmRU gBcYTa" style="background-color: rgba(255, 255, 255, 0.6); border-color: rgba(0, 0, 0, 0.05);">
|
|
49
|
+
<div class="sc-fjdhpX fDwLsC">
|
|
50
|
+
<i class="sc-kgoBCf fEZocp" style="background-color: rgb(0, 0, 0);" id="capsule-status"></i>
|
|
51
|
+
</div>
|
|
52
|
+
<span class="sc-VigVT dhLBTW" style="background: rgba(0, 0, 0, 0.15);"></span>
|
|
53
|
+
<div class="sc-fjdhpX fDwLsC">
|
|
54
|
+
<i class="sc-kGXeez gvgaer" style="background-color: rgb(0, 0, 0);" id="capsule-round"
|
|
55
|
+
onclick='onAppHide()'></i>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
</div>
|
|
59
|
+
<div id="body">
|
|
60
|
+
<div id="background">
|
|
61
|
+
<i class="dot bg-loading1 cCYaul" style="background-color: #fff;width:10px;height:10px; border-radius: 50%;"></i>
|
|
62
|
+
<i class="dot bg-loading2 cCYaul" style="background-color: #fff;width:10px;height:10px; border-radius: 50%;"></i>
|
|
63
|
+
<i class="dot bg-loading3 cCYaul" style="background-color: #fff;width:10px;height:10px; border-radius: 50%;"></i>
|
|
64
|
+
</div>
|
|
65
|
+
<div id="mask-loading">
|
|
66
|
+
<i class="dot bg-loading1 cCYaul" style="background-color: #fff;width:10px;height:10px; border-radius: 50%;"></i>
|
|
67
|
+
<i class="dot bg-loading2 cCYaul" style="background-color: #fff;width:10px;height:10px; border-radius: 50%;"></i>
|
|
68
|
+
<i class="dot bg-loading3 cCYaul" style="background-color: #fff;width:10px;height:10px; border-radius: 50%;"></i>
|
|
69
|
+
</div>
|
|
70
|
+
</div>
|
|
71
|
+
|
|
72
|
+
<div id="macle-dialog-container" style="display: none;">
|
|
73
|
+
<div class="macle-mask"></div>
|
|
74
|
+
</div>
|
|
75
|
+
|
|
76
|
+
<div id="macle-transparent-mask" class="macle-transparent-mask" style="display: none;"></div>
|
|
77
|
+
<div id='macle-app-hide' style="display: none;">
|
|
78
|
+
<div class="macle-app-hide-wrapper">
|
|
79
|
+
<div class="msg">小程序已退至后台</div>
|
|
80
|
+
<hr>
|
|
81
|
+
<div class='macle-app-hide-back' onclick='onAppShow()'>onAppShow</div>
|
|
82
|
+
|
|
83
|
+
<div class="chooseApp">
|
|
84
|
+
<span class="tag choose" id="his" onclick="clickHis()">HIS</span>
|
|
85
|
+
<span class="tag" id="cloud" onclick="clickCloud()">华为云</span>
|
|
86
|
+
<input id="searchApp" oninput='searchApp()'></input>
|
|
87
|
+
<div class="app-list" id="appList">
|
|
88
|
+
</div>
|
|
89
|
+
</div>
|
|
90
|
+
|
|
91
|
+
</div>
|
|
92
|
+
</div>
|
|
93
|
+
</body>
|
|
94
|
+
|
|
95
|
+
</html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[]
|