diff --git a/scripts/client/sign.js b/scripts/client/sign.js index d0b53b2bf..a2c08ff15 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/datasource/fileSystem/index.tsx b/src/common/datasource/fileSystem/index.tsx index 87ca3a17e..25bd29536 100644 --- a/src/common/datasource/fileSystem/index.tsx +++ b/src/common/datasource/fileSystem/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 { ConnectType, TaskType } from '@/d.ts'; import { IDataSourceModeConfig } from '../interface'; import MySQLColumnExtra from '../oceanbase/MySQLColumnExtra'; 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/executePLForMysql.tsx b/src/common/network/sql/executePLForMysql.tsx index 6fa990a2d..d4df19738 100644 --- a/src/common/network/sql/executePLForMysql.tsx +++ b/src/common/network/sql/executePLForMysql.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 { IExecutingInfo } from '@/d.ts'; import request from '@/util/request'; import { generateDatabaseSid } from '../pathUtil'; diff --git a/src/common/network/sql/preHandle.tsx b/src/common/network/sql/preHandle.tsx index 40dc8de09..8e4b78e35 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 modal from '@/store/modal'; import sessionManager from '@/store/sessionManager'; diff --git a/src/component/BatchSelectionPopover/index.tsx b/src/component/BatchSelectionPopover/index.tsx index 56640dbe8..93f5e61f2 100644 --- a/src/component/BatchSelectionPopover/index.tsx +++ b/src/component/BatchSelectionPopover/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, { useEffect, useState, useMemo } from 'react'; import { Button, Checkbox, Popover, Spin, Empty, Input, Space } from 'antd'; import { PlusOutlined } from '@ant-design/icons'; diff --git a/src/component/Button/SyncMetadata/index.tsx b/src/component/Button/SyncMetadata/index.tsx index 2070d07bf..97a878702 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 d43807637..d102188a1 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 bbd3608a8..513182be4 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/MonacoEditor/PlaceholderContentWidget.ts b/src/component/MonacoEditor/PlaceholderContentWidget.ts index b62d6b2db..83c6415e3 100644 --- a/src/component/MonacoEditor/PlaceholderContentWidget.ts +++ b/src/component/MonacoEditor/PlaceholderContentWidget.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. + */ + /** * based on https://github.com/microsoft/monaco-editor/issues/568#issuecomment-1499966160 */ 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/SortableContainer/index.tsx b/src/component/SortableContainer/index.tsx index 5e99d2bea..deb881350 100644 --- a/src/component/SortableContainer/index.tsx +++ b/src/component/SortableContainer/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 from 'react'; import { DndContext, 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/ChangeDetail.tsx b/src/component/Task/component/CommonDetailModal/ChangeDetail.tsx index 7813385a5..59360ddeb 100644 --- a/src/component/Task/component/CommonDetailModal/ChangeDetail.tsx +++ b/src/component/Task/component/CommonDetailModal/ChangeDetail.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, { useEffect, useState } from 'react'; import { Modal, Descriptions } from 'antd'; import { getOperationDetail } from '@/common/network/task'; 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/CommonDetailModal/status.tsx b/src/component/Task/component/CommonDetailModal/status.tsx index 901fbe9c5..e267060e9 100644 --- a/src/component/Task/component/CommonDetailModal/status.tsx +++ b/src/component/Task/component/CommonDetailModal/status.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 { ScheduleChangeStatus } from '@/d.ts'; import { formatMessage } from '@/util/intl'; import { CheckCircleFilled, LoadingOutlined, ExclamationCircleFilled } from '@ant-design/icons'; 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/TableSelecter/interface.ts b/src/component/Task/component/TableSelecter/interface.ts index ba159e334..37f9bf239 100644 --- a/src/component/Task/component/TableSelecter/interface.ts +++ b/src/component/Task/component/TableSelecter/interface.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 } from '@/d.ts/database'; import { DataNode, EventDataNode } from 'antd/lib/tree'; diff --git a/src/component/Task/component/TableSelecter/util.tsx b/src/component/Task/component/TableSelecter/util.tsx index 4e9a09210..f1dd0ab09 100644 --- a/src/component/Task/component/TableSelecter/util.tsx +++ b/src/component/Task/component/TableSelecter/util.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 { TableItem, TableItemInDB } from './interface'; /** 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/Datasource/NewDatasourceDrawer/Form/CloudStorageForm/index.tsx b/src/page/Datasource/Datasource/NewDatasourceDrawer/Form/CloudStorageForm/index.tsx index 79f45da46..5a6cb92c1 100644 --- a/src/page/Datasource/Datasource/NewDatasourceDrawer/Form/CloudStorageForm/index.tsx +++ b/src/page/Datasource/Datasource/NewDatasourceDrawer/Form/CloudStorageForm/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 DatasourceFormContext from '../context'; import { useContext, useMemo, useState } from 'react'; import { Space, Form, Input, Typography, Row, message } from 'antd'; diff --git a/src/page/Datasource/Datasource/NewDatasourceDrawer/Form/components/ErrorTip/index.tsx b/src/page/Datasource/Datasource/NewDatasourceDrawer/Form/components/ErrorTip/index.tsx index 8458fb236..986ef7ae0 100644 --- a/src/page/Datasource/Datasource/NewDatasourceDrawer/Form/components/ErrorTip/index.tsx +++ b/src/page/Datasource/Datasource/NewDatasourceDrawer/Form/components/ErrorTip/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 { Typography } from 'antd'; import type { BaseType } from 'antd/lib/typography/Base'; 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/AddObjectStorage/index.tsx b/src/page/Project/Database/components/AddObjectStorage/index.tsx index 8a5df43d1..7656ad83c 100644 --- a/src/page/Project/Database/components/AddObjectStorage/index.tsx +++ b/src/page/Project/Database/components/AddObjectStorage/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, { useEffect, useState } from 'react'; import { Modal, Form, Select, Row, Col, Tooltip, message } from 'antd'; import Icon from '@ant-design/icons'; 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 960eafce0..60e99aa50 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/Project/Project/MoreBtn/index.tsx b/src/page/Project/Project/MoreBtn/index.tsx index f9a168f40..49918189a 100644 --- a/src/page/Project/Project/MoreBtn/index.tsx +++ b/src/page/Project/Project/MoreBtn/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 { Dropdown } from 'antd'; import { inject, observer } from 'mobx-react'; import { EllipsisOutlined } from '@ant-design/icons'; diff --git a/src/page/Project/Setting/Info/TaskList.tsx b/src/page/Project/Setting/Info/TaskList.tsx index a4ab5b19d..7a678bac7 100644 --- a/src/page/Project/Setting/Info/TaskList.tsx +++ b/src/page/Project/Setting/Info/TaskList.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 VirtualList from 'rc-virtual-list'; import { List } from 'antd'; import React, { useEffect, useRef, useState } from 'react'; diff --git a/src/page/Project/components/DeleteProjectModal.tsx/index.tsx b/src/page/Project/components/DeleteProjectModal.tsx/index.tsx index 5fe8ea406..b27e4ba02 100644 --- a/src/page/Project/components/DeleteProjectModal.tsx/index.tsx +++ b/src/page/Project/components/DeleteProjectModal.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 { Modal, Input, Alert, Form, Descriptions, message } from 'antd'; import { batchDeleteProject } from '@/common/network/project'; import { formatMessage } from '@/util/intl'; diff --git a/src/page/Project/helper.ts b/src/page/Project/helper.ts index 55dcec64b..ac949643b 100644 --- a/src/page/Project/helper.ts +++ b/src/page/Project/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 { IProject } from '@/d.ts/project'; /** 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 39863c8a5..7dfdd9378 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 6c6d1b6f5..aa16c5e08 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 0b28c5420..7494919d9 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/SideBar/ResourceTree/TreeNodeMenu/IconLoadingWrapper.tsx b/src/page/Workspace/SideBar/ResourceTree/TreeNodeMenu/IconLoadingWrapper.tsx index 8283455c5..8c98d1d77 100644 --- a/src/page/Workspace/SideBar/ResourceTree/TreeNodeMenu/IconLoadingWrapper.tsx +++ b/src/page/Workspace/SideBar/ResourceTree/TreeNodeMenu/IconLoadingWrapper.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 Icon, { LoadingOutlined } from '@ant-design/icons'; import { useState } from 'react'; diff --git a/src/page/Workspace/components/CreateTable/BaseInfo/LogicTableBaseInfo.tsx b/src/page/Workspace/components/CreateTable/BaseInfo/LogicTableBaseInfo.tsx index ed6d97694..9996a6536 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 42a5f2fe4..71eb5d489 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 4a315222c..a087d0065 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) => { diff --git a/src/util/request/service.ts b/src/util/request/service.ts index cdf3436b7..6ab3f92f2 100644 --- a/src/util/request/service.ts +++ b/src/util/request/service.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. + */ + /** * request 网络请求工具 * axios文档:https://www.axios-http.cn