From 694267834cb6532476cacdf74c603c8fca5e9ad7 Mon Sep 17 00:00:00 2001 From: HSunboy Date: Mon, 12 Aug 2024 07:41:53 +0000 Subject: [PATCH] Copyright --- src/common/network/databaseChange.ts | 16 ++++++++++++++++ src/common/network/sql/preHandle.tsx | 16 ++++++++++++++++ src/component/Button/SyncMetadata/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 ++++++++++++++++ .../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 ++++++++++++++++ .../Task/component/PartitionTextArea/index.tsx | 16 ++++++++++++++++ .../Task/component/SynchronizationItem/index.tsx | 16 ++++++++++++++++ .../Task/component/TaskdurationItem/index.tsx | 16 ++++++++++++++++ .../components/DatabaseOwnerSelect.tsx/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 ++++++++++++++++ .../SQLResultSet/MultipleAsyncSQLLintTable.tsx | 16 ++++++++++++++++ .../components/Trace/TraceComponent.tsx | 16 ++++++++++++++++ src/store/guideCache.ts | 16 ++++++++++++++++ 46 files changed, 736 insertions(+) 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/sql/preHandle.tsx b/src/common/network/sql/preHandle.tsx index 773a1e67a..854e6afa7 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 { EStatus } from '@/d.ts'; import { IExecuteSQLParams, ISQLExecuteTask } from './executeSQL'; import modal from '@/store/modal'; diff --git a/src/component/Button/SyncMetadata/index.tsx b/src/component/Button/SyncMetadata/index.tsx index c1b8b6acc..0b88f2542 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 { formatMessage } from '@/util/intl'; import { LoadingOutlined } from '@ant-design/icons'; import { syncObject } from '@/common/network/database'; diff --git a/src/component/ExecuteSqlDetailModal/constant.tsx b/src/component/ExecuteSqlDetailModal/constant.tsx index 4d7168755..ac358016d 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 { formatMessage } from '@/util/intl'; import { ReactComponent as List } from '@/svgr/List.svg'; import { ReactComponent as Tree } from '@/svgr/Tree.svg'; diff --git a/src/component/ExecuteSqlDetailModal/index.tsx b/src/component/ExecuteSqlDetailModal/index.tsx index dd3d4df80..8098b8fbb 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 React, { useCallback, useEffect, useRef, useState } from 'react'; import modal from '@/store/modal'; import { Tabs, Button, message, Modal, Radio, Space, Tooltip, Input, Spin } from 'antd'; 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 0f0dd77b5..e2b9d120e 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 { Divider, Progress, Tooltip, Select, Radio } from 'antd'; import styles from './index.less'; diff --git a/src/component/ProfileFlow/customComponents/Edge.tsx b/src/component/ProfileFlow/customComponents/Edge.tsx index a49ada685..3753ee775 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 { EdgeLabelRenderer } from 'reactflow'; import { Tooltip } from 'antd'; 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 a44f8895c..4756cccc5 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 { useCallback, useEffect, useRef, useState } from 'react'; import ReactFlow, { addEdge, 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 228346d0f..169b7b552 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 { REACT_FLOW_ID } from './constant'; import { Tree, Node } from './treeLayout'; import { NODE_WIDTH, KILO, NODE_HEIGTH, INIT_HEIGHT_GAP, CPU_TIME, IO_WAIT_TIME } from './constant'; diff --git a/src/component/Task/MutipleAsyncTask/CreateModal/DatabaseQueue.tsx b/src/component/Task/MutipleAsyncTask/CreateModal/DatabaseQueue.tsx index 8a7ba0325..73521e38c 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 { IConnection, IConnectionStatus } from '@/d.ts'; import login from '@/store/login'; import { formatMessage } from '@/util/intl'; diff --git a/src/component/Task/MutipleAsyncTask/CreateModal/DrawerFooter.tsx b/src/component/Task/MutipleAsyncTask/CreateModal/DrawerFooter.tsx index f128164fa..fbabc2558 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 { Space, Button } from 'antd'; diff --git a/src/component/Task/MutipleAsyncTask/CreateModal/InnerSelecter.tsx b/src/component/Task/MutipleAsyncTask/CreateModal/InnerSelecter.tsx index 2e7691f18..ee7403ca7 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 { formatMessage } from '@/util/intl'; import { IConnection } from '@/d.ts'; import { Empty, Form, FormListFieldData, Popover, Select, Space, Tooltip } from 'antd'; diff --git a/src/component/Task/MutipleAsyncTask/CreateModal/MoreSetting.tsx b/src/component/Task/MutipleAsyncTask/CreateModal/MoreSetting.tsx index 23a18f18b..de6ce4a62 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 ddcd94425..20187c5bb 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 { Empty, Form, Popover, Select, Tooltip } from 'antd'; import { useState } from 'react'; 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 76c8e06b9..402e9ecce 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 { createTask, getAsyncTaskUploadUrl } from '@/common/network/task'; import CommonIDE from '@/component/CommonIDE'; import ODCDragger from '@/component/OSSDragger2'; diff --git a/src/component/Task/MutipleAsyncTask/DetailContent/index.tsx b/src/component/Task/MutipleAsyncTask/DetailContent/index.tsx index a2803e2e7..4ea5db797 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 { SQLContent } from '@/component/SQLContent'; import { IFlowTaskType, 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 5642957d1..90bedcee8 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 { formatMessage } from '@/util/intl'; import { listDatabases } from '@/common/network/database'; import { 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 094452e27..abad98b5d 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 { formatMessage } from '@/util/intl'; import { Space, Timeline } from 'antd'; import Icon from '@ant-design/icons'; 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 b67bef351..7d21f1424 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/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/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 c2b6ba8ad..75e05dbe5 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 { Form, InputNumber, Space, Checkbox, FormInstance } from 'antd'; import React, { useState, useEffect } from 'react'; diff --git a/src/page/Project/Database/components/DatabaseOwnerSelect.tsx/index.tsx b/src/page/Project/Database/components/DatabaseOwnerSelect.tsx/index.tsx index a3a98b10a..f8c7ed11f 100644 --- a/src/page/Project/Database/components/DatabaseOwnerSelect.tsx/index.tsx +++ b/src/page/Project/Database/components/DatabaseOwnerSelect.tsx/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/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 07efbcce3..205c5bed6 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 { formatMessage } from '@/util/intl'; import { Button, Space } from 'antd'; import styles from '../index.less'; diff --git a/src/page/Workspace/SideBar/ResourceTree/DatabaseSearchModal/components/ObjectList.tsx b/src/page/Workspace/SideBar/ResourceTree/DatabaseSearchModal/components/ObjectList.tsx index dd08a5afb..93e954a00 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 { formatMessage } from '@/util/intl'; import { objectTypeConfig, diff --git a/src/page/Workspace/SideBar/ResourceTree/DatabaseSearchModal/components/Search.tsx b/src/page/Workspace/SideBar/ResourceTree/DatabaseSearchModal/components/Search.tsx index 8adb6b7ae..c3ceac32e 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 { formatMessage } from '@/util/intl'; import { Input, Tooltip } from 'antd'; import React, { useContext, useEffect, useRef } from 'react'; diff --git a/src/page/Workspace/SideBar/ResourceTree/DatabaseSearchModal/constant.ts b/src/page/Workspace/SideBar/ResourceTree/DatabaseSearchModal/constant.ts index bf2c77d5c..57c9ba80a 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/SQLResultSet/MultipleAsyncSQLLintTable.tsx b/src/page/Workspace/components/SQLResultSet/MultipleAsyncSQLLintTable.tsx index 806cd7e17..acaaa5dee 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 { formatMessage } from '@/util/intl'; import { ISQLLintReuslt } from '@/component/SQLLintResult/type'; import { ModalStore } from '@/store/modal'; diff --git a/src/page/Workspace/components/Trace/TraceComponent.tsx b/src/page/Workspace/components/Trace/TraceComponent.tsx index 15633fc57..4900df00c 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 { TraceTabsType, ExpandTraceSpan, randomUUID } from './index'; import TraceList from './TraceList'; import TraceTreeTable from './TraceTreeTable'; 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';