Skip to content

Commit

Permalink
feat: extract sqljs file
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwong committed Oct 22, 2024
1 parent 220b297 commit 8760d2f
Show file tree
Hide file tree
Showing 9 changed files with 1,390 additions and 948 deletions.
Binary file modified vscode/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion vscode/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import alfy from 'alfy';
import os from 'os';
import fs from 'fs';
import initSqlJs from 'sql.js';
import initSqlJs from './lib/sqljs/sql-wasm.cjs';
import { getFileNameInDB, getFullNameInDB, getPathInDB } from './utils.js';

const homedir = os.homedir;
Expand Down
9 changes: 6 additions & 3 deletions vscode/info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>bundleid</key>
<string>vscodehistory</string>
<string>com.simon.vscode</string>
<key>category</key>
<string>Tools</string>
<key>connections</key>
Expand Down Expand Up @@ -107,7 +107,8 @@
</dict>
</array>
<key>readme</key>
<string></string>
<string>获取 VS Code 的「最近打开的文件」列表。
数据来源于本地的 state.vscdb</string>
<key>uidata</key>
<dict>
<key>D5BD4A81-4820-4250-9F31-94CF9C5D5A0B</key>
Expand All @@ -125,10 +126,12 @@
<integer>230</integer>
</dict>
</dict>
<key>userconfigurationconfig</key>
<array/>
<key>variablesdontexport</key>
<array/>
<key>version</key>
<string>0.0.2</string>
<string>1.0.0</string>
<key>webaddress</key>
<string>https://github.com/simonwong/alfred-workflows</string>
</dict>
Expand Down
192 changes: 192 additions & 0 deletions vscode/lib/sqljs/sql-wasm.cjs

Large diffs are not rendered by default.

Binary file added vscode/lib/sqljs/sql-wasm.wasm
Binary file not shown.
6 changes: 3 additions & 3 deletions vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"license": "MIT",
"type": "module",
"dependencies": {
"alfy": "^2.0.0",
"sql.js": "^1.10.3"
}
"alfy": "^2.0.0"
},
"packageManager": "pnpm@9.11.0+sha512.0a203ffaed5a3f63242cd064c8fb5892366c103e328079318f78062f24ea8c9d50bc6a47aa3567cabefd824d170e78fa2745ed1f16b132e16436146b7688f19b"
}
Loading

0 comments on commit 8760d2f

Please sign in to comment.