@lvce-editor/static-server 0.40.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +3 -0
- package/package.json +21 -0
- package/src/parts/Assert/Assert.js +1 -0
- package/src/parts/CachingHeaders/CachingHeaders.js +3 -0
- package/src/parts/CompatServerResponse/CompatServerResponse.js +10 -0
- package/src/parts/CrossOriginEmbedderPolicy/CrossOriginEmbedderPolicy.js +1 -0
- package/src/parts/CrossOriginResourcePolicy/CrossOriginResourcePolicy.js +1 -0
- package/src/parts/GetHeaders/GetHeaders.js +21 -0
- package/src/parts/GetMimeType/GetMimeType.js +30 -0
- package/src/parts/HandleMessageFromParent/HandleMessageFromParent.js +15 -0
- package/src/parts/HandleUncaughtExceptionMonitor/HandleUncaughtExceptionMonitor.js +3 -0
- package/src/parts/HttpHeader/HttpHeader.js +9 -0
- package/src/parts/HttpServerResponse/HttpServerResponse.js +17 -0
- package/src/parts/HttpServerResponseStream/HttpServerResponseStream.js +24 -0
- package/src/parts/HttpStatusCode/HttpStatusCode.js +5 -0
- package/src/parts/Main/Main.js +10 -0
- package/src/parts/MimeType/MimeType.js +37 -0
- package/src/parts/PipelineResponse/PipelineResponse.js +5 -0
- package/src/parts/Root/Root.js +6 -0
- package/src/parts/SetHeaders/SetHeaders.js +5 -0
- package/src/parts/Static/Static.js +4 -0
- package/src/static-server.js +3 -0
- package/static/c76328b/config/colorTheme.json +98 -0
- package/static/c76328b/config/defaultSettings.json +58 -0
- package/static/c76328b/config/fileMap.json +16 -0
- package/static/c76328b/config/webExtensions.json +1 -0
- package/static/c76328b/css/App.css +2881 -0
- package/static/c76328b/css/parts/Animation.css +9 -0
- package/static/c76328b/css/parts/DebugButtons.css +22 -0
- package/static/c76328b/css/parts/DebugValue.css +24 -0
- package/static/c76328b/css/parts/E2eTest.css +48 -0
- package/static/c76328b/css/parts/E2eTests.css +30 -0
- package/static/c76328b/css/parts/EditorHover.css +6 -0
- package/static/c76328b/css/parts/EditorMessage.css +23 -0
- package/static/c76328b/css/parts/ImagePreview.css +33 -0
- package/static/c76328b/css/parts/InlineDiffEditor.css +27 -0
- package/static/c76328b/css/parts/Key.css +12 -0
- package/static/c76328b/css/parts/KeyBindingsHeader.css +36 -0
- package/static/c76328b/css/parts/KeyBindingsTable.css +51 -0
- package/static/c76328b/css/parts/Markdown.css +701 -0
- package/static/c76328b/css/parts/Progress.css +5 -0
- package/static/c76328b/css/parts/SearchToggleButton.css +16 -0
- package/static/c76328b/css/parts/Select.css +11 -0
- package/static/c76328b/css/parts/ViewletAbout.css +9 -0
- package/static/c76328b/css/parts/ViewletBrowserViewOverview.css +4 -0
- package/static/c76328b/css/parts/ViewletDebugConsole.css +16 -0
- package/static/c76328b/css/parts/ViewletDefineKeyBinding.css +21 -0
- package/static/c76328b/css/parts/ViewletDialog.css +150 -0
- package/static/c76328b/css/parts/ViewletDiffEditor.css +31 -0
- package/static/c76328b/css/parts/ViewletEditorWidgetError.css +9 -0
- package/static/c76328b/css/parts/ViewletExtensionDetail.css +79 -0
- package/static/c76328b/css/parts/ViewletExtensions.css +185 -0
- package/static/c76328b/css/parts/ViewletKeyBindings.css +34 -0
- package/static/c76328b/css/parts/ViewletMedia.css +23 -0
- package/static/c76328b/css/parts/ViewletOutput.css +17 -0
- package/static/c76328b/css/parts/ViewletPanel.css +23 -0
- package/static/c76328b/css/parts/ViewletPanelTabs.css +35 -0
- package/static/c76328b/css/parts/ViewletPdf.css +49 -0
- package/static/c76328b/css/parts/ViewletProblems.css +95 -0
- package/static/c76328b/css/parts/ViewletReferences.css +22 -0
- package/static/c76328b/css/parts/ViewletRunAndDebug.css +87 -0
- package/static/c76328b/css/parts/ViewletScreenCapture.css +3 -0
- package/static/c76328b/css/parts/ViewletSearch.css +34 -0
- package/static/c76328b/css/parts/ViewletSimpleBrowser.css +21 -0
- package/static/c76328b/css/parts/ViewletSourceControl.css +67 -0
- package/static/c76328b/css/parts/ViewletStorage.css +21 -0
- package/static/c76328b/css/parts/ViewletTerminal.css +10 -0
- package/static/c76328b/css/parts/ViewletTerminalTabs.css +31 -0
- package/static/c76328b/extensions/builtin.language-basics-bat/README.md +14 -0
- package/static/c76328b/extensions/builtin.language-basics-bat/extension.json +12 -0
- package/static/c76328b/extensions/builtin.language-basics-bat/languageConfiguration.json +17 -0
- package/static/c76328b/extensions/builtin.language-basics-bat/src/tokenizeBat.js +33 -0
- package/static/c76328b/extensions/builtin.language-basics-c/README.md +14 -0
- package/static/c76328b/extensions/builtin.language-basics-c/extension.json +12 -0
- package/static/c76328b/extensions/builtin.language-basics-c/src/tokenizeC.js +211 -0
- package/static/c76328b/extensions/builtin.language-basics-coffeescript/README.md +14 -0
- package/static/c76328b/extensions/builtin.language-basics-coffeescript/extension.json +12 -0
- package/static/c76328b/extensions/builtin.language-basics-coffeescript/src/tokenizeCoffeeScript.js +257 -0
- package/static/c76328b/extensions/builtin.language-basics-cpp/README.md +14 -0
- package/static/c76328b/extensions/builtin.language-basics-cpp/extension.json +32 -0
- package/static/c76328b/extensions/builtin.language-basics-cpp/languageConfiguration.json +5 -0
- package/static/c76328b/extensions/builtin.language-basics-cpp/src/tokenizeCpp.js +321 -0
- package/static/c76328b/extensions/builtin.language-basics-cson/README.md +16 -0
- package/static/c76328b/extensions/builtin.language-basics-cson/extension.json +13 -0
- package/static/c76328b/extensions/builtin.language-basics-cson/languageConfiguration.json +21 -0
- package/static/c76328b/extensions/builtin.language-basics-cson/src/tokenizeCson.js +207 -0
- package/static/c76328b/extensions/builtin.language-basics-css/README.md +16 -0
- package/static/c76328b/extensions/builtin.language-basics-css/extension.json +13 -0
- package/static/c76328b/extensions/builtin.language-basics-css/languageConfiguration.json +21 -0
- package/static/c76328b/extensions/builtin.language-basics-css/src/tokenizeCss.js +691 -0
- package/static/c76328b/extensions/builtin.language-basics-dart/README.md +14 -0
- package/static/c76328b/extensions/builtin.language-basics-dart/extension.json +12 -0
- package/static/c76328b/extensions/builtin.language-basics-dart/src/tokenizeDart.js +139 -0
- package/static/c76328b/extensions/builtin.language-basics-desktop/README.md +14 -0
- package/static/c76328b/extensions/builtin.language-basics-desktop/extension.json +12 -0
- package/static/c76328b/extensions/builtin.language-basics-desktop/src/tokenizeDesktop.js +166 -0
- package/static/c76328b/extensions/builtin.language-basics-docker/README.md +14 -0
- package/static/c76328b/extensions/builtin.language-basics-docker/extension.json +24 -0
- package/static/c76328b/extensions/builtin.language-basics-docker/src/tokenizeDockerfile.js +131 -0
- package/static/c76328b/extensions/builtin.language-basics-dotenv/README.md +14 -0
- package/static/c76328b/extensions/builtin.language-basics-dotenv/extension.json +26 -0
- package/static/c76328b/extensions/builtin.language-basics-dotenv/src/tokenizeDotenv.js +341 -0
- package/static/c76328b/extensions/builtin.language-basics-editorconfig/README.md +14 -0
- package/static/c76328b/extensions/builtin.language-basics-editorconfig/extension.json +12 -0
- package/static/c76328b/extensions/builtin.language-basics-editorconfig/src/tokenizeEditorConfig.js +173 -0
- package/static/c76328b/extensions/builtin.language-basics-elixir/README.md +14 -0
- package/static/c76328b/extensions/builtin.language-basics-elixir/extension.json +12 -0
- package/static/c76328b/extensions/builtin.language-basics-elixir/src/tokenizeElixir.js +180 -0
- package/static/c76328b/extensions/builtin.language-basics-elm/README.md +14 -0
- package/static/c76328b/extensions/builtin.language-basics-elm/extension.json +12 -0
- package/static/c76328b/extensions/builtin.language-basics-elm/src/tokenizeElm.js +301 -0
- package/static/c76328b/extensions/builtin.language-basics-gitattributes/README.md +14 -0
- package/static/c76328b/extensions/builtin.language-basics-gitattributes/extension.json +12 -0
- package/static/c76328b/extensions/builtin.language-basics-gitattributes/src/tokenizeGitAttributes.js +159 -0
- package/static/c76328b/extensions/builtin.language-basics-gn/README.md +14 -0
- package/static/c76328b/extensions/builtin.language-basics-gn/extension.json +12 -0
- package/static/c76328b/extensions/builtin.language-basics-gn/src/tokenizeGn.js +178 -0
- package/static/c76328b/extensions/builtin.language-basics-go/README.md +14 -0
- package/static/c76328b/extensions/builtin.language-basics-go/extension.json +13 -0
- package/static/c76328b/extensions/builtin.language-basics-go/src/tokenizeGo.js +295 -0
- package/static/c76328b/extensions/builtin.language-basics-graphql/README.md +14 -0
- package/static/c76328b/extensions/builtin.language-basics-graphql/extension.json +12 -0
- package/static/c76328b/extensions/builtin.language-basics-graphql/src/tokenizeGraphql.js +452 -0
- package/static/c76328b/extensions/builtin.language-basics-html/README.md +14 -0
- package/static/c76328b/extensions/builtin.language-basics-html/extension.json +13 -0
- package/static/c76328b/extensions/builtin.language-basics-html/languageConfiguration.json +66 -0
- package/static/c76328b/extensions/builtin.language-basics-html/src/tokenizeHtml.js +557 -0
- package/static/c76328b/extensions/builtin.language-basics-java/README.md +14 -0
- package/static/c76328b/extensions/builtin.language-basics-java/extension.json +13 -0
- package/static/c76328b/extensions/builtin.language-basics-java/languageConfiguration.json +31 -0
- package/static/c76328b/extensions/builtin.language-basics-java/src/tokenizeJava.js +284 -0
- package/static/c76328b/extensions/builtin.language-basics-javascript/README.md +14 -0
- package/static/c76328b/extensions/builtin.language-basics-javascript/extension.json +14 -0
- package/static/c76328b/extensions/builtin.language-basics-javascript/languageConfiguration.json +40 -0
- package/static/c76328b/extensions/builtin.language-basics-javascript/src/tokenizeJavaScript.js +619 -0
- package/static/c76328b/extensions/builtin.language-basics-json/README.md +14 -0
- package/static/c76328b/extensions/builtin.language-basics-json/extension.json +60 -0
- package/static/c76328b/extensions/builtin.language-basics-json/src/tokenizeJson.js +362 -0
- package/static/c76328b/extensions/builtin.language-basics-json5/README.md +16 -0
- package/static/c76328b/extensions/builtin.language-basics-json5/extension.json +12 -0
- package/static/c76328b/extensions/builtin.language-basics-json5/src/tokenizeJson5.js +346 -0
- package/static/c76328b/extensions/builtin.language-basics-jsx/README.md +14 -0
- package/static/c76328b/extensions/builtin.language-basics-jsx/extension.json +13 -0
- package/static/c76328b/extensions/builtin.language-basics-jsx/src/tokenizeJsx.js +661 -0
- package/static/c76328b/extensions/builtin.language-basics-julia/README.md +18 -0
- package/static/c76328b/extensions/builtin.language-basics-julia/extension.json +12 -0
- package/static/c76328b/extensions/builtin.language-basics-julia/src/tokenizeJulia.js +181 -0
- package/static/c76328b/extensions/builtin.language-basics-kotlin/README.md +14 -0
- package/static/c76328b/extensions/builtin.language-basics-kotlin/extension.json +12 -0
- package/static/c76328b/extensions/builtin.language-basics-kotlin/src/tokenizeKotlin.js +274 -0
- package/static/c76328b/extensions/builtin.language-basics-less/LICENSE +21 -0
- package/static/c76328b/extensions/builtin.language-basics-less/README.md +14 -0
- package/static/c76328b/extensions/builtin.language-basics-less/extension.json +12 -0
- package/static/c76328b/extensions/builtin.language-basics-less/languageConfiguration.json +17 -0
- package/static/c76328b/extensions/builtin.language-basics-less/src/tokenizeLess.js +612 -0
- package/static/c76328b/extensions/builtin.language-basics-markdown/README.md +14 -0
- package/static/c76328b/extensions/builtin.language-basics-markdown/extension.json +12 -0
- package/static/c76328b/extensions/builtin.language-basics-markdown/src/tokenizeMarkdown.js +471 -0
- package/static/c76328b/extensions/builtin.language-basics-mdx/README.md +14 -0
- package/static/c76328b/extensions/builtin.language-basics-mdx/extension.json +12 -0
- package/static/c76328b/extensions/builtin.language-basics-mdx/src/tokenizeMdx.js +395 -0
- package/static/c76328b/extensions/builtin.language-basics-nix/README.md +16 -0
- package/static/c76328b/extensions/builtin.language-basics-nix/extension.json +13 -0
- package/static/c76328b/extensions/builtin.language-basics-nix/languageConfiguration.json +21 -0
- package/static/c76328b/extensions/builtin.language-basics-nix/src/tokenizeNix.js +224 -0
- package/static/c76328b/extensions/builtin.language-basics-nvmrc/README.md +14 -0
- package/static/c76328b/extensions/builtin.language-basics-nvmrc/extension.json +12 -0
- package/static/c76328b/extensions/builtin.language-basics-nvmrc/src/tokenizeNvmrc.js +30 -0
- package/static/c76328b/extensions/builtin.language-basics-perl/README.md +14 -0
- package/static/c76328b/extensions/builtin.language-basics-perl/extension.json +13 -0
- package/static/c76328b/extensions/builtin.language-basics-perl/src/tokenizePerl.js +200 -0
- package/static/c76328b/extensions/builtin.language-basics-plaintext/README.md +14 -0
- package/static/c76328b/extensions/builtin.language-basics-plaintext/extension.json +12 -0
- package/static/c76328b/extensions/builtin.language-basics-plaintext/src/tokenizePlaintext.js +28 -0
- package/static/c76328b/extensions/builtin.language-basics-powershell/README.md +14 -0
- package/static/c76328b/extensions/builtin.language-basics-powershell/extension.json +12 -0
- package/static/c76328b/extensions/builtin.language-basics-powershell/src/tokenizePowershell.js +141 -0
- package/static/c76328b/extensions/builtin.language-basics-python/README.md +14 -0
- package/static/c76328b/extensions/builtin.language-basics-python/extension.json +15 -0
- package/static/c76328b/extensions/builtin.language-basics-python/languageConfiguration.json +5 -0
- package/static/c76328b/extensions/builtin.language-basics-python/src/tokenizePython.js +326 -0
- package/static/c76328b/extensions/builtin.language-basics-r/README.md +14 -0
- package/static/c76328b/extensions/builtin.language-basics-r/extension.json +12 -0
- package/static/c76328b/extensions/builtin.language-basics-r/src/tokenizeR.js +71 -0
- package/static/c76328b/extensions/builtin.language-basics-ruby/README.md +14 -0
- package/static/c76328b/extensions/builtin.language-basics-ruby/extension.json +48 -0
- package/static/c76328b/extensions/builtin.language-basics-ruby/src/tokenizeRuby.js +248 -0
- package/static/c76328b/extensions/builtin.language-basics-rust/LICENSE +21 -0
- package/static/c76328b/extensions/builtin.language-basics-rust/README.md +14 -0
- package/static/c76328b/extensions/builtin.language-basics-rust/extension.json +12 -0
- package/static/c76328b/extensions/builtin.language-basics-rust/languageConfiguration.json +17 -0
- package/static/c76328b/extensions/builtin.language-basics-rust/src/tokenizeRust.js +205 -0
- package/static/c76328b/extensions/builtin.language-basics-scss/README.md +14 -0
- package/static/c76328b/extensions/builtin.language-basics-scss/extension.json +12 -0
- package/static/c76328b/extensions/builtin.language-basics-scss/languageConfiguration.json +17 -0
- package/static/c76328b/extensions/builtin.language-basics-scss/src/tokenizeScss.js +683 -0
- package/static/c76328b/extensions/builtin.language-basics-shellscript/README.md +14 -0
- package/static/c76328b/extensions/builtin.language-basics-shellscript/extension.json +56 -0
- package/static/c76328b/extensions/builtin.language-basics-shellscript/src/tokenizeShellScript.js +572 -0
- package/static/c76328b/extensions/builtin.language-basics-svelte/README.md +14 -0
- package/static/c76328b/extensions/builtin.language-basics-svelte/extension.json +13 -0
- package/static/c76328b/extensions/builtin.language-basics-svelte/src/tokenizeSvelte.js +428 -0
- package/static/c76328b/extensions/builtin.language-basics-terraform/README.md +16 -0
- package/static/c76328b/extensions/builtin.language-basics-terraform/extension.json +13 -0
- package/static/c76328b/extensions/builtin.language-basics-terraform/src/tokenizeTerraform.js +243 -0
- package/static/c76328b/extensions/builtin.language-basics-toml/README.md +14 -0
- package/static/c76328b/extensions/builtin.language-basics-toml/extension.json +14 -0
- package/static/c76328b/extensions/builtin.language-basics-toml/src/tokenizeToml.js +299 -0
- package/static/c76328b/extensions/builtin.language-basics-typescript/README.md +16 -0
- package/static/c76328b/extensions/builtin.language-basics-typescript/extension.json +17 -0
- package/static/c76328b/extensions/builtin.language-basics-typescript/src/tokenizeTypeScript.js +1683 -0
- package/static/c76328b/extensions/builtin.language-basics-vue/README.md +14 -0
- package/static/c76328b/extensions/builtin.language-basics-vue/extension.json +13 -0
- package/static/c76328b/extensions/builtin.language-basics-vue/src/tokenizeVue.js +481 -0
- package/static/c76328b/extensions/builtin.language-basics-wgsl/README.md +16 -0
- package/static/c76328b/extensions/builtin.language-basics-wgsl/extension.json +13 -0
- package/static/c76328b/extensions/builtin.language-basics-wgsl/languageConfiguration.json +21 -0
- package/static/c76328b/extensions/builtin.language-basics-wgsl/src/tokenizeWgsl.js +226 -0
- package/static/c76328b/extensions/builtin.language-basics-xml/README.md +14 -0
- package/static/c76328b/extensions/builtin.language-basics-xml/extension.json +85 -0
- package/static/c76328b/extensions/builtin.language-basics-xml/src/tokenizeXml.js +328 -0
- package/static/c76328b/extensions/builtin.language-basics-yaml/README.md +14 -0
- package/static/c76328b/extensions/builtin.language-basics-yaml/extension.json +13 -0
- package/static/c76328b/extensions/builtin.language-basics-yaml/src/tokenizeYaml.js +405 -0
- package/static/c76328b/extensions/builtin.theme-atom-one-dark/README.md +11 -0
- package/static/c76328b/extensions/builtin.theme-atom-one-dark/color-theme.json +235 -0
- package/static/c76328b/extensions/builtin.theme-atom-one-dark/extension.json +12 -0
- package/static/c76328b/extensions/builtin.theme-atom-one-dark/images/demo.png +0 -0
- package/static/c76328b/extensions/builtin.theme-ayu/README.md +11 -0
- package/static/c76328b/extensions/builtin.theme-ayu/color-theme.json +234 -0
- package/static/c76328b/extensions/builtin.theme-ayu/extension.json +12 -0
- package/static/c76328b/extensions/builtin.theme-cobalt2/README.md +20 -0
- package/static/c76328b/extensions/builtin.theme-cobalt2/color-theme.json +208 -0
- package/static/c76328b/extensions/builtin.theme-cobalt2/extension.json +13 -0
- package/static/c76328b/extensions/builtin.theme-cobalt2/images/demo.png +0 -0
- package/static/c76328b/extensions/builtin.theme-cobalt2/images/logo.png +0 -0
- package/static/c76328b/extensions/builtin.theme-gruvbox/README.md +20 -0
- package/static/c76328b/extensions/builtin.theme-gruvbox/color-theme.json +217 -0
- package/static/c76328b/extensions/builtin.theme-gruvbox/extension.json +12 -0
- package/static/c76328b/extensions/builtin.theme-high-contrast/README.md +9 -0
- package/static/c76328b/extensions/builtin.theme-high-contrast/color-theme.json +86 -0
- package/static/c76328b/extensions/builtin.theme-high-contrast/extension.json +11 -0
- package/static/c76328b/extensions/builtin.theme-material/README.md +9 -0
- package/static/c76328b/extensions/builtin.theme-material/color-theme.json +183 -0
- package/static/c76328b/extensions/builtin.theme-material/extension.json +12 -0
- package/static/c76328b/extensions/builtin.theme-monokai/README.md +10 -0
- package/static/c76328b/extensions/builtin.theme-monokai/color-theme.json +151 -0
- package/static/c76328b/extensions/builtin.theme-monokai/extension.json +11 -0
- package/static/c76328b/extensions/builtin.theme-noctis-uva/README.md +11 -0
- package/static/c76328b/extensions/builtin.theme-noctis-uva/color-theme.json +211 -0
- package/static/c76328b/extensions/builtin.theme-noctis-uva/extension.json +12 -0
- package/static/c76328b/extensions/builtin.theme-noctis-uva/images/demo.png +0 -0
- package/static/c76328b/extensions/builtin.theme-palenight/README.md +11 -0
- package/static/c76328b/extensions/builtin.theme-palenight/color-theme.json +209 -0
- package/static/c76328b/extensions/builtin.theme-palenight/extension.json +12 -0
- package/static/c76328b/extensions/builtin.theme-palenight/images/demo.png +0 -0
- package/static/c76328b/extensions/builtin.theme-slime/README.md +5 -0
- package/static/c76328b/extensions/builtin.theme-slime/color-theme.json +298 -0
- package/static/c76328b/extensions/builtin.theme-slime/extension.json +13 -0
- package/static/c76328b/extensions/builtin.theme-slime/icon.png +0 -0
- package/static/c76328b/extensions/builtin.vscode-icons/README.md +20 -0
- package/static/c76328b/extensions/builtin.vscode-icons/extension.json +13 -0
- package/static/c76328b/extensions/builtin.vscode-icons/icon-theme.json +4151 -0
- package/static/c76328b/extensions/builtin.vscode-icons/icon.png +0 -0
- package/static/c76328b/file-icons/default_file.svg +1 -0
- package/static/c76328b/file-icons/default_folder.svg +1 -0
- package/static/c76328b/file-icons/default_folder_opened.svg +1 -0
- package/static/c76328b/file-icons/default_root_folder.svg +1 -0
- package/static/c76328b/file-icons/default_root_folder_opened.svg +1 -0
- package/static/c76328b/file-icons/file_type_access.svg +1 -0
- package/static/c76328b/file-icons/file_type_access2.svg +1 -0
- package/static/c76328b/file-icons/file_type_actionscript.svg +1 -0
- package/static/c76328b/file-icons/file_type_actionscript2.svg +1 -0
- package/static/c76328b/file-icons/file_type_ada.svg +1 -0
- package/static/c76328b/file-icons/file_type_advpl.svg +1 -0
- package/static/c76328b/file-icons/file_type_affectscript.svg +1 -0
- package/static/c76328b/file-icons/file_type_affinitydesigner.svg +1 -0
- package/static/c76328b/file-icons/file_type_affinityphoto.svg +1 -0
- package/static/c76328b/file-icons/file_type_affinitypublisher.svg +1 -0
- package/static/c76328b/file-icons/file_type_ai.svg +1 -0
- package/static/c76328b/file-icons/file_type_ai2.svg +1 -0
- package/static/c76328b/file-icons/file_type_al.svg +1 -0
- package/static/c76328b/file-icons/file_type_al_dal.svg +1 -0
- package/static/c76328b/file-icons/file_type_allcontributors.svg +1 -0
- package/static/c76328b/file-icons/file_type_angular.svg +1 -0
- package/static/c76328b/file-icons/file_type_ansible.svg +1 -0
- package/static/c76328b/file-icons/file_type_antlr.svg +1 -0
- package/static/c76328b/file-icons/file_type_anyscript.svg +1 -0
- package/static/c76328b/file-icons/file_type_apache.svg +1 -0
- package/static/c76328b/file-icons/file_type_apex.svg +1 -0
- package/static/c76328b/file-icons/file_type_api_extractor.svg +1 -0
- package/static/c76328b/file-icons/file_type_apib.svg +1 -0
- package/static/c76328b/file-icons/file_type_apib2.svg +1 -0
- package/static/c76328b/file-icons/file_type_apl.svg +1 -0
- package/static/c76328b/file-icons/file_type_applescript.svg +1 -0
- package/static/c76328b/file-icons/file_type_appscript.svg +1 -0
- package/static/c76328b/file-icons/file_type_appsemble.svg +1 -0
- package/static/c76328b/file-icons/file_type_appveyor.svg +1 -0
- package/static/c76328b/file-icons/file_type_arduino.svg +1 -0
- package/static/c76328b/file-icons/file_type_asciidoc.svg +1 -0
- package/static/c76328b/file-icons/file_type_asp.svg +1 -0
- package/static/c76328b/file-icons/file_type_aspx.svg +1 -0
- package/static/c76328b/file-icons/file_type_assembly.svg +1 -0
- package/static/c76328b/file-icons/file_type_astro.svg +1 -0
- package/static/c76328b/file-icons/file_type_astroconfig.svg +1 -0
- package/static/c76328b/file-icons/file_type_atom.svg +1 -0
- package/static/c76328b/file-icons/file_type_ats.svg +1 -0
- package/static/c76328b/file-icons/file_type_audio.svg +1 -0
- package/static/c76328b/file-icons/file_type_aurelia.svg +1 -0
- package/static/c76328b/file-icons/file_type_autohotkey.svg +1 -0
- package/static/c76328b/file-icons/file_type_autoit.svg +1 -0
- package/static/c76328b/file-icons/file_type_avif.svg +1 -0
- package/static/c76328b/file-icons/file_type_avro.svg +1 -0
- package/static/c76328b/file-icons/file_type_awk.svg +1 -0
- package/static/c76328b/file-icons/file_type_aws.svg +1 -0
- package/static/c76328b/file-icons/file_type_azure.svg +1 -0
- package/static/c76328b/file-icons/file_type_azurepipelines.svg +1 -0
- package/static/c76328b/file-icons/file_type_babel.svg +1 -0
- package/static/c76328b/file-icons/file_type_babel2.svg +1 -0
- package/static/c76328b/file-icons/file_type_ballerina.svg +1 -0
- package/static/c76328b/file-icons/file_type_bat.svg +1 -0
- package/static/c76328b/file-icons/file_type_bats.svg +1 -0
- package/static/c76328b/file-icons/file_type_bazaar.svg +1 -0
- package/static/c76328b/file-icons/file_type_bazel.svg +1 -0
- package/static/c76328b/file-icons/file_type_bazel_ignore.svg +1 -0
- package/static/c76328b/file-icons/file_type_bazel_version.svg +1 -0
- package/static/c76328b/file-icons/file_type_befunge.svg +1 -0
- package/static/c76328b/file-icons/file_type_bicep.svg +1 -0
- package/static/c76328b/file-icons/file_type_biml.svg +1 -0
- package/static/c76328b/file-icons/file_type_binary.svg +1 -0
- package/static/c76328b/file-icons/file_type_biome.svg +1 -0
- package/static/c76328b/file-icons/file_type_bitbucketpipeline.svg +1 -0
- package/static/c76328b/file-icons/file_type_bithound.svg +1 -0
- package/static/c76328b/file-icons/file_type_blade.svg +1 -0
- package/static/c76328b/file-icons/file_type_blitzbasic.svg +1 -0
- package/static/c76328b/file-icons/file_type_bolt.svg +1 -0
- package/static/c76328b/file-icons/file_type_bosque.svg +1 -0
- package/static/c76328b/file-icons/file_type_bower.svg +1 -0
- package/static/c76328b/file-icons/file_type_bower2.svg +1 -0
- package/static/c76328b/file-icons/file_type_browserslist.svg +1 -0
- package/static/c76328b/file-icons/file_type_bruno.svg +1 -0
- package/static/c76328b/file-icons/file_type_buckbuild.svg +1 -0
- package/static/c76328b/file-icons/file_type_buf.svg +1 -0
- package/static/c76328b/file-icons/file_type_bun.svg +1 -0
- package/static/c76328b/file-icons/file_type_bundlemon.svg +1 -0
- package/static/c76328b/file-icons/file_type_bundler.svg +1 -0
- package/static/c76328b/file-icons/file_type_bunfig.svg +1 -0
- package/static/c76328b/file-icons/file_type_c.svg +1 -0
- package/static/c76328b/file-icons/file_type_c2.svg +1 -0
- package/static/c76328b/file-icons/file_type_c3.svg +1 -0
- package/static/c76328b/file-icons/file_type_c_al.svg +1 -0
- package/static/c76328b/file-icons/file_type_cabal.svg +1 -0
- package/static/c76328b/file-icons/file_type_caddy.svg +1 -0
- package/static/c76328b/file-icons/file_type_cake.svg +1 -0
- package/static/c76328b/file-icons/file_type_cakephp.svg +1 -0
- package/static/c76328b/file-icons/file_type_capacitor.svg +1 -0
- package/static/c76328b/file-icons/file_type_cargo.svg +1 -0
- package/static/c76328b/file-icons/file_type_casc.svg +1 -0
- package/static/c76328b/file-icons/file_type_cddl.svg +1 -0
- package/static/c76328b/file-icons/file_type_cert.svg +1 -0
- package/static/c76328b/file-icons/file_type_ceylon.svg +1 -0
- package/static/c76328b/file-icons/file_type_cf.svg +1 -0
- package/static/c76328b/file-icons/file_type_cf2.svg +1 -0
- package/static/c76328b/file-icons/file_type_cfc.svg +1 -0
- package/static/c76328b/file-icons/file_type_cfc2.svg +1 -0
- package/static/c76328b/file-icons/file_type_cfm.svg +1 -0
- package/static/c76328b/file-icons/file_type_cfm2.svg +1 -0
- package/static/c76328b/file-icons/file_type_cheader.svg +1 -0
- package/static/c76328b/file-icons/file_type_chef.svg +1 -0
- package/static/c76328b/file-icons/file_type_chef_cookbook.svg +1 -0
- package/static/c76328b/file-icons/file_type_circleci.svg +1 -0
- package/static/c76328b/file-icons/file_type_class.svg +1 -0
- package/static/c76328b/file-icons/file_type_clojure.svg +1 -0
- package/static/c76328b/file-icons/file_type_clojurescript.svg +1 -0
- package/static/c76328b/file-icons/file_type_cloudfoundry.svg +1 -0
- package/static/c76328b/file-icons/file_type_cmake.svg +1 -0
- package/static/c76328b/file-icons/file_type_cobol.svg +1 -0
- package/static/c76328b/file-icons/file_type_codacy.svg +1 -0
- package/static/c76328b/file-icons/file_type_codeclimate.svg +1 -0
- package/static/c76328b/file-icons/file_type_codecov.svg +1 -0
- package/static/c76328b/file-icons/file_type_codekit.svg +1 -0
- package/static/c76328b/file-icons/file_type_codeowners.svg +1 -0
- package/static/c76328b/file-icons/file_type_codeql.svg +1 -0
- package/static/c76328b/file-icons/file_type_coderabbit.svg +1 -0
- package/static/c76328b/file-icons/file_type_coffeelint.svg +1 -0
- package/static/c76328b/file-icons/file_type_coffeescript.svg +1 -0
- package/static/c76328b/file-icons/file_type_commitizen.svg +1 -0
- package/static/c76328b/file-icons/file_type_commitlint.svg +1 -0
- package/static/c76328b/file-icons/file_type_compass.svg +1 -0
- package/static/c76328b/file-icons/file_type_composer.svg +1 -0
- package/static/c76328b/file-icons/file_type_conan.svg +1 -0
- package/static/c76328b/file-icons/file_type_conda.svg +1 -0
- package/static/c76328b/file-icons/file_type_config.svg +1 -0
- package/static/c76328b/file-icons/file_type_confluence.svg +1 -0
- package/static/c76328b/file-icons/file_type_coverage.svg +1 -0
- package/static/c76328b/file-icons/file_type_coveralls.svg +1 -0
- package/static/c76328b/file-icons/file_type_cpp.svg +1 -0
- package/static/c76328b/file-icons/file_type_cpp2.svg +1 -0
- package/static/c76328b/file-icons/file_type_cpp3.svg +1 -0
- package/static/c76328b/file-icons/file_type_cppheader.svg +1 -0
- package/static/c76328b/file-icons/file_type_crowdin.svg +1 -0
- package/static/c76328b/file-icons/file_type_crystal.svg +1 -0
- package/static/c76328b/file-icons/file_type_csharp.svg +1 -0
- package/static/c76328b/file-icons/file_type_csharp2.svg +1 -0
- package/static/c76328b/file-icons/file_type_cspell.svg +1 -0
- package/static/c76328b/file-icons/file_type_csproj.svg +1 -0
- package/static/c76328b/file-icons/file_type_css.svg +1 -0
- package/static/c76328b/file-icons/file_type_csscomb.svg +1 -0
- package/static/c76328b/file-icons/file_type_csslint.svg +1 -0
- package/static/c76328b/file-icons/file_type_cssmap.svg +1 -0
- package/static/c76328b/file-icons/file_type_cucumber.svg +1 -0
- package/static/c76328b/file-icons/file_type_cuda.svg +1 -0
- package/static/c76328b/file-icons/file_type_cvs.svg +1 -0
- package/static/c76328b/file-icons/file_type_cypress.svg +1 -0
- package/static/c76328b/file-icons/file_type_cypress_spec.svg +1 -0
- package/static/c76328b/file-icons/file_type_cython.svg +1 -0
- package/static/c76328b/file-icons/file_type_dal.svg +1 -0
- package/static/c76328b/file-icons/file_type_darcs.svg +1 -0
- package/static/c76328b/file-icons/file_type_dartlang.svg +1 -0
- package/static/c76328b/file-icons/file_type_dartlang_generated.svg +1 -0
- package/static/c76328b/file-icons/file_type_dartlang_ignore.svg +1 -0
- package/static/c76328b/file-icons/file_type_datadog.svg +1 -0
- package/static/c76328b/file-icons/file_type_db.svg +1 -0
- package/static/c76328b/file-icons/file_type_debian.svg +1 -0
- package/static/c76328b/file-icons/file_type_delphi.svg +1 -0
- package/static/c76328b/file-icons/file_type_deno.svg +1 -0
- package/static/c76328b/file-icons/file_type_denoify.svg +1 -0
- package/static/c76328b/file-icons/file_type_dependabot.svg +1 -0
- package/static/c76328b/file-icons/file_type_dependencies.svg +1 -0
- package/static/c76328b/file-icons/file_type_devcontainer.svg +1 -0
- package/static/c76328b/file-icons/file_type_dhall.svg +1 -0
- package/static/c76328b/file-icons/file_type_diff.svg +1 -0
- package/static/c76328b/file-icons/file_type_django.svg +1 -0
- package/static/c76328b/file-icons/file_type_dlang.svg +1 -0
- package/static/c76328b/file-icons/file_type_docker.svg +1 -0
- package/static/c76328b/file-icons/file_type_docker2.svg +1 -0
- package/static/c76328b/file-icons/file_type_dockertest.svg +1 -0
- package/static/c76328b/file-icons/file_type_dockertest2.svg +1 -0
- package/static/c76328b/file-icons/file_type_docpad.svg +1 -0
- package/static/c76328b/file-icons/file_type_docz.svg +1 -0
- package/static/c76328b/file-icons/file_type_dojo.svg +1 -0
- package/static/c76328b/file-icons/file_type_doppler.svg +1 -0
- package/static/c76328b/file-icons/file_type_dotenv.svg +1 -0
- package/static/c76328b/file-icons/file_type_dotjs.svg +1 -0
- package/static/c76328b/file-icons/file_type_doxygen.svg +1 -0
- package/static/c76328b/file-icons/file_type_drawio.svg +1 -0
- package/static/c76328b/file-icons/file_type_drone.svg +1 -0
- package/static/c76328b/file-icons/file_type_drools.svg +1 -0
- package/static/c76328b/file-icons/file_type_dtd.svg +1 -0
- package/static/c76328b/file-icons/file_type_dustjs.svg +1 -0
- package/static/c76328b/file-icons/file_type_dvc.svg +1 -0
- package/static/c76328b/file-icons/file_type_dylan.svg +1 -0
- package/static/c76328b/file-icons/file_type_earthly.svg +1 -0
- package/static/c76328b/file-icons/file_type_eas-metadata.svg +1 -0
- package/static/c76328b/file-icons/file_type_edge.svg +1 -0
- package/static/c76328b/file-icons/file_type_edge2.svg +1 -0
- package/static/c76328b/file-icons/file_type_editorconfig.svg +1 -0
- package/static/c76328b/file-icons/file_type_eex.svg +1 -0
- package/static/c76328b/file-icons/file_type_ejs.svg +1 -0
- package/static/c76328b/file-icons/file_type_elastic.svg +1 -0
- package/static/c76328b/file-icons/file_type_elasticbeanstalk.svg +1 -0
- package/static/c76328b/file-icons/file_type_eleventy.svg +1 -0
- package/static/c76328b/file-icons/file_type_eleventy2.svg +1 -0
- package/static/c76328b/file-icons/file_type_elixir.svg +1 -0
- package/static/c76328b/file-icons/file_type_elm.svg +1 -0
- package/static/c76328b/file-icons/file_type_elm2.svg +1 -0
- package/static/c76328b/file-icons/file_type_emacs.svg +1 -0
- package/static/c76328b/file-icons/file_type_ember.svg +1 -0
- package/static/c76328b/file-icons/file_type_ensime.svg +1 -0
- package/static/c76328b/file-icons/file_type_eps.svg +1 -0
- package/static/c76328b/file-icons/file_type_erb.svg +1 -0
- package/static/c76328b/file-icons/file_type_erlang.svg +1 -0
- package/static/c76328b/file-icons/file_type_erlang2.svg +1 -0
- package/static/c76328b/file-icons/file_type_esbuild.svg +1 -0
- package/static/c76328b/file-icons/file_type_eslint.svg +1 -0
- package/static/c76328b/file-icons/file_type_eslint2.svg +1 -0
- package/static/c76328b/file-icons/file_type_esphome.svg +1 -0
- package/static/c76328b/file-icons/file_type_excalidraw.svg +1 -0
- package/static/c76328b/file-icons/file_type_excel.svg +1 -0
- package/static/c76328b/file-icons/file_type_excel2.svg +1 -0
- package/static/c76328b/file-icons/file_type_expo.svg +1 -0
- package/static/c76328b/file-icons/file_type_falcon.svg +1 -0
- package/static/c76328b/file-icons/file_type_fantasticon.svg +1 -0
- package/static/c76328b/file-icons/file_type_fauna.svg +1 -0
- package/static/c76328b/file-icons/file_type_favicon.svg +1 -0
- package/static/c76328b/file-icons/file_type_fbx.svg +1 -0
- package/static/c76328b/file-icons/file_type_firebase.svg +1 -0
- package/static/c76328b/file-icons/file_type_firebasehosting.svg +1 -0
- package/static/c76328b/file-icons/file_type_firestore.svg +1 -0
- package/static/c76328b/file-icons/file_type_fitbit.svg +1 -0
- package/static/c76328b/file-icons/file_type_fla.svg +1 -0
- package/static/c76328b/file-icons/file_type_flareact.svg +1 -0
- package/static/c76328b/file-icons/file_type_flash.svg +1 -0
- package/static/c76328b/file-icons/file_type_floobits.svg +1 -0
- package/static/c76328b/file-icons/file_type_flow.svg +1 -0
- package/static/c76328b/file-icons/file_type_flutter.svg +1 -0
- package/static/c76328b/file-icons/file_type_flutter_package.svg +1 -0
- package/static/c76328b/file-icons/file_type_font.svg +1 -0
- package/static/c76328b/file-icons/file_type_formkit.svg +1 -0
- package/static/c76328b/file-icons/file_type_fortran.svg +1 -0
- package/static/c76328b/file-icons/file_type_fossa.svg +1 -0
- package/static/c76328b/file-icons/file_type_fossil.svg +1 -0
- package/static/c76328b/file-icons/file_type_freemarker.svg +1 -0
- package/static/c76328b/file-icons/file_type_frontcommerce.svg +1 -0
- package/static/c76328b/file-icons/file_type_fsharp.svg +1 -0
- package/static/c76328b/file-icons/file_type_fsharp2.svg +1 -0
- package/static/c76328b/file-icons/file_type_fsproj.svg +1 -0
- package/static/c76328b/file-icons/file_type_fthtml.svg +1 -0
- package/static/c76328b/file-icons/file_type_funding.svg +1 -0
- package/static/c76328b/file-icons/file_type_fusebox.svg +1 -0
- package/static/c76328b/file-icons/file_type_galen.svg +1 -0
- package/static/c76328b/file-icons/file_type_galen2.svg +1 -0
- package/static/c76328b/file-icons/file_type_gamemaker.svg +1 -0
- package/static/c76328b/file-icons/file_type_gamemaker2.svg +1 -0
- package/static/c76328b/file-icons/file_type_gamemaker81.svg +1 -0
- package/static/c76328b/file-icons/file_type_gatsby.svg +1 -0
- package/static/c76328b/file-icons/file_type_gcloud.svg +1 -0
- package/static/c76328b/file-icons/file_type_gcode.svg +1 -0
- package/static/c76328b/file-icons/file_type_gdscript.svg +1 -0
- package/static/c76328b/file-icons/file_type_genstat.svg +1 -0
- package/static/c76328b/file-icons/file_type_git.svg +1 -0
- package/static/c76328b/file-icons/file_type_git2.svg +1 -0
- package/static/c76328b/file-icons/file_type_gitlab.svg +1 -0
- package/static/c76328b/file-icons/file_type_gitpod.svg +1 -0
- package/static/c76328b/file-icons/file_type_gleam.svg +1 -0
- package/static/c76328b/file-icons/file_type_gleamconfig.svg +1 -0
- package/static/c76328b/file-icons/file_type_glide.svg +1 -0
- package/static/c76328b/file-icons/file_type_glitter.svg +1 -0
- package/static/c76328b/file-icons/file_type_glsl.svg +1 -0
- package/static/c76328b/file-icons/file_type_glyphs.svg +1 -0
- package/static/c76328b/file-icons/file_type_gnu.svg +1 -0
- package/static/c76328b/file-icons/file_type_gnuplot.svg +1 -0
- package/static/c76328b/file-icons/file_type_go.svg +1 -0
- package/static/c76328b/file-icons/file_type_go_aqua.svg +1 -0
- package/static/c76328b/file-icons/file_type_go_black.svg +1 -0
- package/static/c76328b/file-icons/file_type_go_fuchsia.svg +1 -0
- package/static/c76328b/file-icons/file_type_go_gopher.svg +1 -0
- package/static/c76328b/file-icons/file_type_go_lightblue.svg +1 -0
- package/static/c76328b/file-icons/file_type_go_package.svg +1 -0
- package/static/c76328b/file-icons/file_type_go_white.svg +1 -0
- package/static/c76328b/file-icons/file_type_go_work.svg +1 -0
- package/static/c76328b/file-icons/file_type_go_yellow.svg +1 -0
- package/static/c76328b/file-icons/file_type_goctl.svg +1 -0
- package/static/c76328b/file-icons/file_type_godot.svg +1 -0
- package/static/c76328b/file-icons/file_type_gpg.svg +1 -0
- package/static/c76328b/file-icons/file_type_gradle.svg +1 -0
- package/static/c76328b/file-icons/file_type_gradle2.svg +1 -0
- package/static/c76328b/file-icons/file_type_grain.svg +1 -0
- package/static/c76328b/file-icons/file_type_graphql.svg +1 -0
- package/static/c76328b/file-icons/file_type_graphql_config.svg +1 -0
- package/static/c76328b/file-icons/file_type_graphviz.svg +1 -0
- package/static/c76328b/file-icons/file_type_greenkeeper.svg +1 -0
- package/static/c76328b/file-icons/file_type_gridsome.svg +1 -0
- package/static/c76328b/file-icons/file_type_groovy.svg +1 -0
- package/static/c76328b/file-icons/file_type_groovy2.svg +1 -0
- package/static/c76328b/file-icons/file_type_grunt.svg +1 -0
- package/static/c76328b/file-icons/file_type_gulp.svg +1 -0
- package/static/c76328b/file-icons/file_type_haml.svg +1 -0
- package/static/c76328b/file-icons/file_type_handlebars.svg +1 -0
- package/static/c76328b/file-icons/file_type_handlebars2.svg +1 -0
- package/static/c76328b/file-icons/file_type_harbour.svg +1 -0
- package/static/c76328b/file-icons/file_type_hardhat.svg +1 -0
- package/static/c76328b/file-icons/file_type_hashicorp.svg +1 -0
- package/static/c76328b/file-icons/file_type_haskell.svg +1 -0
- package/static/c76328b/file-icons/file_type_haskell2.svg +1 -0
- package/static/c76328b/file-icons/file_type_haxe.svg +1 -0
- package/static/c76328b/file-icons/file_type_haxecheckstyle.svg +1 -0
- package/static/c76328b/file-icons/file_type_haxedevelop.svg +1 -0
- package/static/c76328b/file-icons/file_type_helix.svg +1 -0
- package/static/c76328b/file-icons/file_type_helm.svg +1 -0
- package/static/c76328b/file-icons/file_type_hjson.svg +1 -0
- package/static/c76328b/file-icons/file_type_hlsl.svg +1 -0
- package/static/c76328b/file-icons/file_type_homeassistant.svg +1 -0
- package/static/c76328b/file-icons/file_type_horusec.svg +1 -0
- package/static/c76328b/file-icons/file_type_host.svg +1 -0
- package/static/c76328b/file-icons/file_type_html.svg +1 -0
- package/static/c76328b/file-icons/file_type_htmlhint.svg +1 -0
- package/static/c76328b/file-icons/file_type_htmlvalidate.svg +1 -0
- package/static/c76328b/file-icons/file_type_http.svg +1 -0
- package/static/c76328b/file-icons/file_type_hunspell.svg +1 -0
- package/static/c76328b/file-icons/file_type_husky.svg +1 -0
- package/static/c76328b/file-icons/file_type_hy.svg +1 -0
- package/static/c76328b/file-icons/file_type_hygen.svg +1 -0
- package/static/c76328b/file-icons/file_type_hypr.svg +1 -0
- package/static/c76328b/file-icons/file_type_icl.svg +1 -0
- package/static/c76328b/file-icons/file_type_idris.svg +1 -0
- package/static/c76328b/file-icons/file_type_idrisbin.svg +1 -0
- package/static/c76328b/file-icons/file_type_idrispkg.svg +1 -0
- package/static/c76328b/file-icons/file_type_image.svg +1 -0
- package/static/c76328b/file-icons/file_type_imba.svg +1 -0
- package/static/c76328b/file-icons/file_type_inc.svg +1 -0
- package/static/c76328b/file-icons/file_type_infopath.svg +1 -0
- package/static/c76328b/file-icons/file_type_informix.svg +1 -0
- package/static/c76328b/file-icons/file_type_ini.svg +1 -0
- package/static/c76328b/file-icons/file_type_ink.svg +1 -0
- package/static/c76328b/file-icons/file_type_innosetup.svg +1 -0
- package/static/c76328b/file-icons/file_type_io.svg +1 -0
- package/static/c76328b/file-icons/file_type_iodine.svg +1 -0
- package/static/c76328b/file-icons/file_type_ionic.svg +1 -0
- package/static/c76328b/file-icons/file_type_jake.svg +1 -0
- package/static/c76328b/file-icons/file_type_janet.svg +1 -0
- package/static/c76328b/file-icons/file_type_jar.svg +1 -0
- package/static/c76328b/file-icons/file_type_jasmine.svg +1 -0
- package/static/c76328b/file-icons/file_type_java.svg +1 -0
- package/static/c76328b/file-icons/file_type_jbuilder.svg +1 -0
- package/static/c76328b/file-icons/file_type_jekyll.svg +1 -0
- package/static/c76328b/file-icons/file_type_jenkins.svg +1 -0
- package/static/c76328b/file-icons/file_type_jest.svg +1 -0
- package/static/c76328b/file-icons/file_type_jest_snapshot.svg +1 -0
- package/static/c76328b/file-icons/file_type_jinja.svg +1 -0
- package/static/c76328b/file-icons/file_type_jpm.svg +1 -0
- package/static/c76328b/file-icons/file_type_js.svg +1 -0
- package/static/c76328b/file-icons/file_type_js_official.svg +1 -0
- package/static/c76328b/file-icons/file_type_jsbeautify.svg +1 -0
- package/static/c76328b/file-icons/file_type_jsconfig.svg +1 -0
- package/static/c76328b/file-icons/file_type_jscpd.svg +1 -0
- package/static/c76328b/file-icons/file_type_jshint.svg +1 -0
- package/static/c76328b/file-icons/file_type_jsmap.svg +1 -0
- package/static/c76328b/file-icons/file_type_json.svg +1 -0
- package/static/c76328b/file-icons/file_type_json2.svg +1 -0
- package/static/c76328b/file-icons/file_type_json5.svg +1 -0
- package/static/c76328b/file-icons/file_type_json_official.svg +1 -0
- package/static/c76328b/file-icons/file_type_json_schema.svg +1 -0
- package/static/c76328b/file-icons/file_type_jsonld.svg +1 -0
- package/static/c76328b/file-icons/file_type_jsonnet.svg +1 -0
- package/static/c76328b/file-icons/file_type_jsp.svg +1 -0
- package/static/c76328b/file-icons/file_type_jss.svg +1 -0
- package/static/c76328b/file-icons/file_type_juice.svg +1 -0
- package/static/c76328b/file-icons/file_type_julia.svg +1 -0
- package/static/c76328b/file-icons/file_type_julia2.svg +1 -0
- package/static/c76328b/file-icons/file_type_jupyter.svg +1 -0
- package/static/c76328b/file-icons/file_type_k.svg +1 -0
- package/static/c76328b/file-icons/file_type_karma.svg +1 -0
- package/static/c76328b/file-icons/file_type_key.svg +1 -0
- package/static/c76328b/file-icons/file_type_kitchenci.svg +1 -0
- package/static/c76328b/file-icons/file_type_kite.svg +1 -0
- package/static/c76328b/file-icons/file_type_kivy.svg +1 -0
- package/static/c76328b/file-icons/file_type_knip.svg +1 -0
- package/static/c76328b/file-icons/file_type_kos.svg +1 -0
- package/static/c76328b/file-icons/file_type_kotlin.svg +1 -0
- package/static/c76328b/file-icons/file_type_kusto.svg +1 -0
- package/static/c76328b/file-icons/file_type_latino.svg +1 -0
- package/static/c76328b/file-icons/file_type_layout.svg +1 -0
- package/static/c76328b/file-icons/file_type_lerna.svg +1 -0
- package/static/c76328b/file-icons/file_type_less.svg +1 -0
- package/static/c76328b/file-icons/file_type_lex.svg +1 -0
- package/static/c76328b/file-icons/file_type_liara.svg +1 -0
- package/static/c76328b/file-icons/file_type_libreoffice_base.svg +1 -0
- package/static/c76328b/file-icons/file_type_libreoffice_calc.svg +1 -0
- package/static/c76328b/file-icons/file_type_libreoffice_draw.svg +1 -0
- package/static/c76328b/file-icons/file_type_libreoffice_impress.svg +1 -0
- package/static/c76328b/file-icons/file_type_libreoffice_math.svg +1 -0
- package/static/c76328b/file-icons/file_type_libreoffice_writer.svg +1 -0
- package/static/c76328b/file-icons/file_type_license.svg +1 -0
- package/static/c76328b/file-icons/file_type_licensebat.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_actionscript2.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_ada.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_apl.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_astro.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_astroconfig.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_babel.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_babel2.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_cabal.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_circleci.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_cloudfoundry.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_codacy.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_codeclimate.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_codeowners.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_config.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_crystal.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_cypress.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_cypress_spec.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_db.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_deno.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_dhall.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_docpad.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_drone.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_eas-metadata.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_eleventy.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_eleventy2.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_esphome.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_expo.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_firebasehosting.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_fla.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_font.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_gamemaker2.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_gradle.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_hashicorp.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_hjson.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_ini.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_io.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_js.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_jsconfig.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_jsmap.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_json.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_json5.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_json_schema.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_jsonld.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_kite.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_lerna.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_mailing.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_mdx-components.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_mdx.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_mlang.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_mustache.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_netlify.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_next.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_nim.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_nx.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_objidconfig.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_openHAB.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_pcl.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_pnpm.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_prettier.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_prisma.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_purescript.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_quasar.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_raku.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_razzle.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_rehype.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_remark.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_replit.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_retext.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_rome.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_rubocop.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_rust.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_rust_toolchain.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_safetensors.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_shaderlab.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_solidity.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_spin.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_stylelint.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_stylus.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_symfony.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_systemd.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_systemverilog.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_testcafe.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_testjs.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_tex.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_tm.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_tmux.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_todo.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_toit.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_toml.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_tree.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_turbo.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_unibeautify.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_vash.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_vercel.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_vsix.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_vsixmanifest.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_xfl.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_xorg.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_yaml.svg +1 -0
- package/static/c76328b/file-icons/file_type_light_zeit.svg +1 -0
- package/static/c76328b/file-icons/file_type_lighthouse.svg +1 -0
- package/static/c76328b/file-icons/file_type_lilypond.svg +1 -0
- package/static/c76328b/file-icons/file_type_lime.svg +1 -0
- package/static/c76328b/file-icons/file_type_lintstagedrc.svg +1 -0
- package/static/c76328b/file-icons/file_type_liquid.svg +1 -0
- package/static/c76328b/file-icons/file_type_lisp.svg +1 -0
- package/static/c76328b/file-icons/file_type_livescript.svg +1 -0
- package/static/c76328b/file-icons/file_type_lnk.svg +1 -0
- package/static/c76328b/file-icons/file_type_locale.svg +1 -0
- package/static/c76328b/file-icons/file_type_log.svg +1 -0
- package/static/c76328b/file-icons/file_type_lolcode.svg +1 -0
- package/static/c76328b/file-icons/file_type_lsl.svg +1 -0
- package/static/c76328b/file-icons/file_type_lua.svg +1 -0
- package/static/c76328b/file-icons/file_type_luau.svg +1 -0
- package/static/c76328b/file-icons/file_type_lync.svg +1 -0
- package/static/c76328b/file-icons/file_type_mailing.svg +1 -0
- package/static/c76328b/file-icons/file_type_makefile.svg +1 -0
- package/static/c76328b/file-icons/file_type_manifest.svg +1 -0
- package/static/c76328b/file-icons/file_type_manifest_bak.svg +1 -0
- package/static/c76328b/file-icons/file_type_manifest_skip.svg +1 -0
- package/static/c76328b/file-icons/file_type_map.svg +1 -0
- package/static/c76328b/file-icons/file_type_mariadb.svg +1 -0
- package/static/c76328b/file-icons/file_type_markdown.svg +1 -0
- package/static/c76328b/file-icons/file_type_markdownlint.svg +1 -0
- package/static/c76328b/file-icons/file_type_markdownlint_ignore.svg +1 -0
- package/static/c76328b/file-icons/file_type_marko.svg +1 -0
- package/static/c76328b/file-icons/file_type_markojs.svg +1 -0
- package/static/c76328b/file-icons/file_type_master-co.svg +1 -0
- package/static/c76328b/file-icons/file_type_matlab.svg +1 -0
- package/static/c76328b/file-icons/file_type_maven.svg +1 -0
- package/static/c76328b/file-icons/file_type_maxscript.svg +1 -0
- package/static/c76328b/file-icons/file_type_maya.svg +1 -0
- package/static/c76328b/file-icons/file_type_mdx-components.svg +1 -0
- package/static/c76328b/file-icons/file_type_mdx.svg +1 -0
- package/static/c76328b/file-icons/file_type_mediawiki.svg +1 -0
- package/static/c76328b/file-icons/file_type_mercurial.svg +1 -0
- package/static/c76328b/file-icons/file_type_mermaid.svg +1 -0
- package/static/c76328b/file-icons/file_type_meson.svg +1 -0
- package/static/c76328b/file-icons/file_type_meteor.svg +1 -0
- package/static/c76328b/file-icons/file_type_mivascript.svg +1 -0
- package/static/c76328b/file-icons/file_type_mjml.svg +1 -0
- package/static/c76328b/file-icons/file_type_mlang.svg +1 -0
- package/static/c76328b/file-icons/file_type_mocha.svg +1 -0
- package/static/c76328b/file-icons/file_type_modernizr.svg +1 -0
- package/static/c76328b/file-icons/file_type_mojo.svg +1 -0
- package/static/c76328b/file-icons/file_type_mojolicious.svg +1 -0
- package/static/c76328b/file-icons/file_type_moleculer.svg +1 -0
- package/static/c76328b/file-icons/file_type_mondoo.svg +1 -0
- package/static/c76328b/file-icons/file_type_mongo.svg +1 -0
- package/static/c76328b/file-icons/file_type_monotone.svg +1 -0
- package/static/c76328b/file-icons/file_type_motif.svg +1 -0
- package/static/c76328b/file-icons/file_type_mson.svg +1 -0
- package/static/c76328b/file-icons/file_type_mustache.svg +1 -0
- package/static/c76328b/file-icons/file_type_mvt.svg +1 -0
- package/static/c76328b/file-icons/file_type_mvtcss.svg +1 -0
- package/static/c76328b/file-icons/file_type_mvtjs.svg +1 -0
- package/static/c76328b/file-icons/file_type_mysql.svg +1 -0
- package/static/c76328b/file-icons/file_type_ndst.svg +1 -0
- package/static/c76328b/file-icons/file_type_nearly.svg +1 -0
- package/static/c76328b/file-icons/file_type_nest_adapter_js.svg +1 -0
- package/static/c76328b/file-icons/file_type_nest_adapter_ts.svg +1 -0
- package/static/c76328b/file-icons/file_type_nest_controller_js.svg +1 -0
- package/static/c76328b/file-icons/file_type_nest_controller_ts.svg +1 -0
- package/static/c76328b/file-icons/file_type_nest_decorator_js.svg +1 -0
- package/static/c76328b/file-icons/file_type_nest_decorator_ts.svg +1 -0
- package/static/c76328b/file-icons/file_type_nest_filter_js.svg +1 -0
- package/static/c76328b/file-icons/file_type_nest_filter_ts.svg +1 -0
- package/static/c76328b/file-icons/file_type_nest_gateway_js.svg +1 -0
- package/static/c76328b/file-icons/file_type_nest_gateway_ts.svg +1 -0
- package/static/c76328b/file-icons/file_type_nest_guard_js.svg +1 -0
- package/static/c76328b/file-icons/file_type_nest_guard_ts.svg +1 -0
- package/static/c76328b/file-icons/file_type_nest_interceptor_js.svg +1 -0
- package/static/c76328b/file-icons/file_type_nest_interceptor_ts.svg +1 -0
- package/static/c76328b/file-icons/file_type_nest_middleware_js.svg +1 -0
- package/static/c76328b/file-icons/file_type_nest_middleware_ts.svg +1 -0
- package/static/c76328b/file-icons/file_type_nest_module_js.svg +1 -0
- package/static/c76328b/file-icons/file_type_nest_module_ts.svg +1 -0
- package/static/c76328b/file-icons/file_type_nest_pipe_js.svg +1 -0
- package/static/c76328b/file-icons/file_type_nest_pipe_ts.svg +1 -0
- package/static/c76328b/file-icons/file_type_nest_service_js.svg +1 -0
- package/static/c76328b/file-icons/file_type_nest_service_ts.svg +1 -0
- package/static/c76328b/file-icons/file_type_nestjs.svg +1 -0
- package/static/c76328b/file-icons/file_type_netlify.svg +1 -0
- package/static/c76328b/file-icons/file_type_next.svg +1 -0
- package/static/c76328b/file-icons/file_type_nextflow.svg +1 -0
- package/static/c76328b/file-icons/file_type_ng_component_css.svg +1 -0
- package/static/c76328b/file-icons/file_type_ng_component_dart.svg +1 -0
- package/static/c76328b/file-icons/file_type_ng_component_html.svg +1 -0
- package/static/c76328b/file-icons/file_type_ng_component_js.svg +1 -0
- package/static/c76328b/file-icons/file_type_ng_component_js2.svg +1 -0
- package/static/c76328b/file-icons/file_type_ng_component_less.svg +1 -0
- package/static/c76328b/file-icons/file_type_ng_component_sass.svg +1 -0
- package/static/c76328b/file-icons/file_type_ng_component_scss.svg +1 -0
- package/static/c76328b/file-icons/file_type_ng_component_ts.svg +1 -0
- package/static/c76328b/file-icons/file_type_ng_component_ts2.svg +1 -0
- package/static/c76328b/file-icons/file_type_ng_controller_js.svg +1 -0
- package/static/c76328b/file-icons/file_type_ng_controller_ts.svg +1 -0
- package/static/c76328b/file-icons/file_type_ng_directive_dart.svg +1 -0
- package/static/c76328b/file-icons/file_type_ng_directive_js.svg +1 -0
- package/static/c76328b/file-icons/file_type_ng_directive_js2.svg +1 -0
- package/static/c76328b/file-icons/file_type_ng_directive_ts.svg +1 -0
- package/static/c76328b/file-icons/file_type_ng_directive_ts2.svg +1 -0
- package/static/c76328b/file-icons/file_type_ng_guard_dart.svg +1 -0
- package/static/c76328b/file-icons/file_type_ng_guard_js.svg +1 -0
- package/static/c76328b/file-icons/file_type_ng_guard_ts.svg +1 -0
- package/static/c76328b/file-icons/file_type_ng_interceptor_dart.svg +1 -0
- package/static/c76328b/file-icons/file_type_ng_interceptor_js.svg +1 -0
- package/static/c76328b/file-icons/file_type_ng_interceptor_ts.svg +1 -0
- package/static/c76328b/file-icons/file_type_ng_module_dart.svg +1 -0
- package/static/c76328b/file-icons/file_type_ng_module_js.svg +1 -0
- package/static/c76328b/file-icons/file_type_ng_module_js2.svg +1 -0
- package/static/c76328b/file-icons/file_type_ng_module_ts.svg +1 -0
- package/static/c76328b/file-icons/file_type_ng_module_ts2.svg +1 -0
- package/static/c76328b/file-icons/file_type_ng_pipe_dart.svg +1 -0
- package/static/c76328b/file-icons/file_type_ng_pipe_js.svg +1 -0
- package/static/c76328b/file-icons/file_type_ng_pipe_js2.svg +1 -0
- package/static/c76328b/file-icons/file_type_ng_pipe_ts.svg +1 -0
- package/static/c76328b/file-icons/file_type_ng_pipe_ts2.svg +1 -0
- package/static/c76328b/file-icons/file_type_ng_routing_dart.svg +1 -0
- package/static/c76328b/file-icons/file_type_ng_routing_js.svg +1 -0
- package/static/c76328b/file-icons/file_type_ng_routing_js2.svg +1 -0
- package/static/c76328b/file-icons/file_type_ng_routing_ts.svg +1 -0
- package/static/c76328b/file-icons/file_type_ng_routing_ts2.svg +1 -0
- package/static/c76328b/file-icons/file_type_ng_service_dart.svg +1 -0
- package/static/c76328b/file-icons/file_type_ng_service_js.svg +1 -0
- package/static/c76328b/file-icons/file_type_ng_service_js2.svg +1 -0
- package/static/c76328b/file-icons/file_type_ng_service_ts.svg +1 -0
- package/static/c76328b/file-icons/file_type_ng_service_ts2.svg +1 -0
- package/static/c76328b/file-icons/file_type_ng_smart_component_dart.svg +1 -0
- package/static/c76328b/file-icons/file_type_ng_smart_component_js.svg +1 -0
- package/static/c76328b/file-icons/file_type_ng_smart_component_js2.svg +1 -0
- package/static/c76328b/file-icons/file_type_ng_smart_component_ts.svg +1 -0
- package/static/c76328b/file-icons/file_type_ng_smart_component_ts2.svg +1 -0
- package/static/c76328b/file-icons/file_type_ng_tailwind.svg +1 -0
- package/static/c76328b/file-icons/file_type_nginx.svg +1 -0
- package/static/c76328b/file-icons/file_type_nim.svg +1 -0
- package/static/c76328b/file-icons/file_type_nimble.svg +1 -0
- package/static/c76328b/file-icons/file_type_ninja.svg +1 -0
- package/static/c76328b/file-icons/file_type_nix.svg +1 -0
- package/static/c76328b/file-icons/file_type_njsproj.svg +1 -0
- package/static/c76328b/file-icons/file_type_noc.svg +1 -0
- package/static/c76328b/file-icons/file_type_node.svg +1 -0
- package/static/c76328b/file-icons/file_type_node2.svg +1 -0
- package/static/c76328b/file-icons/file_type_nodemon.svg +1 -0
- package/static/c76328b/file-icons/file_type_npm.svg +1 -0
- package/static/c76328b/file-icons/file_type_nsi.svg +1 -0
- package/static/c76328b/file-icons/file_type_nsri-integrity.svg +1 -0
- package/static/c76328b/file-icons/file_type_nsri.svg +1 -0
- package/static/c76328b/file-icons/file_type_nuget.svg +1 -0
- package/static/c76328b/file-icons/file_type_numpy.svg +1 -0
- package/static/c76328b/file-icons/file_type_nunjucks.svg +1 -0
- package/static/c76328b/file-icons/file_type_nuxt.svg +1 -0
- package/static/c76328b/file-icons/file_type_nx.svg +1 -0
- package/static/c76328b/file-icons/file_type_nyc.svg +1 -0
- package/static/c76328b/file-icons/file_type_objectivec.svg +1 -0
- package/static/c76328b/file-icons/file_type_objectivecpp.svg +1 -0
- package/static/c76328b/file-icons/file_type_objidconfig.svg +1 -0
- package/static/c76328b/file-icons/file_type_ocaml.svg +1 -0
- package/static/c76328b/file-icons/file_type_ocaml_intf.svg +1 -0
- package/static/c76328b/file-icons/file_type_ogone.svg +1 -0
- package/static/c76328b/file-icons/file_type_onenote.svg +1 -0
- package/static/c76328b/file-icons/file_type_openHAB.svg +1 -0
- package/static/c76328b/file-icons/file_type_opencl.svg +1 -0
- package/static/c76328b/file-icons/file_type_openscad.svg +1 -0
- package/static/c76328b/file-icons/file_type_org.svg +1 -0
- package/static/c76328b/file-icons/file_type_outlook.svg +1 -0
- package/static/c76328b/file-icons/file_type_ovpn.svg +1 -0
- package/static/c76328b/file-icons/file_type_package.svg +1 -0
- package/static/c76328b/file-icons/file_type_paket.svg +1 -0
- package/static/c76328b/file-icons/file_type_pandacss.svg +1 -0
- package/static/c76328b/file-icons/file_type_patch.svg +1 -0
- package/static/c76328b/file-icons/file_type_pcl.svg +1 -0
- package/static/c76328b/file-icons/file_type_pddl.svg +1 -0
- package/static/c76328b/file-icons/file_type_pddl_happenings.svg +1 -0
- package/static/c76328b/file-icons/file_type_pddl_plan.svg +1 -0
- package/static/c76328b/file-icons/file_type_pdf.svg +1 -0
- package/static/c76328b/file-icons/file_type_pdf2.svg +1 -0
- package/static/c76328b/file-icons/file_type_pdm.svg +1 -0
- package/static/c76328b/file-icons/file_type_peeky.svg +1 -0
- package/static/c76328b/file-icons/file_type_perl.svg +1 -0
- package/static/c76328b/file-icons/file_type_perl2.svg +1 -0
- package/static/c76328b/file-icons/file_type_perl6.svg +1 -0
- package/static/c76328b/file-icons/file_type_pgsql.svg +1 -0
- package/static/c76328b/file-icons/file_type_photoshop.svg +1 -0
- package/static/c76328b/file-icons/file_type_photoshop2.svg +1 -0
- package/static/c76328b/file-icons/file_type_php.svg +1 -0
- package/static/c76328b/file-icons/file_type_php2.svg +1 -0
- package/static/c76328b/file-icons/file_type_php3.svg +1 -0
- package/static/c76328b/file-icons/file_type_phpcsfixer.svg +1 -0
- package/static/c76328b/file-icons/file_type_phpstan.svg +1 -0
- package/static/c76328b/file-icons/file_type_phpunit.svg +1 -0
- package/static/c76328b/file-icons/file_type_phraseapp.svg +1 -0
- package/static/c76328b/file-icons/file_type_pine.svg +1 -0
- package/static/c76328b/file-icons/file_type_pip.svg +1 -0
- package/static/c76328b/file-icons/file_type_pipeline.svg +1 -0
- package/static/c76328b/file-icons/file_type_plantuml.svg +1 -0
- package/static/c76328b/file-icons/file_type_platformio.svg +1 -0
- package/static/c76328b/file-icons/file_type_playwright.svg +1 -0
- package/static/c76328b/file-icons/file_type_plsql.svg +1 -0
- package/static/c76328b/file-icons/file_type_plsql_package.svg +1 -0
- package/static/c76328b/file-icons/file_type_plsql_package_body.svg +1 -0
- package/static/c76328b/file-icons/file_type_plsql_package_header.svg +1 -0
- package/static/c76328b/file-icons/file_type_plsql_package_spec.svg +1 -0
- package/static/c76328b/file-icons/file_type_pm2.svg +1 -0
- package/static/c76328b/file-icons/file_type_pnpm.svg +1 -0
- package/static/c76328b/file-icons/file_type_poedit.svg +1 -0
- package/static/c76328b/file-icons/file_type_poetry.svg +1 -0
- package/static/c76328b/file-icons/file_type_polymer.svg +1 -0
- package/static/c76328b/file-icons/file_type_pony.svg +1 -0
- package/static/c76328b/file-icons/file_type_postcss.svg +1 -0
- package/static/c76328b/file-icons/file_type_postcssconfig.svg +1 -0
- package/static/c76328b/file-icons/file_type_postman.svg +1 -0
- package/static/c76328b/file-icons/file_type_powerpoint.svg +1 -0
- package/static/c76328b/file-icons/file_type_powerpoint2.svg +1 -0
- package/static/c76328b/file-icons/file_type_powershell.svg +1 -0
- package/static/c76328b/file-icons/file_type_powershell2.svg +1 -0
- package/static/c76328b/file-icons/file_type_powershell_format.svg +1 -0
- package/static/c76328b/file-icons/file_type_powershell_psd.svg +1 -0
- package/static/c76328b/file-icons/file_type_powershell_psd2.svg +1 -0
- package/static/c76328b/file-icons/file_type_powershell_psm.svg +1 -0
- package/static/c76328b/file-icons/file_type_powershell_psm2.svg +1 -0
- package/static/c76328b/file-icons/file_type_powershell_types.svg +1 -0
- package/static/c76328b/file-icons/file_type_preact.svg +1 -0
- package/static/c76328b/file-icons/file_type_precommit.svg +1 -0
- package/static/c76328b/file-icons/file_type_prettier.svg +1 -0
- package/static/c76328b/file-icons/file_type_prisma.svg +1 -0
- package/static/c76328b/file-icons/file_type_processinglang.svg +1 -0
- package/static/c76328b/file-icons/file_type_procfile.svg +1 -0
- package/static/c76328b/file-icons/file_type_progress.svg +1 -0
- package/static/c76328b/file-icons/file_type_prolog.svg +1 -0
- package/static/c76328b/file-icons/file_type_prometheus.svg +1 -0
- package/static/c76328b/file-icons/file_type_protobuf.svg +1 -0
- package/static/c76328b/file-icons/file_type_protractor.svg +1 -0
- package/static/c76328b/file-icons/file_type_publiccode.svg +1 -0
- package/static/c76328b/file-icons/file_type_publisher.svg +1 -0
- package/static/c76328b/file-icons/file_type_pug.svg +1 -0
- package/static/c76328b/file-icons/file_type_pulumi.svg +1 -0
- package/static/c76328b/file-icons/file_type_puppet.svg +1 -0
- package/static/c76328b/file-icons/file_type_purescript.svg +1 -0
- package/static/c76328b/file-icons/file_type_pyenv.svg +1 -0
- package/static/c76328b/file-icons/file_type_pyret.svg +1 -0
- package/static/c76328b/file-icons/file_type_pyscript.svg +1 -0
- package/static/c76328b/file-icons/file_type_python.svg +1 -0
- package/static/c76328b/file-icons/file_type_pythowo.svg +1 -0
- package/static/c76328b/file-icons/file_type_pytyped.svg +1 -0
- package/static/c76328b/file-icons/file_type_pyup.svg +1 -0
- package/static/c76328b/file-icons/file_type_q.svg +1 -0
- package/static/c76328b/file-icons/file_type_qbs.svg +1 -0
- package/static/c76328b/file-icons/file_type_qlikview.svg +1 -0
- package/static/c76328b/file-icons/file_type_qml.svg +1 -0
- package/static/c76328b/file-icons/file_type_qmldir.svg +1 -0
- package/static/c76328b/file-icons/file_type_qsharp.svg +1 -0
- package/static/c76328b/file-icons/file_type_quasar.svg +1 -0
- package/static/c76328b/file-icons/file_type_r.svg +1 -0
- package/static/c76328b/file-icons/file_type_ra_syntax_tree.svg +1 -0
- package/static/c76328b/file-icons/file_type_racket.svg +1 -0
- package/static/c76328b/file-icons/file_type_rails.svg +1 -0
- package/static/c76328b/file-icons/file_type_rake.svg +1 -0
- package/static/c76328b/file-icons/file_type_raku.svg +1 -0
- package/static/c76328b/file-icons/file_type_raml.svg +1 -0
- package/static/c76328b/file-icons/file_type_razor.svg +1 -0
- package/static/c76328b/file-icons/file_type_razzle.svg +1 -0
- package/static/c76328b/file-icons/file_type_reactjs.svg +1 -0
- package/static/c76328b/file-icons/file_type_reacttemplate.svg +1 -0
- package/static/c76328b/file-icons/file_type_reactts.svg +1 -0
- package/static/c76328b/file-icons/file_type_reason.svg +1 -0
- package/static/c76328b/file-icons/file_type_red.svg +1 -0
- package/static/c76328b/file-icons/file_type_registry.svg +1 -0
- package/static/c76328b/file-icons/file_type_rego.svg +1 -0
- package/static/c76328b/file-icons/file_type_rehype.svg +1 -0
- package/static/c76328b/file-icons/file_type_remark.svg +1 -0
- package/static/c76328b/file-icons/file_type_renovate.svg +1 -0
- package/static/c76328b/file-icons/file_type_replit.svg +1 -0
- package/static/c76328b/file-icons/file_type_rescript.svg +1 -0
- package/static/c76328b/file-icons/file_type_rest.svg +1 -0
- package/static/c76328b/file-icons/file_type_retext.svg +1 -0
- package/static/c76328b/file-icons/file_type_rexx.svg +1 -0
- package/static/c76328b/file-icons/file_type_riot.svg +1 -0
- package/static/c76328b/file-icons/file_type_rmd.svg +1 -0
- package/static/c76328b/file-icons/file_type_rnc.svg +1 -0
- package/static/c76328b/file-icons/file_type_robotframework.svg +1 -0
- package/static/c76328b/file-icons/file_type_robots.svg +1 -0
- package/static/c76328b/file-icons/file_type_rollup.svg +1 -0
- package/static/c76328b/file-icons/file_type_rome.svg +1 -0
- package/static/c76328b/file-icons/file_type_ron.svg +1 -0
- package/static/c76328b/file-icons/file_type_rproj.svg +1 -0
- package/static/c76328b/file-icons/file_type_rspec.svg +1 -0
- package/static/c76328b/file-icons/file_type_rss.svg +1 -0
- package/static/c76328b/file-icons/file_type_rubocop.svg +1 -0
- package/static/c76328b/file-icons/file_type_ruby.svg +1 -0
- package/static/c76328b/file-icons/file_type_rust.svg +1 -0
- package/static/c76328b/file-icons/file_type_rust_toolchain.svg +1 -0
- package/static/c76328b/file-icons/file_type_s-lang.svg +1 -0
- package/static/c76328b/file-icons/file_type_safetensors.svg +1 -0
- package/static/c76328b/file-icons/file_type_sails.svg +1 -0
- package/static/c76328b/file-icons/file_type_saltstack.svg +1 -0
- package/static/c76328b/file-icons/file_type_san.svg +1 -0
- package/static/c76328b/file-icons/file_type_sapphire_framework_cli.svg +1 -0
- package/static/c76328b/file-icons/file_type_sas.svg +1 -0
- package/static/c76328b/file-icons/file_type_sass.svg +1 -0
- package/static/c76328b/file-icons/file_type_sbt.svg +1 -0
- package/static/c76328b/file-icons/file_type_scala.svg +1 -0
- package/static/c76328b/file-icons/file_type_scilab.svg +1 -0
- package/static/c76328b/file-icons/file_type_script.svg +1 -0
- package/static/c76328b/file-icons/file_type_scss.svg +1 -0
- package/static/c76328b/file-icons/file_type_scss2.svg +1 -0
- package/static/c76328b/file-icons/file_type_sdlang.svg +1 -0
- package/static/c76328b/file-icons/file_type_search_result.svg +1 -0
- package/static/c76328b/file-icons/file_type_sentry.svg +1 -0
- package/static/c76328b/file-icons/file_type_sequelize.svg +1 -0
- package/static/c76328b/file-icons/file_type_serverless.svg +1 -0
- package/static/c76328b/file-icons/file_type_shaderlab.svg +1 -0
- package/static/c76328b/file-icons/file_type_shell.svg +1 -0
- package/static/c76328b/file-icons/file_type_shellcheck.svg +1 -0
- package/static/c76328b/file-icons/file_type_shuttle.svg +1 -0
- package/static/c76328b/file-icons/file_type_silverstripe.svg +1 -0
- package/static/c76328b/file-icons/file_type_sino.svg +1 -0
- package/static/c76328b/file-icons/file_type_siyuan.svg +1 -0
- package/static/c76328b/file-icons/file_type_sketch.svg +1 -0
- package/static/c76328b/file-icons/file_type_skipper.svg +1 -0
- package/static/c76328b/file-icons/file_type_slang.svg +1 -0
- package/static/c76328b/file-icons/file_type_slashup.svg +1 -0
- package/static/c76328b/file-icons/file_type_slice.svg +1 -0
- package/static/c76328b/file-icons/file_type_slim.svg +1 -0
- package/static/c76328b/file-icons/file_type_slint.svg +1 -0
- package/static/c76328b/file-icons/file_type_sln.svg +1 -0
- package/static/c76328b/file-icons/file_type_sln2.svg +1 -0
- package/static/c76328b/file-icons/file_type_smarty.svg +1 -0
- package/static/c76328b/file-icons/file_type_snakemake.svg +1 -0
- package/static/c76328b/file-icons/file_type_snapcraft.svg +1 -0
- package/static/c76328b/file-icons/file_type_snaplet.svg +1 -0
- package/static/c76328b/file-icons/file_type_snort.svg +1 -0
- package/static/c76328b/file-icons/file_type_snyk.svg +1 -0
- package/static/c76328b/file-icons/file_type_solidarity.svg +1 -0
- package/static/c76328b/file-icons/file_type_solidity.svg +1 -0
- package/static/c76328b/file-icons/file_type_source.svg +1 -0
- package/static/c76328b/file-icons/file_type_spacengine.svg +1 -0
- package/static/c76328b/file-icons/file_type_sparql.svg +1 -0
- package/static/c76328b/file-icons/file_type_spin.svg +1 -0
- package/static/c76328b/file-icons/file_type_sqf.svg +1 -0
- package/static/c76328b/file-icons/file_type_sql.svg +1 -0
- package/static/c76328b/file-icons/file_type_sqlite.svg +1 -0
- package/static/c76328b/file-icons/file_type_squirrel.svg +1 -0
- package/static/c76328b/file-icons/file_type_sss.svg +1 -0
- package/static/c76328b/file-icons/file_type_sst.svg +1 -0
- package/static/c76328b/file-icons/file_type_stan.svg +1 -0
- package/static/c76328b/file-icons/file_type_stata.svg +1 -0
- package/static/c76328b/file-icons/file_type_stencil.svg +1 -0
- package/static/c76328b/file-icons/file_type_storyboard.svg +1 -0
- package/static/c76328b/file-icons/file_type_storybook.svg +1 -0
- package/static/c76328b/file-icons/file_type_stryker.svg +1 -0
- package/static/c76328b/file-icons/file_type_stylable.svg +1 -0
- package/static/c76328b/file-icons/file_type_style.svg +1 -0
- package/static/c76328b/file-icons/file_type_styled.svg +1 -0
- package/static/c76328b/file-icons/file_type_stylelint.svg +1 -0
- package/static/c76328b/file-icons/file_type_stylish_haskell.svg +1 -0
- package/static/c76328b/file-icons/file_type_stylus.svg +1 -0
- package/static/c76328b/file-icons/file_type_sublime.svg +1 -0
- package/static/c76328b/file-icons/file_type_subversion.svg +1 -0
- package/static/c76328b/file-icons/file_type_svelte.svg +1 -0
- package/static/c76328b/file-icons/file_type_svelteconfig.svg +1 -0
- package/static/c76328b/file-icons/file_type_svg.svg +1 -0
- package/static/c76328b/file-icons/file_type_svgo.svg +1 -0
- package/static/c76328b/file-icons/file_type_swagger.svg +1 -0
- package/static/c76328b/file-icons/file_type_swc.svg +1 -0
- package/static/c76328b/file-icons/file_type_swift.svg +1 -0
- package/static/c76328b/file-icons/file_type_swig.svg +1 -0
- package/static/c76328b/file-icons/file_type_symfony.svg +1 -0
- package/static/c76328b/file-icons/file_type_systemd.svg +1 -0
- package/static/c76328b/file-icons/file_type_systemverilog.svg +1 -0
- package/static/c76328b/file-icons/file_type_t4tt.svg +1 -0
- package/static/c76328b/file-icons/file_type_tailwind.svg +1 -0
- package/static/c76328b/file-icons/file_type_tamagui.svg +1 -0
- package/static/c76328b/file-icons/file_type_taskfile.svg +1 -0
- package/static/c76328b/file-icons/file_type_tauri.svg +1 -0
- package/static/c76328b/file-icons/file_type_tcl.svg +1 -0
- package/static/c76328b/file-icons/file_type_teal.svg +1 -0
- package/static/c76328b/file-icons/file_type_templ.svg +1 -0
- package/static/c76328b/file-icons/file_type_tera.svg +1 -0
- package/static/c76328b/file-icons/file_type_terraform.svg +1 -0
- package/static/c76328b/file-icons/file_type_test.svg +1 -0
- package/static/c76328b/file-icons/file_type_testcafe.svg +1 -0
- package/static/c76328b/file-icons/file_type_testjs.svg +1 -0
- package/static/c76328b/file-icons/file_type_testplane.svg +1 -0
- package/static/c76328b/file-icons/file_type_testts.svg +1 -0
- package/static/c76328b/file-icons/file_type_tex.svg +1 -0
- package/static/c76328b/file-icons/file_type_text.svg +1 -0
- package/static/c76328b/file-icons/file_type_textile.svg +1 -0
- package/static/c76328b/file-icons/file_type_tfs.svg +1 -0
- package/static/c76328b/file-icons/file_type_tiltfile.svg +1 -0
- package/static/c76328b/file-icons/file_type_tm.svg +1 -0
- package/static/c76328b/file-icons/file_type_tmux.svg +1 -0
- package/static/c76328b/file-icons/file_type_todo.svg +1 -0
- package/static/c76328b/file-icons/file_type_toit.svg +1 -0
- package/static/c76328b/file-icons/file_type_toml.svg +1 -0
- package/static/c76328b/file-icons/file_type_tox.svg +1 -0
- package/static/c76328b/file-icons/file_type_travis.svg +1 -0
- package/static/c76328b/file-icons/file_type_tree.svg +1 -0
- package/static/c76328b/file-icons/file_type_tres.svg +1 -0
- package/static/c76328b/file-icons/file_type_truffle.svg +1 -0
- package/static/c76328b/file-icons/file_type_trunk.svg +1 -0
- package/static/c76328b/file-icons/file_type_tsbuildinfo.svg +1 -0
- package/static/c76328b/file-icons/file_type_tscn.svg +1 -0
- package/static/c76328b/file-icons/file_type_tsconfig.svg +1 -0
- package/static/c76328b/file-icons/file_type_tsconfig_official.svg +1 -0
- package/static/c76328b/file-icons/file_type_tslint.svg +1 -0
- package/static/c76328b/file-icons/file_type_tt.svg +1 -0
- package/static/c76328b/file-icons/file_type_ttcn.svg +1 -0
- package/static/c76328b/file-icons/file_type_tuc.svg +1 -0
- package/static/c76328b/file-icons/file_type_turbo.svg +1 -0
- package/static/c76328b/file-icons/file_type_twig.svg +1 -0
- package/static/c76328b/file-icons/file_type_typedoc.svg +1 -0
- package/static/c76328b/file-icons/file_type_typescript.svg +1 -0
- package/static/c76328b/file-icons/file_type_typescript_official.svg +1 -0
- package/static/c76328b/file-icons/file_type_typescriptdef.svg +1 -0
- package/static/c76328b/file-icons/file_type_typescriptdef_official.svg +1 -0
- package/static/c76328b/file-icons/file_type_typo3.svg +1 -0
- package/static/c76328b/file-icons/file_type_uiua.svg +1 -0
- package/static/c76328b/file-icons/file_type_unibeautify.svg +1 -0
- package/static/c76328b/file-icons/file_type_unison.svg +1 -0
- package/static/c76328b/file-icons/file_type_unlicense.svg +1 -0
- package/static/c76328b/file-icons/file_type_unocss.svg +1 -0
- package/static/c76328b/file-icons/file_type_vagrant.svg +1 -0
- package/static/c76328b/file-icons/file_type_vala.svg +1 -0
- package/static/c76328b/file-icons/file_type_vanilla_extract.svg +1 -0
- package/static/c76328b/file-icons/file_type_vapi.svg +1 -0
- package/static/c76328b/file-icons/file_type_vapor.svg +1 -0
- package/static/c76328b/file-icons/file_type_vash.svg +1 -0
- package/static/c76328b/file-icons/file_type_vb.svg +1 -0
- package/static/c76328b/file-icons/file_type_vba.svg +1 -0
- package/static/c76328b/file-icons/file_type_vbhtml.svg +1 -0
- package/static/c76328b/file-icons/file_type_vbproj.svg +1 -0
- package/static/c76328b/file-icons/file_type_vcxproj.svg +1 -0
- package/static/c76328b/file-icons/file_type_velocity.svg +1 -0
- package/static/c76328b/file-icons/file_type_vento.svg +1 -0
- package/static/c76328b/file-icons/file_type_vercel.svg +1 -0
- package/static/c76328b/file-icons/file_type_verilog.svg +1 -0
- package/static/c76328b/file-icons/file_type_vhdl.svg +1 -0
- package/static/c76328b/file-icons/file_type_video.svg +1 -0
- package/static/c76328b/file-icons/file_type_view.svg +1 -0
- package/static/c76328b/file-icons/file_type_vim.svg +1 -0
- package/static/c76328b/file-icons/file_type_vite.svg +1 -0
- package/static/c76328b/file-icons/file_type_vitest.svg +1 -0
- package/static/c76328b/file-icons/file_type_vlang.svg +1 -0
- package/static/c76328b/file-icons/file_type_volt.svg +1 -0
- package/static/c76328b/file-icons/file_type_vscode-insiders.svg +1 -0
- package/static/c76328b/file-icons/file_type_vscode.svg +1 -0
- package/static/c76328b/file-icons/file_type_vscode2.svg +1 -0
- package/static/c76328b/file-icons/file_type_vscode3.svg +1 -0
- package/static/c76328b/file-icons/file_type_vscode_test.svg +1 -0
- package/static/c76328b/file-icons/file_type_vsix.svg +1 -0
- package/static/c76328b/file-icons/file_type_vsixmanifest.svg +1 -0
- package/static/c76328b/file-icons/file_type_vue.svg +1 -0
- package/static/c76328b/file-icons/file_type_vueconfig.svg +1 -0
- package/static/c76328b/file-icons/file_type_vyper.svg +1 -0
- package/static/c76328b/file-icons/file_type_wallaby.svg +1 -0
- package/static/c76328b/file-icons/file_type_wally.svg +1 -0
- package/static/c76328b/file-icons/file_type_wasm.svg +1 -0
- package/static/c76328b/file-icons/file_type_watchmanconfig.svg +1 -0
- package/static/c76328b/file-icons/file_type_wdio.svg +1 -0
- package/static/c76328b/file-icons/file_type_webpack.svg +1 -0
- package/static/c76328b/file-icons/file_type_wenyan.svg +1 -0
- package/static/c76328b/file-icons/file_type_wercker.svg +1 -0
- package/static/c76328b/file-icons/file_type_wgsl.svg +1 -0
- package/static/c76328b/file-icons/file_type_wikitext.svg +1 -0
- package/static/c76328b/file-icons/file_type_windi.svg +1 -0
- package/static/c76328b/file-icons/file_type_wit.svg +1 -0
- package/static/c76328b/file-icons/file_type_wolfram.svg +1 -0
- package/static/c76328b/file-icons/file_type_word.svg +1 -0
- package/static/c76328b/file-icons/file_type_word2.svg +1 -0
- package/static/c76328b/file-icons/file_type_wpml.svg +1 -0
- package/static/c76328b/file-icons/file_type_wurst.svg +1 -0
- package/static/c76328b/file-icons/file_type_wxml.svg +1 -0
- package/static/c76328b/file-icons/file_type_wxss.svg +1 -0
- package/static/c76328b/file-icons/file_type_wxt.svg +1 -0
- package/static/c76328b/file-icons/file_type_xcode.svg +1 -0
- package/static/c76328b/file-icons/file_type_xfl.svg +1 -0
- package/static/c76328b/file-icons/file_type_xib.svg +1 -0
- package/static/c76328b/file-icons/file_type_xliff.svg +1 -0
- package/static/c76328b/file-icons/file_type_xmake.svg +1 -0
- package/static/c76328b/file-icons/file_type_xml.svg +1 -0
- package/static/c76328b/file-icons/file_type_xo.svg +1 -0
- package/static/c76328b/file-icons/file_type_xorg.svg +1 -0
- package/static/c76328b/file-icons/file_type_xquery.svg +1 -0
- package/static/c76328b/file-icons/file_type_xsl.svg +1 -0
- package/static/c76328b/file-icons/file_type_yacc.svg +1 -0
- package/static/c76328b/file-icons/file_type_yaml.svg +1 -0
- package/static/c76328b/file-icons/file_type_yamllint.svg +1 -0
- package/static/c76328b/file-icons/file_type_yandex.svg +1 -0
- package/static/c76328b/file-icons/file_type_yang.svg +1 -0
- package/static/c76328b/file-icons/file_type_yarn.svg +1 -0
- package/static/c76328b/file-icons/file_type_yeoman.svg +1 -0
- package/static/c76328b/file-icons/file_type_zeit.svg +1 -0
- package/static/c76328b/file-icons/file_type_zig.svg +1 -0
- package/static/c76328b/file-icons/file_type_zip.svg +1 -0
- package/static/c76328b/file-icons/file_type_zip2.svg +1 -0
- package/static/c76328b/file-icons/folder_type_android.svg +1 -0
- package/static/c76328b/file-icons/folder_type_android_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_api.svg +1 -0
- package/static/c76328b/file-icons/folder_type_api_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_app.svg +1 -0
- package/static/c76328b/file-icons/folder_type_app_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_arangodb.svg +1 -0
- package/static/c76328b/file-icons/folder_type_arangodb_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_asset.svg +1 -0
- package/static/c76328b/file-icons/folder_type_asset_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_audio.svg +1 -0
- package/static/c76328b/file-icons/folder_type_audio_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_aurelia.svg +1 -0
- package/static/c76328b/file-icons/folder_type_aurelia_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_aws.svg +1 -0
- package/static/c76328b/file-icons/folder_type_aws_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_azure.svg +1 -0
- package/static/c76328b/file-icons/folder_type_azure_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_azurepipelines.svg +1 -0
- package/static/c76328b/file-icons/folder_type_azurepipelines_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_binary.svg +1 -0
- package/static/c76328b/file-icons/folder_type_binary_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_bloc.svg +1 -0
- package/static/c76328b/file-icons/folder_type_bloc_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_blueprint.svg +1 -0
- package/static/c76328b/file-icons/folder_type_blueprint_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_bot.svg +1 -0
- package/static/c76328b/file-icons/folder_type_bot_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_bower.svg +1 -0
- package/static/c76328b/file-icons/folder_type_bower_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_buildkite.svg +1 -0
- package/static/c76328b/file-icons/folder_type_buildkite_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_cake.svg +1 -0
- package/static/c76328b/file-icons/folder_type_cake_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_certificate.svg +1 -0
- package/static/c76328b/file-icons/folder_type_certificate_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_changesets.svg +1 -0
- package/static/c76328b/file-icons/folder_type_changesets_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_chef.svg +1 -0
- package/static/c76328b/file-icons/folder_type_chef_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_circleci.svg +1 -0
- package/static/c76328b/file-icons/folder_type_circleci_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_cli.svg +1 -0
- package/static/c76328b/file-icons/folder_type_cli_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_client.svg +1 -0
- package/static/c76328b/file-icons/folder_type_client_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_cmake.svg +1 -0
- package/static/c76328b/file-icons/folder_type_cmake_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_common.svg +1 -0
- package/static/c76328b/file-icons/folder_type_common_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_component.svg +1 -0
- package/static/c76328b/file-icons/folder_type_component_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_composer.svg +1 -0
- package/static/c76328b/file-icons/folder_type_composer_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_config.svg +1 -0
- package/static/c76328b/file-icons/folder_type_config_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_controller.svg +1 -0
- package/static/c76328b/file-icons/folder_type_controller_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_coverage.svg +1 -0
- package/static/c76328b/file-icons/folder_type_coverage_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_css.svg +1 -0
- package/static/c76328b/file-icons/folder_type_css_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_cubit.svg +1 -0
- package/static/c76328b/file-icons/folder_type_cubit_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_cypress.svg +1 -0
- package/static/c76328b/file-icons/folder_type_cypress_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_dapr.svg +1 -0
- package/static/c76328b/file-icons/folder_type_dapr_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_datadog.svg +1 -0
- package/static/c76328b/file-icons/folder_type_datadog_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_db.svg +1 -0
- package/static/c76328b/file-icons/folder_type_db_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_debian.svg +1 -0
- package/static/c76328b/file-icons/folder_type_debian_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_dependabot.svg +1 -0
- package/static/c76328b/file-icons/folder_type_dependabot_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_devcontainer.svg +1 -0
- package/static/c76328b/file-icons/folder_type_devcontainer_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_dist.svg +1 -0
- package/static/c76328b/file-icons/folder_type_dist_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_docker.svg +1 -0
- package/static/c76328b/file-icons/folder_type_docker_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_docs.svg +1 -0
- package/static/c76328b/file-icons/folder_type_docs_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_e2e.svg +1 -0
- package/static/c76328b/file-icons/folder_type_e2e_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_elasticbeanstalk.svg +1 -0
- package/static/c76328b/file-icons/folder_type_elasticbeanstalk_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_electron.svg +1 -0
- package/static/c76328b/file-icons/folder_type_electron_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_expo.svg +1 -0
- package/static/c76328b/file-icons/folder_type_expo_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_favicon.svg +1 -0
- package/static/c76328b/file-icons/folder_type_favicon_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_flow.svg +1 -0
- package/static/c76328b/file-icons/folder_type_flow_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_fonts.svg +1 -0
- package/static/c76328b/file-icons/folder_type_fonts_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_frontcommerce.svg +1 -0
- package/static/c76328b/file-icons/folder_type_frontcommerce_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_gcp.svg +1 -0
- package/static/c76328b/file-icons/folder_type_gcp_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_git.svg +1 -0
- package/static/c76328b/file-icons/folder_type_git_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_github.svg +1 -0
- package/static/c76328b/file-icons/folder_type_github_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_gitlab.svg +1 -0
- package/static/c76328b/file-icons/folder_type_gitlab_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_gradle.svg +1 -0
- package/static/c76328b/file-icons/folder_type_gradle_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_graphql.svg +1 -0
- package/static/c76328b/file-icons/folder_type_graphql_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_grunt.svg +1 -0
- package/static/c76328b/file-icons/folder_type_grunt_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_gulp.svg +1 -0
- package/static/c76328b/file-icons/folder_type_gulp_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_haxelib.svg +1 -0
- package/static/c76328b/file-icons/folder_type_haxelib_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_helper.svg +1 -0
- package/static/c76328b/file-icons/folder_type_helper_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_hook.svg +1 -0
- package/static/c76328b/file-icons/folder_type_hook_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_husky.svg +1 -0
- package/static/c76328b/file-icons/folder_type_husky_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_idea.svg +1 -0
- package/static/c76328b/file-icons/folder_type_idea_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_images.svg +1 -0
- package/static/c76328b/file-icons/folder_type_images_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_include.svg +1 -0
- package/static/c76328b/file-icons/folder_type_include_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_interfaces.svg +1 -0
- package/static/c76328b/file-icons/folder_type_interfaces_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_ios.svg +1 -0
- package/static/c76328b/file-icons/folder_type_ios_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_js.svg +1 -0
- package/static/c76328b/file-icons/folder_type_js_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_json.svg +1 -0
- package/static/c76328b/file-icons/folder_type_json_official.svg +1 -0
- package/static/c76328b/file-icons/folder_type_json_official_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_json_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_kubernetes.svg +1 -0
- package/static/c76328b/file-icons/folder_type_kubernetes_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_less.svg +1 -0
- package/static/c76328b/file-icons/folder_type_less_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_library.svg +1 -0
- package/static/c76328b/file-icons/folder_type_library_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_light_cypress.svg +1 -0
- package/static/c76328b/file-icons/folder_type_light_cypress_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_light_electron.svg +1 -0
- package/static/c76328b/file-icons/folder_type_light_electron_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_light_expo.svg +1 -0
- package/static/c76328b/file-icons/folder_type_light_expo_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_light_fonts.svg +1 -0
- package/static/c76328b/file-icons/folder_type_light_fonts_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_light_gradle.svg +1 -0
- package/static/c76328b/file-icons/folder_type_light_gradle_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_light_meteor.svg +1 -0
- package/static/c76328b/file-icons/folder_type_light_meteor_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_light_mysql.svg +1 -0
- package/static/c76328b/file-icons/folder_type_light_mysql_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_light_node.svg +1 -0
- package/static/c76328b/file-icons/folder_type_light_node_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_light_redux.svg +1 -0
- package/static/c76328b/file-icons/folder_type_light_redux_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_light_sass.svg +1 -0
- package/static/c76328b/file-icons/folder_type_light_sass_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_linux.svg +1 -0
- package/static/c76328b/file-icons/folder_type_linux_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_locale.svg +1 -0
- package/static/c76328b/file-icons/folder_type_locale_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_log.svg +1 -0
- package/static/c76328b/file-icons/folder_type_log_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_macos.svg +1 -0
- package/static/c76328b/file-icons/folder_type_macos_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_mariadb.svg +1 -0
- package/static/c76328b/file-icons/folder_type_mariadb_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_maven.svg +1 -0
- package/static/c76328b/file-icons/folder_type_maven_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_mediawiki.svg +1 -0
- package/static/c76328b/file-icons/folder_type_mediawiki_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_memcached.svg +1 -0
- package/static/c76328b/file-icons/folder_type_memcached_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_meteor.svg +1 -0
- package/static/c76328b/file-icons/folder_type_meteor_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_middleware.svg +1 -0
- package/static/c76328b/file-icons/folder_type_middleware_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_minikube.svg +1 -0
- package/static/c76328b/file-icons/folder_type_minikube_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_mjml.svg +1 -0
- package/static/c76328b/file-icons/folder_type_mjml_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_mock.svg +1 -0
- package/static/c76328b/file-icons/folder_type_mock_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_model.svg +1 -0
- package/static/c76328b/file-icons/folder_type_model_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_module.svg +1 -0
- package/static/c76328b/file-icons/folder_type_module_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_mojo.svg +1 -0
- package/static/c76328b/file-icons/folder_type_mojo_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_mongodb.svg +1 -0
- package/static/c76328b/file-icons/folder_type_mongodb_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_mysql.svg +1 -0
- package/static/c76328b/file-icons/folder_type_mysql_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_next.svg +1 -0
- package/static/c76328b/file-icons/folder_type_next_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_nginx.svg +1 -0
- package/static/c76328b/file-icons/folder_type_nginx_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_nix.svg +1 -0
- package/static/c76328b/file-icons/folder_type_nix_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_node.svg +1 -0
- package/static/c76328b/file-icons/folder_type_node_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_notebooks.svg +1 -0
- package/static/c76328b/file-icons/folder_type_notebooks_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_notification.svg +1 -0
- package/static/c76328b/file-icons/folder_type_notification_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_nuget.svg +1 -0
- package/static/c76328b/file-icons/folder_type_nuget_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_nuxt.svg +1 -0
- package/static/c76328b/file-icons/folder_type_nuxt_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_package.svg +1 -0
- package/static/c76328b/file-icons/folder_type_package_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_paket.svg +1 -0
- package/static/c76328b/file-icons/folder_type_paket_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_php.svg +1 -0
- package/static/c76328b/file-icons/folder_type_php_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_platformio.svg +1 -0
- package/static/c76328b/file-icons/folder_type_platformio_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_plugin.svg +1 -0
- package/static/c76328b/file-icons/folder_type_plugin_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_prisma.svg +1 -0
- package/static/c76328b/file-icons/folder_type_prisma_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_private.svg +1 -0
- package/static/c76328b/file-icons/folder_type_private_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_public.svg +1 -0
- package/static/c76328b/file-icons/folder_type_public_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_python.svg +1 -0
- package/static/c76328b/file-icons/folder_type_python_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_ravendb.svg +1 -0
- package/static/c76328b/file-icons/folder_type_ravendb_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_redis.svg +1 -0
- package/static/c76328b/file-icons/folder_type_redis_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_redux.svg +1 -0
- package/static/c76328b/file-icons/folder_type_redux_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_route.svg +1 -0
- package/static/c76328b/file-icons/folder_type_route_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_sass.svg +1 -0
- package/static/c76328b/file-icons/folder_type_sass_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_script.svg +1 -0
- package/static/c76328b/file-icons/folder_type_script_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_server.svg +1 -0
- package/static/c76328b/file-icons/folder_type_server_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_services.svg +1 -0
- package/static/c76328b/file-icons/folder_type_services_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_shared.svg +1 -0
- package/static/c76328b/file-icons/folder_type_shared_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_snaplet.svg +1 -0
- package/static/c76328b/file-icons/folder_type_snaplet_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_spin.svg +1 -0
- package/static/c76328b/file-icons/folder_type_spin_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_src.svg +1 -0
- package/static/c76328b/file-icons/folder_type_src_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_sso.svg +1 -0
- package/static/c76328b/file-icons/folder_type_sso_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_story.svg +1 -0
- package/static/c76328b/file-icons/folder_type_story_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_style.svg +1 -0
- package/static/c76328b/file-icons/folder_type_style_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_supabase.svg +1 -0
- package/static/c76328b/file-icons/folder_type_supabase_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_svelte.svg +1 -0
- package/static/c76328b/file-icons/folder_type_svelte_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_tauri.svg +1 -0
- package/static/c76328b/file-icons/folder_type_tauri_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_temp.svg +1 -0
- package/static/c76328b/file-icons/folder_type_temp_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_template.svg +1 -0
- package/static/c76328b/file-icons/folder_type_template_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_test.svg +1 -0
- package/static/c76328b/file-icons/folder_type_test_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_theme.svg +1 -0
- package/static/c76328b/file-icons/folder_type_theme_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_tools.svg +1 -0
- package/static/c76328b/file-icons/folder_type_tools_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_travis.svg +1 -0
- package/static/c76328b/file-icons/folder_type_travis_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_trunk.svg +1 -0
- package/static/c76328b/file-icons/folder_type_trunk_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_turbo.svg +1 -0
- package/static/c76328b/file-icons/folder_type_turbo_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_typescript.svg +1 -0
- package/static/c76328b/file-icons/folder_type_typescript_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_typings.svg +1 -0
- package/static/c76328b/file-icons/folder_type_typings2.svg +1 -0
- package/static/c76328b/file-icons/folder_type_typings2_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_typings_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_vagrant.svg +1 -0
- package/static/c76328b/file-icons/folder_type_vagrant_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_vercel.svg +1 -0
- package/static/c76328b/file-icons/folder_type_vercel_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_video.svg +1 -0
- package/static/c76328b/file-icons/folder_type_video_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_view.svg +1 -0
- package/static/c76328b/file-icons/folder_type_view_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_vs.svg +1 -0
- package/static/c76328b/file-icons/folder_type_vs2.svg +1 -0
- package/static/c76328b/file-icons/folder_type_vs2_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_vs_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_vscode.svg +1 -0
- package/static/c76328b/file-icons/folder_type_vscode2.svg +1 -0
- package/static/c76328b/file-icons/folder_type_vscode2_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_vscode3.svg +1 -0
- package/static/c76328b/file-icons/folder_type_vscode3_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_vscode_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_vscode_test.svg +1 -0
- package/static/c76328b/file-icons/folder_type_vscode_test2.svg +1 -0
- package/static/c76328b/file-icons/folder_type_vscode_test2_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_vscode_test3.svg +1 -0
- package/static/c76328b/file-icons/folder_type_vscode_test3_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_vscode_test_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_webpack.svg +1 -0
- package/static/c76328b/file-icons/folder_type_webpack_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_windows.svg +1 -0
- package/static/c76328b/file-icons/folder_type_windows_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_wit.svg +1 -0
- package/static/c76328b/file-icons/folder_type_wit_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_www.svg +1 -0
- package/static/c76328b/file-icons/folder_type_www_opened.svg +1 -0
- package/static/c76328b/file-icons/folder_type_yarn.svg +1 -0
- package/static/c76328b/file-icons/folder_type_yarn_opened.svg +1 -0
- package/static/c76328b/fonts/FiraCode-VariableFont.ttf +0 -0
- package/static/c76328b/icons/add.svg +1 -0
- package/static/c76328b/icons/arrow-down.svg +3 -0
- package/static/c76328b/icons/arrow-left.svg +3 -0
- package/static/c76328b/icons/arrow-right.svg +3 -0
- package/static/c76328b/icons/arrow-up.svg +3 -0
- package/static/c76328b/icons/blank.svg +1 -0
- package/static/c76328b/icons/book.svg +1 -0
- package/static/c76328b/icons/case-sensitive.svg +1 -0
- package/static/c76328b/icons/check.svg +1 -0
- package/static/c76328b/icons/chevron-down.svg +1 -0
- package/static/c76328b/icons/chevron-left.svg +1 -0
- package/static/c76328b/icons/chevron-right.svg +3 -0
- package/static/c76328b/icons/chevron-up.svg +1 -0
- package/static/c76328b/icons/chrome-close.svg +3 -0
- package/static/c76328b/icons/chrome-maximize.svg +3 -0
- package/static/c76328b/icons/chrome-minimize.svg +3 -0
- package/static/c76328b/icons/chrome-restore.svg +1 -0
- package/static/c76328b/icons/circle-filled.svg +1 -0
- package/static/c76328b/icons/clear-all.svg +1 -0
- package/static/c76328b/icons/close.svg +1 -0
- package/static/c76328b/icons/cloud.svg +1 -0
- package/static/c76328b/icons/collapse-all.svg +1 -0
- package/static/c76328b/icons/debug-all.svg +1 -0
- package/static/c76328b/icons/debug-alt-2.svg +3 -0
- package/static/c76328b/icons/debug-alt-small.svg +1 -0
- package/static/c76328b/icons/debug-alt.svg +1 -0
- package/static/c76328b/icons/debug-breakpoint-conditional-unverified.svg +1 -0
- package/static/c76328b/icons/debug-breakpoint-conditional.svg +1 -0
- package/static/c76328b/icons/debug-breakpoint-data-unverified.svg +1 -0
- package/static/c76328b/icons/debug-breakpoint-data.svg +1 -0
- package/static/c76328b/icons/debug-breakpoint-function-unverified.svg +1 -0
- package/static/c76328b/icons/debug-breakpoint-function.svg +1 -0
- package/static/c76328b/icons/debug-breakpoint-log-unverified.svg +1 -0
- package/static/c76328b/icons/debug-breakpoint-log.svg +1 -0
- package/static/c76328b/icons/debug-breakpoint-unsupported.svg +1 -0
- package/static/c76328b/icons/debug-console.svg +1 -0
- package/static/c76328b/icons/debug-continue-small.svg +1 -0
- package/static/c76328b/icons/debug-continue.svg +1 -0
- package/static/c76328b/icons/debug-coverage.svg +1 -0
- package/static/c76328b/icons/debug-disconnect.svg +1 -0
- package/static/c76328b/icons/debug-line-by-line.svg +1 -0
- package/static/c76328b/icons/debug-pause.svg +1 -0
- package/static/c76328b/icons/debug-rerun.svg +1 -0
- package/static/c76328b/icons/debug-restart-frame.svg +1 -0
- package/static/c76328b/icons/debug-restart.svg +1 -0
- package/static/c76328b/icons/debug-reverse-continue.svg +1 -0
- package/static/c76328b/icons/debug-stackframe-active.svg +1 -0
- package/static/c76328b/icons/debug-stackframe.svg +1 -0
- package/static/c76328b/icons/debug-start.svg +1 -0
- package/static/c76328b/icons/debug-step-back.svg +1 -0
- package/static/c76328b/icons/debug-step-into.svg +1 -0
- package/static/c76328b/icons/debug-step-out.svg +1 -0
- package/static/c76328b/icons/debug-step-over.svg +1 -0
- package/static/c76328b/icons/debug-stop.svg +1 -0
- package/static/c76328b/icons/debug.svg +1 -0
- package/static/c76328b/icons/discard.svg +1 -0
- package/static/c76328b/icons/edit.svg +1 -0
- package/static/c76328b/icons/ellipsis.svg +5 -0
- package/static/c76328b/icons/error.svg +1 -0
- package/static/c76328b/icons/exclude.svg +1 -0
- package/static/c76328b/icons/extensionDefaultIcon.png +0 -0
- package/static/c76328b/icons/extensions.svg +3 -0
- package/static/c76328b/icons/files.svg +3 -0
- package/static/c76328b/icons/filter.svg +1 -0
- package/static/c76328b/icons/go-to-file.svg +1 -0
- package/static/c76328b/icons/icon-close.svg +3 -0
- package/static/c76328b/icons/icon-source-control.svg +3 -0
- package/static/c76328b/icons/icon-sync.svg +1 -0
- package/static/c76328b/icons/icon.png +0 -0
- package/static/c76328b/icons/icon.svg +3 -0
- package/static/c76328b/icons/info.svg +1 -0
- package/static/c76328b/icons/language-icon.svg +1 -0
- package/static/c76328b/icons/link-external.svg +1 -0
- package/static/c76328b/icons/list-flat.svg +1 -0
- package/static/c76328b/icons/list-tree.svg +1 -0
- package/static/c76328b/icons/new-file.svg +1 -0
- package/static/c76328b/icons/new-folder.svg +1 -0
- package/static/c76328b/icons/newline.svg +1 -0
- package/static/c76328b/icons/open-preview.svg +1 -0
- package/static/c76328b/icons/play.svg +1 -0
- package/static/c76328b/icons/preserve-case.svg +1 -0
- package/static/c76328b/icons/progress.svg +1 -0
- package/static/c76328b/icons/pwa-icon-192.png +0 -0
- package/static/c76328b/icons/pwa-icon-512.png +0 -0
- package/static/c76328b/icons/record-keys.svg +1 -0
- package/static/c76328b/icons/refresh.svg +1 -0
- package/static/c76328b/icons/regex.svg +1 -0
- package/static/c76328b/icons/remove.svg +1 -0
- package/static/c76328b/icons/replace-all.svg +1 -0
- package/static/c76328b/icons/replace.svg +1 -0
- package/static/c76328b/icons/run-all.svg +1 -0
- package/static/c76328b/icons/search.svg +3 -0
- package/static/c76328b/icons/settings-gear.svg +3 -0
- package/static/c76328b/icons/source-control.svg +3 -0
- package/static/c76328b/icons/split-horizontal.svg +1 -0
- package/static/c76328b/icons/squiggly-error.svg +1 -0
- package/static/c76328b/icons/squiggly-warning.svg +1 -0
- package/static/c76328b/icons/symbol-array.svg +3 -0
- package/static/c76328b/icons/symbol-boolean.svg +3 -0
- package/static/c76328b/icons/symbol-class.svg +3 -0
- package/static/c76328b/icons/symbol-color.svg +3 -0
- package/static/c76328b/icons/symbol-constant.svg +4 -0
- package/static/c76328b/icons/symbol-enum-member.svg +3 -0
- package/static/c76328b/icons/symbol-enum.svg +3 -0
- package/static/c76328b/icons/symbol-event.svg +3 -0
- package/static/c76328b/icons/symbol-field.svg +3 -0
- package/static/c76328b/icons/symbol-file.svg +3 -0
- package/static/c76328b/icons/symbol-interface.svg +3 -0
- package/static/c76328b/icons/symbol-key.svg +3 -0
- package/static/c76328b/icons/symbol-keyword.svg +3 -0
- package/static/c76328b/icons/symbol-method.svg +3 -0
- package/static/c76328b/icons/symbol-misc.svg +3 -0
- package/static/c76328b/icons/symbol-namespace.svg +3 -0
- package/static/c76328b/icons/symbol-numeric.svg +3 -0
- package/static/c76328b/icons/symbol-operator.svg +3 -0
- package/static/c76328b/icons/symbol-parameter.svg +3 -0
- package/static/c76328b/icons/symbol-property.svg +3 -0
- package/static/c76328b/icons/symbol-ruler.svg +3 -0
- package/static/c76328b/icons/symbol-snippet.svg +3 -0
- package/static/c76328b/icons/symbol-string.svg +3 -0
- package/static/c76328b/icons/symbol-structure.svg +3 -0
- package/static/c76328b/icons/symbol-variable.svg +3 -0
- package/static/c76328b/icons/tag.svg +1 -0
- package/static/c76328b/icons/terminal-bash.svg +1 -0
- package/static/c76328b/icons/terminal.svg +1 -0
- package/static/c76328b/icons/theme-icon.png +0 -0
- package/static/c76328b/icons/trash.svg +1 -0
- package/static/c76328b/icons/triangle-down.svg +1 -0
- package/static/c76328b/icons/triangle-left.svg +1 -0
- package/static/c76328b/icons/triangle-right.svg +1 -0
- package/static/c76328b/icons/triangle-up.svg +1 -0
- package/static/c76328b/icons/warning.svg +1 -0
- package/static/c76328b/icons/whole-word.svg +1 -0
- package/static/c76328b/icons/zoom-in.svg +1 -0
- package/static/c76328b/icons/zoom-out.svg +1 -0
- package/static/c76328b/js/babel-parser.js +14154 -0
- package/static/c76328b/js/blob-util.js +149 -0
- package/static/c76328b/js/idb/async-iterators.js +56 -0
- package/static/c76328b/js/idb/index.js +99 -0
- package/static/c76328b/js/idb/with-async-ittr.js +4 -0
- package/static/c76328b/js/idb/wrap-idb-value.js +190 -0
- package/static/c76328b/js/js-base64.js +296 -0
- package/static/c76328b/js/ky.js +489 -0
- package/static/c76328b/js/lvce-editor-import-script.js +5 -0
- package/static/c76328b/js/lvce-editor-ipc.js +735 -0
- package/static/c76328b/js/lvce-editor-json-rpc.js +383 -0
- package/static/c76328b/js/lvce-editor-verror.js +55 -0
- package/static/c76328b/js/marked.js +1990 -0
- package/static/c76328b/js/p-min-delay.js +7 -0
- package/static/c76328b/js/pretty-bytes.js +94 -0
- package/static/c76328b/js/preview-injected.js +101 -0
- package/static/c76328b/js/yoctodelay.js +2 -0
- package/static/c76328b/lib-css/termterm.css +39 -0
- package/static/c76328b/manifest.json +26 -0
- package/static/c76328b/packages/about-view-worker/dist/aboutWorkerMain.js +1556 -0
- package/static/c76328b/packages/diff-worker/dist/diffWorkerMain.js +886 -0
- package/static/c76328b/packages/editor-worker/dist/editorWorkerMain.js +11885 -0
- package/static/c76328b/packages/embeds-worker/dist/embedsWorkerMain.js +1067 -0
- package/static/c76328b/packages/embeds-worker/dist/embedsWorkerMain.js.map +1 -0
- package/static/c76328b/packages/embeds-worker/src/embedsWorkerMain.ts +3 -0
- package/static/c76328b/packages/embeds-worker/src/parts/Assert/Assert.ts +94 -0
- package/static/c76328b/packages/embeds-worker/src/parts/AssertionError/AssertionError.ts +6 -0
- package/static/c76328b/packages/embeds-worker/src/parts/Callback/Callback.ts +1 -0
- package/static/c76328b/packages/embeds-worker/src/parts/Command/Command.ts +10 -0
- package/static/c76328b/packages/embeds-worker/src/parts/CommandMap/CommandMap.ts +26 -0
- package/static/c76328b/packages/embeds-worker/src/parts/CommandState/CommandState.ts +17 -0
- package/static/c76328b/packages/embeds-worker/src/parts/ElectronWebContentsView/ElectronWebContentsView.ts +117 -0
- package/static/c76328b/packages/embeds-worker/src/parts/EmbedsProcess/EmbedsProcess.ts +25 -0
- package/static/c76328b/packages/embeds-worker/src/parts/Exit/Exit.ts +3 -0
- package/static/c76328b/packages/embeds-worker/src/parts/GetPortTuple/GetPortTuple.ts +4 -0
- package/static/c76328b/packages/embeds-worker/src/parts/HandleIpc/HandleIpc.ts +35 -0
- package/static/c76328b/packages/embeds-worker/src/parts/IpcChild/IpcChild.ts +13 -0
- package/static/c76328b/packages/embeds-worker/src/parts/IpcChildModule/IpcChildModule.ts +14 -0
- package/static/c76328b/packages/embeds-worker/src/parts/IpcChildType/IpcChildType.ts +14 -0
- package/static/c76328b/packages/embeds-worker/src/parts/IpcId/IpcId.ts +4 -0
- package/static/c76328b/packages/embeds-worker/src/parts/IpcParent/IpcParent.ts +7 -0
- package/static/c76328b/packages/embeds-worker/src/parts/IpcParentWithElectronMessagePort/IpcParentWithElectronMessagePort.ts +39 -0
- package/static/c76328b/packages/embeds-worker/src/parts/IpcState/IpcState.ts +14 -0
- package/static/c76328b/packages/embeds-worker/src/parts/JsonRpc/JsonRpc.ts +2 -0
- package/static/c76328b/packages/embeds-worker/src/parts/LaunchEmbedsProcessIpc/LaunchEmbedsProcessIpc.ts +10 -0
- package/static/c76328b/packages/embeds-worker/src/parts/Listen/Listen.ts +13 -0
- package/static/c76328b/packages/embeds-worker/src/parts/LoadErrorCode/LoadErrorCode.ts +3 -0
- package/static/c76328b/packages/embeds-worker/src/parts/Main/Main.ts +5 -0
- package/static/c76328b/packages/embeds-worker/src/parts/ProcessName/ProcessName.ts +1 -0
- package/static/c76328b/packages/embeds-worker/src/parts/Rpc/Rpc.ts +21 -0
- package/static/c76328b/packages/explorer-worker/dist/explorerViewWorkerMain.js +3385 -0
- package/static/c76328b/packages/extension-detail-view-worker/dist/extensionDetailViewWorkerMain.js +4178 -0
- package/static/c76328b/packages/extension-host-sub-worker/dist/extensionHostSubWorkerMain.js +989 -0
- package/static/c76328b/packages/extension-host-sub-worker/dist/extensionHostSubWorkerMain.js.map +1 -0
- package/static/c76328b/packages/extension-host-sub-worker/src/extensionHostSubWorkerMain.js +3 -0
- package/static/c76328b/packages/extension-host-sub-worker/src/parts/Ajax/Ajax.js +14 -0
- package/static/c76328b/packages/extension-host-sub-worker/src/parts/Assert/Assert.js +71 -0
- package/static/c76328b/packages/extension-host-sub-worker/src/parts/AssetDir/AssetDir.js +16 -0
- package/static/c76328b/packages/extension-host-sub-worker/src/parts/Callback/Callback.js +42 -0
- package/static/c76328b/packages/extension-host-sub-worker/src/parts/Character/Character.js +11 -0
- package/static/c76328b/packages/extension-host-sub-worker/src/parts/CleanImportError/CleanImportError.js +20 -0
- package/static/c76328b/packages/extension-host-sub-worker/src/parts/CodeFrameColumns/CodeFrameColumns.js +126 -0
- package/static/c76328b/packages/extension-host-sub-worker/src/parts/Command/Command.js +10 -0
- package/static/c76328b/packages/extension-host-sub-worker/src/parts/CommandMap/CommandMap.js +5 -0
- package/static/c76328b/packages/extension-host-sub-worker/src/parts/CommandState/CommandState.js +17 -0
- package/static/c76328b/packages/extension-host-sub-worker/src/parts/ErrorType/ErrorType.js +4 -0
- package/static/c76328b/packages/extension-host-sub-worker/src/parts/GetData/GetData.js +3 -0
- package/static/c76328b/packages/extension-host-sub-worker/src/parts/GetErrorConstructor/GetErrorConstructor.js +28 -0
- package/static/c76328b/packages/extension-host-sub-worker/src/parts/GetErrorResponse/GetErrorResponse.js +33 -0
- package/static/c76328b/packages/extension-host-sub-worker/src/parts/GetModulesErrorStack/GetModulesErrorStack.js +49 -0
- package/static/c76328b/packages/extension-host-sub-worker/src/parts/GetNewLineIndex/GetNewLineIndex.js +9 -0
- package/static/c76328b/packages/extension-host-sub-worker/src/parts/GetResponse/GetResponse.js +11 -0
- package/static/c76328b/packages/extension-host-sub-worker/src/parts/GetSuccessResponse/GetSuccessResponse.js +9 -0
- package/static/c76328b/packages/extension-host-sub-worker/src/parts/HandleIpc/HandleIpc.js +12 -0
- package/static/c76328b/packages/extension-host-sub-worker/src/parts/HandleJsonRpcMessage/HandleJsonRpcMessage.js +10 -0
- package/static/c76328b/packages/extension-host-sub-worker/src/parts/Id/Id.js +7 -0
- package/static/c76328b/packages/extension-host-sub-worker/src/parts/ImportScript/ImportScript.js +12 -0
- package/static/c76328b/packages/extension-host-sub-worker/src/parts/IpcChild/IpcChild.js +8 -0
- package/static/c76328b/packages/extension-host-sub-worker/src/parts/IpcChildModule/IpcChildModule.js +12 -0
- package/static/c76328b/packages/extension-host-sub-worker/src/parts/IpcChildType/IpcChildType.js +18 -0
- package/static/c76328b/packages/extension-host-sub-worker/src/parts/IpcChildWithMessagePort/IpcChildWithMessagePort.js +24 -0
- package/static/c76328b/packages/extension-host-sub-worker/src/parts/IpcChildWithModuleWorker/IpcChildWithModuleWorker.js +40 -0
- package/static/c76328b/packages/extension-host-sub-worker/src/parts/IpcChildWithModuleWorkerAndMessagePort/IpcChildWithModuleWorkerAndMessagePort.js +54 -0
- package/static/c76328b/packages/extension-host-sub-worker/src/parts/IpcError/IpcError.js +6 -0
- package/static/c76328b/packages/extension-host-sub-worker/src/parts/JoinLines/JoinLines.js +3 -0
- package/static/c76328b/packages/extension-host-sub-worker/src/parts/JsonRpc/JsonRpc.js +16 -0
- package/static/c76328b/packages/extension-host-sub-worker/src/parts/JsonRpcError/JsonRpcError.js +6 -0
- package/static/c76328b/packages/extension-host-sub-worker/src/parts/JsonRpcErrorCode/JsonRpcErrorCode.js +2 -0
- package/static/c76328b/packages/extension-host-sub-worker/src/parts/JsonRpcEvent/JsonRpcEvent.js +9 -0
- package/static/c76328b/packages/extension-host-sub-worker/src/parts/JsonRpcRequest/JsonRpcRequest.js +16 -0
- package/static/c76328b/packages/extension-host-sub-worker/src/parts/JsonRpcVersion/JsonRpcVersion.js +1 -0
- package/static/c76328b/packages/extension-host-sub-worker/src/parts/Listen/Listen.js +19 -0
- package/static/c76328b/packages/extension-host-sub-worker/src/parts/LoadFile/LoadFile.js +14 -0
- package/static/c76328b/packages/extension-host-sub-worker/src/parts/LoadKy/LoadKy.js +11 -0
- package/static/c76328b/packages/extension-host-sub-worker/src/parts/Main/Main.js +5 -0
- package/static/c76328b/packages/extension-host-sub-worker/src/parts/MergeStacks/MergeStacks.js +20 -0
- package/static/c76328b/packages/extension-host-sub-worker/src/parts/NormalizeErrorLine/NormalizeErrorLine.js +9 -0
- package/static/c76328b/packages/extension-host-sub-worker/src/parts/Platform/Platform.js +19 -0
- package/static/c76328b/packages/extension-host-sub-worker/src/parts/PlatformType/PlatformType.js +5 -0
- package/static/c76328b/packages/extension-host-sub-worker/src/parts/PrettyError/PrettyError.js +139 -0
- package/static/c76328b/packages/extension-host-sub-worker/src/parts/PrintPrettyError/PrintPrettyError.js +3 -0
- package/static/c76328b/packages/extension-host-sub-worker/src/parts/ProcessName/ProcessName.js +1 -0
- package/static/c76328b/packages/extension-host-sub-worker/src/parts/RestoreJsonRpcError/RestoreJsonRpcError.js +78 -0
- package/static/c76328b/packages/extension-host-sub-worker/src/parts/SplitLines/SplitLines.js +11 -0
- package/static/c76328b/packages/extension-host-sub-worker/src/parts/UnwrapJsonRpcResult/UnwrapJsonRpcResult.js +13 -0
- package/static/c76328b/packages/extension-host-sub-worker/src/parts/VError/VError.js +27 -0
- package/static/c76328b/packages/extension-host-sub-worker/src/parts/WaitForFirstMessage/WaitForFirstMessage.js +13 -0
- package/static/c76328b/packages/extension-host-worker/dist/extensionHostWorkerMain.js +3813 -0
- package/static/c76328b/packages/extension-search-view-worker/dist/extensionSearchViewWorkerMain.js +1468 -0
- package/static/c76328b/packages/file-search-worker/dist/fileSearchWorkerMain.js +1835 -0
- package/static/c76328b/packages/iframe-worker/dist/iframeWorkerMain.js +1349 -0
- package/static/c76328b/packages/keybindings-view-worker/dist/keyBindingsViewWorkerMain.js +1915 -0
- package/static/c76328b/packages/renderer-process/LICENSE +21 -0
- package/static/c76328b/packages/renderer-process/README.md +1 -0
- package/static/c76328b/packages/renderer-process/dist/rendererProcessMain.js +11834 -0
- package/static/c76328b/packages/renderer-process/package.json +27 -0
- package/static/c76328b/packages/renderer-worker/dist/rendererWorkerMain.js +38528 -0
- package/static/c76328b/packages/syntax-highlighting-worker/dist/syntaxHighlightingWorkerMain.js +1109 -0
- package/static/c76328b/packages/terminal-worker/dist/terminalWorkerMain.js +2971 -0
- package/static/c76328b/packages/test-worker/dist/testWorkerMain.js +2140 -0
- package/static/c76328b/packages/text-search-worker/dist/textSearchWorkerMain.js +4272 -0
- package/static/c76328b/playground/languages/index.cpp +22 -0
- package/static/c76328b/playground/languages/index.css +19 -0
- package/static/c76328b/playground/languages/index.csv +3 -0
- package/static/c76328b/playground/languages/index.dart +3 -0
- package/static/c76328b/playground/languages/index.env +1 -0
- package/static/c76328b/playground/languages/index.ex +8 -0
- package/static/c76328b/playground/languages/index.html +1 -0
- package/static/c76328b/playground/languages/index.java +5 -0
- package/static/c76328b/playground/languages/index.jl +14 -0
- package/static/c76328b/playground/languages/index.js +3 -0
- package/static/c76328b/playground/languages/index.json +3 -0
- package/static/c76328b/playground/languages/index.kt +3 -0
- package/static/c76328b/playground/languages/index.pl +11 -0
- package/static/c76328b/playground/languages/index.py +25 -0
- package/static/c76328b/playground/languages/index.ts +3 -0
- package/static/c76328b/playground/languages/scrolling.txt +100 -0
- package/static/c76328b/playground/languages/tsconfig.json +24 -0
- package/static/c76328b/playground/sample-folder/a.txt +0 -0
- package/static/c76328b/playground/sample-folder/b.txt +0 -0
- package/static/c76328b/playground/sample-folder/c.txt +0 -0
- package/static/favicon.ico +0 -0
- package/static/index.html +14 -0
|
@@ -0,0 +1,3385 @@
|
|
|
1
|
+
const Two = '2.0';
|
|
2
|
+
const create$4 = (method, params) => {
|
|
3
|
+
return {
|
|
4
|
+
jsonrpc: Two,
|
|
5
|
+
method,
|
|
6
|
+
params
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
const state$1 = {
|
|
10
|
+
callbacks: Object.create(null)
|
|
11
|
+
};
|
|
12
|
+
const set = (id, fn) => {
|
|
13
|
+
state$1.callbacks[id] = fn;
|
|
14
|
+
};
|
|
15
|
+
const get = id => {
|
|
16
|
+
return state$1.callbacks[id];
|
|
17
|
+
};
|
|
18
|
+
const remove$1 = id => {
|
|
19
|
+
delete state$1.callbacks[id];
|
|
20
|
+
};
|
|
21
|
+
let id = 0;
|
|
22
|
+
const create$3 = () => {
|
|
23
|
+
return ++id;
|
|
24
|
+
};
|
|
25
|
+
const warn = (...args) => {
|
|
26
|
+
console.warn(...args);
|
|
27
|
+
};
|
|
28
|
+
const registerPromise = () => {
|
|
29
|
+
const id = create$3();
|
|
30
|
+
const {
|
|
31
|
+
resolve,
|
|
32
|
+
promise
|
|
33
|
+
} = Promise.withResolvers();
|
|
34
|
+
set(id, resolve);
|
|
35
|
+
return {
|
|
36
|
+
id,
|
|
37
|
+
promise
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
const resolve = (id, response) => {
|
|
41
|
+
const fn = get(id);
|
|
42
|
+
if (!fn) {
|
|
43
|
+
console.log(response);
|
|
44
|
+
warn(`callback ${id} may already be disposed`);
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
fn(response);
|
|
48
|
+
remove$1(id);
|
|
49
|
+
};
|
|
50
|
+
const create$2 = (method, params) => {
|
|
51
|
+
const {
|
|
52
|
+
id,
|
|
53
|
+
promise
|
|
54
|
+
} = registerPromise();
|
|
55
|
+
const message = {
|
|
56
|
+
jsonrpc: Two,
|
|
57
|
+
method,
|
|
58
|
+
params,
|
|
59
|
+
id
|
|
60
|
+
};
|
|
61
|
+
return {
|
|
62
|
+
message,
|
|
63
|
+
promise
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
class JsonRpcError extends Error {
|
|
67
|
+
constructor(message) {
|
|
68
|
+
super(message);
|
|
69
|
+
this.name = 'JsonRpcError';
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
const NewLine$3 = '\n';
|
|
73
|
+
const DomException = 'DOMException';
|
|
74
|
+
const ReferenceError$1 = 'ReferenceError';
|
|
75
|
+
const SyntaxError$1 = 'SyntaxError';
|
|
76
|
+
const TypeError$1 = 'TypeError';
|
|
77
|
+
const getErrorConstructor = (message, type) => {
|
|
78
|
+
if (type) {
|
|
79
|
+
switch (type) {
|
|
80
|
+
case DomException:
|
|
81
|
+
return DOMException;
|
|
82
|
+
case TypeError$1:
|
|
83
|
+
return TypeError;
|
|
84
|
+
case SyntaxError$1:
|
|
85
|
+
return SyntaxError;
|
|
86
|
+
case ReferenceError$1:
|
|
87
|
+
return ReferenceError;
|
|
88
|
+
default:
|
|
89
|
+
return Error;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
if (message.startsWith('TypeError: ')) {
|
|
93
|
+
return TypeError;
|
|
94
|
+
}
|
|
95
|
+
if (message.startsWith('SyntaxError: ')) {
|
|
96
|
+
return SyntaxError;
|
|
97
|
+
}
|
|
98
|
+
if (message.startsWith('ReferenceError: ')) {
|
|
99
|
+
return ReferenceError;
|
|
100
|
+
}
|
|
101
|
+
return Error;
|
|
102
|
+
};
|
|
103
|
+
const constructError = (message, type, name) => {
|
|
104
|
+
const ErrorConstructor = getErrorConstructor(message, type);
|
|
105
|
+
if (ErrorConstructor === DOMException && name) {
|
|
106
|
+
return new ErrorConstructor(message, name);
|
|
107
|
+
}
|
|
108
|
+
if (ErrorConstructor === Error) {
|
|
109
|
+
const error = new Error(message);
|
|
110
|
+
if (name && name !== 'VError') {
|
|
111
|
+
error.name = name;
|
|
112
|
+
}
|
|
113
|
+
return error;
|
|
114
|
+
}
|
|
115
|
+
return new ErrorConstructor(message);
|
|
116
|
+
};
|
|
117
|
+
const getNewLineIndex$2 = (string, startIndex = undefined) => {
|
|
118
|
+
return string.indexOf(NewLine$3, startIndex);
|
|
119
|
+
};
|
|
120
|
+
const getParentStack = error => {
|
|
121
|
+
let parentStack = error.stack || error.data || error.message || '';
|
|
122
|
+
if (parentStack.startsWith(' at')) {
|
|
123
|
+
parentStack = error.message + NewLine$3 + parentStack;
|
|
124
|
+
}
|
|
125
|
+
return parentStack;
|
|
126
|
+
};
|
|
127
|
+
const joinLines$1 = lines => {
|
|
128
|
+
return lines.join(NewLine$3);
|
|
129
|
+
};
|
|
130
|
+
const MethodNotFound = -32601;
|
|
131
|
+
const Custom = -32001;
|
|
132
|
+
const splitLines$1 = lines => {
|
|
133
|
+
return lines.split(NewLine$3);
|
|
134
|
+
};
|
|
135
|
+
const restoreJsonRpcError = error => {
|
|
136
|
+
if (error && error instanceof Error) {
|
|
137
|
+
return error;
|
|
138
|
+
}
|
|
139
|
+
const currentStack = joinLines$1(splitLines$1(new Error().stack || '').slice(1));
|
|
140
|
+
if (error && error.code && error.code === MethodNotFound) {
|
|
141
|
+
const restoredError = new JsonRpcError(error.message);
|
|
142
|
+
const parentStack = getParentStack(error);
|
|
143
|
+
restoredError.stack = parentStack + NewLine$3 + currentStack;
|
|
144
|
+
return restoredError;
|
|
145
|
+
}
|
|
146
|
+
if (error && error.message) {
|
|
147
|
+
const restoredError = constructError(error.message, error.type, error.name);
|
|
148
|
+
if (error.data) {
|
|
149
|
+
if (error.data.stack && error.data.type && error.message) {
|
|
150
|
+
restoredError.stack = error.data.type + ': ' + error.message + NewLine$3 + error.data.stack + NewLine$3 + currentStack;
|
|
151
|
+
} else if (error.data.stack) {
|
|
152
|
+
restoredError.stack = error.data.stack;
|
|
153
|
+
}
|
|
154
|
+
if (error.data.codeFrame) {
|
|
155
|
+
// @ts-ignore
|
|
156
|
+
restoredError.codeFrame = error.data.codeFrame;
|
|
157
|
+
}
|
|
158
|
+
if (error.data.code) {
|
|
159
|
+
// @ts-ignore
|
|
160
|
+
restoredError.code = error.data.code;
|
|
161
|
+
}
|
|
162
|
+
if (error.data.type) {
|
|
163
|
+
// @ts-ignore
|
|
164
|
+
restoredError.name = error.data.type;
|
|
165
|
+
}
|
|
166
|
+
} else {
|
|
167
|
+
if (error.stack) {
|
|
168
|
+
const lowerStack = restoredError.stack || '';
|
|
169
|
+
// @ts-ignore
|
|
170
|
+
const indexNewLine = getNewLineIndex$2(lowerStack);
|
|
171
|
+
const parentStack = getParentStack(error);
|
|
172
|
+
// @ts-ignore
|
|
173
|
+
restoredError.stack = parentStack + lowerStack.slice(indexNewLine);
|
|
174
|
+
}
|
|
175
|
+
if (error.codeFrame) {
|
|
176
|
+
// @ts-ignore
|
|
177
|
+
restoredError.codeFrame = error.codeFrame;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
return restoredError;
|
|
181
|
+
}
|
|
182
|
+
if (typeof error === 'string') {
|
|
183
|
+
return new Error(`JsonRpc Error: ${error}`);
|
|
184
|
+
}
|
|
185
|
+
return new Error(`JsonRpc Error: ${error}`);
|
|
186
|
+
};
|
|
187
|
+
const unwrapJsonRpcResult = responseMessage => {
|
|
188
|
+
if ('error' in responseMessage) {
|
|
189
|
+
const restoredError = restoreJsonRpcError(responseMessage.error);
|
|
190
|
+
throw restoredError;
|
|
191
|
+
}
|
|
192
|
+
if ('result' in responseMessage) {
|
|
193
|
+
return responseMessage.result;
|
|
194
|
+
}
|
|
195
|
+
throw new JsonRpcError('unexpected response message');
|
|
196
|
+
};
|
|
197
|
+
const E_COMMAND_NOT_FOUND = 'E_COMMAND_NOT_FOUND';
|
|
198
|
+
const getErrorType = prettyError => {
|
|
199
|
+
if (prettyError && prettyError.type) {
|
|
200
|
+
return prettyError.type;
|
|
201
|
+
}
|
|
202
|
+
if (prettyError && prettyError.constructor && prettyError.constructor.name) {
|
|
203
|
+
return prettyError.constructor.name;
|
|
204
|
+
}
|
|
205
|
+
return undefined;
|
|
206
|
+
};
|
|
207
|
+
const getErrorProperty = (error, prettyError) => {
|
|
208
|
+
if (error && error.code === E_COMMAND_NOT_FOUND) {
|
|
209
|
+
return {
|
|
210
|
+
code: MethodNotFound,
|
|
211
|
+
message: error.message,
|
|
212
|
+
data: error.stack
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
return {
|
|
216
|
+
code: Custom,
|
|
217
|
+
message: prettyError.message,
|
|
218
|
+
data: {
|
|
219
|
+
stack: prettyError.stack,
|
|
220
|
+
codeFrame: prettyError.codeFrame,
|
|
221
|
+
type: getErrorType(prettyError),
|
|
222
|
+
code: prettyError.code,
|
|
223
|
+
name: prettyError.name
|
|
224
|
+
}
|
|
225
|
+
};
|
|
226
|
+
};
|
|
227
|
+
const create$1 = (message, error) => {
|
|
228
|
+
return {
|
|
229
|
+
jsonrpc: Two,
|
|
230
|
+
id: message.id,
|
|
231
|
+
error
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
const getErrorResponse = (message, error, preparePrettyError, logError) => {
|
|
235
|
+
const prettyError = preparePrettyError(error);
|
|
236
|
+
logError(error, prettyError);
|
|
237
|
+
const errorProperty = getErrorProperty(error, prettyError);
|
|
238
|
+
return create$1(message, errorProperty);
|
|
239
|
+
};
|
|
240
|
+
const create$5 = (message, result) => {
|
|
241
|
+
return {
|
|
242
|
+
jsonrpc: Two,
|
|
243
|
+
id: message.id,
|
|
244
|
+
result: result ?? null
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
const getSuccessResponse = (message, result) => {
|
|
248
|
+
const resultProperty = result ?? null;
|
|
249
|
+
return create$5(message, resultProperty);
|
|
250
|
+
};
|
|
251
|
+
const getResponse = async (message, ipc, execute, preparePrettyError, logError, requiresSocket) => {
|
|
252
|
+
try {
|
|
253
|
+
const result = requiresSocket(message.method) ? await execute(message.method, ipc, ...message.params) : await execute(message.method, ...message.params);
|
|
254
|
+
return getSuccessResponse(message, result);
|
|
255
|
+
} catch (error) {
|
|
256
|
+
return getErrorResponse(message, error, preparePrettyError, logError);
|
|
257
|
+
}
|
|
258
|
+
};
|
|
259
|
+
const defaultPreparePrettyError = error => {
|
|
260
|
+
return error;
|
|
261
|
+
};
|
|
262
|
+
const defaultLogError = () => {
|
|
263
|
+
// ignore
|
|
264
|
+
};
|
|
265
|
+
const defaultRequiresSocket = () => {
|
|
266
|
+
return false;
|
|
267
|
+
};
|
|
268
|
+
const defaultResolve = resolve;
|
|
269
|
+
|
|
270
|
+
// TODO maybe remove this in v6 or v7, only accept options object to simplify the code
|
|
271
|
+
const normalizeParams = args => {
|
|
272
|
+
if (args.length === 1) {
|
|
273
|
+
const options = args[0];
|
|
274
|
+
return {
|
|
275
|
+
ipc: options.ipc,
|
|
276
|
+
message: options.message,
|
|
277
|
+
execute: options.execute,
|
|
278
|
+
resolve: options.resolve || defaultResolve,
|
|
279
|
+
preparePrettyError: options.preparePrettyError || defaultPreparePrettyError,
|
|
280
|
+
logError: options.logError || defaultLogError,
|
|
281
|
+
requiresSocket: options.requiresSocket || defaultRequiresSocket
|
|
282
|
+
};
|
|
283
|
+
}
|
|
284
|
+
return {
|
|
285
|
+
ipc: args[0],
|
|
286
|
+
message: args[1],
|
|
287
|
+
execute: args[2],
|
|
288
|
+
resolve: args[3],
|
|
289
|
+
preparePrettyError: args[4],
|
|
290
|
+
logError: args[5],
|
|
291
|
+
requiresSocket: args[6]
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
const handleJsonRpcMessage = async (...args) => {
|
|
295
|
+
const options = normalizeParams(args);
|
|
296
|
+
const {
|
|
297
|
+
message,
|
|
298
|
+
ipc,
|
|
299
|
+
execute,
|
|
300
|
+
resolve,
|
|
301
|
+
preparePrettyError,
|
|
302
|
+
logError,
|
|
303
|
+
requiresSocket
|
|
304
|
+
} = options;
|
|
305
|
+
if ('id' in message) {
|
|
306
|
+
if ('method' in message) {
|
|
307
|
+
const response = await getResponse(message, ipc, execute, preparePrettyError, logError, requiresSocket);
|
|
308
|
+
try {
|
|
309
|
+
ipc.send(response);
|
|
310
|
+
} catch (error) {
|
|
311
|
+
const errorResponse = getErrorResponse(message, error, preparePrettyError, logError);
|
|
312
|
+
ipc.send(errorResponse);
|
|
313
|
+
}
|
|
314
|
+
return;
|
|
315
|
+
}
|
|
316
|
+
resolve(message.id, message);
|
|
317
|
+
return;
|
|
318
|
+
}
|
|
319
|
+
if ('method' in message) {
|
|
320
|
+
await getResponse(message, ipc, execute, preparePrettyError, logError, requiresSocket);
|
|
321
|
+
return;
|
|
322
|
+
}
|
|
323
|
+
throw new JsonRpcError('unexpected message');
|
|
324
|
+
};
|
|
325
|
+
const invokeHelper = async (ipc, method, params, useSendAndTransfer) => {
|
|
326
|
+
const {
|
|
327
|
+
message,
|
|
328
|
+
promise
|
|
329
|
+
} = create$2(method, params);
|
|
330
|
+
if (useSendAndTransfer && ipc.sendAndTransfer) {
|
|
331
|
+
ipc.sendAndTransfer(message);
|
|
332
|
+
} else {
|
|
333
|
+
ipc.send(message);
|
|
334
|
+
}
|
|
335
|
+
const responseMessage = await promise;
|
|
336
|
+
return unwrapJsonRpcResult(responseMessage);
|
|
337
|
+
};
|
|
338
|
+
const send = (transport, method, ...params) => {
|
|
339
|
+
const message = create$4(method, params);
|
|
340
|
+
transport.send(message);
|
|
341
|
+
};
|
|
342
|
+
const invoke$1 = (ipc, method, ...params) => {
|
|
343
|
+
return invokeHelper(ipc, method, params, false);
|
|
344
|
+
};
|
|
345
|
+
const invokeAndTransfer = (ipc, method, ...params) => {
|
|
346
|
+
return invokeHelper(ipc, method, params, true);
|
|
347
|
+
};
|
|
348
|
+
|
|
349
|
+
const commands = Object.create(null);
|
|
350
|
+
const register = commandMap => {
|
|
351
|
+
Object.assign(commands, commandMap);
|
|
352
|
+
};
|
|
353
|
+
const getCommand = key => {
|
|
354
|
+
return commands[key];
|
|
355
|
+
};
|
|
356
|
+
const execute = (command, ...args) => {
|
|
357
|
+
const fn = getCommand(command);
|
|
358
|
+
if (!fn) {
|
|
359
|
+
throw new Error(`command not found ${command}`);
|
|
360
|
+
}
|
|
361
|
+
return fn(...args);
|
|
362
|
+
};
|
|
363
|
+
|
|
364
|
+
const getData$1 = event => {
|
|
365
|
+
return event.data;
|
|
366
|
+
};
|
|
367
|
+
const attachEvents = that => {
|
|
368
|
+
const handleMessage = (...args) => {
|
|
369
|
+
const data = that.getData(...args);
|
|
370
|
+
that.dispatchEvent(new MessageEvent('message', {
|
|
371
|
+
data
|
|
372
|
+
}));
|
|
373
|
+
};
|
|
374
|
+
that.onMessage(handleMessage);
|
|
375
|
+
const handleClose = event => {
|
|
376
|
+
that.dispatchEvent(new Event('close'));
|
|
377
|
+
};
|
|
378
|
+
that.onClose(handleClose);
|
|
379
|
+
};
|
|
380
|
+
class Ipc extends EventTarget {
|
|
381
|
+
constructor(rawIpc) {
|
|
382
|
+
super();
|
|
383
|
+
this._rawIpc = rawIpc;
|
|
384
|
+
attachEvents(this);
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
const readyMessage = 'ready';
|
|
388
|
+
const walkValue = (value, transferrables, isTransferrable) => {
|
|
389
|
+
if (!value) {
|
|
390
|
+
return;
|
|
391
|
+
}
|
|
392
|
+
if (isTransferrable(value)) {
|
|
393
|
+
transferrables.push(value);
|
|
394
|
+
return;
|
|
395
|
+
}
|
|
396
|
+
if (Array.isArray(value)) {
|
|
397
|
+
for (const item of value) {
|
|
398
|
+
walkValue(item, transferrables, isTransferrable);
|
|
399
|
+
}
|
|
400
|
+
return;
|
|
401
|
+
}
|
|
402
|
+
if (typeof value === 'object') {
|
|
403
|
+
for (const property of Object.values(value)) {
|
|
404
|
+
walkValue(property, transferrables, isTransferrable);
|
|
405
|
+
}
|
|
406
|
+
return;
|
|
407
|
+
}
|
|
408
|
+
};
|
|
409
|
+
const isMessagePort = value => {
|
|
410
|
+
return value && value instanceof MessagePort;
|
|
411
|
+
};
|
|
412
|
+
const isMessagePortMain = value => {
|
|
413
|
+
return value && value.constructor && value.constructor.name === 'MessagePortMain';
|
|
414
|
+
};
|
|
415
|
+
const isOffscreenCanvas = value => {
|
|
416
|
+
return typeof OffscreenCanvas !== 'undefined' && value instanceof OffscreenCanvas;
|
|
417
|
+
};
|
|
418
|
+
const isInstanceOf = (value, constructorName) => {
|
|
419
|
+
return value?.constructor?.name === constructorName;
|
|
420
|
+
};
|
|
421
|
+
const isSocket = value => {
|
|
422
|
+
return isInstanceOf(value, 'Socket');
|
|
423
|
+
};
|
|
424
|
+
const transferrables = [isMessagePort, isMessagePortMain, isOffscreenCanvas, isSocket];
|
|
425
|
+
const isTransferrable = value => {
|
|
426
|
+
for (const fn of transferrables) {
|
|
427
|
+
if (fn(value)) {
|
|
428
|
+
return true;
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
return false;
|
|
432
|
+
};
|
|
433
|
+
const getTransferrables = value => {
|
|
434
|
+
const transferrables = [];
|
|
435
|
+
walkValue(value, transferrables, isTransferrable);
|
|
436
|
+
return transferrables;
|
|
437
|
+
};
|
|
438
|
+
const listen$2 = () => {
|
|
439
|
+
// @ts-ignore
|
|
440
|
+
if (typeof WorkerGlobalScope === 'undefined') {
|
|
441
|
+
throw new TypeError('module is not in web worker scope');
|
|
442
|
+
}
|
|
443
|
+
return globalThis;
|
|
444
|
+
};
|
|
445
|
+
const signal$2 = global => {
|
|
446
|
+
global.postMessage(readyMessage);
|
|
447
|
+
};
|
|
448
|
+
class IpcChildWithModuleWorker extends Ipc {
|
|
449
|
+
getData(event) {
|
|
450
|
+
return getData$1(event);
|
|
451
|
+
}
|
|
452
|
+
send(message) {
|
|
453
|
+
// @ts-ignore
|
|
454
|
+
this._rawIpc.postMessage(message);
|
|
455
|
+
}
|
|
456
|
+
sendAndTransfer(message) {
|
|
457
|
+
const transfer = getTransferrables(message);
|
|
458
|
+
// @ts-ignore
|
|
459
|
+
this._rawIpc.postMessage(message, transfer);
|
|
460
|
+
}
|
|
461
|
+
dispose() {
|
|
462
|
+
// ignore
|
|
463
|
+
}
|
|
464
|
+
onClose(callback) {
|
|
465
|
+
// ignore
|
|
466
|
+
}
|
|
467
|
+
onMessage(callback) {
|
|
468
|
+
this._rawIpc.addEventListener('message', callback);
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
const wrap$5 = global => {
|
|
472
|
+
return new IpcChildWithModuleWorker(global);
|
|
473
|
+
};
|
|
474
|
+
const E_INCOMPATIBLE_NATIVE_MODULE = 'E_INCOMPATIBLE_NATIVE_MODULE';
|
|
475
|
+
const E_MODULES_NOT_SUPPORTED_IN_ELECTRON = 'E_MODULES_NOT_SUPPORTED_IN_ELECTRON';
|
|
476
|
+
const ERR_MODULE_NOT_FOUND = 'ERR_MODULE_NOT_FOUND';
|
|
477
|
+
const NewLine$1 = '\n';
|
|
478
|
+
const joinLines = lines => {
|
|
479
|
+
return lines.join(NewLine$1);
|
|
480
|
+
};
|
|
481
|
+
const splitLines = lines => {
|
|
482
|
+
return lines.split(NewLine$1);
|
|
483
|
+
};
|
|
484
|
+
const isModuleNotFoundMessage = line => {
|
|
485
|
+
return line.includes('[ERR_MODULE_NOT_FOUND]');
|
|
486
|
+
};
|
|
487
|
+
const getModuleNotFoundError = stderr => {
|
|
488
|
+
const lines = splitLines(stderr);
|
|
489
|
+
const messageIndex = lines.findIndex(isModuleNotFoundMessage);
|
|
490
|
+
const message = lines[messageIndex];
|
|
491
|
+
return {
|
|
492
|
+
message,
|
|
493
|
+
code: ERR_MODULE_NOT_FOUND
|
|
494
|
+
};
|
|
495
|
+
};
|
|
496
|
+
const RE_NATIVE_MODULE_ERROR = /^innerError Error: Cannot find module '.*.node'/;
|
|
497
|
+
const RE_NATIVE_MODULE_ERROR_2 = /was compiled against a different Node.js version/;
|
|
498
|
+
const RE_MESSAGE_CODE_BLOCK_START = /^Error: The module '.*'$/;
|
|
499
|
+
const RE_MESSAGE_CODE_BLOCK_END = /^\s* at/;
|
|
500
|
+
const RE_AT = /^\s+at/;
|
|
501
|
+
const RE_AT_PROMISE_INDEX = /^\s*at async Promise.all \(index \d+\)$/;
|
|
502
|
+
const isUnhelpfulNativeModuleError = stderr => {
|
|
503
|
+
return RE_NATIVE_MODULE_ERROR.test(stderr) && RE_NATIVE_MODULE_ERROR_2.test(stderr);
|
|
504
|
+
};
|
|
505
|
+
const isMessageCodeBlockStartIndex = line => {
|
|
506
|
+
return RE_MESSAGE_CODE_BLOCK_START.test(line);
|
|
507
|
+
};
|
|
508
|
+
const isMessageCodeBlockEndIndex = line => {
|
|
509
|
+
return RE_MESSAGE_CODE_BLOCK_END.test(line);
|
|
510
|
+
};
|
|
511
|
+
const getMessageCodeBlock = stderr => {
|
|
512
|
+
const lines = splitLines(stderr);
|
|
513
|
+
const startIndex = lines.findIndex(isMessageCodeBlockStartIndex);
|
|
514
|
+
const endIndex = startIndex + lines.slice(startIndex).findIndex(isMessageCodeBlockEndIndex, startIndex);
|
|
515
|
+
const relevantLines = lines.slice(startIndex, endIndex);
|
|
516
|
+
const relevantMessage = relevantLines.join(' ').slice('Error: '.length);
|
|
517
|
+
return relevantMessage;
|
|
518
|
+
};
|
|
519
|
+
const getNativeModuleErrorMessage = stderr => {
|
|
520
|
+
const message = getMessageCodeBlock(stderr);
|
|
521
|
+
return {
|
|
522
|
+
message: `Incompatible native node module: ${message}`,
|
|
523
|
+
code: E_INCOMPATIBLE_NATIVE_MODULE
|
|
524
|
+
};
|
|
525
|
+
};
|
|
526
|
+
const isModulesSyntaxError = stderr => {
|
|
527
|
+
if (!stderr) {
|
|
528
|
+
return false;
|
|
529
|
+
}
|
|
530
|
+
return stderr.includes('SyntaxError: Cannot use import statement outside a module');
|
|
531
|
+
};
|
|
532
|
+
const getModuleSyntaxError = () => {
|
|
533
|
+
return {
|
|
534
|
+
message: `ES Modules are not supported in electron`,
|
|
535
|
+
code: E_MODULES_NOT_SUPPORTED_IN_ELECTRON
|
|
536
|
+
};
|
|
537
|
+
};
|
|
538
|
+
const isModuleNotFoundError = stderr => {
|
|
539
|
+
if (!stderr) {
|
|
540
|
+
return false;
|
|
541
|
+
}
|
|
542
|
+
return stderr.includes('ERR_MODULE_NOT_FOUND');
|
|
543
|
+
};
|
|
544
|
+
const isNormalStackLine = line => {
|
|
545
|
+
return RE_AT.test(line) && !RE_AT_PROMISE_INDEX.test(line);
|
|
546
|
+
};
|
|
547
|
+
const getDetails = lines => {
|
|
548
|
+
const index = lines.findIndex(isNormalStackLine);
|
|
549
|
+
if (index === -1) {
|
|
550
|
+
return {
|
|
551
|
+
actualMessage: joinLines(lines),
|
|
552
|
+
rest: []
|
|
553
|
+
};
|
|
554
|
+
}
|
|
555
|
+
let lastIndex = index - 1;
|
|
556
|
+
while (++lastIndex < lines.length) {
|
|
557
|
+
if (!isNormalStackLine(lines[lastIndex])) {
|
|
558
|
+
break;
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
return {
|
|
562
|
+
actualMessage: lines[index - 1],
|
|
563
|
+
rest: lines.slice(index, lastIndex)
|
|
564
|
+
};
|
|
565
|
+
};
|
|
566
|
+
const getHelpfulChildProcessError = (stdout, stderr) => {
|
|
567
|
+
if (isUnhelpfulNativeModuleError(stderr)) {
|
|
568
|
+
return getNativeModuleErrorMessage(stderr);
|
|
569
|
+
}
|
|
570
|
+
if (isModulesSyntaxError(stderr)) {
|
|
571
|
+
return getModuleSyntaxError();
|
|
572
|
+
}
|
|
573
|
+
if (isModuleNotFoundError(stderr)) {
|
|
574
|
+
return getModuleNotFoundError(stderr);
|
|
575
|
+
}
|
|
576
|
+
const lines = splitLines(stderr);
|
|
577
|
+
const {
|
|
578
|
+
actualMessage,
|
|
579
|
+
rest
|
|
580
|
+
} = getDetails(lines);
|
|
581
|
+
return {
|
|
582
|
+
message: `${actualMessage}`,
|
|
583
|
+
code: '',
|
|
584
|
+
stack: rest
|
|
585
|
+
};
|
|
586
|
+
};
|
|
587
|
+
const normalizeLine$1 = line => {
|
|
588
|
+
if (line.startsWith('Error: ')) {
|
|
589
|
+
return line.slice('Error: '.length);
|
|
590
|
+
}
|
|
591
|
+
if (line.startsWith('VError: ')) {
|
|
592
|
+
return line.slice('VError: '.length);
|
|
593
|
+
}
|
|
594
|
+
return line;
|
|
595
|
+
};
|
|
596
|
+
const getCombinedMessage$1 = (error, message) => {
|
|
597
|
+
const stringifiedError = normalizeLine$1(`${error}`);
|
|
598
|
+
if (message) {
|
|
599
|
+
return `${message}: ${stringifiedError}`;
|
|
600
|
+
}
|
|
601
|
+
return stringifiedError;
|
|
602
|
+
};
|
|
603
|
+
const NewLine$2 = '\n';
|
|
604
|
+
const getNewLineIndex$1 = (string, startIndex = undefined) => {
|
|
605
|
+
return string.indexOf(NewLine$2, startIndex);
|
|
606
|
+
};
|
|
607
|
+
const mergeStacks$1 = (parent, child) => {
|
|
608
|
+
if (!child) {
|
|
609
|
+
return parent;
|
|
610
|
+
}
|
|
611
|
+
const parentNewLineIndex = getNewLineIndex$1(parent);
|
|
612
|
+
const childNewLineIndex = getNewLineIndex$1(child);
|
|
613
|
+
if (childNewLineIndex === -1) {
|
|
614
|
+
return parent;
|
|
615
|
+
}
|
|
616
|
+
const parentFirstLine = parent.slice(0, parentNewLineIndex);
|
|
617
|
+
const childRest = child.slice(childNewLineIndex);
|
|
618
|
+
const childFirstLine = normalizeLine$1(child.slice(0, childNewLineIndex));
|
|
619
|
+
if (parentFirstLine.includes(childFirstLine)) {
|
|
620
|
+
return parentFirstLine + childRest;
|
|
621
|
+
}
|
|
622
|
+
return child;
|
|
623
|
+
};
|
|
624
|
+
let VError$1 = class VError extends Error {
|
|
625
|
+
constructor(error, message) {
|
|
626
|
+
const combinedMessage = getCombinedMessage$1(error, message);
|
|
627
|
+
super(combinedMessage);
|
|
628
|
+
this.name = 'VError';
|
|
629
|
+
if (error instanceof Error) {
|
|
630
|
+
this.stack = mergeStacks$1(this.stack, error.stack);
|
|
631
|
+
}
|
|
632
|
+
if (error.codeFrame) {
|
|
633
|
+
// @ts-ignore
|
|
634
|
+
this.codeFrame = error.codeFrame;
|
|
635
|
+
}
|
|
636
|
+
if (error.code) {
|
|
637
|
+
// @ts-ignore
|
|
638
|
+
this.code = error.code;
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
};
|
|
642
|
+
class IpcError extends VError$1 {
|
|
643
|
+
// @ts-ignore
|
|
644
|
+
constructor(betterMessage, stdout = '', stderr = '') {
|
|
645
|
+
if (stdout || stderr) {
|
|
646
|
+
// @ts-ignore
|
|
647
|
+
const {
|
|
648
|
+
message,
|
|
649
|
+
code,
|
|
650
|
+
stack
|
|
651
|
+
} = getHelpfulChildProcessError(stdout, stderr);
|
|
652
|
+
const cause = new Error(message);
|
|
653
|
+
// @ts-ignore
|
|
654
|
+
cause.code = code;
|
|
655
|
+
cause.stack = stack;
|
|
656
|
+
super(cause, betterMessage);
|
|
657
|
+
} else {
|
|
658
|
+
super(betterMessage);
|
|
659
|
+
}
|
|
660
|
+
// @ts-ignore
|
|
661
|
+
this.name = 'IpcError';
|
|
662
|
+
// @ts-ignore
|
|
663
|
+
this.stdout = stdout;
|
|
664
|
+
// @ts-ignore
|
|
665
|
+
this.stderr = stderr;
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
const withResolvers = () => {
|
|
669
|
+
let _resolve;
|
|
670
|
+
const promise = new Promise(resolve => {
|
|
671
|
+
_resolve = resolve;
|
|
672
|
+
});
|
|
673
|
+
return {
|
|
674
|
+
resolve: _resolve,
|
|
675
|
+
promise
|
|
676
|
+
};
|
|
677
|
+
};
|
|
678
|
+
const waitForFirstMessage = async port => {
|
|
679
|
+
const {
|
|
680
|
+
resolve,
|
|
681
|
+
promise
|
|
682
|
+
} = withResolvers();
|
|
683
|
+
port.addEventListener('message', resolve, {
|
|
684
|
+
once: true
|
|
685
|
+
});
|
|
686
|
+
const event = await promise;
|
|
687
|
+
// @ts-ignore
|
|
688
|
+
return event.data;
|
|
689
|
+
};
|
|
690
|
+
const listen$1$1 = async () => {
|
|
691
|
+
const parentIpcRaw = listen$2();
|
|
692
|
+
signal$2(parentIpcRaw);
|
|
693
|
+
const parentIpc = wrap$5(parentIpcRaw);
|
|
694
|
+
const firstMessage = await waitForFirstMessage(parentIpc);
|
|
695
|
+
if (firstMessage.method !== 'initialize') {
|
|
696
|
+
throw new IpcError('unexpected first message');
|
|
697
|
+
}
|
|
698
|
+
const type = firstMessage.params[0];
|
|
699
|
+
if (type === 'message-port') {
|
|
700
|
+
parentIpc.send({
|
|
701
|
+
jsonrpc: '2.0',
|
|
702
|
+
id: firstMessage.id,
|
|
703
|
+
result: null
|
|
704
|
+
});
|
|
705
|
+
parentIpc.dispose();
|
|
706
|
+
const port = firstMessage.params[1];
|
|
707
|
+
return port;
|
|
708
|
+
}
|
|
709
|
+
return globalThis;
|
|
710
|
+
};
|
|
711
|
+
class IpcChildWithModuleWorkerAndMessagePort extends Ipc {
|
|
712
|
+
constructor(port) {
|
|
713
|
+
super(port);
|
|
714
|
+
}
|
|
715
|
+
getData(event) {
|
|
716
|
+
return getData$1(event);
|
|
717
|
+
}
|
|
718
|
+
send(message) {
|
|
719
|
+
this._rawIpc.postMessage(message);
|
|
720
|
+
}
|
|
721
|
+
sendAndTransfer(message) {
|
|
722
|
+
const transfer = getTransferrables(message);
|
|
723
|
+
this._rawIpc.postMessage(message, transfer);
|
|
724
|
+
}
|
|
725
|
+
dispose() {
|
|
726
|
+
if (this._rawIpc.close) {
|
|
727
|
+
this._rawIpc.close();
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
onClose(callback) {
|
|
731
|
+
// ignore
|
|
732
|
+
}
|
|
733
|
+
onMessage(callback) {
|
|
734
|
+
this._rawIpc.addEventListener('message', callback);
|
|
735
|
+
this._rawIpc.start();
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
const wrap$4 = port => {
|
|
739
|
+
return new IpcChildWithModuleWorkerAndMessagePort(port);
|
|
740
|
+
};
|
|
741
|
+
const IpcChildWithModuleWorkerAndMessagePort$1 = {
|
|
742
|
+
__proto__: null,
|
|
743
|
+
listen: listen$1$1,
|
|
744
|
+
wrap: wrap$4
|
|
745
|
+
};
|
|
746
|
+
|
|
747
|
+
const createRpc = ipc => {
|
|
748
|
+
const rpc = {
|
|
749
|
+
/**
|
|
750
|
+
* @deprecated
|
|
751
|
+
*/
|
|
752
|
+
send(method, ...params) {
|
|
753
|
+
send(ipc, method, ...params);
|
|
754
|
+
},
|
|
755
|
+
invoke(method, ...params) {
|
|
756
|
+
return invoke$1(ipc, method, ...params);
|
|
757
|
+
},
|
|
758
|
+
invokeAndTransfer(method, ...params) {
|
|
759
|
+
return invokeAndTransfer(ipc, method, ...params);
|
|
760
|
+
}
|
|
761
|
+
};
|
|
762
|
+
return rpc;
|
|
763
|
+
};
|
|
764
|
+
const requiresSocket = () => {
|
|
765
|
+
return false;
|
|
766
|
+
};
|
|
767
|
+
const preparePrettyError = error => {
|
|
768
|
+
return error;
|
|
769
|
+
};
|
|
770
|
+
const logError = () => {
|
|
771
|
+
// handled by renderer worker
|
|
772
|
+
};
|
|
773
|
+
const handleMessage = event => {
|
|
774
|
+
return handleJsonRpcMessage(event.target, event.data, execute, resolve, preparePrettyError, logError, requiresSocket);
|
|
775
|
+
};
|
|
776
|
+
const handleIpc = ipc => {
|
|
777
|
+
ipc.addEventListener('message', handleMessage);
|
|
778
|
+
};
|
|
779
|
+
|
|
780
|
+
// @ts-ignore
|
|
781
|
+
const listen$1 = async () => {
|
|
782
|
+
const module = IpcChildWithModuleWorkerAndMessagePort$1;
|
|
783
|
+
const rawIpc = await module.listen();
|
|
784
|
+
const ipc = module.wrap(rawIpc);
|
|
785
|
+
return ipc;
|
|
786
|
+
};
|
|
787
|
+
const create = async ({
|
|
788
|
+
commandMap
|
|
789
|
+
}) => {
|
|
790
|
+
// TODO create a commandMap per rpc instance
|
|
791
|
+
register(commandMap);
|
|
792
|
+
const ipc = await listen$1();
|
|
793
|
+
handleIpc(ipc);
|
|
794
|
+
const rpc = createRpc(ipc);
|
|
795
|
+
return rpc;
|
|
796
|
+
};
|
|
797
|
+
const WebWorkerRpcClient = {
|
|
798
|
+
__proto__: null,
|
|
799
|
+
create
|
|
800
|
+
};
|
|
801
|
+
|
|
802
|
+
const RE_CHARACTERS = /^[a-zA-Z.-]+$/;
|
|
803
|
+
const compareStringNumeric = (a, b) => {
|
|
804
|
+
if (RE_CHARACTERS.test(a) && RE_CHARACTERS.test(b)) {
|
|
805
|
+
return a < b ? -1 : 1;
|
|
806
|
+
}
|
|
807
|
+
return a.localeCompare(b, 'en', {
|
|
808
|
+
numeric: true
|
|
809
|
+
});
|
|
810
|
+
};
|
|
811
|
+
|
|
812
|
+
const BlockDevice = 1;
|
|
813
|
+
const CharacterDevice = 2;
|
|
814
|
+
const Directory = 3;
|
|
815
|
+
const DirectoryExpanded = 4;
|
|
816
|
+
const DirectoryExpanding = 5;
|
|
817
|
+
const File = 7;
|
|
818
|
+
const Socket = 8;
|
|
819
|
+
const Symlink = 9;
|
|
820
|
+
const SymLinkFile = 10;
|
|
821
|
+
const SymLinkFolder = 11;
|
|
822
|
+
const Unknown = 12;
|
|
823
|
+
|
|
824
|
+
const priorityMapFoldersFirst = {
|
|
825
|
+
[Directory]: 1,
|
|
826
|
+
[SymLinkFolder]: 1,
|
|
827
|
+
[File]: 0,
|
|
828
|
+
[SymLinkFile]: 0,
|
|
829
|
+
[Unknown]: 0,
|
|
830
|
+
[Socket]: 0
|
|
831
|
+
};
|
|
832
|
+
const compareDirentType = (direntA, direntB) => {
|
|
833
|
+
return priorityMapFoldersFirst[direntB.type] - priorityMapFoldersFirst[direntA.type];
|
|
834
|
+
};
|
|
835
|
+
const compareDirentName = (direntA, direntB) => {
|
|
836
|
+
return compareStringNumeric(direntA.name, direntB.name);
|
|
837
|
+
};
|
|
838
|
+
const compareDirent = (direntA, direntB) => {
|
|
839
|
+
return compareDirentType(direntA, direntB) || compareDirentName(direntA, direntB);
|
|
840
|
+
};
|
|
841
|
+
|
|
842
|
+
const getFileIcon = ({
|
|
843
|
+
name
|
|
844
|
+
}) => {
|
|
845
|
+
return '';
|
|
846
|
+
};
|
|
847
|
+
const getIcon = dirent => {
|
|
848
|
+
return '';
|
|
849
|
+
};
|
|
850
|
+
|
|
851
|
+
// TODO use posInSet and setSize properties to compute more effectively
|
|
852
|
+
const computeExplorerRenamedDirent = (dirents, index, newName) => {
|
|
853
|
+
let startIndex = index;
|
|
854
|
+
let innerEndIndex = index + 1;
|
|
855
|
+
let insertIndex = -1;
|
|
856
|
+
let posInSet = -1;
|
|
857
|
+
const oldDirent = dirents[index];
|
|
858
|
+
const newDirent = {
|
|
859
|
+
...oldDirent,
|
|
860
|
+
name: newName,
|
|
861
|
+
path: oldDirent.path.slice(0, -oldDirent.name.length) + newName,
|
|
862
|
+
icon: getFileIcon({
|
|
863
|
+
name: newName
|
|
864
|
+
})
|
|
865
|
+
};
|
|
866
|
+
const depth = newDirent.depth;
|
|
867
|
+
// TODO
|
|
868
|
+
for (; startIndex >= 0; startIndex--) {
|
|
869
|
+
const dirent = dirents[startIndex];
|
|
870
|
+
if (dirent.depth > depth) {
|
|
871
|
+
continue;
|
|
872
|
+
}
|
|
873
|
+
if (dirent.depth < depth) {
|
|
874
|
+
break;
|
|
875
|
+
}
|
|
876
|
+
if (compareDirent(dirent, newDirent) === 1) {
|
|
877
|
+
insertIndex = startIndex;
|
|
878
|
+
posInSet = dirent.posInSet;
|
|
879
|
+
// dirent.posInSet++
|
|
880
|
+
}
|
|
881
|
+
}
|
|
882
|
+
startIndex++;
|
|
883
|
+
for (; innerEndIndex < dirents.length; innerEndIndex++) {
|
|
884
|
+
const dirent = dirents[innerEndIndex];
|
|
885
|
+
if (dirent.depth <= depth) {
|
|
886
|
+
break;
|
|
887
|
+
}
|
|
888
|
+
dirent.path = newDirent.path + dirent.path.slice(oldDirent.path.length);
|
|
889
|
+
}
|
|
890
|
+
innerEndIndex--;
|
|
891
|
+
let endIndex = innerEndIndex + 1;
|
|
892
|
+
for (; endIndex < dirents.length; endIndex++) {
|
|
893
|
+
const dirent = dirents[endIndex];
|
|
894
|
+
if (dirent.depth > depth) {
|
|
895
|
+
continue;
|
|
896
|
+
}
|
|
897
|
+
if (dirent.depth < depth) {
|
|
898
|
+
break;
|
|
899
|
+
}
|
|
900
|
+
if (insertIndex === -1 && compareDirent(dirent, newDirent === -1)) {
|
|
901
|
+
for (; endIndex < dirents.length; endIndex++) {
|
|
902
|
+
}
|
|
903
|
+
insertIndex = endIndex;
|
|
904
|
+
posInSet = dirent.posInSet + 1;
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
endIndex--;
|
|
908
|
+
for (let j = startIndex; j < index; j++) {
|
|
909
|
+
const dirent = dirents[j];
|
|
910
|
+
if (dirent.depth === depth) {
|
|
911
|
+
dirent.posInSet++;
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
for (let j = index; j < endIndex; j++) {
|
|
915
|
+
const dirent = dirents[j];
|
|
916
|
+
if (dirent.depth === depth) {
|
|
917
|
+
dirent.posInSet--;
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
// for (let j = startIndex; j < index; j++) {
|
|
922
|
+
// const dirent = dirents[j]
|
|
923
|
+
// dirent.posInSet++
|
|
924
|
+
// }
|
|
925
|
+
|
|
926
|
+
if (insertIndex === -1) {
|
|
927
|
+
insertIndex = index;
|
|
928
|
+
return {
|
|
929
|
+
focusedIndex: index,
|
|
930
|
+
newDirents: [...dirents.slice(0, index), newDirent, ...dirents.slice(index + 1)]
|
|
931
|
+
};
|
|
932
|
+
}
|
|
933
|
+
newDirent.posInSet = posInSet;
|
|
934
|
+
const newDirents = [...dirents];
|
|
935
|
+
if (index < insertIndex) {
|
|
936
|
+
insertIndex--;
|
|
937
|
+
}
|
|
938
|
+
newDirents.splice(index, 1);
|
|
939
|
+
newDirents.splice(insertIndex, 0, newDirent);
|
|
940
|
+
return {
|
|
941
|
+
newDirents,
|
|
942
|
+
focusedIndex: insertIndex
|
|
943
|
+
};
|
|
944
|
+
};
|
|
945
|
+
|
|
946
|
+
const None$3 = 0;
|
|
947
|
+
const CreateFile = 1;
|
|
948
|
+
const CreateFolder = 2;
|
|
949
|
+
const Rename = 3;
|
|
950
|
+
|
|
951
|
+
const remove = async diren => {};
|
|
952
|
+
const readDirWithFileTypes = async uri => {};
|
|
953
|
+
const getPathSeparator$1 = async root => {};
|
|
954
|
+
const getRealPath = async path => {};
|
|
955
|
+
const stat = async dirent => {};
|
|
956
|
+
const createFile = async uri => {};
|
|
957
|
+
const mkdir = async uri => {};
|
|
958
|
+
const rename$1 = async (oldUri, newUri) => {};
|
|
959
|
+
const copy$1 = async (oldUri, newUri) => {};
|
|
960
|
+
|
|
961
|
+
const dirname = (pathSeparator, path) => {
|
|
962
|
+
const index = path.lastIndexOf(pathSeparator);
|
|
963
|
+
if (index === -1) {
|
|
964
|
+
return path;
|
|
965
|
+
}
|
|
966
|
+
return path.slice(0, index);
|
|
967
|
+
};
|
|
968
|
+
const join = (pathSeparator, ...parts) => {
|
|
969
|
+
return parts.join(pathSeparator);
|
|
970
|
+
};
|
|
971
|
+
const getBaseName = (pathSeparator, path) => {
|
|
972
|
+
return path.slice(path.lastIndexOf(pathSeparator) + 1);
|
|
973
|
+
};
|
|
974
|
+
|
|
975
|
+
const getParentFolder = (dirents, index, root) => {
|
|
976
|
+
if (index < 0) {
|
|
977
|
+
return root;
|
|
978
|
+
}
|
|
979
|
+
return dirents[index].path;
|
|
980
|
+
};
|
|
981
|
+
const acceptCreate = async (state, newDirentType, createFn) => {
|
|
982
|
+
const {
|
|
983
|
+
focusedIndex,
|
|
984
|
+
editingValue
|
|
985
|
+
} = state;
|
|
986
|
+
const newFileName = editingValue;
|
|
987
|
+
if (!newFileName) {
|
|
988
|
+
// TODO show error message that file name must not be empty
|
|
989
|
+
// below input box
|
|
990
|
+
// await ErrorHandling.showErrorDialog(new Error('file name must not be empty'))
|
|
991
|
+
return state;
|
|
992
|
+
}
|
|
993
|
+
const parentFolder = getParentFolder(state.items, focusedIndex, state.root);
|
|
994
|
+
const absolutePath = [parentFolder, newFileName].join(state.pathSeparator);
|
|
995
|
+
// TODO better handle error
|
|
996
|
+
try {
|
|
997
|
+
await createFn(absolutePath);
|
|
998
|
+
} catch (error) {
|
|
999
|
+
// TODO display error
|
|
1000
|
+
return state;
|
|
1001
|
+
}
|
|
1002
|
+
const parentDirent = focusedIndex >= 0 ? state.items[focusedIndex] : {
|
|
1003
|
+
depth: 0,
|
|
1004
|
+
path: state.root
|
|
1005
|
+
};
|
|
1006
|
+
const depth = parentDirent.depth + 1;
|
|
1007
|
+
const newDirent = {
|
|
1008
|
+
path: absolutePath,
|
|
1009
|
+
posInSet: -1,
|
|
1010
|
+
setSize: 1,
|
|
1011
|
+
depth,
|
|
1012
|
+
name: newFileName,
|
|
1013
|
+
type: newDirentType,
|
|
1014
|
+
icon: ''
|
|
1015
|
+
};
|
|
1016
|
+
newDirent.icon = getIcon();
|
|
1017
|
+
let insertIndex = state.focusedIndex;
|
|
1018
|
+
let deltaPosInSet = 0;
|
|
1019
|
+
let posInSet = 1;
|
|
1020
|
+
let setSize = 1;
|
|
1021
|
+
let i = Math.max(state.focusedIndex, -1) + 1;
|
|
1022
|
+
const {
|
|
1023
|
+
items
|
|
1024
|
+
} = state;
|
|
1025
|
+
// TODO update posinset and setsize of all affected dirents
|
|
1026
|
+
for (; i < items.length; i++) {
|
|
1027
|
+
const dirent = items[i];
|
|
1028
|
+
if (dirent.depth !== depth) {
|
|
1029
|
+
break;
|
|
1030
|
+
}
|
|
1031
|
+
const compareResult = compareDirent(dirent, newDirent);
|
|
1032
|
+
if (compareResult === 1) {
|
|
1033
|
+
insertIndex = i - 1;
|
|
1034
|
+
deltaPosInSet = 1 - 1;
|
|
1035
|
+
break;
|
|
1036
|
+
} else {
|
|
1037
|
+
posInSet = dirent.posInSet + 1;
|
|
1038
|
+
setSize = dirent.setSize + 1;
|
|
1039
|
+
insertIndex = i;
|
|
1040
|
+
}
|
|
1041
|
+
dirent.setSize++;
|
|
1042
|
+
dirent.posInSet += deltaPosInSet;
|
|
1043
|
+
}
|
|
1044
|
+
newDirent.setSize = setSize;
|
|
1045
|
+
newDirent.posInSet = posInSet;
|
|
1046
|
+
items.splice(insertIndex + 1, 0, newDirent);
|
|
1047
|
+
const newDirents = [...items];
|
|
1048
|
+
const newMaxlineY = Math.max(state.maxLineY, newDirents.length);
|
|
1049
|
+
return {
|
|
1050
|
+
...state,
|
|
1051
|
+
items: newDirents,
|
|
1052
|
+
editingIndex: -1,
|
|
1053
|
+
focusedIndex: insertIndex + 1,
|
|
1054
|
+
editingType: None$3,
|
|
1055
|
+
maxLineY: newMaxlineY
|
|
1056
|
+
};
|
|
1057
|
+
};
|
|
1058
|
+
const acceptRename = async state => {
|
|
1059
|
+
const {
|
|
1060
|
+
editingIndex,
|
|
1061
|
+
editingValue,
|
|
1062
|
+
items,
|
|
1063
|
+
pathSeparator
|
|
1064
|
+
} = state;
|
|
1065
|
+
const renamedDirent = items[editingIndex];
|
|
1066
|
+
try {
|
|
1067
|
+
// TODO this does not work with rename of nested file
|
|
1068
|
+
const oldAbsolutePath = renamedDirent.path;
|
|
1069
|
+
const oldParentPath = dirname(pathSeparator, oldAbsolutePath);
|
|
1070
|
+
const newAbsolutePath = [oldParentPath, editingValue].join(pathSeparator);
|
|
1071
|
+
await rename$1(oldAbsolutePath, newAbsolutePath);
|
|
1072
|
+
} catch (error) {
|
|
1073
|
+
// TODO
|
|
1074
|
+
// await ErrorHandling.showErrorDialog(error)
|
|
1075
|
+
return state;
|
|
1076
|
+
}
|
|
1077
|
+
const {
|
|
1078
|
+
newDirents,
|
|
1079
|
+
focusedIndex
|
|
1080
|
+
} = computeExplorerRenamedDirent(items, editingIndex, editingValue);
|
|
1081
|
+
// TODO move focused index
|
|
1082
|
+
state.items = newDirents;
|
|
1083
|
+
return {
|
|
1084
|
+
...state,
|
|
1085
|
+
editingIndex: -1,
|
|
1086
|
+
editingValue: '',
|
|
1087
|
+
editingType: None$3,
|
|
1088
|
+
editingIcon: '',
|
|
1089
|
+
focusedIndex,
|
|
1090
|
+
focused: true
|
|
1091
|
+
};
|
|
1092
|
+
};
|
|
1093
|
+
const acceptEdit = state => {
|
|
1094
|
+
const {
|
|
1095
|
+
editingType
|
|
1096
|
+
} = state;
|
|
1097
|
+
switch (editingType) {
|
|
1098
|
+
case CreateFile:
|
|
1099
|
+
return acceptCreate(state, File, createFile);
|
|
1100
|
+
case CreateFolder:
|
|
1101
|
+
return acceptCreate(state, Directory, mkdir);
|
|
1102
|
+
case Rename:
|
|
1103
|
+
return acceptRename(state);
|
|
1104
|
+
default:
|
|
1105
|
+
return state;
|
|
1106
|
+
}
|
|
1107
|
+
};
|
|
1108
|
+
|
|
1109
|
+
const getFocusedDirent$1 = state => {
|
|
1110
|
+
const {
|
|
1111
|
+
focusedIndex,
|
|
1112
|
+
minLineY,
|
|
1113
|
+
items
|
|
1114
|
+
} = state;
|
|
1115
|
+
const dirent = items[focusedIndex + minLineY];
|
|
1116
|
+
return dirent;
|
|
1117
|
+
};
|
|
1118
|
+
|
|
1119
|
+
const copyPath$1 = async state => {
|
|
1120
|
+
// await Command.execute(RendererWorkerCommandType.ClipBoardWriteText, /* text */ path)
|
|
1121
|
+
return state;
|
|
1122
|
+
};
|
|
1123
|
+
|
|
1124
|
+
const state = {
|
|
1125
|
+
rpc: undefined
|
|
1126
|
+
};
|
|
1127
|
+
const invoke = (method, ...params) => {
|
|
1128
|
+
const rpc = state.rpc;
|
|
1129
|
+
// @ts-ignore
|
|
1130
|
+
return rpc.invoke(method, ...params);
|
|
1131
|
+
};
|
|
1132
|
+
const setRpc = rpc => {
|
|
1133
|
+
state.rpc = rpc;
|
|
1134
|
+
};
|
|
1135
|
+
|
|
1136
|
+
const writeText = async text => {
|
|
1137
|
+
await invoke('ClipBoard.writeText', /* text */text);
|
|
1138
|
+
};
|
|
1139
|
+
const readNativeFiles = async () => {
|
|
1140
|
+
return invoke('ClipBoard.readNativeFiles');
|
|
1141
|
+
};
|
|
1142
|
+
|
|
1143
|
+
const copyRelativePath$1 = async state => {
|
|
1144
|
+
const dirent = getFocusedDirent$1(state);
|
|
1145
|
+
const relativePath = dirent.path.slice(1);
|
|
1146
|
+
// TODO handle error
|
|
1147
|
+
await writeText(relativePath);
|
|
1148
|
+
return state;
|
|
1149
|
+
};
|
|
1150
|
+
|
|
1151
|
+
class AssertionError extends Error {
|
|
1152
|
+
constructor(message) {
|
|
1153
|
+
super(message);
|
|
1154
|
+
this.name = 'AssertionError';
|
|
1155
|
+
}
|
|
1156
|
+
}
|
|
1157
|
+
const getType = value => {
|
|
1158
|
+
switch (typeof value) {
|
|
1159
|
+
case 'number':
|
|
1160
|
+
return 'number';
|
|
1161
|
+
case 'function':
|
|
1162
|
+
return 'function';
|
|
1163
|
+
case 'string':
|
|
1164
|
+
return 'string';
|
|
1165
|
+
case 'object':
|
|
1166
|
+
if (value === null) {
|
|
1167
|
+
return 'null';
|
|
1168
|
+
}
|
|
1169
|
+
if (Array.isArray(value)) {
|
|
1170
|
+
return 'array';
|
|
1171
|
+
}
|
|
1172
|
+
return 'object';
|
|
1173
|
+
case 'boolean':
|
|
1174
|
+
return 'boolean';
|
|
1175
|
+
default:
|
|
1176
|
+
return 'unknown';
|
|
1177
|
+
}
|
|
1178
|
+
};
|
|
1179
|
+
const object = value => {
|
|
1180
|
+
const type = getType(value);
|
|
1181
|
+
if (type !== 'object') {
|
|
1182
|
+
throw new AssertionError('expected value to be of type object');
|
|
1183
|
+
}
|
|
1184
|
+
};
|
|
1185
|
+
const number = value => {
|
|
1186
|
+
const type = getType(value);
|
|
1187
|
+
if (type !== 'number') {
|
|
1188
|
+
throw new AssertionError('expected value to be of type number');
|
|
1189
|
+
}
|
|
1190
|
+
};
|
|
1191
|
+
const array = value => {
|
|
1192
|
+
const type = getType(value);
|
|
1193
|
+
if (type !== 'array') {
|
|
1194
|
+
throw new AssertionError('expected value to be of type array');
|
|
1195
|
+
}
|
|
1196
|
+
};
|
|
1197
|
+
const string = value => {
|
|
1198
|
+
const type = getType(value);
|
|
1199
|
+
if (type !== 'string') {
|
|
1200
|
+
throw new AssertionError('expected value to be of type string');
|
|
1201
|
+
}
|
|
1202
|
+
};
|
|
1203
|
+
|
|
1204
|
+
const isSymbolicLink = dirent => {
|
|
1205
|
+
return dirent.type === Symlink;
|
|
1206
|
+
};
|
|
1207
|
+
|
|
1208
|
+
const ENOENT = 'ENOENT';
|
|
1209
|
+
|
|
1210
|
+
const getSymlinkType = type => {
|
|
1211
|
+
switch (type) {
|
|
1212
|
+
case File:
|
|
1213
|
+
return SymLinkFile;
|
|
1214
|
+
case Directory:
|
|
1215
|
+
return SymLinkFolder;
|
|
1216
|
+
default:
|
|
1217
|
+
return Symlink;
|
|
1218
|
+
}
|
|
1219
|
+
};
|
|
1220
|
+
|
|
1221
|
+
// TODO maybe resolving of symbolic links should happen in shared process?
|
|
1222
|
+
// so that there is less code and less work in the frontend
|
|
1223
|
+
const resolveSymbolicLink = async (uri, rawDirent) => {
|
|
1224
|
+
try {
|
|
1225
|
+
// TODO support windows paths
|
|
1226
|
+
const absolutePath = uri + '/' + rawDirent.name;
|
|
1227
|
+
const type = await stat(absolutePath);
|
|
1228
|
+
const symLinkType = getSymlinkType(type);
|
|
1229
|
+
return {
|
|
1230
|
+
name: rawDirent.name,
|
|
1231
|
+
type: symLinkType
|
|
1232
|
+
};
|
|
1233
|
+
} catch (error) {
|
|
1234
|
+
// @ts-ignore
|
|
1235
|
+
if (error && error.code === ENOENT) {
|
|
1236
|
+
return {
|
|
1237
|
+
name: rawDirent.name,
|
|
1238
|
+
type: SymLinkFile
|
|
1239
|
+
};
|
|
1240
|
+
}
|
|
1241
|
+
console.error(`Failed to resolve symbolic link for ${rawDirent.name}: ${error}`);
|
|
1242
|
+
return rawDirent;
|
|
1243
|
+
}
|
|
1244
|
+
};
|
|
1245
|
+
const resolveSymbolicLinks = async (uri, rawDirents) => {
|
|
1246
|
+
const promises = [];
|
|
1247
|
+
for (const rawDirent of rawDirents) {
|
|
1248
|
+
if (isSymbolicLink(rawDirent)) {
|
|
1249
|
+
const resolvedDirent = resolveSymbolicLink(uri, rawDirent);
|
|
1250
|
+
promises.push(resolvedDirent);
|
|
1251
|
+
} else {
|
|
1252
|
+
promises.push(rawDirent);
|
|
1253
|
+
}
|
|
1254
|
+
}
|
|
1255
|
+
const resolvedDirents = await Promise.all(promises);
|
|
1256
|
+
return resolvedDirents;
|
|
1257
|
+
};
|
|
1258
|
+
|
|
1259
|
+
const sortExplorerItems = rawDirents => {
|
|
1260
|
+
rawDirents.sort(compareDirent);
|
|
1261
|
+
};
|
|
1262
|
+
|
|
1263
|
+
const toDisplayDirents = (pathSeparator, rawDirents, parentDirent, excluded) => {
|
|
1264
|
+
sortExplorerItems(rawDirents);
|
|
1265
|
+
// TODO figure out whether this uses too much memory (name,path -> redundant, depth could be computed on demand)
|
|
1266
|
+
const toDisplayDirent = (rawDirent, index) => {
|
|
1267
|
+
const path = [parentDirent.path, rawDirent.name].join(pathSeparator);
|
|
1268
|
+
return {
|
|
1269
|
+
name: rawDirent.name,
|
|
1270
|
+
posInSet: index + 1,
|
|
1271
|
+
setSize: rawDirents.length,
|
|
1272
|
+
depth: parentDirent.depth + 1,
|
|
1273
|
+
type: rawDirent.type,
|
|
1274
|
+
path,
|
|
1275
|
+
// TODO storing absolute path might be too costly, could also store relative path here
|
|
1276
|
+
icon: getIcon()
|
|
1277
|
+
};
|
|
1278
|
+
};
|
|
1279
|
+
const result = [];
|
|
1280
|
+
let i = 0;
|
|
1281
|
+
for (const rawDirent of rawDirents) {
|
|
1282
|
+
if (excluded.includes(rawDirent.name)) {
|
|
1283
|
+
continue;
|
|
1284
|
+
}
|
|
1285
|
+
result.push(toDisplayDirent(rawDirent, i));
|
|
1286
|
+
i++;
|
|
1287
|
+
}
|
|
1288
|
+
return result;
|
|
1289
|
+
};
|
|
1290
|
+
|
|
1291
|
+
const hasSymbolicLinks = rawDirents => {
|
|
1292
|
+
return rawDirents.some(isSymbolicLink);
|
|
1293
|
+
};
|
|
1294
|
+
const getChildDirentsRaw = async uri => {
|
|
1295
|
+
const rawDirents = await readDirWithFileTypes();
|
|
1296
|
+
array(rawDirents);
|
|
1297
|
+
if (hasSymbolicLinks(rawDirents)) {
|
|
1298
|
+
return resolveSymbolicLinks(uri, rawDirents);
|
|
1299
|
+
}
|
|
1300
|
+
return rawDirents;
|
|
1301
|
+
};
|
|
1302
|
+
const getChildDirents = async (pathSeparator, parentDirent, excluded = []) => {
|
|
1303
|
+
string(pathSeparator);
|
|
1304
|
+
object(parentDirent);
|
|
1305
|
+
// TODO use event/actor based code instead, this is impossible to cancel right now
|
|
1306
|
+
// also cancel updating when opening new folder
|
|
1307
|
+
// const dispose = state => state.pendingRequests.forEach(cancelRequest)
|
|
1308
|
+
// TODO should use FileSystem directly in this case because it is globally available anyway
|
|
1309
|
+
// and more typesafe than Command.execute
|
|
1310
|
+
// and more performant
|
|
1311
|
+
const uri = parentDirent.path;
|
|
1312
|
+
const rawDirents = await getChildDirentsRaw(uri);
|
|
1313
|
+
const displayDirents = toDisplayDirents(pathSeparator, rawDirents, parentDirent, excluded);
|
|
1314
|
+
return displayDirents;
|
|
1315
|
+
};
|
|
1316
|
+
|
|
1317
|
+
// TODO optimize this function to return the minimum number
|
|
1318
|
+
// of visible items needed, e.g. when not scrolled 5 items with
|
|
1319
|
+
// 20px fill 100px but when scrolled 6 items are needed
|
|
1320
|
+
const getNumberOfVisibleItems = (listHeight, itemHeight) => {
|
|
1321
|
+
return Math.ceil(listHeight / itemHeight) + 1;
|
|
1322
|
+
};
|
|
1323
|
+
|
|
1324
|
+
const getExplorerMaxLineY = (minLineY, height, itemHeight, direntsLength) => {
|
|
1325
|
+
const maxLineY = minLineY + Math.min(getNumberOfVisibleItems(height, itemHeight), direntsLength);
|
|
1326
|
+
return maxLineY;
|
|
1327
|
+
};
|
|
1328
|
+
|
|
1329
|
+
const expandAll = async state => {
|
|
1330
|
+
const {
|
|
1331
|
+
items,
|
|
1332
|
+
focusedIndex,
|
|
1333
|
+
pathSeparator,
|
|
1334
|
+
minLineY,
|
|
1335
|
+
height,
|
|
1336
|
+
itemHeight
|
|
1337
|
+
} = state;
|
|
1338
|
+
if (focusedIndex === -1) {
|
|
1339
|
+
return state;
|
|
1340
|
+
}
|
|
1341
|
+
const dirent = items[focusedIndex];
|
|
1342
|
+
const depth = dirent.depth;
|
|
1343
|
+
const newDirents = [...items];
|
|
1344
|
+
// TODO fetch child dirents in parallel
|
|
1345
|
+
for (const dirent of newDirents) {
|
|
1346
|
+
if (dirent.depth === depth && dirent.type === Directory) {
|
|
1347
|
+
// TODO expand
|
|
1348
|
+
// TODO avoid mutating state here
|
|
1349
|
+
dirent.type = DirectoryExpanding;
|
|
1350
|
+
// TODO handle error
|
|
1351
|
+
// TODO race condition
|
|
1352
|
+
const childDirents = await getChildDirents(pathSeparator, dirent);
|
|
1353
|
+
const newIndex = newDirents.indexOf(dirent);
|
|
1354
|
+
if (newIndex === -1) {
|
|
1355
|
+
continue;
|
|
1356
|
+
}
|
|
1357
|
+
newDirents.splice(newIndex + 1, 0, ...childDirents);
|
|
1358
|
+
// TODO avoid mutating state here
|
|
1359
|
+
dirent.type = DirectoryExpanded;
|
|
1360
|
+
// await expand(state, dirent.index)
|
|
1361
|
+
}
|
|
1362
|
+
}
|
|
1363
|
+
const maxLineY = getExplorerMaxLineY(minLineY, height, itemHeight, newDirents.length);
|
|
1364
|
+
return {
|
|
1365
|
+
...state,
|
|
1366
|
+
items: newDirents,
|
|
1367
|
+
maxLineY
|
|
1368
|
+
};
|
|
1369
|
+
};
|
|
1370
|
+
|
|
1371
|
+
const getParentEndIndex = (dirents, index) => {
|
|
1372
|
+
const dirent = dirents[index];
|
|
1373
|
+
let endIndex = index + 1;
|
|
1374
|
+
while (endIndex < dirents.length && dirents[endIndex].depth > dirent.depth) {
|
|
1375
|
+
endIndex++;
|
|
1376
|
+
}
|
|
1377
|
+
return endIndex;
|
|
1378
|
+
};
|
|
1379
|
+
|
|
1380
|
+
const makeExpanded = dirent => {
|
|
1381
|
+
if (dirent.type === Directory) {
|
|
1382
|
+
return {
|
|
1383
|
+
...dirent,
|
|
1384
|
+
type: DirectoryExpanded
|
|
1385
|
+
};
|
|
1386
|
+
}
|
|
1387
|
+
return dirent;
|
|
1388
|
+
};
|
|
1389
|
+
const expandRecursively = async state => {
|
|
1390
|
+
const {
|
|
1391
|
+
items,
|
|
1392
|
+
focusedIndex,
|
|
1393
|
+
pathSeparator,
|
|
1394
|
+
root,
|
|
1395
|
+
height,
|
|
1396
|
+
itemHeight,
|
|
1397
|
+
minLineY
|
|
1398
|
+
} = state;
|
|
1399
|
+
const dirent = focusedIndex < 0 ? {
|
|
1400
|
+
type: Directory,
|
|
1401
|
+
path: root,
|
|
1402
|
+
depth: 0
|
|
1403
|
+
} : items[focusedIndex];
|
|
1404
|
+
if (dirent.type !== Directory && dirent.type !== DirectoryExpanding && dirent.type !== DirectoryExpanded) {
|
|
1405
|
+
return state;
|
|
1406
|
+
}
|
|
1407
|
+
// TODO this is very inefficient
|
|
1408
|
+
const getChildDirentsRecursively = async dirent => {
|
|
1409
|
+
switch (dirent.type) {
|
|
1410
|
+
case File:
|
|
1411
|
+
return [dirent];
|
|
1412
|
+
case Directory:
|
|
1413
|
+
case DirectoryExpanding:
|
|
1414
|
+
case DirectoryExpanded:
|
|
1415
|
+
const childDirents = await getChildDirents(pathSeparator, dirent);
|
|
1416
|
+
const all = [makeExpanded(dirent)];
|
|
1417
|
+
for (const childDirent of childDirents) {
|
|
1418
|
+
const childAll = await getChildDirentsRecursively(childDirent);
|
|
1419
|
+
all.push(...childAll);
|
|
1420
|
+
}
|
|
1421
|
+
return all;
|
|
1422
|
+
default:
|
|
1423
|
+
return [];
|
|
1424
|
+
}
|
|
1425
|
+
};
|
|
1426
|
+
// TODO race condition: what if folder is being collapse while it is recursively expanding?
|
|
1427
|
+
// TODO race condition: what if folder is being deleted while it is recursively expanding?
|
|
1428
|
+
// TODO race condition: what if a new file/folder is created while the folder is recursively expanding?
|
|
1429
|
+
const childDirents = await getChildDirentsRecursively(dirent);
|
|
1430
|
+
const startIndex = focusedIndex;
|
|
1431
|
+
if (focusedIndex >= 0) {
|
|
1432
|
+
const endIndex = getParentEndIndex(items, focusedIndex);
|
|
1433
|
+
const newDirents = [...items.slice(0, startIndex), ...childDirents, ...items.slice(endIndex)];
|
|
1434
|
+
const maxLineY = getExplorerMaxLineY(minLineY, height, itemHeight, newDirents.length);
|
|
1435
|
+
return {
|
|
1436
|
+
...state,
|
|
1437
|
+
items: newDirents,
|
|
1438
|
+
maxLineY
|
|
1439
|
+
};
|
|
1440
|
+
}
|
|
1441
|
+
const newDirents = childDirents.slice(1);
|
|
1442
|
+
const maxLineY = getExplorerMaxLineY(minLineY, height, itemHeight, newDirents.length);
|
|
1443
|
+
return {
|
|
1444
|
+
...state,
|
|
1445
|
+
items: newDirents,
|
|
1446
|
+
maxLineY
|
|
1447
|
+
};
|
|
1448
|
+
};
|
|
1449
|
+
|
|
1450
|
+
const focusIndex = (state, index) => {
|
|
1451
|
+
const {
|
|
1452
|
+
minLineY,
|
|
1453
|
+
maxLineY
|
|
1454
|
+
} = state;
|
|
1455
|
+
if (index < minLineY) {
|
|
1456
|
+
if (index < 0) {
|
|
1457
|
+
return {
|
|
1458
|
+
...state,
|
|
1459
|
+
focusedIndex: index,
|
|
1460
|
+
focused: true
|
|
1461
|
+
};
|
|
1462
|
+
}
|
|
1463
|
+
const diff = maxLineY - minLineY;
|
|
1464
|
+
return {
|
|
1465
|
+
...state,
|
|
1466
|
+
focusedIndex: index,
|
|
1467
|
+
focused: true,
|
|
1468
|
+
minLineY: index,
|
|
1469
|
+
maxLineY: index + diff
|
|
1470
|
+
};
|
|
1471
|
+
}
|
|
1472
|
+
if (index >= maxLineY) {
|
|
1473
|
+
const diff = maxLineY - minLineY;
|
|
1474
|
+
return {
|
|
1475
|
+
...state,
|
|
1476
|
+
focusedIndex: index,
|
|
1477
|
+
focused: true,
|
|
1478
|
+
minLineY: index + 1 - diff,
|
|
1479
|
+
maxLineY: index + 1
|
|
1480
|
+
};
|
|
1481
|
+
}
|
|
1482
|
+
return {
|
|
1483
|
+
...state,
|
|
1484
|
+
focusedIndex: index,
|
|
1485
|
+
focused: true
|
|
1486
|
+
};
|
|
1487
|
+
};
|
|
1488
|
+
|
|
1489
|
+
const focusFirst = state => {
|
|
1490
|
+
const {
|
|
1491
|
+
focusedIndex,
|
|
1492
|
+
items
|
|
1493
|
+
} = state;
|
|
1494
|
+
if (items.length === 0 || focusedIndex === 0) {
|
|
1495
|
+
return state;
|
|
1496
|
+
}
|
|
1497
|
+
return focusIndex(state, 0);
|
|
1498
|
+
};
|
|
1499
|
+
|
|
1500
|
+
const lastIndex = array => {
|
|
1501
|
+
return array.length - 1;
|
|
1502
|
+
};
|
|
1503
|
+
|
|
1504
|
+
const focusLast = state => {
|
|
1505
|
+
const {
|
|
1506
|
+
focusedIndex,
|
|
1507
|
+
items
|
|
1508
|
+
} = state;
|
|
1509
|
+
const lastIndex$1 = lastIndex(items);
|
|
1510
|
+
if (items.length === 0 || focusedIndex === lastIndex$1) {
|
|
1511
|
+
return state;
|
|
1512
|
+
}
|
|
1513
|
+
return focusIndex(state, lastIndex$1);
|
|
1514
|
+
};
|
|
1515
|
+
|
|
1516
|
+
const focusNext = state => {
|
|
1517
|
+
const {
|
|
1518
|
+
focusedIndex,
|
|
1519
|
+
items
|
|
1520
|
+
} = state;
|
|
1521
|
+
if (focusedIndex === lastIndex(items)) {
|
|
1522
|
+
return state;
|
|
1523
|
+
}
|
|
1524
|
+
return focusIndex(state, focusedIndex + 1);
|
|
1525
|
+
};
|
|
1526
|
+
|
|
1527
|
+
const focusPrevious = state => {
|
|
1528
|
+
const {
|
|
1529
|
+
focusedIndex,
|
|
1530
|
+
items
|
|
1531
|
+
} = state;
|
|
1532
|
+
switch (focusedIndex) {
|
|
1533
|
+
case -1:
|
|
1534
|
+
if (items.length === 0) {
|
|
1535
|
+
return state;
|
|
1536
|
+
}
|
|
1537
|
+
return focusIndex(state, lastIndex(items));
|
|
1538
|
+
case 0:
|
|
1539
|
+
return state;
|
|
1540
|
+
default:
|
|
1541
|
+
return focusIndex(state, focusedIndex - 1);
|
|
1542
|
+
}
|
|
1543
|
+
};
|
|
1544
|
+
|
|
1545
|
+
const None$2 = 'none';
|
|
1546
|
+
const Tree = 'tree';
|
|
1547
|
+
const TreeItem$1 = 'treeitem';
|
|
1548
|
+
|
|
1549
|
+
const Button$1 = 'Button';
|
|
1550
|
+
const ButtonPrimary = 'ButtonPrimary';
|
|
1551
|
+
const Explorer$1 = 'Explorer';
|
|
1552
|
+
const FileIcon = 'FileIcon';
|
|
1553
|
+
const InputBox = 'InputBox';
|
|
1554
|
+
const Label = 'Label';
|
|
1555
|
+
const TreeItem = 'TreeItem';
|
|
1556
|
+
const TreeItemActive = 'TreeItemActive';
|
|
1557
|
+
const Viewlet = 'Viewlet';
|
|
1558
|
+
const Welcome = 'Welcome';
|
|
1559
|
+
const WelcomeMessage = 'WelcomeMessage';
|
|
1560
|
+
|
|
1561
|
+
const HandleBlur = 'handleBlur';
|
|
1562
|
+
const HandleClick = 'handleClick';
|
|
1563
|
+
const handleClickOpenFolder$1 = 'handleClickOpenFolder';
|
|
1564
|
+
const HandleContextMenu = 'handleContextMenu';
|
|
1565
|
+
const HandleFocus = 'handleFocus';
|
|
1566
|
+
const HandlePointerDown = 'handlePointerDown';
|
|
1567
|
+
const HandleWheel = 'handleWheel';
|
|
1568
|
+
|
|
1569
|
+
const emptyObject = {};
|
|
1570
|
+
const RE_PLACEHOLDER = /\{(PH\d+)\}/g;
|
|
1571
|
+
const i18nString = (key, placeholders = emptyObject) => {
|
|
1572
|
+
if (placeholders === emptyObject) {
|
|
1573
|
+
return key;
|
|
1574
|
+
}
|
|
1575
|
+
const replacer = (match, rest) => {
|
|
1576
|
+
return placeholders[rest];
|
|
1577
|
+
};
|
|
1578
|
+
return key.replaceAll(RE_PLACEHOLDER, replacer);
|
|
1579
|
+
};
|
|
1580
|
+
|
|
1581
|
+
/**
|
|
1582
|
+
* @enum {string}
|
|
1583
|
+
*/
|
|
1584
|
+
const UiStrings = {
|
|
1585
|
+
NewFile: 'New File...',
|
|
1586
|
+
NewFolder: 'New Folder...',
|
|
1587
|
+
OpenContainingFolder: 'Open Containing Folder',
|
|
1588
|
+
OpenInIntegratedTerminal: 'Open in integrated Terminal',
|
|
1589
|
+
Cut: 'Cut',
|
|
1590
|
+
Copy: 'Copy',
|
|
1591
|
+
Paste: 'Paste',
|
|
1592
|
+
CopyPath: 'Copy Path',
|
|
1593
|
+
CopyRelativePath: 'Copy Relative Path',
|
|
1594
|
+
Rename: 'Rename',
|
|
1595
|
+
Delete: 'Delete',
|
|
1596
|
+
RefreshExplorer: 'Refresh Explorer',
|
|
1597
|
+
CollapseAllFoldersInExplorer: 'Collapse All Folders in Explorer',
|
|
1598
|
+
Explorer: 'Explorer',
|
|
1599
|
+
FilesExplorer: 'Files Explorer',
|
|
1600
|
+
YouHaveNotYetOpenedAFolder: 'You have not yet opened a folder',
|
|
1601
|
+
OpenFolder: 'Open folder',
|
|
1602
|
+
NoFolderOpen: 'No Folder Open'
|
|
1603
|
+
};
|
|
1604
|
+
const newFile = () => {
|
|
1605
|
+
return i18nString(UiStrings.NewFile);
|
|
1606
|
+
};
|
|
1607
|
+
const newFolder = () => {
|
|
1608
|
+
return i18nString(UiStrings.NewFolder);
|
|
1609
|
+
};
|
|
1610
|
+
const openContainingFolder$1 = () => {
|
|
1611
|
+
return i18nString(UiStrings.OpenContainingFolder);
|
|
1612
|
+
};
|
|
1613
|
+
const openInIntegratedTerminal = () => {
|
|
1614
|
+
return i18nString(UiStrings.OpenInIntegratedTerminal);
|
|
1615
|
+
};
|
|
1616
|
+
const cut = () => {
|
|
1617
|
+
return i18nString(UiStrings.Cut);
|
|
1618
|
+
};
|
|
1619
|
+
const copy = () => {
|
|
1620
|
+
return i18nString(UiStrings.Copy);
|
|
1621
|
+
};
|
|
1622
|
+
const paste = () => {
|
|
1623
|
+
return i18nString(UiStrings.Paste);
|
|
1624
|
+
};
|
|
1625
|
+
const copyPath = () => {
|
|
1626
|
+
return i18nString(UiStrings.CopyPath);
|
|
1627
|
+
};
|
|
1628
|
+
const copyRelativePath = () => {
|
|
1629
|
+
return i18nString(UiStrings.CopyRelativePath);
|
|
1630
|
+
};
|
|
1631
|
+
const rename = () => {
|
|
1632
|
+
return i18nString(UiStrings.Rename);
|
|
1633
|
+
};
|
|
1634
|
+
const deleteItem = () => {
|
|
1635
|
+
return i18nString(UiStrings.Delete);
|
|
1636
|
+
};
|
|
1637
|
+
const filesExplorer = () => {
|
|
1638
|
+
return i18nString(UiStrings.FilesExplorer);
|
|
1639
|
+
};
|
|
1640
|
+
const youHaveNotYetOpenedAFolder = () => {
|
|
1641
|
+
return i18nString(UiStrings.YouHaveNotYetOpenedAFolder);
|
|
1642
|
+
};
|
|
1643
|
+
const openFolder$1 = () => {
|
|
1644
|
+
return i18nString(UiStrings.OpenFolder);
|
|
1645
|
+
};
|
|
1646
|
+
|
|
1647
|
+
const Button = 1;
|
|
1648
|
+
const Div = 4;
|
|
1649
|
+
const Input = 6;
|
|
1650
|
+
const Text = 12;
|
|
1651
|
+
const Img = 17;
|
|
1652
|
+
const P = 50;
|
|
1653
|
+
|
|
1654
|
+
const getFileIconVirtualDom = icon => {
|
|
1655
|
+
return {
|
|
1656
|
+
type: Img,
|
|
1657
|
+
className: FileIcon,
|
|
1658
|
+
src: icon,
|
|
1659
|
+
role: None$2,
|
|
1660
|
+
childCount: 0
|
|
1661
|
+
};
|
|
1662
|
+
};
|
|
1663
|
+
|
|
1664
|
+
const defaultIndent = 1;
|
|
1665
|
+
const getTreeItemIndent = depth => {
|
|
1666
|
+
return `${depth * defaultIndent}rem`;
|
|
1667
|
+
};
|
|
1668
|
+
|
|
1669
|
+
const ExplorerInput = 'ExploreerInput';
|
|
1670
|
+
|
|
1671
|
+
const text = data => {
|
|
1672
|
+
return {
|
|
1673
|
+
type: Text,
|
|
1674
|
+
text: data,
|
|
1675
|
+
childCount: 0
|
|
1676
|
+
};
|
|
1677
|
+
};
|
|
1678
|
+
|
|
1679
|
+
const getItemVirtualDomFile = item => {
|
|
1680
|
+
const {
|
|
1681
|
+
posInSet,
|
|
1682
|
+
setSize,
|
|
1683
|
+
icon,
|
|
1684
|
+
name,
|
|
1685
|
+
path,
|
|
1686
|
+
depth,
|
|
1687
|
+
isFocused,
|
|
1688
|
+
isEditing
|
|
1689
|
+
} = item;
|
|
1690
|
+
const dom = [];
|
|
1691
|
+
dom.push({
|
|
1692
|
+
type: Div,
|
|
1693
|
+
role: TreeItem$1,
|
|
1694
|
+
className: TreeItem,
|
|
1695
|
+
draggable: true,
|
|
1696
|
+
title: path,
|
|
1697
|
+
ariaPosInSet: posInSet,
|
|
1698
|
+
ariaSetSize: setSize,
|
|
1699
|
+
ariaLevel: depth,
|
|
1700
|
+
childCount: 2,
|
|
1701
|
+
paddingLeft: getTreeItemIndent(depth),
|
|
1702
|
+
ariaLabel: name,
|
|
1703
|
+
ariaDescription: ''
|
|
1704
|
+
}, getFileIconVirtualDom(icon));
|
|
1705
|
+
if (isEditing) {
|
|
1706
|
+
dom.push({
|
|
1707
|
+
type: Input,
|
|
1708
|
+
className: InputBox,
|
|
1709
|
+
id: 'ExplorerInput',
|
|
1710
|
+
onInput: 'handleEditingInput',
|
|
1711
|
+
childCount: 0,
|
|
1712
|
+
name: ExplorerInput
|
|
1713
|
+
});
|
|
1714
|
+
} else {
|
|
1715
|
+
dom.push({
|
|
1716
|
+
type: Div,
|
|
1717
|
+
className: Label,
|
|
1718
|
+
childCount: 1
|
|
1719
|
+
}, text(name));
|
|
1720
|
+
}
|
|
1721
|
+
if (isFocused) {
|
|
1722
|
+
// @ts-ignore
|
|
1723
|
+
dom[0].id = 'TreeItemActive';
|
|
1724
|
+
// @ts-ignore
|
|
1725
|
+
dom[0].className += ' ' + TreeItemActive;
|
|
1726
|
+
}
|
|
1727
|
+
return dom;
|
|
1728
|
+
};
|
|
1729
|
+
const getItemVirtualDomFolder = item => {
|
|
1730
|
+
const {
|
|
1731
|
+
posInSet,
|
|
1732
|
+
setSize,
|
|
1733
|
+
icon,
|
|
1734
|
+
name,
|
|
1735
|
+
path,
|
|
1736
|
+
depth,
|
|
1737
|
+
type,
|
|
1738
|
+
isFocused
|
|
1739
|
+
} = item;
|
|
1740
|
+
let ariaExpanded = '';
|
|
1741
|
+
switch (type) {
|
|
1742
|
+
// TODO decide on directory vs folder
|
|
1743
|
+
case Directory:
|
|
1744
|
+
ariaExpanded = 'false';
|
|
1745
|
+
break;
|
|
1746
|
+
case DirectoryExpanding:
|
|
1747
|
+
ariaExpanded = 'true'; // TODO tree should be aria-busy then
|
|
1748
|
+
break;
|
|
1749
|
+
case DirectoryExpanded:
|
|
1750
|
+
ariaExpanded = 'true';
|
|
1751
|
+
break;
|
|
1752
|
+
}
|
|
1753
|
+
const dom = [];
|
|
1754
|
+
dom.push({
|
|
1755
|
+
type: Div,
|
|
1756
|
+
role: TreeItem$1,
|
|
1757
|
+
className: TreeItem,
|
|
1758
|
+
draggable: true,
|
|
1759
|
+
title: path,
|
|
1760
|
+
ariaPosInSet: posInSet,
|
|
1761
|
+
ariaSetSize: setSize,
|
|
1762
|
+
ariaLevel: depth,
|
|
1763
|
+
childCount: 2,
|
|
1764
|
+
paddingLeft: getTreeItemIndent(depth),
|
|
1765
|
+
ariaLabel: name,
|
|
1766
|
+
ariaExpanded,
|
|
1767
|
+
ariaDescription: ''
|
|
1768
|
+
});
|
|
1769
|
+
dom.push(getFileIconVirtualDom(icon), {
|
|
1770
|
+
type: Div,
|
|
1771
|
+
className: Label,
|
|
1772
|
+
childCount: 1
|
|
1773
|
+
}, text(name));
|
|
1774
|
+
if (isFocused) {
|
|
1775
|
+
// @ts-ignore
|
|
1776
|
+
dom[0].id = 'TreeItemActive';
|
|
1777
|
+
}
|
|
1778
|
+
return dom;
|
|
1779
|
+
};
|
|
1780
|
+
const getExplorerItemVirtualDom = item => {
|
|
1781
|
+
const {
|
|
1782
|
+
type
|
|
1783
|
+
} = item;
|
|
1784
|
+
switch (type) {
|
|
1785
|
+
case Directory:
|
|
1786
|
+
case DirectoryExpanding:
|
|
1787
|
+
case DirectoryExpanded:
|
|
1788
|
+
return getItemVirtualDomFolder(item);
|
|
1789
|
+
default:
|
|
1790
|
+
return getItemVirtualDomFile(item);
|
|
1791
|
+
}
|
|
1792
|
+
};
|
|
1793
|
+
|
|
1794
|
+
const mergeClassNames = (...classNames) => {
|
|
1795
|
+
return classNames.filter(Boolean).join(' ');
|
|
1796
|
+
};
|
|
1797
|
+
|
|
1798
|
+
const getExplorerWelcomeVirtualDom = isWide => {
|
|
1799
|
+
return [{
|
|
1800
|
+
type: Div,
|
|
1801
|
+
className: mergeClassNames(Viewlet, Explorer$1),
|
|
1802
|
+
tabIndex: 0,
|
|
1803
|
+
childCount: 1
|
|
1804
|
+
}, {
|
|
1805
|
+
type: Div,
|
|
1806
|
+
className: Welcome,
|
|
1807
|
+
childCount: 2
|
|
1808
|
+
}, {
|
|
1809
|
+
type: P,
|
|
1810
|
+
className: WelcomeMessage,
|
|
1811
|
+
childCount: 1
|
|
1812
|
+
}, text(youHaveNotYetOpenedAFolder()), {
|
|
1813
|
+
type: Button,
|
|
1814
|
+
className: mergeClassNames(Button$1, ButtonPrimary, isWide ? 'ButtonWide' : 'ButtonNarrow'),
|
|
1815
|
+
childCount: 1,
|
|
1816
|
+
onClick: handleClickOpenFolder$1
|
|
1817
|
+
}, text(openFolder$1())];
|
|
1818
|
+
};
|
|
1819
|
+
|
|
1820
|
+
const getExplorerVirtualDom = (visibleItems, focusedIndex, root, isWide) => {
|
|
1821
|
+
if (!root) {
|
|
1822
|
+
return getExplorerWelcomeVirtualDom(isWide);
|
|
1823
|
+
}
|
|
1824
|
+
const dom = [];
|
|
1825
|
+
dom.push({
|
|
1826
|
+
type: Div,
|
|
1827
|
+
className: mergeClassNames(Viewlet, Explorer$1),
|
|
1828
|
+
tabIndex: 0,
|
|
1829
|
+
role: Tree,
|
|
1830
|
+
ariaLabel: filesExplorer(),
|
|
1831
|
+
childCount: visibleItems.length,
|
|
1832
|
+
ariaActiveDescendant: focusedIndex >= 0 ? 'TreeItemActive' : undefined,
|
|
1833
|
+
onFocus: HandleFocus,
|
|
1834
|
+
onBlur: HandleBlur,
|
|
1835
|
+
onContextMenu: HandleContextMenu,
|
|
1836
|
+
onPointerDown: HandlePointerDown,
|
|
1837
|
+
onWheel: HandleWheel,
|
|
1838
|
+
onClick: HandleClick
|
|
1839
|
+
});
|
|
1840
|
+
dom.push(...visibleItems.flatMap(getExplorerItemVirtualDom));
|
|
1841
|
+
return dom;
|
|
1842
|
+
};
|
|
1843
|
+
|
|
1844
|
+
const Enter = 3;
|
|
1845
|
+
const Escape = 8;
|
|
1846
|
+
const Space = 9;
|
|
1847
|
+
const End = 255;
|
|
1848
|
+
const Home = 12;
|
|
1849
|
+
const LeftArrow = 13;
|
|
1850
|
+
const UpArrow = 14;
|
|
1851
|
+
const RightArrow = 15;
|
|
1852
|
+
const DownArrow = 16;
|
|
1853
|
+
const Delete = 18;
|
|
1854
|
+
const KeyC = 31;
|
|
1855
|
+
const KeyV = 50;
|
|
1856
|
+
const F2 = 58;
|
|
1857
|
+
const Star = 131;
|
|
1858
|
+
|
|
1859
|
+
const CtrlCmd = 1 << 11 >>> 0;
|
|
1860
|
+
const Alt = 1 << 9 >>> 0;
|
|
1861
|
+
|
|
1862
|
+
const FocusExplorer = 13;
|
|
1863
|
+
const FocusExplorerEditBox = 14;
|
|
1864
|
+
|
|
1865
|
+
const getKeyBindings = () => {
|
|
1866
|
+
return [{
|
|
1867
|
+
key: RightArrow,
|
|
1868
|
+
command: 'Explorer.handleArrowRight',
|
|
1869
|
+
when: FocusExplorer
|
|
1870
|
+
}, {
|
|
1871
|
+
key: LeftArrow,
|
|
1872
|
+
command: 'Explorer.handleArrowLeft',
|
|
1873
|
+
when: FocusExplorer
|
|
1874
|
+
}, {
|
|
1875
|
+
key: Home,
|
|
1876
|
+
command: 'Explorer.focusFirst',
|
|
1877
|
+
when: FocusExplorer
|
|
1878
|
+
}, {
|
|
1879
|
+
key: End,
|
|
1880
|
+
command: 'Explorer.focusLast',
|
|
1881
|
+
when: FocusExplorer
|
|
1882
|
+
}, {
|
|
1883
|
+
key: UpArrow,
|
|
1884
|
+
command: 'Explorer.focusPrevious',
|
|
1885
|
+
when: FocusExplorer
|
|
1886
|
+
}, {
|
|
1887
|
+
key: DownArrow,
|
|
1888
|
+
command: 'Explorer.focusNext',
|
|
1889
|
+
when: FocusExplorer
|
|
1890
|
+
}, {
|
|
1891
|
+
key: CtrlCmd | Star,
|
|
1892
|
+
command: 'Explorer.expandAll',
|
|
1893
|
+
when: FocusExplorer
|
|
1894
|
+
}, {
|
|
1895
|
+
key: Alt | RightArrow,
|
|
1896
|
+
command: 'Explorer.expandRecursively',
|
|
1897
|
+
when: FocusExplorer
|
|
1898
|
+
}, {
|
|
1899
|
+
key: CtrlCmd | LeftArrow,
|
|
1900
|
+
command: 'Explorer.collapseAll',
|
|
1901
|
+
when: FocusExplorer
|
|
1902
|
+
}, {
|
|
1903
|
+
key: CtrlCmd | KeyV,
|
|
1904
|
+
command: 'Explorer.handlePaste',
|
|
1905
|
+
when: FocusExplorer
|
|
1906
|
+
}, {
|
|
1907
|
+
key: CtrlCmd | KeyC,
|
|
1908
|
+
command: 'Explorer.handleCopy',
|
|
1909
|
+
when: FocusExplorer
|
|
1910
|
+
}, {
|
|
1911
|
+
key: F2,
|
|
1912
|
+
command: 'Explorer.rename',
|
|
1913
|
+
when: FocusExplorer
|
|
1914
|
+
}, {
|
|
1915
|
+
key: Escape,
|
|
1916
|
+
command: 'Explorer.cancelEdit',
|
|
1917
|
+
when: FocusExplorerEditBox
|
|
1918
|
+
}, {
|
|
1919
|
+
key: Enter,
|
|
1920
|
+
command: 'Explorer.acceptEdit',
|
|
1921
|
+
when: FocusExplorerEditBox
|
|
1922
|
+
}, {
|
|
1923
|
+
key: Delete,
|
|
1924
|
+
command: 'Explorer.removeDirent',
|
|
1925
|
+
when: FocusExplorer
|
|
1926
|
+
}, {
|
|
1927
|
+
key: Escape,
|
|
1928
|
+
command: 'Explorer.focusNone',
|
|
1929
|
+
when: FocusExplorer
|
|
1930
|
+
}, {
|
|
1931
|
+
key: Space,
|
|
1932
|
+
command: 'Explorer.handleClickCurrentButKeepFocus',
|
|
1933
|
+
when: FocusExplorer
|
|
1934
|
+
}, {
|
|
1935
|
+
key: Enter,
|
|
1936
|
+
command: 'Explorer.handleClickCurrent',
|
|
1937
|
+
when: FocusExplorer
|
|
1938
|
+
}];
|
|
1939
|
+
};
|
|
1940
|
+
|
|
1941
|
+
const Separator = 1;
|
|
1942
|
+
const None$1 = 0;
|
|
1943
|
+
const RestoreFocus = 6;
|
|
1944
|
+
|
|
1945
|
+
const menuEntrySeparator = {
|
|
1946
|
+
id: 'separator',
|
|
1947
|
+
label: '',
|
|
1948
|
+
flags: Separator,
|
|
1949
|
+
command: ''
|
|
1950
|
+
};
|
|
1951
|
+
|
|
1952
|
+
const menuEntryNewFile = {
|
|
1953
|
+
id: 'newFile',
|
|
1954
|
+
label: newFile(),
|
|
1955
|
+
flags: None$1,
|
|
1956
|
+
command: 'Explorer.newFile'
|
|
1957
|
+
};
|
|
1958
|
+
const menuEntryNewFolder = {
|
|
1959
|
+
id: 'newFolder',
|
|
1960
|
+
label: newFolder(),
|
|
1961
|
+
flags: None$1,
|
|
1962
|
+
command: 'Explorer.newFolder'
|
|
1963
|
+
};
|
|
1964
|
+
const menuEntryOpenContainingFolder = {
|
|
1965
|
+
id: 'openContainingFolder',
|
|
1966
|
+
label: openContainingFolder$1(),
|
|
1967
|
+
flags: RestoreFocus,
|
|
1968
|
+
command: 'Explorer.openContainingFolder'
|
|
1969
|
+
};
|
|
1970
|
+
const menuEntryOpenInIntegratedTerminal = {
|
|
1971
|
+
id: 'openInIntegratedTerminal',
|
|
1972
|
+
label: openInIntegratedTerminal(),
|
|
1973
|
+
flags: None$1,
|
|
1974
|
+
command: /* TODO */-1
|
|
1975
|
+
};
|
|
1976
|
+
const menuEntryCut = {
|
|
1977
|
+
id: 'cut',
|
|
1978
|
+
label: cut(),
|
|
1979
|
+
flags: RestoreFocus,
|
|
1980
|
+
command: /* TODO */-1
|
|
1981
|
+
};
|
|
1982
|
+
const menuEntryCopy = {
|
|
1983
|
+
id: 'copy',
|
|
1984
|
+
label: copy(),
|
|
1985
|
+
flags: RestoreFocus,
|
|
1986
|
+
command: 'Explorer.handleCopy'
|
|
1987
|
+
};
|
|
1988
|
+
const menuEntryPaste = {
|
|
1989
|
+
id: 'paste',
|
|
1990
|
+
label: paste(),
|
|
1991
|
+
flags: None$1,
|
|
1992
|
+
command: 'Explorer.handlePaste'
|
|
1993
|
+
};
|
|
1994
|
+
const menuEntryCopyPath = {
|
|
1995
|
+
id: 'copyPath',
|
|
1996
|
+
label: copyPath(),
|
|
1997
|
+
flags: RestoreFocus,
|
|
1998
|
+
command: 'Explorer.copyPath'
|
|
1999
|
+
};
|
|
2000
|
+
const menuEntryCopyRelativePath = {
|
|
2001
|
+
id: 'copyRelativePath',
|
|
2002
|
+
label: copyRelativePath(),
|
|
2003
|
+
flags: RestoreFocus,
|
|
2004
|
+
command: 'Explorer.copyRelativePath'
|
|
2005
|
+
};
|
|
2006
|
+
const menuEntryRename = {
|
|
2007
|
+
id: 'rename',
|
|
2008
|
+
label: rename(),
|
|
2009
|
+
flags: None$1,
|
|
2010
|
+
command: 'Explorer.renameDirent'
|
|
2011
|
+
};
|
|
2012
|
+
const menuEntryDelete = {
|
|
2013
|
+
id: 'delete',
|
|
2014
|
+
label: deleteItem(),
|
|
2015
|
+
flags: None$1,
|
|
2016
|
+
command: 'Explorer.removeDirent'
|
|
2017
|
+
};
|
|
2018
|
+
const ALL_ENTRIES = [menuEntryNewFile, menuEntryNewFolder, menuEntryOpenContainingFolder, menuEntryOpenInIntegratedTerminal, menuEntrySeparator, menuEntryCut, menuEntryCopy, menuEntryPaste, menuEntrySeparator, menuEntryCopyPath, menuEntryCopyRelativePath, menuEntrySeparator, menuEntryRename, menuEntryDelete];
|
|
2019
|
+
|
|
2020
|
+
// TODO there are two possible ways of getting the focused dirent of explorer
|
|
2021
|
+
// 1. directly access state of explorer (bad because it directly accesses state of another component)
|
|
2022
|
+
// 2. expose getFocusedDirent method in explorer (bad because explorer code should not know about for menuEntriesExplorer, which needs that method)
|
|
2023
|
+
const getFocusedDirent = explorerState => {
|
|
2024
|
+
if (!explorerState || explorerState.focusedIndex < 0) {
|
|
2025
|
+
return undefined;
|
|
2026
|
+
}
|
|
2027
|
+
return explorerState.items[explorerState.focusedIndex];
|
|
2028
|
+
};
|
|
2029
|
+
const getMenuEntriesDirectory = () => {
|
|
2030
|
+
return ALL_ENTRIES;
|
|
2031
|
+
};
|
|
2032
|
+
const getMenuEntriesFile = () => {
|
|
2033
|
+
return [menuEntryOpenContainingFolder, menuEntryOpenInIntegratedTerminal, menuEntrySeparator, menuEntryCut, menuEntryCopy, menuEntryPaste, menuEntrySeparator, menuEntryCopyPath, menuEntryCopyRelativePath, menuEntrySeparator, menuEntryRename, menuEntryDelete];
|
|
2034
|
+
};
|
|
2035
|
+
const getMenuEntriesDefault = () => {
|
|
2036
|
+
return ALL_ENTRIES;
|
|
2037
|
+
};
|
|
2038
|
+
const getMenuEntriesRoot = () => {
|
|
2039
|
+
return [menuEntryNewFile, menuEntryNewFolder, menuEntryOpenContainingFolder, menuEntryOpenInIntegratedTerminal, menuEntrySeparator, menuEntryPaste, menuEntrySeparator, menuEntryCopyPath, menuEntryCopyRelativePath];
|
|
2040
|
+
};
|
|
2041
|
+
const getMenuEntries = state => {
|
|
2042
|
+
const focusedDirent = getFocusedDirent(state);
|
|
2043
|
+
if (!focusedDirent) {
|
|
2044
|
+
return getMenuEntriesRoot();
|
|
2045
|
+
}
|
|
2046
|
+
switch (focusedDirent.type) {
|
|
2047
|
+
case Directory:
|
|
2048
|
+
return getMenuEntriesDirectory();
|
|
2049
|
+
case File:
|
|
2050
|
+
return getMenuEntriesFile();
|
|
2051
|
+
default:
|
|
2052
|
+
return getMenuEntriesDefault();
|
|
2053
|
+
}
|
|
2054
|
+
};
|
|
2055
|
+
|
|
2056
|
+
const getVisibleExplorerItems = (items, minLineY, maxLineY, focusedIndex, editingIndex, editingType, editingValue) => {
|
|
2057
|
+
const visible = [];
|
|
2058
|
+
for (let i = minLineY; i < Math.min(maxLineY, items.length); i++) {
|
|
2059
|
+
const item = items[i];
|
|
2060
|
+
if (i === editingIndex) {
|
|
2061
|
+
visible.push({
|
|
2062
|
+
...item,
|
|
2063
|
+
isFocused: i === focusedIndex,
|
|
2064
|
+
isEditing: true,
|
|
2065
|
+
icon: getFileIcon({
|
|
2066
|
+
name: editingValue
|
|
2067
|
+
})
|
|
2068
|
+
});
|
|
2069
|
+
} else {
|
|
2070
|
+
visible.push({
|
|
2071
|
+
...item,
|
|
2072
|
+
isFocused: i === focusedIndex
|
|
2073
|
+
});
|
|
2074
|
+
}
|
|
2075
|
+
}
|
|
2076
|
+
if (editingType !== None$3 && editingIndex === -1) {
|
|
2077
|
+
visible.push({
|
|
2078
|
+
depth: 3,
|
|
2079
|
+
posInSet: 1,
|
|
2080
|
+
setSize: 1,
|
|
2081
|
+
icon: '',
|
|
2082
|
+
isFocused: false,
|
|
2083
|
+
name: 'new',
|
|
2084
|
+
path: '/test/new',
|
|
2085
|
+
type: 2,
|
|
2086
|
+
isEditing: true
|
|
2087
|
+
});
|
|
2088
|
+
}
|
|
2089
|
+
return visible;
|
|
2090
|
+
};
|
|
2091
|
+
|
|
2092
|
+
const handleBlur = state => {
|
|
2093
|
+
// TODO when blur event occurs because of context menu, focused index should stay the same
|
|
2094
|
+
// but focus outline should be removed
|
|
2095
|
+
const {
|
|
2096
|
+
editingType
|
|
2097
|
+
} = state;
|
|
2098
|
+
if (editingType !== None$3) {
|
|
2099
|
+
return state;
|
|
2100
|
+
}
|
|
2101
|
+
return {
|
|
2102
|
+
...state,
|
|
2103
|
+
focused: false
|
|
2104
|
+
};
|
|
2105
|
+
};
|
|
2106
|
+
|
|
2107
|
+
// TODO viewlet should only have create and refresh functions
|
|
2108
|
+
// every thing else can be in a separate module <viewlet>.lazy.js
|
|
2109
|
+
// and <viewlet>.ipc.js
|
|
2110
|
+
|
|
2111
|
+
// viewlet: creating | refreshing | done | disposed
|
|
2112
|
+
// TODO recycle viewlets (maybe)
|
|
2113
|
+
|
|
2114
|
+
// TODO instead of root string, there should be a root dirent
|
|
2115
|
+
|
|
2116
|
+
// TODO rename dirents to items, then can use virtual list component directly
|
|
2117
|
+
|
|
2118
|
+
// TODO support multiselection and removing multiple dirents
|
|
2119
|
+
|
|
2120
|
+
// TODO use posInSet and setSize properties to compute more effectively
|
|
2121
|
+
|
|
2122
|
+
// TODO much shared logic with newFolder
|
|
2123
|
+
|
|
2124
|
+
const handleClickFile$1 = async (state, dirent, index, keepFocus = false) => {
|
|
2125
|
+
// await Command.execute(/* Main.openAbsolutePath */ 'Main.openUri', /* absolutePath */ dirent.path, /* focus */ !keepFocus)
|
|
2126
|
+
return {
|
|
2127
|
+
...state,
|
|
2128
|
+
focusedIndex: index,
|
|
2129
|
+
focused: keepFocus
|
|
2130
|
+
};
|
|
2131
|
+
};
|
|
2132
|
+
const handleClickDirectory$1 = async (state, dirent, index, keepFocus) => {
|
|
2133
|
+
dirent.type = DirectoryExpanding;
|
|
2134
|
+
// TODO handle error
|
|
2135
|
+
const dirents = await getChildDirents(state.pathSeparator, dirent);
|
|
2136
|
+
const state2 = {};
|
|
2137
|
+
if (!state2) {
|
|
2138
|
+
return state;
|
|
2139
|
+
}
|
|
2140
|
+
// TODO use Viewlet.getState here and check if it exists
|
|
2141
|
+
const newIndex = state2.items.indexOf(dirent);
|
|
2142
|
+
// TODO if viewlet is disposed or root has changed, return
|
|
2143
|
+
if (newIndex === -1) {
|
|
2144
|
+
return state;
|
|
2145
|
+
}
|
|
2146
|
+
const newDirents = [...state2.items];
|
|
2147
|
+
newDirents.splice(newIndex + 1, 0, ...dirents);
|
|
2148
|
+
dirent.type = DirectoryExpanded;
|
|
2149
|
+
dirent.icon = getIcon();
|
|
2150
|
+
const {
|
|
2151
|
+
height,
|
|
2152
|
+
itemHeight,
|
|
2153
|
+
minLineY
|
|
2154
|
+
} = state2;
|
|
2155
|
+
// TODO when focused index has changed while expanding, don't update it
|
|
2156
|
+
const maxLineY = getExplorerMaxLineY(minLineY, height, itemHeight, newDirents.length);
|
|
2157
|
+
return {
|
|
2158
|
+
...state,
|
|
2159
|
+
items: newDirents,
|
|
2160
|
+
focusedIndex: newIndex,
|
|
2161
|
+
focused: keepFocus,
|
|
2162
|
+
maxLineY
|
|
2163
|
+
};
|
|
2164
|
+
};
|
|
2165
|
+
const handleClickDirectoryExpanding = (state, dirent, index, keepFocus) => {
|
|
2166
|
+
dirent.type = Directory;
|
|
2167
|
+
dirent.icon = getIcon();
|
|
2168
|
+
return {
|
|
2169
|
+
...state,
|
|
2170
|
+
focusedIndex: index,
|
|
2171
|
+
focused: keepFocus
|
|
2172
|
+
};
|
|
2173
|
+
};
|
|
2174
|
+
const handleClickDirectoryExpanded$1 = (state, dirent, index, keepFocus) => {
|
|
2175
|
+
const {
|
|
2176
|
+
minLineY,
|
|
2177
|
+
maxLineY,
|
|
2178
|
+
itemHeight
|
|
2179
|
+
} = state;
|
|
2180
|
+
dirent.type = Directory;
|
|
2181
|
+
dirent.icon = getIcon();
|
|
2182
|
+
const endIndex = getParentEndIndex(state.items, index);
|
|
2183
|
+
const removeCount = endIndex - index - 1;
|
|
2184
|
+
// TODO race conditions and side effects are everywhere
|
|
2185
|
+
const newDirents = [...state.items];
|
|
2186
|
+
newDirents.splice(index + 1, removeCount);
|
|
2187
|
+
const newTotal = newDirents.length;
|
|
2188
|
+
if (newTotal < maxLineY) {
|
|
2189
|
+
const visibleItems = Math.min(maxLineY - minLineY, newTotal);
|
|
2190
|
+
const newMaxLineY = Math.min(maxLineY, newTotal);
|
|
2191
|
+
const newMinLineY = newMaxLineY - visibleItems;
|
|
2192
|
+
const deltaY = newMinLineY * itemHeight;
|
|
2193
|
+
return {
|
|
2194
|
+
...state,
|
|
2195
|
+
items: newDirents,
|
|
2196
|
+
focusedIndex: index,
|
|
2197
|
+
focused: keepFocus,
|
|
2198
|
+
minLineY: newMinLineY,
|
|
2199
|
+
maxLineY: newMaxLineY,
|
|
2200
|
+
deltaY
|
|
2201
|
+
};
|
|
2202
|
+
}
|
|
2203
|
+
return {
|
|
2204
|
+
...state,
|
|
2205
|
+
items: newDirents,
|
|
2206
|
+
focusedIndex: index,
|
|
2207
|
+
focused: keepFocus
|
|
2208
|
+
};
|
|
2209
|
+
};
|
|
2210
|
+
const handleClickSymLink$1 = async (state, dirent, index) => {
|
|
2211
|
+
await getRealPath();
|
|
2212
|
+
const type = await stat();
|
|
2213
|
+
switch (type) {
|
|
2214
|
+
case File:
|
|
2215
|
+
return handleClickFile$1(state, dirent, index);
|
|
2216
|
+
default:
|
|
2217
|
+
throw new Error(`unsupported file type ${type}`);
|
|
2218
|
+
}
|
|
2219
|
+
};
|
|
2220
|
+
const getClickFn = direntType => {
|
|
2221
|
+
switch (direntType) {
|
|
2222
|
+
case File:
|
|
2223
|
+
case SymLinkFile:
|
|
2224
|
+
return handleClickFile$1;
|
|
2225
|
+
case Directory:
|
|
2226
|
+
case SymLinkFolder:
|
|
2227
|
+
return handleClickDirectory$1;
|
|
2228
|
+
case DirectoryExpanding:
|
|
2229
|
+
return handleClickDirectoryExpanding;
|
|
2230
|
+
case DirectoryExpanded:
|
|
2231
|
+
return handleClickDirectoryExpanded$1;
|
|
2232
|
+
case Symlink:
|
|
2233
|
+
return handleClickSymLink$1;
|
|
2234
|
+
case CharacterDevice:
|
|
2235
|
+
throw new Error('Cannot open character device files');
|
|
2236
|
+
case BlockDevice:
|
|
2237
|
+
throw new Error('Cannot open block device files');
|
|
2238
|
+
case Socket:
|
|
2239
|
+
throw new Error('Cannot open socket files');
|
|
2240
|
+
default:
|
|
2241
|
+
throw new Error(`unsupported dirent type ${direntType}`);
|
|
2242
|
+
}
|
|
2243
|
+
};
|
|
2244
|
+
|
|
2245
|
+
const getIndexFromPosition = (state, eventX, eventY) => {
|
|
2246
|
+
const {
|
|
2247
|
+
y,
|
|
2248
|
+
itemHeight,
|
|
2249
|
+
items
|
|
2250
|
+
} = state;
|
|
2251
|
+
const index = Math.floor((eventY - y) / itemHeight);
|
|
2252
|
+
if (index < 0) {
|
|
2253
|
+
return 0;
|
|
2254
|
+
}
|
|
2255
|
+
if (index >= items.length) {
|
|
2256
|
+
return -1;
|
|
2257
|
+
}
|
|
2258
|
+
return index;
|
|
2259
|
+
};
|
|
2260
|
+
|
|
2261
|
+
const getParentStartIndex = (dirents, index) => {
|
|
2262
|
+
const dirent = dirents[index];
|
|
2263
|
+
let startIndex = index - 1;
|
|
2264
|
+
while (startIndex >= 0 && dirents[startIndex].depth >= dirent.depth) {
|
|
2265
|
+
startIndex--;
|
|
2266
|
+
}
|
|
2267
|
+
return startIndex;
|
|
2268
|
+
};
|
|
2269
|
+
|
|
2270
|
+
const Keyboard = -1;
|
|
2271
|
+
const LeftClick = 0;
|
|
2272
|
+
|
|
2273
|
+
const openFolder = async () => {
|
|
2274
|
+
// TODO
|
|
2275
|
+
};
|
|
2276
|
+
|
|
2277
|
+
// TODO viewlet should only have create and refresh functions
|
|
2278
|
+
// every thing else can be in a separate module <viewlet>.lazy.js
|
|
2279
|
+
// and <viewlet>.ipc.js
|
|
2280
|
+
|
|
2281
|
+
// viewlet: creating | refreshing | done | disposed
|
|
2282
|
+
// TODO recycle viewlets (maybe)
|
|
2283
|
+
|
|
2284
|
+
// TODO instead of root string, there should be a root dirent
|
|
2285
|
+
|
|
2286
|
+
const updateIcon = dirent => {
|
|
2287
|
+
return {
|
|
2288
|
+
...dirent,
|
|
2289
|
+
icon: getIcon()
|
|
2290
|
+
};
|
|
2291
|
+
};
|
|
2292
|
+
const updateIcons = state => {
|
|
2293
|
+
const newDirents = state.items.map(updateIcon);
|
|
2294
|
+
return {
|
|
2295
|
+
...state,
|
|
2296
|
+
items: newDirents
|
|
2297
|
+
};
|
|
2298
|
+
};
|
|
2299
|
+
const handleIconThemeChange = state => {
|
|
2300
|
+
return updateIcons(state);
|
|
2301
|
+
};
|
|
2302
|
+
|
|
2303
|
+
// TODO rename dirents to items, then can use virtual list component directly
|
|
2304
|
+
const setDeltaY = (state, deltaY) => {
|
|
2305
|
+
const {
|
|
2306
|
+
itemHeight,
|
|
2307
|
+
height,
|
|
2308
|
+
items
|
|
2309
|
+
} = state;
|
|
2310
|
+
if (deltaY < 0) {
|
|
2311
|
+
deltaY = 0;
|
|
2312
|
+
} else if (deltaY > items.length * itemHeight - height) {
|
|
2313
|
+
deltaY = Math.max(items.length * itemHeight - height, 0);
|
|
2314
|
+
}
|
|
2315
|
+
if (state.deltaY === deltaY) {
|
|
2316
|
+
return state;
|
|
2317
|
+
}
|
|
2318
|
+
const minLineY = Math.round(deltaY / itemHeight);
|
|
2319
|
+
const maxLineY = minLineY + Math.round(height / itemHeight);
|
|
2320
|
+
return {
|
|
2321
|
+
...state,
|
|
2322
|
+
deltaY,
|
|
2323
|
+
minLineY,
|
|
2324
|
+
maxLineY
|
|
2325
|
+
};
|
|
2326
|
+
};
|
|
2327
|
+
const handleWheel = (state, deltaMode, deltaY) => {
|
|
2328
|
+
return setDeltaY(state, state.deltaY + deltaY);
|
|
2329
|
+
};
|
|
2330
|
+
|
|
2331
|
+
// TODO support multiselection and removing multiple dirents
|
|
2332
|
+
const removeDirent = async state => {
|
|
2333
|
+
if (state.focusedIndex < 0) {
|
|
2334
|
+
return state;
|
|
2335
|
+
}
|
|
2336
|
+
const dirent = getFocusedDirent$1(state);
|
|
2337
|
+
const absolutePath = dirent.path;
|
|
2338
|
+
try {
|
|
2339
|
+
// TODO handle error
|
|
2340
|
+
await remove(absolutePath);
|
|
2341
|
+
} catch (error) {
|
|
2342
|
+
// TODO vscode shows error as alert (no stacktrace) and retry button
|
|
2343
|
+
// maybe should show alert as well, but where to put stacktrace?
|
|
2344
|
+
// on web should probably show notification (dialog)
|
|
2345
|
+
// ErrorHandling.handleError(error)
|
|
2346
|
+
// await ErrorHandling.showErrorDialog(error)
|
|
2347
|
+
return;
|
|
2348
|
+
}
|
|
2349
|
+
// TODO avoid state mutation
|
|
2350
|
+
const newVersion = ++state.version;
|
|
2351
|
+
// TODO race condition
|
|
2352
|
+
// const newState = await loadContent(state:any)
|
|
2353
|
+
if (state.version !== newVersion || state.disposed) {
|
|
2354
|
+
return state;
|
|
2355
|
+
}
|
|
2356
|
+
// TODO is it possible to make this more functional instead of mutating state?
|
|
2357
|
+
// maybe every function returns a new state?
|
|
2358
|
+
const index = state.items.indexOf(dirent);
|
|
2359
|
+
let deleteEnd = index + 1;
|
|
2360
|
+
for (; deleteEnd < state.items.length; deleteEnd++) {
|
|
2361
|
+
if (state.items[deleteEnd].depth <= dirent.depth) {
|
|
2362
|
+
break;
|
|
2363
|
+
}
|
|
2364
|
+
}
|
|
2365
|
+
const deleteCount = deleteEnd - index;
|
|
2366
|
+
const newDirents = [...state.items];
|
|
2367
|
+
newDirents.splice(index, deleteCount);
|
|
2368
|
+
let indexToFocus = -1;
|
|
2369
|
+
if (newDirents.length === 0) {
|
|
2370
|
+
indexToFocus = -1;
|
|
2371
|
+
} else if (index < state.focusedIndex) {
|
|
2372
|
+
indexToFocus = state.focusedIndex - 1;
|
|
2373
|
+
} else if (index === state.focusedIndex) {
|
|
2374
|
+
indexToFocus = Math.max(state.focusedIndex - 1, 0);
|
|
2375
|
+
} else {
|
|
2376
|
+
indexToFocus = Math.max(state.focusedIndex - 1, 0);
|
|
2377
|
+
}
|
|
2378
|
+
return {
|
|
2379
|
+
...state,
|
|
2380
|
+
items: newDirents,
|
|
2381
|
+
focusedIndex: indexToFocus
|
|
2382
|
+
};
|
|
2383
|
+
};
|
|
2384
|
+
const renameDirent = state => {
|
|
2385
|
+
const {
|
|
2386
|
+
focusedIndex,
|
|
2387
|
+
items
|
|
2388
|
+
} = state;
|
|
2389
|
+
const item = items[focusedIndex];
|
|
2390
|
+
// Focus.setFocus(FocusKey.ExplorerEditBox)
|
|
2391
|
+
return {
|
|
2392
|
+
...state,
|
|
2393
|
+
editingIndex: focusedIndex,
|
|
2394
|
+
editingType: Rename,
|
|
2395
|
+
editingValue: item.name
|
|
2396
|
+
};
|
|
2397
|
+
};
|
|
2398
|
+
|
|
2399
|
+
// TODO use posInSet and setSize properties to compute more effectively
|
|
2400
|
+
|
|
2401
|
+
const cancelEdit = state => {
|
|
2402
|
+
const {
|
|
2403
|
+
editingIndex
|
|
2404
|
+
} = state;
|
|
2405
|
+
return {
|
|
2406
|
+
...state,
|
|
2407
|
+
focusedIndex: editingIndex,
|
|
2408
|
+
focused: true,
|
|
2409
|
+
editingIndex: -1,
|
|
2410
|
+
editingValue: '',
|
|
2411
|
+
editingType: None$3
|
|
2412
|
+
};
|
|
2413
|
+
};
|
|
2414
|
+
|
|
2415
|
+
// TODO much shared logic with newFolder
|
|
2416
|
+
|
|
2417
|
+
const handleClickFile = async (state, dirent, index, keepFocus = false) => {
|
|
2418
|
+
// await Command.execute(/* Main.openAbsolutePath */ 'Main.openUri', /* absolutePath */ dirent.path, /* focus */ !keepFocus)
|
|
2419
|
+
return {
|
|
2420
|
+
...state,
|
|
2421
|
+
focusedIndex: index,
|
|
2422
|
+
focused: keepFocus
|
|
2423
|
+
};
|
|
2424
|
+
};
|
|
2425
|
+
const handleClickDirectory = async (state, dirent, index, keepFocus) => {
|
|
2426
|
+
dirent.type = DirectoryExpanding;
|
|
2427
|
+
// TODO handle error
|
|
2428
|
+
const dirents = await getChildDirents(state.pathSeparator, dirent);
|
|
2429
|
+
const state2 = {};
|
|
2430
|
+
if (!state2) {
|
|
2431
|
+
return state;
|
|
2432
|
+
}
|
|
2433
|
+
// TODO use Viewlet.getState here and check if it exists
|
|
2434
|
+
const newIndex = state2.items.indexOf(dirent);
|
|
2435
|
+
// TODO if viewlet is disposed or root has changed, return
|
|
2436
|
+
if (newIndex === -1) {
|
|
2437
|
+
return state;
|
|
2438
|
+
}
|
|
2439
|
+
const newDirents = [...state2.items];
|
|
2440
|
+
newDirents.splice(newIndex + 1, 0, ...dirents);
|
|
2441
|
+
dirent.type = DirectoryExpanded;
|
|
2442
|
+
dirent.icon = getIcon();
|
|
2443
|
+
const {
|
|
2444
|
+
height,
|
|
2445
|
+
itemHeight,
|
|
2446
|
+
minLineY
|
|
2447
|
+
} = state2;
|
|
2448
|
+
// TODO when focused index has changed while expanding, don't update it
|
|
2449
|
+
const maxLineY = getExplorerMaxLineY(minLineY, height, itemHeight, newDirents.length);
|
|
2450
|
+
return {
|
|
2451
|
+
...state,
|
|
2452
|
+
items: newDirents,
|
|
2453
|
+
focusedIndex: newIndex,
|
|
2454
|
+
focused: keepFocus,
|
|
2455
|
+
maxLineY
|
|
2456
|
+
};
|
|
2457
|
+
};
|
|
2458
|
+
const handleClickDirectoryExpanded = (state, dirent, index, keepFocus) => {
|
|
2459
|
+
const {
|
|
2460
|
+
minLineY,
|
|
2461
|
+
maxLineY,
|
|
2462
|
+
itemHeight
|
|
2463
|
+
} = state;
|
|
2464
|
+
dirent.type = Directory;
|
|
2465
|
+
dirent.icon = getIcon();
|
|
2466
|
+
const endIndex = getParentEndIndex(state.items, index);
|
|
2467
|
+
const removeCount = endIndex - index - 1;
|
|
2468
|
+
// TODO race conditions and side effects are everywhere
|
|
2469
|
+
const newDirents = [...state.items];
|
|
2470
|
+
newDirents.splice(index + 1, removeCount);
|
|
2471
|
+
const newTotal = newDirents.length;
|
|
2472
|
+
if (newTotal < maxLineY) {
|
|
2473
|
+
const visibleItems = Math.min(maxLineY - minLineY, newTotal);
|
|
2474
|
+
const newMaxLineY = Math.min(maxLineY, newTotal);
|
|
2475
|
+
const newMinLineY = newMaxLineY - visibleItems;
|
|
2476
|
+
const deltaY = newMinLineY * itemHeight;
|
|
2477
|
+
return {
|
|
2478
|
+
...state,
|
|
2479
|
+
items: newDirents,
|
|
2480
|
+
focusedIndex: index,
|
|
2481
|
+
focused: keepFocus,
|
|
2482
|
+
minLineY: newMinLineY,
|
|
2483
|
+
maxLineY: newMaxLineY,
|
|
2484
|
+
deltaY
|
|
2485
|
+
};
|
|
2486
|
+
}
|
|
2487
|
+
return {
|
|
2488
|
+
...state,
|
|
2489
|
+
items: newDirents,
|
|
2490
|
+
focusedIndex: index,
|
|
2491
|
+
focused: keepFocus
|
|
2492
|
+
};
|
|
2493
|
+
};
|
|
2494
|
+
const handleClick = (state, index, keepFocus = false) => {
|
|
2495
|
+
const {
|
|
2496
|
+
items,
|
|
2497
|
+
minLineY
|
|
2498
|
+
} = state;
|
|
2499
|
+
if (index === -1) {
|
|
2500
|
+
return focusIndex(state, -1);
|
|
2501
|
+
}
|
|
2502
|
+
const actualIndex = index + minLineY;
|
|
2503
|
+
const dirent = items[actualIndex];
|
|
2504
|
+
if (!dirent) {
|
|
2505
|
+
console.warn(`[explorer] dirent at index ${actualIndex} not found`, state);
|
|
2506
|
+
return state;
|
|
2507
|
+
}
|
|
2508
|
+
const clickFn = getClickFn(dirent.type);
|
|
2509
|
+
return clickFn(state, dirent, actualIndex, keepFocus);
|
|
2510
|
+
};
|
|
2511
|
+
const handleClickAt = (state, button, x, y) => {
|
|
2512
|
+
if (button !== LeftClick) {
|
|
2513
|
+
return state;
|
|
2514
|
+
}
|
|
2515
|
+
const index = getIndexFromPosition(state, x, y);
|
|
2516
|
+
return handleClick(state, index);
|
|
2517
|
+
};
|
|
2518
|
+
const handleClickCurrentButKeepFocus = state => {
|
|
2519
|
+
return handleClick(state, state.focusedIndex - state.minLineY, /* keepFocus */true);
|
|
2520
|
+
};
|
|
2521
|
+
|
|
2522
|
+
// export const handleBlur=()=>{}
|
|
2523
|
+
|
|
2524
|
+
const handleClickSymLink = async (state, dirent, index) => {
|
|
2525
|
+
await getRealPath();
|
|
2526
|
+
const type = await stat();
|
|
2527
|
+
switch (type) {
|
|
2528
|
+
case File:
|
|
2529
|
+
return handleClickFile(state, dirent, index);
|
|
2530
|
+
default:
|
|
2531
|
+
throw new Error(`unsupported file type ${type}`);
|
|
2532
|
+
}
|
|
2533
|
+
};
|
|
2534
|
+
const handleArrowRightDirectoryExpanded = (state, dirent) => {
|
|
2535
|
+
const {
|
|
2536
|
+
items,
|
|
2537
|
+
focusedIndex
|
|
2538
|
+
} = state;
|
|
2539
|
+
if (focusedIndex === items.length - 1) {
|
|
2540
|
+
return state;
|
|
2541
|
+
}
|
|
2542
|
+
const nextDirent = items[focusedIndex + 1];
|
|
2543
|
+
if (nextDirent.depth === dirent.depth + 1) {
|
|
2544
|
+
return focusIndex(state, focusedIndex + 1);
|
|
2545
|
+
}
|
|
2546
|
+
};
|
|
2547
|
+
const handleArrowRight = async state => {
|
|
2548
|
+
const {
|
|
2549
|
+
items,
|
|
2550
|
+
focusedIndex
|
|
2551
|
+
} = state;
|
|
2552
|
+
if (focusedIndex === -1) {
|
|
2553
|
+
return state;
|
|
2554
|
+
}
|
|
2555
|
+
const dirent = items[focusedIndex];
|
|
2556
|
+
switch (dirent.type) {
|
|
2557
|
+
case File:
|
|
2558
|
+
case SymLinkFile:
|
|
2559
|
+
return state;
|
|
2560
|
+
case Directory:
|
|
2561
|
+
case SymLinkFolder:
|
|
2562
|
+
// @ts-ignore
|
|
2563
|
+
return handleClickDirectory(state, dirent);
|
|
2564
|
+
case DirectoryExpanded:
|
|
2565
|
+
return handleArrowRightDirectoryExpanded(state, dirent);
|
|
2566
|
+
case Symlink:
|
|
2567
|
+
return handleClickSymLink(state, dirent, focusedIndex);
|
|
2568
|
+
default:
|
|
2569
|
+
throw new Error(`unsupported file type ${dirent.type}`);
|
|
2570
|
+
}
|
|
2571
|
+
};
|
|
2572
|
+
const focusParentFolder = state => {
|
|
2573
|
+
const parentStartIndex = getParentStartIndex(state.items, state.focusedIndex);
|
|
2574
|
+
if (parentStartIndex === -1) {
|
|
2575
|
+
return state;
|
|
2576
|
+
}
|
|
2577
|
+
return focusIndex(state, parentStartIndex);
|
|
2578
|
+
};
|
|
2579
|
+
const handleArrowLeft = state => {
|
|
2580
|
+
const {
|
|
2581
|
+
items,
|
|
2582
|
+
focusedIndex
|
|
2583
|
+
} = state;
|
|
2584
|
+
if (focusedIndex === -1) {
|
|
2585
|
+
return state;
|
|
2586
|
+
}
|
|
2587
|
+
const dirent = items[focusedIndex];
|
|
2588
|
+
switch (dirent.type) {
|
|
2589
|
+
case Directory:
|
|
2590
|
+
case File:
|
|
2591
|
+
case SymLinkFile:
|
|
2592
|
+
return focusParentFolder(state);
|
|
2593
|
+
case DirectoryExpanded:
|
|
2594
|
+
// @ts-ignore
|
|
2595
|
+
return handleClickDirectoryExpanded(state, dirent, focusedIndex);
|
|
2596
|
+
default:
|
|
2597
|
+
// TODO handle expanding directory and cancel file system call to read child dirents
|
|
2598
|
+
return state;
|
|
2599
|
+
}
|
|
2600
|
+
};
|
|
2601
|
+
|
|
2602
|
+
// TODO what happens when mouse leave and anther mouse enter event occur?
|
|
2603
|
+
// should update preview instead of closing and reopening
|
|
2604
|
+
|
|
2605
|
+
// TODO maybe just insert items into explorer and refresh whole explorer
|
|
2606
|
+
|
|
2607
|
+
const handleClickOpenFolder = async state => {
|
|
2608
|
+
await openFolder();
|
|
2609
|
+
return state;
|
|
2610
|
+
};
|
|
2611
|
+
|
|
2612
|
+
const show = async (x, y, id, ...args) => {
|
|
2613
|
+
return invoke('ContextMenu.show', x, y, id, ...args);
|
|
2614
|
+
};
|
|
2615
|
+
|
|
2616
|
+
const Explorer = 4;
|
|
2617
|
+
|
|
2618
|
+
const handleContextMenuKeyboard = async state => {
|
|
2619
|
+
const {
|
|
2620
|
+
focusedIndex,
|
|
2621
|
+
x,
|
|
2622
|
+
y,
|
|
2623
|
+
minLineY,
|
|
2624
|
+
itemHeight
|
|
2625
|
+
} = state;
|
|
2626
|
+
const menuX = x;
|
|
2627
|
+
const menuY = y + (focusedIndex - minLineY + 1) * itemHeight;
|
|
2628
|
+
await show(menuX, menuY, Explorer);
|
|
2629
|
+
return state;
|
|
2630
|
+
};
|
|
2631
|
+
|
|
2632
|
+
const handleContextMenuMouseAt = async (state, x, y) => {
|
|
2633
|
+
number(x);
|
|
2634
|
+
number(y);
|
|
2635
|
+
const focusedIndex = getIndexFromPosition(state, x, y);
|
|
2636
|
+
await show(x, y, Explorer);
|
|
2637
|
+
return {
|
|
2638
|
+
...state,
|
|
2639
|
+
focusedIndex,
|
|
2640
|
+
focused: false
|
|
2641
|
+
};
|
|
2642
|
+
};
|
|
2643
|
+
|
|
2644
|
+
const handleContextMenu = (state, button, x, y) => {
|
|
2645
|
+
switch (button) {
|
|
2646
|
+
case Keyboard:
|
|
2647
|
+
return handleContextMenuKeyboard(state);
|
|
2648
|
+
default:
|
|
2649
|
+
return handleContextMenuMouseAt(state, x, y);
|
|
2650
|
+
}
|
|
2651
|
+
};
|
|
2652
|
+
|
|
2653
|
+
const getFilePathElectron = async file => {
|
|
2654
|
+
return invoke('GetFilePathElectron.getFilePathElectron', file);
|
|
2655
|
+
};
|
|
2656
|
+
|
|
2657
|
+
const mergeDirents$2 = (oldDirents, newDirents) => {
|
|
2658
|
+
return newDirents;
|
|
2659
|
+
};
|
|
2660
|
+
|
|
2661
|
+
// TODO copy files in parallel
|
|
2662
|
+
const copyFilesElectron = async (root, pathSeparator, files) => {
|
|
2663
|
+
for (const file of files) {
|
|
2664
|
+
await getFilePathElectron(file);
|
|
2665
|
+
// const from = file.path
|
|
2666
|
+
join(pathSeparator, root, file.name);
|
|
2667
|
+
await copy$1();
|
|
2668
|
+
}
|
|
2669
|
+
};
|
|
2670
|
+
const getMergedDirents$2 = async (root, pathSeparator, dirents) => {
|
|
2671
|
+
const childDirents = await getChildDirents(pathSeparator, {
|
|
2672
|
+
path: root,
|
|
2673
|
+
depth: 0
|
|
2674
|
+
});
|
|
2675
|
+
const mergedDirents = mergeDirents$2(dirents, childDirents);
|
|
2676
|
+
return mergedDirents;
|
|
2677
|
+
};
|
|
2678
|
+
const handleDrop$2 = async (state, files) => {
|
|
2679
|
+
const {
|
|
2680
|
+
root,
|
|
2681
|
+
pathSeparator,
|
|
2682
|
+
items
|
|
2683
|
+
} = state;
|
|
2684
|
+
await copyFilesElectron(root, pathSeparator, files);
|
|
2685
|
+
const mergedDirents = await getMergedDirents$2(root, pathSeparator, items);
|
|
2686
|
+
return {
|
|
2687
|
+
...state,
|
|
2688
|
+
items: mergedDirents,
|
|
2689
|
+
dropTargets: []
|
|
2690
|
+
};
|
|
2691
|
+
};
|
|
2692
|
+
|
|
2693
|
+
const uploadFileSystemHandles = async (root, pathSeparator, fileSystemHandles) => {
|
|
2694
|
+
// TODO send to renderer worker
|
|
2695
|
+
};
|
|
2696
|
+
|
|
2697
|
+
const mergeDirents$1 = (oldDirents, newDirents) => {
|
|
2698
|
+
return newDirents;
|
|
2699
|
+
};
|
|
2700
|
+
const getMergedDirents$1 = async (root, pathSeparator, dirents) => {
|
|
2701
|
+
const childDirents = await getChildDirents(pathSeparator, {
|
|
2702
|
+
path: root,
|
|
2703
|
+
depth: 0
|
|
2704
|
+
});
|
|
2705
|
+
const mergedDirents = mergeDirents$1(dirents, childDirents);
|
|
2706
|
+
return mergedDirents;
|
|
2707
|
+
};
|
|
2708
|
+
const handleDrop$1 = async (state, files) => {
|
|
2709
|
+
const {
|
|
2710
|
+
root,
|
|
2711
|
+
pathSeparator,
|
|
2712
|
+
items
|
|
2713
|
+
} = state;
|
|
2714
|
+
const handled = await uploadFileSystemHandles();
|
|
2715
|
+
if (handled) {
|
|
2716
|
+
return state;
|
|
2717
|
+
}
|
|
2718
|
+
const mergedDirents = await getMergedDirents$1(root, pathSeparator, items);
|
|
2719
|
+
return {
|
|
2720
|
+
...state,
|
|
2721
|
+
items: mergedDirents,
|
|
2722
|
+
dropTargets: []
|
|
2723
|
+
};
|
|
2724
|
+
};
|
|
2725
|
+
|
|
2726
|
+
const getModule = isElectron => {
|
|
2727
|
+
if (isElectron) {
|
|
2728
|
+
return handleDrop$2;
|
|
2729
|
+
}
|
|
2730
|
+
return handleDrop$1;
|
|
2731
|
+
};
|
|
2732
|
+
const handleDropRoot = async (state, files) => {
|
|
2733
|
+
const fn = await getModule(state.isElectron);
|
|
2734
|
+
return fn(state, files);
|
|
2735
|
+
};
|
|
2736
|
+
|
|
2737
|
+
const getEndIndex = (items, index, dirent) => {
|
|
2738
|
+
for (let i = index + 1; i < items.length; i++) {
|
|
2739
|
+
if (items[i].depth === dirent.depth) {
|
|
2740
|
+
return i;
|
|
2741
|
+
}
|
|
2742
|
+
}
|
|
2743
|
+
return items.length;
|
|
2744
|
+
};
|
|
2745
|
+
const getMergedDirents = (items, index, dirent, childDirents) => {
|
|
2746
|
+
const startIndex = index;
|
|
2747
|
+
const endIndex = getEndIndex(items, index, dirent);
|
|
2748
|
+
const mergedDirents = [...items.slice(0, startIndex), {
|
|
2749
|
+
...dirent,
|
|
2750
|
+
type: DirectoryExpanded
|
|
2751
|
+
}, ...childDirents, ...items.slice(endIndex)];
|
|
2752
|
+
return mergedDirents;
|
|
2753
|
+
};
|
|
2754
|
+
const handleDropIntoFolder = async (state, dirent, index, files) => {
|
|
2755
|
+
const {
|
|
2756
|
+
pathSeparator,
|
|
2757
|
+
items
|
|
2758
|
+
} = state;
|
|
2759
|
+
for (const file of files) {
|
|
2760
|
+
await copy$1();
|
|
2761
|
+
}
|
|
2762
|
+
const childDirents = await getChildDirents(pathSeparator, dirent);
|
|
2763
|
+
const mergedDirents = getMergedDirents(items, index, dirent, childDirents);
|
|
2764
|
+
// TODO update maxlineY
|
|
2765
|
+
return {
|
|
2766
|
+
...state,
|
|
2767
|
+
items: mergedDirents,
|
|
2768
|
+
dropTargets: []
|
|
2769
|
+
};
|
|
2770
|
+
};
|
|
2771
|
+
const handleDropIntoFile = (state, dirent, index, files) => {
|
|
2772
|
+
const {
|
|
2773
|
+
items
|
|
2774
|
+
} = state;
|
|
2775
|
+
const parentIndex = getParentStartIndex(items, index);
|
|
2776
|
+
if (parentIndex === -1) {
|
|
2777
|
+
return handleDropRoot(state, files);
|
|
2778
|
+
}
|
|
2779
|
+
// @ts-ignore
|
|
2780
|
+
return handleDropIndex(parentIndex);
|
|
2781
|
+
};
|
|
2782
|
+
const handleDropIndex = (state, index, files) => {
|
|
2783
|
+
const {
|
|
2784
|
+
items
|
|
2785
|
+
} = state;
|
|
2786
|
+
const dirent = items[index];
|
|
2787
|
+
// TODO if it is a file, drop into the folder of the file
|
|
2788
|
+
// TODO if it is a folder, drop into the folder
|
|
2789
|
+
// TODO if it is a symlink, read symlink and determine if file can be dropped
|
|
2790
|
+
switch (dirent.type) {
|
|
2791
|
+
case Directory:
|
|
2792
|
+
case DirectoryExpanded:
|
|
2793
|
+
return handleDropIntoFolder(state, dirent, index, files);
|
|
2794
|
+
case File:
|
|
2795
|
+
return handleDropIntoFile(state, dirent, index, files);
|
|
2796
|
+
default:
|
|
2797
|
+
return state;
|
|
2798
|
+
}
|
|
2799
|
+
};
|
|
2800
|
+
|
|
2801
|
+
const normalizeLine = line => {
|
|
2802
|
+
if (line.startsWith('Error: ')) {
|
|
2803
|
+
return line.slice('Error: '.length);
|
|
2804
|
+
}
|
|
2805
|
+
if (line.startsWith('VError: ')) {
|
|
2806
|
+
return line.slice('VError: '.length);
|
|
2807
|
+
}
|
|
2808
|
+
return line;
|
|
2809
|
+
};
|
|
2810
|
+
const getCombinedMessage = (error, message) => {
|
|
2811
|
+
const stringifiedError = normalizeLine(`${error}`);
|
|
2812
|
+
if (message) {
|
|
2813
|
+
return `${message}: ${stringifiedError}`;
|
|
2814
|
+
}
|
|
2815
|
+
return stringifiedError;
|
|
2816
|
+
};
|
|
2817
|
+
const NewLine = '\n';
|
|
2818
|
+
const getNewLineIndex = (string, startIndex = undefined) => {
|
|
2819
|
+
return string.indexOf(NewLine, startIndex);
|
|
2820
|
+
};
|
|
2821
|
+
const mergeStacks = (parent, child) => {
|
|
2822
|
+
if (!child) {
|
|
2823
|
+
return parent;
|
|
2824
|
+
}
|
|
2825
|
+
const parentNewLineIndex = getNewLineIndex(parent);
|
|
2826
|
+
const childNewLineIndex = getNewLineIndex(child);
|
|
2827
|
+
if (childNewLineIndex === -1) {
|
|
2828
|
+
return parent;
|
|
2829
|
+
}
|
|
2830
|
+
const parentFirstLine = parent.slice(0, parentNewLineIndex);
|
|
2831
|
+
const childRest = child.slice(childNewLineIndex);
|
|
2832
|
+
const childFirstLine = normalizeLine(child.slice(0, childNewLineIndex));
|
|
2833
|
+
if (parentFirstLine.includes(childFirstLine)) {
|
|
2834
|
+
return parentFirstLine + childRest;
|
|
2835
|
+
}
|
|
2836
|
+
return child;
|
|
2837
|
+
};
|
|
2838
|
+
class VError extends Error {
|
|
2839
|
+
constructor(error, message) {
|
|
2840
|
+
const combinedMessage = getCombinedMessage(error, message);
|
|
2841
|
+
super(combinedMessage);
|
|
2842
|
+
this.name = 'VError';
|
|
2843
|
+
if (error instanceof Error) {
|
|
2844
|
+
this.stack = mergeStacks(this.stack, error.stack);
|
|
2845
|
+
}
|
|
2846
|
+
if (error.codeFrame) {
|
|
2847
|
+
// @ts-ignore
|
|
2848
|
+
this.codeFrame = error.codeFrame;
|
|
2849
|
+
}
|
|
2850
|
+
if (error.code) {
|
|
2851
|
+
// @ts-ignore
|
|
2852
|
+
this.code = error.code;
|
|
2853
|
+
}
|
|
2854
|
+
}
|
|
2855
|
+
}
|
|
2856
|
+
|
|
2857
|
+
const handleDrop = async (state, x, y, files) => {
|
|
2858
|
+
try {
|
|
2859
|
+
const index = getIndexFromPosition(state, x, y);
|
|
2860
|
+
switch (index) {
|
|
2861
|
+
case -1:
|
|
2862
|
+
return await handleDropRoot(state, files);
|
|
2863
|
+
default:
|
|
2864
|
+
return await handleDropIndex(state, index, files);
|
|
2865
|
+
}
|
|
2866
|
+
} catch (error) {
|
|
2867
|
+
throw new VError(error, 'Failed to drop files');
|
|
2868
|
+
}
|
|
2869
|
+
};
|
|
2870
|
+
|
|
2871
|
+
const getTopLevelDirents = (root, pathSeparator, excluded) => {
|
|
2872
|
+
if (!root) {
|
|
2873
|
+
return [];
|
|
2874
|
+
}
|
|
2875
|
+
return getChildDirents(pathSeparator, {
|
|
2876
|
+
depth: 0,
|
|
2877
|
+
path: root,
|
|
2878
|
+
type: Directory
|
|
2879
|
+
}, excluded);
|
|
2880
|
+
};
|
|
2881
|
+
|
|
2882
|
+
const mergeDirents = (oldDirents, newDirents) => {
|
|
2883
|
+
const merged = [];
|
|
2884
|
+
for (const newDirent of newDirents) {
|
|
2885
|
+
merged.push(newDirent);
|
|
2886
|
+
}
|
|
2887
|
+
return merged;
|
|
2888
|
+
};
|
|
2889
|
+
|
|
2890
|
+
// TODO add lots of tests for this
|
|
2891
|
+
const updateRoot = async state1 => {
|
|
2892
|
+
if (state1.disposed) {
|
|
2893
|
+
return state1;
|
|
2894
|
+
}
|
|
2895
|
+
// const file = nativeFiles.files[0]
|
|
2896
|
+
// @ts-ignore
|
|
2897
|
+
const topLevelDirents = await getTopLevelDirents(state1.root, state1.pathSeparator);
|
|
2898
|
+
// const state2 = Viewlet.getState('Explorer')
|
|
2899
|
+
// // TODO what if root changes while reading directories?
|
|
2900
|
+
// if (state2.disposed || state2.root !== state1.root) {
|
|
2901
|
+
// return state2
|
|
2902
|
+
// }
|
|
2903
|
+
const newDirents = mergeDirents(state1.items, topLevelDirents);
|
|
2904
|
+
const state3 = {
|
|
2905
|
+
...state1,
|
|
2906
|
+
items: newDirents
|
|
2907
|
+
};
|
|
2908
|
+
return state3;
|
|
2909
|
+
};
|
|
2910
|
+
|
|
2911
|
+
const handlePasteCopy = async (state, nativeFiles) => {
|
|
2912
|
+
// TODO handle pasting files into nested folder
|
|
2913
|
+
// TODO handle pasting files into symlink
|
|
2914
|
+
// TODO handle pasting files into broken symlink
|
|
2915
|
+
// TODO handle pasting files into hardlink
|
|
2916
|
+
// TODO what if folder is big and it takes a long time
|
|
2917
|
+
for (const source of nativeFiles.files) {
|
|
2918
|
+
join(state.pathSeperator, state.root, getBaseName(state.pathSeparator, source));
|
|
2919
|
+
await copy$1();
|
|
2920
|
+
}
|
|
2921
|
+
// TODO only update folder at which level it changed
|
|
2922
|
+
return updateRoot(state);
|
|
2923
|
+
};
|
|
2924
|
+
|
|
2925
|
+
const handlePasteCut = async (state, nativeFiles) => {
|
|
2926
|
+
for (const source of nativeFiles.files) {
|
|
2927
|
+
`${state.root}${state.pathSeparator}${getBaseName(state.pathSeparator, source)}`;
|
|
2928
|
+
await rename$1();
|
|
2929
|
+
}
|
|
2930
|
+
return state;
|
|
2931
|
+
};
|
|
2932
|
+
|
|
2933
|
+
const handlePasteNone = (state, nativeFiles) => {
|
|
2934
|
+
console.info('[ViewletExplorer/handlePaste] no paths detected');
|
|
2935
|
+
return state;
|
|
2936
|
+
};
|
|
2937
|
+
|
|
2938
|
+
const None = 'none';
|
|
2939
|
+
const Copy = 'copy';
|
|
2940
|
+
const Cut = 'cut';
|
|
2941
|
+
|
|
2942
|
+
const handlePaste = async state => {
|
|
2943
|
+
const nativeFiles = await readNativeFiles();
|
|
2944
|
+
// TODO detect cut/paste event, not sure if that is possible
|
|
2945
|
+
// TODO check that pasted folder is not a parent folder of opened folder
|
|
2946
|
+
// TODO support pasting multiple paths
|
|
2947
|
+
// TODO what happens when pasting multiple paths, but some of them error?
|
|
2948
|
+
// how many error messages should be shown? Should the operation be undone?
|
|
2949
|
+
// TODO what if it is a large folder and takes a long time to copy? Should show progress
|
|
2950
|
+
// TODO what if there is a permission error? Probably should show a modal to ask for permission
|
|
2951
|
+
// TODO if error is EEXISTS, just rename the copy (e.g. file-copy-1.txt, file-copy-2.txt)
|
|
2952
|
+
// TODO actual target should be selected folder
|
|
2953
|
+
// TODO but what if a file is currently selected? Then maybe the parent folder
|
|
2954
|
+
// TODO but will it work if the folder is a symlink?
|
|
2955
|
+
// TODO handle error gracefully when copy fails
|
|
2956
|
+
switch (nativeFiles.type) {
|
|
2957
|
+
case None:
|
|
2958
|
+
return handlePasteNone(state);
|
|
2959
|
+
case Copy:
|
|
2960
|
+
return handlePasteCopy(state, nativeFiles);
|
|
2961
|
+
case Cut:
|
|
2962
|
+
return handlePasteCut(state, nativeFiles);
|
|
2963
|
+
default:
|
|
2964
|
+
throw new Error(`unexpected native paste type: ${nativeFiles.type}`);
|
|
2965
|
+
}
|
|
2966
|
+
};
|
|
2967
|
+
|
|
2968
|
+
const handlePointerDown = (state, button, x, y) => {
|
|
2969
|
+
const index = getIndexFromPosition(state, x, y);
|
|
2970
|
+
if (button === LeftClick && index === -1) {
|
|
2971
|
+
return {
|
|
2972
|
+
...state,
|
|
2973
|
+
focused: true,
|
|
2974
|
+
focusedIndex: -1
|
|
2975
|
+
};
|
|
2976
|
+
}
|
|
2977
|
+
return state;
|
|
2978
|
+
};
|
|
2979
|
+
|
|
2980
|
+
// TODO viewlet should only have create and refresh functions
|
|
2981
|
+
// every thing else can be in a separate module <viewlet>.lazy.js
|
|
2982
|
+
// and <viewlet>.ipc.js
|
|
2983
|
+
|
|
2984
|
+
// viewlet: creating | refreshing | done | disposed
|
|
2985
|
+
// TODO recycle viewlets (maybe)
|
|
2986
|
+
|
|
2987
|
+
// TODO instead of root string, there should be a root dirent
|
|
2988
|
+
|
|
2989
|
+
const getPathSeparator = root => {
|
|
2990
|
+
return getPathSeparator$1();
|
|
2991
|
+
};
|
|
2992
|
+
const restoreExpandedState = async (savedState, root, pathSeparator, excluded) => {
|
|
2993
|
+
{
|
|
2994
|
+
return [];
|
|
2995
|
+
}
|
|
2996
|
+
};
|
|
2997
|
+
const getExcluded = () => {
|
|
2998
|
+
const excludedObject = {};
|
|
2999
|
+
const excluded = [];
|
|
3000
|
+
for (const [key, value] of Object.entries(excludedObject)) {
|
|
3001
|
+
if (value) {
|
|
3002
|
+
excluded.push(key);
|
|
3003
|
+
}
|
|
3004
|
+
}
|
|
3005
|
+
return excluded;
|
|
3006
|
+
};
|
|
3007
|
+
const getSavedRoot$1 = (savedState, workspacePath) => {
|
|
3008
|
+
return workspacePath;
|
|
3009
|
+
};
|
|
3010
|
+
const loadContent = async (state, savedState) => {
|
|
3011
|
+
const root = getSavedRoot$1(savedState, '');
|
|
3012
|
+
// TODO path separator could be restored from saved state
|
|
3013
|
+
const pathSeparator = await getPathSeparator(); // TODO only load path separator once
|
|
3014
|
+
const excluded = getExcluded();
|
|
3015
|
+
const restoredDirents = await restoreExpandedState();
|
|
3016
|
+
const {
|
|
3017
|
+
itemHeight,
|
|
3018
|
+
height
|
|
3019
|
+
} = state;
|
|
3020
|
+
let minLineY = 0;
|
|
3021
|
+
if (savedState && typeof savedState.minLineY === 'number') {
|
|
3022
|
+
minLineY = savedState.minLineY;
|
|
3023
|
+
}
|
|
3024
|
+
let deltaY = 0;
|
|
3025
|
+
if (savedState && typeof savedState.deltaY === 'number') {
|
|
3026
|
+
deltaY = savedState.deltaY;
|
|
3027
|
+
}
|
|
3028
|
+
const maxLineY = getExplorerMaxLineY(minLineY, height, itemHeight, restoredDirents.length);
|
|
3029
|
+
return {
|
|
3030
|
+
...state,
|
|
3031
|
+
root,
|
|
3032
|
+
items: restoredDirents,
|
|
3033
|
+
minLineY,
|
|
3034
|
+
deltaY,
|
|
3035
|
+
maxLineY,
|
|
3036
|
+
pathSeparator,
|
|
3037
|
+
excluded
|
|
3038
|
+
};
|
|
3039
|
+
};
|
|
3040
|
+
|
|
3041
|
+
const getContaingingFolder = (root, dirents, focusedIndex, pathSeparator) => {
|
|
3042
|
+
if (focusedIndex < 0) {
|
|
3043
|
+
return root;
|
|
3044
|
+
}
|
|
3045
|
+
const dirent = dirents[focusedIndex];
|
|
3046
|
+
const direntPath = dirent.path;
|
|
3047
|
+
const direntParentPath = direntPath.slice(0, -(dirent.name.length + 1));
|
|
3048
|
+
const path = `${direntParentPath}`;
|
|
3049
|
+
return path;
|
|
3050
|
+
};
|
|
3051
|
+
const openContainingFolder = async state => {
|
|
3052
|
+
const {
|
|
3053
|
+
focusedIndex,
|
|
3054
|
+
root,
|
|
3055
|
+
items,
|
|
3056
|
+
pathSeparator
|
|
3057
|
+
} = state;
|
|
3058
|
+
const path = getContaingingFolder(root, items, focusedIndex);
|
|
3059
|
+
await invoke('OpenNativeFolder.openNativeFolder', /* path */path);
|
|
3060
|
+
return state;
|
|
3061
|
+
};
|
|
3062
|
+
|
|
3063
|
+
const getSavedRoot = (savedState, workspacePath) => {
|
|
3064
|
+
return workspacePath;
|
|
3065
|
+
};
|
|
3066
|
+
const restoreState = savedState => {
|
|
3067
|
+
if (!savedState) {
|
|
3068
|
+
return {
|
|
3069
|
+
minLineY: 0,
|
|
3070
|
+
deltaY: 0
|
|
3071
|
+
};
|
|
3072
|
+
}
|
|
3073
|
+
const root = getSavedRoot(savedState, savedState.workspacePath || '');
|
|
3074
|
+
let minLineY = 0;
|
|
3075
|
+
if (savedState && typeof savedState.minLineY === 'number') {
|
|
3076
|
+
minLineY = savedState.minLineY;
|
|
3077
|
+
}
|
|
3078
|
+
let deltaY = 0;
|
|
3079
|
+
if (savedState && typeof savedState.deltaY === 'number') {
|
|
3080
|
+
deltaY = savedState.deltaY;
|
|
3081
|
+
}
|
|
3082
|
+
return {
|
|
3083
|
+
...savedState,
|
|
3084
|
+
root,
|
|
3085
|
+
minLineY,
|
|
3086
|
+
deltaY
|
|
3087
|
+
};
|
|
3088
|
+
};
|
|
3089
|
+
|
|
3090
|
+
const getIndex = (dirents, uri) => {
|
|
3091
|
+
for (let i = 0; i < dirents.length; i++) {
|
|
3092
|
+
const dirent = dirents[i];
|
|
3093
|
+
if (dirent.path === uri) {
|
|
3094
|
+
return i;
|
|
3095
|
+
}
|
|
3096
|
+
}
|
|
3097
|
+
return -1;
|
|
3098
|
+
};
|
|
3099
|
+
|
|
3100
|
+
const getPathParts = (root, uri, pathSeparator) => {
|
|
3101
|
+
const parts = [];
|
|
3102
|
+
let index = root.length - 1;
|
|
3103
|
+
let depth = 0;
|
|
3104
|
+
while ((index = uri.indexOf('/', index + 1)) !== -1) {
|
|
3105
|
+
const partUri = uri.slice(0, index);
|
|
3106
|
+
parts.push({
|
|
3107
|
+
path: partUri,
|
|
3108
|
+
depth: depth++,
|
|
3109
|
+
root,
|
|
3110
|
+
pathSeparator
|
|
3111
|
+
});
|
|
3112
|
+
}
|
|
3113
|
+
return parts;
|
|
3114
|
+
};
|
|
3115
|
+
|
|
3116
|
+
const isTopLevel = dirent => {
|
|
3117
|
+
return dirent.depth === 1;
|
|
3118
|
+
};
|
|
3119
|
+
const orderDirents = dirents => {
|
|
3120
|
+
if (dirents.length === 0) {
|
|
3121
|
+
return dirents;
|
|
3122
|
+
}
|
|
3123
|
+
// const parentMap = Object.create(null)
|
|
3124
|
+
// for(const dirent of dirents){
|
|
3125
|
+
// const parentPath = dirent.slice(0, dirent.lastIndexOf('/'))
|
|
3126
|
+
// parentMap[parentPath]||=[]
|
|
3127
|
+
// parentMap[parentPath].push(dirent)
|
|
3128
|
+
// }
|
|
3129
|
+
const withDeepChildren = parent => {
|
|
3130
|
+
const children = [];
|
|
3131
|
+
for (const dirent of dirents) {
|
|
3132
|
+
if (dirent.depth === parent.depth + 1 && dirent.path.startsWith(parent.path)) {
|
|
3133
|
+
children.push(dirent, ...withDeepChildren(dirent));
|
|
3134
|
+
}
|
|
3135
|
+
}
|
|
3136
|
+
return [parent, ...children];
|
|
3137
|
+
};
|
|
3138
|
+
const topLevelDirents = dirents.filter(isTopLevel);
|
|
3139
|
+
const ordered = topLevelDirents.flatMap(withDeepChildren);
|
|
3140
|
+
return ordered;
|
|
3141
|
+
};
|
|
3142
|
+
|
|
3143
|
+
const scrollInto = (index, minLineY, maxLineY) => {
|
|
3144
|
+
const diff = maxLineY - minLineY;
|
|
3145
|
+
const smallerHalf = Math.floor(diff / 2);
|
|
3146
|
+
const largerHalf = diff - smallerHalf;
|
|
3147
|
+
if (index < minLineY) {
|
|
3148
|
+
return {
|
|
3149
|
+
newMinLineY: index - smallerHalf,
|
|
3150
|
+
newMaxLineY: index + largerHalf
|
|
3151
|
+
};
|
|
3152
|
+
}
|
|
3153
|
+
if (index >= maxLineY) {
|
|
3154
|
+
return {
|
|
3155
|
+
newMinLineY: index - smallerHalf,
|
|
3156
|
+
newMaxLineY: index + largerHalf
|
|
3157
|
+
};
|
|
3158
|
+
}
|
|
3159
|
+
return {
|
|
3160
|
+
newMinLineY: minLineY,
|
|
3161
|
+
newMaxLineY: maxLineY
|
|
3162
|
+
};
|
|
3163
|
+
};
|
|
3164
|
+
|
|
3165
|
+
const getPathPartsToReveal = (root, pathParts, dirents) => {
|
|
3166
|
+
for (let i = 0; i < pathParts.length; i++) {
|
|
3167
|
+
const pathPart = pathParts[i];
|
|
3168
|
+
const index = getIndex(dirents, pathPart.uri);
|
|
3169
|
+
if (index === -1) {
|
|
3170
|
+
continue;
|
|
3171
|
+
}
|
|
3172
|
+
return pathParts.slice(i);
|
|
3173
|
+
}
|
|
3174
|
+
return pathParts;
|
|
3175
|
+
};
|
|
3176
|
+
const getPathPartChildren = pathPart => {
|
|
3177
|
+
const children = getChildDirents(pathPart.pathSeparator, pathPart);
|
|
3178
|
+
return children;
|
|
3179
|
+
};
|
|
3180
|
+
const mergeVisibleWithHiddenItems = (visibleItems, hiddenItems) => {
|
|
3181
|
+
const merged = [...hiddenItems];
|
|
3182
|
+
const seen = Object.create(null);
|
|
3183
|
+
const unique = [];
|
|
3184
|
+
for (const item of merged) {
|
|
3185
|
+
if (seen[item.path]) {
|
|
3186
|
+
continue;
|
|
3187
|
+
}
|
|
3188
|
+
seen[item.path] = true;
|
|
3189
|
+
unique.push(item);
|
|
3190
|
+
}
|
|
3191
|
+
|
|
3192
|
+
// depth one
|
|
3193
|
+
// let depth=1
|
|
3194
|
+
// while(true){
|
|
3195
|
+
// for(const item of unique){
|
|
3196
|
+
// if(item.depth===depth){
|
|
3197
|
+
// ordered.push(item)
|
|
3198
|
+
// }
|
|
3199
|
+
// }
|
|
3200
|
+
// break
|
|
3201
|
+
// }
|
|
3202
|
+
// const getChildren = (path) => {
|
|
3203
|
+
// const children = []
|
|
3204
|
+
// for (const item of unique) {
|
|
3205
|
+
// if (item.path.startsWith(path) && item.path !== path) {
|
|
3206
|
+
// ordered.push(item)
|
|
3207
|
+
// }
|
|
3208
|
+
// }
|
|
3209
|
+
// return children
|
|
3210
|
+
// }
|
|
3211
|
+
// for (const item of unique) {
|
|
3212
|
+
// for (const potentialChild of unique) {
|
|
3213
|
+
// if (
|
|
3214
|
+
// potentialChild.path.startsWith(item.path) &&
|
|
3215
|
+
// potentialChild.path !== item.path
|
|
3216
|
+
// ) {
|
|
3217
|
+
// ordered.push(potentialChild)
|
|
3218
|
+
// }
|
|
3219
|
+
// }
|
|
3220
|
+
// }
|
|
3221
|
+
// const refreshedRoots = Object.create(null)
|
|
3222
|
+
// for (const hiddenItem of hiddenItems) {
|
|
3223
|
+
// const parent = hiddenItem.path.slice(0, hiddenItem.path.lastIndexOf('/'))
|
|
3224
|
+
// refreshedRoots[parent] = true
|
|
3225
|
+
// }
|
|
3226
|
+
// const mergedDirents = []
|
|
3227
|
+
// for(const v)
|
|
3228
|
+
// for (const visibleItem of visibleItems) {
|
|
3229
|
+
// if (visibleItem.path === hiddenItemRoot) {
|
|
3230
|
+
// // TODO update aria posinset and aria setsize
|
|
3231
|
+
// mergedDirents.push(...hiddenItems)
|
|
3232
|
+
// } else {
|
|
3233
|
+
// for (const hiddenItem of hiddenItems) {
|
|
3234
|
+
// if (hiddenItem.path === visibleItem.path) {
|
|
3235
|
+
// continue
|
|
3236
|
+
// }
|
|
3237
|
+
// }
|
|
3238
|
+
// mergedDirents.push(visibleItem)
|
|
3239
|
+
// }
|
|
3240
|
+
// }
|
|
3241
|
+
|
|
3242
|
+
return unique;
|
|
3243
|
+
};
|
|
3244
|
+
|
|
3245
|
+
// TODO maybe just insert items into explorer and refresh whole explorer
|
|
3246
|
+
const revealItemHidden = async (state, uri) => {
|
|
3247
|
+
const {
|
|
3248
|
+
root,
|
|
3249
|
+
pathSeparator,
|
|
3250
|
+
items,
|
|
3251
|
+
minLineY,
|
|
3252
|
+
maxLineY
|
|
3253
|
+
} = state;
|
|
3254
|
+
const pathParts = getPathParts(root, uri, pathSeparator);
|
|
3255
|
+
if (pathParts.length === 0) {
|
|
3256
|
+
return state;
|
|
3257
|
+
}
|
|
3258
|
+
const pathPartsToReveal = getPathPartsToReveal(root, pathParts, items);
|
|
3259
|
+
const pathPartsChildren = await Promise.all(pathPartsToReveal.map(getPathPartChildren));
|
|
3260
|
+
const pathPartsChildrenFlat = pathPartsChildren.flat(1);
|
|
3261
|
+
const orderedPathParts = orderDirents(pathPartsChildrenFlat);
|
|
3262
|
+
const mergedDirents = mergeVisibleWithHiddenItems(items, orderedPathParts);
|
|
3263
|
+
const index = getIndex(mergedDirents, uri);
|
|
3264
|
+
if (index === -1) {
|
|
3265
|
+
throw new Error(`File not found in explorer ${uri}`);
|
|
3266
|
+
}
|
|
3267
|
+
const {
|
|
3268
|
+
newMinLineY,
|
|
3269
|
+
newMaxLineY
|
|
3270
|
+
} = scrollInto(index, minLineY, maxLineY);
|
|
3271
|
+
return {
|
|
3272
|
+
...state,
|
|
3273
|
+
items: mergedDirents,
|
|
3274
|
+
focused: true,
|
|
3275
|
+
focusedIndex: index,
|
|
3276
|
+
minLineY: newMinLineY,
|
|
3277
|
+
maxLineY: newMaxLineY
|
|
3278
|
+
};
|
|
3279
|
+
};
|
|
3280
|
+
|
|
3281
|
+
const revealItemVisible = (state, index) => {
|
|
3282
|
+
const {
|
|
3283
|
+
minLineY,
|
|
3284
|
+
maxLineY
|
|
3285
|
+
} = state;
|
|
3286
|
+
const {
|
|
3287
|
+
newMinLineY,
|
|
3288
|
+
newMaxLineY
|
|
3289
|
+
} = scrollInto(index, minLineY, maxLineY);
|
|
3290
|
+
return {
|
|
3291
|
+
...state,
|
|
3292
|
+
focused: true,
|
|
3293
|
+
focusedIndex: index,
|
|
3294
|
+
minLineY: newMinLineY,
|
|
3295
|
+
maxLineY: newMaxLineY
|
|
3296
|
+
};
|
|
3297
|
+
};
|
|
3298
|
+
|
|
3299
|
+
const revealItem = async (state, uri) => {
|
|
3300
|
+
object(state);
|
|
3301
|
+
string(uri);
|
|
3302
|
+
const {
|
|
3303
|
+
items
|
|
3304
|
+
} = state;
|
|
3305
|
+
const index = getIndex(items, uri);
|
|
3306
|
+
if (index === -1) {
|
|
3307
|
+
return revealItemHidden(state, uri);
|
|
3308
|
+
}
|
|
3309
|
+
return revealItemVisible(state, index);
|
|
3310
|
+
};
|
|
3311
|
+
|
|
3312
|
+
const isExpandedDirectory = dirent => {
|
|
3313
|
+
return dirent.type === DirectoryExpanded;
|
|
3314
|
+
};
|
|
3315
|
+
const getPath = dirent => {
|
|
3316
|
+
return dirent.path;
|
|
3317
|
+
};
|
|
3318
|
+
const saveState = state => {
|
|
3319
|
+
const {
|
|
3320
|
+
items,
|
|
3321
|
+
root,
|
|
3322
|
+
deltaY,
|
|
3323
|
+
minLineY,
|
|
3324
|
+
maxLineY
|
|
3325
|
+
} = state;
|
|
3326
|
+
const expandedPaths = items.filter(isExpandedDirectory).map(getPath);
|
|
3327
|
+
return {
|
|
3328
|
+
expandedPaths,
|
|
3329
|
+
root,
|
|
3330
|
+
minLineY,
|
|
3331
|
+
maxLineY,
|
|
3332
|
+
deltaY
|
|
3333
|
+
};
|
|
3334
|
+
};
|
|
3335
|
+
|
|
3336
|
+
const commandMap = {
|
|
3337
|
+
'Explorer.acceptEdit': acceptEdit,
|
|
3338
|
+
'Explorer.cancelEdit': cancelEdit,
|
|
3339
|
+
'Explorer.copyPath': copyPath$1,
|
|
3340
|
+
'Explorer.copyRelativePath': copyRelativePath$1,
|
|
3341
|
+
'Explorer.expandAll': expandAll,
|
|
3342
|
+
'Explorer.expandRecursively': expandRecursively,
|
|
3343
|
+
'Explorer.focusFirst': focusFirst,
|
|
3344
|
+
'Explorer.focusIndex': focusIndex,
|
|
3345
|
+
'Explorer.focusLast': focusLast,
|
|
3346
|
+
'Explorer.focusNext': focusNext,
|
|
3347
|
+
'Explorer.focusPrevious': focusPrevious,
|
|
3348
|
+
'Explorer.getKeyBindings': getKeyBindings,
|
|
3349
|
+
'Explorer.getMenuEntries': getMenuEntries,
|
|
3350
|
+
'Explorer.getVirtualDom': getExplorerVirtualDom,
|
|
3351
|
+
'Explorer.getVisibleItems': getVisibleExplorerItems,
|
|
3352
|
+
'Explorer.handleArrowLeft': handleArrowLeft,
|
|
3353
|
+
'Explorer.handleArrowRight': handleArrowRight,
|
|
3354
|
+
'Explorer.handleBlur': handleBlur,
|
|
3355
|
+
'Explorer.handleClick': handleClick,
|
|
3356
|
+
'Explorer.handleClickAt': handleClickAt,
|
|
3357
|
+
'Explorer.handleClickCurrentButKeepFocus': handleClickCurrentButKeepFocus,
|
|
3358
|
+
'Explorer.handleClickOpenFolder': handleClickOpenFolder,
|
|
3359
|
+
'Explorer.handleContextMenu': handleContextMenu,
|
|
3360
|
+
'Explorer.handleDrop': handleDrop,
|
|
3361
|
+
'Explorer.handleIconThemeChange': handleIconThemeChange,
|
|
3362
|
+
'Explorer.handlePaste': handlePaste,
|
|
3363
|
+
'Explorer.handlePointerDown': handlePointerDown,
|
|
3364
|
+
'Explorer.handleWheel': handleWheel,
|
|
3365
|
+
'Explorer.loadContent': loadContent,
|
|
3366
|
+
'Explorer.openContainingFolder': openContainingFolder,
|
|
3367
|
+
'Explorer.removeDirent': removeDirent,
|
|
3368
|
+
'Explorer.renameDirent': renameDirent,
|
|
3369
|
+
'Explorer.restoreState': restoreState,
|
|
3370
|
+
'Explorer.revealItem': revealItem,
|
|
3371
|
+
'Explorer.saveState': saveState
|
|
3372
|
+
};
|
|
3373
|
+
|
|
3374
|
+
const listen = async () => {
|
|
3375
|
+
const rpc = await WebWorkerRpcClient.create({
|
|
3376
|
+
commandMap: commandMap
|
|
3377
|
+
});
|
|
3378
|
+
setRpc(rpc);
|
|
3379
|
+
};
|
|
3380
|
+
|
|
3381
|
+
const main = async () => {
|
|
3382
|
+
await listen();
|
|
3383
|
+
};
|
|
3384
|
+
|
|
3385
|
+
main();
|