@theia/filesystem 1.67.0-next.56 → 1.67.0-next.86
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/lib/browser/breadcrumbs/filepath-breadcrumb.d.ts +16 -0
- package/lib/browser/breadcrumbs/filepath-breadcrumb.d.ts.map +1 -0
- package/lib/browser/breadcrumbs/filepath-breadcrumb.js +42 -0
- package/lib/browser/breadcrumbs/filepath-breadcrumb.js.map +1 -0
- package/lib/browser/breadcrumbs/filepath-breadcrumbs-container.d.ts +13 -0
- package/lib/browser/breadcrumbs/filepath-breadcrumbs-container.d.ts.map +1 -0
- package/lib/browser/breadcrumbs/filepath-breadcrumbs-container.js +67 -0
- package/lib/browser/breadcrumbs/filepath-breadcrumbs-container.js.map +1 -0
- package/lib/browser/breadcrumbs/filepath-breadcrumbs-contribution.d.ts +28 -0
- package/lib/browser/breadcrumbs/filepath-breadcrumbs-contribution.d.ts.map +1 -0
- package/lib/browser/breadcrumbs/filepath-breadcrumbs-contribution.js +119 -0
- package/lib/browser/breadcrumbs/filepath-breadcrumbs-contribution.js.map +1 -0
- package/lib/browser/download/file-download-command-contribution.d.ts +19 -0
- package/lib/browser/download/file-download-command-contribution.d.ts.map +1 -0
- package/lib/browser/download/file-download-command-contribution.js +76 -0
- package/lib/browser/download/file-download-command-contribution.js.map +1 -0
- package/lib/browser/download/file-download-frontend-module.d.ts +4 -0
- package/lib/browser/download/file-download-frontend-module.d.ts.map +1 -0
- package/lib/browser/download/file-download-frontend-module.js +27 -0
- package/lib/browser/download/file-download-frontend-module.js.map +1 -0
- package/lib/browser/download/file-download-service.d.ts +21 -0
- package/lib/browser/download/file-download-service.d.ts.map +1 -0
- package/lib/browser/download/file-download-service.js +169 -0
- package/lib/browser/download/file-download-service.js.map +1 -0
- package/lib/browser/file-dialog/file-dialog-container.d.ts +6 -0
- package/lib/browser/file-dialog/file-dialog-container.d.ts.map +1 -0
- package/lib/browser/file-dialog/file-dialog-container.js +61 -0
- package/lib/browser/file-dialog/file-dialog-container.js.map +1 -0
- package/lib/browser/file-dialog/file-dialog-hidden-files-renderer.d.ts +16 -0
- package/lib/browser/file-dialog/file-dialog-hidden-files-renderer.d.ts.map +1 -0
- package/lib/browser/file-dialog/file-dialog-hidden-files-renderer.js +60 -0
- package/lib/browser/file-dialog/file-dialog-hidden-files-renderer.js.map +1 -0
- package/lib/browser/file-dialog/file-dialog-model.d.ts +26 -0
- package/lib/browser/file-dialog/file-dialog-model.d.ts.map +1 -0
- package/lib/browser/file-dialog/file-dialog-model.js +101 -0
- package/lib/browser/file-dialog/file-dialog-model.js.map +1 -0
- package/lib/browser/file-dialog/file-dialog-module.d.ts +4 -0
- package/lib/browser/file-dialog/file-dialog-module.d.ts.map +1 -0
- package/lib/browser/file-dialog/file-dialog-module.js +46 -0
- package/lib/browser/file-dialog/file-dialog-module.js.map +1 -0
- package/lib/browser/file-dialog/file-dialog-service.d.ts +33 -0
- package/lib/browser/file-dialog/file-dialog-service.d.ts.map +1 -0
- package/lib/browser/file-dialog/file-dialog-service.js +102 -0
- package/lib/browser/file-dialog/file-dialog-service.js.map +1 -0
- package/lib/browser/file-dialog/file-dialog-tree-filters-renderer.d.ts +40 -0
- package/lib/browser/file-dialog/file-dialog-tree-filters-renderer.d.ts.map +1 -0
- package/lib/browser/file-dialog/file-dialog-tree-filters-renderer.js +82 -0
- package/lib/browser/file-dialog/file-dialog-tree-filters-renderer.js.map +1 -0
- package/lib/browser/file-dialog/file-dialog-tree.d.ts +27 -0
- package/lib/browser/file-dialog/file-dialog-tree.d.ts.map +1 -0
- package/lib/browser/file-dialog/file-dialog-tree.js +84 -0
- package/lib/browser/file-dialog/file-dialog-tree.js.map +1 -0
- package/lib/browser/file-dialog/file-dialog-widget.d.ts +18 -0
- package/lib/browser/file-dialog/file-dialog-widget.d.ts.map +1 -0
- package/lib/browser/file-dialog/file-dialog-widget.js +85 -0
- package/lib/browser/file-dialog/file-dialog-widget.js.map +1 -0
- package/lib/browser/file-dialog/file-dialog.d.ts +130 -0
- package/lib/browser/file-dialog/file-dialog.d.ts.map +1 -0
- package/lib/browser/file-dialog/file-dialog.js +352 -0
- package/lib/browser/file-dialog/file-dialog.js.map +1 -0
- package/lib/browser/file-dialog/index.d.ts +5 -0
- package/lib/browser/file-dialog/index.d.ts.map +1 -0
- package/lib/browser/file-dialog/index.js +23 -0
- package/lib/browser/file-dialog/index.js.map +1 -0
- package/lib/browser/file-resource.d.ts +72 -0
- package/lib/browser/file-resource.d.ts.map +1 -0
- package/lib/browser/file-resource.js +385 -0
- package/lib/browser/file-resource.js.map +1 -0
- package/lib/browser/file-resource.spec.d.ts +2 -0
- package/lib/browser/file-resource.spec.d.ts.map +1 -0
- package/lib/browser/file-resource.spec.js +191 -0
- package/lib/browser/file-resource.spec.js.map +1 -0
- package/lib/browser/file-selection.d.ts +15 -0
- package/lib/browser/file-selection.d.ts.map +1 -0
- package/lib/browser/file-selection.js +37 -0
- package/lib/browser/file-selection.js.map +1 -0
- package/lib/browser/file-service.d.ts +427 -0
- package/lib/browser/file-service.d.ts.map +1 -0
- package/lib/browser/file-service.js +1370 -0
- package/lib/browser/file-service.js.map +1 -0
- package/lib/browser/file-tree/file-tree-container.d.ts +4 -0
- package/lib/browser/file-tree/file-tree-container.d.ts.map +1 -0
- package/lib/browser/file-tree/file-tree-container.js +36 -0
- package/lib/browser/file-tree/file-tree-container.js.map +1 -0
- package/lib/browser/file-tree/file-tree-decorator-adapter.d.ts +31 -0
- package/lib/browser/file-tree/file-tree-decorator-adapter.d.ts.map +1 -0
- package/lib/browser/file-tree/file-tree-decorator-adapter.js +170 -0
- package/lib/browser/file-tree/file-tree-decorator-adapter.js.map +1 -0
- package/lib/browser/file-tree/file-tree-label-provider.d.ts +13 -0
- package/lib/browser/file-tree/file-tree-label-provider.d.ts.map +1 -0
- package/lib/browser/file-tree/file-tree-label-provider.js +55 -0
- package/lib/browser/file-tree/file-tree-label-provider.js.map +1 -0
- package/lib/browser/file-tree/file-tree-model.d.ts +34 -0
- package/lib/browser/file-tree/file-tree-model.d.ts.map +1 -0
- package/lib/browser/file-tree/file-tree-model.js +201 -0
- package/lib/browser/file-tree/file-tree-model.js.map +1 -0
- package/lib/browser/file-tree/file-tree-widget.d.ts +45 -0
- package/lib/browser/file-tree/file-tree-widget.d.ts.map +1 -0
- package/lib/browser/file-tree/file-tree-widget.js +318 -0
- package/lib/browser/file-tree/file-tree-widget.js.map +1 -0
- package/lib/browser/file-tree/file-tree.d.ts +47 -0
- package/lib/browser/file-tree/file-tree.d.ts.map +1 -0
- package/lib/browser/file-tree/file-tree.js +177 -0
- package/lib/browser/file-tree/file-tree.js.map +1 -0
- package/lib/browser/file-tree/index.d.ts +7 -0
- package/lib/browser/file-tree/index.d.ts.map +1 -0
- package/lib/browser/file-tree/index.js +25 -0
- package/lib/browser/file-tree/index.js.map +1 -0
- package/lib/browser/filesystem-frontend-contribution.d.ts +76 -0
- package/lib/browser/filesystem-frontend-contribution.d.ts.map +1 -0
- package/lib/browser/filesystem-frontend-contribution.js +372 -0
- package/lib/browser/filesystem-frontend-contribution.js.map +1 -0
- package/lib/browser/filesystem-frontend-module.d.ts +6 -0
- package/lib/browser/filesystem-frontend-module.d.ts.map +1 -0
- package/lib/browser/filesystem-frontend-module.js +70 -0
- package/lib/browser/filesystem-frontend-module.js.map +1 -0
- package/lib/browser/filesystem-saveable-service.d.ts +36 -0
- package/lib/browser/filesystem-saveable-service.d.ts.map +1 -0
- package/lib/browser/filesystem-saveable-service.js +164 -0
- package/lib/browser/filesystem-saveable-service.js.map +1 -0
- package/lib/browser/filesystem-watcher-error-handler.d.ts +11 -0
- package/lib/browser/filesystem-watcher-error-handler.d.ts.map +1 -0
- package/lib/browser/filesystem-watcher-error-handler.js +62 -0
- package/lib/browser/filesystem-watcher-error-handler.js.map +1 -0
- package/lib/browser/index.d.ts +5 -0
- package/lib/browser/index.d.ts.map +1 -0
- package/lib/browser/index.js +23 -0
- package/lib/browser/index.js.map +1 -0
- package/lib/browser/location/index.d.ts +3 -0
- package/lib/browser/location/index.d.ts.map +1 -0
- package/lib/browser/location/index.js +21 -0
- package/lib/browser/location/index.js.map +1 -0
- package/lib/browser/location/location-renderer.d.ts +101 -0
- package/lib/browser/location/location-renderer.d.ts.map +1 -0
- package/lib/browser/location/location-renderer.js +345 -0
- package/lib/browser/location/location-renderer.js.map +1 -0
- package/lib/browser/location/location-service.d.ts +6 -0
- package/lib/browser/location/location-service.d.ts.map +1 -0
- package/lib/browser/location/location-service.js +18 -0
- package/lib/browser/location/location-service.js.map +1 -0
- package/lib/browser/remote-file-service-contribution.d.ts +7 -0
- package/lib/browser/remote-file-service-contribution.d.ts.map +1 -0
- package/lib/browser/remote-file-service-contribution.js +40 -0
- package/lib/browser/remote-file-service-contribution.js.map +1 -0
- package/lib/browser/upload/file-upload-service-impl.d.ts +77 -0
- package/lib/browser/upload/file-upload-service-impl.d.ts.map +1 -0
- package/lib/browser/upload/file-upload-service-impl.js +449 -0
- package/lib/browser/upload/file-upload-service-impl.js.map +1 -0
- package/lib/browser/vscode-file-service-contribution.d.ts +25 -0
- package/lib/browser/vscode-file-service-contribution.d.ts.map +1 -0
- package/lib/browser/vscode-file-service-contribution.js +99 -0
- package/lib/browser/vscode-file-service-contribution.js.map +1 -0
- package/lib/browser-only/browser-only-filesystem-frontend-module.d.ts +4 -0
- package/lib/browser-only/browser-only-filesystem-frontend-module.d.ts.map +1 -0
- package/lib/browser-only/browser-only-filesystem-frontend-module.js +49 -0
- package/lib/browser-only/browser-only-filesystem-frontend-module.js.map +1 -0
- package/lib/browser-only/browser-only-filesystem-provider-server.d.ts +12 -0
- package/lib/browser-only/browser-only-filesystem-provider-server.d.ts.map +1 -0
- package/lib/browser-only/browser-only-filesystem-provider-server.js +40 -0
- package/lib/browser-only/browser-only-filesystem-provider-server.js.map +1 -0
- package/lib/browser-only/download/file-download-command-contribution.d.ts +15 -0
- package/lib/browser-only/download/file-download-command-contribution.d.ts.map +1 -0
- package/lib/browser-only/download/file-download-command-contribution.js +55 -0
- package/lib/browser-only/download/file-download-command-contribution.js.map +1 -0
- package/lib/browser-only/download/file-download-frontend-module.d.ts +4 -0
- package/lib/browser-only/download/file-download-frontend-module.d.ts.map +1 -0
- package/lib/browser-only/download/file-download-frontend-module.js +27 -0
- package/lib/browser-only/download/file-download-frontend-module.js.map +1 -0
- package/lib/browser-only/download/file-download-service.d.ts +86 -0
- package/lib/browser-only/download/file-download-service.d.ts.map +1 -0
- package/lib/browser-only/download/file-download-service.js +551 -0
- package/lib/browser-only/download/file-download-service.js.map +1 -0
- package/lib/browser-only/file-search.d.ts +38 -0
- package/lib/browser-only/file-search.d.ts.map +1 -0
- package/lib/browser-only/file-search.js +153 -0
- package/lib/browser-only/file-search.js.map +1 -0
- package/lib/browser-only/opfs-filesystem-initialization.d.ts +13 -0
- package/lib/browser-only/opfs-filesystem-initialization.d.ts.map +1 -0
- package/lib/browser-only/opfs-filesystem-initialization.js +36 -0
- package/lib/browser-only/opfs-filesystem-initialization.js.map +1 -0
- package/lib/browser-only/opfs-filesystem-provider.d.ts +108 -0
- package/lib/browser-only/opfs-filesystem-provider.d.ts.map +1 -0
- package/lib/browser-only/opfs-filesystem-provider.js +487 -0
- package/lib/browser-only/opfs-filesystem-provider.js.map +1 -0
- package/lib/browser-only/upload/file-upload-service-impl.d.ts +67 -0
- package/lib/browser-only/upload/file-upload-service-impl.d.ts.map +1 -0
- package/lib/browser-only/upload/file-upload-service-impl.js +328 -0
- package/lib/browser-only/upload/file-upload-service-impl.js.map +1 -0
- package/lib/common/delegating-file-system-provider.d.ts +77 -0
- package/lib/common/delegating-file-system-provider.d.ts.map +1 -0
- package/lib/common/delegating-file-system-provider.js +169 -0
- package/lib/common/delegating-file-system-provider.js.map +1 -0
- package/lib/common/download/file-download.d.ts +17 -0
- package/lib/common/download/file-download.d.ts.map +1 -0
- package/lib/common/download/file-download.js +28 -0
- package/lib/common/download/file-download.js.map +1 -0
- package/lib/common/file-upload.d.ts +2 -0
- package/lib/common/file-upload.d.ts.map +1 -0
- package/lib/common/file-upload.js +20 -0
- package/lib/common/file-upload.js.map +1 -0
- package/lib/common/files.d.ts +668 -0
- package/lib/common/files.d.ts.map +1 -0
- package/lib/common/files.js +390 -0
- package/lib/common/files.js.map +1 -0
- package/lib/common/files.spec.d.ts +2 -0
- package/lib/common/files.spec.d.ts.map +1 -0
- package/lib/common/files.spec.js +52 -0
- package/lib/common/files.spec.js.map +1 -0
- package/lib/common/filesystem-preferences.d.ts +33 -0
- package/lib/common/filesystem-preferences.d.ts.map +1 -0
- package/lib/common/filesystem-preferences.js +122 -0
- package/lib/common/filesystem-preferences.js.map +1 -0
- package/lib/common/filesystem-utils.d.ts +15 -0
- package/lib/common/filesystem-utils.d.ts.map +1 -0
- package/lib/common/filesystem-utils.js +64 -0
- package/lib/common/filesystem-utils.js.map +1 -0
- package/lib/common/filesystem-utils.spec.d.ts +2 -0
- package/lib/common/filesystem-utils.spec.d.ts.map +1 -0
- package/lib/common/filesystem-utils.spec.js +379 -0
- package/lib/common/filesystem-utils.spec.js.map +1 -0
- package/lib/common/filesystem-watcher-protocol.d.ts +72 -0
- package/lib/common/filesystem-watcher-protocol.d.ts.map +1 -0
- package/lib/common/filesystem-watcher-protocol.js +21 -0
- package/lib/common/filesystem-watcher-protocol.js.map +1 -0
- package/lib/common/filesystem.d.ts +23 -0
- package/lib/common/filesystem.d.ts.map +1 -0
- package/lib/common/filesystem.js +43 -0
- package/lib/common/filesystem.js.map +1 -0
- package/lib/common/index.d.ts +4 -0
- package/lib/common/index.d.ts.map +1 -0
- package/lib/common/index.js +22 -0
- package/lib/common/index.js.map +1 -0
- package/lib/common/io.d.ts +20 -0
- package/lib/common/io.d.ts.map +1 -0
- package/lib/common/io.js +117 -0
- package/lib/common/io.js.map +1 -0
- package/lib/common/remote-file-system-provider.d.ts +174 -0
- package/lib/common/remote-file-system-provider.d.ts.map +1 -0
- package/lib/common/remote-file-system-provider.js +435 -0
- package/lib/common/remote-file-system-provider.js.map +1 -0
- package/lib/common/upload/file-upload.d.ts +45 -0
- package/lib/common/upload/file-upload.d.ts.map +1 -0
- package/lib/common/upload/file-upload.js +20 -0
- package/lib/common/upload/file-upload.js.map +1 -0
- package/lib/electron-browser/file-dialog/electron-file-dialog-module.d.ts +4 -0
- package/lib/electron-browser/file-dialog/electron-file-dialog-module.d.ts.map +1 -0
- package/lib/electron-browser/file-dialog/electron-file-dialog-module.js +25 -0
- package/lib/electron-browser/file-dialog/electron-file-dialog-module.js.map +1 -0
- package/lib/electron-browser/file-dialog/electron-file-dialog-service.d.ts +20 -0
- package/lib/electron-browser/file-dialog/electron-file-dialog-service.d.ts.map +1 -0
- package/lib/electron-browser/file-dialog/electron-file-dialog-service.js +149 -0
- package/lib/electron-browser/file-dialog/electron-file-dialog-service.js.map +1 -0
- package/lib/electron-browser/preload.d.ts +2 -0
- package/lib/electron-browser/preload.d.ts.map +1 -0
- package/lib/electron-browser/preload.js +31 -0
- package/lib/electron-browser/preload.js.map +1 -0
- package/lib/electron-common/electron-api.d.ts +35 -0
- package/lib/electron-common/electron-api.d.ts.map +1 -0
- package/lib/electron-common/electron-api.js +21 -0
- package/lib/electron-common/electron-api.js.map +1 -0
- package/lib/electron-main/electron-api-main.d.ts +6 -0
- package/lib/electron-main/electron-api-main.d.ts.map +1 -0
- package/lib/electron-main/electron-api-main.js +74 -0
- package/lib/electron-main/electron-api-main.js.map +1 -0
- package/lib/electron-main/electron-main-module.d.ts +4 -0
- package/lib/electron-main/electron-main-module.d.ts.map +1 -0
- package/lib/electron-main/electron-main-module.js +25 -0
- package/lib/electron-main/electron-main-module.js.map +1 -0
- package/lib/node/disk-file-system-provider.d.ts +73 -0
- package/lib/node/disk-file-system-provider.d.ts.map +1 -0
- package/lib/node/disk-file-system-provider.js +786 -0
- package/lib/node/disk-file-system-provider.js.map +1 -0
- package/lib/node/disk-file-system-provider.spec.d.ts +2 -0
- package/lib/node/disk-file-system-provider.spec.d.ts.map +1 -0
- package/lib/node/disk-file-system-provider.spec.js +123 -0
- package/lib/node/disk-file-system-provider.spec.js.map +1 -0
- package/lib/node/download/directory-archiver.d.ts +10 -0
- package/lib/node/download/directory-archiver.d.ts.map +1 -0
- package/lib/node/download/directory-archiver.js +128 -0
- package/lib/node/download/directory-archiver.js.map +1 -0
- package/lib/node/download/directory-archiver.spec.d.ts +2 -0
- package/lib/node/download/directory-archiver.spec.d.ts.map +1 -0
- package/lib/node/download/directory-archiver.spec.js +98 -0
- package/lib/node/download/directory-archiver.spec.js.map +1 -0
- package/lib/node/download/file-download-backend-module.d.ts +4 -0
- package/lib/node/download/file-download-backend-module.d.ts.map +1 -0
- package/lib/node/download/file-download-backend-module.js +33 -0
- package/lib/node/download/file-download-backend-module.js.map +1 -0
- package/lib/node/download/file-download-cache.d.ts +22 -0
- package/lib/node/download/file-download-cache.d.ts.map +1 -0
- package/lib/node/download/file-download-cache.js +81 -0
- package/lib/node/download/file-download-cache.js.map +1 -0
- package/lib/node/download/file-download-endpoint.d.ts +12 -0
- package/lib/node/download/file-download-endpoint.d.ts.map +1 -0
- package/lib/node/download/file-download-endpoint.js +68 -0
- package/lib/node/download/file-download-endpoint.js.map +1 -0
- package/lib/node/download/file-download-handler.d.ts +51 -0
- package/lib/node/download/file-download-handler.d.ts.map +1 -0
- package/lib/node/download/file-download-handler.js +307 -0
- package/lib/node/download/file-download-handler.js.map +1 -0
- package/lib/node/download/test/mock-directory-archiver.d.ts +8 -0
- package/lib/node/download/test/mock-directory-archiver.d.ts.map +1 -0
- package/lib/node/download/test/mock-directory-archiver.js +30 -0
- package/lib/node/download/test/mock-directory-archiver.js.map +1 -0
- package/lib/node/file-change-collection.d.ts +23 -0
- package/lib/node/file-change-collection.d.ts.map +1 -0
- package/lib/node/file-change-collection.js +78 -0
- package/lib/node/file-change-collection.js.map +1 -0
- package/lib/node/file-change-collection.spec.d.ts +2 -0
- package/lib/node/file-change-collection.spec.d.ts.map +1 -0
- package/lib/node/file-change-collection.spec.js +91 -0
- package/lib/node/file-change-collection.spec.js.map +1 -0
- package/lib/node/filesystem-backend-module.d.ts +27 -0
- package/lib/node/filesystem-backend-module.d.ts.map +1 -0
- package/lib/node/filesystem-backend-module.js +123 -0
- package/lib/node/filesystem-backend-module.js.map +1 -0
- package/lib/node/filesystem-watcher-client.d.ts +23 -0
- package/lib/node/filesystem-watcher-client.d.ts.map +1 -0
- package/lib/node/filesystem-watcher-client.js +75 -0
- package/lib/node/filesystem-watcher-client.js.map +1 -0
- package/lib/node/filesystem-watcher-dispatcher.d.ts +24 -0
- package/lib/node/filesystem-watcher-dispatcher.d.ts.map +1 -0
- package/lib/node/filesystem-watcher-dispatcher.js +81 -0
- package/lib/node/filesystem-watcher-dispatcher.js.map +1 -0
- package/lib/node/parcel-watcher/index.d.ts +4 -0
- package/lib/node/parcel-watcher/index.d.ts.map +1 -0
- package/lib/node/parcel-watcher/index.js +40 -0
- package/lib/node/parcel-watcher/index.js.map +1 -0
- package/lib/node/parcel-watcher/parcel-filesystem-service.d.ts +193 -0
- package/lib/node/parcel-watcher/parcel-filesystem-service.d.ts.map +1 -0
- package/lib/node/parcel-watcher/parcel-filesystem-service.js +406 -0
- package/lib/node/parcel-watcher/parcel-filesystem-service.js.map +1 -0
- package/lib/node/parcel-watcher/parcel-filesystem-watcher.spec.d.ts +2 -0
- package/lib/node/parcel-watcher/parcel-filesystem-watcher.spec.d.ts.map +1 -0
- package/lib/node/parcel-watcher/parcel-filesystem-watcher.spec.js +145 -0
- package/lib/node/parcel-watcher/parcel-filesystem-watcher.spec.js.map +1 -0
- package/lib/node/parcel-watcher/parcel-options.d.ts +7 -0
- package/lib/node/parcel-watcher/parcel-options.d.ts.map +1 -0
- package/lib/node/parcel-watcher/parcel-options.js +23 -0
- package/lib/node/parcel-watcher/parcel-options.js.map +1 -0
- package/lib/node/upload/node-file-upload-service.d.ts +17 -0
- package/lib/node/upload/node-file-upload-service.d.ts.map +1 -0
- package/lib/node/upload/node-file-upload-service.js +87 -0
- package/lib/node/upload/node-file-upload-service.js.map +1 -0
- package/package.json +3 -3
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import URI from '@theia/core/lib/common/uri';
|
|
2
|
+
import { Breadcrumb } from '@theia/core/lib/browser/breadcrumbs/breadcrumbs-constants';
|
|
3
|
+
export declare class FilepathBreadcrumb implements Breadcrumb {
|
|
4
|
+
readonly uri: URI;
|
|
5
|
+
readonly label: string;
|
|
6
|
+
readonly longLabel: string;
|
|
7
|
+
readonly iconClass: string;
|
|
8
|
+
readonly containerClass: string;
|
|
9
|
+
constructor(uri: URI, label: string, longLabel: string, iconClass: string, containerClass: string);
|
|
10
|
+
get id(): string;
|
|
11
|
+
get type(): symbol;
|
|
12
|
+
}
|
|
13
|
+
export declare namespace FilepathBreadcrumb {
|
|
14
|
+
function is(breadcrumb: Breadcrumb): breadcrumb is FilepathBreadcrumb;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=filepath-breadcrumb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filepath-breadcrumb.d.ts","sourceRoot":"","sources":["../../../src/browser/breadcrumbs/filepath-breadcrumb.ts"],"names":[],"mappings":"AAgBA,OAAO,GAAG,MAAM,4BAA4B,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,2DAA2D,CAAC;AAGvF,qBAAa,kBAAmB,YAAW,UAAU;IAE7C,QAAQ,CAAC,GAAG,EAAE,GAAG;IACjB,QAAQ,CAAC,KAAK,EAAE,MAAM;IACtB,QAAQ,CAAC,SAAS,EAAE,MAAM;IAC1B,QAAQ,CAAC,SAAS,EAAE,MAAM;IAC1B,QAAQ,CAAC,cAAc,EAAE,MAAM;gBAJtB,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,cAAc,EAAE,MAAM;IAGnC,IAAI,EAAE,IAAI,MAAM,CAEf;IAED,IAAI,IAAI,IAAI,MAAM,CAEjB;CACJ;AAED,yBAAiB,kBAAkB,CAAC;IAChC,SAAgB,EAAE,CAAC,UAAU,EAAE,UAAU,GAAG,UAAU,IAAI,kBAAkB,CAE3E;CACJ"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2019 TypeFox and others.
|
|
4
|
+
//
|
|
5
|
+
// This program and the accompanying materials are made available under the
|
|
6
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
+
//
|
|
9
|
+
// This Source Code may also be made available under the following Secondary
|
|
10
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
+
// with the GNU Classpath Exception which is available at
|
|
13
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
+
//
|
|
15
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
+
// *****************************************************************************
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.FilepathBreadcrumb = void 0;
|
|
19
|
+
const filepath_breadcrumbs_contribution_1 = require("./filepath-breadcrumbs-contribution");
|
|
20
|
+
class FilepathBreadcrumb {
|
|
21
|
+
constructor(uri, label, longLabel, iconClass, containerClass) {
|
|
22
|
+
this.uri = uri;
|
|
23
|
+
this.label = label;
|
|
24
|
+
this.longLabel = longLabel;
|
|
25
|
+
this.iconClass = iconClass;
|
|
26
|
+
this.containerClass = containerClass;
|
|
27
|
+
}
|
|
28
|
+
get id() {
|
|
29
|
+
return this.type.toString() + '_' + this.uri.toString();
|
|
30
|
+
}
|
|
31
|
+
get type() {
|
|
32
|
+
return filepath_breadcrumbs_contribution_1.FilepathBreadcrumbType;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.FilepathBreadcrumb = FilepathBreadcrumb;
|
|
36
|
+
(function (FilepathBreadcrumb) {
|
|
37
|
+
function is(breadcrumb) {
|
|
38
|
+
return 'uri' in breadcrumb;
|
|
39
|
+
}
|
|
40
|
+
FilepathBreadcrumb.is = is;
|
|
41
|
+
})(FilepathBreadcrumb || (exports.FilepathBreadcrumb = FilepathBreadcrumb = {}));
|
|
42
|
+
//# sourceMappingURL=filepath-breadcrumb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filepath-breadcrumb.js","sourceRoot":"","sources":["../../../src/browser/breadcrumbs/filepath-breadcrumb.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;AAIhF,2FAA6E;AAE7E,MAAa,kBAAkB;IAC3B,YACa,GAAQ,EACR,KAAa,EACb,SAAiB,EACjB,SAAiB,EACjB,cAAsB;QAJtB,QAAG,GAAH,GAAG,CAAK;QACR,UAAK,GAAL,KAAK,CAAQ;QACb,cAAS,GAAT,SAAS,CAAQ;QACjB,cAAS,GAAT,SAAS,CAAQ;QACjB,mBAAc,GAAd,cAAc,CAAQ;IAC/B,CAAC;IAEL,IAAI,EAAE;QACF,OAAO,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;IAC5D,CAAC;IAED,IAAI,IAAI;QACJ,OAAO,0DAAsB,CAAC;IAClC,CAAC;CACJ;AAhBD,gDAgBC;AAED,WAAiB,kBAAkB;IAC/B,SAAgB,EAAE,CAAC,UAAsB;QACrC,OAAO,KAAK,IAAI,UAAU,CAAC;IAC/B,CAAC;IAFe,qBAAE,KAEjB,CAAA;AACL,CAAC,EAJgB,kBAAkB,kCAAlB,kBAAkB,QAIlC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Container, interfaces } from '@theia/core/shared/inversify';
|
|
3
|
+
import { TreeProps, ContextMenuRenderer, TreeNode, NodeProps } from '@theia/core/lib/browser';
|
|
4
|
+
import { FileTreeModel, FileTreeWidget } from '../file-tree';
|
|
5
|
+
export declare function createFileTreeBreadcrumbsContainer(parent: interfaces.Container): Container;
|
|
6
|
+
export declare function createFileTreeBreadcrumbsWidget(parent: interfaces.Container): BreadcrumbsFileTreeWidget;
|
|
7
|
+
export declare class BreadcrumbsFileTreeWidget extends FileTreeWidget {
|
|
8
|
+
readonly model: FileTreeModel;
|
|
9
|
+
constructor(props: TreeProps, model: FileTreeModel, contextMenuRenderer: ContextMenuRenderer);
|
|
10
|
+
protected createNodeAttributes(node: TreeNode, props: NodeProps): React.Attributes & React.HTMLAttributes<HTMLElement>;
|
|
11
|
+
protected tapNode(node?: TreeNode): void;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=filepath-breadcrumbs-container.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filepath-breadcrumbs-container.d.ts","sourceRoot":"","sources":["../../../src/browser/breadcrumbs/filepath-breadcrumbs-container.ts"],"names":[],"mappings":";AAgBA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAsB,MAAM,8BAA8B,CAAC;AACzF,OAAO,EAAE,SAAS,EAAE,mBAAmB,EAAE,QAAQ,EAAQ,SAAS,EAAoB,MAAM,yBAAyB,CAAC;AACtH,OAAO,EAAE,aAAa,EAAyC,cAAc,EAAE,MAAM,cAAc,CAAC;AAIpG,wBAAgB,kCAAkC,CAAC,MAAM,EAAE,UAAU,CAAC,SAAS,GAAG,SAAS,CAM1F;AAED,wBAAgB,+BAA+B,CAAC,MAAM,EAAE,UAAU,CAAC,SAAS,GAAG,yBAAyB,CAEvG;AAED,qBACa,yBAA0B,SAAQ,cAAc;aAIZ,KAAK,EAAE,aAAa;gBAD1C,KAAK,EAAE,SAAS,EACM,KAAK,EAAE,aAAa,EAChC,mBAAmB,EAAE,mBAAmB;cAMtD,oBAAoB,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,GAAG,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;cAQ5G,OAAO,CAAC,IAAI,CAAC,EAAE,QAAQ,GAAG,IAAI;CAOpD"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2019 TypeFox and others.
|
|
4
|
+
//
|
|
5
|
+
// This program and the accompanying materials are made available under the
|
|
6
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
+
//
|
|
9
|
+
// This Source Code may also be made available under the following Secondary
|
|
10
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
+
// with the GNU Classpath Exception which is available at
|
|
13
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
+
//
|
|
15
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
+
// *****************************************************************************
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.BreadcrumbsFileTreeWidget = exports.createFileTreeBreadcrumbsWidget = exports.createFileTreeBreadcrumbsContainer = void 0;
|
|
19
|
+
const tslib_1 = require("tslib");
|
|
20
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
21
|
+
const browser_1 = require("@theia/core/lib/browser");
|
|
22
|
+
const file_tree_1 = require("../file-tree");
|
|
23
|
+
const BREADCRUMBS_FILETREE_CLASS = 'theia-FilepathBreadcrumbFileTree';
|
|
24
|
+
function createFileTreeBreadcrumbsContainer(parent) {
|
|
25
|
+
const child = (0, file_tree_1.createFileTreeContainer)(parent);
|
|
26
|
+
child.unbind(file_tree_1.FileTreeWidget);
|
|
27
|
+
child.rebind(browser_1.TreeProps).toConstantValue({ ...browser_1.defaultTreeProps, virtualized: false });
|
|
28
|
+
child.bind(BreadcrumbsFileTreeWidget).toSelf();
|
|
29
|
+
return child;
|
|
30
|
+
}
|
|
31
|
+
exports.createFileTreeBreadcrumbsContainer = createFileTreeBreadcrumbsContainer;
|
|
32
|
+
function createFileTreeBreadcrumbsWidget(parent) {
|
|
33
|
+
return createFileTreeBreadcrumbsContainer(parent).get(BreadcrumbsFileTreeWidget);
|
|
34
|
+
}
|
|
35
|
+
exports.createFileTreeBreadcrumbsWidget = createFileTreeBreadcrumbsWidget;
|
|
36
|
+
let BreadcrumbsFileTreeWidget = class BreadcrumbsFileTreeWidget extends file_tree_1.FileTreeWidget {
|
|
37
|
+
constructor(props, model, contextMenuRenderer) {
|
|
38
|
+
super(props, model, contextMenuRenderer);
|
|
39
|
+
this.model = model;
|
|
40
|
+
this.addClass(BREADCRUMBS_FILETREE_CLASS);
|
|
41
|
+
}
|
|
42
|
+
createNodeAttributes(node, props) {
|
|
43
|
+
const elementAttrs = super.createNodeAttributes(node, props);
|
|
44
|
+
return {
|
|
45
|
+
...elementAttrs,
|
|
46
|
+
draggable: false
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
tapNode(node) {
|
|
50
|
+
if (file_tree_1.FileStatNode.is(node) && !node.fileStat.isDirectory) {
|
|
51
|
+
(0, browser_1.open)(this.openerService, node.uri, { preview: true });
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
super.tapNode(node);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
exports.BreadcrumbsFileTreeWidget = BreadcrumbsFileTreeWidget;
|
|
59
|
+
exports.BreadcrumbsFileTreeWidget = BreadcrumbsFileTreeWidget = tslib_1.__decorate([
|
|
60
|
+
(0, inversify_1.injectable)(),
|
|
61
|
+
tslib_1.__param(0, (0, inversify_1.inject)(browser_1.TreeProps)),
|
|
62
|
+
tslib_1.__param(1, (0, inversify_1.inject)(file_tree_1.FileTreeModel)),
|
|
63
|
+
tslib_1.__param(2, (0, inversify_1.inject)(browser_1.ContextMenuRenderer)),
|
|
64
|
+
tslib_1.__metadata("design:paramtypes", [Object, file_tree_1.FileTreeModel,
|
|
65
|
+
browser_1.ContextMenuRenderer])
|
|
66
|
+
], BreadcrumbsFileTreeWidget);
|
|
67
|
+
//# sourceMappingURL=filepath-breadcrumbs-container.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filepath-breadcrumbs-container.js","sourceRoot":"","sources":["../../../src/browser/breadcrumbs/filepath-breadcrumbs-container.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;AAEhF,4DAAyF;AACzF,qDAAsH;AACtH,4CAAoG;AAEpG,MAAM,0BAA0B,GAAG,kCAAkC,CAAC;AAEtE,SAAgB,kCAAkC,CAAC,MAA4B;IAC3E,MAAM,KAAK,GAAG,IAAA,mCAAuB,EAAC,MAAM,CAAC,CAAC;IAC9C,KAAK,CAAC,MAAM,CAAC,0BAAc,CAAC,CAAC;IAC7B,KAAK,CAAC,MAAM,CAAC,mBAAS,CAAC,CAAC,eAAe,CAAC,EAAE,GAAG,0BAAgB,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC,CAAC;IACrF,KAAK,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAC,MAAM,EAAE,CAAC;IAC/C,OAAO,KAAK,CAAC;AACjB,CAAC;AAND,gFAMC;AAED,SAA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|
|
|
1
|
+
import { Disposable, Emitter, Event } from '@theia/core';
|
|
2
|
+
import URI from '@theia/core/lib/common/uri';
|
|
3
|
+
import { Breadcrumb, BreadcrumbsContribution, LabelProvider } from '@theia/core/lib/browser';
|
|
4
|
+
import { FilepathBreadcrumb } from './filepath-breadcrumb';
|
|
5
|
+
import { BreadcrumbsFileTreeWidget } from './filepath-breadcrumbs-container';
|
|
6
|
+
import { DirNode } from '../file-tree';
|
|
7
|
+
import { FileService } from '../file-service';
|
|
8
|
+
import { FileStat } from '../../common/files';
|
|
9
|
+
export declare const FilepathBreadcrumbType: unique symbol;
|
|
10
|
+
export interface FilepathBreadcrumbClassNameFactory {
|
|
11
|
+
(location: URI, index: number): string;
|
|
12
|
+
}
|
|
13
|
+
export declare class FilepathBreadcrumbsContribution implements BreadcrumbsContribution {
|
|
14
|
+
protected readonly labelProvider: LabelProvider;
|
|
15
|
+
protected readonly fileSystem: FileService;
|
|
16
|
+
protected readonly breadcrumbsFileTreeWidget: BreadcrumbsFileTreeWidget;
|
|
17
|
+
protected readonly onDidChangeBreadcrumbsEmitter: Emitter<URI>;
|
|
18
|
+
get onDidChangeBreadcrumbs(): Event<URI>;
|
|
19
|
+
readonly type: symbol;
|
|
20
|
+
readonly priority: number;
|
|
21
|
+
computeBreadcrumbs(uri: URI): Promise<Breadcrumb[]>;
|
|
22
|
+
protected getContainerClassCreator(fileURI: URI): FilepathBreadcrumbClassNameFactory;
|
|
23
|
+
protected getIconClassCreator(fileURI: URI): FilepathBreadcrumbClassNameFactory;
|
|
24
|
+
protected filterBreadcrumbs(_: URI, breadcrumb: FilepathBreadcrumb): boolean;
|
|
25
|
+
attachPopupContent(breadcrumb: Breadcrumb, parent: HTMLElement): Promise<Disposable | undefined>;
|
|
26
|
+
protected createRootNode(folderToOpen: FileStat): Promise<DirNode | undefined>;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=filepath-breadcrumbs-contribution.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|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E,GAAG,GAAG,kCAAkC;IAIpF,SAAS,CAAC,mBAAmB,CAAC,OAAO,EAAE,GAAG,GAAG,kCAAkC;IAI/E,SAAS,CAAC,iBAAiB,CAAC,CAAC,EAAE,GAAG,EAAE,UAAU,EAAE,kBAAkB,GAAG,OAAO;IAItE,kBAAkB,CAAC,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC;cAkCtF,cAAc,CAAC,YAAY,EAAE,QAAQ,GAAG,OAAO,CAAC,OAAO,GAAG,SAAS,CAAC;CAQvF"}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2019 TypeFox and others.
|
|
4
|
+
//
|
|
5
|
+
// This program and the accompanying materials are made available under the
|
|
6
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
+
//
|
|
9
|
+
// This Source Code may also be made available under the following Secondary
|
|
10
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
+
// with the GNU Classpath Exception which is available at
|
|
13
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
+
//
|
|
15
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
+
// *****************************************************************************
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.FilepathBreadcrumbsContribution = exports.FilepathBreadcrumbType = void 0;
|
|
19
|
+
const tslib_1 = require("tslib");
|
|
20
|
+
const core_1 = require("@theia/core");
|
|
21
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
22
|
+
const browser_1 = require("@theia/core/lib/browser");
|
|
23
|
+
const filepath_breadcrumb_1 = require("./filepath-breadcrumb");
|
|
24
|
+
const filepath_breadcrumbs_container_1 = require("./filepath-breadcrumbs-container");
|
|
25
|
+
const file_tree_1 = require("../file-tree");
|
|
26
|
+
const file_service_1 = require("../file-service");
|
|
27
|
+
exports.FilepathBreadcrumbType = Symbol('FilepathBreadcrumb');
|
|
28
|
+
let FilepathBreadcrumbsContribution = class FilepathBreadcrumbsContribution {
|
|
29
|
+
constructor() {
|
|
30
|
+
this.onDidChangeBreadcrumbsEmitter = new core_1.Emitter();
|
|
31
|
+
this.type = exports.FilepathBreadcrumbType;
|
|
32
|
+
this.priority = 100;
|
|
33
|
+
}
|
|
34
|
+
get onDidChangeBreadcrumbs() {
|
|
35
|
+
return this.onDidChangeBreadcrumbsEmitter.event;
|
|
36
|
+
}
|
|
37
|
+
async computeBreadcrumbs(uri) {
|
|
38
|
+
if (uri.scheme !== 'file') {
|
|
39
|
+
return [];
|
|
40
|
+
}
|
|
41
|
+
const getContainerClass = this.getContainerClassCreator(uri);
|
|
42
|
+
const getIconClass = this.getIconClassCreator(uri);
|
|
43
|
+
return uri.allLocations
|
|
44
|
+
.map((location, index) => {
|
|
45
|
+
const icon = getIconClass(location, index);
|
|
46
|
+
const containerClass = getContainerClass(location, index);
|
|
47
|
+
return new filepath_breadcrumb_1.FilepathBreadcrumb(location, this.labelProvider.getName(location), this.labelProvider.getLongName(location), icon, containerClass);
|
|
48
|
+
})
|
|
49
|
+
.filter(b => this.filterBreadcrumbs(uri, b))
|
|
50
|
+
.reverse();
|
|
51
|
+
}
|
|
52
|
+
getContainerClassCreator(fileURI) {
|
|
53
|
+
return (location, index) => location.isEqual(fileURI) ? 'file' : 'folder';
|
|
54
|
+
}
|
|
55
|
+
getIconClassCreator(fileURI) {
|
|
56
|
+
return (location, index) => location.isEqual(fileURI) ? this.labelProvider.getIcon(location) + ' file-icon' : '';
|
|
57
|
+
}
|
|
58
|
+
filterBreadcrumbs(_, breadcrumb) {
|
|
59
|
+
return !breadcrumb.uri.path.isRoot;
|
|
60
|
+
}
|
|
61
|
+
async attachPopupContent(breadcrumb, parent) {
|
|
62
|
+
if (!filepath_breadcrumb_1.FilepathBreadcrumb.is(breadcrumb)) {
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
const folderFileStat = await this.fileSystem.resolve(breadcrumb.uri.parent);
|
|
66
|
+
if (folderFileStat) {
|
|
67
|
+
const rootNode = await this.createRootNode(folderFileStat);
|
|
68
|
+
if (rootNode) {
|
|
69
|
+
const { model } = this.breadcrumbsFileTreeWidget;
|
|
70
|
+
await model.navigateTo({ ...rootNode, visible: false });
|
|
71
|
+
browser_1.Widget.attach(this.breadcrumbsFileTreeWidget, parent);
|
|
72
|
+
const toDisposeOnTreePopulated = model.onChanged(() => {
|
|
73
|
+
if (browser_1.CompositeTreeNode.is(model.root) && model.root.children.length > 0) {
|
|
74
|
+
toDisposeOnTreePopulated.dispose();
|
|
75
|
+
const targetNode = model.getNode(breadcrumb.uri.path.toString());
|
|
76
|
+
if (targetNode && browser_1.SelectableTreeNode.is(targetNode)) {
|
|
77
|
+
model.selectNode(targetNode);
|
|
78
|
+
}
|
|
79
|
+
this.breadcrumbsFileTreeWidget.activate();
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
return {
|
|
83
|
+
dispose: () => {
|
|
84
|
+
// Clear model otherwise the next time a popup is opened the old model is rendered first
|
|
85
|
+
// and is shown for a short time period.
|
|
86
|
+
toDisposeOnTreePopulated.dispose();
|
|
87
|
+
this.breadcrumbsFileTreeWidget.model.root = undefined;
|
|
88
|
+
browser_1.Widget.detach(this.breadcrumbsFileTreeWidget);
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
async createRootNode(folderToOpen) {
|
|
95
|
+
const folderUri = folderToOpen.resource;
|
|
96
|
+
const rootUri = folderToOpen.isDirectory ? folderUri : folderUri.parent;
|
|
97
|
+
const rootStat = await this.fileSystem.resolve(rootUri);
|
|
98
|
+
if (rootStat) {
|
|
99
|
+
return file_tree_1.DirNode.createRoot(rootStat);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
exports.FilepathBreadcrumbsContribution = FilepathBreadcrumbsContribution;
|
|
104
|
+
tslib_1.__decorate([
|
|
105
|
+
(0, inversify_1.inject)(browser_1.LabelProvider),
|
|
106
|
+
tslib_1.__metadata("design:type", browser_1.LabelProvider)
|
|
107
|
+
], FilepathBreadcrumbsContribution.prototype, "labelProvider", void 0);
|
|
108
|
+
tslib_1.__decorate([
|
|
109
|
+
(0, inversify_1.inject)(file_service_1.FileService),
|
|
110
|
+
tslib_1.__metadata("design:type", file_service_1.FileService)
|
|
111
|
+
], FilepathBreadcrumbsContribution.prototype, "fileSystem", void 0);
|
|
112
|
+
tslib_1.__decorate([
|
|
113
|
+
(0, inversify_1.inject)(filepath_breadcrumbs_container_1.BreadcrumbsFileTreeWidget),
|
|
114
|
+
tslib_1.__metadata("design:type", filepath_breadcrumbs_container_1.BreadcrumbsFileTreeWidget)
|
|
115
|
+
], FilepathBreadcrumbsContribution.prototype, "breadcrumbsFileTreeWidget", void 0);
|
|
116
|
+
exports.FilepathBreadcrumbsContribution = FilepathBreadcrumbsContribution = tslib_1.__decorate([
|
|
117
|
+
(0, inversify_1.injectable)()
|
|
118
|
+
], FilepathBreadcrumbsContribution);
|
|
119
|
+
//# sourceMappingURL=filepath-breadcrumbs-contribution.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filepath-breadcrumbs-contribution.js","sourceRoot":"","sources":["../../../src/browser/breadcrumbs/filepath-breadcrumbs-contribution.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;AAEh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C;IACL,CAAC;CACJ,CAAA;AA/FY,0EAA+B;AAGrB;IADlB,IAAA,kBAAM,EAAC,uBAAa,CAAC;sCACY,uBAAa;sEAAC;AAG7B;IADlB,IAAA,kBAAM,EAAC,0BAAW,CAAC;sCACW,0BAAW;mEAAC;AAGxB;IADlB,IAAA,kBAAM,EAAC,0DAAyB,CAAC;sCACY,0DAAyB;kFAAC;0CAT/D,+BAA+B;IAD3C,IAAA,sBAAU,GAAE;GACA,+BAA+B,CA+F3C"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import URI from '@theia/core/lib/common/uri';
|
|
2
|
+
import { SelectionService } from '@theia/core/lib/common/selection-service';
|
|
3
|
+
import { Command, CommandContribution, CommandRegistry } from '@theia/core/lib/common/command';
|
|
4
|
+
import { FileDownloadService } from '../../common/download/file-download';
|
|
5
|
+
export declare class FileDownloadCommandContribution implements CommandContribution {
|
|
6
|
+
protected readonly downloadService: FileDownloadService;
|
|
7
|
+
protected readonly selectionService: SelectionService;
|
|
8
|
+
registerCommands(registry: CommandRegistry): void;
|
|
9
|
+
protected executeDownload(uris: URI[], options?: {
|
|
10
|
+
copyLink?: boolean;
|
|
11
|
+
}): Promise<void>;
|
|
12
|
+
protected isDownloadEnabled(uris: URI[]): boolean;
|
|
13
|
+
protected isDownloadVisible(uris: URI[]): boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare namespace FileDownloadCommands {
|
|
16
|
+
const DOWNLOAD: Command;
|
|
17
|
+
const COPY_DOWNLOAD_LINK: Command;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=file-download-command-contribution.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-download-command-contribution.d.ts","sourceRoot":"","sources":["../../../src/browser/download/file-download-command-contribution.ts"],"names":[],"mappings":"AAiBA,OAAO,GAAG,MAAM,4BAA4B,CAAC;AAG7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAE/F,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAG1E,qBACa,+BAAgC,YAAW,mBAAmB;IAGvE,SAAS,CAAC,QAAQ,CAAC,eAAe,EAAE,mBAAmB,CAAC;IAGxD,SAAS,CAAC,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IAEtD,gBAAgB,CAAC,QAAQ,EAAE,eAAe,GAAG,IAAI;cAmBjC,eAAe,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE,OAAO,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAI7F,SAAS,CAAC,iBAAiB,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,OAAO;IAIjD,SAAS,CAAC,iBAAiB,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,OAAO;CAIpD;AAED,yBAAiB,oBAAoB,CAAC;IAE3B,MAAM,QAAQ,SAInB,CAAC;IAEI,MAAM,kBAAkB,SAI0C,CAAC;CAE7E"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2018 TypeFox and others.
|
|
4
|
+
//
|
|
5
|
+
// This program and the accompanying materials are made available under the
|
|
6
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
+
//
|
|
9
|
+
// This Source Code may also be made available under the following Secondary
|
|
10
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
+
// with the GNU Classpath Exception which is available at
|
|
13
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
+
//
|
|
15
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
+
// *****************************************************************************
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.FileDownloadCommands = exports.FileDownloadCommandContribution = void 0;
|
|
19
|
+
const tslib_1 = require("tslib");
|
|
20
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
21
|
+
const browser_1 = require("@theia/core/lib/browser/browser");
|
|
22
|
+
const environment_1 = require("@theia/core/shared/@theia/application-package/lib/environment");
|
|
23
|
+
const selection_service_1 = require("@theia/core/lib/common/selection-service");
|
|
24
|
+
const command_1 = require("@theia/core/lib/common/command");
|
|
25
|
+
const uri_command_handler_1 = require("@theia/core/lib/common/uri-command-handler");
|
|
26
|
+
const file_download_1 = require("../../common/download/file-download");
|
|
27
|
+
const browser_2 = require("@theia/core/lib/browser");
|
|
28
|
+
let FileDownloadCommandContribution = class FileDownloadCommandContribution {
|
|
29
|
+
registerCommands(registry) {
|
|
30
|
+
registry.registerCommand(FileDownloadCommands.DOWNLOAD, uri_command_handler_1.UriAwareCommandHandler.MultiSelect(this.selectionService, {
|
|
31
|
+
execute: uris => this.executeDownload(uris),
|
|
32
|
+
isEnabled: uris => this.isDownloadEnabled(uris),
|
|
33
|
+
isVisible: uris => this.isDownloadVisible(uris),
|
|
34
|
+
}));
|
|
35
|
+
registry.registerCommand(FileDownloadCommands.COPY_DOWNLOAD_LINK, uri_command_handler_1.UriAwareCommandHandler.MultiSelect(this.selectionService, {
|
|
36
|
+
execute: uris => this.executeDownload(uris, { copyLink: true }),
|
|
37
|
+
isEnabled: uris => browser_1.isChrome && this.isDownloadEnabled(uris),
|
|
38
|
+
isVisible: uris => browser_1.isChrome && this.isDownloadVisible(uris),
|
|
39
|
+
}));
|
|
40
|
+
}
|
|
41
|
+
async executeDownload(uris, options) {
|
|
42
|
+
this.downloadService.download(uris, options);
|
|
43
|
+
}
|
|
44
|
+
isDownloadEnabled(uris) {
|
|
45
|
+
return !environment_1.environment.electron.is() && uris.length > 0 && uris.every(u => u.scheme === 'file');
|
|
46
|
+
}
|
|
47
|
+
isDownloadVisible(uris) {
|
|
48
|
+
return this.isDownloadEnabled(uris);
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
exports.FileDownloadCommandContribution = FileDownloadCommandContribution;
|
|
52
|
+
tslib_1.__decorate([
|
|
53
|
+
(0, inversify_1.inject)(file_download_1.FileDownloadService),
|
|
54
|
+
tslib_1.__metadata("design:type", Object)
|
|
55
|
+
], FileDownloadCommandContribution.prototype, "downloadService", void 0);
|
|
56
|
+
tslib_1.__decorate([
|
|
57
|
+
(0, inversify_1.inject)(selection_service_1.SelectionService),
|
|
58
|
+
tslib_1.__metadata("design:type", selection_service_1.SelectionService)
|
|
59
|
+
], FileDownloadCommandContribution.prototype, "selectionService", void 0);
|
|
60
|
+
exports.FileDownloadCommandContribution = FileDownloadCommandContribution = tslib_1.__decorate([
|
|
61
|
+
(0, inversify_1.injectable)()
|
|
62
|
+
], FileDownloadCommandContribution);
|
|
63
|
+
var FileDownloadCommands;
|
|
64
|
+
(function (FileDownloadCommands) {
|
|
65
|
+
FileDownloadCommands.DOWNLOAD = command_1.Command.toDefaultLocalizedCommand({
|
|
66
|
+
id: 'file.download',
|
|
67
|
+
category: browser_2.CommonCommands.FILE_CATEGORY,
|
|
68
|
+
label: 'Download'
|
|
69
|
+
});
|
|
70
|
+
FileDownloadCommands.COPY_DOWNLOAD_LINK = command_1.Command.toLocalizedCommand({
|
|
71
|
+
id: 'file.copyDownloadLink',
|
|
72
|
+
category: browser_2.CommonCommands.FILE_CATEGORY,
|
|
73
|
+
label: 'Copy Download Link'
|
|
74
|
+
}, 'theia/filesystem/copyDownloadLink', browser_2.CommonCommands.FILE_CATEGORY_KEY);
|
|
75
|
+
})(FileDownloadCommands || (exports.FileDownloadCommands = FileDownloadCommands = {}));
|
|
76
|
+
//# sourceMappingURL=file-download-command-contribution.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-download-command-contribution.js","sourceRoot":"","sources":["../../../src/browser/download/file-download-command-contribution.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;AAEhF,4DAAkE;AAElE,6DAA2D;AAC3D,+FAA4F;AAC5F,gFAA4E;AAC5E,4DAA+F;AAC/F,oFAAoF;AACpF,uEAA0E;AAC1E,qDAAyD;AAGlD,IAAM,+BAA+B,GAArC,MAAM,+BAA+B;IAQxC,gBAAgB,CAAC,QAAyB;QACtC,QAAQ,CAAC,eAAe,CACpB,oBAAoB,CAAC,QAAQ,EAC7B,4CAAsB,CAAC,WAAW,CAAC,IAAI,CAAC,gBAAgB,EAAE;YACtD,OAAO,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC;YAC3C,SAAS,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC;YAC/C,SAAS,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC;SAClD,CAAC,CACL,CAAC;QACF,QAAQ,CAAC,eAAe,CACpB,oBAAoB,CAAC,kBAAkB,EACvC,4CAAsB,CAAC,WAAW,CAAC,IAAI,CAAC,gBAAgB,EAAE;YACtD,OAAO,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC,IAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;YAC/D,SAAS,EAAE,IAAI,CAAC,EAAE,CAAC,kBAAQ,IAAI,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC;YAC3D,SAAS,EAAE,IAAI,CAAC,EAAE,CAAC,kBAAQ,IA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
|
|
1
|
+
{"version":3,"file":"file-download-frontend-module.d.ts","sourceRoot":"","sources":["../../../src/browser/download/file-download-frontend-module.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;;AAM/D,wBAGG"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2018 TypeFox and others.
|
|
4
|
+
//
|
|
5
|
+
// This program and the accompanying materials are made available under the
|
|
6
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
+
//
|
|
9
|
+
// This Source Code may also be made available under the following Secondary
|
|
10
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
+
// with the GNU Classpath Exception which is available at
|
|
13
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
+
//
|
|
15
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
+
// *****************************************************************************
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
19
|
+
const command_1 = require("@theia/core/lib/common/command");
|
|
20
|
+
const file_download_1 = require("../../common/download/file-download");
|
|
21
|
+
const file_download_service_1 = require("./file-download-service");
|
|
22
|
+
const file_download_command_contribution_1 = require("./file-download-command-contribution");
|
|
23
|
+
exports.default = new inversify_1.ContainerModule(bind => {
|
|
24
|
+
bind(file_download_1.FileDownloadService).to(file_download_service_1.FileDownloadServiceImpl).inSingletonScope();
|
|
25
|
+
bind(command_1.CommandContribution).to(file_download_command_contribution_1.FileDownloadCommandContribution).inSingletonScope();
|
|
26
|
+
});
|
|
27
|
+
//# sourceMappingURL=file-download-frontend-module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-download-frontend-module.js","sourceRoot":"","sources":["../../../src/browser/download/file-download-frontend-module.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;AAEhF,4DAA+D;AAC/D,4DAAqE;AACrE,uEAA0E;AAC1E,mEAAkE;AAClE,6FAAuF;AAEvF,kBAAe,IAAI,2BAAe,CAAC,IAAI,CAAC,EAAE;IACtC,IAAI,CAAC,mCAAmB,CAAC,CAAC,EAAE,CAAC,+CAAuB,CAAC,CAAC,gBAAgB,EAAE,CAAC;IACzE,IAAI,CAAC,6BAAmB,CAAC,CAAC,EAAE,CAAC,oEAA+B,CAAC,CAAC,gBAAgB,EAAE,CAAC;AACrF,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import URI from '@theia/core/lib/common/uri';
|
|
2
|
+
import { ILogger } from '@theia/core/lib/common/logger';
|
|
3
|
+
import { MessageService } from '@theia/core/lib/common/message-service';
|
|
4
|
+
import type { FileDownloadData, FileDownloadService } from '../../common/download/file-download';
|
|
5
|
+
export declare class FileDownloadServiceImpl implements FileDownloadService {
|
|
6
|
+
protected anchor: HTMLAnchorElement | undefined;
|
|
7
|
+
protected downloadCounter: number;
|
|
8
|
+
protected readonly logger: ILogger;
|
|
9
|
+
protected readonly messageService: MessageService;
|
|
10
|
+
protected handleCopy(event: ClipboardEvent, downloadUrl: string): void;
|
|
11
|
+
cancelDownload(id: string): Promise<void>;
|
|
12
|
+
download(uris: URI[], options?: FileDownloadService.DownloadOptions): Promise<void>;
|
|
13
|
+
protected forceDownload(id: string, title: string): Promise<void>;
|
|
14
|
+
protected request(uris: URI[]): Request;
|
|
15
|
+
protected requestInit(uris: URI[]): RequestInit;
|
|
16
|
+
protected body(uris: URI[]): FileDownloadData;
|
|
17
|
+
protected url(uris: URI[]): string;
|
|
18
|
+
protected endpoint(): string;
|
|
19
|
+
protected filesUrl(): string;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=file-download-service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-download-service.d.ts","sourceRoot":"","sources":["../../../src/browser/download/file-download-service.ts"],"names":[],"mappings":"AAiBA,OAAO,GAAG,MAAM,4BAA4B,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAExD,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AAGxE,OAAO,KAAK,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAEjG,qBACa,uBAAwB,YAAW,mBAAmB;IAE/D,SAAS,CAAC,MAAM,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAChD,SAAS,CAAC,eAAe,EAAE,MAAM,CAAK;IAItC,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IAGnC,SAAS,CAAC,QAAQ,CAAC,cAAc,EAAE,cAAc,CAAC;IAElD,SAAS,CAAC,UAAU,CAAC,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,GAAG,IAAI;IAQhE,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIzC,QAAQ,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE,OAAO,CAAC,EAAE,mBAAmB,CAAC,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC;cAqDzE,aAAa,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAwBvE,SAAS,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,OAAO;IAMvC,SAAS,CAAC,WAA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