android-midscene-automation 0.1.16 → 0.1.17
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/CHANGELOG.md +4 -0
- package/README.md +2 -2
- package/docs.html +147 -0
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -51,8 +51,8 @@ npx android-midscene-automation --port 5174
|
|
|
51
51
|
|
|
52
52
|
## 功能文档
|
|
53
53
|
|
|
54
|
-
- [Appium 录制器使用说明](https://cdn.jsdelivr.net/npm/android-midscene-automation@latest/USAGE.md)
|
|
55
|
-
- [项目更新记录](https://cdn.jsdelivr.net/npm/android-midscene-automation@latest/CHANGELOG.md)
|
|
54
|
+
- [Appium 录制器使用说明](https://cdn.jsdelivr.net/npm/android-midscene-automation@latest/docs.html?document=USAGE.md)
|
|
55
|
+
- [项目更新记录](https://cdn.jsdelivr.net/npm/android-midscene-automation@latest/docs.html?document=CHANGELOG.md)
|
|
56
56
|
|
|
57
57
|
## 源码开发
|
|
58
58
|
|
package/docs.html
ADDED
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="zh-CN">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<title>android-midscene-automation 文档</title>
|
|
7
|
+
<style>
|
|
8
|
+
:root {
|
|
9
|
+
color: #24292f;
|
|
10
|
+
background: #f6f8fa;
|
|
11
|
+
font-family:
|
|
12
|
+
-apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei",
|
|
13
|
+
sans-serif;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
body {
|
|
17
|
+
margin: 0;
|
|
18
|
+
padding: 32px 20px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
main {
|
|
22
|
+
box-sizing: border-box;
|
|
23
|
+
width: min(100%, 980px);
|
|
24
|
+
min-height: calc(100vh - 64px);
|
|
25
|
+
margin: 0 auto;
|
|
26
|
+
padding: 40px 48px;
|
|
27
|
+
border: 1px solid #d8dee4;
|
|
28
|
+
border-radius: 8px;
|
|
29
|
+
background: #fff;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
h1,
|
|
33
|
+
h2 {
|
|
34
|
+
padding-bottom: 0.3em;
|
|
35
|
+
border-bottom: 1px solid #d8dee4;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
h1,
|
|
39
|
+
h2,
|
|
40
|
+
h3 {
|
|
41
|
+
margin-top: 1.5em;
|
|
42
|
+
line-height: 1.25;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
h1:first-child {
|
|
46
|
+
margin-top: 0;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
p,
|
|
50
|
+
li {
|
|
51
|
+
line-height: 1.7;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
a {
|
|
55
|
+
color: #0969da;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
code {
|
|
59
|
+
padding: 0.2em 0.4em;
|
|
60
|
+
border-radius: 4px;
|
|
61
|
+
background: #eff1f3;
|
|
62
|
+
font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
pre {
|
|
66
|
+
overflow: auto;
|
|
67
|
+
padding: 16px;
|
|
68
|
+
border-radius: 6px;
|
|
69
|
+
background: #f6f8fa;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
pre code {
|
|
73
|
+
padding: 0;
|
|
74
|
+
background: transparent;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
table {
|
|
78
|
+
display: block;
|
|
79
|
+
width: max-content;
|
|
80
|
+
max-width: 100%;
|
|
81
|
+
overflow: auto;
|
|
82
|
+
border-collapse: collapse;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
th,
|
|
86
|
+
td {
|
|
87
|
+
padding: 8px 12px;
|
|
88
|
+
border: 1px solid #d8dee4;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
blockquote {
|
|
92
|
+
margin-left: 0;
|
|
93
|
+
padding-left: 16px;
|
|
94
|
+
border-left: 4px solid #d8dee4;
|
|
95
|
+
color: #57606a;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
#status {
|
|
99
|
+
color: #57606a;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
@media (max-width: 640px) {
|
|
103
|
+
body {
|
|
104
|
+
padding: 0;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
main {
|
|
108
|
+
min-height: 100vh;
|
|
109
|
+
padding: 24px 18px;
|
|
110
|
+
border: 0;
|
|
111
|
+
border-radius: 0;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
</style>
|
|
115
|
+
</head>
|
|
116
|
+
<body>
|
|
117
|
+
<main id="content"><p id="status">正在加载文档...</p></main>
|
|
118
|
+
<script type="module">
|
|
119
|
+
const documents = {
|
|
120
|
+
"USAGE.md": "Appium 录制器使用说明",
|
|
121
|
+
"CHANGELOG.md": "项目更新记录",
|
|
122
|
+
};
|
|
123
|
+
const requestedDocument = new URLSearchParams(location.search).get(
|
|
124
|
+
"document",
|
|
125
|
+
);
|
|
126
|
+
const documentName = documents[requestedDocument]
|
|
127
|
+
? requestedDocument
|
|
128
|
+
: "USAGE.md";
|
|
129
|
+
const content = document.querySelector("#content");
|
|
130
|
+
|
|
131
|
+
try {
|
|
132
|
+
const [{ marked }, response] = await Promise.all([
|
|
133
|
+
import("https://cdn.jsdelivr.net/npm/marked@18.0.3/lib/marked.esm.js"),
|
|
134
|
+
fetch(new URL(documentName, location.href)),
|
|
135
|
+
]);
|
|
136
|
+
if (!response.ok) {
|
|
137
|
+
throw new Error(`HTTP ${response.status}`);
|
|
138
|
+
}
|
|
139
|
+
const markdown = await response.text();
|
|
140
|
+
document.title = `${documents[documentName]} - android-midscene-automation`;
|
|
141
|
+
content.innerHTML = marked.parse(markdown, { gfm: true });
|
|
142
|
+
} catch (error) {
|
|
143
|
+
content.innerHTML = `<h1>文档加载失败</h1><p>${String(error)}</p>`;
|
|
144
|
+
}
|
|
145
|
+
</script>
|
|
146
|
+
</body>
|
|
147
|
+
</html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "android-midscene-automation",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.17",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"android-midscene-automation": "./bin/android-midscene-automation.js"
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"files": [
|
|
9
9
|
"bin",
|
|
10
10
|
"index.html",
|
|
11
|
+
"docs.html",
|
|
11
12
|
"remote-agent",
|
|
12
13
|
"server",
|
|
13
14
|
"src",
|