Skip to content

Commit 3446c99

Browse files
committed
fix types
fix user app data folder update deps
1 parent 2d57154 commit 3446c99

File tree

7 files changed

+14
-72
lines changed

7 files changed

+14
-72
lines changed

examples/example.c3p

3.71 KB
Binary file not shown.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"dependencies": {
3-
"@pipelab/core": "1.4.0",
3+
"@pipelab/core": "1.4.3",
44
"adm-zip": "0.5.16",
55
"chokidar": "4.0.3",
66
"cors": "2.8.5",

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/icon.png

49.6 KB
Loading

src/icon.svg

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

src/instance.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -801,9 +801,9 @@ export function getInstanceJs(parentClass, addonTriggers, C3) {
801801
}, this.unsupportedEngine)
802802

803803
_DeleteFile = this.wrap(super._DeleteFile, async (path, recursive) => {
804-
/** @type {import('@pipelab/core').MakeInputOutput<import('@pipelab/core').MessageRemoveFile, 'input'>} */
804+
/** @type {import('@pipelab/core').MakeInputOutput<import('@pipelab/core').MessageDelete, 'input'>} */
805805
const order = {
806-
url: '/fs/remove',
806+
url: '/fs/delete',
807807
body: {
808808
path,
809809
recursive
@@ -830,7 +830,7 @@ export function getInstanceJs(parentClass, addonTriggers, C3) {
830830
}, this.unsupportedEngine)
831831

832832
_MoveFile = this.wrap(super._MoveFile, async (source, destination) => {
833-
/** @type {import('@pipelab/core').MakeInputOutput<import('@pipelab/core').MessageMoveFile, 'input'>} */
833+
/** @type {import('@pipelab/core').MakeInputOutput<import('@pipelab/core').MessageMove, 'input'>} */
834834
const order = {
835835
url: '/fs/move',
836836
body: {
@@ -1080,7 +1080,7 @@ export function getInstanceJs(parentClass, addonTriggers, C3) {
10801080
})
10811081
_UserDataFolder = this.wrap(super._UserDataFolder, () => {
10821082
// console.log('this', this)
1083-
return this._userFolder ?? ''
1083+
return this._userDataFolder ?? ''
10841084
})
10851085
_SessionDataFolder = this.wrap(super._SessionDataFolder, () => {
10861086
// console.log('this', this)
@@ -1188,8 +1188,7 @@ export function getInstanceJs(parentClass, addonTriggers, C3) {
11881188
})
11891189

11901190
_ProjectFilesFolderURL = this.wrap(super._ProjectFilesFolderURL, () => {
1191-
console.error('"_ProjectFilesFolderURL" Not implemented')
1192-
return ''
1191+
return this._projectFilesFolder ?? ''
11931192
})
11941193

11951194
_ReadFile = this.wrap(super._ReadFile, () => {

src/pluginConfig.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const Config = /** @type {const} */({
1717
description: "A plugin that integrate with Pipelab",
1818
addonUrl: "https://github.com/CynToolkit/construct-plugin", // displayed in auto-generated docs
1919
githubUrl: "https://github.com/CynToolkit/construct-plugin", // displays latest release version in auto-generated docs
20-
// icon: "icon.svg", // defaults to "icon.svg" if omitted
20+
icon: "icon.png", // defaults to "icon.svg" if omitted
2121
type: "object", // world, object, dom
2222
fileDependencies: [
2323
/*
@@ -198,7 +198,7 @@ const Config = /** @type {const} */({
198198
}
199199
],
200200
listName: "Copy file",
201-
displayText: "Copy [b]{0}[/b] to [b]{1}[/b]",
201+
displayText: "Copy [b]{0}[/b] to [b]{1}[/b] (recursive: {2})",
202202
description: "Copies the file.",
203203
},
204204
FetchFileSize: {
@@ -262,7 +262,7 @@ const Config = /** @type {const} */({
262262
}
263263
],
264264
listName: "Delete file",
265-
displayText: "Delete file [b]{0}[/b]",
265+
displayText: "Delete file [b]{0}[/b] (recursive: {1})",
266266
description: "Deletes the file.",
267267
},
268268
ListFiles: {

0 commit comments

Comments
 (0)