Skip to content

Commit 67cf708

Browse files
Terbium edition
1 parent d15b9bf commit 67cf708

7 files changed

Lines changed: 34 additions & 20 deletions

File tree

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
uses: actions/upload-artifact@v4
4040
with:
4141
name: anura-package
42-
path: vscode.app.zip
42+
path: vscode.tapp.zip
4343

4444
upload:
4545
name: Upload release
@@ -69,5 +69,5 @@ jobs:
6969
tag: latest
7070
commit: master
7171
body: "${{ github.event.head_commit.url }} ${{ github.event.head_commit.message }}"
72-
artifacts: "vscode.app.zip"
72+
artifacts: "vscode.tapp.zip"
7373
prerelease: true

.tbconfig

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"title": "Visual Studio Code",
3+
"icon": "node_modules/vscode-web/dist/code-192.png",
4+
"version": "1.91.1",
5+
"wmArgs": {
6+
"title": "Visual Studio Code",
7+
"icon": "node_modules/vscode-web/dist/code-192.png",
8+
"src": "index.html",
9+
"size": {
10+
"width": 800,
11+
"height": 600
12+
},
13+
"single": true,
14+
"resizable": true,
15+
"snappable": true
16+
}
17+
}
18+

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@
6161
}
6262
`
6363
try {
64-
const fileData = await top.anura.fs.promises.readFile("/" + location.pathname.split("/").slice(2,-1).join("/") + "/product.json", productData);
64+
const fileData = await top.tb.fs.promises.readFile("/" + location.pathname.split("/").slice(2,-1).join("/") + "/product.json", productData);
6565
if (new TextDecoder().decode(fileData) !== productData) {
6666
throw new Error("Product data outdated")
6767
}
6868
} catch {
69-
await top.anura.fs.promises.writeFile("/" + location.pathname.split("/").slice(2,-1).join("/") + "/product.json", productData)
69+
await top.tb.fs.promises.writeFile("/" + location.pathname.split("/").slice(2,-1).join("/") + "/product.json", productData)
7070
location.reload();
7171
}
7272
</script>

manifest.json

Lines changed: 0 additions & 13 deletions
This file was deleted.

myDav/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"viewsWelcome": [
4141
{
4242
"view": "explorer",
43-
"contents": "Open an Anura Folder\n[Open anura folder](command:extension.remote.webdav.open)",
43+
"contents": "Open a Terbium Folder\n[Open terbium folder](command:extension.remote.webdav.open)",
4444
"when": "workspaceFolderCount == 0"
4545
}
4646
]

myDav/src/extension.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export async function resetAuth() {
3737
}
3838

3939
export async function openWebdav() {
40+
// Using Anura file picker just because why not
4041
let uriValue = (await ((await fetch("/showFilePicker?type=folder")).json()))["folders"][0]
4142

4243
if (!uriValue) {

product.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,19 @@
2121
"additionalBuiltinExtensions": [
2222
{
2323
"scheme": "http",
24-
"path": "/fs/mntanura.app/myExt"
24+
"path": "/fs/apps/system/vscode.tapp/myExt"
2525
},
2626
{
2727
"scheme": "http",
28-
"path": "/fs/mntanura.app/myDav"
28+
"path": "/fs/apps/system/vscode.tapp/myDav"
29+
},
30+
{
31+
"scheme": "https",
32+
"path": "/fs/apps/system/vscode.tapp/myExt"
33+
},
34+
{
35+
"scheme": "https",
36+
"path": "/fs/apps/system/vscode.tapp/myDav"
2937
}
3038
]
3139
}

0 commit comments

Comments
 (0)