diff --git a/package.json b/package.json
index 61e2ca3..d89cf0a 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@libreservice/wasm-code",
- "version": "0.1.3",
+ "version": "0.1.4",
"main": "dist/index.js",
"type": "module",
"files": [
@@ -22,24 +22,24 @@
},
"sideEffects": false,
"devDependencies": {
- "@babel/runtime": "^7.22.11",
- "@codemirror/language": "^6.9.0",
+ "@babel/runtime": "^7.23.1",
+ "@codemirror/language": "^6.9.1",
"@codemirror/state": "^6.2.1",
- "@codemirror/view": "^6.16.0",
- "@typescript-eslint/eslint-plugin": "^6.4.1",
- "@uiw/codemirror-theme-vscode": "^4.21.10",
+ "@codemirror/view": "^6.20.2",
+ "@typescript-eslint/eslint-plugin": "^6.7.3",
+ "@uiw/codemirror-theme-vscode": "^4.21.18",
"@vicons/material": "^0.12.0",
- "@vitejs/plugin-vue": "^4.3.3",
+ "@vitejs/plugin-vue": "^4.3.4",
"client-zip": "^2.4.4",
"codemirror": "^6.0.1",
- "eslint": "^8.48.0",
+ "eslint": "^8.50.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-vue": "^9.17.0",
"naive-ui": "^2.34.4",
"typescript": "^5.2.2",
"vite": "^4.4.9",
"vue": "^3.3.4",
- "vue-tsc": "^1.8.8"
+ "vue-tsc": "^1.8.15"
},
"peerDependencies": {
"vue": "^3.2.0",
diff --git a/src/FileManager.vue b/src/FileManager.vue
index 6e538be..a6d4609 100644
--- a/src/FileManager.vue
+++ b/src/FileManager.vue
@@ -11,6 +11,7 @@ import {
const props = defineProps<{
fs: ASYNC_FS
height: string
+ hidePath?: HidePath
onOpenFile: HandlerZeroAction
onNewFile: HandlerOneAction
onNewFolder: HandlerOneAction
@@ -24,6 +25,7 @@ const props = defineProps<{
const {
fs,
+ hidePath,
onOpenFile,
onNewFile,
onNewFolder,
@@ -312,6 +314,9 @@ async function handleLoad (node: TreeOption) {
const names = await lsDir(fs, path)
for (const name of names) {
const subPath = path + name
+ if (hidePath && hidePath(subPath)) {
+ continue
+ }
const option: TreeOption = {
label: name
}
diff --git a/src/WasmCode.vue b/src/WasmCode.vue
index 3526def..8d9c436 100644
--- a/src/WasmCode.vue
+++ b/src/WasmCode.vue
@@ -1,5 +1,5 @@