feat(plugin-data-viewer): data presentation service

CB-164
This commit is contained in:
Wroud
2020-07-31 12:16:20 +03:00
parent b9aed52c72
commit 9740516a58
12 changed files with 88 additions and 10 deletions
@@ -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],
};