feat(web): replace custom S3 browser components with dees-s3-browser integration
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import * as plugins from '../plugins.js';
|
||||
import { apiService, changeStreamService } from '../services/index.js';
|
||||
import { themeStyles } from '../styles/index.js';
|
||||
import { s3DataProvider } from '../adapters/s3-data-provider.js';
|
||||
import type { IS3ChangeEvent } from '@design.estate/dees-catalog';
|
||||
|
||||
const { html, css, cssManager, customElement, state, DeesElement } = plugins;
|
||||
const { DeesContextmenu } = plugins.deesCatalog;
|
||||
@@ -1039,7 +1041,16 @@ export class TsviewApp extends DeesElement {
|
||||
|
||||
return html`
|
||||
<div class="content-area">
|
||||
<tsview-s3-browser .bucketName=${this.selectedBucket}></tsview-s3-browser>
|
||||
<dees-s3-browser
|
||||
.dataProvider=${s3DataProvider}
|
||||
.bucketName=${this.selectedBucket}
|
||||
.onChangeEvent=${(callback: (event: IS3ChangeEvent) => void) => {
|
||||
const sub = changeStreamService
|
||||
.getBucketChanges(this.selectedBucket)
|
||||
.subscribe(callback);
|
||||
return () => sub.unsubscribe();
|
||||
}}
|
||||
></dees-s3-browser>
|
||||
</div>
|
||||
`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user