diff --git a/src/common/network/projectNotification.ts b/src/common/network/projectNotification.ts index 9211c4eca..fcc79b112 100644 --- a/src/common/network/projectNotification.ts +++ b/src/common/network/projectNotification.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 { IResponseData } from '@/d.ts'; import { IChannel, diff --git a/src/component/Input/Case/index.tsx b/src/component/Input/Case/index.tsx index 0aef71eef..5d3778b74 100644 --- a/src/component/Input/Case/index.tsx +++ b/src/component/Input/Case/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 { removeTableQuote } from '@/util/sql'; import { getQuoteTableName } from '@/util/utils'; import { Input, InputProps } from 'antd'; diff --git a/src/component/Input/Keymap/index.tsx b/src/component/Input/Keymap/index.tsx index c30579aed..eb2278951 100644 --- a/src/component/Input/Keymap/index.tsx +++ b/src/component/Input/Keymap/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 { useControllableValue } from 'ahooks'; import { Select, Tag } from 'antd'; import React, { useMemo } from 'react'; diff --git a/src/component/Input/Keymap/keycodemap.ts b/src/component/Input/Keymap/keycodemap.ts index 3f0ddcf33..0d960afcd 100644 --- a/src/component/Input/Keymap/keycodemap.ts +++ b/src/component/Input/Keymap/keycodemap.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 { isMac } from '@/util/env'; import { KeyCode, KeyMod } from 'monaco-editor'; diff --git a/src/component/MonacoEditor/DiffEditor.tsx b/src/component/MonacoEditor/DiffEditor.tsx index a33063252..3d7b0bd59 100644 --- a/src/component/MonacoEditor/DiffEditor.tsx +++ b/src/component/MonacoEditor/DiffEditor.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 * as monaco from 'monaco-editor'; import { forwardRef, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react'; import styles from './index.less'; diff --git a/src/component/MonacoEditor/config.ts b/src/component/MonacoEditor/config.ts index eb8dd5667..23d9adc7b 100644 --- a/src/component/MonacoEditor/config.ts +++ b/src/component/MonacoEditor/config.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. + */ + export const fontSizeMap = { Small: 10, Normal: 12, diff --git a/src/component/MonacoEditor/plugins/theme/github.ts b/src/component/MonacoEditor/plugins/theme/github.ts index 36df49e83..4174b5ff2 100644 --- a/src/component/MonacoEditor/plugins/theme/github.ts +++ b/src/component/MonacoEditor/plugins/theme/github.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. + */ + export const github = { base: 'vs', inherit: true, diff --git a/src/component/MonacoEditor/plugins/theme/index.ts b/src/component/MonacoEditor/plugins/theme/index.ts index f30aaea7f..33015b7da 100644 --- a/src/component/MonacoEditor/plugins/theme/index.ts +++ b/src/component/MonacoEditor/plugins/theme/index.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 * as monaco from 'monaco-editor'; import { github, githubDark } from './github'; diff --git a/src/component/MonacoEditor/plugins/theme/monokai.ts b/src/component/MonacoEditor/plugins/theme/monokai.ts index 16346c47b..14f3e8fac 100644 --- a/src/component/MonacoEditor/plugins/theme/monokai.ts +++ b/src/component/MonacoEditor/plugins/theme/monokai.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. + */ + export const monokai = { base: 'vs-dark', inherit: true, diff --git a/src/component/ODCSetting/Item/InputItem.tsx b/src/component/ODCSetting/Item/InputItem.tsx index 76fa89d0f..3c804c890 100644 --- a/src/component/ODCSetting/Item/InputItem.tsx +++ b/src/component/ODCSetting/Item/InputItem.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 { Input, Radio, RadioGroupProps } from 'antd'; import { useState } from 'react'; diff --git a/src/component/ODCSetting/Item/RadioItem.tsx b/src/component/ODCSetting/Item/RadioItem.tsx index 85a336b39..18f2e5121 100644 --- a/src/component/ODCSetting/Item/RadioItem.tsx +++ b/src/component/ODCSetting/Item/RadioItem.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 { Radio, RadioGroupProps } from 'antd'; import { useState } from 'react'; diff --git a/src/component/ODCSetting/Item/SelectItem.tsx b/src/component/ODCSetting/Item/SelectItem.tsx index a4e18ae70..f627b2b06 100644 --- a/src/component/ODCSetting/Item/SelectItem.tsx +++ b/src/component/ODCSetting/Item/SelectItem.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 { Radio, RadioGroupProps, Select, SelectProps } from 'antd'; import { useState } from 'react'; diff --git a/src/component/ODCSetting/Item/TextItem.tsx b/src/component/ODCSetting/Item/TextItem.tsx index c9892ec71..257638e04 100644 --- a/src/component/ODCSetting/Item/TextItem.tsx +++ b/src/component/ODCSetting/Item/TextItem.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 { Input, Radio, RadioGroupProps } from 'antd'; import { useState } from 'react'; diff --git a/src/component/ODCSetting/config.tsx b/src/component/ODCSetting/config.tsx index 77be125f4..fd8ea2c27 100644 --- a/src/component/ODCSetting/config.tsx +++ b/src/component/ODCSetting/config.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 databaseSettings from './config/database'; import editorSettings from './config/editor'; import perferenceSettings from './config/preference'; diff --git a/src/component/ODCSetting/config/account.tsx b/src/component/ODCSetting/config/account.tsx index a85763138..19a48f5ef 100644 --- a/src/component/ODCSetting/config/account.tsx +++ b/src/component/ODCSetting/config/account.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 RadioItem from '../Item/RadioItem'; import { IODCSetting, ODCSettingGroup } from '../config'; diff --git a/src/component/ODCSetting/config/database.tsx b/src/component/ODCSetting/config/database.tsx index e3f248642..367e8e6a8 100644 --- a/src/component/ODCSetting/config/database.tsx +++ b/src/component/ODCSetting/config/database.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 RadioItem from '../Item/RadioItem'; import { IODCSetting, ODCSettingGroup } from '../config'; diff --git a/src/component/ODCSetting/config/editor.tsx b/src/component/ODCSetting/config/editor.tsx index fbfc6e0ea..c2176de42 100644 --- a/src/component/ODCSetting/config/editor.tsx +++ b/src/component/ODCSetting/config/editor.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 RadioItem from '../Item/RadioItem'; import { IODCSetting, ODCSettingGroup } from '../config'; diff --git a/src/component/ODCSetting/config/performance.tsx b/src/component/ODCSetting/config/performance.tsx index 07fc5421d..440d0a5b2 100644 --- a/src/component/ODCSetting/config/performance.tsx +++ b/src/component/ODCSetting/config/performance.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 { IODCSetting, ODCSettingGroup } from '../config'; import TextAreaItem from '../Item/TextItem'; diff --git a/src/component/ODCSetting/config/preference.tsx b/src/component/ODCSetting/config/preference.tsx index 6d26d28a2..21c998af9 100644 --- a/src/component/ODCSetting/config/preference.tsx +++ b/src/component/ODCSetting/config/preference.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 RadioItem from '../Item/RadioItem'; import { IODCSetting, ODCSettingGroup } from '../config'; diff --git a/src/component/ODCSetting/index.tsx b/src/component/ODCSetting/index.tsx index 233d89d08..6239e2291 100644 --- a/src/component/ODCSetting/index.tsx +++ b/src/component/ODCSetting/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, Col, Form, Modal, Row, Space, Tabs, Typography, message } from 'antd'; import React, { useEffect, useMemo, useRef, useState } from 'react'; diff --git a/src/component/Task/StructureComparisonTask/CreateModal/TableSelector.tsx b/src/component/Task/StructureComparisonTask/CreateModal/TableSelector.tsx index 8e7cbd280..7e10f1798 100644 --- a/src/component/Task/StructureComparisonTask/CreateModal/TableSelector.tsx +++ b/src/component/Task/StructureComparisonTask/CreateModal/TableSelector.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 { Popconfirm, Spin, Tree } from 'antd'; import React, { useEffect, useState } from 'react'; diff --git a/src/component/Task/StructureComparisonTask/CreateModal/index.tsx b/src/component/Task/StructureComparisonTask/CreateModal/index.tsx index e02c39fad..99c0098c0 100644 --- a/src/component/Task/StructureComparisonTask/CreateModal/index.tsx +++ b/src/component/Task/StructureComparisonTask/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 { formatMessage } from '@/util/intl'; import { Button, Drawer, Form, Input, Modal, Radio, Space, message } from 'antd'; import { useForm } from 'antd/lib/form/Form'; diff --git a/src/component/Task/StructureComparisonTask/CreateModal/interface.ts b/src/component/Task/StructureComparisonTask/CreateModal/interface.ts index 454e25b22..f2c1fd8af 100644 --- a/src/component/Task/StructureComparisonTask/CreateModal/interface.ts +++ b/src/component/Task/StructureComparisonTask/CreateModal/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 { formatMessage } from '@/util/intl'; import { EComparisonScope, EOperationType } from '@/d.ts/task'; export const comparisonScopeMap = { diff --git a/src/component/Task/component/PartitionPolicyFormTable/EditTable/index.tsx b/src/component/Task/component/PartitionPolicyFormTable/EditTable/index.tsx index db89bd55b..d0f103d47 100644 --- a/src/component/Task/component/PartitionPolicyFormTable/EditTable/index.tsx +++ b/src/component/Task/component/PartitionPolicyFormTable/EditTable/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 React from 'react'; import { Form, Select, Typography } from 'antd'; diff --git a/src/component/Task/component/PartitionPolicyFormTable/RuleFormItem/index.tsx b/src/component/Task/component/PartitionPolicyFormTable/RuleFormItem/index.tsx index d9f0ccfd8..b9b8775e0 100644 --- a/src/component/Task/component/PartitionPolicyFormTable/RuleFormItem/index.tsx +++ b/src/component/Task/component/PartitionPolicyFormTable/RuleFormItem/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 React from 'react'; import { diff --git a/src/component/Task/component/PartitionPolicyFormTable/const.ts b/src/component/Task/component/PartitionPolicyFormTable/const.ts index b1761873f..9f71c291a 100644 --- a/src/component/Task/component/PartitionPolicyFormTable/const.ts +++ b/src/component/Task/component/PartitionPolicyFormTable/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. + */ + export enum START_DATE { CURRENT_DATE = 'CURRENT_DATE', CUSTOM_DATE = 'CUSTOM_DATE', diff --git a/src/component/Task/const.ts b/src/component/Task/const.ts index e4f5c8b73..7ea15e086 100644 --- a/src/component/Task/const.ts +++ b/src/component/Task/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 { formatMessage } from '@/util/intl'; import { TaskPartitionStrategy, TaskErrorStrategy } from '@/d.ts'; diff --git a/src/component/Task/hooks/useProjects.tsx b/src/component/Task/hooks/useProjects.tsx index 6f762a3be..9a2ccf500 100644 --- a/src/component/Task/hooks/useProjects.tsx +++ b/src/component/Task/hooks/useProjects.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 } from 'react'; import { getProjectList } from '@/common/network/task'; diff --git a/src/d.ts/projectNotification.ts b/src/d.ts/projectNotification.ts index 6681b6a43..1e6b7f643 100644 --- a/src/d.ts/projectNotification.ts +++ b/src/d.ts/projectNotification.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'; // 事件状态 export enum EEventType { diff --git a/src/d.ts/task.ts b/src/d.ts/task.ts index cdb7f9fa7..e87534df9 100644 --- a/src/d.ts/task.ts +++ b/src/d.ts/task.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 { IResponseData } from '.'; export enum EComparisonScope { diff --git a/src/page/Login/components/LDAPModal/index.tsx b/src/page/Login/components/LDAPModal/index.tsx index 205fc4990..cd6c39451 100644 --- a/src/page/Login/components/LDAPModal/index.tsx +++ b/src/page/Login/components/LDAPModal/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 { testClientRegistration } from '@/common/network/manager'; import { getPrefix } from '@/component/Login'; import { ISSOConfig } from '@/d.ts'; diff --git a/src/page/Project/Database/StatusName.tsx b/src/page/Project/Database/StatusName.tsx index 1c979d095..1a85a3015 100644 --- a/src/page/Project/Database/StatusName.tsx +++ b/src/page/Project/Database/StatusName.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 HelpDoc from '@/component/helpDoc'; import { IConnectionStatus } from '@/d.ts'; import { IDatabase } from '@/d.ts/database'; diff --git a/src/page/Project/Notification/components/Channel.tsx b/src/page/Project/Notification/components/Channel.tsx index 7b5c2dfba..192eb7149 100644 --- a/src/page/Project/Notification/components/Channel.tsx +++ b/src/page/Project/Notification/components/Channel.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 classNames from 'classnames'; import { useForm, useWatch } from 'antd/lib/form/Form'; import { useEffect, useRef, useState } from 'react'; diff --git a/src/page/Project/Notification/components/Message.tsx b/src/page/Project/Notification/components/Message.tsx index 62baac37c..b762bfb5a 100644 --- a/src/page/Project/Notification/components/Message.tsx +++ b/src/page/Project/Notification/components/Message.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 { detailMessage, diff --git a/src/page/Project/Notification/components/MessageStatus.tsx b/src/page/Project/Notification/components/MessageStatus.tsx index 8df390f56..88152a10f 100644 --- a/src/page/Project/Notification/components/MessageStatus.tsx +++ b/src/page/Project/Notification/components/MessageStatus.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 { IMessage, EMessageStatus } from '@/d.ts/projectNotification'; import { CheckCircleFilled, diff --git a/src/page/Project/Notification/components/Policy.tsx b/src/page/Project/Notification/components/Policy.tsx index 2e3374ea8..e9c60029c 100644 --- a/src/page/Project/Notification/components/Policy.tsx +++ b/src/page/Project/Notification/components/Policy.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 CommonTable from '@/component/CommonTable'; import { Button, Divider, Form, Modal, Select, message } from 'antd'; diff --git a/src/page/Project/Notification/components/columns.tsx b/src/page/Project/Notification/components/columns.tsx index 07cef7378..e8cedeaf8 100644 --- a/src/page/Project/Notification/components/columns.tsx +++ b/src/page/Project/Notification/components/columns.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2023 OceanBase + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { formatMessage } from '@/util/intl'; import { Space, Switch } from 'antd'; import { diff --git a/src/page/Project/Notification/components/interface.ts b/src/page/Project/Notification/components/interface.ts index d0bb9143c..01062fd4d 100644 --- a/src/page/Project/Notification/components/interface.ts +++ b/src/page/Project/Notification/components/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 { formatMessage } from '@/util/intl'; import { EChannelType, diff --git a/src/page/Secure/Env/components/FormEnvironmentModal.tsx b/src/page/Secure/Env/components/FormEnvironmentModal.tsx index 575adf0a4..938a7388f 100644 --- a/src/page/Secure/Env/components/FormEnvironmentModal.tsx +++ b/src/page/Secure/Env/components/FormEnvironmentModal.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 { updateEnvironment, createEnvironment, getEnvironmentExists } from '@/common/network/env'; import { EnvColorMap } from '@/constant'; diff --git a/src/page/Workspace/components/SessionContextWrap/SessionSelect/SelectItem.tsx b/src/page/Workspace/components/SessionContextWrap/SessionSelect/SelectItem.tsx index e2f7071f0..2a4861749 100644 --- a/src/page/Workspace/components/SessionContextWrap/SessionSelect/SelectItem.tsx +++ b/src/page/Workspace/components/SessionContextWrap/SessionSelect/SelectItem.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 React, { useEffect } from 'react'; import SessionDropdown, { ISessionDropdownFiltersProps } from './SessionDropdown'; diff --git a/src/page/Workspace/components/SessionContextWrap/SessionSelect/const.ts b/src/page/Workspace/components/SessionContextWrap/SessionSelect/const.ts index fc3afbd07..b255d47cc 100644 --- a/src/page/Workspace/components/SessionContextWrap/SessionSelect/const.ts +++ b/src/page/Workspace/components/SessionContextWrap/SessionSelect/const.ts @@ -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 const DEFALT_WIDTH = 320; export const DEFALT_HEIGHT = 215; diff --git a/src/util/broadcastChannel.ts b/src/util/broadcastChannel.ts index 820113d2e..2cab8be34 100644 --- a/src/util/broadcastChannel.ts +++ b/src/util/broadcastChannel.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 logger from './logger'; /** @description 收集全局使用的频道,统一管理 */ export enum ChannelMap { diff --git a/src/util/sentry.ts b/src/util/sentry.ts index 597d32c73..8387613ab 100644 --- a/src/util/sentry.ts +++ b/src/util/sentry.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 { haveOCP } from './env'; import * as Sentry from '@sentry/react'; export function getSentry() { diff --git a/src/util/versionUtils.ts b/src/util/versionUtils.ts index 358b687d8..b520043fa 100644 --- a/src/util/versionUtils.ts +++ b/src/util/versionUtils.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 compareVersions, { compare } from 'compare-versions'; export const ODC_TRACE_SUPPORT_VERSION = '4.1.0';