From efda3a38945379f8b342e936a9047326530f9c64 Mon Sep 17 00:00:00 2001 From: HSunboy Date: Tue, 3 Dec 2024 08:53:41 +0000 Subject: [PATCH] Copyright --- scripts/client/sign.js | 16 ++++++++++++++++ src/common/network/databaseChange.ts | 16 ++++++++++++++++ src/common/network/logicalDatabase.ts | 16 ++++++++++++++++ src/common/network/sql/preHandle.tsx | 16 ++++++++++++++++ src/component/Button/SyncMetadata/index.tsx | 16 ++++++++++++++++ src/component/CommonCopyIcon/index.tsx | 16 ++++++++++++++++ src/component/Empty/DataSourceEmpty/index.tsx | 16 ++++++++++++++++ src/component/Empty/ProjectEmpty/index.tsx | 16 ++++++++++++++++ src/component/Empty/SQLConsoleEmpty/index.tsx | 16 ++++++++++++++++ src/component/Empty/ScanRuleEmpty/index.tsx | 16 ++++++++++++++++ src/component/ExecuteSqlDetailModal/constant.tsx | 16 ++++++++++++++++ src/component/ExecuteSqlDetailModal/index.tsx | 16 ++++++++++++++++ src/component/Input/Keymap/helper.ts | 16 ++++++++++++++++ src/component/ProfileFlow/constant.ts | 16 ++++++++++++++++ .../ProfileFlow/customComponents/Control.tsx | 16 ++++++++++++++++ .../ProfileFlow/customComponents/DetailBox.tsx | 16 ++++++++++++++++ .../ProfileFlow/customComponents/Edge.tsx | 16 ++++++++++++++++ .../ProfileFlow/customComponents/Node.tsx | 16 ++++++++++++++++ src/component/ProfileFlow/index.tsx | 16 ++++++++++++++++ src/component/ProfileFlow/treeLayout.ts | 16 ++++++++++++++++ src/component/ProfileFlow/utils.ts | 16 ++++++++++++++++ src/component/RadioTag/index.tsx | 16 ++++++++++++++++ .../CreateModal/PreviewSQLDrawer.tsx | 16 ++++++++++++++++ .../DetailContent/index.tsx | 16 ++++++++++++++++ .../CreateModal/DatabaseQueue.tsx | 16 ++++++++++++++++ .../CreateModal/DrawerFooter.tsx | 16 ++++++++++++++++ .../CreateModal/InnerSelecter.tsx | 16 ++++++++++++++++ .../MutipleAsyncTask/CreateModal/MoreSetting.tsx | 16 ++++++++++++++++ .../CreateModal/MultipleAsyncContext.ts | 16 ++++++++++++++++ .../CreateModal/ProjectSelect.tsx | 16 ++++++++++++++++ .../Task/MutipleAsyncTask/CreateModal/helper.tsx | 16 ++++++++++++++++ .../Task/MutipleAsyncTask/CreateModal/index.tsx | 16 ++++++++++++++++ .../MutipleAsyncTask/DetailContent/index.tsx | 16 ++++++++++++++++ .../components/Template/CreateTemplate.tsx | 16 ++++++++++++++++ .../components/Template/EditTemplate.tsx | 16 ++++++++++++++++ .../components/Template/ManageTemplate.tsx | 16 ++++++++++++++++ .../components/Template/SelectTemplate.tsx | 16 ++++++++++++++++ .../components/Template/ShowTemplate.tsx | 16 ++++++++++++++++ .../components/Template/index.tsx | 16 ++++++++++++++++ src/component/Task/MutipleAsyncTask/index.tsx | 16 ++++++++++++++++ src/component/Task/TaskDetailContext.tsx | 16 ++++++++++++++++ .../CommonDetailModal/ExcecuteDetailModal.tsx | 16 ++++++++++++++++ .../Nodes/MultipleSQLCheckNode.tsx | 16 ++++++++++++++++ .../CommonDetailModal/TaskExecuteModal.tsx | 16 ++++++++++++++++ .../TaskProgress/ProgressDetailsModal.tsx | 16 ++++++++++++++++ .../TaskProgress/TaskProgressDrawer.tsx | 16 ++++++++++++++++ .../TaskProgress/TaskProgressHeader.tsx | 16 ++++++++++++++++ .../CommonDetailModal/TaskProgress/colums.tsx | 16 ++++++++++++++++ .../Task/component/PartitionTextArea/index.tsx | 16 ++++++++++++++++ .../component/ShardingStrategyItem/index.tsx | 16 ++++++++++++++++ .../Task/component/SynchronizationItem/index.tsx | 16 ++++++++++++++++ .../Task/component/TaskdurationItem/index.tsx | 16 ++++++++++++++++ src/component/logicIcon/index.tsx | 16 ++++++++++++++++ src/d.ts/logicalDatabase.ts | 16 ++++++++++++++++ src/page/Datasource/Info/Header/Filter/index.tsx | 16 ++++++++++++++++ src/page/Datasource/Info/Header/Search.tsx | 16 ++++++++++++++++ src/page/Datasource/Info/Header/index.tsx | 16 ++++++++++++++++ src/page/Datasource/Info/ParamContext.tsx | 16 ++++++++++++++++ .../Project/Database/Header/Filter/index.tsx | 16 ++++++++++++++++ src/page/Project/Database/Header/Search.tsx | 16 ++++++++++++++++ src/page/Project/Database/Header/index.tsx | 16 ++++++++++++++++ src/page/Project/Database/ParamContext.tsx | 16 ++++++++++++++++ .../components/DatabaseOwnerSelect/index.tsx | 16 ++++++++++++++++ .../LogicDatabase/CreateLogicialDatabase.tsx | 16 ++++++++++++++++ .../LogicDatabase/ManageLogicDatabase.tsx | 16 ++++++++++++++++ .../Database/components/LogicDatabase/index.tsx | 16 ++++++++++++++++ src/page/Project/Database/const.ts | 16 ++++++++++++++++ .../components/DatabaseList.tsx | 16 ++++++++++++++++ .../components/ObjectList.tsx | 16 ++++++++++++++++ .../DatabaseSearchModal/components/Search.tsx | 16 ++++++++++++++++ .../ResourceTree/DatabaseSearchModal/constant.ts | 16 ++++++++++++++++ .../ResourceTree/DatabaseSearchModal/index.tsx | 16 ++++++++++++++++ .../CreateTable/BaseInfo/LogicTableBaseInfo.tsx | 16 ++++++++++++++++ .../DBPermissionTableContent/index.tsx | 16 ++++++++++++++++ .../SQLResultSet/MultipleAsyncSQLLintTable.tsx | 16 ++++++++++++++++ .../Workspace/components/SQLResultSet/const.ts | 16 ++++++++++++++++ .../ShowTableBaseInfoForm/LogicTableBaseInfo.tsx | 16 ++++++++++++++++ .../components/Trace/TraceComponent.tsx | 16 ++++++++++++++++ src/store/guideCache.ts | 16 ++++++++++++++++ src/util/database.ts | 16 ++++++++++++++++ 80 files changed, 1280 insertions(+) diff --git a/scripts/client/sign.js b/scripts/client/sign.js index 3ffb9cbc4..b57c16234 100644 --- a/scripts/client/sign.js +++ b/scripts/client/sign.js @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + const path = require('path'); const fs = require('fs'); const { execSync } = require('child_process'); diff --git a/src/common/network/databaseChange.ts b/src/common/network/databaseChange.ts index 62feb3576..fced6cc4b 100644 --- a/src/common/network/databaseChange.ts +++ b/src/common/network/databaseChange.ts @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { IResponse, IResponseData } from '@/d.ts'; import request from '@/util/request'; diff --git a/src/common/network/logicalDatabase.ts b/src/common/network/logicalDatabase.ts index 8e87b7850..79376fdf9 100644 --- a/src/common/network/logicalDatabase.ts +++ b/src/common/network/logicalDatabase.ts @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { IResponse, IResponseData } from '@/d.ts'; import { PreviewLogicalTableTopologiesErrorEnum } from '@/d.ts/database'; import { diff --git a/src/common/network/sql/preHandle.tsx b/src/common/network/sql/preHandle.tsx index b82011571..648f21e67 100644 --- a/src/common/network/sql/preHandle.tsx +++ b/src/common/network/sql/preHandle.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { ISQLLintReuslt } from '@/component/SQLLintResult/type'; import { EStatus } from '@/d.ts'; import modal from '@/store/modal'; diff --git a/src/component/Button/SyncMetadata/index.tsx b/src/component/Button/SyncMetadata/index.tsx index ad55f007c..9df30ec51 100644 --- a/src/component/Button/SyncMetadata/index.tsx +++ b/src/component/Button/SyncMetadata/index.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { syncObject } from '@/common/network/database'; import { IManagerResourceType } from '@/d.ts'; import { DBObjectSyncStatus, IDatabase } from '@/d.ts/database'; diff --git a/src/component/CommonCopyIcon/index.tsx b/src/component/CommonCopyIcon/index.tsx index 2fca668a5..5cb286f16 100644 --- a/src/component/CommonCopyIcon/index.tsx +++ b/src/component/CommonCopyIcon/index.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import CopyToClipboard from 'react-copy-to-clipboard'; import { CopyOutlined } from '@ant-design/icons'; import { Tooltip } from 'antd'; diff --git a/src/component/Empty/DataSourceEmpty/index.tsx b/src/component/Empty/DataSourceEmpty/index.tsx index 399a86015..298d0192a 100644 --- a/src/component/Empty/DataSourceEmpty/index.tsx +++ b/src/component/Empty/DataSourceEmpty/index.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { formatMessage } from '@/util/intl'; import { Acess, createPermission } from '@/component/Acess'; import { actionTypes, IManagerResourceType } from '@/d.ts'; diff --git a/src/component/Empty/ProjectEmpty/index.tsx b/src/component/Empty/ProjectEmpty/index.tsx index 85e0cfa56..7bbeb1e27 100644 --- a/src/component/Empty/ProjectEmpty/index.tsx +++ b/src/component/Empty/ProjectEmpty/index.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { formatMessage } from '@/util/intl'; import { Result } from 'antd'; import styles from './index.less'; diff --git a/src/component/Empty/SQLConsoleEmpty/index.tsx b/src/component/Empty/SQLConsoleEmpty/index.tsx index 73c1d208b..29f060681 100644 --- a/src/component/Empty/SQLConsoleEmpty/index.tsx +++ b/src/component/Empty/SQLConsoleEmpty/index.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { formatMessage } from '@/util/intl'; import { SQLConsoleResourceType } from '@/common/datasource/interface'; import NewDatasourceButton from '@/page/Datasource/Datasource/NewDatasourceDrawer/NewButton'; diff --git a/src/component/Empty/ScanRuleEmpty/index.tsx b/src/component/Empty/ScanRuleEmpty/index.tsx index 3ef40e23f..fa895d366 100644 --- a/src/component/Empty/ScanRuleEmpty/index.tsx +++ b/src/component/Empty/ScanRuleEmpty/index.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { Acess, createPermission } from '@/component/Acess'; import { actionTypes, IManagerResourceType } from '@/d.ts'; import { formatMessage } from '@/util/intl'; diff --git a/src/component/ExecuteSqlDetailModal/constant.tsx b/src/component/ExecuteSqlDetailModal/constant.tsx index 724a2888e..7c47a8eb0 100644 --- a/src/component/ExecuteSqlDetailModal/constant.tsx +++ b/src/component/ExecuteSqlDetailModal/constant.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { ReactComponent as List } from '@/svgr/List.svg'; import { ReactComponent as Text } from '@/svgr/Text.svg'; import { ReactComponent as TraceSvg } from '@/svgr/Trace.svg'; diff --git a/src/component/ExecuteSqlDetailModal/index.tsx b/src/component/ExecuteSqlDetailModal/index.tsx index 6cd8e1ff5..b32becf10 100644 --- a/src/component/ExecuteSqlDetailModal/index.tsx +++ b/src/component/ExecuteSqlDetailModal/index.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { getFullLinkTraceDownloadUrl, getSQLExecuteProfile, diff --git a/src/component/Input/Keymap/helper.ts b/src/component/Input/Keymap/helper.ts index 0e73a7cc8..7f868af04 100644 --- a/src/component/Input/Keymap/helper.ts +++ b/src/component/Input/Keymap/helper.ts @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { formatMessage } from '@/util/intl'; import { KeyCode } from 'monaco-editor'; diff --git a/src/component/ProfileFlow/constant.ts b/src/component/ProfileFlow/constant.ts index 7c7668a2c..75c58873b 100644 --- a/src/component/ProfileFlow/constant.ts +++ b/src/component/ProfileFlow/constant.ts @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { formatMessage } from '@/util/intl'; // reactFlow id export const REACT_FLOW_ID = 'PROFILE_FLOW_BOX'; diff --git a/src/component/ProfileFlow/customComponents/Control.tsx b/src/component/ProfileFlow/customComponents/Control.tsx index f7c8bfdc0..1cc04ce69 100644 --- a/src/component/ProfileFlow/customComponents/Control.tsx +++ b/src/component/ProfileFlow/customComponents/Control.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { formatMessage } from '@/util/intl'; import { Controls, ControlButton, useReactFlow } from 'reactflow'; import { diff --git a/src/component/ProfileFlow/customComponents/DetailBox.tsx b/src/component/ProfileFlow/customComponents/DetailBox.tsx index 0da86473f..2d6075871 100644 --- a/src/component/ProfileFlow/customComponents/DetailBox.tsx +++ b/src/component/ProfileFlow/customComponents/DetailBox.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { formatMessage } from '@/util/intl'; import { formatTimeTemplate } from '@/util/utils'; import { Divider, Progress, Radio, Select, Tooltip } from 'antd'; diff --git a/src/component/ProfileFlow/customComponents/Edge.tsx b/src/component/ProfileFlow/customComponents/Edge.tsx index 15bab7d72..bf036360f 100644 --- a/src/component/ProfileFlow/customComponents/Edge.tsx +++ b/src/component/ProfileFlow/customComponents/Edge.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { formatMessage } from '@/util/intl'; import { Tooltip } from 'antd'; import { EdgeLabelRenderer } from 'reactflow'; diff --git a/src/component/ProfileFlow/customComponents/Node.tsx b/src/component/ProfileFlow/customComponents/Node.tsx index 212d60192..629b0c05b 100644 --- a/src/component/ProfileFlow/customComponents/Node.tsx +++ b/src/component/ProfileFlow/customComponents/Node.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { Handle, Position } from 'reactflow'; import { MinusCircleOutlined, PlusCircleOutlined } from '@ant-design/icons'; import { Progress, Tooltip } from 'antd'; diff --git a/src/component/ProfileFlow/index.tsx b/src/component/ProfileFlow/index.tsx index 6616988ac..f0db00cf4 100644 --- a/src/component/ProfileFlow/index.tsx +++ b/src/component/ProfileFlow/index.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { IProfileGraph } from '@/d.ts'; import { useEffect, useRef, useState } from 'react'; import ReactFlow, { diff --git a/src/component/ProfileFlow/treeLayout.ts b/src/component/ProfileFlow/treeLayout.ts index 0bf5bbcb1..29fc7d9eb 100644 --- a/src/component/ProfileFlow/treeLayout.ts +++ b/src/component/ProfileFlow/treeLayout.ts @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { NODE_WIDTH, NODE_X_INTERVAL, NODE_HEIGTH, NODE_Y_INTERVAL } from './constant'; // 节点类 diff --git a/src/component/ProfileFlow/utils.ts b/src/component/ProfileFlow/utils.ts index e4a9d624c..741738c26 100644 --- a/src/component/ProfileFlow/utils.ts +++ b/src/component/ProfileFlow/utils.ts @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { IProfileVertexes } from '@/d.ts'; import type { Node as FlowNode, SetCenter, SetViewport } from 'reactflow'; import { diff --git a/src/component/RadioTag/index.tsx b/src/component/RadioTag/index.tsx index e38974096..4eaac8515 100644 --- a/src/component/RadioTag/index.tsx +++ b/src/component/RadioTag/index.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { Space } from 'antd'; import classNames from 'classnames'; import React from 'react'; diff --git a/src/component/Task/LogicDatabaseAsyncTask/CreateModal/PreviewSQLDrawer.tsx b/src/component/Task/LogicDatabaseAsyncTask/CreateModal/PreviewSQLDrawer.tsx index 49ea8c07f..6f6d191cd 100644 --- a/src/component/Task/LogicDatabaseAsyncTask/CreateModal/PreviewSQLDrawer.tsx +++ b/src/component/Task/LogicDatabaseAsyncTask/CreateModal/PreviewSQLDrawer.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { formatMessage } from '@/util/intl'; import { previewSqls } from '@/common/network/logicalDatabase'; import DataBaseStatusIcon from '@/component/StatusIcon/DatabaseIcon'; diff --git a/src/component/Task/LogicDatabaseAsyncTask/DetailContent/index.tsx b/src/component/Task/LogicDatabaseAsyncTask/DetailContent/index.tsx index 8389576ba..c80efd270 100644 --- a/src/component/Task/LogicDatabaseAsyncTask/DetailContent/index.tsx +++ b/src/component/Task/LogicDatabaseAsyncTask/DetailContent/index.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { formatMessage } from '@/util/intl'; import { getDataSourceModeConfigByConnectionMode } from '@/common/datasource'; import { ODCRiskLevelLabel } from '@/component/RiskLevelLabel'; diff --git a/src/component/Task/MutipleAsyncTask/CreateModal/DatabaseQueue.tsx b/src/component/Task/MutipleAsyncTask/CreateModal/DatabaseQueue.tsx index ffb17ce91..ae7cfac23 100644 --- a/src/component/Task/MutipleAsyncTask/CreateModal/DatabaseQueue.tsx +++ b/src/component/Task/MutipleAsyncTask/CreateModal/DatabaseQueue.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { listDatabases } from '@/common/network/database'; import { IConnection, IConnectionStatus, TaskType } from '@/d.ts'; import { DatabasePermissionType } from '@/d.ts/database'; diff --git a/src/component/Task/MutipleAsyncTask/CreateModal/DrawerFooter.tsx b/src/component/Task/MutipleAsyncTask/CreateModal/DrawerFooter.tsx index d073e4350..b4ddacd2c 100644 --- a/src/component/Task/MutipleAsyncTask/CreateModal/DrawerFooter.tsx +++ b/src/component/Task/MutipleAsyncTask/CreateModal/DrawerFooter.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { formatMessage } from '@/util/intl'; import { Button, Space } from 'antd'; diff --git a/src/component/Task/MutipleAsyncTask/CreateModal/InnerSelecter.tsx b/src/component/Task/MutipleAsyncTask/CreateModal/InnerSelecter.tsx index d76f3aa9d..5378dd22e 100644 --- a/src/component/Task/MutipleAsyncTask/CreateModal/InnerSelecter.tsx +++ b/src/component/Task/MutipleAsyncTask/CreateModal/InnerSelecter.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { getDataSourceStyleByConnectType } from '@/common/datasource'; import ConnectionPopover from '@/component/ConnectionPopover'; import RiskLevelLabel from '@/component/RiskLevelLabel'; diff --git a/src/component/Task/MutipleAsyncTask/CreateModal/MoreSetting.tsx b/src/component/Task/MutipleAsyncTask/CreateModal/MoreSetting.tsx index 2902b7e37..1e070a097 100644 --- a/src/component/Task/MutipleAsyncTask/CreateModal/MoreSetting.tsx +++ b/src/component/Task/MutipleAsyncTask/CreateModal/MoreSetting.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import FormItemPanel from '@/component/FormItemPanel'; import { TaskExecStrategy } from '@/d.ts'; import { formatMessage } from '@/util/intl'; diff --git a/src/component/Task/MutipleAsyncTask/CreateModal/MultipleAsyncContext.ts b/src/component/Task/MutipleAsyncTask/CreateModal/MultipleAsyncContext.ts index 18f0a3316..363494700 100644 --- a/src/component/Task/MutipleAsyncTask/CreateModal/MultipleAsyncContext.ts +++ b/src/component/Task/MutipleAsyncTask/CreateModal/MultipleAsyncContext.ts @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import React from 'react'; export const MultipleAsyncContext = React.createContext<{ diff --git a/src/component/Task/MutipleAsyncTask/CreateModal/ProjectSelect.tsx b/src/component/Task/MutipleAsyncTask/CreateModal/ProjectSelect.tsx index 1d7ea1967..07055a1b8 100644 --- a/src/component/Task/MutipleAsyncTask/CreateModal/ProjectSelect.tsx +++ b/src/component/Task/MutipleAsyncTask/CreateModal/ProjectSelect.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { formatMessage } from '@/util/intl'; import { Form, Select } from 'antd'; diff --git a/src/component/Task/MutipleAsyncTask/CreateModal/helper.tsx b/src/component/Task/MutipleAsyncTask/CreateModal/helper.tsx index 43a5f147c..101fdc0d0 100644 --- a/src/component/Task/MutipleAsyncTask/CreateModal/helper.tsx +++ b/src/component/Task/MutipleAsyncTask/CreateModal/helper.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { formatMessage } from '@/util/intl'; import type { ModalStore } from '@/store/modal'; import type { SQLStore } from '@/store/sql'; diff --git a/src/component/Task/MutipleAsyncTask/CreateModal/index.tsx b/src/component/Task/MutipleAsyncTask/CreateModal/index.tsx index 3efcb2daf..f3c5f36a0 100644 --- a/src/component/Task/MutipleAsyncTask/CreateModal/index.tsx +++ b/src/component/Task/MutipleAsyncTask/CreateModal/index.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { getDataSourceModeConfig } from '@/common/datasource'; import { listProjects } from '@/common/network/project'; import { runMultipleSQLLint } from '@/common/network/sql'; diff --git a/src/component/Task/MutipleAsyncTask/DetailContent/index.tsx b/src/component/Task/MutipleAsyncTask/DetailContent/index.tsx index ae913842b..f512d30fb 100644 --- a/src/component/Task/MutipleAsyncTask/DetailContent/index.tsx +++ b/src/component/Task/MutipleAsyncTask/DetailContent/index.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { getDataSourceModeConfig, getDataSourceStyleByConnectType } from '@/common/datasource'; import RiskLevelLabel, { ODCRiskLevelLabel } from '@/component/RiskLevelLabel'; import { SQLContent } from '@/component/SQLContent'; diff --git a/src/component/Task/MutipleAsyncTask/components/Template/CreateTemplate.tsx b/src/component/Task/MutipleAsyncTask/components/Template/CreateTemplate.tsx index 4fe01d2ec..da21189d3 100644 --- a/src/component/Task/MutipleAsyncTask/components/Template/CreateTemplate.tsx +++ b/src/component/Task/MutipleAsyncTask/components/Template/CreateTemplate.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { formatMessage } from '@/util/intl'; import { createTemplate, existsTemplateName } from '@/common/network/databaseChange'; import login from '@/store/login'; diff --git a/src/component/Task/MutipleAsyncTask/components/Template/EditTemplate.tsx b/src/component/Task/MutipleAsyncTask/components/Template/EditTemplate.tsx index 20c14552a..6a203d3b0 100644 --- a/src/component/Task/MutipleAsyncTask/components/Template/EditTemplate.tsx +++ b/src/component/Task/MutipleAsyncTask/components/Template/EditTemplate.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { listDatabases } from '@/common/network/database'; import { detailTemplate, diff --git a/src/component/Task/MutipleAsyncTask/components/Template/ManageTemplate.tsx b/src/component/Task/MutipleAsyncTask/components/Template/ManageTemplate.tsx index 580ba110d..cea2401aa 100644 --- a/src/component/Task/MutipleAsyncTask/components/Template/ManageTemplate.tsx +++ b/src/component/Task/MutipleAsyncTask/components/Template/ManageTemplate.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { formatMessage } from '@/util/intl'; import { Template, getTemplateList, deleteTemplate } from '@/common/network/databaseChange'; import CommonTable from '@/component/CommonTable'; diff --git a/src/component/Task/MutipleAsyncTask/components/Template/SelectTemplate.tsx b/src/component/Task/MutipleAsyncTask/components/Template/SelectTemplate.tsx index 5b9ef0312..521c19ae2 100644 --- a/src/component/Task/MutipleAsyncTask/components/Template/SelectTemplate.tsx +++ b/src/component/Task/MutipleAsyncTask/components/Template/SelectTemplate.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { formatMessage } from '@/util/intl'; import { Template, getTemplateList, detailTemplate } from '@/common/network/databaseChange'; import { IDatabase } from '@/d.ts/database'; diff --git a/src/component/Task/MutipleAsyncTask/components/Template/ShowTemplate.tsx b/src/component/Task/MutipleAsyncTask/components/Template/ShowTemplate.tsx index 77e0490fe..43f9e5f44 100644 --- a/src/component/Task/MutipleAsyncTask/components/Template/ShowTemplate.tsx +++ b/src/component/Task/MutipleAsyncTask/components/Template/ShowTemplate.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { getDataSourceStyleByConnectType } from '@/common/datasource'; import RiskLevelLabel from '@/component/RiskLevelLabel'; import { formatMessage } from '@/util/intl'; diff --git a/src/component/Task/MutipleAsyncTask/components/Template/index.tsx b/src/component/Task/MutipleAsyncTask/components/Template/index.tsx index 1b8fd84a4..e9433dec3 100644 --- a/src/component/Task/MutipleAsyncTask/components/Template/index.tsx +++ b/src/component/Task/MutipleAsyncTask/components/Template/index.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + export { default as CreateTemplate } from './CreateTemplate'; export { default as EditTemplate } from './EditTemplate'; export { default as ManageTemplate } from './ManageTemplate'; diff --git a/src/component/Task/MutipleAsyncTask/index.tsx b/src/component/Task/MutipleAsyncTask/index.tsx index b797b47eb..c58222044 100644 --- a/src/component/Task/MutipleAsyncTask/index.tsx +++ b/src/component/Task/MutipleAsyncTask/index.tsx @@ -1,2 +1,18 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + export { default } from './CreateModal'; export { default as MutipleAsyncTaskContent } from './DetailContent'; diff --git a/src/component/Task/TaskDetailContext.tsx b/src/component/Task/TaskDetailContext.tsx index 4b1cc2e52..e9bcc16e8 100644 --- a/src/component/Task/TaskDetailContext.tsx +++ b/src/component/Task/TaskDetailContext.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import type { ICycleTaskRecord, TaskRecord, TaskRecordParameters } from '@/d.ts'; import React from 'react'; import { IState } from './Content'; diff --git a/src/component/Task/component/CommonDetailModal/ExcecuteDetailModal.tsx b/src/component/Task/component/CommonDetailModal/ExcecuteDetailModal.tsx index 44c9ac8cd..112cc943e 100644 --- a/src/component/Task/component/CommonDetailModal/ExcecuteDetailModal.tsx +++ b/src/component/Task/component/CommonDetailModal/ExcecuteDetailModal.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { formatMessage } from '@/util/intl'; import { Drawer, Table, Descriptions, Spin } from 'antd'; import { useRequest } from 'ahooks'; diff --git a/src/component/Task/component/CommonDetailModal/Nodes/MultipleSQLCheckNode.tsx b/src/component/Task/component/CommonDetailModal/Nodes/MultipleSQLCheckNode.tsx index ad2e871bb..043d89c3f 100644 --- a/src/component/Task/component/CommonDetailModal/Nodes/MultipleSQLCheckNode.tsx +++ b/src/component/Task/component/CommonDetailModal/Nodes/MultipleSQLCheckNode.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { getFlowSQLLintResult } from '@/common/network/task'; import { ISQLLintReuslt } from '@/component/SQLLintResult/type'; import { ITaskFlowNode } from '@/d.ts'; diff --git a/src/component/Task/component/CommonDetailModal/TaskExecuteModal.tsx b/src/component/Task/component/CommonDetailModal/TaskExecuteModal.tsx index 776a5bcd4..ce225a4cb 100644 --- a/src/component/Task/component/CommonDetailModal/TaskExecuteModal.tsx +++ b/src/component/Task/component/CommonDetailModal/TaskExecuteModal.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { formatMessage } from '@/util/intl'; import { getDataSourceStyleByConnectType } from '@/common/datasource'; import { getPhysicalExecuteDetails } from '@/common/network/logicalDatabase'; diff --git a/src/component/Task/component/CommonDetailModal/TaskProgress/ProgressDetailsModal.tsx b/src/component/Task/component/CommonDetailModal/TaskProgress/ProgressDetailsModal.tsx index 6a4d2b0b7..292184652 100644 --- a/src/component/Task/component/CommonDetailModal/TaskProgress/ProgressDetailsModal.tsx +++ b/src/component/Task/component/CommonDetailModal/TaskProgress/ProgressDetailsModal.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { formatMessage } from '@/util/intl'; import { ProgressOfLocklessStructureChangeTaskStatusMap } from '@/d.ts'; import { Button, Modal, Steps } from 'antd'; diff --git a/src/component/Task/component/CommonDetailModal/TaskProgress/TaskProgressDrawer.tsx b/src/component/Task/component/CommonDetailModal/TaskProgress/TaskProgressDrawer.tsx index f44024aad..3ddc36098 100644 --- a/src/component/Task/component/CommonDetailModal/TaskProgress/TaskProgressDrawer.tsx +++ b/src/component/Task/component/CommonDetailModal/TaskProgress/TaskProgressDrawer.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { SQLContent } from '@/component/SQLContent'; import { TaskDetail, TaskRecordParameters } from '@/d.ts'; import { formatMessage } from '@/util/intl'; diff --git a/src/component/Task/component/CommonDetailModal/TaskProgress/TaskProgressHeader.tsx b/src/component/Task/component/CommonDetailModal/TaskProgress/TaskProgressHeader.tsx index 86c43ea16..48f990958 100644 --- a/src/component/Task/component/CommonDetailModal/TaskProgress/TaskProgressHeader.tsx +++ b/src/component/Task/component/CommonDetailModal/TaskProgress/TaskProgressHeader.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { SchemaChangeRecordStatus } from '@/d.ts/logicalDatabase'; import { formatMessage } from '@/util/intl'; import React from 'react'; diff --git a/src/component/Task/component/CommonDetailModal/TaskProgress/colums.tsx b/src/component/Task/component/CommonDetailModal/TaskProgress/colums.tsx index 9f6806f79..688b9fe85 100644 --- a/src/component/Task/component/CommonDetailModal/TaskProgress/colums.tsx +++ b/src/component/Task/component/CommonDetailModal/TaskProgress/colums.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { getDataSourceStyleByConnectType } from '@/common/datasource'; import Action from '@/component/Action'; import RiskLevelLabel from '@/component/RiskLevelLabel'; diff --git a/src/component/Task/component/PartitionTextArea/index.tsx b/src/component/Task/component/PartitionTextArea/index.tsx index d231d1bbd..a411d0e95 100644 --- a/src/component/Task/component/PartitionTextArea/index.tsx +++ b/src/component/Task/component/PartitionTextArea/index.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { formatMessage } from '@/util/intl'; import { Button, Form, Select, Space, Input } from 'antd'; import styles from './index.less'; diff --git a/src/component/Task/component/ShardingStrategyItem/index.tsx b/src/component/Task/component/ShardingStrategyItem/index.tsx index 5f766e51c..4ffb32c7c 100644 --- a/src/component/Task/component/ShardingStrategyItem/index.tsx +++ b/src/component/Task/component/ShardingStrategyItem/index.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { formatMessage } from '@/util/intl'; import { Form, Radio } from 'antd'; import { ShardingStrategy } from '@/d.ts'; diff --git a/src/component/Task/component/SynchronizationItem/index.tsx b/src/component/Task/component/SynchronizationItem/index.tsx index 692bb8909..beb094ed4 100644 --- a/src/component/Task/component/SynchronizationItem/index.tsx +++ b/src/component/Task/component/SynchronizationItem/index.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { formatMessage } from '@/util/intl'; import { Form, Space, Checkbox, FormInstance } from 'antd'; import React, { useEffect, useState } from 'react'; diff --git a/src/component/Task/component/TaskdurationItem/index.tsx b/src/component/Task/component/TaskdurationItem/index.tsx index 7022002c6..e61ac100f 100644 --- a/src/component/Task/component/TaskdurationItem/index.tsx +++ b/src/component/Task/component/TaskdurationItem/index.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { formatMessage } from '@/util/intl'; import { Checkbox, Form, FormInstance, InputNumber, Space } from 'antd'; import React, { useEffect, useState } from 'react'; diff --git a/src/component/logicIcon/index.tsx b/src/component/logicIcon/index.tsx index 77bfb478a..a2df73c71 100644 --- a/src/component/logicIcon/index.tsx +++ b/src/component/logicIcon/index.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { formatMessage } from '@/util/intl'; import styles from './index.less'; export default () => { diff --git a/src/d.ts/logicalDatabase.ts b/src/d.ts/logicalDatabase.ts index c8983c9a5..ab8e6b395 100644 --- a/src/d.ts/logicalDatabase.ts +++ b/src/d.ts/logicalDatabase.ts @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { ConnectionMode, IAsyncTaskResultSet } from '.'; import { IDatabase } from './database'; import { IDatasource } from './datasource'; diff --git a/src/page/Datasource/Info/Header/Filter/index.tsx b/src/page/Datasource/Info/Header/Filter/index.tsx index af5d04daa..eaf983748 100644 --- a/src/page/Datasource/Info/Header/Filter/index.tsx +++ b/src/page/Datasource/Info/Header/Filter/index.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { DatabaseAvailableTypeText, DatabaseBelongsToProjectTypeText } from '@/constant/label'; import { formatMessage } from '@/util/intl'; import { CloseOutlined, FilterOutlined } from '@ant-design/icons'; diff --git a/src/page/Datasource/Info/Header/Search.tsx b/src/page/Datasource/Info/Header/Search.tsx index f2879b49f..0d847b802 100644 --- a/src/page/Datasource/Info/Header/Search.tsx +++ b/src/page/Datasource/Info/Header/Search.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { formatMessage } from '@/util/intl'; import { SearchOutlined } from '@ant-design/icons'; import { Input } from 'antd'; diff --git a/src/page/Datasource/Info/Header/index.tsx b/src/page/Datasource/Info/Header/index.tsx index 7438bd6ab..57d274369 100644 --- a/src/page/Datasource/Info/Header/index.tsx +++ b/src/page/Datasource/Info/Header/index.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { ReloadOutlined } from '@ant-design/icons'; import { Space } from 'antd'; import React, { useContext } from 'react'; diff --git a/src/page/Datasource/Info/ParamContext.tsx b/src/page/Datasource/Info/ParamContext.tsx index d871775cb..68c59627e 100644 --- a/src/page/Datasource/Info/ParamContext.tsx +++ b/src/page/Datasource/Info/ParamContext.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import React from 'react'; export interface IFilterParams { diff --git a/src/page/Project/Database/Header/Filter/index.tsx b/src/page/Project/Database/Header/Filter/index.tsx index cd1486ab1..fca05143d 100644 --- a/src/page/Project/Database/Header/Filter/index.tsx +++ b/src/page/Project/Database/Header/Filter/index.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { ConnectTypeText, DBTypeText } from '@/constant/label'; import { ConnectType } from '@/d.ts'; import { formatMessage } from '@/util/intl'; diff --git a/src/page/Project/Database/Header/Search.tsx b/src/page/Project/Database/Header/Search.tsx index 21e1a2891..0566a32e9 100644 --- a/src/page/Project/Database/Header/Search.tsx +++ b/src/page/Project/Database/Header/Search.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { formatMessage } from '@/util/intl'; import { SearchOutlined } from '@ant-design/icons'; import { Input } from 'antd'; diff --git a/src/page/Project/Database/Header/index.tsx b/src/page/Project/Database/Header/index.tsx index 7438bd6ab..57d274369 100644 --- a/src/page/Project/Database/Header/index.tsx +++ b/src/page/Project/Database/Header/index.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { ReloadOutlined } from '@ant-design/icons'; import { Space } from 'antd'; import React, { useContext } from 'react'; diff --git a/src/page/Project/Database/ParamContext.tsx b/src/page/Project/Database/ParamContext.tsx index e2a1de669..c423b2f34 100644 --- a/src/page/Project/Database/ParamContext.tsx +++ b/src/page/Project/Database/ParamContext.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { ConnectType } from '@/d.ts'; import { DBType } from '@/d.ts/database'; import React from 'react'; diff --git a/src/page/Project/Database/components/DatabaseOwnerSelect/index.tsx b/src/page/Project/Database/components/DatabaseOwnerSelect/index.tsx index a3a98b10a..f8c7ed11f 100644 --- a/src/page/Project/Database/components/DatabaseOwnerSelect/index.tsx +++ b/src/page/Project/Database/components/DatabaseOwnerSelect/index.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { formatMessage } from '@/util/intl'; import { Form, Select, Checkbox, Row, Col, Tooltip } from 'antd'; import { InfoCircleOutlined, QuestionCircleOutlined } from '@ant-design/icons'; diff --git a/src/page/Project/Database/components/LogicDatabase/CreateLogicialDatabase.tsx b/src/page/Project/Database/components/LogicDatabase/CreateLogicialDatabase.tsx index 7b71f5db1..895021bd3 100644 --- a/src/page/Project/Database/components/LogicDatabase/CreateLogicialDatabase.tsx +++ b/src/page/Project/Database/components/LogicDatabase/CreateLogicialDatabase.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { formatMessage } from '@/util/intl'; import { getDataSourceModeConfig, getDataSourceStyleByConnectType } from '@/common/datasource'; import { listDatabases } from '@/common/network/database'; diff --git a/src/page/Project/Database/components/LogicDatabase/ManageLogicDatabase.tsx b/src/page/Project/Database/components/LogicDatabase/ManageLogicDatabase.tsx index 9722f793a..468be3547 100644 --- a/src/page/Project/Database/components/LogicDatabase/ManageLogicDatabase.tsx +++ b/src/page/Project/Database/components/LogicDatabase/ManageLogicDatabase.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { formatMessage } from '@/util/intl'; import { render } from '@/app'; import { diff --git a/src/page/Project/Database/components/LogicDatabase/index.tsx b/src/page/Project/Database/components/LogicDatabase/index.tsx index 55be68cdb..cacf15f96 100644 --- a/src/page/Project/Database/components/LogicDatabase/index.tsx +++ b/src/page/Project/Database/components/LogicDatabase/index.tsx @@ -1,2 +1,18 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + export { default as CreateLogicialDatabase } from './CreateLogicialDatabase'; export { default as ManageLogicDatabase } from './ManageLogicDatabase'; diff --git a/src/page/Project/Database/const.ts b/src/page/Project/Database/const.ts index 9cdcf6824..41d050fb0 100644 --- a/src/page/Project/Database/const.ts +++ b/src/page/Project/Database/const.ts @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /** * 数据库管理员的最大个数 */ diff --git a/src/page/Workspace/SideBar/ResourceTree/DatabaseSearchModal/components/DatabaseList.tsx b/src/page/Workspace/SideBar/ResourceTree/DatabaseSearchModal/components/DatabaseList.tsx index a455240df..1ad5a0662 100644 --- a/src/page/Workspace/SideBar/ResourceTree/DatabaseSearchModal/components/DatabaseList.tsx +++ b/src/page/Workspace/SideBar/ResourceTree/DatabaseSearchModal/components/DatabaseList.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { getDataSourceStyleByConnectType } from '@/common/datasource'; import DataBaseStatusIcon from '@/component/StatusIcon/DatabaseIcon'; import { IDatabase, IDatabaseObject } from '@/d.ts/database'; diff --git a/src/page/Workspace/SideBar/ResourceTree/DatabaseSearchModal/components/ObjectList.tsx b/src/page/Workspace/SideBar/ResourceTree/DatabaseSearchModal/components/ObjectList.tsx index 862d16e45..6e0934a0b 100644 --- a/src/page/Workspace/SideBar/ResourceTree/DatabaseSearchModal/components/ObjectList.tsx +++ b/src/page/Workspace/SideBar/ResourceTree/DatabaseSearchModal/components/ObjectList.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { getDataSourceStyleByConnectType } from '@/common/datasource'; import { DbObjsIcon } from '@/constant'; import { ConnectionMode, DbObjectType } from '@/d.ts'; diff --git a/src/page/Workspace/SideBar/ResourceTree/DatabaseSearchModal/components/Search.tsx b/src/page/Workspace/SideBar/ResourceTree/DatabaseSearchModal/components/Search.tsx index 2dfed2819..81b4bc4e0 100644 --- a/src/page/Workspace/SideBar/ResourceTree/DatabaseSearchModal/components/Search.tsx +++ b/src/page/Workspace/SideBar/ResourceTree/DatabaseSearchModal/components/Search.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import DataBaseStatusIcon from '@/component/StatusIcon/DatabaseIcon'; import { IDatabase } from '@/d.ts/database'; import ResourceTreeContext from '@/page/Workspace/context/ResourceTreeContext'; diff --git a/src/page/Workspace/SideBar/ResourceTree/DatabaseSearchModal/constant.ts b/src/page/Workspace/SideBar/ResourceTree/DatabaseSearchModal/constant.ts index 612ca3e82..7a6ccc4fb 100644 --- a/src/page/Workspace/SideBar/ResourceTree/DatabaseSearchModal/constant.ts +++ b/src/page/Workspace/SideBar/ResourceTree/DatabaseSearchModal/constant.ts @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { formatMessage } from '@/util/intl'; import { DbObjectType, ConnectType, SynonymType } from '@/d.ts'; import { diff --git a/src/page/Workspace/SideBar/ResourceTree/DatabaseSearchModal/index.tsx b/src/page/Workspace/SideBar/ResourceTree/DatabaseSearchModal/index.tsx index 119b14231..8052ff1f6 100644 --- a/src/page/Workspace/SideBar/ResourceTree/DatabaseSearchModal/index.tsx +++ b/src/page/Workspace/SideBar/ResourceTree/DatabaseSearchModal/index.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { useState, useContext, useEffect } from 'react'; import { Modal } from 'antd'; import { inject, observer } from 'mobx-react'; diff --git a/src/page/Workspace/components/CreateTable/BaseInfo/LogicTableBaseInfo.tsx b/src/page/Workspace/components/CreateTable/BaseInfo/LogicTableBaseInfo.tsx index a62ed32f2..a8213d05d 100644 --- a/src/page/Workspace/components/CreateTable/BaseInfo/LogicTableBaseInfo.tsx +++ b/src/page/Workspace/components/CreateTable/BaseInfo/LogicTableBaseInfo.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { previewLogicalTableTopologies } from '@/common/network/logicalDatabase'; import CommonTable from '@/component/CommonTable'; import DataBaseStatusIcon from '@/component/StatusIcon/DatabaseIcon'; diff --git a/src/page/Workspace/components/DBPermissionTableContent/index.tsx b/src/page/Workspace/components/DBPermissionTableContent/index.tsx index 7b38b9d5c..0da036982 100644 --- a/src/page/Workspace/components/DBPermissionTableContent/index.tsx +++ b/src/page/Workspace/components/DBPermissionTableContent/index.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { IUnauthorizedDBResources, TablePermissionType, diff --git a/src/page/Workspace/components/SQLResultSet/MultipleAsyncSQLLintTable.tsx b/src/page/Workspace/components/SQLResultSet/MultipleAsyncSQLLintTable.tsx index ebfd902f6..e5221bf93 100644 --- a/src/page/Workspace/components/SQLResultSet/MultipleAsyncSQLLintTable.tsx +++ b/src/page/Workspace/components/SQLResultSet/MultipleAsyncSQLLintTable.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { ISQLLintReuslt } from '@/component/SQLLintResult/type'; import { IDatabase } from '@/d.ts/database'; import { ModalStore } from '@/store/modal'; diff --git a/src/page/Workspace/components/SQLResultSet/const.ts b/src/page/Workspace/components/SQLResultSet/const.ts index 16b4dbe32..7803cdc5c 100644 --- a/src/page/Workspace/components/SQLResultSet/const.ts +++ b/src/page/Workspace/components/SQLResultSet/const.ts @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { ISqlExecuteResultStatus } from '@/d.ts'; import { formatMessage } from '@/util/intl'; diff --git a/src/page/Workspace/components/TablePage/ShowTableBaseInfoForm/LogicTableBaseInfo.tsx b/src/page/Workspace/components/TablePage/ShowTableBaseInfoForm/LogicTableBaseInfo.tsx index 907352ba2..37016b01c 100644 --- a/src/page/Workspace/components/TablePage/ShowTableBaseInfoForm/LogicTableBaseInfo.tsx +++ b/src/page/Workspace/components/TablePage/ShowTableBaseInfoForm/LogicTableBaseInfo.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import ObjectInfoView from '@/component/ObjectInfoView'; import { formatMessage } from '@/util/intl'; import { getLocalFormatDateTime } from '@/util/utils'; diff --git a/src/page/Workspace/components/Trace/TraceComponent.tsx b/src/page/Workspace/components/Trace/TraceComponent.tsx index bd3928534..5c3eb7fa1 100644 --- a/src/page/Workspace/components/Trace/TraceComponent.tsx +++ b/src/page/Workspace/components/Trace/TraceComponent.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { getFullLinkTrace } from '@/common/network/sql'; import { useEffect, useState } from 'react'; import { ExpandTraceSpan, randomUUID, TraceTabsType } from './index'; diff --git a/src/store/guideCache.ts b/src/store/guideCache.ts index 28fe7f3e0..7e5fed6c1 100644 --- a/src/store/guideCache.ts +++ b/src/store/guideCache.ts @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { safeParseJson } from '@/util/utils'; import { action, observable } from 'mobx'; diff --git a/src/util/database.ts b/src/util/database.ts index bd1f5cba7..2e021c264 100644 --- a/src/util/database.ts +++ b/src/util/database.ts @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { IDatabase, DBType } from '@/d.ts/database'; export const isLogicalDatabase = (db: IDatabase) => {