Skip to content

Commit 9665b2e

Browse files
author
Junhui Tong
committed
fix error that excel.js is not decoded when running as remote jsr
1 parent e69ff15 commit 9665b2e

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

Diff for: excel_tracker.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
// - Need to create child process, make it a little bit complex
66

77
import staticAssets from './static_assets.json' with { type: "json" }
8+
import * as enc from 'jsr:@std/[email protected]'
89
import {debug} from './debug.ts'
910

1011
let scriptProcess: Deno.ChildProcess | null = null
@@ -16,8 +17,8 @@ function launchScript() {
1617
Deno.statSync(scriptFile)
1718
} catch (_e) {
1819
scriptFile = Deno.env.get('TEMP') + '\\excel.js'
19-
const content = staticAssets['excel.js']
20-
Deno.writeTextFileSync(scriptFile, content)
20+
const content = enc.decodeBase64(staticAssets['excel.js'])
21+
Deno.writeTextFileSync(scriptFile, new TextDecoder().decode(content))
2122
}
2223
const cmd = new Deno.Command('cscript.exe', {
2324
args: ['//nologo', scriptFile],

Diff for: frontend/ui.ts

+1
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ function getUsage() {
221221
1. Click "Launch Excel to open file", Excel window will open. <br>
222222
2. Then open your file in Excel. <br>
223223
3. Locate to any cell, you will see full row data below. <br>
224+
4. In the review pane, you can navigate to previous/next row, pick a "review column" and change the value with predefined value. <br>
224225
<br>
225226
<b>Note:</b><br>
226227
The window might be flashing on taskbar instead of showing up, just click on the flashing icon to bring it up. <br>

Diff for: jsr.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"name": "@timepp/ev",
3-
"version": "0.1.12",
3+
"version": "0.1.13",
44
"exports": "./launch.ts"
55
}

0 commit comments

Comments
 (0)