mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-10-24 01:23:21 +08:00
CB-2867 support dataset in UI (#1436)
* CB-2867 dataset plugin * CB-2867 - add original sql query to resultset * CB-2867 move originalQuery to execute info * CB-2867 feat: read originalQuery for query results * CB-2867 refactor: rename scripts plugin & resources tree type filter * CB-2867 fix: import * CB-2867 fix: file extensions type * CB-2867 fix: file extensions type * CB-2867 refactor: data tools bar styles * CB-2867 send query with all filters to gql * CB-2867 chore: implement getKeyRef for CachedMapResource * CB-2867 refactor: ProjectNavNodeService * CB-2867 chore: update go-split * CB-2867 refactor: rename originalQuery to fullQuery * CB-2867 refactor: add resource onUse data * CB-2867 refactor: add sql data source script feature * CB-2867 refactor: add metadata to sql datasource * CB-2867 refactor: add datasource outdate * CB-2867 feat: provided database models for SqlDataSource * CB-2867 fix invalid resource parent node * CB-2867 fix: styles * CB-2867 do not return extra nodes in root navigator model * CB-2867 fix: nav tree project hide for TE single project * CB-2867 fix: pass schema & catalog info to data source * CB-2867 chore: code review --------- Co-authored-by: Aleksey Potsetsuev <wrouds@gmail.com> Co-authored-by: Wroud <wroud@yandex.ru>
This commit is contained in:
co-authored by
Aleksey Potsetsuev
Wroud
parent
c4315eb2d1
commit
25f859a043
@@ -9,8 +9,7 @@
|
||||
import { observer } from 'mobx-react-lite';
|
||||
import styled, { css } from 'reshadow';
|
||||
|
||||
import { useResource, useTranslate } from '@cloudbeaver/core-blocks';
|
||||
import { ServerConfigResource } from '@cloudbeaver/core-root';
|
||||
import { useTranslate } from '@cloudbeaver/core-blocks';
|
||||
import type { TabContainerPanelComponent } from '@cloudbeaver/core-ui';
|
||||
import { ResourceManagerTree } from '@cloudbeaver/plugin-resource-manager';
|
||||
|
||||
@@ -27,15 +26,10 @@ const styles = css`
|
||||
|
||||
export const ResourceManagerScripts: TabContainerPanelComponent = observer(function ResourceManagerScripts() {
|
||||
const translate = useTranslate();
|
||||
const serverConfigResource = useResource(ResourceManagerScripts, ServerConfigResource, undefined);
|
||||
const resourceTypeId = (
|
||||
serverConfigResource.resource.distributed
|
||||
? SCRIPTS_TYPE_ID
|
||||
: undefined
|
||||
);
|
||||
|
||||
return styled(styles)(
|
||||
<container>
|
||||
<ResourceManagerTree resourceTypeId={resourceTypeId}>
|
||||
<ResourceManagerTree resourceTypeId={SCRIPTS_TYPE_ID}>
|
||||
{translate('plugin_resource_manager_scripts_no_resources_placeholder')}
|
||||
</ResourceManagerTree>
|
||||
</container>
|
||||
|
||||
Reference in New Issue
Block a user