mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-10-28 03:41:48 +08:00
feat(plugin-data-viewer): data presentation service
CB-164
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* cloudbeaver - Cloud Database Manager
|
||||
* Copyright (C) 2020 DBeaver Corp and others
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0.
|
||||
* you may not use this file except in compliance with the License.
|
||||
*/
|
||||
|
||||
import { Bootstrap, injectable } from '@cloudbeaver/core-di';
|
||||
import { DataPresentationService } from '@cloudbeaver/plugin-data-viewer';
|
||||
|
||||
import { Spreadsheet } from './Spreadsheet';
|
||||
|
||||
@injectable()
|
||||
export class SpreadsheetService extends Bootstrap {
|
||||
constructor(private dataPresentationService: DataPresentationService) {
|
||||
super();
|
||||
}
|
||||
|
||||
register(): void | Promise<void> {
|
||||
this.dataPresentationService.add({
|
||||
component: Spreadsheet,
|
||||
});
|
||||
}
|
||||
|
||||
load(): void | Promise<void> { }
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
import { manifest } from './manifest';
|
||||
|
||||
export * from './SpreadSheet';
|
||||
export * from './Spreadsheet';
|
||||
|
||||
// All Services and Components that is provided by this plugin should be exported here
|
||||
|
||||
|
||||
@@ -8,7 +8,9 @@
|
||||
|
||||
import { PluginManifest } from '@cloudbeaver/core-di';
|
||||
|
||||
import { SpreadsheetService } from './SpreadsheetService';
|
||||
|
||||
export const manifest: PluginManifest = {
|
||||
info: { name: 'AgGrid Table' },
|
||||
providers: [],
|
||||
providers: [SpreadsheetService],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user