Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cb 4911 add license headers with git hooks #2504

Merged
merged 17 commits into from
Apr 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .vscode/license.code-snippets
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
" *",
" * Licensed under the Apache License, Version 2.0.",
" * you may not use this file except in compliance with the License.",
" */",
"",
""
" */"
]
}
}
1 change: 1 addition & 0 deletions webapp/.husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node ./webapp/scripts/license-check.mjs ./.vscode/license.code-snippets license
5 changes: 4 additions & 1 deletion webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
},
"scripts": {
"prebuild": "lerna run gql:gen --stream --parallel",
"pretest": "lerna run gql:gen --stream --parallel && yarn lerna run test --scope @cloudbeaver/tests-runner"
"pretest": "lerna run gql:gen --stream --parallel && yarn lerna run test --scope @cloudbeaver/tests-runner",
"prepare": "cd .. && husky ./webapp/.husky",
"postinstall": "husky"
},
"devDependencies": {
"@testing-library/dom": "^9.3.4",
Expand All @@ -31,6 +33,7 @@
"@types/react": "^18.2.63",
"@types/react-dom": "^18.2.19",
"concurrently": "^8.2.2",
"husky": "^9.0.11",
"lerna": "5.5.4",
"mobx": "^6.12.0",
"mobx-react-lite": "^4.0.5",
Expand Down
7 changes: 7 additions & 0 deletions webapp/packages/core-blocks/src/Containers/GroupTitle.m.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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.
*/
.groupTitle {
composes: theme-typography--body2 from global;
composes: groupTitle from './Group.m.css';
Expand Down
7 changes: 7 additions & 0 deletions webapp/packages/core-blocks/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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 * from './CommonDialog/CommonDialog/CommonDialogBody';
export * from './CommonDialog/CommonDialog/CommonDialogFooter';
export * from './CommonDialog/CommonDialog/CommonDialogHeader';
Expand Down
7 changes: 7 additions & 0 deletions webapp/packages/core-product/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
/*
* 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 * from './ProductSettingsService';
export * from './manifest';
7 changes: 7 additions & 0 deletions webapp/packages/core-root/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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 * from './DataSynchronization/DataSynchronizationQueue';
export * from './DataSynchronization/DataSynchronizationService';
export * from './DataSynchronization/ISynchronizationMessage';
Expand Down
7 changes: 7 additions & 0 deletions webapp/packages/core-sdk/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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 * from './AsyncTask/AsyncTask';
export * from './AsyncTask/AsyncTaskInfoService';
export * from './Extensions/uploadBlobResultSetExtension';
Expand Down
7 changes: 7 additions & 0 deletions webapp/packages/core-settings-localization/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
/*
* 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 * from './manifest';
export * from './SettingsLocalizationService';
7 changes: 7 additions & 0 deletions webapp/packages/core-settings-localization/src/locales/en.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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 default [
['core_settings_localization_settings_locale_label', 'Language'],
['core_settings_localization_settings_locale_description', 'Language for the application'],
Expand Down
7 changes: 7 additions & 0 deletions webapp/packages/core-settings-localization/src/locales/it.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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 default [
['core_settings_localization_settings_locale_label', 'Language'],
['core_settings_localization_settings_locale_description', 'Language for the application'],
Expand Down
7 changes: 7 additions & 0 deletions webapp/packages/core-settings-localization/src/locales/ru.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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 default [
['core_settings_localization_settings_locale_label', 'Язык'],
['core_settings_localization_settings_locale_description', 'Язык для приложения'],
Expand Down
7 changes: 7 additions & 0 deletions webapp/packages/core-settings-localization/src/locales/zh.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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 default [
['core_settings_localization_settings_locale_label', 'Language'],
['core_settings_localization_settings_locale_description', 'Language for the application'],
Expand Down
7 changes: 7 additions & 0 deletions webapp/packages/core-settings-user/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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 * from './manifest';

export * from './UserSettingsService';
7 changes: 7 additions & 0 deletions webapp/packages/core-settings-user/src/locales/en.ts
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
/*
* 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 default [];
7 changes: 7 additions & 0 deletions webapp/packages/core-settings-user/src/locales/it.ts
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
/*
* 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 default [];
7 changes: 7 additions & 0 deletions webapp/packages/core-settings-user/src/locales/ru.ts
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
/*
* 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 default [];
7 changes: 7 additions & 0 deletions webapp/packages/core-settings-user/src/locales/zh.ts
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
/*
* 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 default [];
7 changes: 7 additions & 0 deletions webapp/packages/core-settings/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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 * from './manifest';
export * from './createSettingsAliasResolver';
export * from './SettingsScopeType';
Expand Down
7 changes: 7 additions & 0 deletions webapp/packages/core-settings/src/locales/en.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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 default [
['core_plugin_interface_settings_group', 'Interface'],
['core_plugin_root_settings_group', 'Settings'],
Expand Down
7 changes: 7 additions & 0 deletions webapp/packages/core-settings/src/locales/it.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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 default [
['core_plugin_interface_settings_group', 'Interface'],
['core_plugin_root_settings_group', 'Settings'],
Expand Down
7 changes: 7 additions & 0 deletions webapp/packages/core-settings/src/locales/ru.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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 default [
['core_plugin_interface_settings_group', 'Интерфейс'],
['core_plugin_root_settings_group', 'Настройки'],
Expand Down
7 changes: 7 additions & 0 deletions webapp/packages/core-settings/src/locales/zh.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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 default [
['core_plugin_interface_settings_group', 'Interface'],
['core_plugin_root_settings_group', 'Settings'],
Expand Down
7 changes: 7 additions & 0 deletions webapp/packages/core-storage/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
/*
* 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 * from './manifest';
export * from './StorageService';
7 changes: 7 additions & 0 deletions webapp/packages/core-theming/src/locales/en.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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 default [
['core_theming_settings_theme_name', 'Theme'],
['core_theming_settings_theme_description', 'Application color theme'],
Expand Down
7 changes: 7 additions & 0 deletions webapp/packages/core-theming/src/locales/it.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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 default [
['core_theming_settings_theme_name', 'Theme'],
['core_theming_settings_theme_description', 'Application color theme'],
Expand Down
7 changes: 7 additions & 0 deletions webapp/packages/core-theming/src/locales/ru.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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 default [
['core_theming_settings_theme_name', 'Тема'],
['core_theming_settings_theme_description', 'Цветовая тема приложения'],
Expand Down
7 changes: 7 additions & 0 deletions webapp/packages/core-theming/src/locales/zh.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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 default [
['core_theming_settings_theme_name', 'Theme'],
['core_theming_settings_theme_description', 'Application color theme'],
Expand Down
7 changes: 7 additions & 0 deletions webapp/packages/core-ui/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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 * from './Clipboard/ClipboardBootstrap';
export * from './Clipboard/ClipboardService';

Expand Down
7 changes: 7 additions & 0 deletions webapp/packages/core-utils/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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 * from './Promises/CancellablePromise';
export * from './Promises/deferPromise';
export * from './Promises/Deferred';
Expand Down
7 changes: 7 additions & 0 deletions webapp/packages/core-utils/src/schema.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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.
*/
import * as z from 'zod';

export const schemaExtra = {
Expand Down
7 changes: 7 additions & 0 deletions webapp/packages/core-view/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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 * from './Action/Actions/ACTION_COLLAPSE_ALL';
export * from './Action/Actions/ACTION_CREATE';
export * from './Action/Actions/ACTION_DELETE';
Expand Down
7 changes: 7 additions & 0 deletions webapp/packages/plugin-data-import/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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 { dataImportPluginManifest } from './manifest';

export * from './DataImportSettingsService';
7 changes: 7 additions & 0 deletions webapp/packages/plugin-data-import/src/locales/en.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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 default [
['plugin_data_import_title', 'Data import'],
['plugin_data_import_process_title', 'Importing data...'],
Expand Down
7 changes: 7 additions & 0 deletions webapp/packages/plugin-data-import/src/locales/it.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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 default [
['plugin_data_import_title', 'Data import'],
['plugin_data_import_process_title', 'Importing data...'],
Expand Down
7 changes: 7 additions & 0 deletions webapp/packages/plugin-data-import/src/locales/ru.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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 default [
['plugin_data_import_title', 'Импорт данных'],
['plugin_data_import_process_title', 'Импорт данных...'],
Expand Down
7 changes: 7 additions & 0 deletions webapp/packages/plugin-data-import/src/locales/zh.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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 default [
['plugin_data_import_title', 'Data import'],
['plugin_data_import_process_title', 'Importing data...'],
Expand Down
Loading
Loading