@wisdomgarden/mobile-assets 0.0.46 → 0.0.48

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 CHANGED
@@ -1,33 +1,23 @@
1
1
  ## Update assets flow
2
2
 
3
-
4
3
  ### Add version records before uploading to the market
5
4
 
6
5
  1. ~~[HiPaCloud](https://hipacloud.com/apps/61246bbeb74fa7ca113500cb/tables/61357f137c852d44c4e9248d)~~[飞书多维表格](https://wisdomgarden.feishu.cn/base/bascnGagJw701WLXVakop4vQlwc?table=tblgnx3liFOXJ3el&view=vewRsmyLYE) Create a new version record and improve the release notes, need edit it manually.
7
6
 
8
7
  2. `node scripts/add_market_apps_version.js` Batch increase market version records
9
8
 
9
+ ### Update version info
10
10
 
11
- ### Update version info is used to send update notifications
12
- **update `version_update_android.json / version_update_ios.json`**
13
-
14
- 1. `node scripts/update_app_version_md.js` update json file with ~~hipa~~ feishu remote data, or edit it manually
15
- 2. check for errors then git commit `git commit -m "update version file"`
16
- 3. `node scripts/upgrade_version.js` increase current project version number and add new tag
17
- 4. `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)
18
- 5. 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
19
- 6. preview release note. local use live server `./preview-release.html` or [Online from GitHub Pages](https://wisdomgardeninc.github.io/mobile-assets/preview-release.html)
20
-
21
- if update other file, edit `refresh_cdn.sh`, then run `bash scripts/refresh_cdn.sh` refresh it.
22
-
23
-
24
- ### update privacy policy
25
- 1. `bash scripts/sync_privacy_files.sh`
26
- 2. goto [update version info] step 3
11
+ #### 一、modify version info json
27
12
 
13
+ 1. **update `version_update_android.json / version_update_ios.json`**(optional)
28
14
 
29
- ##### release note use markdown syntax
15
+ ```bash
16
+ node scripts/update_app_version_md.js
30
17
  ```
18
+
19
+ ```json
20
+ // release note use markdown syntax
31
21
  {
32
22
  "version": "2.0.8",
33
23
  "update_type": 1, // 0 force update
@@ -36,25 +26,60 @@ if update other file, edit `refresh_cdn.sh`, then run `bash scripts/refresh_cdn.
36
26
  "app_store_url_cn": "https://sj.qq.com/myapp/detail.htm?apkName=com.wisdomgarden.trpc", // only for android
37
27
  "release_note_en_us": "- IOS security zone adjustment\n- Repair job description is not displayed\n- Optimized job review logic\n- Fixed the problem that the default avatar was not displayed on the answering result page and the scoring page\n- Fix the interactive list, the students clicked and did not respond\n- Optimized the prompt information of interactive teaching materials\n- QR code sign-in failure page optimization\n- UI optimization",
38
28
  "release_note_zh_hans": "- IOS安全区域调整\n- 修复作业描述不显示\n- 作业批改逻辑优化\n- 修复抢答结果页和评分页面不显示默认头像\n- 修复互动列表,学生点击抢答无响应\n- 互动教材播放提示信息优化\n- 二维码签到失败页面优化\n- UI优化",
39
- "release_note_zh_hant": "- IOS安全區域調整\n- 修復作業描述不顯示問題\n- 作業批改邏輯優化\n- 修復搶答結果頁和評分頁面不顯示默認頭像問題\n- 修復互動列表,學生點擊搶答無反應問題\n- 互動教材播放提示文案優化\n- QR Code簽到失敗頁面優化\n- UI優化",
29
+ "release_note_zh_hant": "- IOS安全區域調整\n- 修復作業描述不顯示問題\n- 作業批改邏輯優化\n- 修復搶答結果頁和評分頁面不顯示默認頭像問題\n- 修復互動列表,學生點擊搶答無反應問題\n- 互動教材播放提示文案優化\n- QR Code簽到失敗頁面優化\n- UI優化"
40
30
  }
41
31
  ```
42
32
 
33
+ 2. **update `version_aligner.json`**(optional)
34
+
35
+ ```bash
36
+ node scripts/update_version_aligner.cjs
37
+ ```
38
+
39
+ ```json
40
+ // version_aligner.json use markdown syntax
41
+ // This json file records the correspondence between the mobile version and the web version
42
+ [
43
+ {
44
+ "mobileVersion": "xxx",
45
+ "serverVersion": "xxx"
46
+ }
47
+ ]
48
+ ```
49
+
50
+ #### 二、upgrade package `mobile-assets` version
51
+
52
+ 1. check for errors then git commit `git commit -m "update version file"`
53
+ 2. `node scripts/upgrade_version.js` increase current project version number and add new tag
54
+ 3. `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)
55
+
56
+ #### 三、refresh cdn
57
+
58
+ 1. 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
59
+ 2. preview release note. local use live server `./preview-release.html` or [Online from GitHub Pages](https://wisdomgardeninc.github.io/mobile-assets/preview-release.html)
60
+
61
+ if update other file, edit `refresh_cdn.sh`, then run `bash scripts/refresh_cdn.sh` refresh it.
62
+
63
+ ### update privacy policy
64
+
65
+ 1. `bash scripts/sync_privacy_files.sh`
66
+ 2. goto [update version info] step 3
67
+
43
68
  ##### Upload zip file to Azure for TW
69
+
44
70
  CMD: `node ota/upload-to-azure.js qiniuZipUrl`
45
71
  e.g. `node ota/upload-to-azure.js https://mobile-download.tronclass.com.cn/mobile-2.0/ota/prod/2.2.9.1656581179.d71a7d06.zip`
46
72
 
47
-
48
73
  paremeter `qiniuZipUrl`: the latest ota zip file url on qiniu
49
74
 
50
-
51
75
  ### Update tc-orgs-tool Ota Org Information
76
+
52
77
  https://gitlab.tronclass.com.cn/lms/tc-orgs-tool
53
78
 
54
79
  #### before
80
+
55
81
  - Clone `git clone git@gitlab.tronclass.com.cn:lms/tc-orgs-tool.git`
56
82
  - Edit `ota/.env.js` set project path & [LeanCloud API](https://leancloud.cn/docs/#REST-API) authorization information
57
83
  - Make sure [OTAVersion prod env](https://console.leancloud.cn/apps/tRcsVqctq7saBytI0LpOCznA-gzGzoHsz/storage/data/OTAVersion) information correctly.
58
84
  - Run `node ota/update-orgs-server-json.js`
59
85
  - Goto `tc-orgs-tool` project, run `python update_orgs.py`
60
-
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wisdomgarden/mobile-assets",
3
- "version": "0.0.46",
3
+ "version": "0.0.48",
4
4
  "description": "host mobile assets",
5
5
  "main": "index.js",
6
6
  "repository": "git@github.com:WisdomGardenInc/mobile-assets.git",
package/tools.html CHANGED
@@ -10,6 +10,8 @@
10
10
  <br />
11
11
  <a href="./mathjax.html">MathJax Playground</a>
12
12
  <br />
13
+ <a href="./wg-qrcode-format.html">WG QR Code Format</a>
14
+ <br />
13
15
  <a href="./preview-release.html">APP Release Note Preview</a>
14
16
  <br />
15
17
  <a href="./tools/app-market-jumper.html">APP Market Jumper</a>
@@ -0,0 +1,30 @@
1
+ [
2
+ {
3
+ "mobileVersion": "2.7.0",
4
+ "serverVersion": "1.69~1.71"
5
+ },
6
+ {
7
+ "mobileVersion": "2.6.2",
8
+ "serverVersion": "1.68~1.70"
9
+ },
10
+ {
11
+ "mobileVersion": "2.6.1",
12
+ "serverVersion": "1.68~1.70"
13
+ },
14
+ {
15
+ "mobileVersion": "2.6.0",
16
+ "serverVersion": "1.68~1.70"
17
+ },
18
+ {
19
+ "mobileVersion": "2.5.2",
20
+ "serverVersion": "1.67~1.69"
21
+ },
22
+ {
23
+ "mobileVersion": "2.5.1",
24
+ "serverVersion": "1.67~1.69"
25
+ },
26
+ {
27
+ "mobileVersion": "2.5.0",
28
+ "serverVersion": "1.67~1.69"
29
+ }
30
+ ]
@@ -1,9 +1,9 @@
1
1
  {
2
- "version": "2.6.2",
2
+ "version": "2.7.0",
3
3
  "update_type": 1,
4
- "allow_lowest_version": "2.5.1",
4
+ "allow_lowest_version": "2.5.2",
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.6.2.apk",
6
+ "app_store_url_cn": "https://mobile-download.tronclass.com.cn/mobile-2.0/app/android/app-release-2.7.0.apk",
7
7
  "release_note_en_us": "- Fix bugs and improve system performance.",
8
8
  "release_note_zh_hans": "- 已知问题修复和性能优化",
9
9
  "release_note_zh_hant": "- 已知問題修復和性能優化"
@@ -1,7 +1,7 @@
1
1
  {
2
- "version": "2.6.2",
2
+ "version": "2.7.0",
3
3
  "update_type": 1,
4
- "allow_lowest_version": "2.5.1",
4
+ "allow_lowest_version": "2.5.2",
5
5
  "app_store_url": "https://apps.apple.com/app/scratch/id973028199",
6
6
  "release_note_en_us": "- Fix bugs and improve system performance.",
7
7
  "release_note_zh_hans": "- 已知问题修复和性能优化",
@@ -0,0 +1,73 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+
4
+ <head>
5
+ <meta charset="UTF-8">
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
+ <title>WG QR Code format</title>
8
+ <style>
9
+ .main {
10
+ display: flex;
11
+ flex-direction: column;
12
+ width: 100vw;
13
+ min-height: 100vh;
14
+ }
15
+
16
+ .inputarea {
17
+ width: 100%;
18
+ height: 400px;
19
+ }
20
+
21
+ .input {
22
+ width: 80%;
23
+ height: 70%;
24
+ }
25
+ </style>
26
+ <script type="module">
27
+ import { createApp } from 'https://unpkg.com/petite-vue?module';
28
+ import { encodeData, decodeData } from "https://cdn.jsdelivr.net/npm/@wisdomgarden/qrcode-format@latest/+esm"
29
+ createApp({
30
+ encodeInput: JSON.stringify({ courseId: 1, rollcallId: 2, data: "test data" }),
31
+ decodeInput: decodeURIComponent("0~%101!4~%102!3~data"),
32
+
33
+ encodeOutput: "",
34
+ decodeOutput: "",
35
+
36
+ onEncode: function () {
37
+ try {
38
+ this.encodeOutput = encodeURIComponent(encodeData(JSON.parse(this.encodeInput.trim())));
39
+ } catch (error) {
40
+ this.encodeOutput = error.toString();
41
+ }
42
+
43
+ },
44
+ onDecode: function () {
45
+ this.decodeOutput = decodeData(decodeURIComponent(this.decodeInput.trim()));
46
+ }
47
+ }).mount("#app");
48
+ </script>
49
+ </head>
50
+
51
+ <body id="app" v-scope>
52
+ <h1>Wisdom Garden QR CODE Format</h1>
53
+ <div class="main">
54
+ <div class="inputarea">
55
+ <textarea class="input" v-model="encodeInput" placeholder="input json" autocomplete="off" wrap="soft"
56
+ spellcheck="false"></textarea>
57
+ <br />
58
+ <button @click="onEncode">Encode</button>
59
+ <br />
60
+ <span>{{encodeOutput}}</span>
61
+ </div>
62
+ <div class="inputarea">
63
+ <textarea class="input" v-model="decodeInput" placeholder="input string" autocomplete="off" wrap="soft"
64
+ spellcheck="false"></textarea>
65
+ <br />
66
+ <button @click="onDecode">Decode</button>
67
+ <br />
68
+ <span>{{decodeOutput}}</span>
69
+ </div>
70
+ </div>
71
+ </body>
72
+
73
+ </html>