mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
Cb 4382 anonymous access restricted error (#2302)
* CB-4382 fixed anonymous error * CB-4382 move EAdminPermission to root-resources in order to FeatureResource can import it * CB-4282 EAdminPermission moved to core-root * CB-4382 update-ts-references * СB-4382 removed unneeded deps in packages * CB-4282 revert needed deps to be present * CB-4382 reverted popperjs for plugin-data-spreadsheet-new * CB-4382 TE error fix for fast opening admin server settings * CB-4382 update yarn lock --------- Co-authored-by: s.teleshev <s.teleshev@mu.se> Co-authored-by: Alexey <wrouds@gmail.com> Co-authored-by: kseniaguzeeva <112612526+kseniaguzeeva@users.noreply.github.com>
This commit is contained in:
co-authored by
s.teleshev
Alexey
kseniaguzeeva
parent
ba3ca5e28a
commit
f41c485ba0
Vendored
+8
@@ -73,6 +73,14 @@
|
||||
"close": true,
|
||||
"clear": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "Update TS references CE",
|
||||
"type": "shell",
|
||||
"command": "yarn lerna run update-ts-references --stream",
|
||||
"options": {
|
||||
"cwd": "${workspaceFolder}/webapp"
|
||||
}
|
||||
}
|
||||
],
|
||||
"inputs": [
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
"update-ts-references": "rimraf --glob dist && typescript-resolve-references"
|
||||
},
|
||||
"dependencies": {
|
||||
"@cloudbeaver/core-authentication": "~0.1.0",
|
||||
"@cloudbeaver/core-data-context": "~0.1.0",
|
||||
"@cloudbeaver/core-di": "~0.1.0",
|
||||
"@cloudbeaver/core-events": "~0.1.0",
|
||||
@@ -32,8 +31,7 @@
|
||||
"@cloudbeaver/core-settings": "~0.1.0",
|
||||
"@cloudbeaver/core-theming": "~0.1.0",
|
||||
"@cloudbeaver/core-utils": "~0.1.0",
|
||||
"mobx": "^6.12.0",
|
||||
"reshadow": "^0.0.1"
|
||||
"mobx": "^6.12.0"
|
||||
},
|
||||
"peerDependencies": {},
|
||||
"devDependencies": {
|
||||
|
||||
+1
-2
@@ -7,11 +7,10 @@
|
||||
*/
|
||||
import { computed, makeObservable, observable } from 'mobx';
|
||||
|
||||
import { EAdminPermission } from '@cloudbeaver/core-authentication';
|
||||
import { injectable } from '@cloudbeaver/core-di';
|
||||
import { NotificationService } from '@cloudbeaver/core-events';
|
||||
import { Executor, IExecutor } from '@cloudbeaver/core-executor';
|
||||
import { PermissionsService, ServerConfigResource, SessionPermissionsResource } from '@cloudbeaver/core-root';
|
||||
import { EAdminPermission, PermissionsService, ServerConfigResource, SessionPermissionsResource } from '@cloudbeaver/core-root';
|
||||
import { RouterState, ScreenService } from '@cloudbeaver/core-routing';
|
||||
import { LocalStorageSaveService } from '@cloudbeaver/core-settings';
|
||||
import { GlobalConstants } from '@cloudbeaver/core-utils';
|
||||
|
||||
@@ -6,9 +6,6 @@
|
||||
"tsBuildInfoFile": "dist/tsconfig.tsbuildinfo"
|
||||
},
|
||||
"references": [
|
||||
{
|
||||
"path": "../core-authentication/tsconfig.json"
|
||||
},
|
||||
{
|
||||
"path": "../core-data-context/tsconfig.json"
|
||||
},
|
||||
|
||||
@@ -31,7 +31,8 @@
|
||||
"@cloudbeaver/core-ui": "~0.1.0",
|
||||
"@cloudbeaver/core-version": "~0.1.0",
|
||||
"mobx-react-lite": "^4.0.5",
|
||||
"react": "^18.2.0"
|
||||
"react": "^18.2.0",
|
||||
"@cloudbeaver/core-utils": "~0.1.0"
|
||||
},
|
||||
"peerDependencies": {},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -44,6 +44,9 @@
|
||||
},
|
||||
{
|
||||
"path": "../core-version/tsconfig.json"
|
||||
},
|
||||
{
|
||||
"path": "../core-utils/tsconfig.json"
|
||||
}
|
||||
],
|
||||
"include": [
|
||||
|
||||
@@ -7,15 +7,13 @@
|
||||
*/
|
||||
import { injectable } from '@cloudbeaver/core-di';
|
||||
import { CachedMapResource, isResourceAlias, type ResourceKey, ResourceKeyUtils } from '@cloudbeaver/core-resource';
|
||||
import { SessionDataResource, SessionPermissionsResource } from '@cloudbeaver/core-root';
|
||||
import { EAdminPermission, SessionDataResource, SessionPermissionsResource } from '@cloudbeaver/core-root';
|
||||
import {
|
||||
AuthProviderConfigurationParametersFragment,
|
||||
GetAuthProviderConfigurationParametersQueryVariables,
|
||||
GraphQLService,
|
||||
} from '@cloudbeaver/core-sdk';
|
||||
|
||||
import { EAdminPermission } from './EAdminPermission';
|
||||
|
||||
@injectable()
|
||||
export class AuthConfigurationParametersResource extends CachedMapResource<
|
||||
string,
|
||||
|
||||
@@ -17,11 +17,10 @@ import {
|
||||
type ResourceKeySimple,
|
||||
ResourceKeyUtils,
|
||||
} from '@cloudbeaver/core-resource';
|
||||
import { SessionPermissionsResource } from '@cloudbeaver/core-root';
|
||||
import { EAdminPermission, SessionPermissionsResource } from '@cloudbeaver/core-root';
|
||||
import { AdminAuthProviderConfiguration, GetAuthProviderConfigurationsQueryVariables, GraphQLService } from '@cloudbeaver/core-sdk';
|
||||
|
||||
import type { AuthProviderConfiguration } from './AuthProvidersResource';
|
||||
import { EAdminPermission } from './EAdminPermission';
|
||||
|
||||
const NEW_CONFIGURATION_SYMBOL = Symbol('new-configuration');
|
||||
|
||||
|
||||
@@ -7,11 +7,9 @@
|
||||
*/
|
||||
import { injectable } from '@cloudbeaver/core-di';
|
||||
import { CachedDataResource } from '@cloudbeaver/core-resource';
|
||||
import { SessionPermissionsResource } from '@cloudbeaver/core-root';
|
||||
import { EAdminPermission, SessionPermissionsResource } from '@cloudbeaver/core-root';
|
||||
import { GraphQLService } from '@cloudbeaver/core-sdk';
|
||||
|
||||
import { EAdminPermission } from './EAdminPermission';
|
||||
|
||||
@injectable()
|
||||
export class AuthRolesResource extends CachedDataResource<string[]> {
|
||||
constructor(private readonly graphQLService: GraphQLService, sessionPermissionsResource: SessionPermissionsResource) {
|
||||
|
||||
@@ -21,13 +21,12 @@ import {
|
||||
type ResourceKeySimple,
|
||||
ResourceKeyUtils,
|
||||
} from '@cloudbeaver/core-resource';
|
||||
import { ServerConfigResource, SessionPermissionsResource } from '@cloudbeaver/core-root';
|
||||
import { EAdminPermission, ServerConfigResource, SessionPermissionsResource } from '@cloudbeaver/core-root';
|
||||
import { AdminConnectionGrantInfo, AdminUserInfo, AdminUserInfoFragment, GetUsersListQueryVariables, GraphQLService } from '@cloudbeaver/core-sdk';
|
||||
|
||||
import { AUTH_PROVIDER_LOCAL_ID } from './AUTH_PROVIDER_LOCAL_ID';
|
||||
import { AuthInfoService } from './AuthInfoService';
|
||||
import { AuthProviderService } from './AuthProviderService';
|
||||
import { EAdminPermission } from './EAdminPermission';
|
||||
import type { IAuthCredentials } from './IAuthCredentials';
|
||||
|
||||
const NEW_USER_SYMBOL = Symbol('new-user');
|
||||
|
||||
@@ -18,6 +18,5 @@ export * from './UserInfoResource';
|
||||
export * from './UserMetaParametersResource';
|
||||
export * from './UsersResource';
|
||||
export * from './TeamMetaParametersResource';
|
||||
export * from './EAdminPermission';
|
||||
export * from './AUTH_SETTINGS_GROUP';
|
||||
export * from './PasswordPolicyService';
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
"mobx": "^6.12.0",
|
||||
"mobx-react-lite": "^4.0.5",
|
||||
"react": "^18.2.0",
|
||||
"reakit": "~1.x.x",
|
||||
"reakit": "~1.3.11",
|
||||
"reakit-utils": "^0.15.2",
|
||||
"reshadow": "^0.0.1"
|
||||
},
|
||||
|
||||
@@ -349,10 +349,6 @@ export function useResource<
|
||||
return true;
|
||||
}
|
||||
|
||||
if (this.isError()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return this.resource.isLoaded(propertiesRef.key, propertiesRef.includes);
|
||||
},
|
||||
get loading(): boolean {
|
||||
@@ -461,7 +457,7 @@ export function useResource<
|
||||
|
||||
useEffect(() => {
|
||||
refObj.use(loadKey);
|
||||
if (canLoad && !result.isError()) {
|
||||
if (canLoad) {
|
||||
result.load();
|
||||
}
|
||||
}, [canLoad, loadKey]);
|
||||
|
||||
@@ -5,8 +5,7 @@
|
||||
* Licensed under the Apache License, Version 2.0.
|
||||
* you may not use this file except in compliance with the License.
|
||||
*/
|
||||
import { EAdminPermission } from '@cloudbeaver/core-authentication';
|
||||
import { ServerConfigResource } from '@cloudbeaver/core-root';
|
||||
import { EAdminPermission, ServerConfigResource } from '@cloudbeaver/core-root';
|
||||
|
||||
import { useResource } from './ResourcesHooks/useResource';
|
||||
import { usePermission } from './usePermission';
|
||||
|
||||
@@ -47,12 +47,12 @@
|
||||
"@cloudbeaver/core-view": "~0.1.0",
|
||||
"mobx": "^6.12.0",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"reshadow": "^0.0.1"
|
||||
"react-dom": "^18.2.0"
|
||||
},
|
||||
"peerDependencies": {},
|
||||
"devDependencies": {
|
||||
"@types/react": "^18.2.42",
|
||||
"typescript": "^5.3.2"
|
||||
"typescript": "^5.3.2",
|
||||
"typescript-plugin-css-modules": "^5.0.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,17 +19,15 @@
|
||||
"dependencies": {
|
||||
"@cloudbeaver/core-blocks": "~0.1.0",
|
||||
"@cloudbeaver/core-di": "~0.1.0",
|
||||
"@cloudbeaver/core-dialogs": "~0.1.0",
|
||||
"@cloudbeaver/core-events": "~0.1.0",
|
||||
"mobx": "^6.12.0",
|
||||
"mobx-react-lite": "^4.0.5",
|
||||
"react": "^18.2.0",
|
||||
"reakit": "~1.x.x",
|
||||
"reshadow": "^0.0.1"
|
||||
"reakit": "~1.3.11"
|
||||
},
|
||||
"peerDependencies": {},
|
||||
"devDependencies": {
|
||||
"@types/react": "^18.2.42",
|
||||
"typescript": "^5.3.2"
|
||||
"typescript": "^5.3.2",
|
||||
"typescript-plugin-css-modules": "^5.0.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,9 +12,6 @@
|
||||
{
|
||||
"path": "../core-di/tsconfig.json"
|
||||
},
|
||||
{
|
||||
"path": "../core-dialogs/tsconfig.json"
|
||||
},
|
||||
{
|
||||
"path": "../core-events/tsconfig.json"
|
||||
}
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@cloudbeaver/core-administration": "~0.1.0",
|
||||
"@cloudbeaver/core-authentication": "~0.1.0",
|
||||
"@cloudbeaver/core-di": "~0.1.0",
|
||||
"@cloudbeaver/core-executor": "~0.1.0",
|
||||
"@cloudbeaver/core-navigation-tree": "~0.1.0",
|
||||
|
||||
@@ -8,19 +8,15 @@
|
||||
import type { PermissionInfo } from '@cloudbeaver/core-administration';
|
||||
import { injectable } from '@cloudbeaver/core-di';
|
||||
import { CachedDataResource } from '@cloudbeaver/core-resource';
|
||||
import { ServerConfigResource } from '@cloudbeaver/core-root';
|
||||
import { EAdminPermission, SessionPermissionsResource } from '@cloudbeaver/core-root';
|
||||
import { GraphQLService } from '@cloudbeaver/core-sdk';
|
||||
|
||||
@injectable()
|
||||
export class ProjectPermissionsResource extends CachedDataResource<PermissionInfo[]> {
|
||||
constructor(private readonly graphQLService: GraphQLService, serverConfigResource: ServerConfigResource) {
|
||||
constructor(private readonly graphQLService: GraphQLService, permissionsResource: SessionPermissionsResource) {
|
||||
super(() => []);
|
||||
|
||||
this.sync(
|
||||
serverConfigResource,
|
||||
() => {},
|
||||
() => {},
|
||||
);
|
||||
permissionsResource.require(this, EAdminPermission.admin).outdateResource(this);
|
||||
}
|
||||
|
||||
protected async loader(): Promise<PermissionInfo[]> {
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
import { runInAction } from 'mobx';
|
||||
|
||||
import type { AdminObjectGrantInfo } from '@cloudbeaver/core-administration';
|
||||
import { EAdminPermission } from '@cloudbeaver/core-authentication';
|
||||
import { injectable } from '@cloudbeaver/core-di';
|
||||
import { ProjectInfoResource } from '@cloudbeaver/core-projects';
|
||||
import {
|
||||
@@ -19,7 +18,7 @@ import {
|
||||
resourceKeyList,
|
||||
ResourceKeyUtils,
|
||||
} from '@cloudbeaver/core-resource';
|
||||
import { SessionPermissionsResource } from '@cloudbeaver/core-root';
|
||||
import { EAdminPermission, SessionPermissionsResource } from '@cloudbeaver/core-root';
|
||||
import { GraphQLService, RmProject, RmProjectPermissions, RmSubjectProjectPermissions } from '@cloudbeaver/core-sdk';
|
||||
import { isArraysEqual } from '@cloudbeaver/core-utils';
|
||||
|
||||
|
||||
@@ -9,9 +9,6 @@
|
||||
{
|
||||
"path": "../core-administration/tsconfig.json"
|
||||
},
|
||||
{
|
||||
"path": "../core-authentication/tsconfig.json"
|
||||
},
|
||||
{
|
||||
"path": "../core-di/tsconfig.json"
|
||||
},
|
||||
|
||||
@@ -9,20 +9,17 @@ import { injectable } from '@cloudbeaver/core-di';
|
||||
import { CachedDataResource } from '@cloudbeaver/core-resource';
|
||||
import { GraphQLService, WebFeatureSet } from '@cloudbeaver/core-sdk';
|
||||
|
||||
import { ServerConfigResource } from './ServerConfigResource';
|
||||
import { EAdminPermission } from './EAdminPermission';
|
||||
import { SessionPermissionsResource } from './SessionPermissionsResource';
|
||||
|
||||
export type ApplicationFeature = WebFeatureSet;
|
||||
|
||||
@injectable()
|
||||
export class FeaturesResource extends CachedDataResource<ApplicationFeature[]> {
|
||||
constructor(private readonly graphQLService: GraphQLService, serverConfigResource: ServerConfigResource) {
|
||||
constructor(private readonly graphQLService: GraphQLService, permissionsResource: SessionPermissionsResource) {
|
||||
super(() => []);
|
||||
|
||||
this.sync(
|
||||
serverConfigResource,
|
||||
() => {},
|
||||
() => {},
|
||||
);
|
||||
permissionsResource.require(this, EAdminPermission.admin).outdateResource(this);
|
||||
}
|
||||
|
||||
protected async loader(): Promise<ApplicationFeature[]> {
|
||||
|
||||
@@ -18,6 +18,7 @@ export * from './SessionResource';
|
||||
export * from './ServerService';
|
||||
export * from './ServerSettingsService';
|
||||
export * from './SessionActionService';
|
||||
export * from './EAdminPermission';
|
||||
export * from './SessionDataResource';
|
||||
export * from './SessionSettingsService';
|
||||
export * from './SessionExpireService';
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
"react": "^18.2.0",
|
||||
"react-dnd": "^16.0.1",
|
||||
"react-dnd-html5-backend": "^16.0.1",
|
||||
"reakit": "~1.x.x",
|
||||
"reakit": "~1.3.11",
|
||||
"reshadow": "^0.0.1"
|
||||
},
|
||||
"peerDependencies": {},
|
||||
|
||||
@@ -27,12 +27,12 @@
|
||||
"mobx": "^6.12.0",
|
||||
"mobx-react-lite": "^4.0.5",
|
||||
"react": "^18.2.0",
|
||||
"react-hotkeys-hook": "^4.4.1",
|
||||
"reshadow": "^0.0.1"
|
||||
"react-hotkeys-hook": "^4.4.1"
|
||||
},
|
||||
"peerDependencies": {},
|
||||
"devDependencies": {
|
||||
"@types/react": "^18.2.42",
|
||||
"typescript": "^5.3.2"
|
||||
"typescript": "^5.3.2",
|
||||
"typescript-plugin-css-modules": "^5.0.2"
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -9,9 +9,9 @@ import { observer } from 'mobx-react-lite';
|
||||
import { useCallback } from 'react';
|
||||
|
||||
import { AdministrationScreenService } from '@cloudbeaver/core-administration';
|
||||
import { EAdminPermission } from '@cloudbeaver/core-authentication';
|
||||
import { usePermission } from '@cloudbeaver/core-blocks';
|
||||
import { useService } from '@cloudbeaver/core-di';
|
||||
import { EAdminPermission } from '@cloudbeaver/core-root';
|
||||
import type { ScreenComponent } from '@cloudbeaver/core-routing';
|
||||
|
||||
import { Administration } from '../Administration/Administration';
|
||||
|
||||
+1
-2
@@ -9,10 +9,9 @@ import { observer } from 'mobx-react-lite';
|
||||
import { useCallback } from 'react';
|
||||
|
||||
import { AdministrationItemService, AdministrationScreenService } from '@cloudbeaver/core-administration';
|
||||
import { EAdminPermission } from '@cloudbeaver/core-authentication';
|
||||
import { Translate, usePermission, useResource } from '@cloudbeaver/core-blocks';
|
||||
import { useService } from '@cloudbeaver/core-di';
|
||||
import { SessionPermissionsResource } from '@cloudbeaver/core-root';
|
||||
import { EAdminPermission, SessionPermissionsResource } from '@cloudbeaver/core-root';
|
||||
|
||||
import { Administration } from '../../Administration/Administration';
|
||||
import { WizardStepper } from './WizardStepper';
|
||||
|
||||
@@ -8,9 +8,8 @@
|
||||
import { lazy } from 'react';
|
||||
|
||||
import { AdministrationScreenService } from '@cloudbeaver/core-administration';
|
||||
import { EAdminPermission } from '@cloudbeaver/core-authentication';
|
||||
import { Bootstrap, injectable } from '@cloudbeaver/core-di';
|
||||
import { PermissionsService } from '@cloudbeaver/core-root';
|
||||
import { PermissionsService, EAdminPermission } from '@cloudbeaver/core-root';
|
||||
import { ScreenService } from '@cloudbeaver/core-routing';
|
||||
import { DATA_CONTEXT_MENU, MenuBaseItem, MenuService } from '@cloudbeaver/core-view';
|
||||
import { TOP_NAV_BAR_SETTINGS_MENU } from '@cloudbeaver/plugin-settings-menu';
|
||||
|
||||
@@ -39,7 +39,8 @@
|
||||
"mobx": "^6.12.0",
|
||||
"mobx-react-lite": "^4.0.5",
|
||||
"react": "^18.2.0",
|
||||
"reshadow": "^0.0.1"
|
||||
"reshadow": "^0.0.1",
|
||||
"reakit": "~1.3.11"
|
||||
},
|
||||
"peerDependencies": {},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -35,8 +35,7 @@
|
||||
"@lezer/highlight": "^1.2.0",
|
||||
"mobx-react-lite": "^4.0.5",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"reshadow": "^0.0.1"
|
||||
"react-dom": "^18.2.0"
|
||||
},
|
||||
"peerDependencies": {},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
"@cloudbeaver/core-plugin": "~0.1.0",
|
||||
"@cloudbeaver/core-projects": "~0.1.0",
|
||||
"@cloudbeaver/core-resource": "~0.1.0",
|
||||
"@cloudbeaver/core-utils": "~0.1.0",
|
||||
"@cloudbeaver/core-view": "~0.1.0",
|
||||
"@cloudbeaver/plugin-connections": "~0.1.0",
|
||||
"mobx": "^6.12.0",
|
||||
|
||||
@@ -33,9 +33,6 @@
|
||||
{
|
||||
"path": "../core-resource/tsconfig.json"
|
||||
},
|
||||
{
|
||||
"path": "../core-utils/tsconfig.json"
|
||||
},
|
||||
{
|
||||
"path": "../core-view/tsconfig.json"
|
||||
},
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
"update-ts-references": "rimraf --glob dist && typescript-resolve-references"
|
||||
},
|
||||
"dependencies": {
|
||||
"@cloudbeaver/core-authentication": "~0.1.0",
|
||||
"@cloudbeaver/core-blocks": "~0.1.0",
|
||||
"@cloudbeaver/core-connections": "~0.1.0",
|
||||
"@cloudbeaver/core-di": "~0.1.0",
|
||||
@@ -35,12 +34,12 @@
|
||||
"@cloudbeaver/plugin-connections": "~0.1.0",
|
||||
"mobx": "^6.12.0",
|
||||
"mobx-react-lite": "^4.0.5",
|
||||
"react": "^18.2.0",
|
||||
"reshadow": "^0.0.1"
|
||||
"react": "^18.2.0"
|
||||
},
|
||||
"peerDependencies": {},
|
||||
"devDependencies": {
|
||||
"@types/react": "^18.2.42",
|
||||
"typescript": "^5.3.2"
|
||||
"typescript": "^5.3.2",
|
||||
"typescript-plugin-css-modules": "^5.0.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,12 +5,11 @@
|
||||
* Licensed under the Apache License, Version 2.0.
|
||||
* you may not use this file except in compliance with the License.
|
||||
*/
|
||||
import { EAdminPermission } from '@cloudbeaver/core-authentication';
|
||||
import { ConnectionsManagerService } from '@cloudbeaver/core-connections';
|
||||
import { Bootstrap, injectable } from '@cloudbeaver/core-di';
|
||||
import { ProjectInfoResource } from '@cloudbeaver/core-projects';
|
||||
import { CachedMapAllKey, getCachedMapResourceLoaderState } from '@cloudbeaver/core-resource';
|
||||
import { PermissionsService } from '@cloudbeaver/core-root';
|
||||
import { EAdminPermission, PermissionsService } from '@cloudbeaver/core-root';
|
||||
import { ActionService, DATA_CONTEXT_MENU, MenuService } from '@cloudbeaver/core-view';
|
||||
import { MENU_CONNECTIONS } from '@cloudbeaver/plugin-connections';
|
||||
|
||||
@@ -52,9 +51,7 @@ export class SearchConnectionPluginBootstrap extends Bootstrap {
|
||||
|
||||
return false;
|
||||
},
|
||||
getLoader: (context, action) => {
|
||||
return getCachedMapResourceLoaderState(this.projectInfoResource, () => CachedMapAllKey);
|
||||
},
|
||||
getLoader: (context, action) => getCachedMapResourceLoaderState(this.projectInfoResource, () => CachedMapAllKey),
|
||||
handler: async (context, action) => {
|
||||
switch (action) {
|
||||
case ACTION_CONNECTION_SEARCH: {
|
||||
|
||||
@@ -6,9 +6,6 @@
|
||||
"tsBuildInfoFile": "dist/tsconfig.tsbuildinfo"
|
||||
},
|
||||
"references": [
|
||||
{
|
||||
"path": "../core-authentication/tsconfig.json"
|
||||
},
|
||||
{
|
||||
"path": "../core-blocks/tsconfig.json"
|
||||
},
|
||||
|
||||
+1
-2
@@ -8,12 +8,11 @@
|
||||
import React from 'react';
|
||||
|
||||
import { AdministrationScreenService } from '@cloudbeaver/core-administration';
|
||||
import { EAdminPermission } from '@cloudbeaver/core-authentication';
|
||||
import { ConnectionInfoResource, createConnectionParam, IConnectionInfoParams } from '@cloudbeaver/core-connections';
|
||||
import { Bootstrap, injectable } from '@cloudbeaver/core-di';
|
||||
import { executorHandlerFilter, IExecutionContextProvider } from '@cloudbeaver/core-executor';
|
||||
import { isGlobalProject, ProjectInfoResource } from '@cloudbeaver/core-projects';
|
||||
import { PermissionsService } from '@cloudbeaver/core-root';
|
||||
import { PermissionsService, EAdminPermission } from '@cloudbeaver/core-root';
|
||||
import { formStateContext } from '@cloudbeaver/core-ui';
|
||||
import type { MetadataValueGetter } from '@cloudbeaver/core-utils';
|
||||
import {
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
import { observer } from 'mobx-react-lite';
|
||||
import { useCallback, useRef } from 'react';
|
||||
|
||||
import { AUTH_PROVIDER_LOCAL_ID, EAdminPermission } from '@cloudbeaver/core-authentication';
|
||||
import { AUTH_PROVIDER_LOCAL_ID } from '@cloudbeaver/core-authentication';
|
||||
import {
|
||||
ColoredContainer,
|
||||
Combobox,
|
||||
@@ -35,7 +35,7 @@ import {
|
||||
import { DatabaseAuthModelsResource, DBDriverResource, isLocalConnection } from '@cloudbeaver/core-connections';
|
||||
import { useService } from '@cloudbeaver/core-di';
|
||||
import { CachedResourceListEmptyKey, resourceKeyList } from '@cloudbeaver/core-resource';
|
||||
import { ServerConfigResource } from '@cloudbeaver/core-root';
|
||||
import { EAdminPermission, ServerConfigResource } from '@cloudbeaver/core-root';
|
||||
import { DriverConfigurationType } from '@cloudbeaver/core-sdk';
|
||||
import { type TabContainerPanelComponent, useAuthenticationAction } from '@cloudbeaver/core-ui';
|
||||
import { isSafari } from '@cloudbeaver/core-utils';
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
* Licensed under the Apache License, Version 2.0.
|
||||
* you may not use this file except in compliance with the License.
|
||||
*/
|
||||
import { EAdminPermission } from '@cloudbeaver/core-authentication';
|
||||
import {
|
||||
Connection,
|
||||
ConnectionInfoResource,
|
||||
@@ -20,6 +19,7 @@ import { DATA_CONTEXT_NAV_NODE, EObjectFeature, NavNodeManagerService } from '@c
|
||||
import { getCachedMapResourceLoaderState } from '@cloudbeaver/core-resource';
|
||||
import {
|
||||
CONNECTION_NAVIGATOR_VIEW_SETTINGS,
|
||||
EAdminPermission,
|
||||
isNavigatorViewSettingsEqual,
|
||||
NavigatorViewSettings,
|
||||
PermissionsService,
|
||||
|
||||
@@ -37,14 +37,12 @@
|
||||
"mobx": "^6.12.0",
|
||||
"mobx-react-lite": "^4.0.5",
|
||||
"react": "^18.2.0",
|
||||
"reshadow": "^0.0.1",
|
||||
"@cloudbeaver/core-authentication": "~0.1.0"
|
||||
"reshadow": "^0.0.1"
|
||||
},
|
||||
"peerDependencies": {},
|
||||
"devDependencies": {
|
||||
"@cloudbeaver/core-administration": "~0.1.0",
|
||||
"@cloudbeaver/core-app": "~0.1.0",
|
||||
"@cloudbeaver/core-authentication": "~0.1.0",
|
||||
"@cloudbeaver/core-browser": "~0.1.0",
|
||||
"@cloudbeaver/core-connections": "~0.1.0",
|
||||
"@cloudbeaver/core-dialogs": "~0.1.0",
|
||||
@@ -71,6 +69,7 @@
|
||||
"@types/jest": "^29.5.10",
|
||||
"@types/react": "^18.2.42",
|
||||
"typescript": "^5.3.2",
|
||||
"typescript-plugin-css-modules": "^5.0.2"
|
||||
"typescript-plugin-css-modules": "^5.0.2",
|
||||
"@cloudbeaver/core-authentication": "~0.1.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,13 +5,12 @@
|
||||
* Licensed under the Apache License, Version 2.0.
|
||||
* you may not use this file except in compliance with the License.
|
||||
*/
|
||||
import { EAdminPermission } from '@cloudbeaver/core-authentication';
|
||||
import { createConnectionParam, DATA_CONTEXT_CONNECTION } from '@cloudbeaver/core-connections';
|
||||
import { injectable } from '@cloudbeaver/core-di';
|
||||
import { CommonDialogService } from '@cloudbeaver/core-dialogs';
|
||||
import { LocalizationService } from '@cloudbeaver/core-localization';
|
||||
import { DATA_CONTEXT_NAV_NODE, EObjectFeature } from '@cloudbeaver/core-navigation-tree';
|
||||
import { SessionPermissionsResource } from '@cloudbeaver/core-root';
|
||||
import { EAdminPermission, SessionPermissionsResource } from '@cloudbeaver/core-root';
|
||||
import { withTimestamp } from '@cloudbeaver/core-utils';
|
||||
import { ACTION_EXPORT, ActionService, DATA_CONTEXT_MENU, DATA_CONTEXT_MENU_NESTED, menuExtractItems, MenuService } from '@cloudbeaver/core-view';
|
||||
import {
|
||||
|
||||
@@ -54,18 +54,12 @@
|
||||
{
|
||||
"path": "../plugin-sql-editor/tsconfig.json"
|
||||
},
|
||||
{
|
||||
"path": "../core-authentication/tsconfig.json"
|
||||
},
|
||||
{
|
||||
"path": "../core-administration/tsconfig.json"
|
||||
},
|
||||
{
|
||||
"path": "../core-app/tsconfig.json"
|
||||
},
|
||||
{
|
||||
"path": "../core-authentication/tsconfig.json"
|
||||
},
|
||||
{
|
||||
"path": "../core-browser/tsconfig.json"
|
||||
},
|
||||
@@ -131,6 +125,9 @@
|
||||
},
|
||||
{
|
||||
"path": "../tests-runner/tsconfig.json"
|
||||
},
|
||||
{
|
||||
"path": "../core-authentication/tsconfig.json"
|
||||
}
|
||||
],
|
||||
"include": [
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
"update-ts-references": "rimraf --glob dist && typescript-resolve-references"
|
||||
},
|
||||
"dependencies": {
|
||||
"@cloudbeaver/core-authentication": "~0.1.0",
|
||||
"@cloudbeaver/core-blocks": "~0.1.0",
|
||||
"@cloudbeaver/core-connections": "~0.1.0",
|
||||
"@cloudbeaver/core-data-context": "~0.1.0",
|
||||
@@ -50,7 +49,6 @@
|
||||
"devDependencies": {
|
||||
"@cloudbeaver/core-administration": "~0.1.0",
|
||||
"@cloudbeaver/core-app": "~0.1.0",
|
||||
"@cloudbeaver/core-authentication": "~0.1.0",
|
||||
"@cloudbeaver/core-browser": "~0.1.0",
|
||||
"@cloudbeaver/core-connections": "~0.1.0",
|
||||
"@cloudbeaver/core-dialogs": "~0.1.0",
|
||||
@@ -76,6 +74,7 @@
|
||||
"@types/jest": "^29.5.10",
|
||||
"@types/react": "^18.2.42",
|
||||
"typescript": "^5.3.2",
|
||||
"typescript-plugin-css-modules": "^5.0.2"
|
||||
"typescript-plugin-css-modules": "^5.0.2",
|
||||
"@cloudbeaver/core-authentication": "~0.1.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
import { observer } from 'mobx-react-lite';
|
||||
import styled, { css } from 'reshadow';
|
||||
|
||||
import { EAdminPermission } from '@cloudbeaver/core-authentication';
|
||||
import { Link, usePermission, useTranslate } from '@cloudbeaver/core-blocks';
|
||||
import { EAdminPermission } from '@cloudbeaver/core-root';
|
||||
|
||||
interface Props {
|
||||
limit?: string;
|
||||
|
||||
@@ -6,9 +6,6 @@
|
||||
"tsBuildInfoFile": "dist/tsconfig.tsbuildinfo"
|
||||
},
|
||||
"references": [
|
||||
{
|
||||
"path": "../core-authentication/tsconfig.json"
|
||||
},
|
||||
{
|
||||
"path": "../core-blocks/tsconfig.json"
|
||||
},
|
||||
@@ -81,9 +78,6 @@
|
||||
{
|
||||
"path": "../core-app/tsconfig.json"
|
||||
},
|
||||
{
|
||||
"path": "../core-authentication/tsconfig.json"
|
||||
},
|
||||
{
|
||||
"path": "../core-browser/tsconfig.json"
|
||||
},
|
||||
@@ -146,6 +140,9 @@
|
||||
},
|
||||
{
|
||||
"path": "../tests-runner/tsconfig.json"
|
||||
},
|
||||
{
|
||||
"path": "../core-authentication/tsconfig.json"
|
||||
}
|
||||
],
|
||||
"include": [
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
"update-ts-references": "rimraf --glob dist && typescript-resolve-references"
|
||||
},
|
||||
"dependencies": {
|
||||
"@cloudbeaver/core-authentication": "~0.1.0",
|
||||
"@cloudbeaver/core-blocks": "~0.1.0",
|
||||
"@cloudbeaver/core-data-context": "~0.1.0",
|
||||
"@cloudbeaver/core-di": "~0.1.0",
|
||||
|
||||
@@ -5,10 +5,9 @@
|
||||
* Licensed under the Apache License, Version 2.0.
|
||||
* you may not use this file except in compliance with the License.
|
||||
*/
|
||||
import { EAdminPermission } from '@cloudbeaver/core-authentication';
|
||||
import { App, Bootstrap, DIService, injectable, IServiceConstructor } from '@cloudbeaver/core-di';
|
||||
import { CachedResource } from '@cloudbeaver/core-resource';
|
||||
import { PermissionsService } from '@cloudbeaver/core-root';
|
||||
import { PermissionsService, EAdminPermission } from '@cloudbeaver/core-root';
|
||||
import { ActionService, DATA_CONTEXT_MENU, DATA_CONTEXT_SUBMENU_ITEM, MenuBaseItem, MenuService } from '@cloudbeaver/core-view';
|
||||
import { TOP_NAV_BAR_SETTINGS_MENU } from '@cloudbeaver/plugin-settings-menu';
|
||||
import { MENU_USER_PROFILE } from '@cloudbeaver/plugin-user-profile';
|
||||
|
||||
@@ -6,9 +6,6 @@
|
||||
"tsBuildInfoFile": "dist/tsconfig.tsbuildinfo"
|
||||
},
|
||||
"references": [
|
||||
{
|
||||
"path": "../core-authentication/tsconfig.json"
|
||||
},
|
||||
{
|
||||
"path": "../core-blocks/tsconfig.json"
|
||||
},
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
"mobx": "^6.12.0",
|
||||
"mobx-react-lite": "^4.0.5",
|
||||
"react": "^18.2.0",
|
||||
"reakit": "~1.x.x",
|
||||
"reakit": "~1.3.11",
|
||||
"reshadow": "^0.0.1"
|
||||
},
|
||||
"peerDependencies": {},
|
||||
|
||||
@@ -26,8 +26,7 @@
|
||||
"@cloudbeaver/core-routing": "~0.1.0",
|
||||
"@cloudbeaver/core-utils": "~0.1.0",
|
||||
"mobx-react-lite": "^4.0.5",
|
||||
"react": "^18.2.0",
|
||||
"reshadow": "^0.0.1"
|
||||
"react": "^18.2.0"
|
||||
},
|
||||
"peerDependencies": {},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -33,6 +33,7 @@
|
||||
"peerDependencies": {},
|
||||
"devDependencies": {
|
||||
"@types/react": "^18.2.42",
|
||||
"typescript": "^5.3.2"
|
||||
"typescript": "^5.3.2",
|
||||
"typescript-plugin-css-modules": "^5.0.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,7 +34,8 @@
|
||||
"@cloudbeaver/plugin-sql-editor-new": "~0.1.0",
|
||||
"mobx": "^6.12.0",
|
||||
"mobx-react-lite": "^4.0.5",
|
||||
"react": "^18.2.0"
|
||||
"react": "^18.2.0",
|
||||
"@cloudbeaver/core-utils": "~0.1.0"
|
||||
},
|
||||
"peerDependencies": {},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -47,6 +47,9 @@
|
||||
},
|
||||
{
|
||||
"path": "../plugin-sql-editor-new/tsconfig.json"
|
||||
},
|
||||
{
|
||||
"path": "../core-utils/tsconfig.json"
|
||||
}
|
||||
],
|
||||
"include": [
|
||||
|
||||
@@ -34,6 +34,7 @@
|
||||
"peerDependencies": {},
|
||||
"devDependencies": {
|
||||
"@types/react": "^18.2.42",
|
||||
"typescript": "^5.3.2"
|
||||
"typescript": "^5.3.2",
|
||||
"typescript-plugin-css-modules": "^5.0.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,7 +30,8 @@
|
||||
"react-markdown": "^9.0.1",
|
||||
"reshadow": "^0.0.1",
|
||||
"semver": "^7.5.4",
|
||||
"@cloudbeaver/core-localization": "~0.1.0"
|
||||
"@cloudbeaver/core-localization": "~0.1.0",
|
||||
"@cloudbeaver/core-utils": "~0.1.0"
|
||||
},
|
||||
"peerDependencies": {},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -32,6 +32,9 @@
|
||||
},
|
||||
{
|
||||
"path": "../core-localization/tsconfig.json"
|
||||
},
|
||||
{
|
||||
"path": "../core-utils/tsconfig.json"
|
||||
}
|
||||
],
|
||||
"include": [
|
||||
|
||||
@@ -15,9 +15,15 @@
|
||||
{
|
||||
"path": "../core-di/tsconfig.json"
|
||||
},
|
||||
{
|
||||
"path": "../core-localization/tsconfig.json"
|
||||
},
|
||||
{
|
||||
"path": "../core-product/tsconfig.json"
|
||||
},
|
||||
{
|
||||
"path": "../core-task-manager/tsconfig.json"
|
||||
},
|
||||
{
|
||||
"path": "../core-version-update/tsconfig.json"
|
||||
},
|
||||
@@ -147,6 +153,9 @@
|
||||
{
|
||||
"path": "../plugin-sso/tsconfig.json"
|
||||
},
|
||||
{
|
||||
"path": "../plugin-task-manager/tsconfig.json"
|
||||
},
|
||||
{
|
||||
"path": "../plugin-theme/tsconfig.json"
|
||||
},
|
||||
@@ -170,15 +179,6 @@
|
||||
},
|
||||
{
|
||||
"path": "../plugin-version-update-administration/tsconfig.json"
|
||||
},
|
||||
{
|
||||
"path": "../core-localization/tsconfig.json"
|
||||
},
|
||||
{
|
||||
"path": "../core-task-manager/tsconfig.json"
|
||||
},
|
||||
{
|
||||
"path": "../plugin-task-manager/tsconfig.json"
|
||||
}
|
||||
],
|
||||
"include": [
|
||||
|
||||
+1
-1
@@ -15537,7 +15537,7 @@ reakit-warning@^0.6.2:
|
||||
dependencies:
|
||||
reakit-utils "^0.15.2"
|
||||
|
||||
reakit@~1.3.11, reakit@~1.x.x:
|
||||
reakit@~1.3.11:
|
||||
version "1.3.11"
|
||||
resolved "https://registry.yarnpkg.com/reakit/-/reakit-1.3.11.tgz#c15360ac43e94fbe4291d233af3ac5040428252e"
|
||||
integrity sha512-mYxw2z0fsJNOQKAEn5FJCPTU3rcrY33YZ/HzoWqZX0G7FwySp1wkCYW79WhuYMNIUFQ8s3Baob1RtsEywmZSig==
|
||||
|
||||
Reference in New Issue
Block a user