@wisdomgarden/mobile-assets 0.0.45 → 0.0.47
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/package.json +1 -1
 - package/tools.html +2 -0
 - package/version_update_android.json +3 -3
 - package/version_update_ios.json +2 -2
 - package/wg-qrcode-format.html +73 -0
 
    
        package/package.json
    CHANGED
    
    
    
        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>
         
     | 
| 
         @@ -1,9 +1,9 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            {
         
     | 
| 
       2 
     | 
    
         
            -
              "version": "2. 
     | 
| 
      
 2 
     | 
    
         
            +
              "version": "2.7.0",
         
     | 
| 
       3 
3 
     | 
    
         
             
              "update_type": 1,
         
     | 
| 
       4 
     | 
    
         
            -
              "allow_lowest_version": "2.5. 
     | 
| 
      
 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 
     | 
    
         
            +
              "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": "- 已知問題修復和性能優化"
         
     | 
    
        package/version_update_ios.json
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            {
         
     | 
| 
       2 
     | 
    
         
            -
              "version": "2. 
     | 
| 
      
 2 
     | 
    
         
            +
              "version": "2.7.0",
         
     | 
| 
       3 
3 
     | 
    
         
             
              "update_type": 1,
         
     | 
| 
       4 
     | 
    
         
            -
              "allow_lowest_version": "2.5. 
     | 
| 
      
 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>
         
     |