@wisdomgarden/mobile-assets 0.0.5 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +14 -30
- package/assets-list.md +53 -0
- package/package.json +2 -1
- package/preview-release.html +132 -0
- package/privacy-policy-en.md +5 -5
- package/privacy-policy-info.json +1 -1
- package/privacy-policy-zh-CN.md +5 -5
- package/privacy-policy.html +2 -2
- package/toggle.json +4 -0
- package/version_update_android.json +6 -6
- package/version_update_ios.json +5 -5
- package/youtube-video-analysis.html +1 -1
package/README.md
CHANGED
@@ -1,31 +1,21 @@
|
|
1
|
-
|
2
|
-
https://mobile-download.tronclass.com.cn/youtube-video-analysis.html
|
3
|
-
http://mobile-download.tronclass.com.cn/callback.html
|
4
|
-
https://mobile-download.tronclass.com.cn/privacy-policy.html
|
5
|
-
https://mobile-download.tronclass.com.cn/privacy-policy-info.json
|
6
|
-
https://mobile-download.tronclass.com.cn/privacy-policy-zh-CN.md
|
7
|
-
https://mobile-download.tronclass.com.cn/privacy-policy-zh-TW.md
|
8
|
-
https://mobile-download.tronclass.com.cn/privacy-policy-en.md
|
9
|
-
```
|
1
|
+
## Update assets flow
|
10
2
|
|
11
|
-
|
12
|
-
https://wisdomgardeninc.github.io/mobile-assets/youtube-video-analysis.html
|
13
|
-
https://cdn.jsdelivr.net/npm/@wisdomgarden/mobile-assets@latest/youtube-video-analysis.html
|
14
|
-
https://cdn.jsdelivr.net/npm/@wisdomgarden/mobile-assets@latest/callback.html
|
15
|
-
https://cdn.jsdelivr.net/npm/@wisdomgarden/mobile-assets@latest/privacy-policy.html
|
16
|
-
https://cdn.jsdelivr.net/npm/@wisdomgarden/mobile-assets@latest/privacy-policy-info.json
|
17
|
-
https://cdn.jsdelivr.net/npm/@wisdomgarden/mobile-assets@latest/privacy-policy-zh-CN.md
|
18
|
-
https://cdn.jsdelivr.net/npm/@wisdomgarden/mobile-assets@latest/privacy-policy-zh-TW.md
|
19
|
-
https://cdn.jsdelivr.net/npm/@wisdomgarden/mobile-assets@latest/privacy-policy-en.md
|
20
|
-
```
|
3
|
+
### update version info: `version_update_android.json / version_update_ios.json`
|
21
4
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
5
|
+
1. [HiPaCloud](https://hipacloud.com/apps/61246bbeb74fa7ca113500cb/tables/61357f137c852d44c4e9248d) Create a new version record and improve the release notes.
|
6
|
+
2. `node scripts/update_version_file.js` update json file with hipa remote data, or edit it manually
|
7
|
+
3. check for errors then git commit
|
8
|
+
4. `node scripts/upgrade_version.js` increase current project version number and add new tag
|
9
|
+
5. `git push && git push --tags` push to GitHub, and Github Action publish it to [npm @wisdomgarden/mobile-assets](https://www.npmjs.com/package/@wisdomgarden/mobile-assets)
|
10
|
+
6. after about 10 minutes, check [jsDeliver package data](https://data.jsdelivr.com/v1/package/npm/@wisdomgarden/mobile-assets) util latest tag is same as package.json.version then `bash scripts/refresh_cdn.sh` refresh json file cdn cache
|
11
|
+
7. preview release note. local use live server `./preview-release.html` or [Online from GitHub Pages](https://wisdomgardeninc.github.io/mobile-assets/preview-release.html)
|
26
12
|
|
13
|
+
if update other file, edit `assets-list.md`, then run `bash scripts/refresh_cdn.sh` refresh it.
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
##### release note use markdown syntax
|
27
18
|
```
|
28
|
-
release note use markdown syntax
|
29
19
|
{
|
30
20
|
"version": "2.0.8",
|
31
21
|
"update_type": 1, // 0 force update
|
@@ -37,9 +27,3 @@ release note use markdown syntax
|
|
37
27
|
"release_note_zh_hant": "- IOS安全區域調整\n- 修復作業描述不顯示問題\n- 作業批改邏輯優化\n- 修復搶答結果頁和評分頁面不顯示默認頭像問題\n- 修復互動列表,學生點擊搶答無反應問題\n- 互動教材播放提示文案優化\n- QR Code簽到失敗頁面優化\n- UI優化",
|
38
28
|
}
|
39
29
|
```
|
40
|
-
|
41
|
-
refresh cnd use purge api
|
42
|
-
```
|
43
|
-
https://purge.jsdelivr.net/npm/@wisdomgarden/mobile-assets@latest/version_update_android.json
|
44
|
-
https://purge.jsdelivr.net/npm/@wisdomgarden/mobile-assets@latest/version_update_ios.json
|
45
|
-
```
|
package/assets-list.md
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
|
2
|
+
## qiniu assets
|
3
|
+
```
|
4
|
+
https://mobile-download.tronclass.com.cn/youtube-video-analysis.html
|
5
|
+
http://mobile-download.tronclass.com.cn/callback.html
|
6
|
+
https://mobile-download.tronclass.com.cn/privacy-policy.html
|
7
|
+
https://mobile-download.tronclass.com.cn/privacy-policy-info.json
|
8
|
+
https://mobile-download.tronclass.com.cn/privacy-policy-zh-CN.md
|
9
|
+
https://mobile-download.tronclass.com.cn/privacy-policy-zh-TW.md
|
10
|
+
https://mobile-download.tronclass.com.cn/privacy-policy-en.md
|
11
|
+
```
|
12
|
+
|
13
|
+
### GitHub & jsDeliver assets
|
14
|
+
```
|
15
|
+
// need render html, use GitHub Pages
|
16
|
+
https://wisdomgardeninc.github.io/mobile-assets/youtube-video-analysis.html
|
17
|
+
|
18
|
+
// normal text assets
|
19
|
+
https://cdn.jsdelivr.net/npm/@wisdomgarden/mobile-assets@latest/youtube-video-analysis.html
|
20
|
+
https://cdn.jsdelivr.net/npm/@wisdomgarden/mobile-assets@latest/callback.html
|
21
|
+
https://cdn.jsdelivr.net/npm/@wisdomgarden/mobile-assets@latest/privacy-policy.html
|
22
|
+
https://cdn.jsdelivr.net/npm/@wisdomgarden/mobile-assets@latest/privacy-policy-info.json
|
23
|
+
https://cdn.jsdelivr.net/npm/@wisdomgarden/mobile-assets@latest/privacy-policy-zh-CN.md
|
24
|
+
https://cdn.jsdelivr.net/npm/@wisdomgarden/mobile-assets@latest/privacy-policy-zh-TW.md
|
25
|
+
https://cdn.jsdelivr.net/npm/@wisdomgarden/mobile-assets@latest/privacy-policy-en.md
|
26
|
+
|
27
|
+
// version update files
|
28
|
+
https://cdn.jsdelivr.net/npm/@wisdomgarden/mobile-assets@latest/version_update_android.json
|
29
|
+
https://cdn.jsdelivr.net/npm/@wisdomgarden/mobile-assets@latest/version_update_ios.json
|
30
|
+
```
|
31
|
+
|
32
|
+
### jsDeliver API
|
33
|
+
```
|
34
|
+
// check jsDeliver package status
|
35
|
+
https://data.jsdelivr.com/v1/package/npm/@wisdomgarden/mobile-assets
|
36
|
+
|
37
|
+
// url prefix for fetch latest file version used for mobile 2.0
|
38
|
+
https://cdn.jsdelivr.net/npm/@wisdomgarden/mobile-assets@latest
|
39
|
+
```
|
40
|
+
|
41
|
+
### refresh cnd cache use purge api
|
42
|
+
```
|
43
|
+
https://purge.jsdelivr.net/npm/@wisdomgarden/mobile-assets@latest/version_update_android.json
|
44
|
+
https://purge.jsdelivr.net/npm/@wisdomgarden/mobile-assets@latest/version_update_ios.json
|
45
|
+
```
|
46
|
+
|
47
|
+
### check info
|
48
|
+
```
|
49
|
+
https://www.npmjs.com/package/@wisdomgarden/mobile-assets
|
50
|
+
https://data.jsdelivr.com/v1/package/npm/@wisdomgarden/mobile-assets
|
51
|
+
https://cdn.jsdelivr.net/npm/@wisdomgarden/mobile-assets@latest/version_update_android.json
|
52
|
+
https://cdn.jsdelivr.net/npm/@wisdomgarden/mobile-assets@latest/version_update_ios.json
|
53
|
+
```
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@wisdomgarden/mobile-assets",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.9",
|
4
4
|
"description": "host mobile assets",
|
5
5
|
"main": "index.js",
|
6
6
|
"repository": "git@github.com:WisdomGardenInc/mobile-assets.git",
|
@@ -13,6 +13,7 @@
|
|
13
13
|
"/*.md"
|
14
14
|
],
|
15
15
|
"devDependencies": {
|
16
|
+
"axios": "^0.24.0",
|
16
17
|
"enquirer": "^2.3.6",
|
17
18
|
"shelljs": "^0.8.4"
|
18
19
|
}
|
@@ -0,0 +1,132 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
|
+
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
8
|
+
<title>Preview Release</title>
|
9
|
+
|
10
|
+
<link crossorigin="anonymous" media="all" rel="stylesheet"
|
11
|
+
href="https://cdn.jsdelivr.net/gh/markdowncss/air/css/air.min.css" />
|
12
|
+
|
13
|
+
<style>
|
14
|
+
* {
|
15
|
+
margin: 0;
|
16
|
+
padding: 0;
|
17
|
+
font-size: 16px;
|
18
|
+
text-align: left;
|
19
|
+
}
|
20
|
+
|
21
|
+
body {
|
22
|
+
margin: 8px 32px;
|
23
|
+
}
|
24
|
+
|
25
|
+
.info>div>span:nth-child(1) {
|
26
|
+
font-weight: bold;
|
27
|
+
font-size: 20px;
|
28
|
+
margin-right: 12px;
|
29
|
+
}
|
30
|
+
|
31
|
+
.info>div>span:nth-child(2) {
|
32
|
+
color: red;
|
33
|
+
}
|
34
|
+
|
35
|
+
.note {
|
36
|
+
margin-top: 32px;
|
37
|
+
padding-bottom: 32px;
|
38
|
+
border-bottom: 1px solid #ddd;
|
39
|
+
}
|
40
|
+
|
41
|
+
.note:first-of-type {
|
42
|
+
margin-top: 16px;
|
43
|
+
}
|
44
|
+
|
45
|
+
.note>span {
|
46
|
+
display: inline-block;
|
47
|
+
font-size: 16px;
|
48
|
+
font-weight: bold;
|
49
|
+
padding-bottom: 8px;
|
50
|
+
}
|
51
|
+
|
52
|
+
.release-note-area {
|
53
|
+
margin-top: 32px;
|
54
|
+
}
|
55
|
+
|
56
|
+
.release-note-area>span {
|
57
|
+
font-size: 20px;
|
58
|
+
font-weight: bold;
|
59
|
+
padding-bottom: 16px;
|
60
|
+
}
|
61
|
+
</style>
|
62
|
+
</head>
|
63
|
+
|
64
|
+
<body>
|
65
|
+
<div class="info">
|
66
|
+
<div>
|
67
|
+
<span>Version:</span><span id="version"></span>
|
68
|
+
</div>
|
69
|
+
<div>
|
70
|
+
<span>Allow Lowest Version:</span><span id="lowestVersion"></span>
|
71
|
+
</div>
|
72
|
+
<div>
|
73
|
+
<span>Force Update:</span><span id="forceUpdate"></span>
|
74
|
+
</div>
|
75
|
+
<div id="download">
|
76
|
+
<span>Download:</span>
|
77
|
+
</div>
|
78
|
+
</div>
|
79
|
+
|
80
|
+
<div class="release-note-area">
|
81
|
+
<span>Release Note:</span>
|
82
|
+
<div class="note">
|
83
|
+
<span>Simplified Chinese</span>
|
84
|
+
<div id="content_cn"></div>
|
85
|
+
</div>
|
86
|
+
|
87
|
+
<div class="note">
|
88
|
+
<span>Traditional Chinese</span>
|
89
|
+
<div id="content_tw"></div>
|
90
|
+
</div>
|
91
|
+
|
92
|
+
<div class="note">
|
93
|
+
<span>English</span>
|
94
|
+
<div id="content_en"></div>
|
95
|
+
</div>
|
96
|
+
</div>
|
97
|
+
<script src="https://cdn.jsdelivr.net/npm/marked@4.0.1/marked.min.js"></script>
|
98
|
+
<script>
|
99
|
+
fetch("./version_update_android.json").then(function (response) {
|
100
|
+
return response.text();
|
101
|
+
}).then(function (text) {
|
102
|
+
const json = JSON.parse(text);
|
103
|
+
const releaseNote = json["release_note_zh_hans"];
|
104
|
+
|
105
|
+
document.getElementById('version').innerHTML = json["version"];
|
106
|
+
document.getElementById('lowestVersion').innerHTML = json["allow_lowest_version"];
|
107
|
+
document.getElementById('forceUpdate').innerHTML = json["allow_lowest_version"] === 0 ? "true" : "false";
|
108
|
+
|
109
|
+
const aTag = document.createElement("a");
|
110
|
+
aTag.setAttribute("href", json["app_store_url_cn"]);
|
111
|
+
aTag.setAttribute("target", "_blank");
|
112
|
+
aTag.text = "app-release-" + json["version"] + ".apk"
|
113
|
+
|
114
|
+
document.getElementById('download').appendChild(aTag);
|
115
|
+
|
116
|
+
|
117
|
+
document.getElementById('content_cn').innerHTML =
|
118
|
+
marked.parse(json["release_note_zh_hans"]);
|
119
|
+
|
120
|
+
document.getElementById('content_tw').innerHTML =
|
121
|
+
marked.parse(json["release_note_zh_hant"]);
|
122
|
+
|
123
|
+
document.getElementById('content_en').innerHTML =
|
124
|
+
marked.parse(json["release_note_en_us"]);
|
125
|
+
|
126
|
+
|
127
|
+
})
|
128
|
+
|
129
|
+
</script>
|
130
|
+
</body>
|
131
|
+
|
132
|
+
</html>
|
package/privacy-policy-en.md
CHANGED
@@ -23,31 +23,31 @@ Welcome to use TronClass's related services! In order to use TronClass's related
|
|
23
23
|
> Jiguang Push Core Service SDK
|
24
24
|
> SDK name: jcore.android-2.3.2
|
25
25
|
> Purpose of use: for push messages
|
26
|
-
> Data type: user identification information (IMEI, MAC address)
|
26
|
+
> Data type: user identification information (IMEI, MAC address, APP installation list)
|
27
27
|
> Official website link: https://www.jiguang.cn/
|
28
28
|
|
29
29
|
> Aurora Push SDK
|
30
30
|
> SDK name: cn.jpush.android-3.3.8
|
31
31
|
> Purpose of use: for push messages
|
32
|
-
> Data type: user identification information (IMEI, MAC address)
|
32
|
+
> Data type: user identification information (IMEI, MAC address, APP installation list)
|
33
33
|
> Official website link: https://www.jiguang.cn/
|
34
34
|
|
35
35
|
> OneSignal SDK
|
36
36
|
> SDK name: onesignal
|
37
37
|
> Purpose of use: for push messages
|
38
|
-
> Data type: user identification information (IMEI, MAC address)
|
38
|
+
> Data type: user identification information (IMEI, MAC address, APP installation list)
|
39
39
|
> Official website link: https://onesignal.com/
|
40
40
|
|
41
41
|
> Huawei Push SDK
|
42
42
|
> SDK name: com.huawei.hms
|
43
43
|
> Purpose of use: for push messages
|
44
|
-
> Data type: user identification information (IMEI, MAC address)
|
44
|
+
> Data type: user identification information (IMEI, MAC address, APP installation list)
|
45
45
|
> Official website link: https://developer.huawei.com/consumer/cn/hms/huawei-pushkit
|
46
46
|
|
47
47
|
> Tencent Browsing Service SDK
|
48
48
|
> SDK name: com.tencent.smtt
|
49
49
|
> Purpose of use: for push messages
|
50
|
-
> Data type: user identification information (IMEI, MAC address)
|
50
|
+
> Data type: user identification information (IMEI, MAC address, APP installation list)
|
51
51
|
> Official website link: https://x5.tencent.com/
|
52
52
|
|
53
53
|
|
package/privacy-policy-info.json
CHANGED
package/privacy-policy-zh-CN.md
CHANGED
@@ -23,31 +23,31 @@
|
|
23
23
|
> 极光推送核心服务SDK
|
24
24
|
> SDK名称:jcore.android-2.3.2
|
25
25
|
> 使用目的:用于推送消息
|
26
|
-
> 数据类型:用户标识信息(IMEI、MAC
|
26
|
+
> 数据类型:用户标识信息(IMEI、MAC地址、软件安装列表)
|
27
27
|
> 官网链接:https://www.jiguang.cn/
|
28
28
|
|
29
29
|
> 极光推送SDK
|
30
30
|
> SDK名称:cn.jpush.android-3.3.8
|
31
31
|
> 使用目的:用于推送消息
|
32
|
-
> 数据类型:用户标识信息(IMEI、MAC
|
32
|
+
> 数据类型:用户标识信息(IMEI、MAC地址、软件安装列表)
|
33
33
|
> 官网链接:https://www.jiguang.cn/
|
34
34
|
|
35
35
|
> OneSignal SDK
|
36
36
|
> SDK名称:onesignal
|
37
37
|
> 使用目的:用于推送消息
|
38
|
-
> 数据类型:用户标识信息(IMEI、MAC
|
38
|
+
> 数据类型:用户标识信息(IMEI、MAC地址、软件安装列表)
|
39
39
|
> 官网链接:https://onesignal.com/
|
40
40
|
|
41
41
|
> 华为推送 SDK
|
42
42
|
> SDK名称:com.huawei.hms
|
43
43
|
> 使用目的:用于推送消息
|
44
|
-
> 数据类型:用户标识信息(IMEI、MAC
|
44
|
+
> 数据类型:用户标识信息(IMEI、MAC地址、软件安装列表)
|
45
45
|
> 官网链接:https://developer.huawei.com/consumer/cn/hms/huawei-pushkit
|
46
46
|
|
47
47
|
> 腾讯浏览服务SDK
|
48
48
|
> SDK名称:com.tencent.smtt
|
49
49
|
> 使用目的:用于推送消息
|
50
|
-
> 数据类型:用户标识信息(IMEI、MAC
|
50
|
+
> 数据类型:用户标识信息(IMEI、MAC地址、软件安装列表)
|
51
51
|
> 官网链接:https://x5.tencent.com/
|
52
52
|
|
53
53
|
|
package/privacy-policy.html
CHANGED
@@ -23,7 +23,7 @@
|
|
23
23
|
border-left: 4px solid #dadada;
|
24
24
|
}
|
25
25
|
</style>
|
26
|
-
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
|
26
|
+
<script src="https://cdn.jsdelivr.net/npm/marked@4.0.1/marked.min.js"></script>
|
27
27
|
<script>
|
28
28
|
let content = "";
|
29
29
|
let info = null;
|
@@ -70,7 +70,7 @@
|
|
70
70
|
|
71
71
|
content = header + content + footer
|
72
72
|
|
73
|
-
document.getElementById('content').innerHTML = marked(content);
|
73
|
+
document.getElementById('content').innerHTML = marked.parse(content);
|
74
74
|
}
|
75
75
|
}
|
76
76
|
</script>
|
package/toggle.json
ADDED
@@ -1,10 +1,10 @@
|
|
1
1
|
{
|
2
|
-
"version": "2.1.
|
2
|
+
"version": "2.1.5",
|
3
3
|
"update_type": 1,
|
4
|
-
"allow_lowest_version": "2.1.
|
4
|
+
"allow_lowest_version": "2.1.5",
|
5
5
|
"app_store_url": "https://play.google.com/store/apps/details?id=com.wisdomgarden.trpc",
|
6
|
-
"app_store_url_cn": "https://mobile-download.tronclass.com.cn/mobile-2.0/app/android/app-release-2.1.
|
7
|
-
"release_note_en_us": "-
|
8
|
-
"release_note_zh_hans": "-
|
9
|
-
"release_note_zh_hant": "-
|
6
|
+
"app_store_url_cn": "https://mobile-download.tronclass.com.cn/mobile-2.0/app/android/app-release-2.1.5.apk",
|
7
|
+
"release_note_en_us": "- Fix problem with not being able to submit or submission lost when taking tests.",
|
8
|
+
"release_note_zh_hans": "- 修复测验作答时可能会出现无法提交或提交后内容丢失的问题",
|
9
|
+
"release_note_zh_hant": "- 修復測驗作答時可能會出現無法提交或提交後內容遺失的問題"
|
10
10
|
}
|
package/version_update_ios.json
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
{
|
2
|
-
"version": "2.1.
|
2
|
+
"version": "2.1.5",
|
3
3
|
"update_type": 1,
|
4
|
-
"allow_lowest_version": "2.1.
|
4
|
+
"allow_lowest_version": "2.1.5",
|
5
5
|
"app_store_url": "https://apps.apple.com/app/scratch/id973028199",
|
6
|
-
"release_note_en_us": "-
|
7
|
-
"release_note_zh_hans": "-
|
8
|
-
"release_note_zh_hant": "-
|
6
|
+
"release_note_en_us": "- Fix problem with not being able to submit or submission lost when taking tests.",
|
7
|
+
"release_note_zh_hans": "- 修复测验作答时可能会出现无法提交或提交后内容丢失的问题",
|
8
|
+
"release_note_zh_hant": "- 修復測驗作答時可能會出現無法提交或提交後內容遺失的問題"
|
9
9
|
}
|
@@ -74,7 +74,7 @@
|
|
74
74
|
}
|
75
75
|
</style>
|
76
76
|
<meta charset="UTF-8">
|
77
|
-
<script src="https://cdn.jsdelivr.net/npm/jquery@1.11.2/dist/jquery.min.js" integrity="sha256-
|
77
|
+
<script src="https://cdn.jsdelivr.net/npm/jquery@1.11.2/dist/jquery.min.js" integrity="sha256-1OxYPHYEAB+HIz0f4AdsvZCfFaX4xrTD9d2BtGLXnTI=" crossorigin="anonymous"></script>
|
78
78
|
</head>
|
79
79
|
<body>
|
80
80
|
<div class="loading-container active">
|