Skip to content

Commit

Permalink
CB-5645 adds core-links and GithubLinks
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyteleshev committed Oct 21, 2024
1 parent cbceee6 commit ffa267f
Show file tree
Hide file tree
Showing 28 changed files with 64 additions and 33 deletions.
2 changes: 1 addition & 1 deletion webapp/packages/core-bootstrap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"@cloudbeaver/core-dialogs": "^0",
"@cloudbeaver/core-events": "^0",
"@cloudbeaver/core-executor": "^0",
"@cloudbeaver/core-links": "^0",
"@cloudbeaver/core-localization": "^0",
"@cloudbeaver/core-navigation-tree": "^0",
"@cloudbeaver/core-product": "^0",
Expand All @@ -52,7 +53,6 @@
"@cloudbeaver/core-version": "^0",
"@cloudbeaver/core-version-update": "^0",
"@cloudbeaver/core-view": "^0",
"@cloudbeaver/core-website": "^0",
"mobx": "^6",
"react": "^18",
"react-dom": "^18"
Expand Down
4 changes: 2 additions & 2 deletions webapp/packages/core-bootstrap/src/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { coreConnectionsManifest } from '@cloudbeaver/core-connections';
import { coreDIManifest, type PluginManifest } from '@cloudbeaver/core-di';
import { coreDialogsManifest } from '@cloudbeaver/core-dialogs';
import { coreEventsManifest } from '@cloudbeaver/core-events';
import { coreLinksManifest } from '@cloudbeaver/core-links';
import { coreLocalizationManifest } from '@cloudbeaver/core-localization';
import { coreNavigationTree } from '@cloudbeaver/core-navigation-tree';
import { coreProductManifest } from '@cloudbeaver/core-product';
Expand All @@ -38,7 +39,6 @@ import { coreUIManifest } from '@cloudbeaver/core-ui';
import { coreVersionManifest } from '@cloudbeaver/core-version';
import { coreVersionUpdateManifest } from '@cloudbeaver/core-version-update';
import { coreViewManifest } from '@cloudbeaver/core-view';
import { coreWebsiteManifest } from '@cloudbeaver/core-website';

export const coreManifests: PluginManifest[] = [
{
Expand All @@ -64,7 +64,7 @@ export const coreManifests: PluginManifest[] = [
coreResourceManifest,
coreSDKManifest,
coreRootManifest,
coreWebsiteManifest,
coreLinksManifest,
coreBrowserSettingsManifest,
coreBrowserCookiesManifest,
coreProductManifest,
Expand Down
6 changes: 3 additions & 3 deletions webapp/packages/core-bootstrap/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@
{
"path": "../core-executor/tsconfig.json"
},
{
"path": "../core-links/tsconfig.json"
},
{
"path": "../core-localization/tsconfig.json"
},
Expand Down Expand Up @@ -107,9 +110,6 @@
},
{
"path": "../core-view/tsconfig.json"
},
{
"path": "../core-website/tsconfig.json"
}
],
"include": [
Expand Down
2 changes: 2 additions & 0 deletions webapp/packages/core-client-activity/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
},
"peerDependencies": {},
"devDependencies": {
"@jest/globals": "^29",
"@types/jest": "^29",
"typescript": "^5"
}
}
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@cloudbeaver/core-website",
"name": "@cloudbeaver/core-links",
"type": "module",
"sideEffects": [
"src/**/*.css",
Expand Down
20 changes: 20 additions & 0 deletions webapp/packages/core-links/src/GithubLinks.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* CloudBeaver - Cloud Database Manager
* Copyright (C) 2020-2024 DBeaver Corp and others
*
* Licensed under the Apache License, Version 2.0.
* you may not use this file except in compliance with the License.
*/
export class GithubLinks {
static CLOUDBEAVER_REPO = 'https://github.com/dbeaver/cloudbeaver';
static EE_DEPLOY_REPO = 'https://github.com/dbeaver/cloudbeaver-deploy';
static TE_DEPLOY_REPO = 'https://github.com/dbeaver/team-edition-deploy';

getDeployRepo(distributed: boolean) {
if (distributed) {
return GithubLinks.TE_DEPLOY_REPO;
}

return GithubLinks.EE_DEPLOY_REPO;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ export class WebsiteLinks {
static TEAM_ARCHIVE = 'https://dbeaver.com/downloads-team';
static CONTACT_PAGE = 'https://dbeaver.com/contact/';

static GITHUB_REPOSITORY_PAGE = 'https://github.com/dbeaver/cloudbeaver';

static getTeamArchiveById(id: string) {
return `${WebsiteLinks.TEAM_ARCHIVE}/${id}`;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@
* you may not use this file except in compliance with the License.
*/
export * from './WebsiteLinks.js';
export * from './GithubLinks.js';
export * from './manifest.js';
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
*/
import type { PluginManifest } from '@cloudbeaver/core-di';

export const coreWebsiteManifest: PluginManifest = {
export const coreLinksManifest: PluginManifest = {
info: {
name: 'Core Website',
name: 'Core Links',
},

providers: [],
Expand Down
File renamed without changes.
2 changes: 2 additions & 0 deletions webapp/packages/core-localization/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
},
"peerDependencies": {},
"devDependencies": {
"@jest/globals": "^29",
"@types/jest": "^29",
"typescript": "^5"
}
}
2 changes: 1 addition & 1 deletion webapp/packages/core-root/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
},
"peerDependencies": {},
"devDependencies": {
"@cloudbeaver/core-links": "^0",
"@cloudbeaver/core-sdk": "^0",
"@cloudbeaver/core-website": "^0",
"@cloudbeaver/tests-runner": "^0",
"@jest/globals": "^29",
"@types/jest": "^29",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
* Licensed under the Apache License, Version 2.0.
* you may not use this file except in compliance with the License.
*/
import { WebsiteLinks } from '@cloudbeaver/core-links';
import type { ServerConfigQuery } from '@cloudbeaver/core-sdk';
import { WebsiteLinks } from '@cloudbeaver/core-website';

import { defaultProductConfiguration } from './defaultProductConfiguration.js';

Expand Down
6 changes: 3 additions & 3 deletions webapp/packages/core-root/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
{
"path": "../core-executor/tsconfig.json"
},
{
"path": "../core-links/tsconfig.json"
},
{
"path": "../core-localization/tsconfig.json"
},
Expand All @@ -41,9 +44,6 @@
{
"path": "../core-utils/tsconfig.json"
},
{
"path": "../core-website/tsconfig.json"
},
{
"path": "../tests-runner/tsconfig.json"
}
Expand Down
3 changes: 2 additions & 1 deletion webapp/packages/core-view/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
"@cloudbeaver/core-utils": "^0",
"mobx": "^6",
"mobx-react-lite": "^4",
"react": "^18"
"react": "^18",
"react-hotkeys-hook": "^4"
},
"peerDependencies": {},
"devDependencies": {
Expand Down
3 changes: 3 additions & 0 deletions webapp/packages/plugin-administration/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
{
"path": "../core-connections/tsconfig.json"
},
{
"path": "../core-data-context/tsconfig.json"
},
{
"path": "../core-di/tsconfig.json"
},
Expand Down
2 changes: 1 addition & 1 deletion webapp/packages/plugin-data-viewer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"@cloudbeaver/core-dialogs": "^0",
"@cloudbeaver/core-events": "^0",
"@cloudbeaver/core-executor": "^0",
"@cloudbeaver/core-links": "^0",
"@cloudbeaver/core-localization": "^0",
"@cloudbeaver/core-navigation-tree": "^0",
"@cloudbeaver/core-resource": "^0",
Expand All @@ -36,7 +37,6 @@
"@cloudbeaver/core-ui": "^0",
"@cloudbeaver/core-utils": "^0",
"@cloudbeaver/core-view": "^0",
"@cloudbeaver/core-website": "^0",
"@cloudbeaver/plugin-codemirror6": "^0",
"@cloudbeaver/plugin-navigation-tabs": "^0",
"@cloudbeaver/plugin-object-viewer": "^0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
import { observer } from 'mobx-react-lite';

import { Container, Link, s, usePermission, useS, useTranslate } from '@cloudbeaver/core-blocks';
import { WebsiteLinks } from '@cloudbeaver/core-links';
import { EAdminPermission } from '@cloudbeaver/core-root';
import { WebsiteLinks } from '@cloudbeaver/core-website';

import type { IResultSetElementKey } from '../DatabaseDataModel/Actions/ResultSet/IResultSetDataKey.js';
import { ResultSetDataContentAction } from '../DatabaseDataModel/Actions/ResultSet/ResultSetDataContentAction.js';
Expand Down
6 changes: 3 additions & 3 deletions webapp/packages/plugin-data-viewer/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@
{
"path": "../core-executor/tsconfig.json"
},
{
"path": "../core-links/tsconfig.json"
},
{
"path": "../core-localization/tsconfig.json"
},
Expand Down Expand Up @@ -111,9 +114,6 @@
{
"path": "../core-view/tsconfig.json"
},
{
"path": "../core-website/tsconfig.json"
},
{
"path": "../plugin-codemirror6/tsconfig.json"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"@cloudbeaver/core-projects": "^0",
"@cloudbeaver/core-resource": "^0",
"@cloudbeaver/core-ui": "^0",
"@cloudbeaver/core-utils": "^0",
"@cloudbeaver/core-view": "^0",
"@cloudbeaver/plugin-navigation-tabs": "^0",
"@cloudbeaver/plugin-top-app-bar": "^0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@
{
"path": "../core-ui/tsconfig.json"
},
{
"path": "../core-utils/tsconfig.json"
},
{
"path": "../core-view/tsconfig.json"
},
Expand Down
2 changes: 1 addition & 1 deletion webapp/packages/plugin-help/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
"@cloudbeaver/core-di": "^0",
"@cloudbeaver/core-dialogs": "^0",
"@cloudbeaver/core-events": "^0",
"@cloudbeaver/core-links": "^0",
"@cloudbeaver/core-localization": "^0",
"@cloudbeaver/core-routing": "^0",
"@cloudbeaver/core-utils": "^0",
"@cloudbeaver/core-view": "^0",
"@cloudbeaver/core-website": "^0",
"@cloudbeaver/plugin-navigation-tree": "^0",
"@cloudbeaver/plugin-sql-editor": "^0",
"@cloudbeaver/plugin-top-app-bar": "^0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
useTranslate,
} from '@cloudbeaver/core-blocks';
import type { DialogComponent } from '@cloudbeaver/core-dialogs';
import { WebsiteLinks } from '@cloudbeaver/core-website';
import { WebsiteLinks } from '@cloudbeaver/core-links';

import { Shortcut } from './Shortcut.js';
import { DATA_VIEWER_SHORTCUTS, NAVIGATION_TREE_SHORTCUTS, SQL_EDITOR_SHORTCUTS } from './SHORTCUTS_DATA.js';
Expand Down
6 changes: 3 additions & 3 deletions webapp/packages/plugin-help/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
{
"path": "../core-events/tsconfig.json"
},
{
"path": "../core-links/tsconfig.json"
},
{
"path": "../core-localization/tsconfig.json"
},
Expand All @@ -36,9 +39,6 @@
{
"path": "../core-view/tsconfig.json"
},
{
"path": "../core-website/tsconfig.json"
},
{
"path": "../plugin-navigation-tree/tsconfig.json"
},
Expand Down
2 changes: 1 addition & 1 deletion webapp/packages/plugin-product/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
"@cloudbeaver/core-blocks": "^0",
"@cloudbeaver/core-di": "^0",
"@cloudbeaver/core-dialogs": "^0",
"@cloudbeaver/core-links": "^0",
"@cloudbeaver/core-localization": "^0",
"@cloudbeaver/core-root": "^0",
"@cloudbeaver/core-theming": "^0",
"@cloudbeaver/core-version": "^0",
"@cloudbeaver/core-view": "^0",
"@cloudbeaver/core-website": "^0",
"@cloudbeaver/plugin-settings-menu": "^0",
"mobx-react-lite": "^4",
"react": "^18"
Expand Down
4 changes: 2 additions & 2 deletions webapp/packages/plugin-product/src/ProductInfoDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ import {
} from '@cloudbeaver/core-blocks';
import { useService } from '@cloudbeaver/core-di';
import type { DialogComponentProps } from '@cloudbeaver/core-dialogs';
import { GithubLinks, WebsiteLinks } from '@cloudbeaver/core-links';
import { ProductInfoResource } from '@cloudbeaver/core-root';
import { ThemeService } from '@cloudbeaver/core-theming';
import { useAppVersion } from '@cloudbeaver/core-version';
import { WebsiteLinks } from '@cloudbeaver/core-website';

import ProductInfoDialogStyles from './ProductInfoDialog.module.css';

Expand Down Expand Up @@ -75,7 +75,7 @@ export const ProductInfoDialog = observer<DialogComponentProps<null>>(function P
Site{' '}
</Link>
or
<Link href={WebsiteLinks.GITHUB_REPOSITORY_PAGE} target="_blank" rel="noopener noreferrer">
<Link href={GithubLinks.CLOUDBEAVER_REPO} target="_blank" rel="noopener noreferrer">
{' '}
Github
</Link>
Expand Down
6 changes: 3 additions & 3 deletions webapp/packages/plugin-product/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
{
"path": "../core-dialogs/tsconfig.json"
},
{
"path": "../core-links/tsconfig.json"
},
{
"path": "../core-localization/tsconfig.json"
},
Expand All @@ -30,9 +33,6 @@
{
"path": "../core-view/tsconfig.json"
},
{
"path": "../core-website/tsconfig.json"
},
{
"path": "../plugin-settings-menu/tsconfig.json"
}
Expand Down

0 comments on commit ffa267f

Please sign in to comment.