Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

chore: change license to apache and add file headers (#710)

Wenzhao Hude2553c8e07b
diff --git a/.eslintignore b/.eslintignore
index e49b2ad756..a62fc2aee5 100644
--- a/.eslintignore
+++ b/.eslintignore
@@ -37,3 +37,6 @@ node_modules
# yarn v2
.yarn
+
+# Vite
+vite-env.d.ts
\ No newline at end of file
diff --git a/.eslintrc.cjs b/.eslintrc.cjs
index 0a54c879b9..0f82e985af 100644
--- a/.eslintrc.cjs
+++ b/.eslintrc.cjs
@@ -1,5 +1,5 @@
const { resolve } = require('node:path');
-const tsConfig = require('./tsconfig.json')
+const tsConfig = require('./tsconfig.json');
/**
* @type {import('eslint').Linter.Config}
@@ -19,6 +19,7 @@ const config = {
'unused-imports',
'simple-import-sort',
'react',
+ 'header',
],
extends: [
'airbnb-base', // https://www.npmjs.com/package/eslint-config-airbnb-base
@@ -39,6 +40,28 @@ const config = {
// ],
// },
rules: {
+ 'header/header': [
+ 2,
+ 'block',
+ [
+ '*',
+ ' * Copyright 2023 DreamNum Inc.',
+ ' *',
+ ' * Licensed under the Apache License, Version 2.0 (the "License");',
+ ' * you may not use this file except in compliance with the License.',
+ ' * You may obtain a copy of the License at',
+ ' *',
+ ' * http://www.apache.org/licenses/LICENSE-2.0',
+ ' *',
+ ' * Unless required by applicable law or agreed to in writing, software',
+ ' * distributed under the License is distributed on an "AS IS" BASIS,',
+ ' * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.',
+ ' * See the License for the specific language governing permissions and',
+ ' * limitations under the License.',
+ ' '
+ ],
+ 2,
+ ],
'no-cond-assign': 'off',
'no-restricted-globals': 'off',
'import/prefer-default-export': 'off',
@@ -175,7 +198,7 @@ const config = {
parserOptions: {
project: resolve(__dirname, './tsconfig.eslint.json'),
},
- }
+ };
}),
],
};
diff --git a/.prettierrc b/.prettierrc
index 5d43401e1f..ebfae51a91 100644
--- a/.prettierrc
+++ b/.prettierrc
@@ -4,5 +4,5 @@
"singleQuote": true,
"tabWidth": 4,
"trailingComma": "es5",
- "endOfLine": "auto"
+ "endOfLine": "lf"
}
diff --git a/LICENSE.txt b/LICENSE.txt
index 9c2b36ed7a..a16c46afd8 100644
--- a/LICENSE.txt
+++ b/LICENSE.txt
@@ -1,21 +1,178 @@
-The MIT License (MIT)
-
-Copyright (c) 2020-present, DreamNum
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
\ No newline at end of file
+
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
diff --git a/README.md b/README.md
index ca22553898..519f05d411 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,5 @@
+<!-- Logo here. -->
+
# Univer
![GitHub License](https://img.shields.io/github/license/dream-num/univer)
@@ -8,17 +10,29 @@
English | [简体中文](./README-zh.md)
-## Introduction
+<!-- A introduction photo here. -->
-Univer is an open source collaborative solution that aims to empower the collaboration capability into all systems. With Univer, users can synchronously edit the file content, making files flowing smoothly within different types of systems and avoid downloading and uploading Microsoft Office files anymore.
+> ⚠️ This project is still in heavy development.
+
+## Introduction
-We provide JavaScript part of code in the repository, including a canvas-based framework for building documents, spreadsheets, slides.
+Univer is a set of enterprise document and data collaboration solutions, including spreadsheets, documents, and slides. The highly extensible design allows developers to customize personalized functions based on Univer.
-> ⚠️ This project is still in heavy development. Use it at your own risk.
+- 📈 Univer supports spreadsheets. Documents and slides will be supported in the future
+- 🌌 Highly extensible architecture design
+ - 🔌 Plug-in architecture, the capabilities of documents can be combined on demand, support third-party plug-ins, and facilitate customization development
+ - 💄 Provide component library and icons to help developers present a consistent user experience
+- ⚡ High performance
+ - ✏️ Unified and efficient rendering engine and formula engine, based on Canvas
+ - 🧮 High-performance formula engine, supports Web Worker
+- 🌍 Internationalization support
-## Demo
+## Links
-- [Univer Demo](https://dream-num.github.io/univer-demo/)
+- [Online Playground]()
+- [Documentation]()
+- [Official Website]()
+- [Legacy Univer Demo](https://dream-num.github.io/univer-demo/)
## Packages
diff --git a/examples/data/src/docs/default-document-data-cn.ts b/examples/data/src/docs/default-document-data-cn.ts
index 769fe9982b..3751161b80 100644
--- a/examples/data/src/docs/default-document-data-cn.ts
+++ b/examples/data/src/docs/default-document-data-cn.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IDocumentData } from '@univerjs/core';
import { BooleanNumber, TextDecoration } from '@univerjs/core';
diff --git a/examples/data/src/docs/default-document-data-en.ts b/examples/data/src/docs/default-document-data-en.ts
index 34468c705d..b2f2764524 100644
--- a/examples/data/src/docs/default-document-data-en.ts
+++ b/examples/data/src/docs/default-document-data-en.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IDocumentData } from '@univerjs/core';
import {
BooleanNumber,
diff --git a/examples/data/src/docs/default-document-data.ts b/examples/data/src/docs/default-document-data.ts
index 58f1bc23ae..66c329bdf2 100644
--- a/examples/data/src/docs/default-document-data.ts
+++ b/examples/data/src/docs/default-document-data.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IDocumentData } from '@univerjs/core';
import {
BaselineOffset,
diff --git a/examples/data/src/docs/default-list.ts b/examples/data/src/docs/default-list.ts
index 3b0cb1add1..26ca6c589c 100644
--- a/examples/data/src/docs/default-list.ts
+++ b/examples/data/src/docs/default-list.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { BulletAlignment, GlyphType } from '@univerjs/core';
export const DEFAULT_LIST_TEST = {
diff --git a/examples/data/src/docs/index.ts b/examples/data/src/docs/index.ts
index d7d8d9a2bd..66528c5b87 100644
--- a/examples/data/src/docs/index.ts
+++ b/examples/data/src/docs/index.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './default-document-data';
export * from './default-document-data-cn';
export * from './default-document-data-en';
diff --git a/examples/data/src/index.ts b/examples/data/src/index.ts
index f089066954..a71f361585 100644
--- a/examples/data/src/index.ts
+++ b/examples/data/src/index.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './docs';
export * from './sheets';
export * from './slides';
diff --git a/examples/data/src/sheets/default-workbook-data.ts b/examples/data/src/sheets/default-workbook-data.ts
index 1a043ee5df..41811488b0 100644
--- a/examples/data/src/sheets/default-workbook-data.ts
+++ b/examples/data/src/sheets/default-workbook-data.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IDocumentData, IWorkbookData } from '@univerjs/core';
import {
BaselineOffset,
diff --git a/examples/data/src/sheets/demo/default-workbook-data-demo.ts b/examples/data/src/sheets/demo/default-workbook-data-demo.ts
index b9b58d0682..1911707dcf 100644
--- a/examples/data/src/sheets/demo/default-workbook-data-demo.ts
+++ b/examples/data/src/sheets/demo/default-workbook-data-demo.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IDocumentData, IWorkbookData } from '@univerjs/core';
import { BooleanNumber, LocaleType, SheetTypes } from '@univerjs/core';
diff --git a/examples/data/src/sheets/demo/default-workbook-data-demo1.ts b/examples/data/src/sheets/demo/default-workbook-data-demo1.ts
index 26aa1564ab..fb87292a0a 100644
--- a/examples/data/src/sheets/demo/default-workbook-data-demo1.ts
+++ b/examples/data/src/sheets/demo/default-workbook-data-demo1.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IWorkbookData } from '@univerjs/core';
import { BooleanNumber, BorderStyleTypes, LocaleType, SheetTypes } from '@univerjs/core';
diff --git a/examples/data/src/sheets/demo/default-workbook-data-demo2.ts b/examples/data/src/sheets/demo/default-workbook-data-demo2.ts
index 3212e2c0c9..a4d314bfc5 100644
--- a/examples/data/src/sheets/demo/default-workbook-data-demo2.ts
+++ b/examples/data/src/sheets/demo/default-workbook-data-demo2.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IWorkbookData } from '@univerjs/core';
import { BooleanNumber, BorderStyleTypes, LocaleType, SheetTypes } from '@univerjs/core';
diff --git a/examples/data/src/sheets/demo/default-workbook-data-demo3.ts b/examples/data/src/sheets/demo/default-workbook-data-demo3.ts
index 5bdb66a237..f6df970f15 100644
--- a/examples/data/src/sheets/demo/default-workbook-data-demo3.ts
+++ b/examples/data/src/sheets/demo/default-workbook-data-demo3.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IDocumentData, IWorkbookData } from '@univerjs/core';
import { BooleanNumber, BorderStyleTypes, LocaleType, SheetTypes } from '@univerjs/core';
diff --git a/examples/data/src/sheets/demo/default-workbook-data-demo4.ts b/examples/data/src/sheets/demo/default-workbook-data-demo4.ts
index dafe1111ee..a789b2f5c4 100644
--- a/examples/data/src/sheets/demo/default-workbook-data-demo4.ts
+++ b/examples/data/src/sheets/demo/default-workbook-data-demo4.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IDocumentData, IWorkbookData } from '@univerjs/core';
import { BooleanNumber, BorderStyleTypes, LocaleType, SheetTypes } from '@univerjs/core';
diff --git a/examples/data/src/sheets/demo/default-workbook-data-demo5.ts b/examples/data/src/sheets/demo/default-workbook-data-demo5.ts
index a2ab1b1712..96a0c02687 100644
--- a/examples/data/src/sheets/demo/default-workbook-data-demo5.ts
+++ b/examples/data/src/sheets/demo/default-workbook-data-demo5.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IWorkbookData } from '@univerjs/core';
import { BorderStyleTypes, LocaleType } from '@univerjs/core';
diff --git a/examples/data/src/sheets/demo/default-workbook-data-demo6.ts b/examples/data/src/sheets/demo/default-workbook-data-demo6.ts
index 36fe416dcc..f4eb501dfb 100644
--- a/examples/data/src/sheets/demo/default-workbook-data-demo6.ts
+++ b/examples/data/src/sheets/demo/default-workbook-data-demo6.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IWorkbookData } from '@univerjs/core';
import { BorderStyleTypes, LocaleType } from '@univerjs/core';
diff --git a/examples/data/src/sheets/demo/default-workbook-data-demo7.ts b/examples/data/src/sheets/demo/default-workbook-data-demo7.ts
index 51f77db7c6..289320c493 100644
--- a/examples/data/src/sheets/demo/default-workbook-data-demo7.ts
+++ b/examples/data/src/sheets/demo/default-workbook-data-demo7.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IWorkbookData } from '@univerjs/core';
import { LocaleType } from '@univerjs/core';
diff --git a/examples/data/src/sheets/demo/default-workbook-data-demo8.ts b/examples/data/src/sheets/demo/default-workbook-data-demo8.ts
index aba325e380..09bb06efd4 100644
--- a/examples/data/src/sheets/demo/default-workbook-data-demo8.ts
+++ b/examples/data/src/sheets/demo/default-workbook-data-demo8.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IWorkbookData } from '@univerjs/core';
import { LocaleType } from '@univerjs/core';
diff --git a/examples/data/src/sheets/demo/index.ts b/examples/data/src/sheets/demo/index.ts
index 20ae7e3e47..379e88de6b 100644
--- a/examples/data/src/sheets/demo/index.ts
+++ b/examples/data/src/sheets/demo/index.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './default-workbook-data-demo';
export * from './default-workbook-data-demo1';
export * from './default-workbook-data-demo2';
diff --git a/examples/data/src/sheets/index.ts b/examples/data/src/sheets/index.ts
index 6d38108f5e..d0cf074dfd 100644
--- a/examples/data/src/sheets/index.ts
+++ b/examples/data/src/sheets/index.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './default-workbook-data';
export * from './demo';
export * from './slide-workbook-data';
diff --git a/examples/data/src/sheets/slide-workbook-data.ts b/examples/data/src/sheets/slide-workbook-data.ts
index 0150047b3d..98c98763b9 100644
--- a/examples/data/src/sheets/slide-workbook-data.ts
+++ b/examples/data/src/sheets/slide-workbook-data.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IWorkbookData } from '@univerjs/core';
import { BooleanNumber, BorderStyleTypes, LocaleType, SheetTypes } from '@univerjs/core';
diff --git a/examples/data/src/slides/default-pages/page1.ts b/examples/data/src/slides/default-pages/page1.ts
index 83ea7c638d..d5b200c4c5 100644
--- a/examples/data/src/slides/default-pages/page1.ts
+++ b/examples/data/src/slides/default-pages/page1.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { PageElementType, PageType, ShapeType } from '@univerjs/core';
export const DEFAULT_FIRST_PAGE = {
diff --git a/examples/data/src/slides/default-pages/page2.ts b/examples/data/src/slides/default-pages/page2.ts
index 7b44d96b80..a08ddbcca4 100644
--- a/examples/data/src/slides/default-pages/page2.ts
+++ b/examples/data/src/slides/default-pages/page2.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { PageElementType, PageType, ShapeType } from '@univerjs/core';
export const DEFAULT_SECOND_PAGE = {
diff --git a/examples/data/src/slides/default-pages/page3.ts b/examples/data/src/slides/default-pages/page3.ts
index 81132b137d..44e13a92b0 100644
--- a/examples/data/src/slides/default-pages/page3.ts
+++ b/examples/data/src/slides/default-pages/page3.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { PageElementType, PageType, ShapeType } from '@univerjs/core';
import { PAGE3_RICHTEXT_1 } from '../rich-text/page3-richtext1';
diff --git a/examples/data/src/slides/default-pages/page4.ts b/examples/data/src/slides/default-pages/page4.ts
index 5f6bbc32c1..ad9306d707 100644
--- a/examples/data/src/slides/default-pages/page4.ts
+++ b/examples/data/src/slides/default-pages/page4.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IWorksheetData } from '@univerjs/core';
import { PageElementType, PageType, ShapeType } from '@univerjs/core';
diff --git a/examples/data/src/slides/default-pages/page5.ts b/examples/data/src/slides/default-pages/page5.ts
index 123fce0258..1afc94d1ee 100644
--- a/examples/data/src/slides/default-pages/page5.ts
+++ b/examples/data/src/slides/default-pages/page5.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { PageElementType, PageType, ShapeType } from '@univerjs/core';
export const DEFAULT_FIFTH_PAGE = {
diff --git a/examples/data/src/slides/default-pages/page6.ts b/examples/data/src/slides/default-pages/page6.ts
index 9239cf4afc..878eccf5a5 100644
--- a/examples/data/src/slides/default-pages/page6.ts
+++ b/examples/data/src/slides/default-pages/page6.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { PageElementType, PageType, ShapeType } from '@univerjs/core';
import { DEFAULT_DOCUMENT_DATA_EN } from '../../docs/default-document-data-en';
diff --git a/examples/data/src/slides/default-pages/page7.ts b/examples/data/src/slides/default-pages/page7.ts
index b37af8fe9c..e64a43ab8a 100644
--- a/examples/data/src/slides/default-pages/page7.ts
+++ b/examples/data/src/slides/default-pages/page7.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { PageElementType, PageType, ShapeType } from '@univerjs/core';
import { generateUnlimitedSlideData } from '../unlimited-slide-data';
diff --git a/examples/data/src/slides/default-slide-data.ts b/examples/data/src/slides/default-slide-data.ts
index 8b8a374426..0d7a4f13d7 100644
--- a/examples/data/src/slides/default-slide-data.ts
+++ b/examples/data/src/slides/default-slide-data.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ISlideData } from '@univerjs/core';
import { DEFAULT_FIRST_PAGE } from './default-pages/page1';
diff --git a/examples/data/src/slides/index.ts b/examples/data/src/slides/index.ts
index 3b14eaf208..83fdea8c40 100644
--- a/examples/data/src/slides/index.ts
+++ b/examples/data/src/slides/index.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './default-slide-data';
diff --git a/examples/data/src/slides/rich-text/page3-richtext1.ts b/examples/data/src/slides/rich-text/page3-richtext1.ts
index 4b7c7fa7cb..92c75f4553 100644
--- a/examples/data/src/slides/rich-text/page3-richtext1.ts
+++ b/examples/data/src/slides/rich-text/page3-richtext1.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { PageElementType } from '@univerjs/core';
import { DEFAULT_LIST_TEST } from '../../docs/default-list';
diff --git a/examples/data/src/slides/rich-text/page3-richtext2.ts b/examples/data/src/slides/rich-text/page3-richtext2.ts
index 2e6310852a..f09fcbe87d 100644
--- a/examples/data/src/slides/rich-text/page3-richtext2.ts
+++ b/examples/data/src/slides/rich-text/page3-richtext2.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { PageElementType } from '@univerjs/core';
import { DEFAULT_LIST_TEST } from '../../docs/default-list';
diff --git a/examples/data/src/slides/rich-text/page3-richtext3.ts b/examples/data/src/slides/rich-text/page3-richtext3.ts
index 5cbacbcdc1..917b524fa6 100644
--- a/examples/data/src/slides/rich-text/page3-richtext3.ts
+++ b/examples/data/src/slides/rich-text/page3-richtext3.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { PageElementType } from '@univerjs/core';
import { DEFAULT_LIST_TEST } from '../../docs/default-list';
diff --git a/examples/data/src/slides/rich-text/page5-richtext1.ts b/examples/data/src/slides/rich-text/page5-richtext1.ts
index 91bb095737..b3fd815e37 100644
--- a/examples/data/src/slides/rich-text/page5-richtext1.ts
+++ b/examples/data/src/slides/rich-text/page5-richtext1.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IDocumentData } from '@univerjs/core';
import { BooleanNumber, ColumnSeparatorType, SectionType } from '@univerjs/core';
diff --git a/examples/data/src/slides/unlimited-slide-data.ts b/examples/data/src/slides/unlimited-slide-data.ts
index cba55a0eff..dfdb7a4ec0 100644
--- a/examples/data/src/slides/unlimited-slide-data.ts
+++ b/examples/data/src/slides/unlimited-slide-data.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ISlideData } from '@univerjs/core';
import { PageElementType, PageType, ShapeType } from '@univerjs/core';
diff --git a/examples/docs/src/locales.ts b/examples/docs/src/locales.ts
index 34f92883d4..8a034e90bb 100644
--- a/examples/docs/src/locales.ts
+++ b/examples/docs/src/locales.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { LocaleType } from '@univerjs/core';
import { enUS as UniverDesignEnUS } from '@univerjs/design';
import { enUS as UniverDocsUIEnUS } from '@univerjs/docs-ui';
diff --git a/examples/docs/src/main.ts b/examples/docs/src/main.ts
index 9800a245aa..2cc49383d8 100644
--- a/examples/docs/src/main.ts
+++ b/examples/docs/src/main.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { LocaleType, Univer } from '@univerjs/core';
import { defaultTheme } from '@univerjs/design';
import { UniverDocs } from '@univerjs/docs';
diff --git a/examples/sheets/src/locales.ts b/examples/sheets/src/locales.ts
index 7e31602869..36e8a55052 100644
--- a/examples/sheets/src/locales.ts
+++ b/examples/sheets/src/locales.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { LocaleType } from '@univerjs/core';
import { enUS as UniverDesignEnUS } from '@univerjs/design';
import { enUS as UniverDocsUIEnUS } from '@univerjs/docs-ui';
diff --git a/examples/sheets/src/main.ts b/examples/sheets/src/main.ts
index 99ca79ca59..62a042b1ee 100644
--- a/examples/sheets/src/main.ts
+++ b/examples/sheets/src/main.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { LocaleType, LogLevel, Univer } from '@univerjs/core';
import { greenTheme } from '@univerjs/design';
import { RichTextEditingMutation, UniverDocs } from '@univerjs/docs';
diff --git a/examples/sheets/src/sheets-plugin-debugger/commands/operations/confirm.operation.ts b/examples/sheets/src/sheets-plugin-debugger/commands/operations/confirm.operation.ts
index c506f6727f..2711ff6928 100644
--- a/examples/sheets/src/sheets-plugin-debugger/commands/operations/confirm.operation.ts
+++ b/examples/sheets/src/sheets-plugin-debugger/commands/operations/confirm.operation.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand } from '@univerjs/core';
import { CommandType } from '@univerjs/core';
import { IConfirmService } from '@univerjs/ui';
diff --git a/examples/sheets/src/sheets-plugin-debugger/commands/operations/dialog.operation.ts b/examples/sheets/src/sheets-plugin-debugger/commands/operations/dialog.operation.ts
index 8632e6bc59..b14d2806ef 100644
--- a/examples/sheets/src/sheets-plugin-debugger/commands/operations/dialog.operation.ts
+++ b/examples/sheets/src/sheets-plugin-debugger/commands/operations/dialog.operation.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand } from '@univerjs/core';
import { CommandType } from '@univerjs/core';
import { IDialogService } from '@univerjs/ui';
diff --git a/examples/sheets/src/sheets-plugin-debugger/commands/operations/locale.operation.ts b/examples/sheets/src/sheets-plugin-debugger/commands/operations/locale.operation.ts
index b101ba110d..3569a98ebe 100644
--- a/examples/sheets/src/sheets-plugin-debugger/commands/operations/locale.operation.ts
+++ b/examples/sheets/src/sheets-plugin-debugger/commands/operations/locale.operation.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand, LocaleType } from '@univerjs/core';
import { CommandType, LocaleService } from '@univerjs/core';
import type { IAccessor } from '@wendellhu/redi';
diff --git a/examples/sheets/src/sheets-plugin-debugger/commands/operations/message.operation.ts b/examples/sheets/src/sheets-plugin-debugger/commands/operations/message.operation.ts
index e4b4492635..2d3129671e 100644
--- a/examples/sheets/src/sheets-plugin-debugger/commands/operations/message.operation.ts
+++ b/examples/sheets/src/sheets-plugin-debugger/commands/operations/message.operation.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand } from '@univerjs/core';
import { CommandType } from '@univerjs/core';
import { MessageType } from '@univerjs/design';
diff --git a/examples/sheets/src/sheets-plugin-debugger/commands/operations/notification.operation.ts b/examples/sheets/src/sheets-plugin-debugger/commands/operations/notification.operation.ts
index 5599e6b6fc..40edf3dbf9 100644
--- a/examples/sheets/src/sheets-plugin-debugger/commands/operations/notification.operation.ts
+++ b/examples/sheets/src/sheets-plugin-debugger/commands/operations/notification.operation.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand } from '@univerjs/core';
import { CommandType } from '@univerjs/core';
import { INotificationService } from '@univerjs/ui';
diff --git a/examples/sheets/src/sheets-plugin-debugger/commands/operations/numfmt.operations.ts b/examples/sheets/src/sheets-plugin-debugger/commands/operations/numfmt.operations.ts
index 037cdda020..814836d897 100644
--- a/examples/sheets/src/sheets-plugin-debugger/commands/operations/numfmt.operations.ts
+++ b/examples/sheets/src/sheets-plugin-debugger/commands/operations/numfmt.operations.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand } from '@univerjs/core';
import { CommandType, ICommandService } from '@univerjs/core';
import type { IAccessor } from '@wendellhu/redi';
diff --git a/examples/sheets/src/sheets-plugin-debugger/commands/operations/save-snapshot.operations.ts b/examples/sheets/src/sheets-plugin-debugger/commands/operations/save-snapshot.operations.ts
index 27d1a9311f..e252296476 100644
--- a/examples/sheets/src/sheets-plugin-debugger/commands/operations/save-snapshot.operations.ts
+++ b/examples/sheets/src/sheets-plugin-debugger/commands/operations/save-snapshot.operations.ts
@@ -1,4 +1,19 @@
-// eslint-disable-next-line import/no-extraneous-dependencies
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand, IStyleData, IWorkbookData } from '@univerjs/core';
import { CommandType, ISnapshotPersistenceService, IUniverInstanceService, ObjectMatrix } from '@univerjs/core';
import { ExportController, RecordController } from '@univerjs/local-save';
diff --git a/examples/sheets/src/sheets-plugin-debugger/commands/operations/set.editable.operation.ts b/examples/sheets/src/sheets-plugin-debugger/commands/operations/set.editable.operation.ts
index 9ecff33ef9..885b2bc9d1 100644
--- a/examples/sheets/src/sheets-plugin-debugger/commands/operations/set.editable.operation.ts
+++ b/examples/sheets/src/sheets-plugin-debugger/commands/operations/set.editable.operation.ts
@@ -1,4 +1,19 @@
-// eslint-disable-next-line import/no-extraneous-dependencies
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand } from '@univerjs/core';
import { CommandType, IUniverInstanceService, UniverPermissionService } from '@univerjs/core';
import { SheetPermissionService } from '@univerjs/sheets';
diff --git a/examples/sheets/src/sheets-plugin-debugger/commands/operations/sidebar.operation.ts b/examples/sheets/src/sheets-plugin-debugger/commands/operations/sidebar.operation.ts
index 8c91b0af46..1447815c22 100644
--- a/examples/sheets/src/sheets-plugin-debugger/commands/operations/sidebar.operation.ts
+++ b/examples/sheets/src/sheets-plugin-debugger/commands/operations/sidebar.operation.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand } from '@univerjs/core';
import { CommandType } from '@univerjs/core';
import { ISidebarService } from '@univerjs/ui';
diff --git a/examples/sheets/src/sheets-plugin-debugger/commands/operations/theme.operation.ts b/examples/sheets/src/sheets-plugin-debugger/commands/operations/theme.operation.ts
index cc6175aaee..28da5cda4f 100644
--- a/examples/sheets/src/sheets-plugin-debugger/commands/operations/theme.operation.ts
+++ b/examples/sheets/src/sheets-plugin-debugger/commands/operations/theme.operation.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand, IStyleSheet } from '@univerjs/core';
import { CommandType, ThemeService } from '@univerjs/core';
import type { IAccessor } from '@wendellhu/redi';
diff --git a/examples/sheets/src/sheets-plugin-debugger/controllers/debugger.controller.ts b/examples/sheets/src/sheets-plugin-debugger/controllers/debugger.controller.ts
index 5af0bd123e..392f7337ff 100644
--- a/examples/sheets/src/sheets-plugin-debugger/controllers/debugger.controller.ts
+++ b/examples/sheets/src/sheets-plugin-debugger/controllers/debugger.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Disposable, ICommandService, ISnapshotPersistenceService } from '@univerjs/core';
import { ExportController, LocalSnapshotService, RecordController } from '@univerjs/local-save';
import { IMenuService } from '@univerjs/ui';
diff --git a/examples/sheets/src/sheets-plugin-debugger/controllers/menu.ts b/examples/sheets/src/sheets-plugin-debugger/controllers/menu.ts
index da97be4d0f..5774f7a5a8 100644
--- a/examples/sheets/src/sheets-plugin-debugger/controllers/menu.ts
+++ b/examples/sheets/src/sheets-plugin-debugger/controllers/menu.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { LocaleType } from '@univerjs/core';
import { defaultTheme, greenTheme } from '@univerjs/design';
import type { IMenuSelectorItem } from '@univerjs/ui';
diff --git a/examples/sheets/src/sheets-plugin-debugger/debugger-plugin.ts b/examples/sheets/src/sheets-plugin-debugger/debugger-plugin.ts
index 1bc03b56fc..d021441170 100644
--- a/examples/sheets/src/sheets-plugin-debugger/debugger-plugin.ts
+++ b/examples/sheets/src/sheets-plugin-debugger/debugger-plugin.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { LocaleService, Plugin, PluginType } from '@univerjs/core';
import { Inject, Injector } from '@wendellhu/redi';
diff --git a/examples/sheets/src/sheets-plugin-debugger/index.ts b/examples/sheets/src/sheets-plugin-debugger/index.ts
index ebc2bf5516..54802a08ce 100644
--- a/examples/sheets/src/sheets-plugin-debugger/index.ts
+++ b/examples/sheets/src/sheets-plugin-debugger/index.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './debugger-plugin';
diff --git a/examples/sheets/src/worker.ts b/examples/sheets/src/worker.ts
index 72c6bd625e..51d05e9e89 100644
--- a/examples/sheets/src/worker.ts
+++ b/examples/sheets/src/worker.ts
@@ -1,4 +1,18 @@
-// The entry of web worker scripts
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { LocaleType, Univer } from '@univerjs/core';
import { UniverFormulaEngine } from '@univerjs/engine-formula';
diff --git a/examples/slides/src/main.ts b/examples/slides/src/main.ts
index 3e8668e4d8..2d87ef8612 100644
--- a/examples/slides/src/main.ts
+++ b/examples/slides/src/main.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { LocaleType, Univer } from '@univerjs/core';
import { greenTheme } from '@univerjs/design';
import { UniverRenderEngine } from '@univerjs/engine-render';
diff --git a/package.json b/package.json
index 114c52f483..3b199f4710 100644
--- a/package.json
+++ b/package.json
@@ -12,6 +12,7 @@
"dev:storybook": "storybook dev -p 6006 --no-open",
"dev:site": "turbo dev:docusaurus",
"lint": "TIMING=1 eslint --cache **/src/**/*.{tsx,ts}",
+ "lint:fix": "TIMING=1 eslint --cache **/src/**/*.{tsx,ts} --fix",
"lint:style": "stylelint **/*.less",
"lint:types": "tsc --noEmit -p tsconfig.eslint.json",
"test": "turbo test -- --passWithNoTests",
@@ -51,6 +52,7 @@
"eslint-config-airbnb-typescript": "^17.1.0",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.1",
+ "eslint-plugin-header": "~3.1.1",
"eslint-plugin-import-newlines": "^1.3.4",
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-react": "^7.33.2",
@@ -62,11 +64,11 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"storybook": "^7.6.4",
- "stylelint": "^15.11.0",
"stylelint-config-clean-order": "^5.2.0",
"stylelint-config-prettier": "^9.0.5",
- "stylelint-config-standard": "^34.0.0",
"stylelint-config-standard-less": "^2.0.0",
+ "stylelint-config-standard": "^34.0.0",
+ "stylelint": "^15.11.0",
"turbo": "^1.11.1",
"typescript": "^5.3.3"
},
diff --git a/packages/core/src/basics/index.ts b/packages/core/src/basics/index.ts
index 8c2f331b12..7a94c4a43f 100644
--- a/packages/core/src/basics/index.ts
+++ b/packages/core/src/basics/index.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './registry';
export * from './univer';
export * from './univer-doc';
diff --git a/packages/core/src/basics/registry.ts b/packages/core/src/basics/registry.ts
index adf0c6d1fb..21501b1b79 100644
--- a/packages/core/src/basics/registry.ts
+++ b/packages/core/src/basics/registry.ts
@@ -1,9 +1,19 @@
/**
- * Add extension modules statically when the plugin is initialized, so that the plugin can register these extension modules uniformly
+ * Copyright 2023 DreamNum Inc.
*
- * @privateRemarks
- * zh: 在插件初始化的时候静态添加扩展模块,方便插件统一注册这些扩展模块
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 class Registry {
private _data: any[] = [];
diff --git a/packages/core/src/basics/univer-doc.ts b/packages/core/src/basics/univer-doc.ts
index 91f615ffc8..f1aa4d96c5 100644
--- a/packages/core/src/basics/univer-doc.ts
+++ b/packages/core/src/basics/univer-doc.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Ctor } from '@wendellhu/redi';
import { Inject, Injector } from '@wendellhu/redi';
diff --git a/packages/core/src/basics/univer-sheet.ts b/packages/core/src/basics/univer-sheet.ts
index 70b924016e..996988ea4d 100644
--- a/packages/core/src/basics/univer-sheet.ts
+++ b/packages/core/src/basics/univer-sheet.ts
@@ -1,4 +1,19 @@
-/* eslint-disable @typescript-eslint/no-explicit-any */
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Ctor, Dependency, IDisposable } from '@wendellhu/redi';
import { Inject, Injector } from '@wendellhu/redi';
diff --git a/packages/core/src/basics/univer-slide.ts b/packages/core/src/basics/univer-slide.ts
index ae499a43d9..07af863e3f 100644
--- a/packages/core/src/basics/univer-slide.ts
+++ b/packages/core/src/basics/univer-slide.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Ctor } from '@wendellhu/redi';
import { Inject, Injector } from '@wendellhu/redi';
diff --git a/packages/core/src/basics/univer.ts b/packages/core/src/basics/univer.ts
index b7f1be8747..8400827e85 100644
--- a/packages/core/src/basics/univer.ts
+++ b/packages/core/src/basics/univer.ts
@@ -1,4 +1,19 @@
-/* eslint-disable @typescript-eslint/no-explicit-any */
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Ctor } from '@wendellhu/redi';
import { Injector } from '@wendellhu/redi';
diff --git a/packages/core/src/common/array.ts b/packages/core/src/common/array.ts
index 9c1f2a3c58..d8fe85e6f2 100644
--- a/packages/core/src/common/array.ts
+++ b/packages/core/src/common/array.ts
@@ -1,9 +1,19 @@
/**
- * Remove an item from an array.
- * @param arr The array to remove item from.
- * @param item The item to be removed.
- * @returns Returns `true` if the item is removed successfully. Returns `false` if the item does not exist in the array.
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 function remove<T>(arr: T[], item: T): boolean {
const index = arr.indexOf(item);
if (index > -1) {
diff --git a/packages/core/src/common/color/color-builder.ts b/packages/core/src/common/color/color-builder.ts
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/packages/core/src/common/const.ts b/packages/core/src/common/const.ts
index 8ae5c887c8..f2232edcf9 100644
--- a/packages/core/src/common/const.ts
+++ b/packages/core/src/common/const.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 DOCS_NORMAL_EDITOR_UNIT_ID_KEY = '__defaultDocumentNormalEditorSpecialUnitId_20231006__';
export const DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY = '__defaultDocumentFormulaBarEditorSpecialUnitId_20231012__';
diff --git a/packages/core/src/common/interceptor.ts b/packages/core/src/common/interceptor.ts
index 6280b07840..26749b4312 100644
--- a/packages/core/src/common/interceptor.ts
+++ b/packages/core/src/common/interceptor.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { remove } from './array';
import type { Nullable } from './type-utils';
diff --git a/packages/core/src/common/memory-cursor.ts b/packages/core/src/common/memory-cursor.ts
index 5f737a62dc..f0b503d196 100644
--- a/packages/core/src/common/memory-cursor.ts
+++ b/packages/core/src/common/memory-cursor.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 class MemoryCursor {
cursor: number = 0;
diff --git a/packages/core/src/common/request-immediate-macro-task.ts b/packages/core/src/common/request-immediate-macro-task.ts
index 324f3d63b0..82a0cc1eb7 100644
--- a/packages/core/src/common/request-immediate-macro-task.ts
+++ b/packages/core/src/common/request-immediate-macro-task.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 function requestImmediateMacroTask(callback: (value?: unknown) => void): () => void {
const channel = new MessageChannel();
let cancelled = false;
diff --git a/packages/core/src/common/sequence.ts b/packages/core/src/common/sequence.ts
index 3a6cad6dc1..7285265fac 100644
--- a/packages/core/src/common/sequence.ts
+++ b/packages/core/src/common/sequence.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 interface ISequenceExecuteResult {
index: number;
result: boolean;
diff --git a/packages/core/src/common/type-utils.ts b/packages/core/src/common/type-utils.ts
index ddec5b5657..d8c55d024d 100644
--- a/packages/core/src/common/type-utils.ts
+++ b/packages/core/src/common/type-utils.ts
@@ -1,4 +1,17 @@
/**
- * Alias type for value that can be null
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 type Nullable<T> = T | null | undefined | void;
diff --git a/packages/core/src/docs/data-model/__tests__/apply-utils.spec.ts b/packages/core/src/docs/data-model/__tests__/apply-utils.spec.ts
index 6eacb5844a..0dc22d28fb 100644
--- a/packages/core/src/docs/data-model/__tests__/apply-utils.spec.ts
+++ b/packages/core/src/docs/data-model/__tests__/apply-utils.spec.ts
@@ -1,4 +1,19 @@
-/* eslint-disable no-magic-numbers */
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from 'vitest';
import { afterEach, beforeEach, describe, expect, it } from 'vitest';
diff --git a/packages/core/src/docs/data-model/apply-utils/common.ts b/packages/core/src/docs/data-model/apply-utils/common.ts
index 5163aea941..f9ba14665d 100644
--- a/packages/core/src/docs/data-model/apply-utils/common.ts
+++ b/packages/core/src/docs/data-model/apply-utils/common.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '../../../shared';
import { horizontalLineSegmentsSubtraction, sortRulesFactory, Tools } from '../../../shared';
import { isSameStyleTextRun } from '../../../shared/compare';
diff --git a/packages/core/src/docs/data-model/apply-utils/delete-apply.ts b/packages/core/src/docs/data-model/apply-utils/delete-apply.ts
index 64c235c923..a05a1c89c5 100644
--- a/packages/core/src/docs/data-model/apply-utils/delete-apply.ts
+++ b/packages/core/src/docs/data-model/apply-utils/delete-apply.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { deleteContent } from '../../../shared';
import type { IDocumentBody } from '../../../types/interfaces';
import {
diff --git a/packages/core/src/docs/data-model/apply-utils/insert-apply.ts b/packages/core/src/docs/data-model/apply-utils/insert-apply.ts
index 531db66be2..eb68ea543e 100644
--- a/packages/core/src/docs/data-model/apply-utils/insert-apply.ts
+++ b/packages/core/src/docs/data-model/apply-utils/insert-apply.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { insertTextToContent } from '../../../shared';
import type { IDocumentBody } from '../../../types/interfaces';
import {
diff --git a/packages/core/src/docs/data-model/apply-utils/update-apply.ts b/packages/core/src/docs/data-model/apply-utils/update-apply.ts
index fd21e206d6..65efd64a1b 100644
--- a/packages/core/src/docs/data-model/apply-utils/update-apply.ts
+++ b/packages/core/src/docs/data-model/apply-utils/update-apply.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '../../../shared';
import { Tools, UpdateDocsAttributeType } from '../../../shared';
import type {
diff --git a/packages/core/src/docs/data-model/document-data-model.ts b/packages/core/src/docs/data-model/document-data-model.ts
index 3a75be7081..8056d442ff 100644
--- a/packages/core/src/docs/data-model/document-data-model.ts
+++ b/packages/core/src/docs/data-model/document-data-model.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { MemoryCursor } from '../../common/memory-cursor';
import type { Nullable } from '../../shared';
import { getDocsUpdateBody } from '../../shared';
diff --git a/packages/core/src/docs/data-model/index.ts b/packages/core/src/docs/data-model/index.ts
index 3d8d60c3e4..60e376f80a 100644
--- a/packages/core/src/docs/data-model/index.ts
+++ b/packages/core/src/docs/data-model/index.ts
@@ -1,2 +1,18 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './document-data-model';
export * from './types';
diff --git a/packages/core/src/docs/data-model/mutation-types.ts b/packages/core/src/docs/data-model/mutation-types.ts
index 712b900b63..c96ee92924 100644
--- a/packages/core/src/docs/data-model/mutation-types.ts
+++ b/packages/core/src/docs/data-model/mutation-types.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { UpdateDocsAttributeType } from '../../shared/command-enum';
import type { IDocumentBody } from '../../types/interfaces/i-document-data';
diff --git a/packages/core/src/docs/data-model/types.ts b/packages/core/src/docs/data-model/types.ts
index 0d39c7bc79..cdad82c048 100644
--- a/packages/core/src/docs/data-model/types.ts
+++ b/packages/core/src/docs/data-model/types.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 DataStreamTreeNodeType {
// COLUMN_BREAK, // \v 换列
// PAGE_BREAK, // \f 换页
diff --git a/packages/core/src/docs/index.ts b/packages/core/src/docs/index.ts
index 044c5df924..b2b8eade86 100644
--- a/packages/core/src/docs/index.ts
+++ b/packages/core/src/docs/index.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './data-model';
diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts
index 3b2282bcf9..cbd972016f 100644
--- a/packages/core/src/index.ts
+++ b/packages/core/src/index.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './basics';
export { dedupe, remove } from './common/array';
export {
diff --git a/packages/core/src/observer/index.ts b/packages/core/src/observer/index.ts
index b6f818eb2f..84c6ae7f99 100644
--- a/packages/core/src/observer/index.ts
+++ b/packages/core/src/observer/index.ts
@@ -1,2 +1,18 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './observable';
export * from './observable-hooks';
diff --git a/packages/core/src/observer/observable-hooks.ts b/packages/core/src/observer/observable-hooks.ts
index 750391e193..75ec17af05 100644
--- a/packages/core/src/observer/observable-hooks.ts
+++ b/packages/core/src/observer/observable-hooks.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '../shared/types';
import type { EventState } from './observable';
import { Observable, Observer } from './observable';
diff --git a/packages/core/src/observer/observable.ts b/packages/core/src/observer/observable.ts
index 3f68e7ec9b..a96326726f 100644
--- a/packages/core/src/observer/observable.ts
+++ b/packages/core/src/observer/observable.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '../shared/types';
/**
diff --git a/packages/core/src/plugin/plugin.ts b/packages/core/src/plugin/plugin.ts
index a117ec77c3..0dc0d582ff 100644
--- a/packages/core/src/plugin/plugin.ts
+++ b/packages/core/src/plugin/plugin.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Ctor, Injector } from '@wendellhu/redi';
export type PluginCtor<T extends Plugin> = Ctor<T> & { type: PluginType };
diff --git a/packages/core/src/services/auth/auth.service.ts b/packages/core/src/services/auth/auth.service.ts
index bfa7da057b..84521870aa 100644
--- a/packages/core/src/services/auth/auth.service.ts
+++ b/packages/core/src/services/auth/auth.service.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 interface IAuthService {}
diff --git a/packages/core/src/services/command/command.service.spec.ts b/packages/core/src/services/command/command.service.spec.ts
index 0e81913741..4825ac5209 100644
--- a/packages/core/src/services/command/command.service.spec.ts
+++ b/packages/core/src/services/command/command.service.spec.ts
@@ -1,4 +1,19 @@
-/* eslint-disable no-magic-numbers */
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Injector } from '@wendellhu/redi';
import { beforeEach, describe, expect, it, vi } from 'vitest';
diff --git a/packages/core/src/services/command/command.service.ts b/packages/core/src/services/command/command.service.ts
index 3abd49a2f8..08a0fc6560 100644
--- a/packages/core/src/services/command/command.service.ts
+++ b/packages/core/src/services/command/command.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IAccessor, IDisposable } from '@wendellhu/redi';
import { createIdentifier, Inject, Injector } from '@wendellhu/redi';
diff --git a/packages/core/src/services/config/config.service.ts b/packages/core/src/services/config/config.service.ts
index c52995da11..bb522ba939 100644
--- a/packages/core/src/services/config/config.service.ts
+++ b/packages/core/src/services/config/config.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { createIdentifier } from '@wendellhu/redi';
import type { Nullable } from '../../shared/types';
diff --git a/packages/core/src/services/context/context.service.ts b/packages/core/src/services/context/context.service.ts
index 98228e6d40..4e904ce01a 100644
--- a/packages/core/src/services/context/context.service.ts
+++ b/packages/core/src/services/context/context.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { createIdentifier } from '@wendellhu/redi';
import type { Observable } from 'rxjs';
import { Subject } from 'rxjs';
diff --git a/packages/core/src/services/context/context.ts b/packages/core/src/services/context/context.ts
index 4ceb6ec289..b38cd02d4a 100644
--- a/packages/core/src/services/context/context.ts
+++ b/packages/core/src/services/context/context.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 FOCUSING_SHEET = 'FOCUSING_SHEET';
export const FOCUSING_DOC = 'FOCUSING_DOC';
export const FOCUSING_SLIDE = 'FOCUSING_SLIDE';
diff --git a/packages/core/src/services/error/error.service.ts b/packages/core/src/services/error/error.service.ts
index 422dcc3a20..eed50b5a1c 100644
--- a/packages/core/src/services/error/error.service.ts
+++ b/packages/core/src/services/error/error.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Subject } from 'rxjs';
import { Disposable } from '../../shared/lifecycle';
diff --git a/packages/core/src/services/floating-object/floating-object-interfaces.ts b/packages/core/src/services/floating-object/floating-object-interfaces.ts
index 87d13a6c3c..634ae0661b 100644
--- a/packages/core/src/services/floating-object/floating-object-interfaces.ts
+++ b/packages/core/src/services/floating-object/floating-object-interfaces.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 interface ISize {
width?: number;
height?: number;
diff --git a/packages/core/src/services/floating-object/floating-object-manager.service.ts b/packages/core/src/services/floating-object/floating-object-manager.service.ts
index 5ac58dcca5..e489a0c918 100644
--- a/packages/core/src/services/floating-object/floating-object-manager.service.ts
+++ b/packages/core/src/services/floating-object/floating-object-manager.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IDisposable } from '@wendellhu/redi';
import { createIdentifier } from '@wendellhu/redi';
import type { Observable } from 'rxjs';
diff --git a/packages/core/src/services/instance/instance.service.ts b/packages/core/src/services/instance/instance.service.ts
index 938786c2fc..355b70d914 100644
--- a/packages/core/src/services/instance/instance.service.ts
+++ b/packages/core/src/services/instance/instance.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { createIdentifier } from '@wendellhu/redi';
import type { Observable } from 'rxjs';
import { BehaviorSubject, Subject } from 'rxjs';
diff --git a/packages/core/src/services/lifecycle/lifecycle.service.ts b/packages/core/src/services/lifecycle/lifecycle.service.ts
index 52bf7c6d91..3cbc93301f 100644
--- a/packages/core/src/services/lifecycle/lifecycle.service.ts
+++ b/packages/core/src/services/lifecycle/lifecycle.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Inject, Injector } from '@wendellhu/redi';
import { BehaviorSubject, Observable } from 'rxjs';
diff --git a/packages/core/src/services/lifecycle/lifecycle.ts b/packages/core/src/services/lifecycle/lifecycle.ts
index f5507b2467..52411ae4d3 100644
--- a/packages/core/src/services/lifecycle/lifecycle.ts
+++ b/packages/core/src/services/lifecycle/lifecycle.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Ctor, DependencyIdentifier } from '@wendellhu/redi';
/**
diff --git a/packages/core/src/services/local-storage/local-storage.service.ts b/packages/core/src/services/local-storage/local-storage.service.ts
index 09ef817e57..0b17a1d60e 100644
--- a/packages/core/src/services/local-storage/local-storage.service.ts
+++ b/packages/core/src/services/local-storage/local-storage.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { createIdentifier } from '@wendellhu/redi';
export const ILocalStorageService = createIdentifier<ILocalStorageService>('ILocalStorageService');
diff --git a/packages/core/src/services/locale/locale.service.ts b/packages/core/src/services/locale/locale.service.ts
index df36d2c153..6fcca8a5fa 100644
--- a/packages/core/src/services/locale/locale.service.ts
+++ b/packages/core/src/services/locale/locale.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Subject } from 'rxjs';
import type { Nullable } from '../../common/type-utils';
diff --git a/packages/core/src/services/log/log.service.ts b/packages/core/src/services/log/log.service.ts
index 1c46535ada..c151ba6651 100644
--- a/packages/core/src/services/log/log.service.ts
+++ b/packages/core/src/services/log/log.service.ts
@@ -1,4 +1,19 @@
-/* eslint-disable no-magic-numbers */
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
/* eslint-disable @typescript-eslint/no-explicit-any */
import { createIdentifier } from '@wendellhu/redi';
diff --git a/packages/core/src/services/permission/index.ts b/packages/core/src/services/permission/index.ts
index d72350e726..388da59cb0 100644
--- a/packages/core/src/services/permission/index.ts
+++ b/packages/core/src/services/permission/index.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IPermissionService, PermissionService } from './permission.service';
export { UniverEditablePermission, UniverEditablePermissionPoint } from './permission-point';
export { UniverPermissionService } from './univer.permission.service';
diff --git a/packages/core/src/services/permission/permission-point.ts b/packages/core/src/services/permission/permission-point.ts
index 2b90d7c16d..9e49798be1 100644
--- a/packages/core/src/services/permission/permission-point.ts
+++ b/packages/core/src/services/permission/permission-point.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { PermissionPoint } from '../../shared';
export const UniverEditablePermissionPoint = 'univer.editable';
diff --git a/packages/core/src/services/permission/permission.service.ts b/packages/core/src/services/permission/permission.service.ts
index 033a200669..83c2abc252 100644
--- a/packages/core/src/services/permission/permission.service.ts
+++ b/packages/core/src/services/permission/permission.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { createIdentifier, Inject } from '@wendellhu/redi';
import type { Observable } from 'rxjs';
import { BehaviorSubject, combineLatest } from 'rxjs';
diff --git a/packages/core/src/services/permission/univer.permission.service.ts b/packages/core/src/services/permission/univer.permission.service.ts
index f21a5d97e7..596321ef4f 100644
--- a/packages/core/src/services/permission/univer.permission.service.ts
+++ b/packages/core/src/services/permission/univer.permission.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Inject } from '@wendellhu/redi';
import { Disposable } from '../../shared';
diff --git a/packages/core/src/services/resource-manager/resource-manager.service.ts b/packages/core/src/services/resource-manager/resource-manager.service.ts
index 29d01d2ff7..0adbfece3c 100644
--- a/packages/core/src/services/resource-manager/resource-manager.service.ts
+++ b/packages/core/src/services/resource-manager/resource-manager.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Subject } from 'rxjs';
import { Disposable, toDisposable } from '../../shared/lifecycle';
diff --git a/packages/core/src/services/resource-manager/type.ts b/packages/core/src/services/resource-manager/type.ts
index 51d5a2c7cb..5e545611d4 100644
--- a/packages/core/src/services/resource-manager/type.ts
+++ b/packages/core/src/services/resource-manager/type.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IDisposable } from '@wendellhu/redi';
import { createIdentifier } from '@wendellhu/redi';
import type { Observable } from 'rxjs';
diff --git a/packages/core/src/services/theme/theme.service.ts b/packages/core/src/services/theme/theme.service.ts
index bb4d6c71c9..5d8e45ed8d 100644
--- a/packages/core/src/services/theme/theme.service.ts
+++ b/packages/core/src/services/theme/theme.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Observable } from 'rxjs';
import { BehaviorSubject } from 'rxjs';
diff --git a/packages/core/src/services/undoredo/undoredo.service.ts b/packages/core/src/services/undoredo/undoredo.service.ts
index 14819d81ed..90841dce5e 100644
--- a/packages/core/src/services/undoredo/undoredo.service.ts
+++ b/packages/core/src/services/undoredo/undoredo.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IAccessor, IDisposable } from '@wendellhu/redi';
import { createIdentifier } from '@wendellhu/redi';
import type { Observable } from 'rxjs';
diff --git a/packages/core/src/shared/__test__/object-matrix.spec.ts b/packages/core/src/shared/__test__/object-matrix.spec.ts
index 48d3988304..edf888894d 100644
--- a/packages/core/src/shared/__test__/object-matrix.spec.ts
+++ b/packages/core/src/shared/__test__/object-matrix.spec.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { describe, expect, it } from 'vitest';
import { ObjectMatrix } from '../object-matrix';
diff --git a/packages/core/src/shared/__test__/ref-alias.spec.ts b/packages/core/src/shared/__test__/ref-alias.spec.ts
index 45fbd36bc6..f8af6eefdc 100644
--- a/packages/core/src/shared/__test__/ref-alias.spec.ts
+++ b/packages/core/src/shared/__test__/ref-alias.spec.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { describe, expect, it } from 'vitest';
import { RefAlias } from '../ref-alias';
diff --git a/packages/core/src/shared/array-search.ts b/packages/core/src/shared/array-search.ts
index 2c9397ce0c..5b7c1d78fc 100644
--- a/packages/core/src/shared/array-search.ts
+++ b/packages/core/src/shared/array-search.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 function binarySearchArray(arr: number[], pos: number) {
let low: number = 0;
let high = arr.length - 1;
diff --git a/packages/core/src/shared/blob.ts b/packages/core/src/shared/blob.ts
index cfe25fb0c8..16a87a18d6 100644
--- a/packages/core/src/shared/blob.ts
+++ b/packages/core/src/shared/blob.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 function codeToBlob(code: string) {
const blob = new Blob([code], { type: 'text/javascript' });
const objectURL = window.URL.createObjectURL(blob);
diff --git a/packages/core/src/shared/color-builder.ts b/packages/core/src/shared/color-builder.ts
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/packages/core/src/shared/color/color-builder.ts b/packages/core/src/shared/color/color-builder.ts
index 483d1b0dce..08707082a0 100644
--- a/packages/core/src/shared/color/color-builder.ts
+++ b/packages/core/src/shared/color/color-builder.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '../../common/type-utils';
import { ColorType, ThemeColors, ThemeColorType } from '../../types/enum';
import type { Color } from './color';
diff --git a/packages/core/src/shared/color/color.ts b/packages/core/src/shared/color/color.ts
index 8c42a1419d..6d750027bd 100644
--- a/packages/core/src/shared/color/color.ts
+++ b/packages/core/src/shared/color/color.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '../../common/type-utils';
import { THEME_COLORS } from '../../types/const/theme-color-map';
import type { ThemeColors, ThemeColorType } from '../../types/enum';
diff --git a/packages/core/src/shared/command-enum.ts b/packages/core/src/shared/command-enum.ts
index d69b845bdd..d1cf986d84 100644
--- a/packages/core/src/shared/command-enum.ts
+++ b/packages/core/src/shared/command-enum.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 UpdateDocsAttributeType {
COVER, // Default, if not present, add; if present, overwrite, while retaining the original properties.
REPLACE, // Replace the original properties entirely.
diff --git a/packages/core/src/shared/common.ts b/packages/core/src/shared/common.ts
index afd26b2245..d2452206a9 100644
--- a/packages/core/src/shared/common.ts
+++ b/packages/core/src/shared/common.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {
BaselineOffset,
BorderStyleTypes,
diff --git a/packages/core/src/shared/compare.ts b/packages/core/src/shared/compare.ts
index cc5913b320..d17fec9757 100644
--- a/packages/core/src/shared/compare.ts
+++ b/packages/core/src/shared/compare.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ITextRun } from '../types/interfaces/i-document-data';
interface AnyObject {
diff --git a/packages/core/src/shared/doc-tool.ts b/packages/core/src/shared/doc-tool.ts
index 1358cc378f..5fef834657 100644
--- a/packages/core/src/shared/doc-tool.ts
+++ b/packages/core/src/shared/doc-tool.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IParagraph, IParagraphStyle } from '../types/interfaces/i-document-data';
export function horizontalLineSegmentsSubtraction(A1: number, A2: number, B1: number, B2: number) {
diff --git a/packages/core/src/shared/gen-name.ts b/packages/core/src/shared/gen-name.ts
index ace9a98208..4866c8fda1 100644
--- a/packages/core/src/shared/gen-name.ts
+++ b/packages/core/src/shared/gen-name.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 class GenName {
private _include: string[];
diff --git a/packages/core/src/shared/generate.ts b/packages/core/src/shared/generate.ts
index a75b3dcfa7..b2a872375d 100644
--- a/packages/core/src/shared/generate.ts
+++ b/packages/core/src/shared/generate.ts
@@ -1,342 +1,358 @@
-import numeral from 'numeral';
-
-import type { IKeyType } from './types';
-
-export const error: IKeyType<string> = {
- v: '#VALUE!', // 错误的参数或运算符
- n: '#NAME?', // 公式名称错误
- na: '#N/A', // 函数或公式中没有可用数值
- r: '#REF!', // 删除了由其他公式引用的单元格
- d: '#DIV/0!', // 除数是0或空单元格
- nm: '#NUM!', // 当公式或函数中某个数字有问题时
- nl: '#NULL!', // 交叉运算符(空格)使用不正确
- sp: '#SPILL!', // 数组范围有其它值
-};
-// 是否是错误类型
-function valueIsError(value: string) {
- let isError = false;
-
- for (const x in error) {
- if (value === error[x]) {
- isError = true;
- break;
- }
- }
-
- return isError;
-}
-
-// 是否是纯数字
-export function isRealNum(val: string | number) {
- if (val === null || val.toString().replace(/\s/g, '') === '') {
- return false;
- }
-
- if (typeof val === 'boolean') {
- return false;
- }
-
- if (!isNaN(val as number)) {
- return true;
- }
- return false;
-}
-
-function isdatetime(s: string | null) {
- if (s === null || s.toString().length < 5) {
- return false;
- }
- if (checkDateTime(s)) {
- return true;
- }
- return false;
-
- function checkDateTime(str: string) {
- const reg1 = /^(\d{4})-(\d{1,2})-(\d{1,2})(\s(\d{1,2}):(\d{1,2})(:(\d{1,2}))?)?$/;
- const reg2 = /^(\d{4})\/(\d{1,2})\/(\d{1,2})(\s(\d{1,2}):(\d{1,2})(:(\d{1,2}))?)?$/;
-
- if (!reg1.test(str) && !reg2.test(str)) {
- return false;
- }
-
- const year = RegExp.$1 as unknown as number;
- const month = RegExp.$2 as unknown as number;
- const day = RegExp.$3 as unknown as number;
-
- if (year < 1900) {
- return false;
- }
-
- if (month > 12) {
- return false;
- }
-
- if (day > 31) {
- return false;
- }
-
- if (month === 2) {
- if (new Date(year, 1, 29).getDate() === 29 && day > 29) {
- return false;
- }
- if (new Date(year, 1, 29).getDate() !== 29 && day > 28) {
- return false;
- }
- }
-
- return true;
- }
-}
-
-let good_pd_date = new Date('2017-02-19T19:06:09.000Z');
-if (Number.isNaN(good_pd_date.getFullYear())) good_pd_date = new Date('2/19/17');
-const good_pd = good_pd_date.getFullYear() === 2017;
-function parseDate(str: string | Date, fixdate?: number) {
- const d = new Date(str);
- if (good_pd) {
- if ((fixdate as number) > 0) {
- d.setTime(d.getTime() + d.getTimezoneOffset() * 60 * 1000);
- } else if ((fixdate as number) < 0) {
- d.setTime(d.getTime() - d.getTimezoneOffset() * 60 * 1000);
- }
- return d;
- }
- if (str instanceof Date) return str;
- if (good_pd_date.getFullYear() === 1917 && !Number.isNaN(d.getFullYear())) {
- const s = d.getFullYear();
- if (str.indexOf(`${s}`) > -1) return d;
- d.setFullYear(d.getFullYear() + 100);
- return d;
- }
- const n = str.match(/\d+/g) || ['2017', '2', '19', '0', '0', '0'];
- let out = new Date(+n[0], +n[1] - 1, +n[2], +n[3] || 0, +n[4] || 0, +n[5] || 0);
- if (str.indexOf('Z') > -1) out = new Date(out.getTime() - out.getTimezoneOffset() * 60 * 1000);
- return out;
-}
-
-const base1904 = new Date(1900, 2, 1, 0, 0, 0);
-export function datenum_local(v: Date, date1904?: number) {
- let epoch = Date.UTC(v.getFullYear(), v.getMonth(), v.getDate(), v.getHours(), v.getMinutes(), v.getSeconds());
- const dnthresh_utc = Date.UTC(1899, 11, 31, 0, 0, 0);
-
- if (date1904) epoch -= 1461 * 24 * 60 * 60 * 1000;
- else if (v >= base1904) epoch += 24 * 60 * 60 * 1000;
- return (epoch - dnthresh_utc) / (24 * 60 * 60 * 1000);
-}
-
-export function generate(value: string): any {
- // 万 单位格式增加!!!
- const ret = [];
- let m = null;
- let ct: any = {};
- let v: any = value;
-
- if (value === null) {
- return null;
- }
-
- if (/^-?[0-9]{1,}[,][0-9]{3}(.[0-9]{1,2})?$/.test(value)) {
- // 表述金额的字符串,如:12,000.00 或者 -12,000.00
- m = value;
- v = Number(value.split('.')[0].replace(',', ''));
- let fa = '#,##0';
- if (value.split('.')[1]) {
- fa = '#,##0.';
- for (let i = 0; i < value.split('.')[1].length; i++) {
- fa += 0;
- }
- }
- ct = { fa, t: 'n' };
- } else if (value.toString().substr(0, 1) === "'") {
- m = value.toString().substr(1);
- ct = { fa: '@', t: 's' };
- } else if (value.toString().toUpperCase() === 'TRUE') {
- m = 'TRUE';
- ct = { fa: 'General', t: 'b' };
- v = true;
- } else if (value.toString().toUpperCase() === 'FALSE') {
- m = 'FALSE';
- ct = { fa: 'General', t: 'b' };
- v = false;
- } else if (valueIsError(value)) {
- m = value.toString();
- ct = { fa: 'General', t: 'e' };
- } else if (/^\d{6}(18|19|20)?\d{2}(0[1-9]|1[12])(0[1-9]|[12]\d|3[01])\d{3}(\d|X)$/i.test(value)) {
- m = value.toString();
- ct = { fa: '@', t: 's' };
- } else if (
- isRealNum(value) &&
- Math.abs(parseFloat(value)) > 0 &&
- (Math.abs(parseFloat(value)) >= 1e11 || Math.abs(parseFloat(value)) < 1e-9)
- ) {
- v = numeral(value).value();
- const str = v.toExponential();
- if (str.indexOf('.') > -1) {
- let strlen = str.split('.')[1].split('e')[0].length;
- if (strlen > 5) {
- strlen = 5;
- }
-
- ct = { fa: `#0.${new Array(strlen + 1).join('0')}E+00`, t: 'n' };
- } else {
- ct = { fa: '#0.E+00', t: 'n' };
- }
-
- m = SSF.format(ct.fa, v);
- } else if (value.toString().indexOf('%') > -1) {
- const index = value.toString().indexOf('%');
- const value2 = value.toString().substr(0, index);
- const value3 = value2.replace(/,/g, '');
-
- if (index === value.toString().length - 1 && isRealNum(value3)) {
- if (value2.indexOf('.') > -1) {
- if (value2.indexOf('.') === value2.lastIndexOf('.')) {
- const value4 = value2.split('.')[0];
- const value5 = value2.split('.')[1];
-
- let len = value5.length;
- if (len > 9) {
- len = 9;
- }
-
- if (value4.indexOf(',') > -1) {
- let isThousands = true;
- const ThousandsArr = value4.split(',');
-
- for (let i = 1; i < ThousandsArr.length; i++) {
- if (ThousandsArr[i].length < 3) {
- isThousands = false;
- break;
- }
- }
-
- if (isThousands) {
- ct = {
- fa: `#,##0.${new Array(len + 1).join('0')}%`,
- t: 'n',
- };
- v = numeral(value).value();
- m = SSF.format(ct.fa, v);
- } else {
- m = value.toString();
- ct = { fa: '@', t: 's' };
- }
- } else {
- ct = {
- fa: `0.${new Array(len + 1).join('0')}%`,
- t: 'n',
- };
- v = numeral(value).value();
- m = SSF.format(ct.fa, v);
- }
- } else {
- m = value.toString();
- ct = { fa: '@', t: 's' };
- }
- } else if (value2.indexOf(',') > -1) {
- let isThousands = true;
- const ThousandsArr = value2.split(',');
-
- for (let i = 1; i < ThousandsArr.length; i++) {
- if (ThousandsArr[i].length < 3) {
- isThousands = false;
- break;
- }
- }
-
- if (isThousands) {
- ct = { fa: '#,##0%', t: 'n' };
- v = numeral(value).value();
- m = SSF.format(ct.fa, v);
- } else {
- m = value.toString();
- ct = { fa: '@', t: 's' };
- }
- } else {
- ct = { fa: '0%', t: 'n' };
- v = numeral(value).value();
- m = SSF.format(ct.fa, v);
- }
- } else {
- m = value.toString();
- ct = { fa: '@', t: 's' };
- }
- } else if (value.toString().indexOf('.') > -1) {
- if (value.toString().indexOf('.') === value.toString().lastIndexOf('.')) {
- const value1 = value.toString().split('.')[0];
- const value2 = value.toString().split('.')[1];
-
- let len = value2.length;
- if (len > 9) {
- len = 9;
- }
-
- if (value1.indexOf(',') > -1) {
- let isThousands = true;
- const ThousandsArr = value1.split(',');
-
- for (let i = 1; i < ThousandsArr.length; i++) {
- if (!isRealNum(ThousandsArr[i]) || ThousandsArr[i].length < 3) {
- isThousands = false;
- break;
- }
- }
-
- if (isThousands) {
- ct = { fa: `#,##0.${new Array(len + 1).join('0')}`, t: 'n' };
- v = numeral(value).value();
- m = SSF.format(ct.fa, v);
- } else {
- m = value.toString();
- ct = { fa: '@', t: 's' };
- }
- } else if (isRealNum(value1) && isRealNum(value2)) {
- ct = { fa: `0.${new Array(len + 1).join('0')}`, t: 'n' };
- v = numeral(value).value();
- m = SSF.format(ct.fa, v);
- } else {
- m = value.toString();
- ct = { fa: '@', t: 's' };
- }
- } else {
- m = value.toString();
- ct = { fa: '@', t: 's' };
- }
- } else if (isRealNum(value)) {
- m = value.toString();
- ct = { fa: 'General', t: 'n' };
- v = parseFloat(value);
- } else if (
- isdatetime(value) &&
- (value.toString().indexOf('.') > -1 || value.toString().indexOf(':') > -1 || value.toString().length < 16)
- ) {
- v = datenum_local(parseDate(value.toString().replace(/-/g, '/')));
-
- if (v.toString().indexOf('.') > -1) {
- if (value.toString().length > 18) {
- ct.fa = 'yyyy-MM-dd hh:mm:ss';
- } else if (value.toString().length > 11) {
- ct.fa = 'yyyy-MM-dd hh:mm';
- } else {
- ct.fa = 'yyyy-MM-dd';
- }
- } else {
- ct.fa = 'yyyy-MM-dd';
- }
-
- ct.t = 'd';
- m = SSF.format(ct.fa, v);
- } else {
- m = value;
- ct.fa = 'General';
- ct.t = 'g';
- }
-
- return [m, ct, v];
-}
-
-const SSF = {
- format(a: any, b: any) {},
-};
-
-export const update = (a: any, b: any): any => {};
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 numeral from 'numeral';
+
+import type { IKeyType } from './types';
+
+export const error: IKeyType<string> = {
+ v: '#VALUE!', // 错误的参数或运算符
+ n: '#NAME?', // 公式名称错误
+ na: '#N/A', // 函数或公式中没有可用数值
+ r: '#REF!', // 删除了由其他公式引用的单元格
+ d: '#DIV/0!', // 除数是0或空单元格
+ nm: '#NUM!', // 当公式或函数中某个数字有问题时
+ nl: '#NULL!', // 交叉运算符(空格)使用不正确
+ sp: '#SPILL!', // 数组范围有其它值
+};
+// 是否是错误类型
+function valueIsError(value: string) {
+ let isError = false;
+
+ for (const x in error) {
+ if (value === error[x]) {
+ isError = true;
+ break;
+ }
+ }
+
+ return isError;
+}
+
+// 是否是纯数字
+export function isRealNum(val: string | number) {
+ if (val === null || val.toString().replace(/\s/g, '') === '') {
+ return false;
+ }
+
+ if (typeof val === 'boolean') {
+ return false;
+ }
+
+ if (!isNaN(val as number)) {
+ return true;
+ }
+ return false;
+}
+
+function isdatetime(s: string | null) {
+ if (s === null || s.toString().length < 5) {
+ return false;
+ }
+ if (checkDateTime(s)) {
+ return true;
+ }
+ return false;
+
+ function checkDateTime(str: string) {
+ const reg1 = /^(\d{4})-(\d{1,2})-(\d{1,2})(\s(\d{1,2}):(\d{1,2})(:(\d{1,2}))?)?$/;
+ const reg2 = /^(\d{4})\/(\d{1,2})\/(\d{1,2})(\s(\d{1,2}):(\d{1,2})(:(\d{1,2}))?)?$/;
+
+ if (!reg1.test(str) && !reg2.test(str)) {
+ return false;
+ }
+
+ const year = RegExp.$1 as unknown as number;
+ const month = RegExp.$2 as unknown as number;
+ const day = RegExp.$3 as unknown as number;
+
+ if (year < 1900) {
+ return false;
+ }
+
+ if (month > 12) {
+ return false;
+ }
+
+ if (day > 31) {
+ return false;
+ }
+
+ if (month === 2) {
+ if (new Date(year, 1, 29).getDate() === 29 && day > 29) {
+ return false;
+ }
+ if (new Date(year, 1, 29).getDate() !== 29 && day > 28) {
+ return false;
+ }
+ }
+
+ return true;
+ }
+}
+
+let good_pd_date = new Date('2017-02-19T19:06:09.000Z');
+if (Number.isNaN(good_pd_date.getFullYear())) good_pd_date = new Date('2/19/17');
+const good_pd = good_pd_date.getFullYear() === 2017;
+function parseDate(str: string | Date, fixdate?: number) {
+ const d = new Date(str);
+ if (good_pd) {
+ if ((fixdate as number) > 0) {
+ d.setTime(d.getTime() + d.getTimezoneOffset() * 60 * 1000);
+ } else if ((fixdate as number) < 0) {
+ d.setTime(d.getTime() - d.getTimezoneOffset() * 60 * 1000);
+ }
+ return d;
+ }
+ if (str instanceof Date) return str;
+ if (good_pd_date.getFullYear() === 1917 && !Number.isNaN(d.getFullYear())) {
+ const s = d.getFullYear();
+ if (str.indexOf(`${s}`) > -1) return d;
+ d.setFullYear(d.getFullYear() + 100);
+ return d;
+ }
+ const n = str.match(/\d+/g) || ['2017', '2', '19', '0', '0', '0'];
+ let out = new Date(+n[0], +n[1] - 1, +n[2], +n[3] || 0, +n[4] || 0, +n[5] || 0);
+ if (str.indexOf('Z') > -1) out = new Date(out.getTime() - out.getTimezoneOffset() * 60 * 1000);
+ return out;
+}
+
+const base1904 = new Date(1900, 2, 1, 0, 0, 0);
+export function datenum_local(v: Date, date1904?: number) {
+ let epoch = Date.UTC(v.getFullYear(), v.getMonth(), v.getDate(), v.getHours(), v.getMinutes(), v.getSeconds());
+ const dnthresh_utc = Date.UTC(1899, 11, 31, 0, 0, 0);
+
+ if (date1904) epoch -= 1461 * 24 * 60 * 60 * 1000;
+ else if (v >= base1904) epoch += 24 * 60 * 60 * 1000;
+ return (epoch - dnthresh_utc) / (24 * 60 * 60 * 1000);
+}
+
+export function generate(value: string): any {
+ // 万 单位格式增加!!!
+ const ret = [];
+ let m = null;
+ let ct: any = {};
+ let v: any = value;
+
+ if (value === null) {
+ return null;
+ }
+
+ if (/^-?[0-9]{1,}[,][0-9]{3}(.[0-9]{1,2})?$/.test(value)) {
+ // 表述金额的字符串,如:12,000.00 或者 -12,000.00
+ m = value;
+ v = Number(value.split('.')[0].replace(',', ''));
+ let fa = '#,##0';
+ if (value.split('.')[1]) {
+ fa = '#,##0.';
+ for (let i = 0; i < value.split('.')[1].length; i++) {
+ fa += 0;
+ }
+ }
+ ct = { fa, t: 'n' };
+ } else if (value.toString().substr(0, 1) === "'") {
+ m = value.toString().substr(1);
+ ct = { fa: '@', t: 's' };
+ } else if (value.toString().toUpperCase() === 'TRUE') {
+ m = 'TRUE';
+ ct = { fa: 'General', t: 'b' };
+ v = true;
+ } else if (value.toString().toUpperCase() === 'FALSE') {
+ m = 'FALSE';
+ ct = { fa: 'General', t: 'b' };
+ v = false;
+ } else if (valueIsError(value)) {
+ m = value.toString();
+ ct = { fa: 'General', t: 'e' };
+ } else if (/^\d{6}(18|19|20)?\d{2}(0[1-9]|1[12])(0[1-9]|[12]\d|3[01])\d{3}(\d|X)$/i.test(value)) {
+ m = value.toString();
+ ct = { fa: '@', t: 's' };
+ } else if (
+ isRealNum(value) &&
+ Math.abs(parseFloat(value)) > 0 &&
+ (Math.abs(parseFloat(value)) >= 1e11 || Math.abs(parseFloat(value)) < 1e-9)
+ ) {
+ v = numeral(value).value();
+ const str = v.toExponential();
+ if (str.indexOf('.') > -1) {
+ let strlen = str.split('.')[1].split('e')[0].length;
+ if (strlen > 5) {
+ strlen = 5;
+ }
+
+ ct = { fa: `#0.${new Array(strlen + 1).join('0')}E+00`, t: 'n' };
+ } else {
+ ct = { fa: '#0.E+00', t: 'n' };
+ }
+
+ m = SSF.format(ct.fa, v);
+ } else if (value.toString().indexOf('%') > -1) {
+ const index = value.toString().indexOf('%');
+ const value2 = value.toString().substr(0, index);
+ const value3 = value2.replace(/,/g, '');
+
+ if (index === value.toString().length - 1 && isRealNum(value3)) {
+ if (value2.indexOf('.') > -1) {
+ if (value2.indexOf('.') === value2.lastIndexOf('.')) {
+ const value4 = value2.split('.')[0];
+ const value5 = value2.split('.')[1];
+
+ let len = value5.length;
+ if (len > 9) {
+ len = 9;
+ }
+
+ if (value4.indexOf(',') > -1) {
+ let isThousands = true;
+ const ThousandsArr = value4.split(',');
+
+ for (let i = 1; i < ThousandsArr.length; i++) {
+ if (ThousandsArr[i].length < 3) {
+ isThousands = false;
+ break;
+ }
+ }
+
+ if (isThousands) {
+ ct = {
+ fa: `#,##0.${new Array(len + 1).join('0')}%`,
+ t: 'n',
+ };
+ v = numeral(value).value();
+ m = SSF.format(ct.fa, v);
+ } else {
+ m = value.toString();
+ ct = { fa: '@', t: 's' };
+ }
+ } else {
+ ct = {
+ fa: `0.${new Array(len + 1).join('0')}%`,
+ t: 'n',
+ };
+ v = numeral(value).value();
+ m = SSF.format(ct.fa, v);
+ }
+ } else {
+ m = value.toString();
+ ct = { fa: '@', t: 's' };
+ }
+ } else if (value2.indexOf(',') > -1) {
+ let isThousands = true;
+ const ThousandsArr = value2.split(',');
+
+ for (let i = 1; i < ThousandsArr.length; i++) {
+ if (ThousandsArr[i].length < 3) {
+ isThousands = false;
+ break;
+ }
+ }
+
+ if (isThousands) {
+ ct = { fa: '#,##0%', t: 'n' };
+ v = numeral(value).value();
+ m = SSF.format(ct.fa, v);
+ } else {
+ m = value.toString();
+ ct = { fa: '@', t: 's' };
+ }
+ } else {
+ ct = { fa: '0%', t: 'n' };
+ v = numeral(value).value();
+ m = SSF.format(ct.fa, v);
+ }
+ } else {
+ m = value.toString();
+ ct = { fa: '@', t: 's' };
+ }
+ } else if (value.toString().indexOf('.') > -1) {
+ if (value.toString().indexOf('.') === value.toString().lastIndexOf('.')) {
+ const value1 = value.toString().split('.')[0];
+ const value2 = value.toString().split('.')[1];
+
+ let len = value2.length;
+ if (len > 9) {
+ len = 9;
+ }
+
+ if (value1.indexOf(',') > -1) {
+ let isThousands = true;
+ const ThousandsArr = value1.split(',');
+
+ for (let i = 1; i < ThousandsArr.length; i++) {
+ if (!isRealNum(ThousandsArr[i]) || ThousandsArr[i].length < 3) {
+ isThousands = false;
+ break;
+ }
+ }
+
+ if (isThousands) {
+ ct = { fa: `#,##0.${new Array(len + 1).join('0')}`, t: 'n' };
+ v = numeral(value).value();
+ m = SSF.format(ct.fa, v);
+ } else {
+ m = value.toString();
+ ct = { fa: '@', t: 's' };
+ }
+ } else if (isRealNum(value1) && isRealNum(value2)) {
+ ct = { fa: `0.${new Array(len + 1).join('0')}`, t: 'n' };
+ v = numeral(value).value();
+ m = SSF.format(ct.fa, v);
+ } else {
+ m = value.toString();
+ ct = { fa: '@', t: 's' };
+ }
+ } else {
+ m = value.toString();
+ ct = { fa: '@', t: 's' };
+ }
+ } else if (isRealNum(value)) {
+ m = value.toString();
+ ct = { fa: 'General', t: 'n' };
+ v = parseFloat(value);
+ } else if (
+ isdatetime(value) &&
+ (value.toString().indexOf('.') > -1 || value.toString().indexOf(':') > -1 || value.toString().length < 16)
+ ) {
+ v = datenum_local(parseDate(value.toString().replace(/-/g, '/')));
+
+ if (v.toString().indexOf('.') > -1) {
+ if (value.toString().length > 18) {
+ ct.fa = 'yyyy-MM-dd hh:mm:ss';
+ } else if (value.toString().length > 11) {
+ ct.fa = 'yyyy-MM-dd hh:mm';
+ } else {
+ ct.fa = 'yyyy-MM-dd';
+ }
+ } else {
+ ct.fa = 'yyyy-MM-dd';
+ }
+
+ ct.t = 'd';
+ m = SSF.format(ct.fa, v);
+ } else {
+ m = value;
+ ct.fa = 'General';
+ ct.t = 'g';
+ }
+
+ return [m, ct, v];
+}
+
+const SSF = {
+ format(a: any, b: any) {},
+};
+
+export const update = (a: any, b: any): any => {};
diff --git a/packages/core/src/shared/hash-algorithm.ts b/packages/core/src/shared/hash-algorithm.ts
index 026df55b4b..85a2049587 100644
--- a/packages/core/src/shared/hash-algorithm.ts
+++ b/packages/core/src/shared/hash-algorithm.ts
@@ -1,4 +1,19 @@
-// SDBM hash Algorithm
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 function hashAlgorithm(str: string): number {
let hash = 0;
diff --git a/packages/core/src/shared/index.ts b/packages/core/src/shared/index.ts
index 9c51cc4b23..69dd2b605b 100644
--- a/packages/core/src/shared/index.ts
+++ b/packages/core/src/shared/index.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './array-search';
export * from './blob';
export * from './color/color';
diff --git a/packages/core/src/shared/lifecycle.ts b/packages/core/src/shared/lifecycle.ts
index 5db90ec525..9657754321 100644
--- a/packages/core/src/shared/lifecycle.ts
+++ b/packages/core/src/shared/lifecycle.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IDisposable } from '@wendellhu/redi';
import type { Subscription, SubscriptionLike } from 'rxjs';
import { Subject } from 'rxjs';
diff --git a/packages/core/src/shared/locale.ts b/packages/core/src/shared/locale.ts
index 56c22bb45e..93996dba7f 100644
--- a/packages/core/src/shared/locale.ts
+++ b/packages/core/src/shared/locale.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 interface ILanguagePack {
[key: string]: string | Array<{ name: string; value: string }> | ILanguagePack;
}
diff --git a/packages/core/src/shared/lru/index.ts b/packages/core/src/shared/lru/index.ts
index 749be8df25..d325a08e48 100644
--- a/packages/core/src/shared/lru/index.ts
+++ b/packages/core/src/shared/lru/index.ts
@@ -1,2 +1,18 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './lru-helper';
export * from './lru-map';
diff --git a/packages/core/src/shared/lru/lru-helper.ts b/packages/core/src/shared/lru/lru-helper.ts
index 0d3892a4fb..9076629c8b 100644
--- a/packages/core/src/shared/lru/lru-helper.ts
+++ b/packages/core/src/shared/lru/lru-helper.ts
@@ -1,21 +1,37 @@
-export class LRUHelper {
- static hasLength(array: unknown[], size: number) {
- return array.length === size;
- }
-
- static getValueType(value: any): string {
- return Object.prototype.toString.apply(value);
- }
-
- static isObject<T = object>(value?: any): value is T {
- return this.getValueType(value) === '[object Object]';
- }
-
- static isIterable<T>(value?: any): value is Iterable<T> {
- return value[Symbol.iterator] != null;
- }
-
- static isNumber(value?: any): value is number {
- return this.getValueType(value) === '[object Number]';
- }
-}
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 class LRUHelper {
+ static hasLength(array: unknown[], size: number) {
+ return array.length === size;
+ }
+
+ static getValueType(value: any): string {
+ return Object.prototype.toString.apply(value);
+ }
+
+ static isObject<T = object>(value?: any): value is T {
+ return this.getValueType(value) === '[object Object]';
+ }
+
+ static isIterable<T>(value?: any): value is Iterable<T> {
+ return value[Symbol.iterator] != null;
+ }
+
+ static isNumber(value?: any): value is number {
+ return this.getValueType(value) === '[object Number]';
+ }
+}
diff --git a/packages/core/src/shared/lru/lru-map.ts b/packages/core/src/shared/lru/lru-map.ts
index 250f4b2fd1..e39ea62cc6 100644
--- a/packages/core/src/shared/lru/lru-map.ts
+++ b/packages/core/src/shared/lru/lru-map.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IDisposable } from '@wendellhu/redi';
import { remove } from '../../common/array';
diff --git a/packages/core/src/shared/object-array.ts b/packages/core/src/shared/object-array.ts
index f1da919492..5c5b9b3538 100644
--- a/packages/core/src/shared/object-array.ts
+++ b/packages/core/src/shared/object-array.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IKeyValue, Nullable } from './types';
/**
diff --git a/packages/core/src/shared/object-matrix.ts b/packages/core/src/shared/object-matrix.ts
index f6c7f49c26..e87fa41dc7 100644
--- a/packages/core/src/shared/object-matrix.ts
+++ b/packages/core/src/shared/object-matrix.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IRange } from '../types/interfaces/i-range';
import type { ObjectArrayPrimitiveType, PredicateFunction } from './object-array';
import { ObjectArray } from './object-array';
diff --git a/packages/core/src/shared/permission/index.ts b/packages/core/src/shared/permission/index.ts
index 33dbe4d36f..693b686761 100644
--- a/packages/core/src/shared/permission/index.ts
+++ b/packages/core/src/shared/permission/index.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 PermissionStatus {
INIT = 'init',
FETCHING = 'fetching',
diff --git a/packages/core/src/shared/props-from.ts b/packages/core/src/shared/props-from.ts
index 96278d9fae..e72775062b 100644
--- a/packages/core/src/shared/props-from.ts
+++ b/packages/core/src/shared/props-from.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Observable } from '../observer';
/**
diff --git a/packages/core/src/shared/rectangle.ts b/packages/core/src/shared/rectangle.ts
index 1776cf9b03..712b4ad155 100644
--- a/packages/core/src/shared/rectangle.ts
+++ b/packages/core/src/shared/rectangle.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IRange } from '../types/interfaces/i-range';
import { RANGE_TYPE } from '../types/interfaces/i-range';
import type { Nullable } from './types';
diff --git a/packages/core/src/shared/ref-alias.ts b/packages/core/src/shared/ref-alias.ts
index 4a5ac8723f..ee68d40eb1 100644
--- a/packages/core/src/shared/ref-alias.ts
+++ b/packages/core/src/shared/ref-alias.ts
@@ -1,13 +1,19 @@
/**
- * Enter an object, indexed by the keys in the object
- * example:
- * object a is {a:'a',b:'b',c:'c'}
- * object b is {a:'aa',b:'bb',c:'cc'}
- * object b is {a:'aaa',b:'bbb',c:'ccc'}
- * const model = new RefAlias([a,b,c],['a','b']) // the index is 'a' and 'b'.
- * we can use model.getValue('aa') or model.getValue('bb') get the object b
- * but can't use model.getValue('cc') to get the object b ,because model([a,b,c],['a','b']) is not set 'c' in the second parameter array
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 class RefAlias<T extends Record<string, unknown>, K extends keyof T = keyof T> {
private _values: T[] = [];
private _keys: K[] = [];
diff --git a/packages/core/src/shared/row-col-iter.ts b/packages/core/src/shared/row-col-iter.ts
index eeaa404025..e947ebe642 100644
--- a/packages/core/src/shared/row-col-iter.ts
+++ b/packages/core/src/shared/row-col-iter.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 interface IRowColIter {
forEach(cb: (row: number, col: number) => void): void;
}
diff --git a/packages/core/src/shared/sequence.ts b/packages/core/src/shared/sequence.ts
index f1324fde9f..fa34a879b7 100644
--- a/packages/core/src/shared/sequence.ts
+++ b/packages/core/src/shared/sequence.ts
@@ -1,8 +1,19 @@
/**
- * column subscript letter to number
- * @param a letter
- * @returns
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 function ABCToNumber(a: string) {
if (a == null || a.length === 0) {
return NaN;
diff --git a/packages/core/src/shared/sort-rules.ts b/packages/core/src/shared/sort-rules.ts
index afc30e82b6..74aab494f8 100644
--- a/packages/core/src/shared/sort-rules.ts
+++ b/packages/core/src/shared/sort-rules.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 function sortRules(oa: any, ob: any) {
if (oa.zIndex > ob.zIndex) {
return 1;
diff --git a/packages/core/src/shared/tools.ts b/packages/core/src/shared/tools.ts
index 24fe64d2e5..3a989dc335 100644
--- a/packages/core/src/shared/tools.ts
+++ b/packages/core/src/shared/tools.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { nanoid } from 'nanoid';
import type { ObjectArrayPrimitiveType } from './object-array';
diff --git a/packages/core/src/shared/types.ts b/packages/core/src/shared/types.ts
index 45c7b9dfa2..04a1028be4 100644
--- a/packages/core/src/shared/types.ts
+++ b/packages/core/src/shared/types.ts
@@ -1,6 +1,19 @@
/**
- * Alias type for value that can be null
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 type Nullable<T> = T | null | undefined | void;
/**
diff --git a/packages/core/src/sheets/__tests__/create-core-test-bed.ts b/packages/core/src/sheets/__tests__/create-core-test-bed.ts
index f8f71e0c3c..2a469ef98d 100644
--- a/packages/core/src/sheets/__tests__/create-core-test-bed.ts
+++ b/packages/core/src/sheets/__tests__/create-core-test-bed.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Dependency } from '@wendellhu/redi';
import { Inject, Injector } from '@wendellhu/redi';
diff --git a/packages/core/src/sheets/__tests__/styles.spec.ts b/packages/core/src/sheets/__tests__/styles.spec.ts
index cb2bb8bcda..1a1dcff68c 100644
--- a/packages/core/src/sheets/__tests__/styles.spec.ts
+++ b/packages/core/src/sheets/__tests__/styles.spec.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { describe, expect, it } from 'vitest';
import { Styles } from '../styles';
diff --git a/packages/core/src/sheets/column-manager.ts b/packages/core/src/sheets/column-manager.ts
index 87d8183375..c6904601d9 100644
--- a/packages/core/src/sheets/column-manager.ts
+++ b/packages/core/src/sheets/column-manager.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '../shared';
import { Tools } from '../shared';
import type { ObjectArrayType } from '../shared/object-array';
diff --git a/packages/core/src/sheets/range.ts b/packages/core/src/sheets/range.ts
index 4ae59981bc..863c1443a6 100644
--- a/packages/core/src/sheets/range.ts
+++ b/packages/core/src/sheets/range.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable, ObjectMatrixPrimitiveType } from '../shared';
import { ObjectMatrix, Tools } from '../shared';
import { DEFAULT_STYLES } from '../types/const';
diff --git a/packages/core/src/sheets/reference.ts b/packages/core/src/sheets/reference.ts
index 2dabc5eccc..95f1e37989 100644
--- a/packages/core/src/sheets/reference.ts
+++ b/packages/core/src/sheets/reference.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Tools } from '../shared/tools';
import type { IRange } from '../types/interfaces/i-range';
import { AbsoluteRefType } from '../types/interfaces/i-range';
diff --git a/packages/core/src/sheets/row-manager.ts b/packages/core/src/sheets/row-manager.ts
index d3da60b8b7..4180003d7c 100644
--- a/packages/core/src/sheets/row-manager.ts
+++ b/packages/core/src/sheets/row-manager.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable, ObjectArrayType } from '../shared';
import { ObjectArray, Tools } from '../shared';
import { BooleanNumber } from '../types/enum';
diff --git a/packages/core/src/sheets/styles.ts b/packages/core/src/sheets/styles.ts
index a7c36f9813..1fb8a4d14c 100644
--- a/packages/core/src/sheets/styles.ts
+++ b/packages/core/src/sheets/styles.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IKeyType, Nullable } from '../shared';
import { Tools } from '../shared';
import type { ICellDataForSheetInterceptor, IStyleData } from '../types/interfaces';
diff --git a/packages/core/src/sheets/view-model.ts b/packages/core/src/sheets/view-model.ts
index ff2bb8d677..0f43b47b28 100644
--- a/packages/core/src/sheets/view-model.ts
+++ b/packages/core/src/sheets/view-model.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IDisposable } from '@wendellhu/redi';
import { remove } from '../common/array';
diff --git a/packages/core/src/sheets/workbook.ts b/packages/core/src/sheets/workbook.ts
index 4e4f59e085..653eaaad2a 100644
--- a/packages/core/src/sheets/workbook.ts
+++ b/packages/core/src/sheets/workbook.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { forwardRef, Inject, Injector } from '@wendellhu/redi';
import { Subject } from 'rxjs';
diff --git a/packages/core/src/sheets/worksheet.ts b/packages/core/src/sheets/worksheet.ts
index 31e5eda29c..c49de9b01a 100644
--- a/packages/core/src/sheets/worksheet.ts
+++ b/packages/core/src/sheets/worksheet.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '../shared';
import { ObjectMatrix, Rectangle, Tools } from '../shared';
import { createRowColIter } from '../shared/row-col-iter';
diff --git a/packages/core/src/slides/domain/index.ts b/packages/core/src/slides/domain/index.ts
index 9f0106e5ef..86c1650004 100644
--- a/packages/core/src/slides/domain/index.ts
+++ b/packages/core/src/slides/domain/index.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './slide-model';
diff --git a/packages/core/src/slides/domain/slide-model.ts b/packages/core/src/slides/domain/slide-model.ts
index e434b6e422..b475ed784e 100644
--- a/packages/core/src/slides/domain/slide-model.ts
+++ b/packages/core/src/slides/domain/slide-model.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Tools } from '../../shared';
import { DEFAULT_SLIDE } from '../../types/const';
import type { ISlideData, ISlidePage } from '../../types/interfaces';
diff --git a/packages/core/src/types/const/action-names.ts b/packages/core/src/types/const/action-names.ts
index 33bade9cc2..7f2372800a 100644
--- a/packages/core/src/types/const/action-names.ts
+++ b/packages/core/src/types/const/action-names.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
/**
* Name set of all action
*/
diff --git a/packages/core/src/types/const/const.ts b/packages/core/src/types/const/const.ts
index e5e62490eb..fffb86ab1b 100644
--- a/packages/core/src/types/const/const.ts
+++ b/packages/core/src/types/const/const.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {
BooleanNumber,
HorizontalAlign,
diff --git a/packages/core/src/types/const/doc-action-names.ts b/packages/core/src/types/const/doc-action-names.ts
index b17b9f3d06..68d0950fbf 100644
--- a/packages/core/src/types/const/doc-action-names.ts
+++ b/packages/core/src/types/const/doc-action-names.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 DOC_ACTION_NAMES {
INSERT_ACTION_NAME = 'InsertAction',
DELETE_ACTION_NAME = 'DeleteAction',
diff --git a/packages/core/src/types/const/extension-names.ts b/packages/core/src/types/const/extension-names.ts
index ed5d6c508b..10c9770a06 100644
--- a/packages/core/src/types/const/extension-names.ts
+++ b/packages/core/src/types/const/extension-names.ts
@@ -1,6 +1,19 @@
/**
- * Set of extension names
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 EXTENSION_NAMES {
ARRAY_CONVERTOR = 'ARRAY_CONVERTOR',
MATRIX_CONVERTOR = 'MATRIX_CONVERTOR',
diff --git a/packages/core/src/types/const/index.ts b/packages/core/src/types/const/index.ts
index af2e92dba1..bfc107289b 100644
--- a/packages/core/src/types/const/index.ts
+++ b/packages/core/src/types/const/index.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './action-names';
export * from './const';
export * from './extension-names';
diff --git a/packages/core/src/types/const/theme-color-map.ts b/packages/core/src/types/const/theme-color-map.ts
index 65b5ee2516..9e3bdf37b7 100644
--- a/packages/core/src/types/const/theme-color-map.ts
+++ b/packages/core/src/types/const/theme-color-map.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ThemeColors, ThemeColorType } from '../enum';
interface IThemeColors {
diff --git a/packages/core/src/types/enum/auto-fill-series.ts b/packages/core/src/types/enum/auto-fill-series.ts
index 4a4e46f47e..d7cf8394a0 100644
--- a/packages/core/src/types/enum/auto-fill-series.ts
+++ b/packages/core/src/types/enum/auto-fill-series.ts
@@ -1,11 +1,19 @@
/**
- * Auto-fill series
+ * Copyright 2023 DreamNum Inc.
*
- * @remarks
- * An enumeration of the types of series used to calculate auto-filled values. The manner in which these series affect calculated values differs depending on the type and amount of source data.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
*
- * Reference: {@link https://developers.google.com/apps-script/reference/spreadsheet/auto-fill-series | Google Sheets Enum AutoFillSeries}
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 AutoFillSeries {
/**
* Default. Auto-filling with this setting results in the empty cells in the expanded range being filled with increments of the existing values.
diff --git a/packages/core/src/types/enum/border-style-types.ts b/packages/core/src/types/enum/border-style-types.ts
index 7b2b702e18..bbc7fc97a3 100644
--- a/packages/core/src/types/enum/border-style-types.ts
+++ b/packages/core/src/types/enum/border-style-types.ts
@@ -1,6 +1,19 @@
/**
- * Type set of border style
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 BorderStyleTypes {
NONE,
THIN,
diff --git a/packages/core/src/types/enum/color-type.ts b/packages/core/src/types/enum/color-type.ts
index 03526921ad..45414cd27e 100644
--- a/packages/core/src/types/enum/color-type.ts
+++ b/packages/core/src/types/enum/color-type.ts
@@ -1,6 +1,19 @@
/**
- * Set of color types
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 ColorType {
UNSUPPORTED,
RGB,
diff --git a/packages/core/src/types/enum/common-hide-types.ts b/packages/core/src/types/enum/common-hide-types.ts
index 853029bb9d..912a432aa0 100644
--- a/packages/core/src/types/enum/common-hide-types.ts
+++ b/packages/core/src/types/enum/common-hide-types.ts
@@ -1,6 +1,19 @@
/**
- * Hide type
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 CommonHideTypes {
ON,
OFF,
diff --git a/packages/core/src/types/enum/condition-type.ts b/packages/core/src/types/enum/condition-type.ts
index 687e631b59..d53796d13a 100644
--- a/packages/core/src/types/enum/condition-type.ts
+++ b/packages/core/src/types/enum/condition-type.ts
@@ -1,6 +1,19 @@
/**
- * The type of condition.
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 ConditionType {
CONDITION_TYPE_UNSPECIFIED, // The default value, do not use.
NUMNUMBER_BETWEENR_GREATER, // The cell's value must be greater than the condition's value. Supported by data validation, conditional formatting and filters. Requires a single ConditionValue
diff --git a/packages/core/src/types/enum/copy-paste-type.ts b/packages/core/src/types/enum/copy-paste-type.ts
index 31a4c701dc..6bca2d66b0 100644
--- a/packages/core/src/types/enum/copy-paste-type.ts
+++ b/packages/core/src/types/enum/copy-paste-type.ts
@@ -1,9 +1,19 @@
/**
- * An enumeration of possible special paste types.
+ * Copyright 2023 DreamNum Inc.
*
- * @remarks
- * Reference: https://developers.google.com/apps-script/reference/spreadsheet/copy-paste-type
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 CopyPasteType {
PASTE_NORMAL, // Paste values, formulas, formats and merges.
PASTE_NO_BORDERS, // Paste values, formulas, formats and merges but without borders.
diff --git a/packages/core/src/types/enum/developer-metadata-visibility.ts b/packages/core/src/types/enum/developer-metadata-visibility.ts
index 2033999cfa..e1b0d6dbdd 100644
--- a/packages/core/src/types/enum/developer-metadata-visibility.ts
+++ b/packages/core/src/types/enum/developer-metadata-visibility.ts
@@ -1,6 +1,19 @@
/**
- * An enumeration of the types of developer metadata visibility.
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 DeveloperMetadataVisibility {
DOCUMENT, // Document-visible metadata is accessible from any developer project with access to the document.
PROJECT, // Project-visible metadata is only visible to and accessible by the developer project that created the metadata. Do not use project-visible developer metadata as a security mechanism or to store secrets. It can be exposed to users with view access to the document.
diff --git a/packages/core/src/types/enum/dimension.ts b/packages/core/src/types/enum/dimension.ts
index 911a87097e..1fe1d32fed 100644
--- a/packages/core/src/types/enum/dimension.ts
+++ b/packages/core/src/types/enum/dimension.ts
@@ -1,8 +1,19 @@
/**
- * COLUMNS 0
+ * Copyright 2023 DreamNum Inc.
*
- * ROWS 1
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 Dimension {
/**
* The column (vertical) dimension. move left or right
diff --git a/packages/core/src/types/enum/direction.ts b/packages/core/src/types/enum/direction.ts
index 6bd96e32d3..692270acf5 100644
--- a/packages/core/src/types/enum/direction.ts
+++ b/packages/core/src/types/enum/direction.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 Direction {
UP,
RIGHT,
diff --git a/packages/core/src/types/enum/format-type.ts b/packages/core/src/types/enum/format-type.ts
index 717cec641e..4a87fb2573 100644
--- a/packages/core/src/types/enum/format-type.ts
+++ b/packages/core/src/types/enum/format-type.ts
@@ -1,6 +1,19 @@
/**
- * The number format of the cell.
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 FormatType {
// The number format is not specified and is based on the contents of the cell. Do not explicitly use this.
NUMBER_FORMAT_TYPE_UNSPECIFIED,
diff --git a/packages/core/src/types/enum/group-control-toggle-position.ts b/packages/core/src/types/enum/group-control-toggle-position.ts
index 60776cbd2d..20993a4d6e 100644
--- a/packages/core/src/types/enum/group-control-toggle-position.ts
+++ b/packages/core/src/types/enum/group-control-toggle-position.ts
@@ -1,6 +1,19 @@
/**
- * An enumeration representing the possible positions that a group control toggle can have.
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 GroupControlTogglePosition {
BEFORE,
AFTER,
diff --git a/packages/core/src/types/enum/index.ts b/packages/core/src/types/enum/index.ts
index d21fcd7f28..bc6718cb91 100644
--- a/packages/core/src/types/enum/index.ts
+++ b/packages/core/src/types/enum/index.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './auto-fill-series';
export * from './border-style-types';
export * from './color-type';
diff --git a/packages/core/src/types/enum/interpolation-point-type.ts b/packages/core/src/types/enum/interpolation-point-type.ts
index 20f4a33dcb..c1815489e3 100644
--- a/packages/core/src/types/enum/interpolation-point-type.ts
+++ b/packages/core/src/types/enum/interpolation-point-type.ts
@@ -1,6 +1,19 @@
/**
- * An enumeration representing the interpolation options for calculating a value to be used in a GradientCondition in a ConditionalFormatRule.
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 InterpolationPointType {
INTERPOLATION_POINT_TYPE_UNSPECIFIED, // The default value, do not use.
MIN, // The interpolation point uses the minimum value in the cells over the range of the conditional format.
diff --git a/packages/core/src/types/enum/locale-type.ts b/packages/core/src/types/enum/locale-type.ts
index c8a96b445d..af30e10def 100644
--- a/packages/core/src/types/enum/locale-type.ts
+++ b/packages/core/src/types/enum/locale-type.ts
@@ -1,8 +1,19 @@
/**
- * Internationalized enumeration information.
+ * Copyright 2023 DreamNum Inc.
*
- * Refer to {@link https://github.com/ladjs/i18n-locales | i18n-locales}
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 LocaleType {
EN_US = 'enUS',
ZH_CN = 'zhCN',
diff --git a/packages/core/src/types/enum/place-holder-type.ts b/packages/core/src/types/enum/place-holder-type.ts
index 0651b3bb44..e3b49dcf74 100644
--- a/packages/core/src/types/enum/place-holder-type.ts
+++ b/packages/core/src/types/enum/place-holder-type.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 PlaceholderType {
NONE, //Default value, signifies it is not a placeholder.
BODY, //Body text.
diff --git a/packages/core/src/types/enum/protection-type.ts b/packages/core/src/types/enum/protection-type.ts
index 9279a87482..59c5245c64 100644
--- a/packages/core/src/types/enum/protection-type.ts
+++ b/packages/core/src/types/enum/protection-type.ts
@@ -1,6 +1,19 @@
/**
- * Type of sheet protection
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 ProtectionType {
RANGE,
SHEET,
diff --git a/packages/core/src/types/enum/relative-date.ts b/packages/core/src/types/enum/relative-date.ts
index 6efb811108..0776fb116d 100644
--- a/packages/core/src/types/enum/relative-date.ts
+++ b/packages/core/src/types/enum/relative-date.ts
@@ -1,6 +1,19 @@
/**
- * An enumeration representing the relative date options for calculating a value to be used in date-based BooleanCriteria.
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 RelativeDate {
RELATIVE_DATE_UNSPECIFIED, // Default value, do not use.
PAST_YEAR,
diff --git a/packages/core/src/types/enum/shape-type.ts b/packages/core/src/types/enum/shape-type.ts
index 3d802cb578..0e78c3464f 100644
--- a/packages/core/src/types/enum/shape-type.ts
+++ b/packages/core/src/types/enum/shape-type.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 ShapeType {
TYPE_UNSPECIFIED, //The shape type that is not predefined.
TEXT_BOX, //Text box shape.
diff --git a/packages/core/src/types/enum/sheet-types.ts b/packages/core/src/types/enum/sheet-types.ts
index 9098802b65..b3938049a9 100644
--- a/packages/core/src/types/enum/sheet-types.ts
+++ b/packages/core/src/types/enum/sheet-types.ts
@@ -1,6 +1,19 @@
/**
- * Types of sheet
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 SheetTypes {
GRID,
KANBAN,
diff --git a/packages/core/src/types/enum/text-style.ts b/packages/core/src/types/enum/text-style.ts
index 6006631158..9e179aca01 100644
--- a/packages/core/src/types/enum/text-style.ts
+++ b/packages/core/src/types/enum/text-style.ts
@@ -1,6 +1,19 @@
/**
- * Direction of text
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 TextDirection {
UNSPECIFIED,
LEFT_TO_RIGHT,
diff --git a/packages/core/src/types/enum/theme-color-type.ts b/packages/core/src/types/enum/theme-color-type.ts
index d39d5b493c..1ab8105849 100644
--- a/packages/core/src/types/enum/theme-color-type.ts
+++ b/packages/core/src/types/enum/theme-color-type.ts
@@ -1,26 +1,19 @@
/**
- * Theme color types.
+ * Copyright 2023 DreamNum Inc.
*
- * @remarks
- * SpreadsheetProperties contain a SpreadsheetTheme that defines a mapping of these theme color types to concrete colors.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
*
- * Reference: https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets/other#ThemeColor
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * 17.18.97 ST_ThemeColor (Theme Color)
- *
- * <xsd:enumeration value="dark1"/>
- 2703 <xsd:enumeration value="light1"/>
- 2704 <xsd:enumeration value="dark2"/>
- 2705 <xsd:enumeration value="light2"/>
- 2706 <xsd:enumeration value="accent1"/>
- 2707 <xsd:enumeration value="accent2"/>
- 2708 <xsd:enumeration value="accent3"/>
- 2709 <xsd:enumeration value="accent4"/>
- 2710 <xsd:enumeration value="accent5"/>
- 2711 <xsd:enumeration value="accent6"/>
- 2712 <xsd:enumeration value="hyperlink"/>
- 2713 <xsd:enumeration value="followedHyperlink"/>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 ThemeColorType {
/**
* TEXT
diff --git a/packages/core/src/types/interfaces/i-cell-data.ts b/packages/core/src/types/interfaces/i-cell-data.ts
index 35e95cbbd5..63c109e892 100644
--- a/packages/core/src/types/interfaces/i-cell-data.ts
+++ b/packages/core/src/types/interfaces/i-cell-data.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '../../shared/types';
import { CellValueType } from '../enum/text-style';
import type { IDocumentData } from './i-document-data';
diff --git a/packages/core/src/types/interfaces/i-column-data.ts b/packages/core/src/types/interfaces/i-column-data.ts
index 963e0d3af5..d8b13eeeb1 100644
--- a/packages/core/src/types/interfaces/i-column-data.ts
+++ b/packages/core/src/types/interfaces/i-column-data.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { BooleanNumber } from '../enum';
/**
diff --git a/packages/core/src/types/interfaces/i-document-data.ts b/packages/core/src/types/interfaces/i-document-data.ts
index 33f698ed8d..2913f46791 100644
--- a/packages/core/src/types/interfaces/i-document-data.ts
+++ b/packages/core/src/types/interfaces/i-document-data.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ISize } from '../../services/floating-object/floating-object-interfaces';
import type { BooleanNumber, HorizontalAlign, LocaleType, TextDirection, VerticalAlign, WrapStrategy } from '../enum';
import type { IExtraModelData } from './i-extra-model-data';
diff --git a/packages/core/src/types/interfaces/i-extra-model-data.ts b/packages/core/src/types/interfaces/i-extra-model-data.ts
index d92d238cad..568e3e0384 100644
--- a/packages/core/src/types/interfaces/i-extra-model-data.ts
+++ b/packages/core/src/types/interfaces/i-extra-model-data.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 interface IExtraModelData {
/**
* should start renderLoop Immediately
diff --git a/packages/core/src/types/interfaces/i-freeze.ts b/packages/core/src/types/interfaces/i-freeze.ts
index ee668e8967..fe36b7d8c7 100644
--- a/packages/core/src/types/interfaces/i-freeze.ts
+++ b/packages/core/src/types/interfaces/i-freeze.ts
@@ -1,7 +1,19 @@
/**
- * Ecma Office Open XML Part 1 - Fundamentals And Markup Language Reference
- * 18.3.1.66 pane (View Pane)
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 interface IFreeze {
xSplit: number;
ySplit: number;
diff --git a/packages/core/src/types/interfaces/i-image-properties.ts b/packages/core/src/types/interfaces/i-image-properties.ts
index 65cb8b525f..1e2a5bcc80 100644
--- a/packages/core/src/types/interfaces/i-image-properties.ts
+++ b/packages/core/src/types/interfaces/i-image-properties.ts
@@ -1,6 +1,19 @@
/**
- * Properties of Image
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 interface IImageProperties {
contentUrl: string;
sourceUrl?: string;
diff --git a/packages/core/src/types/interfaces/i-placeholder.ts b/packages/core/src/types/interfaces/i-placeholder.ts
index 152f075a85..d7d8927544 100644
--- a/packages/core/src/types/interfaces/i-placeholder.ts
+++ b/packages/core/src/types/interfaces/i-placeholder.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { PlaceholderType } from '../enum/place-holder-type';
export interface IPlaceholder {
diff --git a/packages/core/src/types/interfaces/i-range.ts b/packages/core/src/types/interfaces/i-range.ts
index 321945ca00..92c4e9a632 100644
--- a/packages/core/src/types/interfaces/i-range.ts
+++ b/packages/core/src/types/interfaces/i-range.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 RANGE_TYPE {
NORMAL,
ROW,
diff --git a/packages/core/src/types/interfaces/i-row-data.ts b/packages/core/src/types/interfaces/i-row-data.ts
index f9eb733acc..3875f331ef 100644
--- a/packages/core/src/types/interfaces/i-row-data.ts
+++ b/packages/core/src/types/interfaces/i-row-data.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { BooleanNumber } from '../enum';
/**
diff --git a/packages/core/src/types/interfaces/i-selection-data.ts b/packages/core/src/types/interfaces/i-selection-data.ts
index 40fccf8989..cc0547b52b 100644
--- a/packages/core/src/types/interfaces/i-selection-data.ts
+++ b/packages/core/src/types/interfaces/i-selection-data.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '../../shared/types';
import type { IRange } from './i-range';
diff --git a/packages/core/src/types/interfaces/i-service-data.ts b/packages/core/src/types/interfaces/i-service-data.ts
index 2aba8887d2..bdc31c0c30 100644
--- a/packages/core/src/types/interfaces/i-service-data.ts
+++ b/packages/core/src/types/interfaces/i-service-data.ts
@@ -1,4 +1,17 @@
/**
- * Properties of service
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 interface IServiceData {}
diff --git a/packages/core/src/types/interfaces/i-shape-properties.ts b/packages/core/src/types/interfaces/i-shape-properties.ts
index 1a503911c7..a96d8c3f18 100644
--- a/packages/core/src/types/interfaces/i-shape-properties.ts
+++ b/packages/core/src/types/interfaces/i-shape-properties.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { BorderStyleTypes } from '../enum/border-style-types';
import type { IColorStyle } from './i-style-data';
diff --git a/packages/core/src/types/interfaces/i-slide-data.ts b/packages/core/src/types/interfaces/i-slide-data.ts
index 46e80c8a49..db8de4ef8b 100644
--- a/packages/core/src/types/interfaces/i-slide-data.ts
+++ b/packages/core/src/types/interfaces/i-slide-data.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ISize, ITransformState } from '../../services/floating-object/floating-object-interfaces';
import type { IKeyType, Nullable } from '../../shared/types';
import type { LocaleType, ThemeColorType } from '../enum';
diff --git a/packages/core/src/types/interfaces/i-style-data.ts b/packages/core/src/types/interfaces/i-style-data.ts
index 49a2d9033a..7b85ed3f79 100644
--- a/packages/core/src/types/interfaces/i-style-data.ts
+++ b/packages/core/src/types/interfaces/i-style-data.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '../../shared/types';
import type { BorderStyleTypes } from '../enum/border-style-types';
import type {
diff --git a/packages/core/src/types/interfaces/i-univer-data.ts b/packages/core/src/types/interfaces/i-univer-data.ts
index e5eeed2cc0..82b796e0eb 100644
--- a/packages/core/src/types/interfaces/i-univer-data.ts
+++ b/packages/core/src/types/interfaces/i-univer-data.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { LogLevel } from '../../services/log/log.service';
import type { IStyleSheet } from '../../services/theme/theme.service';
import type { ILocales } from '../../shared/locale';
diff --git a/packages/core/src/types/interfaces/i-workbook-data.ts b/packages/core/src/types/interfaces/i-workbook-data.ts
index a8f57885f9..2916b36b8c 100644
--- a/packages/core/src/types/interfaces/i-workbook-data.ts
+++ b/packages/core/src/types/interfaces/i-workbook-data.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IKeyType, Nullable } from '../../shared/types';
import type { LocaleType } from '../enum';
import type { IExtraModelData } from './i-extra-model-data';
diff --git a/packages/core/src/types/interfaces/i-worksheet-data.ts b/packages/core/src/types/interfaces/i-worksheet-data.ts
index b92f01b1c6..2439c17620 100644
--- a/packages/core/src/types/interfaces/i-worksheet-data.ts
+++ b/packages/core/src/types/interfaces/i-worksheet-data.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ObjectArrayType } from '../../shared/object-array';
import type { ObjectMatrixPrimitiveType } from '../../shared/object-matrix';
import type { IKeyValue } from '../../shared/types';
diff --git a/packages/core/src/types/interfaces/i-worksheet-order-data.ts b/packages/core/src/types/interfaces/i-worksheet-order-data.ts
index 1a3f5a97bb..d5087d092c 100644
--- a/packages/core/src/types/interfaces/i-worksheet-order-data.ts
+++ b/packages/core/src/types/interfaces/i-worksheet-order-data.ts
@@ -1,4 +1,17 @@
/**
- * Properties of WorksheetOrderData
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 interface IWorksheetOrderData {}
diff --git a/packages/core/src/types/interfaces/index.ts b/packages/core/src/types/interfaces/index.ts
index 3ac9c88cc3..f684f2fecf 100644
--- a/packages/core/src/types/interfaces/index.ts
+++ b/packages/core/src/types/interfaces/index.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './i-cell-data';
export * from './i-column-data';
export * from './i-document-data';
diff --git a/packages/design/src/components/avatar/Avatar.stories.tsx b/packages/design/src/components/avatar/Avatar.stories.tsx
index f39ed188cc..c3d9237c26 100644
--- a/packages/design/src/components/avatar/Avatar.stories.tsx
+++ b/packages/design/src/components/avatar/Avatar.stories.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Meta } from '@storybook/react';
import React from 'react';
diff --git a/packages/design/src/components/avatar/Avatar.tsx b/packages/design/src/components/avatar/Avatar.tsx
index a6001289ad..61ab31d25f 100644
--- a/packages/design/src/components/avatar/Avatar.tsx
+++ b/packages/design/src/components/avatar/Avatar.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 clsx from 'clsx';
import React from 'react';
diff --git a/packages/design/src/components/avatar/__tests__/index.spec.tsx b/packages/design/src/components/avatar/__tests__/index.spec.tsx
index 17c102f817..868ec2ec2a 100644
--- a/packages/design/src/components/avatar/__tests__/index.spec.tsx
+++ b/packages/design/src/components/avatar/__tests__/index.spec.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { render } from '@testing-library/react';
import React from 'react';
import { describe, expect, test } from 'vitest';
diff --git a/packages/design/src/components/avatar/index.ts b/packages/design/src/components/avatar/index.ts
index abd050f373..163a92abab 100644
--- a/packages/design/src/components/avatar/index.ts
+++ b/packages/design/src/components/avatar/index.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Avatar, type IAvatarProps } from './Avatar';
diff --git a/packages/design/src/components/button/Button.stories.tsx b/packages/design/src/components/button/Button.stories.tsx
index 20476b4f17..565a20588f 100644
--- a/packages/design/src/components/button/Button.stories.tsx
+++ b/packages/design/src/components/button/Button.stories.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Meta } from '@storybook/react';
import React from 'react';
diff --git a/packages/design/src/components/button/Button.tsx b/packages/design/src/components/button/Button.tsx
index f28f9b3594..817ccec08d 100644
--- a/packages/design/src/components/button/Button.tsx
+++ b/packages/design/src/components/button/Button.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 clsx from 'clsx';
import React from 'react';
diff --git a/packages/design/src/components/button/__tests__/index.spec.tsx b/packages/design/src/components/button/__tests__/index.spec.tsx
index 5e60896135..605971466e 100644
--- a/packages/design/src/components/button/__tests__/index.spec.tsx
+++ b/packages/design/src/components/button/__tests__/index.spec.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { fireEvent, render } from '@testing-library/react';
import React from 'react';
import { describe, expect, test } from 'vitest';
diff --git a/packages/design/src/components/button/index.ts b/packages/design/src/components/button/index.ts
index 7927cad3ae..eb34c4d70f 100644
--- a/packages/design/src/components/button/index.ts
+++ b/packages/design/src/components/button/index.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Button, type ButtonSize, type ButtonType, type IButtonProps } from './Button';
diff --git a/packages/design/src/components/cascader-list/CascaderList.stories.tsx b/packages/design/src/components/cascader-list/CascaderList.stories.tsx
index 02c11ec817..aacd0cd029 100644
--- a/packages/design/src/components/cascader-list/CascaderList.stories.tsx
+++ b/packages/design/src/components/cascader-list/CascaderList.stories.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Meta } from '@storybook/react';
import React, { useState } from 'react';
diff --git a/packages/design/src/components/cascader-list/CascaderList.tsx b/packages/design/src/components/cascader-list/CascaderList.tsx
index 2a2ea6013d..8fb6143f03 100644
--- a/packages/design/src/components/cascader-list/CascaderList.tsx
+++ b/packages/design/src/components/cascader-list/CascaderList.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { CheckMarkSingle } from '@univerjs/icons';
import clsx from 'clsx';
import React, { useMemo } from 'react';
diff --git a/packages/design/src/components/cascader-list/index.ts b/packages/design/src/components/cascader-list/index.ts
index f72cfca466..49a13fca6b 100644
--- a/packages/design/src/components/cascader-list/index.ts
+++ b/packages/design/src/components/cascader-list/index.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { CascaderList, type ICascaderListProps } from './CascaderList';
diff --git a/packages/design/src/components/checkbox-group/CheckboxGroup.stories.tsx b/packages/design/src/components/checkbox-group/CheckboxGroup.stories.tsx
index 2a124b2fd8..b43cedd08a 100644
--- a/packages/design/src/components/checkbox-group/CheckboxGroup.stories.tsx
+++ b/packages/design/src/components/checkbox-group/CheckboxGroup.stories.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Meta } from '@storybook/react';
import React, { useState } from 'react';
diff --git a/packages/design/src/components/checkbox-group/CheckboxGroup.tsx b/packages/design/src/components/checkbox-group/CheckboxGroup.tsx
index 8929fc56f7..199d1bf576 100644
--- a/packages/design/src/components/checkbox-group/CheckboxGroup.tsx
+++ b/packages/design/src/components/checkbox-group/CheckboxGroup.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 type { ICheckboxProps } from '../checkbox/Checkbox';
diff --git a/packages/design/src/components/checkbox-group/__tests__/index.spec.tsx b/packages/design/src/components/checkbox-group/__tests__/index.spec.tsx
index 793bf093b2..29420dc9df 100644
--- a/packages/design/src/components/checkbox-group/__tests__/index.spec.tsx
+++ b/packages/design/src/components/checkbox-group/__tests__/index.spec.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { fireEvent, render } from '@testing-library/react';
import React, { useState } from 'react';
import { describe, expect, test } from 'vitest';
diff --git a/packages/design/src/components/checkbox-group/index.ts b/packages/design/src/components/checkbox-group/index.ts
index b3ca47c880..d6f08bbbec 100644
--- a/packages/design/src/components/checkbox-group/index.ts
+++ b/packages/design/src/components/checkbox-group/index.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { CheckboxGroup, type ICheckboxGroupProps } from './CheckboxGroup';
diff --git a/packages/design/src/components/checkbox/Checkbox.stories.tsx b/packages/design/src/components/checkbox/Checkbox.stories.tsx
index 16edb57c6b..fd620e3831 100644
--- a/packages/design/src/components/checkbox/Checkbox.stories.tsx
+++ b/packages/design/src/components/checkbox/Checkbox.stories.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Meta } from '@storybook/react';
import React from 'react';
diff --git a/packages/design/src/components/checkbox/Checkbox.tsx b/packages/design/src/components/checkbox/Checkbox.tsx
index 718200aa6c..3c1d5cefc7 100644
--- a/packages/design/src/components/checkbox/Checkbox.tsx
+++ b/packages/design/src/components/checkbox/Checkbox.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 clsx from 'clsx';
import React, { useRef } from 'react';
diff --git a/packages/design/src/components/checkbox/__tests__/index.spec.tsx b/packages/design/src/components/checkbox/__tests__/index.spec.tsx
index ca658f7860..4b23d8c09d 100644
--- a/packages/design/src/components/checkbox/__tests__/index.spec.tsx
+++ b/packages/design/src/components/checkbox/__tests__/index.spec.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { fireEvent, render } from '@testing-library/react';
import React from 'react';
import { describe, expect, test } from 'vitest';
diff --git a/packages/design/src/components/checkbox/index.ts b/packages/design/src/components/checkbox/index.ts
index 75869e31a1..52ae2c7a19 100644
--- a/packages/design/src/components/checkbox/index.ts
+++ b/packages/design/src/components/checkbox/index.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Checkbox, type ICheckboxProps } from './Checkbox';
diff --git a/packages/design/src/components/color-picker/ColorPicker.stories.tsx b/packages/design/src/components/color-picker/ColorPicker.stories.tsx
index d3c63ab7db..ad899e0384 100644
--- a/packages/design/src/components/color-picker/ColorPicker.stories.tsx
+++ b/packages/design/src/components/color-picker/ColorPicker.stories.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Meta } from '@storybook/react';
import React from 'react';
diff --git a/packages/design/src/components/color-picker/ColorPicker.tsx b/packages/design/src/components/color-picker/ColorPicker.tsx
index b3ab7f88fa..235fbc59fc 100644
--- a/packages/design/src/components/color-picker/ColorPicker.tsx
+++ b/packages/design/src/components/color-picker/ColorPicker.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Color } from '@rc-component/color-picker';
import RcColorPicker, { ColorBlock } from '@rc-component/color-picker';
import React from 'react';
diff --git a/packages/design/src/components/color-picker/index.ts b/packages/design/src/components/color-picker/index.ts
index d02029a1e2..8ec7c5ed76 100644
--- a/packages/design/src/components/color-picker/index.ts
+++ b/packages/design/src/components/color-picker/index.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ColorPicker, type IColorPickerProps } from './ColorPicker';
diff --git a/packages/design/src/components/color-picker/presets.ts b/packages/design/src/components/color-picker/presets.ts
index d87ae915df..111441111f 100644
--- a/packages/design/src/components/color-picker/presets.ts
+++ b/packages/design/src/components/color-picker/presets.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 colorPresets = [
'#35322B',
'#505050',
diff --git a/packages/design/src/components/config-provider/ConfigProvider.stories.tsx b/packages/design/src/components/config-provider/ConfigProvider.stories.tsx
index 94baf8665e..fe0a86dd41 100644
--- a/packages/design/src/components/config-provider/ConfigProvider.stories.tsx
+++ b/packages/design/src/components/config-provider/ConfigProvider.stories.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Meta } from '@storybook/react';
import React, { useState } from 'react';
diff --git a/packages/design/src/components/config-provider/ConfigProvider.tsx b/packages/design/src/components/config-provider/ConfigProvider.tsx
index eb829fce6e..89701eb1ff 100644
--- a/packages/design/src/components/config-provider/ConfigProvider.tsx
+++ b/packages/design/src/components/config-provider/ConfigProvider.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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, { createContext } from 'react';
import type { ILocale } from '../../locale';
diff --git a/packages/design/src/components/config-provider/__tests__/index.spec.tsx b/packages/design/src/components/config-provider/__tests__/index.spec.tsx
index 85cc6fdd39..0b1e9fd10c 100644
--- a/packages/design/src/components/config-provider/__tests__/index.spec.tsx
+++ b/packages/design/src/components/config-provider/__tests__/index.spec.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { render } from '@testing-library/react';
import React, { useContext } from 'react';
import { describe, expect, test } from 'vitest';
diff --git a/packages/design/src/components/config-provider/index.ts b/packages/design/src/components/config-provider/index.ts
index c7e8183ec7..ab4ac0edf0 100644
--- a/packages/design/src/components/config-provider/index.ts
+++ b/packages/design/src/components/config-provider/index.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ConfigContext, ConfigProvider, type IConfigProviderProps } from './ConfigProvider';
diff --git a/packages/design/src/components/confirm/Confirm.stories.tsx b/packages/design/src/components/confirm/Confirm.stories.tsx
index 9263c4d44c..4703943c40 100644
--- a/packages/design/src/components/confirm/Confirm.stories.tsx
+++ b/packages/design/src/components/confirm/Confirm.stories.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Meta } from '@storybook/react';
import React, { useState } from 'react';
diff --git a/packages/design/src/components/confirm/Confirm.tsx b/packages/design/src/components/confirm/Confirm.tsx
index 9246817f7b..ba5da4cf13 100644
--- a/packages/design/src/components/confirm/Confirm.tsx
+++ b/packages/design/src/components/confirm/Confirm.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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, { useContext } from 'react';
import { Button } from '../button/Button';
diff --git a/packages/design/src/components/confirm/index.ts b/packages/design/src/components/confirm/index.ts
index 5f1dc8fb98..0dc3ed76a3 100644
--- a/packages/design/src/components/confirm/index.ts
+++ b/packages/design/src/components/confirm/index.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Confirm, type IConfirmProps } from './Confirm';
diff --git a/packages/design/src/components/container/Container.stories.tsx b/packages/design/src/components/container/Container.stories.tsx
index ee53952156..b20ddf664a 100644
--- a/packages/design/src/components/container/Container.stories.tsx
+++ b/packages/design/src/components/container/Container.stories.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Meta } from '@storybook/react';
import React from 'react';
diff --git a/packages/design/src/components/container/Container.tsx b/packages/design/src/components/container/Container.tsx
index ae5e1b3091..4cd21e714e 100644
--- a/packages/design/src/components/container/Container.tsx
+++ b/packages/design/src/components/container/Container.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Ref } from 'react';
import React, { forwardRef } from 'react';
diff --git a/packages/design/src/components/container/__tests__/index.spec.tsx b/packages/design/src/components/container/__tests__/index.spec.tsx
index bc0fe2fe88..4cfcc80415 100644
--- a/packages/design/src/components/container/__tests__/index.spec.tsx
+++ b/packages/design/src/components/container/__tests__/index.spec.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { render } from '@testing-library/react';
import React from 'react';
import { describe, expect, test } from 'vitest';
diff --git a/packages/design/src/components/container/index.ts b/packages/design/src/components/container/index.ts
index 7260f401c4..5572cbfd8c 100644
--- a/packages/design/src/components/container/index.ts
+++ b/packages/design/src/components/container/index.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Container, type IContainerProps } from './Container';
diff --git a/packages/design/src/components/design-token/Palette.stories.tsx b/packages/design/src/components/design-token/Palette.stories.tsx
index 931a86804a..d0d1096753 100644
--- a/packages/design/src/components/design-token/Palette.stories.tsx
+++ b/packages/design/src/components/design-token/Palette.stories.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Meta, StoryObj } from '@storybook/react';
import React from 'react';
diff --git a/packages/design/src/components/design-token/Palette.tsx b/packages/design/src/components/design-token/Palette.tsx
index 0c5060a59a..d331c235cc 100644
--- a/packages/design/src/components/design-token/Palette.tsx
+++ b/packages/design/src/components/design-token/Palette.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 styles from './index.module.less';
diff --git a/packages/design/src/components/dialog/Dialog.stories.tsx b/packages/design/src/components/dialog/Dialog.stories.tsx
index 5692667a88..b0c67e6718 100644
--- a/packages/design/src/components/dialog/Dialog.stories.tsx
+++ b/packages/design/src/components/dialog/Dialog.stories.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Meta } from '@storybook/react';
import { CloseSingle } from '@univerjs/icons';
import React, { useState } from 'react';
diff --git a/packages/design/src/components/dialog/Dialog.tsx b/packages/design/src/components/dialog/Dialog.tsx
index 11ff7dab71..a050033249 100644
--- a/packages/design/src/components/dialog/Dialog.tsx
+++ b/packages/design/src/components/dialog/Dialog.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 RcDialog from 'rc-dialog';
import React, { useContext, useState } from 'react';
import Draggable from 'react-draggable';
diff --git a/packages/design/src/components/dialog/index.ts b/packages/design/src/components/dialog/index.ts
index 3961f88700..43e47752bf 100644
--- a/packages/design/src/components/dialog/index.ts
+++ b/packages/design/src/components/dialog/index.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Dialog, type IDialogProps } from './Dialog';
diff --git a/packages/design/src/components/dropdown/Dropdown.stories.tsx b/packages/design/src/components/dropdown/Dropdown.stories.tsx
index e5431603b7..39cc129c56 100644
--- a/packages/design/src/components/dropdown/Dropdown.stories.tsx
+++ b/packages/design/src/components/dropdown/Dropdown.stories.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Meta } from '@storybook/react';
import React from 'react';
diff --git a/packages/design/src/components/dropdown/Dropdown.tsx b/packages/design/src/components/dropdown/Dropdown.tsx
index 79c5dd4bb2..696d4ab650 100644
--- a/packages/design/src/components/dropdown/Dropdown.tsx
+++ b/packages/design/src/components/dropdown/Dropdown.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ActionType, AlignType } from '@rc-component/trigger';
import RcDropdown from 'rc-dropdown';
import type Placements from 'rc-dropdown/lib/placements';
diff --git a/packages/design/src/components/dropdown/index.ts b/packages/design/src/components/dropdown/index.ts
index cc7572d90a..28005a3518 100644
--- a/packages/design/src/components/dropdown/index.ts
+++ b/packages/design/src/components/dropdown/index.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Dropdown, type IDropdownProps } from './Dropdown';
diff --git a/packages/design/src/components/icon/Icon.stories.tsx b/packages/design/src/components/icon/Icon.stories.tsx
index ab1e0ffbfa..cadfa35eab 100644
--- a/packages/design/src/components/icon/Icon.stories.tsx
+++ b/packages/design/src/components/icon/Icon.stories.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Meta } from '@storybook/react';
import React from 'react';
diff --git a/packages/design/src/components/input-number/InputNumber.stories.tsx b/packages/design/src/components/input-number/InputNumber.stories.tsx
index 413213e065..659a7ff9e5 100644
--- a/packages/design/src/components/input-number/InputNumber.stories.tsx
+++ b/packages/design/src/components/input-number/InputNumber.stories.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Meta } from '@storybook/react';
import React from 'react';
diff --git a/packages/design/src/components/input-number/InputNumber.tsx b/packages/design/src/components/input-number/InputNumber.tsx
index fe3cfba29b..62f27c253e 100644
--- a/packages/design/src/components/input-number/InputNumber.tsx
+++ b/packages/design/src/components/input-number/InputNumber.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 RcInputNumber from 'rc-input-number';
import React from 'react';
diff --git a/packages/design/src/components/input-number/index.ts b/packages/design/src/components/input-number/index.ts
index 1b47c651c8..2092a3cc09 100644
--- a/packages/design/src/components/input-number/index.ts
+++ b/packages/design/src/components/input-number/index.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { type IInputNumberProps, InputNumber } from './InputNumber';
diff --git a/packages/design/src/components/input/Input.stories.tsx b/packages/design/src/components/input/Input.stories.tsx
index 360b448618..54bd8fdbba 100644
--- a/packages/design/src/components/input/Input.stories.tsx
+++ b/packages/design/src/components/input/Input.stories.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Meta } from '@storybook/react';
import React from 'react';
diff --git a/packages/design/src/components/input/Input.tsx b/packages/design/src/components/input/Input.tsx
index 52a1752a58..52f3d212ca 100644
--- a/packages/design/src/components/input/Input.tsx
+++ b/packages/design/src/components/input/Input.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { CloseSingle } from '@univerjs/icons';
import clsx from 'clsx';
import RcInput from 'rc-input';
diff --git a/packages/design/src/components/input/index.ts b/packages/design/src/components/input/index.ts
index 2dfe07dbd7..05e9f8b83f 100644
--- a/packages/design/src/components/input/index.ts
+++ b/packages/design/src/components/input/index.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { type IInputProps, Input } from './Input';
diff --git a/packages/design/src/components/menu/Menu.tsx b/packages/design/src/components/menu/Menu.tsx
index 7e89fb1010..5c2e67b21d 100644
--- a/packages/design/src/components/menu/Menu.tsx
+++ b/packages/design/src/components/menu/Menu.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { MenuItemGroupProps, MenuItemProps, MenuProps, SubMenuProps } from 'rc-menu';
import RcMenu, { MenuItem as RcMenuItem, MenuItemGroup as RcMenuItemGroup, SubMenu as RcSubMenu } from 'rc-menu';
import React, { useContext } from 'react';
diff --git a/packages/design/src/components/menu/index.ts b/packages/design/src/components/menu/index.ts
index e2e6e9c79e..e6c31ea916 100644
--- a/packages/design/src/components/menu/index.ts
+++ b/packages/design/src/components/menu/index.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Menu, MenuItem, MenuItemGroup, SubMenu } from './Menu';
diff --git a/packages/design/src/components/message/Message.stories.tsx b/packages/design/src/components/message/Message.stories.tsx
index cc9f99a9e8..48026f2747 100644
--- a/packages/design/src/components/message/Message.stories.tsx
+++ b/packages/design/src/components/message/Message.stories.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Meta } from '@storybook/react';
import React from 'react';
diff --git a/packages/design/src/components/message/Message.tsx b/packages/design/src/components/message/Message.tsx
index 246740d7b6..a20a3be835 100644
--- a/packages/design/src/components/message/Message.tsx
+++ b/packages/design/src/components/message/Message.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ErrorSingle, SuccessSingle, WarningSingle } from '@univerjs/icons';
import { render } from 'rc-util/lib/React/render';
import React from 'react';
diff --git a/packages/design/src/components/message/__tests__/index.spec.tsx b/packages/design/src/components/message/__tests__/index.spec.tsx
index e8cfac923c..3ec30ee131 100644
--- a/packages/design/src/components/message/__tests__/index.spec.tsx
+++ b/packages/design/src/components/message/__tests__/index.spec.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { fireEvent, render, screen } from '@testing-library/react';
import React from 'react';
import { describe, expect, test } from 'vitest';
diff --git a/packages/design/src/components/message/index.ts b/packages/design/src/components/message/index.ts
index 7cf89fb793..f7c8caaa0e 100644
--- a/packages/design/src/components/message/index.ts
+++ b/packages/design/src/components/message/index.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { type IMessageMethodOptions, type IMessageProps, Message, MessageType } from './Message';
diff --git a/packages/design/src/components/popup/Popup.stories.tsx b/packages/design/src/components/popup/Popup.stories.tsx
index 84fad2e35f..a65e007162 100644
--- a/packages/design/src/components/popup/Popup.stories.tsx
+++ b/packages/design/src/components/popup/Popup.stories.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Meta } from '@storybook/react';
import React, { useState } from 'react';
diff --git a/packages/design/src/components/popup/Popup.tsx b/packages/design/src/components/popup/Popup.tsx
index cd82863713..d878efd16e 100644
--- a/packages/design/src/components/popup/Popup.tsx
+++ b/packages/design/src/components/popup/Popup.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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, useRef, useState } from 'react';
import { CSSTransition } from 'react-transition-group';
diff --git a/packages/design/src/components/popup/index.ts b/packages/design/src/components/popup/index.ts
index 0a9139539e..9b1a5e74de 100644
--- a/packages/design/src/components/popup/index.ts
+++ b/packages/design/src/components/popup/index.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { type IPopupProps, Popup } from './Popup';
diff --git a/packages/design/src/components/radio-group/RadioGroup.stories.tsx b/packages/design/src/components/radio-group/RadioGroup.stories.tsx
index c484a2c386..1e43410cd7 100644
--- a/packages/design/src/components/radio-group/RadioGroup.stories.tsx
+++ b/packages/design/src/components/radio-group/RadioGroup.stories.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Meta } from '@storybook/react';
import React, { useState } from 'react';
diff --git a/packages/design/src/components/radio-group/RadioGroup.tsx b/packages/design/src/components/radio-group/RadioGroup.tsx
index b57d661ce8..7dd80cee39 100644
--- a/packages/design/src/components/radio-group/RadioGroup.tsx
+++ b/packages/design/src/components/radio-group/RadioGroup.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 type { IRadioProps } from '../radio/Radio';
diff --git a/packages/design/src/components/radio-group/__tests__/index.spec.tsx b/packages/design/src/components/radio-group/__tests__/index.spec.tsx
index c340417411..8496495604 100644
--- a/packages/design/src/components/radio-group/__tests__/index.spec.tsx
+++ b/packages/design/src/components/radio-group/__tests__/index.spec.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { fireEvent, render, screen } from '@testing-library/react';
import React from 'react';
import { describe, expect, test } from 'vitest';
diff --git a/packages/design/src/components/radio-group/index.ts b/packages/design/src/components/radio-group/index.ts
index 93c3f8eff7..8c565f5ec0 100644
--- a/packages/design/src/components/radio-group/index.ts
+++ b/packages/design/src/components/radio-group/index.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { type IRadioGroupProps, RadioGroup } from './RadioGroup';
diff --git a/packages/design/src/components/radio/Radio.stories.tsx b/packages/design/src/components/radio/Radio.stories.tsx
index aa87badc0b..51cdb86e82 100644
--- a/packages/design/src/components/radio/Radio.stories.tsx
+++ b/packages/design/src/components/radio/Radio.stories.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Meta } from '@storybook/react';
import React from 'react';
diff --git a/packages/design/src/components/radio/Radio.tsx b/packages/design/src/components/radio/Radio.tsx
index c501b8305d..d039999aca 100644
--- a/packages/design/src/components/radio/Radio.tsx
+++ b/packages/design/src/components/radio/Radio.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 clsx from 'clsx';
import React, { useRef } from 'react';
diff --git a/packages/design/src/components/radio/__tests__/index.spec.tsx b/packages/design/src/components/radio/__tests__/index.spec.tsx
index c4c6c7cc35..c178bc958d 100644
--- a/packages/design/src/components/radio/__tests__/index.spec.tsx
+++ b/packages/design/src/components/radio/__tests__/index.spec.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { fireEvent, render } from '@testing-library/react';
import React from 'react';
import { describe, expect, test } from 'vitest';
diff --git a/packages/design/src/components/radio/index.ts b/packages/design/src/components/radio/index.ts
index 36f83cc7fc..525217bb23 100644
--- a/packages/design/src/components/radio/index.ts
+++ b/packages/design/src/components/radio/index.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { type IRadioProps, Radio } from './Radio';
diff --git a/packages/design/src/components/scrollbar/Scrollbar.stories.tsx b/packages/design/src/components/scrollbar/Scrollbar.stories.tsx
index c1f7d9df5c..1fc26bd537 100644
--- a/packages/design/src/components/scrollbar/Scrollbar.stories.tsx
+++ b/packages/design/src/components/scrollbar/Scrollbar.stories.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Meta, StoryObj } from '@storybook/react';
import React from 'react';
diff --git a/packages/design/src/components/scrollbar/Scrollbar.tsx b/packages/design/src/components/scrollbar/Scrollbar.tsx
index 211a48301b..4fb9fb5e21 100644
--- a/packages/design/src/components/scrollbar/Scrollbar.tsx
+++ b/packages/design/src/components/scrollbar/Scrollbar.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
import React, { useCallback, useEffect, useRef, useState } from 'react';
import styles from './index.module.less';
diff --git a/packages/design/src/components/scrollbar/__tests__/index.spec.tsx b/packages/design/src/components/scrollbar/__tests__/index.spec.tsx
index 3cfcc4ece6..5f22cfefb0 100644
--- a/packages/design/src/components/scrollbar/__tests__/index.spec.tsx
+++ b/packages/design/src/components/scrollbar/__tests__/index.spec.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { render } from '@testing-library/react';
import React from 'react';
import { describe, expect, test } from 'vitest';
diff --git a/packages/design/src/components/scrollbar/index.ts b/packages/design/src/components/scrollbar/index.ts
index 69c1b41f5d..a61ead3a97 100644
--- a/packages/design/src/components/scrollbar/index.ts
+++ b/packages/design/src/components/scrollbar/index.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { type IScrollbarProps, Scrollbar } from './Scrollbar';
diff --git a/packages/design/src/components/select-list/SelectList.stories.tsx b/packages/design/src/components/select-list/SelectList.stories.tsx
index 7519133315..714f594d11 100644
--- a/packages/design/src/components/select-list/SelectList.stories.tsx
+++ b/packages/design/src/components/select-list/SelectList.stories.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Meta } from '@storybook/react';
import React, { useState } from 'react';
diff --git a/packages/design/src/components/select-list/SelectList.tsx b/packages/design/src/components/select-list/SelectList.tsx
index ac130f9bc2..9d0064df42 100644
--- a/packages/design/src/components/select-list/SelectList.tsx
+++ b/packages/design/src/components/select-list/SelectList.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { CheckMarkSingle } from '@univerjs/icons';
import clsx from 'clsx';
import React from 'react';
diff --git a/packages/design/src/components/select-list/index.ts b/packages/design/src/components/select-list/index.ts
index e68e845315..75dd55e888 100644
--- a/packages/design/src/components/select-list/index.ts
+++ b/packages/design/src/components/select-list/index.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { type ISelectListProps, SelectList } from './SelectList';
diff --git a/packages/design/src/components/select/Select.stories.tsx b/packages/design/src/components/select/Select.stories.tsx
index c057681e64..a34c630cf2 100644
--- a/packages/design/src/components/select/Select.stories.tsx
+++ b/packages/design/src/components/select/Select.stories.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Meta } from '@storybook/react';
import React, { useState } from 'react';
diff --git a/packages/design/src/components/select/Select.tsx b/packages/design/src/components/select/Select.tsx
index 88b0046067..e179c6724d 100644
--- a/packages/design/src/components/select/Select.tsx
+++ b/packages/design/src/components/select/Select.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { MoreDownSingle } from '@univerjs/icons';
import RcSelect from 'rc-select';
import React, { useContext } from 'react';
diff --git a/packages/design/src/components/select/index.ts b/packages/design/src/components/select/index.ts
index 7639739e75..efd9d83889 100644
--- a/packages/design/src/components/select/index.ts
+++ b/packages/design/src/components/select/index.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { type ISelectProps, Select } from './Select';
diff --git a/packages/design/src/components/slider/Slider.stories.tsx b/packages/design/src/components/slider/Slider.stories.tsx
index a9a1e8da77..d9093214a3 100644
--- a/packages/design/src/components/slider/Slider.stories.tsx
+++ b/packages/design/src/components/slider/Slider.stories.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Meta } from '@storybook/react';
import React, { useState } from 'react';
diff --git a/packages/design/src/components/slider/Slider.tsx b/packages/design/src/components/slider/Slider.tsx
index 43b9145960..b0f1acd1a6 100644
--- a/packages/design/src/components/slider/Slider.tsx
+++ b/packages/design/src/components/slider/Slider.tsx
@@ -1,4 +1,19 @@
-/* eslint-disable no-magic-numbers */
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IncreaseSingle, ReduceSingle } from '@univerjs/icons';
import clsx from 'clsx';
import React, { useContext, useMemo, useRef } from 'react';
diff --git a/packages/design/src/components/slider/__test__/index.spec.tsx b/packages/design/src/components/slider/__test__/index.spec.tsx
index 669500ae93..4089b0caf7 100644
--- a/packages/design/src/components/slider/__test__/index.spec.tsx
+++ b/packages/design/src/components/slider/__test__/index.spec.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { fireEvent, render, screen } from '@testing-library/react';
import React, { useState } from 'react';
import { describe, expect, test } from 'vitest';
diff --git a/packages/design/src/components/slider/index.ts b/packages/design/src/components/slider/index.ts
index df8f95d723..7dbba938e9 100644
--- a/packages/design/src/components/slider/index.ts
+++ b/packages/design/src/components/slider/index.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { type ISliderProps, Slider } from './Slider';
diff --git a/packages/design/src/components/tooltip/Tooltip.stories.tsx b/packages/design/src/components/tooltip/Tooltip.stories.tsx
index 71501580d6..615d10fa74 100644
--- a/packages/design/src/components/tooltip/Tooltip.stories.tsx
+++ b/packages/design/src/components/tooltip/Tooltip.stories.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Meta } from '@storybook/react';
import React from 'react';
diff --git a/packages/design/src/components/tooltip/Tooltip.tsx b/packages/design/src/components/tooltip/Tooltip.tsx
index a468bcb6c0..2e89fe3878 100644
--- a/packages/design/src/components/tooltip/Tooltip.tsx
+++ b/packages/design/src/components/tooltip/Tooltip.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 RcTooltip from 'rc-tooltip';
import React, { useContext } from 'react';
diff --git a/packages/design/src/components/tooltip/index.ts b/packages/design/src/components/tooltip/index.ts
index e2695d16c5..c21d6cfaaf 100644
--- a/packages/design/src/components/tooltip/index.ts
+++ b/packages/design/src/components/tooltip/index.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { type ITooltipProps, Tooltip } from './Tooltip';
diff --git a/packages/design/src/components/tooltip/placements.tsx b/packages/design/src/components/tooltip/placements.tsx
index dc4f2e7891..d354aa8d44 100644
--- a/packages/design/src/components/tooltip/placements.tsx
+++ b/packages/design/src/components/tooltip/placements.tsx
@@ -1,4 +1,19 @@
-/* eslint-disable no-magic-numbers */
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { BuildInPlacements } from '@rc-component/trigger';
const autoAdjustOverflowTopBottom = {
diff --git a/packages/design/src/index.ts b/packages/design/src/index.ts
index 9f1e9ccdfb..2829ae5098 100644
--- a/packages/design/src/index.ts
+++ b/packages/design/src/index.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Avatar, type IAvatarProps } from './components/avatar';
export { Button, type ButtonSize, type ButtonType, type IButtonProps } from './components/button';
export { CascaderList, type ICascaderListProps } from './components/cascader-list';
diff --git a/packages/design/src/locale/en-US.ts b/packages/design/src/locale/en-US.ts
index cb0733baa8..6cb060a142 100644
--- a/packages/design/src/locale/en-US.ts
+++ b/packages/design/src/locale/en-US.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ILocale } from './interface';
const locale: ILocale = {
diff --git a/packages/design/src/locale/index.ts b/packages/design/src/locale/index.ts
index c370faeafb..d4d2325fb5 100644
--- a/packages/design/src/locale/index.ts
+++ b/packages/design/src/locale/index.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 enUS } from './en-US';
export { type ILocale } from './interface';
export { default as zhCN } from './zh-CN';
diff --git a/packages/design/src/locale/interface.ts b/packages/design/src/locale/interface.ts
index 1b2cbb8d51..b2f9b245a5 100644
--- a/packages/design/src/locale/interface.ts
+++ b/packages/design/src/locale/interface.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 interface ILocale {
design: {
Confirm: Record<string, any>;
diff --git a/packages/design/src/locale/zh-CN.ts b/packages/design/src/locale/zh-CN.ts
index b413b37308..fc08e1bf81 100644
--- a/packages/design/src/locale/zh-CN.ts
+++ b/packages/design/src/locale/zh-CN.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ILocale } from './interface';
const locale: ILocale = {
diff --git a/packages/design/src/themes/index.ts b/packages/design/src/themes/index.ts
index 245b0705b6..c025ba6ec3 100644
--- a/packages/design/src/themes/index.ts
+++ b/packages/design/src/themes/index.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 defaultTheme } from './default.module.less';
export { default as greenTheme } from './green.module.less';
export { themeInstance } from './theme';
diff --git a/packages/design/src/themes/theme.ts b/packages/design/src/themes/theme.ts
index 546a52242d..69cff8280b 100644
--- a/packages/design/src/themes/theme.ts
+++ b/packages/design/src/themes/theme.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 styles from './theme-root.module.less';
function convertToDashCase(input: string): string {
diff --git a/packages/docs-ui/src/basics/const/default-univer-doc-config.ts b/packages/docs-ui/src/basics/const/default-univer-doc-config.ts
index 25f8ec018d..5c81d5edaa 100644
--- a/packages/docs-ui/src/basics/const/default-univer-doc-config.ts
+++ b/packages/docs-ui/src/basics/const/default-univer-doc-config.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 DefaultToolbarConfig = {
undo: true,
redo: true, // Undo redo
diff --git a/packages/docs-ui/src/basics/const/index.ts b/packages/docs-ui/src/basics/const/index.ts
index a46d945f20..9180d1e921 100644
--- a/packages/docs-ui/src/basics/const/index.ts
+++ b/packages/docs-ui/src/basics/const/index.ts
@@ -1,2 +1,18 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './default-univer-doc-config';
export * from './plugin-name';
diff --git a/packages/docs-ui/src/basics/const/plugin-name.ts b/packages/docs-ui/src/basics/const/plugin-name.ts
index 858c78a746..36a18f7911 100644
--- a/packages/docs-ui/src/basics/const/plugin-name.ts
+++ b/packages/docs-ui/src/basics/const/plugin-name.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 DOC_UI_PLUGIN_NAME = 'DocUI';
diff --git a/packages/docs-ui/src/basics/index.ts b/packages/docs-ui/src/basics/index.ts
index c6f20c3e48..9c53c04e2b 100644
--- a/packages/docs-ui/src/basics/index.ts
+++ b/packages/docs-ui/src/basics/index.ts
@@ -1,2 +1,18 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './const';
export * from './interfaces';
diff --git a/packages/docs-ui/src/basics/interfaces/component-config/i-doc-ui-plugin-config.ts b/packages/docs-ui/src/basics/interfaces/component-config/i-doc-ui-plugin-config.ts
index 091200b71f..19f15c8890 100644
--- a/packages/docs-ui/src/basics/interfaces/component-config/i-doc-ui-plugin-config.ts
+++ b/packages/docs-ui/src/basics/interfaces/component-config/i-doc-ui-plugin-config.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 interface ILayout {
docContainerConfig?: DocContainerConfig;
toolbarConfig?: DocToolbarConfig;
diff --git a/packages/docs-ui/src/basics/interfaces/component-config/index.ts b/packages/docs-ui/src/basics/interfaces/component-config/index.ts
index 975042bb23..85aa9f789c 100644
--- a/packages/docs-ui/src/basics/interfaces/component-config/index.ts
+++ b/packages/docs-ui/src/basics/interfaces/component-config/index.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './i-doc-ui-plugin-config';
diff --git a/packages/docs-ui/src/basics/interfaces/index.ts b/packages/docs-ui/src/basics/interfaces/index.ts
index 79ccf90bfd..c1acc2d0d6 100644
--- a/packages/docs-ui/src/basics/interfaces/index.ts
+++ b/packages/docs-ui/src/basics/interfaces/index.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './component-config';
diff --git a/packages/docs-ui/src/controllers/app-ui-controller.ts b/packages/docs-ui/src/controllers/app-ui-controller.ts
index b704ce8ca5..b54dcf32fd 100644
--- a/packages/docs-ui/src/controllers/app-ui-controller.ts
+++ b/packages/docs-ui/src/controllers/app-ui-controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { LocaleType } from '@univerjs/core';
import { LocaleService } from '@univerjs/core';
import { Inject, Injector } from '@wendellhu/redi';
diff --git a/packages/docs-ui/src/controllers/doc-container-ui-controller.ts b/packages/docs-ui/src/controllers/doc-container-ui-controller.ts
index bde7a87483..1cbbe6510d 100644
--- a/packages/docs-ui/src/controllers/doc-container-ui-controller.ts
+++ b/packages/docs-ui/src/controllers/doc-container-ui-controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { LocaleType } from '@univerjs/core';
import { LocaleService } from '@univerjs/core';
import { Inject, Injector } from '@wendellhu/redi';
diff --git a/packages/docs-ui/src/controllers/doc-ui.controller.ts b/packages/docs-ui/src/controllers/doc-ui.controller.ts
index b3c59944c3..facd9c27b2 100644
--- a/packages/docs-ui/src/controllers/doc-ui.controller.ts
+++ b/packages/docs-ui/src/controllers/doc-ui.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Disposable, ICommandService, LifecycleStages, OnLifecycle } from '@univerjs/core';
import type { IDesktopUIController, IMenuItemFactory } from '@univerjs/ui';
import { ComponentManager, IMenuService, IShortcutService, IUIController } from '@univerjs/ui';
diff --git a/packages/docs-ui/src/controllers/index.ts b/packages/docs-ui/src/controllers/index.ts
index 03f063cecd..8e00c7cba3 100644
--- a/packages/docs-ui/src/controllers/index.ts
+++ b/packages/docs-ui/src/controllers/index.ts
@@ -1,2 +1,18 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './app-ui-controller';
export * from './doc-container-ui-controller';
diff --git a/packages/docs-ui/src/controllers/menu/menu.ts b/packages/docs-ui/src/controllers/menu/menu.ts
index f066dc465c..b47c456608 100644
--- a/packages/docs-ui/src/controllers/menu/menu.ts
+++ b/packages/docs-ui/src/controllers/menu/menu.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {
SetInlineFormatBoldCommand,
SetInlineFormatItalicCommand,
diff --git a/packages/docs-ui/src/docs-ui-plugin.ts b/packages/docs-ui/src/docs-ui-plugin.ts
index 45474efca5..13c26ee699 100644
--- a/packages/docs-ui/src/docs-ui-plugin.ts
+++ b/packages/docs-ui/src/docs-ui-plugin.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {
DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY,
DOCS_NORMAL_EDITOR_UNIT_ID_KEY,
diff --git a/packages/docs-ui/src/index.ts b/packages/docs-ui/src/index.ts
index bfa1dd2dd2..55dad332da 100644
--- a/packages/docs-ui/src/index.ts
+++ b/packages/docs-ui/src/index.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './basics';
export * from './docs-ui-plugin';
export { enUS, zhCN } from './locale';
diff --git a/packages/docs-ui/src/locale/en-US.ts b/packages/docs-ui/src/locale/en-US.ts
index ff8b4c5632..ef2cf5cf67 100644
--- a/packages/docs-ui/src/locale/en-US.ts
+++ b/packages/docs-ui/src/locale/en-US.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {};
diff --git a/packages/docs-ui/src/locale/index.ts b/packages/docs-ui/src/locale/index.ts
index b0b1d48d5d..ac8ca08af1 100644
--- a/packages/docs-ui/src/locale/index.ts
+++ b/packages/docs-ui/src/locale/index.ts
@@ -1,2 +1,18 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 enUS } from './en-US';
export { default as zhCN } from './zh-CN';
diff --git a/packages/docs-ui/src/locale/zh-CN.ts b/packages/docs-ui/src/locale/zh-CN.ts
index ff8b4c5632..ef2cf5cf67 100644
--- a/packages/docs-ui/src/locale/zh-CN.ts
+++ b/packages/docs-ui/src/locale/zh-CN.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {};
diff --git a/packages/docs-ui/src/types/index.d.ts b/packages/docs-ui/src/types/index.d.ts
index 39f7ce12ac..7e60b541d1 100644
--- a/packages/docs-ui/src/types/index.d.ts
+++ b/packages/docs-ui/src/types/index.d.ts
@@ -1,2 +1,18 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from '../index';
declare module '@univerjs/docs-ui' {}
diff --git a/packages/docs-ui/src/views/doc-container/DocContainer.tsx b/packages/docs-ui/src/views/doc-container/DocContainer.tsx
index 4e1d9293eb..16c3e02e22 100644
--- a/packages/docs-ui/src/views/doc-container/DocContainer.tsx
+++ b/packages/docs-ui/src/views/doc-container/DocContainer.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { BaseComponentProps } from '@univerjs/ui';
import React, { Component, createRef } from 'react';
diff --git a/packages/docs-ui/src/views/doc-container/index.ts b/packages/docs-ui/src/views/doc-container/index.ts
index 2876a0a179..5861916e31 100644
--- a/packages/docs-ui/src/views/doc-container/index.ts
+++ b/packages/docs-ui/src/views/doc-container/index.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './DocContainer';
diff --git a/packages/docs/src/basics/component-tools.ts b/packages/docs/src/basics/component-tools.ts
index 596f28e174..718421587c 100644
--- a/packages/docs/src/basics/component-tools.ts
+++ b/packages/docs/src/basics/component-tools.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IUniverInstanceService, Nullable } from '@univerjs/core';
import type { Documents, Engine, IRenderManagerService, Scene } from '@univerjs/engine-render';
diff --git a/packages/docs/src/basics/demo-data.ts b/packages/docs/src/basics/demo-data.ts
index 4cdf56ceaf..f684e9295f 100644
--- a/packages/docs/src/basics/demo-data.ts
+++ b/packages/docs/src/basics/demo-data.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IDocumentData } from '@univerjs/core';
import {
BaselineOffset,
diff --git a/packages/docs/src/basics/docs-view-key.ts b/packages/docs/src/basics/docs-view-key.ts
index 6ed6b981c1..09906f8c2e 100644
--- a/packages/docs/src/basics/docs-view-key.ts
+++ b/packages/docs/src/basics/docs-view-key.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 DOCS_VIEW_KEY {
MAIN = '__Document_Render_Main__',
}
diff --git a/packages/docs/src/basics/retain-delete-params.ts b/packages/docs/src/basics/retain-delete-params.ts
index 683f100c42..f4910b8a51 100644
--- a/packages/docs/src/basics/retain-delete-params.ts
+++ b/packages/docs/src/basics/retain-delete-params.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IDeleteMutationParams, IRetainMutationParams, ITextRange } from '@univerjs/core';
export function getRetainAndDeleteFromReplace(
diff --git a/packages/docs/src/commands/commands/__tests__/clipboard.command.spec.ts b/packages/docs/src/commands/commands/__tests__/clipboard.command.spec.ts
index e738111819..f4df7cf9ae 100644
--- a/packages/docs/src/commands/commands/__tests__/clipboard.command.spec.ts
+++ b/packages/docs/src/commands/commands/__tests__/clipboard.command.spec.ts
@@ -1,4 +1,18 @@
-/* eslint-disable no-magic-numbers */
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand, IDocumentData, IStyleBase, Univer } from '@univerjs/core';
import { BooleanNumber, ICommandService, IUniverInstanceService, UndoCommand } from '@univerjs/core';
diff --git a/packages/docs/src/commands/commands/__tests__/core-editing.command.spec.ts b/packages/docs/src/commands/commands/__tests__/core-editing.command.spec.ts
index 7bd4f77435..a46a600cb6 100644
--- a/packages/docs/src/commands/commands/__tests__/core-editing.command.spec.ts
+++ b/packages/docs/src/commands/commands/__tests__/core-editing.command.spec.ts
@@ -1,4 +1,18 @@
-/* eslint-disable no-magic-numbers */
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Univer } from '@univerjs/core';
import { ICommandService } from '@univerjs/core';
diff --git a/packages/docs/src/commands/commands/__tests__/create-command-test-bed.ts b/packages/docs/src/commands/commands/__tests__/create-command-test-bed.ts
index 765a58d28e..c7ab67f011 100644
--- a/packages/docs/src/commands/commands/__tests__/create-command-test-bed.ts
+++ b/packages/docs/src/commands/commands/__tests__/create-command-test-bed.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IDocumentData } from '@univerjs/core';
import {
BooleanNumber,
diff --git a/packages/docs/src/commands/commands/__tests__/inline-format.command.spec.ts b/packages/docs/src/commands/commands/__tests__/inline-format.command.spec.ts
index ef067daade..55d00ba38d 100644
--- a/packages/docs/src/commands/commands/__tests__/inline-format.command.spec.ts
+++ b/packages/docs/src/commands/commands/__tests__/inline-format.command.spec.ts
@@ -1,4 +1,18 @@
-/* eslint-disable no-magic-numbers */
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand, IStyleBase, Univer } from '@univerjs/core';
import { BooleanNumber, ICommandService, IUniverInstanceService, RedoCommand, UndoCommand } from '@univerjs/core';
diff --git a/packages/docs/src/commands/commands/__tests__/replace-content.command.spec.ts b/packages/docs/src/commands/commands/__tests__/replace-content.command.spec.ts
index db9e026d68..714285dc67 100644
--- a/packages/docs/src/commands/commands/__tests__/replace-content.command.spec.ts
+++ b/packages/docs/src/commands/commands/__tests__/replace-content.command.spec.ts
@@ -1,4 +1,18 @@
-/* eslint-disable no-magic-numbers */
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand, IDocumentData, Univer } from '@univerjs/core';
import { ICommandService, IUniverInstanceService, RedoCommand, UndoCommand } from '@univerjs/core';
diff --git a/packages/docs/src/commands/commands/clipboard.command.ts b/packages/docs/src/commands/commands/clipboard.command.ts
index 39bb922b0d..0f744b3e1a 100644
--- a/packages/docs/src/commands/commands/clipboard.command.ts
+++ b/packages/docs/src/commands/commands/clipboard.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IMultiCommand } from '@univerjs/core';
import { CommandType, FOCUSING_DOC, FOCUSING_EDITOR } from '@univerjs/core';
import { CopyCommand, CutCommand, PasteCommand } from '@univerjs/ui';
diff --git a/packages/docs/src/commands/commands/clipboard.inner.command.ts b/packages/docs/src/commands/commands/clipboard.inner.command.ts
index 991e0097ea..b63ad2163d 100644
--- a/packages/docs/src/commands/commands/clipboard.inner.command.ts
+++ b/packages/docs/src/commands/commands/clipboard.inner.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {
ICommand,
IDeleteMutationParams,
diff --git a/packages/docs/src/commands/commands/core-editing.command.ts b/packages/docs/src/commands/commands/core-editing.command.ts
index 1272350d9d..26391b1e14 100644
--- a/packages/docs/src/commands/commands/core-editing.command.ts
+++ b/packages/docs/src/commands/commands/core-editing.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {
ICommand,
IDocumentBody,
diff --git a/packages/docs/src/commands/commands/ime-input.command.ts b/packages/docs/src/commands/commands/ime-input.command.ts
index 30f6115af0..c992fcac6a 100644
--- a/packages/docs/src/commands/commands/ime-input.command.ts
+++ b/packages/docs/src/commands/commands/ime-input.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand, ICommandInfo, ITextRange } from '@univerjs/core';
import { CommandType, ICommandService, IUndoRedoService } from '@univerjs/core';
import type { ITextRangeWithStyle } from '@univerjs/engine-render';
diff --git a/packages/docs/src/commands/commands/inline-format.command.ts b/packages/docs/src/commands/commands/inline-format.command.ts
index b59108fb0b..5bdfe99628 100644
--- a/packages/docs/src/commands/commands/inline-format.command.ts
+++ b/packages/docs/src/commands/commands/inline-format.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand, IDocumentBody, IMutationInfo, IStyleBase, ITextDecoration, ITextRun } from '@univerjs/core';
import {
BooleanNumber,
diff --git a/packages/docs/src/commands/commands/insert-floating-object.command.ts b/packages/docs/src/commands/commands/insert-floating-object.command.ts
index cbeb81605f..f177f53f59 100644
--- a/packages/docs/src/commands/commands/insert-floating-object.command.ts
+++ b/packages/docs/src/commands/commands/insert-floating-object.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand } from '@univerjs/core';
import { CommandType, ICommandService, IUndoRedoService, IUniverInstanceService } from '@univerjs/core';
import type { IAccessor } from '@wendellhu/redi';
diff --git a/packages/docs/src/commands/commands/remove-floating-object.command.ts b/packages/docs/src/commands/commands/remove-floating-object.command.ts
index e2417fdeae..92d1c75196 100644
--- a/packages/docs/src/commands/commands/remove-floating-object.command.ts
+++ b/packages/docs/src/commands/commands/remove-floating-object.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand } from '@univerjs/core';
import { CommandType, ICommandService, IUndoRedoService, IUniverInstanceService } from '@univerjs/core';
import type { IAccessor } from '@wendellhu/redi';
diff --git a/packages/docs/src/commands/commands/replace-content.command.ts b/packages/docs/src/commands/commands/replace-content.command.ts
index 7431fdacc2..f440ac3084 100644
--- a/packages/docs/src/commands/commands/replace-content.command.ts
+++ b/packages/docs/src/commands/commands/replace-content.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand, IDocumentBody, IMutationInfo } from '@univerjs/core';
import { CommandType, ICommandService, IUndoRedoService, IUniverInstanceService } from '@univerjs/core';
import type { ITextRangeWithStyle } from '@univerjs/engine-render';
diff --git a/packages/docs/src/commands/commands/set-doc-zoom-ratio.command.ts b/packages/docs/src/commands/commands/set-doc-zoom-ratio.command.ts
index f198be7107..851245036b 100644
--- a/packages/docs/src/commands/commands/set-doc-zoom-ratio.command.ts
+++ b/packages/docs/src/commands/commands/set-doc-zoom-ratio.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand } from '@univerjs/core';
import { CommandType, ICommandService, IUndoRedoService, IUniverInstanceService } from '@univerjs/core';
import type { IAccessor } from '@wendellhu/redi';
diff --git a/packages/docs/src/commands/commands/set-floating-object-transform.command.ts b/packages/docs/src/commands/commands/set-floating-object-transform.command.ts
index d88bbd0936..dc46b162c0 100644
--- a/packages/docs/src/commands/commands/set-floating-object-transform.command.ts
+++ b/packages/docs/src/commands/commands/set-floating-object-transform.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand, ISize, ObjectPositionH, ObjectPositionV } from '@univerjs/core';
import { CommandType, ICommandService, IUndoRedoService, IUniverInstanceService } from '@univerjs/core';
import type { IAccessor } from '@wendellhu/redi';
diff --git a/packages/docs/src/commands/mutations/core-editing.mutation.ts b/packages/docs/src/commands/mutations/core-editing.mutation.ts
index 729ffbd800..61a7d6443e 100644
--- a/packages/docs/src/commands/mutations/core-editing.mutation.ts
+++ b/packages/docs/src/commands/mutations/core-editing.mutation.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {
CommandType,
type DocMutationParams,
diff --git a/packages/docs/src/commands/mutations/insert-floating-object.mutation.ts b/packages/docs/src/commands/mutations/insert-floating-object.mutation.ts
index 6305ea96b6..de343a2492 100644
--- a/packages/docs/src/commands/mutations/insert-floating-object.mutation.ts
+++ b/packages/docs/src/commands/mutations/insert-floating-object.mutation.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IDrawing, IMutation } from '@univerjs/core';
import { CommandType, IUniverInstanceService } from '@univerjs/core';
diff --git a/packages/docs/src/commands/mutations/remove-floating-object.mutation.ts b/packages/docs/src/commands/mutations/remove-floating-object.mutation.ts
index d95a5d4551..0e6823a8c5 100644
--- a/packages/docs/src/commands/mutations/remove-floating-object.mutation.ts
+++ b/packages/docs/src/commands/mutations/remove-floating-object.mutation.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IMutation } from '@univerjs/core';
import { CommandType, IUniverInstanceService } from '@univerjs/core';
diff --git a/packages/docs/src/commands/mutations/set-floating-object.mutation.ts b/packages/docs/src/commands/mutations/set-floating-object.mutation.ts
index abcb17d807..fefedbc26c 100644
--- a/packages/docs/src/commands/mutations/set-floating-object.mutation.ts
+++ b/packages/docs/src/commands/mutations/set-floating-object.mutation.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {
BooleanNumber,
IMutation,
diff --git a/packages/docs/src/commands/operations/cursor.operation.ts b/packages/docs/src/commands/operations/cursor.operation.ts
index 2cf742d4ff..90435ef5ea 100644
--- a/packages/docs/src/commands/operations/cursor.operation.ts
+++ b/packages/docs/src/commands/operations/cursor.operation.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Direction, IOperation } from '@univerjs/core';
import { CommandType } from '@univerjs/core';
diff --git a/packages/docs/src/commands/operations/select-all.operation.ts b/packages/docs/src/commands/operations/select-all.operation.ts
index dcf4f20831..28df37a097 100644
--- a/packages/docs/src/commands/operations/select-all.operation.ts
+++ b/packages/docs/src/commands/operations/select-all.operation.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand } from '@univerjs/core';
import { CommandType, IUniverInstanceService } from '@univerjs/core';
import type { ITextRangeWithStyle } from '@univerjs/engine-render';
diff --git a/packages/docs/src/commands/operations/set-doc-zoom-ratio.operation.ts b/packages/docs/src/commands/operations/set-doc-zoom-ratio.operation.ts
index 51516cd528..1c51f502e7 100644
--- a/packages/docs/src/commands/operations/set-doc-zoom-ratio.operation.ts
+++ b/packages/docs/src/commands/operations/set-doc-zoom-ratio.operation.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IOperation } from '@univerjs/core';
import { CommandType, IUniverInstanceService, Tools } from '@univerjs/core';
import type { IAccessor } from '@wendellhu/redi';
diff --git a/packages/docs/src/commands/operations/text-selection.operation.ts b/packages/docs/src/commands/operations/text-selection.operation.ts
index d2d0c5f4da..e293539b5e 100644
--- a/packages/docs/src/commands/operations/text-selection.operation.ts
+++ b/packages/docs/src/commands/operations/text-selection.operation.ts
@@ -1,4 +1,18 @@
-// This file provide operations to change selection of sheets.
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IOperation } from '@univerjs/core';
import { CommandType } from '@univerjs/core';
diff --git a/packages/docs/src/controllers/clipboard.controller.ts b/packages/docs/src/controllers/clipboard.controller.ts
index 512f41ec37..06391a6ca0 100644
--- a/packages/docs/src/controllers/clipboard.controller.ts
+++ b/packages/docs/src/controllers/clipboard.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommandInfo, IDocumentBody, IParagraph, ITextRun } from '@univerjs/core';
import {
Disposable,
diff --git a/packages/docs/src/controllers/delete.controller.ts b/packages/docs/src/controllers/delete.controller.ts
index 2df5634001..97b08196f4 100644
--- a/packages/docs/src/controllers/delete.controller.ts
+++ b/packages/docs/src/controllers/delete.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommandInfo, IParagraph } from '@univerjs/core';
import {
Disposable,
diff --git a/packages/docs/src/controllers/doc-render.controller.ts b/packages/docs/src/controllers/doc-render.controller.ts
index fd5ded2210..0ac339dfab 100644
--- a/packages/docs/src/controllers/doc-render.controller.ts
+++ b/packages/docs/src/controllers/doc-render.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommandInfo } from '@univerjs/core';
import {
Disposable,
diff --git a/packages/docs/src/controllers/floating-object.controller.ts b/packages/docs/src/controllers/floating-object.controller.ts
index 7d7e157b36..d21b030c42 100644
--- a/packages/docs/src/controllers/floating-object.controller.ts
+++ b/packages/docs/src/controllers/floating-object.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommandInfo, IFloatingObjectManagerParam } from '@univerjs/core';
import {
DEFAULT_DOCUMENT_SUB_COMPONENT_ID,
diff --git a/packages/docs/src/controllers/ime-input.controller.ts b/packages/docs/src/controllers/ime-input.controller.ts
index ea04f822fc..3f09431292 100644
--- a/packages/docs/src/controllers/ime-input.controller.ts
+++ b/packages/docs/src/controllers/ime-input.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '@univerjs/core';
import {
Disposable,
diff --git a/packages/docs/src/controllers/inline-format.controller.ts b/packages/docs/src/controllers/inline-format.controller.ts
index 103ce45204..9cb36d44ae 100644
--- a/packages/docs/src/controllers/inline-format.controller.ts
+++ b/packages/docs/src/controllers/inline-format.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommandInfo } from '@univerjs/core';
import { Disposable, ICommandService, IUniverInstanceService, LifecycleStages, OnLifecycle } from '@univerjs/core';
import { ITextSelectionRenderManager } from '@univerjs/engine-render';
diff --git a/packages/docs/src/controllers/line-break-input.controller.ts b/packages/docs/src/controllers/line-break-input.controller.ts
index ea86499177..06d05e10e8 100644
--- a/packages/docs/src/controllers/line-break-input.controller.ts
+++ b/packages/docs/src/controllers/line-break-input.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommandInfo, IParagraph, Nullable } from '@univerjs/core';
import {
DataStreamTreeTokenType,
diff --git a/packages/docs/src/controllers/move-cursor.controller.ts b/packages/docs/src/controllers/move-cursor.controller.ts
index f0c3b631eb..810d1e3e2f 100644
--- a/packages/docs/src/controllers/move-cursor.controller.ts
+++ b/packages/docs/src/controllers/move-cursor.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommandInfo, Nullable } from '@univerjs/core';
import {
Direction,
diff --git a/packages/docs/src/controllers/normal-input.controller.ts b/packages/docs/src/controllers/normal-input.controller.ts
index 1298bf1158..053dd2b970 100644
--- a/packages/docs/src/controllers/normal-input.controller.ts
+++ b/packages/docs/src/controllers/normal-input.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '@univerjs/core';
import { Disposable, ICommandService, IUniverInstanceService, LifecycleStages, OnLifecycle } from '@univerjs/core';
import { IRenderManagerService, ITextSelectionRenderManager } from '@univerjs/engine-render';
diff --git a/packages/docs/src/controllers/page-render.controller.ts b/packages/docs/src/controllers/page-render.controller.ts
index 6579be2a3f..5f5c3b2211 100644
--- a/packages/docs/src/controllers/page-render.controller.ts
+++ b/packages/docs/src/controllers/page-render.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {
Disposable,
DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY,
diff --git a/packages/docs/src/controllers/text-selection.controller.ts b/packages/docs/src/controllers/text-selection.controller.ts
index 9b69902a45..4eb08bd9ea 100644
--- a/packages/docs/src/controllers/text-selection.controller.ts
+++ b/packages/docs/src/controllers/text-selection.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommandInfo, Nullable, Observer } from '@univerjs/core';
import { Disposable, ICommandService, IUniverInstanceService, LifecycleStages, OnLifecycle } from '@univerjs/core';
import type { Documents, IMouseEvent, IPointerEvent } from '@univerjs/engine-render';
diff --git a/packages/docs/src/controllers/zoom.controller.ts b/packages/docs/src/controllers/zoom.controller.ts
index dc454f7d22..0348f235d7 100644
--- a/packages/docs/src/controllers/zoom.controller.ts
+++ b/packages/docs/src/controllers/zoom.controller.ts
@@ -1,4 +1,19 @@
-/* eslint-disable no-magic-numbers */
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommandInfo } from '@univerjs/core';
import {
Disposable,
diff --git a/packages/docs/src/doc-plugin.ts b/packages/docs/src/doc-plugin.ts
index 84b36052d9..6f41cb938b 100644
--- a/packages/docs/src/doc-plugin.ts
+++ b/packages/docs/src/doc-plugin.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand } from '@univerjs/core';
import {
ICommandService,
diff --git a/packages/docs/src/index.ts b/packages/docs/src/index.ts
index 6521b3662a..df81830699 100644
--- a/packages/docs/src/index.ts
+++ b/packages/docs/src/index.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { getDocObject } from './basics/component-tools';
export * from './basics/docs-view-key';
export { DocCopyCommand, DocCutCommand, DocPasteCommand } from './commands/commands/clipboard.command';
diff --git a/packages/docs/src/services/clipboard/__test__/html-and-udm-convert.spec.ts b/packages/docs/src/services/clipboard/__test__/html-and-udm-convert.spec.ts
index da4213776a..1f97f97806 100644
--- a/packages/docs/src/services/clipboard/__test__/html-and-udm-convert.spec.ts
+++ b/packages/docs/src/services/clipboard/__test__/html-and-udm-convert.spec.ts
@@ -1,4 +1,19 @@
-/* eslint-disable no-magic-numbers */
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IDocumentBody, Nullable } from '@univerjs/core';
import { BooleanNumber } from '@univerjs/core';
import { afterEach, beforeEach, describe, expect, it } from 'vitest';
diff --git a/packages/docs/src/services/clipboard/clipboard.service.ts b/packages/docs/src/services/clipboard/clipboard.service.ts
index bb1cc65273..5a754268f6 100644
--- a/packages/docs/src/services/clipboard/clipboard.service.ts
+++ b/packages/docs/src/services/clipboard/clipboard.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IDocumentBody } from '@univerjs/core';
import { Disposable, IUniverInstanceService, toDisposable } from '@univerjs/core';
import { HTML_CLIPBOARD_MIME_TYPE, IClipboardInterfaceService, PLAIN_TEXT_CLIPBOARD_MIME_TYPE } from '@univerjs/ui';
diff --git a/packages/docs/src/services/clipboard/copy-content-cache.ts b/packages/docs/src/services/clipboard/copy-content-cache.ts
index 75e76cd5b3..c9089604f1 100644
--- a/packages/docs/src/services/clipboard/copy-content-cache.ts
+++ b/packages/docs/src/services/clipboard/copy-content-cache.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IDocumentBody } from '@univerjs/core';
import { LRUMap, Tools } from '@univerjs/core';
diff --git a/packages/docs/src/services/clipboard/html-to-udm/converter.ts b/packages/docs/src/services/clipboard/html-to-udm/converter.ts
index 52fa1131b7..48f5ae4c25 100644
--- a/packages/docs/src/services/clipboard/html-to-udm/converter.ts
+++ b/packages/docs/src/services/clipboard/html-to-udm/converter.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IDocumentBody, ITextStyle, Nullable } from '@univerjs/core';
import { extractNodeStyle } from './parse-node-style';
diff --git a/packages/docs/src/services/clipboard/html-to-udm/parse-node-style.ts b/packages/docs/src/services/clipboard/html-to-udm/parse-node-style.ts
index a05ebf7d92..f28eccb6a2 100644
--- a/packages/docs/src/services/clipboard/html-to-udm/parse-node-style.ts
+++ b/packages/docs/src/services/clipboard/html-to-udm/parse-node-style.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { TinyColor } from '@ctrl/tinycolor';
import type { ITextStyle } from '@univerjs/core';
import { BaselineOffset, BooleanNumber } from '@univerjs/core';
diff --git a/packages/docs/src/services/clipboard/html-to-udm/parse-to-dom.ts b/packages/docs/src/services/clipboard/html-to-udm/parse-to-dom.ts
index efdba9bc0d..e4e265d0ed 100644
--- a/packages/docs/src/services/clipboard/html-to-udm/parse-to-dom.ts
+++ b/packages/docs/src/services/clipboard/html-to-udm/parse-to-dom.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 function parseToDom(rawHtml: string) {
const parser = new DOMParser();
const html = `<x-univer id="univer-root">${rawHtml}</x-univer>`;
diff --git a/packages/docs/src/services/clipboard/html-to-udm/paste-plugins/plugin-lark.ts b/packages/docs/src/services/clipboard/html-to-udm/paste-plugins/plugin-lark.ts
index 59f228d627..df98c00848 100644
--- a/packages/docs/src/services/clipboard/html-to-udm/paste-plugins/plugin-lark.ts
+++ b/packages/docs/src/services/clipboard/html-to-udm/paste-plugins/plugin-lark.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { BooleanNumber } from '@univerjs/core';
import { extractNodeStyle as getInlineStyle } from '../parse-node-style';
diff --git a/packages/docs/src/services/clipboard/html-to-udm/paste-plugins/plugin-word.ts b/packages/docs/src/services/clipboard/html-to-udm/paste-plugins/plugin-word.ts
index adf3dcca6a..a6dcbd1223 100644
--- a/packages/docs/src/services/clipboard/html-to-udm/paste-plugins/plugin-word.ts
+++ b/packages/docs/src/services/clipboard/html-to-udm/paste-plugins/plugin-word.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IParagraph } from '@univerjs/core';
import { BooleanNumber } from '@univerjs/core';
diff --git a/packages/docs/src/services/clipboard/html-to-udm/paste-plugins/type.ts b/packages/docs/src/services/clipboard/html-to-udm/paste-plugins/type.ts
index 6f21a92da1..b7edb7edcc 100644
--- a/packages/docs/src/services/clipboard/html-to-udm/paste-plugins/type.ts
+++ b/packages/docs/src/services/clipboard/html-to-udm/paste-plugins/type.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IDocumentBody, ITextStyle } from '@univerjs/core';
export interface IStyleRule {
diff --git a/packages/docs/src/services/clipboard/html-to-udm/utils.ts b/packages/docs/src/services/clipboard/html-to-udm/utils.ts
index a778ff1413..1670d6b53f 100644
--- a/packages/docs/src/services/clipboard/html-to-udm/utils.ts
+++ b/packages/docs/src/services/clipboard/html-to-udm/utils.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IParagraphStyle, Nullable } from '@univerjs/core';
// TODO: @JOCS, Complete other missing attributes that exist in IParagraphStyle
diff --git a/packages/docs/src/services/clipboard/udm-to-html/convertor.ts b/packages/docs/src/services/clipboard/udm-to-html/convertor.ts
index a98a2dc124..b195edab99 100644
--- a/packages/docs/src/services/clipboard/udm-to-html/convertor.ts
+++ b/packages/docs/src/services/clipboard/udm-to-html/convertor.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IDocumentBody, ITextRun } from '@univerjs/core';
import { BaselineOffset, BooleanNumber } from '@univerjs/core';
diff --git a/packages/docs/src/services/doc-skeleton-manager.service.ts b/packages/docs/src/services/doc-skeleton-manager.service.ts
index 8c4c048ade..dac6852267 100644
--- a/packages/docs/src/services/doc-skeleton-manager.service.ts
+++ b/packages/docs/src/services/doc-skeleton-manager.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '@univerjs/core';
import { LocaleService } from '@univerjs/core';
import type { DocumentViewModel } from '@univerjs/engine-render';
diff --git a/packages/docs/src/services/doc-view-model-manager.service.ts b/packages/docs/src/services/doc-view-model-manager.service.ts
index 40691614ba..cf95257c0a 100644
--- a/packages/docs/src/services/doc-view-model-manager.service.ts
+++ b/packages/docs/src/services/doc-view-model-manager.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { DocumentDataModel, Nullable } from '@univerjs/core';
import { DOCS_NORMAL_EDITOR_UNIT_ID_KEY, IUniverInstanceService } from '@univerjs/core';
import { DocumentViewModel } from '@univerjs/engine-render';
diff --git a/packages/docs/src/services/ime-input-manager.service.ts b/packages/docs/src/services/ime-input-manager.service.ts
index d7d55d7ad2..7c18d59872 100644
--- a/packages/docs/src/services/ime-input-manager.service.ts
+++ b/packages/docs/src/services/ime-input-manager.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '@univerjs/core';
import type { ITextRangeWithStyle } from '@univerjs/engine-render';
import type { IDisposable } from '@wendellhu/redi';
diff --git a/packages/docs/src/services/text-selection-manager.service.ts b/packages/docs/src/services/text-selection-manager.service.ts
index 532e953c10..9ed5927b2f 100644
--- a/packages/docs/src/services/text-selection-manager.service.ts
+++ b/packages/docs/src/services/text-selection-manager.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ISelectionCell, Nullable } from '@univerjs/core';
import type { ITextRangeWithStyle, TextRange } from '@univerjs/engine-render';
import type { IDisposable } from '@wendellhu/redi';
diff --git a/packages/docs/src/shortcuts/core-editing.shortcut.ts b/packages/docs/src/shortcuts/core-editing.shortcut.ts
index 0785a56fdc..d433cb603b 100644
--- a/packages/docs/src/shortcuts/core-editing.shortcut.ts
+++ b/packages/docs/src/shortcuts/core-editing.shortcut.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { FOCUSING_DOC } from '@univerjs/core';
import type { IShortcutItem } from '@univerjs/ui';
import { KeyCode } from '@univerjs/ui';
diff --git a/packages/docs/src/shortcuts/cursor.shortcut.ts b/packages/docs/src/shortcuts/cursor.shortcut.ts
index 5daefcad81..d346a781fd 100644
--- a/packages/docs/src/shortcuts/cursor.shortcut.ts
+++ b/packages/docs/src/shortcuts/cursor.shortcut.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Direction, FOCUSING_DOC, FOCUSING_EDITOR } from '@univerjs/core';
import type { IShortcutItem } from '@univerjs/ui';
import { KeyCode, MetaKeys } from '@univerjs/ui';
diff --git a/packages/docs/src/views/doc-canvas-view.ts b/packages/docs/src/views/doc-canvas-view.ts
index 2a8ed7cf5c..0f8090a928 100644
--- a/packages/docs/src/views/doc-canvas-view.ts
+++ b/packages/docs/src/views/doc-canvas-view.ts
@@ -1,4 +1,19 @@
-/* eslint-disable no-magic-numbers */
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { DocumentDataModel, EventState, Nullable } from '@univerjs/core';
import {
DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY,
diff --git a/packages/engine-formula/src/basics/cache-lru.ts b/packages/engine-formula/src/basics/cache-lru.ts
index a670667ddb..247ebb3922 100644
--- a/packages/engine-formula/src/basics/cache-lru.ts
+++ b/packages/engine-formula/src/basics/cache-lru.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { hashAlgorithm, LRUMap } from '@univerjs/core';
// export const CACHE_FORMULA_AST = new LRUMap<string, AstRootNode>(100000);
diff --git a/packages/engine-formula/src/basics/calculate.ts b/packages/engine-formula/src/basics/calculate.ts
index 2d5b183c62..aa4a77b316 100644
--- a/packages/engine-formula/src/basics/calculate.ts
+++ b/packages/engine-formula/src/basics/calculate.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { compareToken } from './token';
export function reverseCompareOperator(operator: compareToken): compareToken {
diff --git a/packages/engine-formula/src/basics/common.ts b/packages/engine-formula/src/basics/common.ts
index e60239e1bc..a85f18caab 100644
--- a/packages/engine-formula/src/basics/common.ts
+++ b/packages/engine-formula/src/basics/common.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {
BooleanNumber,
ICellData,
diff --git a/packages/engine-formula/src/basics/dirty.ts b/packages/engine-formula/src/basics/dirty.ts
index 83c2e4b5ad..7da6bc9930 100644
--- a/packages/engine-formula/src/basics/dirty.ts
+++ b/packages/engine-formula/src/basics/dirty.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IUnitRange } from '@univerjs/core';
export function isInDirtyRange(
diff --git a/packages/engine-formula/src/basics/error-type.ts b/packages/engine-formula/src/basics/error-type.ts
index 734bacf156..4bc93b7eeb 100644
--- a/packages/engine-formula/src/basics/error-type.ts
+++ b/packages/engine-formula/src/basics/error-type.ts
@@ -1,7 +1,19 @@
/**
- * Possible errors returned by our interpreter.
- * 18.17.3 Error values
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 ErrorType {
/** Division by zero. */
DIV_BY_ZERO = '#DIV/0!',
diff --git a/packages/engine-formula/src/basics/function.ts b/packages/engine-formula/src/basics/function.ts
index ba583ba15a..18800f1e0f 100644
--- a/packages/engine-formula/src/basics/function.ts
+++ b/packages/engine-formula/src/basics/function.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { BooleanNumber } from '@univerjs/core';
import type { FUNCTION_NAMES_ARRAY } from '../functions/array/function-names';
diff --git a/packages/engine-formula/src/basics/match-token.ts b/packages/engine-formula/src/basics/match-token.ts
index 0178e8eb1b..5088b3dd5e 100644
--- a/packages/engine-formula/src/basics/match-token.ts
+++ b/packages/engine-formula/src/basics/match-token.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { compareToken, matchToken, operatorToken, prefixToken, suffixToken } from './token';
export const FORMULA_LEXER_TOKENS = [
diff --git a/packages/engine-formula/src/basics/object-class-type.ts b/packages/engine-formula/src/basics/object-class-type.ts
index de836cb1a8..2be5d1724a 100644
--- a/packages/engine-formula/src/basics/object-class-type.ts
+++ b/packages/engine-formula/src/basics/object-class-type.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Disposable } from '@univerjs/core';
export class ObjectClassType extends Disposable {
diff --git a/packages/engine-formula/src/basics/regex.ts b/packages/engine-formula/src/basics/regex.ts
index 3fb798b737..824142afa3 100644
--- a/packages/engine-formula/src/basics/regex.ts
+++ b/packages/engine-formula/src/basics/regex.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { prefixToken, suffixToken } from './token';
export const UNIT_NAME_REGEX = '\'?\\[((?![\\/?:"<>|*\\\\]).)*\\]';
diff --git a/packages/engine-formula/src/basics/token-type.ts b/packages/engine-formula/src/basics/token-type.ts
index 0bf34c1ba0..7107addf6f 100644
--- a/packages/engine-formula/src/basics/token-type.ts
+++ b/packages/engine-formula/src/basics/token-type.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 DEFAULT_TOKEN_TYPE_PARAMETER = 'P_1';
export const DEFAULT_TOKEN_TYPE_ROOT = 'R_1';
diff --git a/packages/engine-formula/src/basics/token.ts b/packages/engine-formula/src/basics/token.ts
index e0c67d34b9..b7eebe2db6 100644
--- a/packages/engine-formula/src/basics/token.ts
+++ b/packages/engine-formula/src/basics/token.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 operatorToken {
PLUS = '+',
MINUS = '-',
diff --git a/packages/engine-formula/src/commands/mutations/set-array-formula-data.mutation.ts b/packages/engine-formula/src/commands/mutations/set-array-formula-data.mutation.ts
index eff6a5a6d3..63d1650f9a 100644
--- a/packages/engine-formula/src/commands/mutations/set-array-formula-data.mutation.ts
+++ b/packages/engine-formula/src/commands/mutations/set-array-formula-data.mutation.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IMutation } from '@univerjs/core';
import { CommandType, Tools } from '@univerjs/core';
import type { IAccessor } from '@wendellhu/redi';
diff --git a/packages/engine-formula/src/commands/mutations/set-defined-name.mutation.ts b/packages/engine-formula/src/commands/mutations/set-defined-name.mutation.ts
index 698a9fbce4..6172f5e976 100644
--- a/packages/engine-formula/src/commands/mutations/set-defined-name.mutation.ts
+++ b/packages/engine-formula/src/commands/mutations/set-defined-name.mutation.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IMutation } from '@univerjs/core';
import { CommandType } from '@univerjs/core';
diff --git a/packages/engine-formula/src/commands/mutations/set-feature-calculation.mutation.ts b/packages/engine-formula/src/commands/mutations/set-feature-calculation.mutation.ts
index 21846a6e9b..998e56cf09 100644
--- a/packages/engine-formula/src/commands/mutations/set-feature-calculation.mutation.ts
+++ b/packages/engine-formula/src/commands/mutations/set-feature-calculation.mutation.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IMutation } from '@univerjs/core';
import { CommandType } from '@univerjs/core';
diff --git a/packages/engine-formula/src/commands/mutations/set-formula-calculation.mutation.ts b/packages/engine-formula/src/commands/mutations/set-formula-calculation.mutation.ts
index a31b755880..8b64e83764 100644
--- a/packages/engine-formula/src/commands/mutations/set-formula-calculation.mutation.ts
+++ b/packages/engine-formula/src/commands/mutations/set-formula-calculation.mutation.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IExecutionOptions, IMutation, IUnitRange, Nullable } from '@univerjs/core';
import { CommandType } from '@univerjs/core';
diff --git a/packages/engine-formula/src/commands/mutations/set-formula-data.mutation.ts b/packages/engine-formula/src/commands/mutations/set-formula-data.mutation.ts
index 6939345bc4..620d01063d 100644
--- a/packages/engine-formula/src/commands/mutations/set-formula-data.mutation.ts
+++ b/packages/engine-formula/src/commands/mutations/set-formula-data.mutation.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IMutation } from '@univerjs/core';
import { CommandType } from '@univerjs/core';
import type { IAccessor } from '@wendellhu/redi';
diff --git a/packages/engine-formula/src/commands/mutations/set-other-formula.mutation.ts b/packages/engine-formula/src/commands/mutations/set-other-formula.mutation.ts
index 79fbdfc728..30a2f98f6e 100644
--- a/packages/engine-formula/src/commands/mutations/set-other-formula.mutation.ts
+++ b/packages/engine-formula/src/commands/mutations/set-other-formula.mutation.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IMutation } from '@univerjs/core';
import { CommandType } from '@univerjs/core';
diff --git a/packages/engine-formula/src/commands/mutations/set-super-table.mutation.ts b/packages/engine-formula/src/commands/mutations/set-super-table.mutation.ts
index 755b5fd882..a13d3a7548 100644
--- a/packages/engine-formula/src/commands/mutations/set-super-table.mutation.ts
+++ b/packages/engine-formula/src/commands/mutations/set-super-table.mutation.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IMutation } from '@univerjs/core';
import { CommandType } from '@univerjs/core';
diff --git a/packages/engine-formula/src/controller/calculate.controller.ts b/packages/engine-formula/src/controller/calculate.controller.ts
index 79277a7c0e..9ab467a95b 100644
--- a/packages/engine-formula/src/controller/calculate.controller.ts
+++ b/packages/engine-formula/src/controller/calculate.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommandInfo, IUnitRange } from '@univerjs/core';
import { Disposable, ICommandService, IUniverInstanceService, LifecycleStages, OnLifecycle } from '@univerjs/core';
import { Inject } from '@wendellhu/redi';
diff --git a/packages/engine-formula/src/controller/formula.controller.ts b/packages/engine-formula/src/controller/formula.controller.ts
index 6c4ede27c1..3fa5175a89 100644
--- a/packages/engine-formula/src/controller/formula.controller.ts
+++ b/packages/engine-formula/src/controller/formula.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Disposable, ICommandService, LifecycleStages, OnLifecycle } from '@univerjs/core';
import type { Ctor } from '@wendellhu/redi';
import { Inject, Injector } from '@wendellhu/redi';
diff --git a/packages/engine-formula/src/controller/set-defined-name.controller.ts b/packages/engine-formula/src/controller/set-defined-name.controller.ts
index d79e84d2de..66a03598f4 100644
--- a/packages/engine-formula/src/controller/set-defined-name.controller.ts
+++ b/packages/engine-formula/src/controller/set-defined-name.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommandInfo } from '@univerjs/core';
import { Disposable, ICommandService, LifecycleStages, OnLifecycle } from '@univerjs/core';
diff --git a/packages/engine-formula/src/controller/set-feature-calculation.controller.ts b/packages/engine-formula/src/controller/set-feature-calculation.controller.ts
index 6ddbe4459b..7df199c8c6 100644
--- a/packages/engine-formula/src/controller/set-feature-calculation.controller.ts
+++ b/packages/engine-formula/src/controller/set-feature-calculation.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommandInfo } from '@univerjs/core';
import { Disposable, ICommandService, LifecycleStages, OnLifecycle } from '@univerjs/core';
diff --git a/packages/engine-formula/src/controller/set-other-formula.controller.ts b/packages/engine-formula/src/controller/set-other-formula.controller.ts
index bd863e67e8..ac4e01a234 100644
--- a/packages/engine-formula/src/controller/set-other-formula.controller.ts
+++ b/packages/engine-formula/src/controller/set-other-formula.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommandInfo } from '@univerjs/core';
import { Disposable, ICommandService, LifecycleStages, OnLifecycle } from '@univerjs/core';
diff --git a/packages/engine-formula/src/controller/set-super-table.controller.ts b/packages/engine-formula/src/controller/set-super-table.controller.ts
index 11b23e0472..6fe5274bae 100644
--- a/packages/engine-formula/src/controller/set-super-table.controller.ts
+++ b/packages/engine-formula/src/controller/set-super-table.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommandInfo } from '@univerjs/core';
import { Disposable, ICommandService, LifecycleStages, OnLifecycle } from '@univerjs/core';
diff --git a/packages/engine-formula/src/engine/analysis/__tests__/create-command-test-bed.ts b/packages/engine-formula/src/engine/analysis/__tests__/create-command-test-bed.ts
index 876d9844c1..1e6e6b6314 100644
--- a/packages/engine-formula/src/engine/analysis/__tests__/create-command-test-bed.ts
+++ b/packages/engine-formula/src/engine/analysis/__tests__/create-command-test-bed.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IWorkbookData } from '@univerjs/core';
import { ILogService, IUniverInstanceService, LocaleType, LogLevel, Plugin, PluginType, Univer } from '@univerjs/core';
import type { Dependency } from '@wendellhu/redi';
diff --git a/packages/engine-formula/src/engine/analysis/__tests__/lexer-tree-builder.spec.ts b/packages/engine-formula/src/engine/analysis/__tests__/lexer-tree-builder.spec.ts
index 9537a255a2..f5344733ad 100644
--- a/packages/engine-formula/src/engine/analysis/__tests__/lexer-tree-builder.spec.ts
+++ b/packages/engine-formula/src/engine/analysis/__tests__/lexer-tree-builder.spec.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { describe, expect, it } from 'vitest';
import type { LexerNode } from '../lexer-node';
diff --git a/packages/engine-formula/src/engine/analysis/__tests__/lexer.spec.ts b/packages/engine-formula/src/engine/analysis/__tests__/lexer.spec.ts
index ddd6b55ca0..faf34101a5 100644
--- a/packages/engine-formula/src/engine/analysis/__tests__/lexer.spec.ts
+++ b/packages/engine-formula/src/engine/analysis/__tests__/lexer.spec.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IWorkbookData, Univer, Workbook } from '@univerjs/core';
import { LocaleType } from '@univerjs/core';
import type { Injector } from '@wendellhu/redi';
diff --git a/packages/engine-formula/src/engine/analysis/lexer-node.ts b/packages/engine-formula/src/engine/analysis/lexer-node.ts
index 2e39c0ae07..04ea1175c2 100644
--- a/packages/engine-formula/src/engine/analysis/lexer-node.ts
+++ b/packages/engine-formula/src/engine/analysis/lexer-node.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable, Observable } from '@univerjs/core';
import { DEFAULT_TOKEN_TYPE_ROOT } from '../../basics/token-type';
diff --git a/packages/engine-formula/src/engine/analysis/lexer-tree-builder.ts b/packages/engine-formula/src/engine/analysis/lexer-tree-builder.ts
index 4fe42acb33..895a366aa3 100644
--- a/packages/engine-formula/src/engine/analysis/lexer-tree-builder.ts
+++ b/packages/engine-formula/src/engine/analysis/lexer-tree-builder.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '@univerjs/core';
import { deserializeRangeWithSheet, Disposable, Rectangle, serializeRangeToRefString, Tools } from '@univerjs/core';
diff --git a/packages/engine-formula/src/engine/analysis/lexer.ts b/packages/engine-formula/src/engine/analysis/lexer.ts
index b848847185..a082564167 100644
--- a/packages/engine-formula/src/engine/analysis/lexer.ts
+++ b/packages/engine-formula/src/engine/analysis/lexer.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Disposable } from '@univerjs/core';
import { Inject } from '@wendellhu/redi';
diff --git a/packages/engine-formula/src/engine/analysis/parser.ts b/packages/engine-formula/src/engine/analysis/parser.ts
index b883f4f109..5297324fe9 100644
--- a/packages/engine-formula/src/engine/analysis/parser.ts
+++ b/packages/engine-formula/src/engine/analysis/parser.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '@univerjs/core';
import { Disposable, sortRules } from '@univerjs/core';
import { Inject } from '@wendellhu/redi';
diff --git a/packages/engine-formula/src/engine/ast-node/ast-root-node.ts b/packages/engine-formula/src/engine/ast-node/ast-root-node.ts
index 4e0ca2e409..72dc28fe8a 100644
--- a/packages/engine-formula/src/engine/ast-node/ast-root-node.ts
+++ b/packages/engine-formula/src/engine/ast-node/ast-root-node.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { DEFAULT_TOKEN_TYPE_ROOT } from '../../basics/token-type';
import { LexerNode } from '../analysis/lexer-node';
import { BaseAstNode } from './base-ast-node';
diff --git a/packages/engine-formula/src/engine/ast-node/base-ast-node-factory.ts b/packages/engine-formula/src/engine/ast-node/base-ast-node-factory.ts
index c822ffdffc..0bdc28867d 100644
--- a/packages/engine-formula/src/engine/ast-node/base-ast-node-factory.ts
+++ b/packages/engine-formula/src/engine/ast-node/base-ast-node-factory.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '@univerjs/core';
import { Disposable } from '@univerjs/core';
diff --git a/packages/engine-formula/src/engine/ast-node/base-ast-node.ts b/packages/engine-formula/src/engine/ast-node/base-ast-node.ts
index d3afb3c803..8f932730cc 100644
--- a/packages/engine-formula/src/engine/ast-node/base-ast-node.ts
+++ b/packages/engine-formula/src/engine/ast-node/base-ast-node.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '@univerjs/core';
import { Disposable } from '@univerjs/core';
diff --git a/packages/engine-formula/src/engine/ast-node/function-node.ts b/packages/engine-formula/src/engine/ast-node/function-node.ts
index e947992ba8..67e92df607 100644
--- a/packages/engine-formula/src/engine/ast-node/function-node.ts
+++ b/packages/engine-formula/src/engine/ast-node/function-node.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '@univerjs/core';
import { Inject, Injector } from '@wendellhu/redi';
diff --git a/packages/engine-formula/src/engine/ast-node/index.ts b/packages/engine-formula/src/engine/ast-node/index.ts
index f3180b378a..fc3bc1a8b2 100644
--- a/packages/engine-formula/src/engine/ast-node/index.ts
+++ b/packages/engine-formula/src/engine/ast-node/index.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './ast-root-node';
export * from './function-node';
export * from './lambda-node';
diff --git a/packages/engine-formula/src/engine/ast-node/lambda-node.ts b/packages/engine-formula/src/engine/ast-node/lambda-node.ts
index d845f516ef..4f937f4b8d 100644
--- a/packages/engine-formula/src/engine/ast-node/lambda-node.ts
+++ b/packages/engine-formula/src/engine/ast-node/lambda-node.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '@univerjs/core';
import { Tools } from '@univerjs/core';
diff --git a/packages/engine-formula/src/engine/ast-node/lambda-parameter-node.ts b/packages/engine-formula/src/engine/ast-node/lambda-parameter-node.ts
index b158e85626..88ee0056f0 100644
--- a/packages/engine-formula/src/engine/ast-node/lambda-parameter-node.ts
+++ b/packages/engine-formula/src/engine/ast-node/lambda-parameter-node.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '@univerjs/core';
import { ErrorType } from '../../basics/error-type';
diff --git a/packages/engine-formula/src/engine/ast-node/node-type.ts b/packages/engine-formula/src/engine/ast-node/node-type.ts
index 04d336b014..9f826dc65d 100644
--- a/packages/engine-formula/src/engine/ast-node/node-type.ts
+++ b/packages/engine-formula/src/engine/ast-node/node-type.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 NodeType {
REFERENCE = 'ReferenceNode',
VALUE = 'ValueNode',
diff --git a/packages/engine-formula/src/engine/ast-node/null-node.ts b/packages/engine-formula/src/engine/ast-node/null-node.ts
index 16f7c4c47d..b7830956d0 100644
--- a/packages/engine-formula/src/engine/ast-node/null-node.ts
+++ b/packages/engine-formula/src/engine/ast-node/null-node.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { NullValueObject } from '../value-object/primitive-object';
import { BaseAstNode } from './base-ast-node';
import { NodeType } from './node-type';
diff --git a/packages/engine-formula/src/engine/ast-node/operator-node.ts b/packages/engine-formula/src/engine/ast-node/operator-node.ts
index 0698298db7..289f9b3222 100644
--- a/packages/engine-formula/src/engine/ast-node/operator-node.ts
+++ b/packages/engine-formula/src/engine/ast-node/operator-node.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ErrorType } from '../../basics/error-type';
import type { compareToken } from '../../basics/token';
import { OPERATOR_TOKEN_COMPARE_SET, OPERATOR_TOKEN_SET, operatorToken } from '../../basics/token';
diff --git a/packages/engine-formula/src/engine/ast-node/prefix-node.ts b/packages/engine-formula/src/engine/ast-node/prefix-node.ts
index 40c3d9c072..6afe3afc1b 100644
--- a/packages/engine-formula/src/engine/ast-node/prefix-node.ts
+++ b/packages/engine-formula/src/engine/ast-node/prefix-node.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '@univerjs/core';
import type { IAccessor } from '@wendellhu/redi';
import { Inject, Injector } from '@wendellhu/redi';
diff --git a/packages/engine-formula/src/engine/ast-node/reference-node.ts b/packages/engine-formula/src/engine/ast-node/reference-node.ts
index b7141d38e0..3687672dd2 100644
--- a/packages/engine-formula/src/engine/ast-node/reference-node.ts
+++ b/packages/engine-formula/src/engine/ast-node/reference-node.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IAccessor } from '@wendellhu/redi';
import { Inject, Injector } from '@wendellhu/redi';
diff --git a/packages/engine-formula/src/engine/ast-node/suffix-node.ts b/packages/engine-formula/src/engine/ast-node/suffix-node.ts
index 5a0e8b0783..41a5cf0ac8 100644
--- a/packages/engine-formula/src/engine/ast-node/suffix-node.ts
+++ b/packages/engine-formula/src/engine/ast-node/suffix-node.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IAccessor } from '@wendellhu/redi';
import { Inject, Injector } from '@wendellhu/redi';
diff --git a/packages/engine-formula/src/engine/ast-node/union-node.ts b/packages/engine-formula/src/engine/ast-node/union-node.ts
index 92daf299d9..c6a7e2ea40 100644
--- a/packages/engine-formula/src/engine/ast-node/union-node.ts
+++ b/packages/engine-formula/src/engine/ast-node/union-node.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ErrorType } from '../../basics/error-type';
import { matchToken } from '../../basics/token';
import type { BaseFunction } from '../../functions/base-function';
diff --git a/packages/engine-formula/src/engine/ast-node/value-node.ts b/packages/engine-formula/src/engine/ast-node/value-node.ts
index bc7fb09aba..d9f023dad0 100644
--- a/packages/engine-formula/src/engine/ast-node/value-node.ts
+++ b/packages/engine-formula/src/engine/ast-node/value-node.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { BooleanValue } from '../../basics/common';
import { LexerNode } from '../analysis/lexer-node';
import { ValueObjectFactory } from '../value-object/array-value-object';
diff --git a/packages/engine-formula/src/engine/dependency/dependency-tree.ts b/packages/engine-formula/src/engine/dependency/dependency-tree.ts
index 9bb00bcee3..bb64ecb1c7 100644
--- a/packages/engine-formula/src/engine/dependency/dependency-tree.ts
+++ b/packages/engine-formula/src/engine/dependency/dependency-tree.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IRange, IUnitRange, Nullable } from '@univerjs/core';
import { Disposable } from '@univerjs/core';
diff --git a/packages/engine-formula/src/engine/dependency/formula-dependency.ts b/packages/engine-formula/src/engine/dependency/formula-dependency.ts
index 1fd4929908..f6f4630ff3 100644
--- a/packages/engine-formula/src/engine/dependency/formula-dependency.ts
+++ b/packages/engine-formula/src/engine/dependency/formula-dependency.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IRange, IUnitRange, Nullable } from '@univerjs/core';
import { Disposable, LifecycleStages, ObjectMatrix, OnLifecycle } from '@univerjs/core';
import { Inject } from '@wendellhu/redi';
diff --git a/packages/engine-formula/src/engine/interpreter/interpreter.ts b/packages/engine-formula/src/engine/interpreter/interpreter.ts
index 88f540c742..c6c68d2a7d 100644
--- a/packages/engine-formula/src/engine/interpreter/interpreter.ts
+++ b/packages/engine-formula/src/engine/interpreter/interpreter.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Disposable } from '@univerjs/core';
import { AstNodePromiseType } from '../../basics/common';
diff --git a/packages/engine-formula/src/engine/other-object/error-value-object.ts b/packages/engine-formula/src/engine/other-object/error-value-object.ts
index 4a2b97968f..57b18309a6 100644
--- a/packages/engine-formula/src/engine/other-object/error-value-object.ts
+++ b/packages/engine-formula/src/engine/other-object/error-value-object.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ErrorType } from '../../basics/error-type';
import { ObjectClassType } from '../../basics/object-class-type';
diff --git a/packages/engine-formula/src/engine/reference-object/base-reference-object.ts b/packages/engine-formula/src/engine/reference-object/base-reference-object.ts
index 5373244779..f481602cf4 100644
--- a/packages/engine-formula/src/engine/reference-object/base-reference-object.ts
+++ b/packages/engine-formula/src/engine/reference-object/base-reference-object.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICellData, IRange, Nullable } from '@univerjs/core';
import { CellValueType } from '@univerjs/core';
diff --git a/packages/engine-formula/src/engine/reference-object/cell-reference-object.ts b/packages/engine-formula/src/engine/reference-object/cell-reference-object.ts
index 746892fc30..b2dcd08e72 100644
--- a/packages/engine-formula/src/engine/reference-object/cell-reference-object.ts
+++ b/packages/engine-formula/src/engine/reference-object/cell-reference-object.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IRange } from '@univerjs/core';
import { deserializeRangeWithSheet } from '@univerjs/core';
diff --git a/packages/engine-formula/src/engine/reference-object/column-reference-object.ts b/packages/engine-formula/src/engine/reference-object/column-reference-object.ts
index 9b54a7ead2..1f31067a7d 100644
--- a/packages/engine-formula/src/engine/reference-object/column-reference-object.ts
+++ b/packages/engine-formula/src/engine/reference-object/column-reference-object.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IRange } from '@univerjs/core';
import { deserializeRangeWithSheet } from '@univerjs/core';
diff --git a/packages/engine-formula/src/engine/reference-object/range-reference-object.ts b/packages/engine-formula/src/engine/reference-object/range-reference-object.ts
index 1f412a163e..7a449d0bee 100644
--- a/packages/engine-formula/src/engine/reference-object/range-reference-object.ts
+++ b/packages/engine-formula/src/engine/reference-object/range-reference-object.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IRange } from '@univerjs/core';
import { BaseReferenceObject } from './base-reference-object';
diff --git a/packages/engine-formula/src/engine/reference-object/row-reference-object.ts b/packages/engine-formula/src/engine/reference-object/row-reference-object.ts
index c6eb47c3f2..eab176437c 100644
--- a/packages/engine-formula/src/engine/reference-object/row-reference-object.ts
+++ b/packages/engine-formula/src/engine/reference-object/row-reference-object.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IRange } from '@univerjs/core';
import { deserializeRangeWithSheet } from '@univerjs/core';
diff --git a/packages/engine-formula/src/engine/reference-object/table-reference-object.ts b/packages/engine-formula/src/engine/reference-object/table-reference-object.ts
index ccd1866c3f..ee80a9a134 100644
--- a/packages/engine-formula/src/engine/reference-object/table-reference-object.ts
+++ b/packages/engine-formula/src/engine/reference-object/table-reference-object.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ISuperTable } from '../../basics/common';
import { TableOptionType } from '../../basics/common';
import { $SUPER_TABLE_COLUMN_REGEX } from '../../basics/regex';
diff --git a/packages/engine-formula/src/engine/utils/function-definition.ts b/packages/engine-formula/src/engine/utils/function-definition.ts
index 8ddddb7448..ad4712c120 100644
--- a/packages/engine-formula/src/engine/utils/function-definition.ts
+++ b/packages/engine-formula/src/engine/utils/function-definition.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { DEFAULT_TOKEN_TYPE_LAMBDA_OMIT_PARAMETER, DEFAULT_TOKEN_TYPE_LAMBDA_PARAMETER } from '../../basics/token-type';
import { LexerNode } from '../analysis/lexer-node';
diff --git a/packages/engine-formula/src/engine/utils/node-type.ts b/packages/engine-formula/src/engine/utils/node-type.ts
index e7044a61bb..f97bf7ccb2 100644
--- a/packages/engine-formula/src/engine/utils/node-type.ts
+++ b/packages/engine-formula/src/engine/utils/node-type.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { PrefixNode } from '../ast-node/prefix-node';
import type { ReferenceNode } from '../ast-node/reference-node';
import type { SuffixNode } from '../ast-node/suffix-node';
diff --git a/packages/engine-formula/src/engine/utils/sequence.ts b/packages/engine-formula/src/engine/utils/sequence.ts
index d9d50046d6..ee3517080e 100644
--- a/packages/engine-formula/src/engine/utils/sequence.ts
+++ b/packages/engine-formula/src/engine/utils/sequence.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { LexerNode } from '../analysis/lexer-node';
export enum sequenceNodeType {
diff --git a/packages/engine-formula/src/engine/value-object/array-value-object.ts b/packages/engine-formula/src/engine/value-object/array-value-object.ts
index c269c60470..12fe3cd6a1 100644
--- a/packages/engine-formula/src/engine/value-object/array-value-object.ts
+++ b/packages/engine-formula/src/engine/value-object/array-value-object.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '@univerjs/core';
import { BooleanValue } from '../../basics/common';
diff --git a/packages/engine-formula/src/engine/value-object/base-value-object.ts b/packages/engine-formula/src/engine/value-object/base-value-object.ts
index 057cbe7c78..5c2431d855 100644
--- a/packages/engine-formula/src/engine/value-object/base-value-object.ts
+++ b/packages/engine-formula/src/engine/value-object/base-value-object.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ConcatenateType } from '../../basics/common';
import { ErrorType } from '../../basics/error-type';
import { ObjectClassType } from '../../basics/object-class-type';
diff --git a/packages/engine-formula/src/engine/value-object/primitive-object.ts b/packages/engine-formula/src/engine/value-object/primitive-object.ts
index a0a7a36bb3..24ae14ee95 100644
--- a/packages/engine-formula/src/engine/value-object/primitive-object.ts
+++ b/packages/engine-formula/src/engine/value-object/primitive-object.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { reverseCompareOperator } from '../../basics/calculate';
import { BooleanValue, ConcatenateType } from '../../basics/common';
import { ErrorType } from '../../basics/error-type';
diff --git a/packages/engine-formula/src/functions/__tests__/create-command-test-bed.ts b/packages/engine-formula/src/functions/__tests__/create-command-test-bed.ts
index 87be699d8d..58e823ba6f 100644
--- a/packages/engine-formula/src/functions/__tests__/create-command-test-bed.ts
+++ b/packages/engine-formula/src/functions/__tests__/create-command-test-bed.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IWorkbookData } from '@univerjs/core';
import {
ILogService,
diff --git a/packages/engine-formula/src/functions/array/function-map.ts b/packages/engine-formula/src/functions/array/function-map.ts
index 18292fcd68..81a995270a 100644
--- a/packages/engine-formula/src/functions/array/function-map.ts
+++ b/packages/engine-formula/src/functions/array/function-map.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 functionArray = [];
diff --git a/packages/engine-formula/src/functions/array/function-names.ts b/packages/engine-formula/src/functions/array/function-names.ts
index afa1209bf6..d5ba9dc8c0 100644
--- a/packages/engine-formula/src/functions/array/function-names.ts
+++ b/packages/engine-formula/src/functions/array/function-names.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 FUNCTION_NAMES_ARRAY {}
diff --git a/packages/engine-formula/src/functions/base-function.ts b/packages/engine-formula/src/functions/base-function.ts
index 28d078e5c3..86eb6614f4 100644
--- a/packages/engine-formula/src/functions/base-function.ts
+++ b/packages/engine-formula/src/functions/base-function.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Disposable } from '@univerjs/core';
import type { IAccessor } from '@wendellhu/redi';
diff --git a/packages/engine-formula/src/functions/compatibility/concatenate/concatenate.ts b/packages/engine-formula/src/functions/compatibility/concatenate/concatenate.ts
index 9136763724..90a390c1ef 100644
--- a/packages/engine-formula/src/functions/compatibility/concatenate/concatenate.ts
+++ b/packages/engine-formula/src/functions/compatibility/concatenate/concatenate.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ErrorType } from '../../../basics/error-type';
import { ErrorValueObject } from '../../../engine/other-object/error-value-object';
import type { FunctionVariantType } from '../../../engine/reference-object/base-reference-object';
diff --git a/packages/engine-formula/src/functions/compatibility/function-map.ts b/packages/engine-formula/src/functions/compatibility/function-map.ts
index f78eaf7526..f3510922f9 100644
--- a/packages/engine-formula/src/functions/compatibility/function-map.ts
+++ b/packages/engine-formula/src/functions/compatibility/function-map.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Concatenate } from './concatenate/concatenate';
import { FUNCTION_NAMES_COMPATIBILITY } from './function-names';
diff --git a/packages/engine-formula/src/functions/compatibility/function-names.ts b/packages/engine-formula/src/functions/compatibility/function-names.ts
index b1f6b706fe..94d1571970 100644
--- a/packages/engine-formula/src/functions/compatibility/function-names.ts
+++ b/packages/engine-formula/src/functions/compatibility/function-names.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 FUNCTION_NAMES_COMPATIBILITY {
CONCATENATE = 'CONCATENATE',
}
diff --git a/packages/engine-formula/src/functions/cube/function-map.ts b/packages/engine-formula/src/functions/cube/function-map.ts
index 4a61651e8b..7c2e67dbae 100644
--- a/packages/engine-formula/src/functions/cube/function-map.ts
+++ b/packages/engine-formula/src/functions/cube/function-map.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 functionCube = [];
diff --git a/packages/engine-formula/src/functions/cube/function-names.ts b/packages/engine-formula/src/functions/cube/function-names.ts
index 16880e4c55..8a0fb85792 100644
--- a/packages/engine-formula/src/functions/cube/function-names.ts
+++ b/packages/engine-formula/src/functions/cube/function-names.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 FUNCTION_NAMES_CUBE {}
diff --git a/packages/engine-formula/src/functions/database/function-map.ts b/packages/engine-formula/src/functions/database/function-map.ts
index 41c237d577..f3832cf382 100644
--- a/packages/engine-formula/src/functions/database/function-map.ts
+++ b/packages/engine-formula/src/functions/database/function-map.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 functionDatabase = [];
diff --git a/packages/engine-formula/src/functions/database/function-names.ts b/packages/engine-formula/src/functions/database/function-names.ts
index 122076d0bd..f3a2601946 100644
--- a/packages/engine-formula/src/functions/database/function-names.ts
+++ b/packages/engine-formula/src/functions/database/function-names.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 FUNCTION_NAMES_DATABASE {}
diff --git a/packages/engine-formula/src/functions/date/function-map.ts b/packages/engine-formula/src/functions/date/function-map.ts
index 7063ec7d03..c92366c262 100644
--- a/packages/engine-formula/src/functions/date/function-map.ts
+++ b/packages/engine-formula/src/functions/date/function-map.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 functionDate = [];
diff --git a/packages/engine-formula/src/functions/date/function-names.ts b/packages/engine-formula/src/functions/date/function-names.ts
index efb077aae4..3fd84f8a20 100644
--- a/packages/engine-formula/src/functions/date/function-names.ts
+++ b/packages/engine-formula/src/functions/date/function-names.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 FUNCTION_NAMES_DATE {}
diff --git a/packages/engine-formula/src/functions/engineering/function-map.ts b/packages/engine-formula/src/functions/engineering/function-map.ts
index 73a1621fe0..f82308bc93 100644
--- a/packages/engine-formula/src/functions/engineering/function-map.ts
+++ b/packages/engine-formula/src/functions/engineering/function-map.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 functionEngineering = [];
diff --git a/packages/engine-formula/src/functions/engineering/function-names.ts b/packages/engine-formula/src/functions/engineering/function-names.ts
index d915b15dea..2727a4c707 100644
--- a/packages/engine-formula/src/functions/engineering/function-names.ts
+++ b/packages/engine-formula/src/functions/engineering/function-names.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 FUNCTION_NAMES_ENGINEERING {}
diff --git a/packages/engine-formula/src/functions/financial/function-map.ts b/packages/engine-formula/src/functions/financial/function-map.ts
index 086cb65307..ff6f209682 100644
--- a/packages/engine-formula/src/functions/financial/function-map.ts
+++ b/packages/engine-formula/src/functions/financial/function-map.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 functionFinancial = [];
diff --git a/packages/engine-formula/src/functions/financial/function-names.ts b/packages/engine-formula/src/functions/financial/function-names.ts
index 2174f2730d..95d63b8a72 100644
--- a/packages/engine-formula/src/functions/financial/function-names.ts
+++ b/packages/engine-formula/src/functions/financial/function-names.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 FUNCTION_NAMES_FINANCIAL {}
diff --git a/packages/engine-formula/src/functions/information/function-map.ts b/packages/engine-formula/src/functions/information/function-map.ts
index a0da1cf0d2..25802266e5 100644
--- a/packages/engine-formula/src/functions/information/function-map.ts
+++ b/packages/engine-formula/src/functions/information/function-map.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 functionInformation = [];
diff --git a/packages/engine-formula/src/functions/information/function-names.ts b/packages/engine-formula/src/functions/information/function-names.ts
index bc9b8b7f33..935cd877b5 100644
--- a/packages/engine-formula/src/functions/information/function-names.ts
+++ b/packages/engine-formula/src/functions/information/function-names.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 FUNCTION_NAMES_INFORMATION {}
diff --git a/packages/engine-formula/src/functions/logical/function-map.ts b/packages/engine-formula/src/functions/logical/function-map.ts
index b927792855..0332f1112e 100644
--- a/packages/engine-formula/src/functions/logical/function-map.ts
+++ b/packages/engine-formula/src/functions/logical/function-map.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 functionLogical = [];
diff --git a/packages/engine-formula/src/functions/logical/function-names.ts b/packages/engine-formula/src/functions/logical/function-names.ts
index 09b6b5d1a4..c7c04a61a2 100644
--- a/packages/engine-formula/src/functions/logical/function-names.ts
+++ b/packages/engine-formula/src/functions/logical/function-names.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 FUNCTION_NAMES_LOGICAL {}
diff --git a/packages/engine-formula/src/functions/lookup/function-map.ts b/packages/engine-formula/src/functions/lookup/function-map.ts
index 9c22255c73..a1c10144ed 100644
--- a/packages/engine-formula/src/functions/lookup/function-map.ts
+++ b/packages/engine-formula/src/functions/lookup/function-map.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { FUNCTION_NAMES_LOOKUP } from './function-names';
import { Indirect } from './indirect/indirect';
import { Offset } from './offset/offset';
diff --git a/packages/engine-formula/src/functions/lookup/function-names.ts b/packages/engine-formula/src/functions/lookup/function-names.ts
index 6350cabf6e..1f0c61999d 100644
--- a/packages/engine-formula/src/functions/lookup/function-names.ts
+++ b/packages/engine-formula/src/functions/lookup/function-names.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 FUNCTION_NAMES_LOOKUP {
INDIRECT = 'INDIRECT',
OFFSET = 'OFFSET',
diff --git a/packages/engine-formula/src/functions/lookup/indirect/indirect.ts b/packages/engine-formula/src/functions/lookup/indirect/indirect.ts
index c22817f286..c7442ecb88 100644
--- a/packages/engine-formula/src/functions/lookup/indirect/indirect.ts
+++ b/packages/engine-formula/src/functions/lookup/indirect/indirect.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { FunctionVariantType } from '../../../engine/reference-object/base-reference-object';
import { CellReferenceObject } from '../../../engine/reference-object/cell-reference-object';
import { BaseFunction } from '../../base-function';
diff --git a/packages/engine-formula/src/functions/lookup/offset/offset.ts b/packages/engine-formula/src/functions/lookup/offset/offset.ts
index 83dcfe9cd6..6cc2a0be3b 100644
--- a/packages/engine-formula/src/functions/lookup/offset/offset.ts
+++ b/packages/engine-formula/src/functions/lookup/offset/offset.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { FunctionVariantType } from '../../../engine/reference-object/base-reference-object';
import { CellReferenceObject } from '../../../engine/reference-object/cell-reference-object';
import { BaseFunction } from '../../base-function';
diff --git a/packages/engine-formula/src/functions/math/function-map.ts b/packages/engine-formula/src/functions/math/function-map.ts
index 95cfd03c06..3944782af4 100644
--- a/packages/engine-formula/src/functions/math/function-map.ts
+++ b/packages/engine-formula/src/functions/math/function-map.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { FUNCTION_NAMES_MATH } from './function-names';
import { Power } from './power/power';
import { Sum } from './sum/sum';
diff --git a/packages/engine-formula/src/functions/math/function-names.ts b/packages/engine-formula/src/functions/math/function-names.ts
index f714f295e5..b13cff550e 100644
--- a/packages/engine-formula/src/functions/math/function-names.ts
+++ b/packages/engine-formula/src/functions/math/function-names.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 FUNCTION_NAMES_MATH {
SUM = 'SUM',
SUMIF = 'SUMIF',
diff --git a/packages/engine-formula/src/functions/math/power/power.ts b/packages/engine-formula/src/functions/math/power/power.ts
index 6994c09c82..edfe3145d4 100644
--- a/packages/engine-formula/src/functions/math/power/power.ts
+++ b/packages/engine-formula/src/functions/math/power/power.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ErrorType } from '../../../basics/error-type';
import { ErrorValueObject } from '../../../engine/other-object/error-value-object';
import type { FunctionVariantType } from '../../../engine/reference-object/base-reference-object';
diff --git a/packages/engine-formula/src/functions/math/sum/sum.ts b/packages/engine-formula/src/functions/math/sum/sum.ts
index 533d6a98e4..2e09fd15ad 100644
--- a/packages/engine-formula/src/functions/math/sum/sum.ts
+++ b/packages/engine-formula/src/functions/math/sum/sum.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ErrorType } from '../../../basics/error-type';
import { ErrorValueObject } from '../../../engine/other-object/error-value-object';
import type { BaseReferenceObject, FunctionVariantType } from '../../../engine/reference-object/base-reference-object';
diff --git a/packages/engine-formula/src/functions/math/sumif/__tests__/sumif.spec.ts b/packages/engine-formula/src/functions/math/sumif/__tests__/sumif.spec.ts
index 0a9c53b2fe..5c16b05efe 100644
--- a/packages/engine-formula/src/functions/math/sumif/__tests__/sumif.spec.ts
+++ b/packages/engine-formula/src/functions/math/sumif/__tests__/sumif.spec.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IWorkbookData, Univer } from '@univerjs/core';
import { LocaleType } from '@univerjs/core';
import type { Injector } from '@wendellhu/redi';
diff --git a/packages/engine-formula/src/functions/math/sumif/sumif.ts b/packages/engine-formula/src/functions/math/sumif/sumif.ts
index d25bb0adef..be7e30fcbe 100644
--- a/packages/engine-formula/src/functions/math/sumif/sumif.ts
+++ b/packages/engine-formula/src/functions/math/sumif/sumif.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ErrorType } from '../../../basics/error-type';
import type { compareToken } from '../../../basics/token';
import { ErrorValueObject } from '../../../engine/other-object/error-value-object';
diff --git a/packages/engine-formula/src/functions/math/sumifs/__tests__/sumifs.spec.ts b/packages/engine-formula/src/functions/math/sumifs/__tests__/sumifs.spec.ts
index e7cd9cddef..dbd4e7b15e 100644
--- a/packages/engine-formula/src/functions/math/sumifs/__tests__/sumifs.spec.ts
+++ b/packages/engine-formula/src/functions/math/sumifs/__tests__/sumifs.spec.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { describe, it } from 'vitest';
describe('test sumifs', () => {
diff --git a/packages/engine-formula/src/functions/math/sumifs/sumifs.ts b/packages/engine-formula/src/functions/math/sumifs/sumifs.ts
index 506c9f62c8..15d0dd8b3c 100644
--- a/packages/engine-formula/src/functions/math/sumifs/sumifs.ts
+++ b/packages/engine-formula/src/functions/math/sumifs/sumifs.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ErrorType } from '../../../basics/error-type';
import { ErrorValueObject } from '../../../engine/other-object/error-value-object';
import type { FunctionVariantType } from '../../../engine/reference-object/base-reference-object';
diff --git a/packages/engine-formula/src/functions/meta/compare/compare.ts b/packages/engine-formula/src/functions/meta/compare/compare.ts
index 7a2189c433..531f56d6b2 100644
--- a/packages/engine-formula/src/functions/meta/compare/compare.ts
+++ b/packages/engine-formula/src/functions/meta/compare/compare.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ErrorType } from '../../../basics/error-type';
import { compareToken } from '../../../basics/token';
import { ErrorValueObject } from '../../../engine/other-object/error-value-object';
diff --git a/packages/engine-formula/src/functions/meta/divided/divided.ts b/packages/engine-formula/src/functions/meta/divided/divided.ts
index 398b1a72da..0cf8820934 100644
--- a/packages/engine-formula/src/functions/meta/divided/divided.ts
+++ b/packages/engine-formula/src/functions/meta/divided/divided.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ErrorType } from '../../../basics/error-type';
import { ErrorValueObject } from '../../../engine/other-object/error-value-object';
import type { BaseReferenceObject, FunctionVariantType } from '../../../engine/reference-object/base-reference-object';
diff --git a/packages/engine-formula/src/functions/meta/function-map.ts b/packages/engine-formula/src/functions/meta/function-map.ts
index 24b7874f30..75b58d8fd6 100644
--- a/packages/engine-formula/src/functions/meta/function-map.ts
+++ b/packages/engine-formula/src/functions/meta/function-map.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Compare } from './compare/compare';
import { Divided } from './divided/divided';
import { FUNCTION_NAMES_META } from './function-names';
diff --git a/packages/engine-formula/src/functions/meta/function-names.ts b/packages/engine-formula/src/functions/meta/function-names.ts
index 219d5ada7e..ebc436d1ab 100644
--- a/packages/engine-formula/src/functions/meta/function-names.ts
+++ b/packages/engine-formula/src/functions/meta/function-names.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 FUNCTION_NAMES_META {
COMPARE = 'COMPARE',
DIVIDED = 'DIVIDED',
diff --git a/packages/engine-formula/src/functions/meta/minus/minus.ts b/packages/engine-formula/src/functions/meta/minus/minus.ts
index 23a7f3a85b..5b961d0cce 100644
--- a/packages/engine-formula/src/functions/meta/minus/minus.ts
+++ b/packages/engine-formula/src/functions/meta/minus/minus.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ErrorType } from '../../../basics/error-type';
import { ErrorValueObject } from '../../../engine/other-object/error-value-object';
import type { FunctionVariantType } from '../../../engine/reference-object/base-reference-object';
diff --git a/packages/engine-formula/src/functions/meta/multiply/multiply.ts b/packages/engine-formula/src/functions/meta/multiply/multiply.ts
index 62cf391cd6..ee6de5acd6 100644
--- a/packages/engine-formula/src/functions/meta/multiply/multiply.ts
+++ b/packages/engine-formula/src/functions/meta/multiply/multiply.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ErrorType } from '../../../basics/error-type';
import { ErrorValueObject } from '../../../engine/other-object/error-value-object';
import type { BaseReferenceObject, FunctionVariantType } from '../../../engine/reference-object/base-reference-object';
diff --git a/packages/engine-formula/src/functions/meta/plus/plus.ts b/packages/engine-formula/src/functions/meta/plus/plus.ts
index cf4096b60e..29e34f515b 100644
--- a/packages/engine-formula/src/functions/meta/plus/plus.ts
+++ b/packages/engine-formula/src/functions/meta/plus/plus.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ErrorType } from '../../../basics/error-type';
import { ErrorValueObject } from '../../../engine/other-object/error-value-object';
import type { BaseReferenceObject, FunctionVariantType } from '../../../engine/reference-object/base-reference-object';
diff --git a/packages/engine-formula/src/functions/meta/union/union.ts b/packages/engine-formula/src/functions/meta/union/union.ts
index a33e323657..4755f2df52 100644
--- a/packages/engine-formula/src/functions/meta/union/union.ts
+++ b/packages/engine-formula/src/functions/meta/union/union.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ErrorType } from '../../../basics/error-type';
import { compareToken } from '../../../basics/token';
import { ErrorValueObject } from '../../../engine/other-object/error-value-object';
diff --git a/packages/engine-formula/src/functions/statistical/average/average.ts b/packages/engine-formula/src/functions/statistical/average/average.ts
index c8ddf89fb4..e465851a1b 100644
--- a/packages/engine-formula/src/functions/statistical/average/average.ts
+++ b/packages/engine-formula/src/functions/statistical/average/average.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ErrorType } from '../../../basics/error-type';
import { ErrorValueObject } from '../../../engine/other-object/error-value-object';
import type { FunctionVariantType } from '../../../engine/reference-object/base-reference-object';
diff --git a/packages/engine-formula/src/functions/statistical/count/count.ts b/packages/engine-formula/src/functions/statistical/count/count.ts
index a92b85da86..fb0f583fec 100644
--- a/packages/engine-formula/src/functions/statistical/count/count.ts
+++ b/packages/engine-formula/src/functions/statistical/count/count.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { BaseReferenceObject, FunctionVariantType } from '../../../engine/reference-object/base-reference-object';
import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';
import type { BaseValueObject } from '../../../engine/value-object/base-value-object';
diff --git a/packages/engine-formula/src/functions/statistical/function-map.ts b/packages/engine-formula/src/functions/statistical/function-map.ts
index 93e866ca5d..01169316af 100644
--- a/packages/engine-formula/src/functions/statistical/function-map.ts
+++ b/packages/engine-formula/src/functions/statistical/function-map.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Average } from './average/average';
import { Count } from './count/count';
import { FUNCTION_NAMES_STATISTICAL } from './function-names';
diff --git a/packages/engine-formula/src/functions/statistical/function-names.ts b/packages/engine-formula/src/functions/statistical/function-names.ts
index 33cbeea090..7f15d2432e 100644
--- a/packages/engine-formula/src/functions/statistical/function-names.ts
+++ b/packages/engine-formula/src/functions/statistical/function-names.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 FUNCTION_NAMES_STATISTICAL {
AVERAGE = 'AVERAGE',
COUNT = 'COUNT',
diff --git a/packages/engine-formula/src/functions/statistical/max/max.ts b/packages/engine-formula/src/functions/statistical/max/max.ts
index f5d589afed..bd945e0ca0 100644
--- a/packages/engine-formula/src/functions/statistical/max/max.ts
+++ b/packages/engine-formula/src/functions/statistical/max/max.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { compareToken } from '../../../basics/token';
import type { BaseReferenceObject, FunctionVariantType } from '../../../engine/reference-object/base-reference-object';
import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';
diff --git a/packages/engine-formula/src/functions/statistical/min/min.ts b/packages/engine-formula/src/functions/statistical/min/min.ts
index 03b4b12c79..d5387b82b6 100644
--- a/packages/engine-formula/src/functions/statistical/min/min.ts
+++ b/packages/engine-formula/src/functions/statistical/min/min.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { compareToken } from '../../../basics/token';
import type { BaseReferenceObject, FunctionVariantType } from '../../../engine/reference-object/base-reference-object';
import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';
diff --git a/packages/engine-formula/src/functions/text/function-map.ts b/packages/engine-formula/src/functions/text/function-map.ts
index 69518d1dfc..4be41a94b0 100644
--- a/packages/engine-formula/src/functions/text/function-map.ts
+++ b/packages/engine-formula/src/functions/text/function-map.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 functionText = [];
diff --git a/packages/engine-formula/src/functions/text/function-names.ts b/packages/engine-formula/src/functions/text/function-names.ts
index 336ed24ebf..0ab1d20ed0 100644
--- a/packages/engine-formula/src/functions/text/function-names.ts
+++ b/packages/engine-formula/src/functions/text/function-names.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 FUNCTION_NAMES_TEXT {}
diff --git a/packages/engine-formula/src/functions/univer/function-map.ts b/packages/engine-formula/src/functions/univer/function-map.ts
index 9240f214d2..9bfc657aaa 100644
--- a/packages/engine-formula/src/functions/univer/function-map.ts
+++ b/packages/engine-formula/src/functions/univer/function-map.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 functionUniver = [];
diff --git a/packages/engine-formula/src/functions/univer/function-names.ts b/packages/engine-formula/src/functions/univer/function-names.ts
index 0ee1ec1cb8..104e0187cb 100644
--- a/packages/engine-formula/src/functions/univer/function-names.ts
+++ b/packages/engine-formula/src/functions/univer/function-names.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 FUNCTION_NAMES_UNIVER {}
diff --git a/packages/engine-formula/src/functions/web/function-map.ts b/packages/engine-formula/src/functions/web/function-map.ts
index a72d344951..128fe5f89f 100644
--- a/packages/engine-formula/src/functions/web/function-map.ts
+++ b/packages/engine-formula/src/functions/web/function-map.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 functionWeb = [];
diff --git a/packages/engine-formula/src/functions/web/function-names.ts b/packages/engine-formula/src/functions/web/function-names.ts
index 418d80c1c5..e4e4b1ed94 100644
--- a/packages/engine-formula/src/functions/web/function-names.ts
+++ b/packages/engine-formula/src/functions/web/function-names.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 FUNCTION_NAMES_WEB {}
diff --git a/packages/engine-formula/src/index.ts b/packages/engine-formula/src/index.ts
index 1e5750f831..40925cf965 100644
--- a/packages/engine-formula/src/index.ts
+++ b/packages/engine-formula/src/index.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 type {
IArrayFormulaRangeType,
IArrayFormulaUnitCellType,
diff --git a/packages/engine-formula/src/models/__tests__/create-command-test-bed.ts b/packages/engine-formula/src/models/__tests__/create-command-test-bed.ts
index a050ad7e3c..825570a927 100644
--- a/packages/engine-formula/src/models/__tests__/create-command-test-bed.ts
+++ b/packages/engine-formula/src/models/__tests__/create-command-test-bed.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IWorkbookData } from '@univerjs/core';
import { ILogService, IUniverInstanceService, LocaleType, LogLevel, Plugin, PluginType, Univer } from '@univerjs/core';
import type { Dependency } from '@wendellhu/redi';
diff --git a/packages/engine-formula/src/models/__tests__/formula-data.model.spec.ts b/packages/engine-formula/src/models/__tests__/formula-data.model.spec.ts
index 4f27417aae..a809e56c7e 100644
--- a/packages/engine-formula/src/models/__tests__/formula-data.model.spec.ts
+++ b/packages/engine-formula/src/models/__tests__/formula-data.model.spec.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICellData, IWorkbookData, Nullable, Univer } from '@univerjs/core';
import { IUniverInstanceService, LocaleType, ObjectMatrix } from '@univerjs/core';
import type { Injector } from '@wendellhu/redi';
diff --git a/packages/engine-formula/src/models/formula-data.model.ts b/packages/engine-formula/src/models/formula-data.model.ts
index 2a8ba16a58..9efa89119b 100644
--- a/packages/engine-formula/src/models/formula-data.model.ts
+++ b/packages/engine-formula/src/models/formula-data.model.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICellData, IRange, Nullable, ObjectMatrixPrimitiveType } from '@univerjs/core';
import { Disposable, isFormulaId, isFormulaString, IUniverInstanceService, ObjectMatrix } from '@univerjs/core';
import { Inject } from '@wendellhu/redi';
diff --git a/packages/engine-formula/src/plugin.ts b/packages/engine-formula/src/plugin.ts
index 1949bf78a8..0bd7ea9f3d 100644
--- a/packages/engine-formula/src/plugin.ts
+++ b/packages/engine-formula/src/plugin.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Plugin } from '@univerjs/core';
import type { Dependency } from '@wendellhu/redi';
import { Inject, Injector } from '@wendellhu/redi';
diff --git a/packages/engine-formula/src/services/calculate-formula.service.ts b/packages/engine-formula/src/services/calculate-formula.service.ts
index 2ef363f40f..1e3d4c11d9 100644
--- a/packages/engine-formula/src/services/calculate-formula.service.ts
+++ b/packages/engine-formula/src/services/calculate-formula.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IUnitRange } from '@univerjs/core';
import {
Disposable,
diff --git a/packages/engine-formula/src/services/current-data.service.ts b/packages/engine-formula/src/services/current-data.service.ts
index 342a759856..8c1e2ae229 100644
--- a/packages/engine-formula/src/services/current-data.service.ts
+++ b/packages/engine-formula/src/services/current-data.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IUnitRange, Nullable } from '@univerjs/core';
import { Disposable, IUniverInstanceService, ObjectMatrix } from '@univerjs/core';
import { createIdentifier } from '@wendellhu/redi';
diff --git a/packages/engine-formula/src/services/defined-names.service.ts b/packages/engine-formula/src/services/defined-names.service.ts
index 14187d7aaa..27a6baf285 100644
--- a/packages/engine-formula/src/services/defined-names.service.ts
+++ b/packages/engine-formula/src/services/defined-names.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '@univerjs/core';
import { Disposable } from '@univerjs/core';
import { createIdentifier } from '@wendellhu/redi';
diff --git a/packages/engine-formula/src/services/feature-calculation-manager.service.ts b/packages/engine-formula/src/services/feature-calculation-manager.service.ts
index 9d3f9eb96f..8f4d2f4f93 100644
--- a/packages/engine-formula/src/services/feature-calculation-manager.service.ts
+++ b/packages/engine-formula/src/services/feature-calculation-manager.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IUnitRange, Nullable } from '@univerjs/core';
import { Disposable } from '@univerjs/core';
import { createIdentifier } from '@wendellhu/redi';
diff --git a/packages/engine-formula/src/services/function.service.ts b/packages/engine-formula/src/services/function.service.ts
index c9076c0173..31b2e76485 100644
--- a/packages/engine-formula/src/services/function.service.ts
+++ b/packages/engine-formula/src/services/function.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '@univerjs/core';
import { Disposable } from '@univerjs/core';
import { createIdentifier } from '@wendellhu/redi';
diff --git a/packages/engine-formula/src/services/other-formula-manager.service.ts b/packages/engine-formula/src/services/other-formula-manager.service.ts
index 29e06da99e..b1d35e29b4 100644
--- a/packages/engine-formula/src/services/other-formula-manager.service.ts
+++ b/packages/engine-formula/src/services/other-formula-manager.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '@univerjs/core';
import { Disposable } from '@univerjs/core';
import { createIdentifier } from '@wendellhu/redi';
diff --git a/packages/engine-formula/src/services/runtime.service.ts b/packages/engine-formula/src/services/runtime.service.ts
index 6fe53410e7..e378ded2f9 100644
--- a/packages/engine-formula/src/services/runtime.service.ts
+++ b/packages/engine-formula/src/services/runtime.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICellData, IRange, Nullable } from '@univerjs/core';
import { CellValueType, Disposable, isNullCell, ObjectMatrix } from '@univerjs/core';
import { createIdentifier } from '@wendellhu/redi';
diff --git a/packages/engine-formula/src/services/super-table.service.ts b/packages/engine-formula/src/services/super-table.service.ts
index 744d504d4e..59dc4b8626 100644
--- a/packages/engine-formula/src/services/super-table.service.ts
+++ b/packages/engine-formula/src/services/super-table.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '@univerjs/core';
import { Disposable } from '@univerjs/core';
import { createIdentifier } from '@wendellhu/redi';
diff --git a/packages/engine-numfmt/src/index.ts b/packages/engine-numfmt/src/index.ts
index f2b116bfb8..4904a2f8be 100644
--- a/packages/engine-numfmt/src/index.ts
+++ b/packages/engine-numfmt/src/index.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
// @ts-ignore
import numfmt from 'numfmt';
diff --git a/packages/engine-numfmt/src/type.ts b/packages/engine-numfmt/src/type.ts
index 6cc0f3962d..fcc2b40e99 100644
--- a/packages/engine-numfmt/src/type.ts
+++ b/packages/engine-numfmt/src/type.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
type FormatType =
| 'currency'
| 'date'
diff --git a/packages/engine-numfmt/src/types/index.d.ts b/packages/engine-numfmt/src/types/index.d.ts
index f19863cb9f..444511745f 100644
--- a/packages/engine-numfmt/src/types/index.d.ts
+++ b/packages/engine-numfmt/src/types/index.d.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
declare module 'numfmt' {}
diff --git a/packages/engine-render/src/base-object.ts b/packages/engine-render/src/base-object.ts
index bfb608365f..b9259e5cb9 100644
--- a/packages/engine-render/src/base-object.ts
+++ b/packages/engine-render/src/base-object.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { EventState, IKeyValue, Nullable, Observer } from '@univerjs/core';
import { Observable, requestImmediateMacroTask } from '@univerjs/core';
diff --git a/packages/engine-render/src/basics/cell-data.ts b/packages/engine-render/src/basics/cell-data.ts
index 61810c48b0..29c7905e46 100644
--- a/packages/engine-render/src/basics/cell-data.ts
+++ b/packages/engine-render/src/basics/cell-data.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICellData, IStyleData } from '@univerjs/core';
export interface ITempCellData extends ICellData {
diff --git a/packages/engine-render/src/basics/const.ts b/packages/engine-render/src/basics/const.ts
index 79600e84d4..4468f5bf23 100644
--- a/packages/engine-render/src/basics/const.ts
+++ b/packages/engine-render/src/basics/const.ts
@@ -1,4 +1,19 @@
-/* eslint-disable no-magic-numbers */
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 RGB_PAREN = 'rgb(';
export const RGBA_PAREN = 'rgba(';
export const COLORS = {
diff --git a/packages/engine-render/src/basics/document-node-tools.ts b/packages/engine-render/src/basics/document-node-tools.ts
index 47813d1343..4242a929a1 100644
--- a/packages/engine-render/src/basics/document-node-tools.ts
+++ b/packages/engine-render/src/basics/document-node-tools.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IDocumentBody, Nullable } from '@univerjs/core';
import { checkParagraphHasIndentByStyle, DataStreamTreeTokenType } from '@univerjs/core';
diff --git a/packages/engine-render/src/basics/draw.ts b/packages/engine-render/src/basics/draw.ts
index 0891b8b665..fe3bbe0eaf 100644
--- a/packages/engine-render/src/basics/draw.ts
+++ b/packages/engine-render/src/basics/draw.ts
@@ -1,4 +1,19 @@
-/* eslint-disable no-magic-numbers */
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IPosition } from '@univerjs/core';
import { BorderStyleTypes } from '@univerjs/core';
diff --git a/packages/engine-render/src/basics/font-cache.ts b/packages/engine-render/src/basics/font-cache.ts
index b4039c3d6c..1e2cbb285b 100644
--- a/packages/engine-render/src/basics/font-cache.ts
+++ b/packages/engine-render/src/basics/font-cache.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '@univerjs/core';
import { DEFAULT_MEASURE_TEXT } from './const';
diff --git a/packages/engine-render/src/basics/i-document-skeleton-cached.ts b/packages/engine-render/src/basics/i-document-skeleton-cached.ts
index 475587d251..3d0c132757 100644
--- a/packages/engine-render/src/basics/i-document-skeleton-cached.ts
+++ b/packages/engine-render/src/basics/i-document-skeleton-cached.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {
BulletAlignment,
ColumnSeparatorType,
diff --git a/packages/engine-render/src/basics/i-events.ts b/packages/engine-render/src/basics/i-events.ts
index 11f58c559f..8799472f06 100644
--- a/packages/engine-render/src/basics/i-events.ts
+++ b/packages/engine-render/src/basics/i-events.ts
@@ -1,4 +1,19 @@
-/* eslint-disable no-magic-numbers */
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '@univerjs/core';
/**
diff --git a/packages/engine-render/src/basics/index.ts b/packages/engine-render/src/basics/index.ts
index 23f5819320..ada706f79b 100644
--- a/packages/engine-render/src/basics/index.ts
+++ b/packages/engine-render/src/basics/index.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './cell-data';
export * from './const';
export * from './document-node-tools';
diff --git a/packages/engine-render/src/basics/interfaces.ts b/packages/engine-render/src/basics/interfaces.ts
index 6fa17bdb01..ae6d233e04 100644
--- a/packages/engine-render/src/basics/interfaces.ts
+++ b/packages/engine-render/src/basics/interfaces.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {
BooleanNumber,
GridType,
diff --git a/packages/engine-render/src/basics/path2.ts b/packages/engine-render/src/basics/path2.ts
index d32b6348fe..f3376ea94f 100644
--- a/packages/engine-render/src/basics/path2.ts
+++ b/packages/engine-render/src/basics/path2.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '@univerjs/core';
import { Vector2 } from './vector2';
diff --git a/packages/engine-render/src/basics/performance-monitor.ts b/packages/engine-render/src/basics/performance-monitor.ts
index 6e0a30b0e7..d5c1b9f9f9 100644
--- a/packages/engine-render/src/basics/performance-monitor.ts
+++ b/packages/engine-render/src/basics/performance-monitor.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '@univerjs/core';
/**
diff --git a/packages/engine-render/src/basics/position.ts b/packages/engine-render/src/basics/position.ts
index 6ec45b287d..362f9707ca 100644
--- a/packages/engine-render/src/basics/position.ts
+++ b/packages/engine-render/src/basics/position.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { BaseObject } from '../base-object';
import type { IBoundRect } from './vector2';
diff --git a/packages/engine-render/src/basics/quick-event.ts b/packages/engine-render/src/basics/quick-event.ts
index 569f430831..f98f24c2af 100644
--- a/packages/engine-render/src/basics/quick-event.ts
+++ b/packages/engine-render/src/basics/quick-event.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { BaseObject } from '../base-object';
import type { IMouseEvent, IPointerEvent } from './i-events';
diff --git a/packages/engine-render/src/basics/range.ts b/packages/engine-render/src/basics/range.ts
index f32acf59ee..b646b12dd0 100644
--- a/packages/engine-render/src/basics/range.ts
+++ b/packages/engine-render/src/basics/range.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ITextRangeParam } from '@univerjs/core';
export interface ITextSelectionStyle {
diff --git a/packages/engine-render/src/basics/scroll-xy.ts b/packages/engine-render/src/basics/scroll-xy.ts
index ae474df53a..d144f338ff 100644
--- a/packages/engine-render/src/basics/scroll-xy.ts
+++ b/packages/engine-render/src/basics/scroll-xy.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 function getCurrentScrollXY(scrollTimer: any) {
const scene = scrollTimer.getScene();
const viewport = scrollTimer.getViewportByCoord(scene);
diff --git a/packages/engine-render/src/basics/tools.ts b/packages/engine-render/src/basics/tools.ts
index c41596022c..535b471718 100644
--- a/packages/engine-render/src/basics/tools.ts
+++ b/packages/engine-render/src/basics/tools.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {
IRange,
IRangeWithCoord,
diff --git a/packages/engine-render/src/basics/transform.ts b/packages/engine-render/src/basics/transform.ts
index 3b6baa6f6f..01446ddcb0 100644
--- a/packages/engine-render/src/basics/transform.ts
+++ b/packages/engine-render/src/basics/transform.ts
@@ -1,4 +1,19 @@
-/* eslint-disable no-magic-numbers */
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ITransformState } from '@univerjs/core';
import type { IRect } from './interfaces';
diff --git a/packages/engine-render/src/basics/unit-convert.ts b/packages/engine-render/src/basics/unit-convert.ts
index 03fd860b20..711aea7544 100644
--- a/packages/engine-render/src/basics/unit-convert.ts
+++ b/packages/engine-render/src/basics/unit-convert.ts
@@ -1,5 +1,18 @@
-// import { IDocumentData, Tools } from '@univerjs/core';
-// import { ptToPx, pxToPt } from './tools';
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 whiteListKeyForPt = new Set(['', '']);
diff --git a/packages/engine-render/src/basics/vector2.ts b/packages/engine-render/src/basics/vector2.ts
index 4892c64a3d..25a90071bd 100644
--- a/packages/engine-render/src/basics/vector2.ts
+++ b/packages/engine-render/src/basics/vector2.ts
@@ -1,4 +1,19 @@
-/* eslint-disable no-magic-numbers */
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { DeepImmutable, FloatArray } from './i-events';
export interface IPoint {
diff --git a/packages/engine-render/src/canvas.ts b/packages/engine-render/src/canvas.ts
index 5f42d6f1c5..929c34db13 100644
--- a/packages/engine-render/src/canvas.ts
+++ b/packages/engine-render/src/canvas.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { getDevicePixelRatio } from './basics/draw';
import { createCanvasElement } from './basics/tools';
diff --git a/packages/engine-render/src/components/component.ts b/packages/engine-render/src/components/component.ts
index aaf53b4293..e41ca5f72b 100644
--- a/packages/engine-render/src/components/component.ts
+++ b/packages/engine-render/src/components/component.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { sortRules } from '@univerjs/core';
import { BaseObject } from '../base-object';
diff --git a/packages/engine-render/src/components/docs/block/block-error.ts b/packages/engine-render/src/components/docs/block/block-error.ts
index 11fcef47a2..01971694b7 100644
--- a/packages/engine-render/src/components/docs/block/block-error.ts
+++ b/packages/engine-render/src/components/docs/block/block-error.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 function dealWithBlockError() {
return [];
}
diff --git a/packages/engine-render/src/components/docs/block/index.ts b/packages/engine-render/src/components/docs/block/index.ts
index 8809cd9a12..58e1b2cd3a 100644
--- a/packages/engine-render/src/components/docs/block/index.ts
+++ b/packages/engine-render/src/components/docs/block/index.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './block-error';
export * from './paragraph';
export * from './section';
diff --git a/packages/engine-render/src/components/docs/block/paragraph/bullet-ruler.ts b/packages/engine-render/src/components/docs/block/paragraph/bullet-ruler.ts
index cc8fef889c..9d2d9f2233 100644
--- a/packages/engine-render/src/components/docs/block/paragraph/bullet-ruler.ts
+++ b/packages/engine-render/src/components/docs/block/paragraph/bullet-ruler.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { GlyphType, numberToListABC } from '@univerjs/core';
export function getBulletOrderedSymbol(startIndex: number, startNumber: number, glyphType: GlyphType | string) {
diff --git a/packages/engine-render/src/components/docs/block/paragraph/bullet.ts b/packages/engine-render/src/components/docs/block/paragraph/bullet.ts
index b75762d0ff..b73263707f 100644
--- a/packages/engine-render/src/components/docs/block/paragraph/bullet.ts
+++ b/packages/engine-render/src/components/docs/block/paragraph/bullet.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IBullet, ILists, INestingLevel, ITextStyle, LocaleService, Nullable } from '@univerjs/core';
import { FontCache } from '../../../../basics/font-cache';
diff --git a/packages/engine-render/src/components/docs/block/paragraph/index.ts b/packages/engine-render/src/components/docs/block/paragraph/index.ts
index 0f6ff8b460..583e7e4aec 100644
--- a/packages/engine-render/src/components/docs/block/paragraph/index.ts
+++ b/packages/engine-render/src/components/docs/block/paragraph/index.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './bullet';
export * from './bullet-ruler';
export * from './inline-drawing';
diff --git a/packages/engine-render/src/components/docs/block/paragraph/inline-drawing.ts b/packages/engine-render/src/components/docs/block/paragraph/inline-drawing.ts
index 18d7a0fa8c..079463a649 100644
--- a/packages/engine-render/src/components/docs/block/paragraph/inline-drawing.ts
+++ b/packages/engine-render/src/components/docs/block/paragraph/inline-drawing.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IDrawing, LocaleService } from '@univerjs/core';
import type { IDocumentSkeletonPage } from '../../../../basics/i-document-skeleton-cached';
diff --git a/packages/engine-render/src/components/docs/block/paragraph/language-ruler.ts b/packages/engine-render/src/components/docs/block/paragraph/language-ruler.ts
index 87bc5ca482..df1b809a8e 100644
--- a/packages/engine-render/src/components/docs/block/paragraph/language-ruler.ts
+++ b/packages/engine-render/src/components/docs/block/paragraph/language-ruler.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IParagraphStyle, Nullable } from '@univerjs/core';
import type { IDocumentSkeletonSpan } from '../../../../basics/i-document-skeleton-cached';
diff --git a/packages/engine-render/src/components/docs/block/paragraph/layout-ruler.ts b/packages/engine-render/src/components/docs/block/paragraph/layout-ruler.ts
index 1494878a3e..c17ec2094e 100644
--- a/packages/engine-render/src/components/docs/block/paragraph/layout-ruler.ts
+++ b/packages/engine-render/src/components/docs/block/paragraph/layout-ruler.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { INumberUnit, IParagraphStyle } from '@univerjs/core';
import { BooleanNumber, DataStreamTreeTokenType, GridType, SpacingRule } from '@univerjs/core';
diff --git a/packages/engine-render/src/components/docs/block/paragraph/paragraph.ts b/packages/engine-render/src/components/docs/block/paragraph/paragraph.ts
index b8e98032cc..2600868c71 100644
--- a/packages/engine-render/src/components/docs/block/paragraph/paragraph.ts
+++ b/packages/engine-render/src/components/docs/block/paragraph/paragraph.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IBullet, ICustomBlock, IDrawing, IDrawings, Nullable } from '@univerjs/core';
import {
BooleanNumber,
diff --git a/packages/engine-render/src/components/docs/block/section.ts b/packages/engine-render/src/components/docs/block/section.ts
index 53138bba5c..167c8e6b33 100644
--- a/packages/engine-render/src/components/docs/block/section.ts
+++ b/packages/engine-render/src/components/docs/block/section.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { DataStreamTreeNodeType } from '@univerjs/core';
import type { IDocumentSkeletonPage, ISkeletonResourceReference } from '../../../basics/i-document-skeleton-cached';
diff --git a/packages/engine-render/src/components/docs/block/table/table-cell.ts b/packages/engine-render/src/components/docs/block/table/table-cell.ts
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/packages/engine-render/src/components/docs/block/table/table-row.ts b/packages/engine-render/src/components/docs/block/table/table-row.ts
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/packages/engine-render/src/components/docs/block/table/table.ts b/packages/engine-render/src/components/docs/block/table/table.ts
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/packages/engine-render/src/components/docs/common/column.ts b/packages/engine-render/src/components/docs/common/column.ts
index 79a7c4ff5c..b2731c7254 100644
--- a/packages/engine-render/src/components/docs/common/column.ts
+++ b/packages/engine-render/src/components/docs/common/column.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ISectionColumnProperties } from '@univerjs/core';
import { ColumnSeparatorType } from '@univerjs/core';
diff --git a/packages/engine-render/src/components/docs/common/convert-cursor.ts b/packages/engine-render/src/components/docs/common/convert-cursor.ts
index c7dc4ad17d..1dd8c34ee2 100644
--- a/packages/engine-render/src/components/docs/common/convert-cursor.ts
+++ b/packages/engine-render/src/components/docs/common/convert-cursor.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IPosition, ITextRange, Nullable } from '@univerjs/core';
import type {
diff --git a/packages/engine-render/src/components/docs/common/index.ts b/packages/engine-render/src/components/docs/common/index.ts
index a28162cf17..f741a2d8fb 100644
--- a/packages/engine-render/src/components/docs/common/index.ts
+++ b/packages/engine-render/src/components/docs/common/index.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './column';
export * from './convert-cursor';
export * from './line';
diff --git a/packages/engine-render/src/components/docs/common/line.ts b/packages/engine-render/src/components/docs/common/line.ts
index 6e977f2cb1..322a070047 100644
--- a/packages/engine-render/src/components/docs/common/line.ts
+++ b/packages/engine-render/src/components/docs/common/line.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IDrawing, Nullable } from '@univerjs/core';
import { PositionedObjectLayoutType, WrapTextType } from '@univerjs/core';
diff --git a/packages/engine-render/src/components/docs/common/liquid.ts b/packages/engine-render/src/components/docs/common/liquid.ts
index 21c5d43680..81e19a01df 100644
--- a/packages/engine-render/src/components/docs/common/liquid.ts
+++ b/packages/engine-render/src/components/docs/common/liquid.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {
IDocumentSkeletonColumn,
IDocumentSkeletonDivide,
diff --git a/packages/engine-render/src/components/docs/common/page.ts b/packages/engine-render/src/components/docs/common/page.ts
index 7bd8e71bc4..970c60cd25 100644
--- a/packages/engine-render/src/components/docs/common/page.ts
+++ b/packages/engine-render/src/components/docs/common/page.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '@univerjs/core';
import { PageOrientType } from '@univerjs/core';
diff --git a/packages/engine-render/src/components/docs/common/range.ts b/packages/engine-render/src/components/docs/common/range.ts
index 0402305e60..b72e83d60a 100644
--- a/packages/engine-render/src/components/docs/common/range.ts
+++ b/packages/engine-render/src/components/docs/common/range.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ITextRange, Nullable } from '@univerjs/core';
import { Tools } from '@univerjs/core';
diff --git a/packages/engine-render/src/components/docs/common/section.ts b/packages/engine-render/src/components/docs/common/section.ts
index 403929748c..9ddb9af774 100644
--- a/packages/engine-render/src/components/docs/common/section.ts
+++ b/packages/engine-render/src/components/docs/common/section.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ISectionColumnProperties } from '@univerjs/core';
import { ColumnSeparatorType } from '@univerjs/core';
diff --git a/packages/engine-render/src/components/docs/common/span.ts b/packages/engine-render/src/components/docs/common/span.ts
index 3abdc904dc..23a5e1fbb4 100644
--- a/packages/engine-render/src/components/docs/common/span.ts
+++ b/packages/engine-render/src/components/docs/common/span.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '@univerjs/core';
import { BooleanNumber, BulletAlignment, DataStreamTreeTokenType as DT, GridType } from '@univerjs/core';
diff --git a/packages/engine-render/src/components/docs/common/tools.ts b/packages/engine-render/src/components/docs/common/tools.ts
index 6a14b24d16..bb3916cbb5 100644
--- a/packages/engine-render/src/components/docs/common/tools.ts
+++ b/packages/engine-render/src/components/docs/common/tools.ts
@@ -1,4 +1,19 @@
-/* eslint-disable no-magic-numbers */
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {
INumberUnit,
IParagraphStyle,
diff --git a/packages/engine-render/src/components/docs/doc-component.ts b/packages/engine-render/src/components/docs/doc-component.ts
index 3e548d8938..2f13c93a6b 100644
--- a/packages/engine-render/src/components/docs/doc-component.ts
+++ b/packages/engine-render/src/components/docs/doc-component.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '@univerjs/core';
import { RENDER_CLASS_TYPE } from '../../basics/const';
diff --git a/packages/engine-render/src/components/docs/doc-extension.ts b/packages/engine-render/src/components/docs/doc-extension.ts
index c50de71a81..d49a922dca 100644
--- a/packages/engine-render/src/components/docs/doc-extension.ts
+++ b/packages/engine-render/src/components/docs/doc-extension.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IDocumentSkeletonLine, IDocumentSkeletonSpan } from '../../basics/i-document-skeleton-cached';
import { ComponentExtension } from '../extension';
diff --git a/packages/engine-render/src/components/docs/doc-skeleton.ts b/packages/engine-render/src/components/docs/doc-skeleton.ts
index d79c8e1e1d..be66a80803 100644
--- a/packages/engine-render/src/components/docs/doc-skeleton.ts
+++ b/packages/engine-render/src/components/docs/doc-skeleton.ts
@@ -1,4 +1,19 @@
-/* eslint-disable no-magic-numbers */
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ISectionBreak, ISectionColumnProperties, LocaleService, Nullable } from '@univerjs/core';
import {
ColumnSeparatorType,
diff --git a/packages/engine-render/src/components/docs/document.ts b/packages/engine-render/src/components/docs/document.ts
index 227fe336e6..5f12ec62c4 100644
--- a/packages/engine-render/src/components/docs/document.ts
+++ b/packages/engine-render/src/components/docs/document.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 './extensions';
import type { Nullable, Observer } from '@univerjs/core';
diff --git a/packages/engine-render/src/components/docs/extensions/background.ts b/packages/engine-render/src/components/docs/extensions/background.ts
index 33b45a7282..91137cbf90 100644
--- a/packages/engine-render/src/components/docs/extensions/background.ts
+++ b/packages/engine-render/src/components/docs/extensions/background.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IScale } from '@univerjs/core';
import { getColorStyle } from '@univerjs/core';
diff --git a/packages/engine-render/src/components/docs/extensions/border.ts b/packages/engine-render/src/components/docs/extensions/border.ts
index ba478df8fe..bb99623891 100644
--- a/packages/engine-render/src/components/docs/extensions/border.ts
+++ b/packages/engine-render/src/components/docs/extensions/border.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { BorderStyleTypes, IBorderData, IBorderStyleData, IScale, Nullable } from '@univerjs/core';
import { getColorStyle } from '@univerjs/core';
diff --git a/packages/engine-render/src/components/docs/extensions/font-and-base-line.ts b/packages/engine-render/src/components/docs/extensions/font-and-base-line.ts
index 274a1ee66b..774049aa83 100644
--- a/packages/engine-render/src/components/docs/extensions/font-and-base-line.ts
+++ b/packages/engine-render/src/components/docs/extensions/font-and-base-line.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IScale } from '@univerjs/core';
import { BaselineOffset, getColorStyle } from '@univerjs/core';
diff --git a/packages/engine-render/src/components/docs/extensions/index.ts b/packages/engine-render/src/components/docs/extensions/index.ts
index 1916bb36b3..119f756c56 100644
--- a/packages/engine-render/src/components/docs/extensions/index.ts
+++ b/packages/engine-render/src/components/docs/extensions/index.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './background';
export * from './border';
export * from './font-and-base-line';
diff --git a/packages/engine-render/src/components/docs/extensions/line.ts b/packages/engine-render/src/components/docs/extensions/line.ts
index 1d567f83f6..92649e3131 100644
--- a/packages/engine-render/src/components/docs/extensions/line.ts
+++ b/packages/engine-render/src/components/docs/extensions/line.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IScale, ITextDecoration } from '@univerjs/core';
import { BooleanNumber, getColorStyle, TextDecoration } from '@univerjs/core';
diff --git a/packages/engine-render/src/components/docs/horizon-bar.ts b/packages/engine-render/src/components/docs/horizon-bar.ts
index 6f3d9772ed..03fb184543 100644
--- a/packages/engine-render/src/components/docs/horizon-bar.ts
+++ b/packages/engine-render/src/components/docs/horizon-bar.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 class DocumentHorizonBar {}
diff --git a/packages/engine-render/src/components/docs/index.ts b/packages/engine-render/src/components/docs/index.ts
index d1b2cecd0e..5e4cfe39b4 100644
--- a/packages/engine-render/src/components/docs/index.ts
+++ b/packages/engine-render/src/components/docs/index.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './block';
export * from './common';
export * from './doc-skeleton';
diff --git a/packages/engine-render/src/components/docs/text-selection-render-manager.ts b/packages/engine-render/src/components/docs/text-selection-render-manager.ts
index bcfc3987ee..198d85192f 100644
--- a/packages/engine-render/src/components/docs/text-selection-render-manager.ts
+++ b/packages/engine-render/src/components/docs/text-selection-render-manager.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable, Observer } from '@univerjs/core';
import { DataStreamTreeTokenType, RxDisposable } from '@univerjs/core';
import { createIdentifier } from '@wendellhu/redi';
diff --git a/packages/engine-render/src/components/docs/vertical-bar.ts b/packages/engine-render/src/components/docs/vertical-bar.ts
index f710593699..eb9a9a5e49 100644
--- a/packages/engine-render/src/components/docs/vertical-bar.ts
+++ b/packages/engine-render/src/components/docs/vertical-bar.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 class DocumentVerticalBar {}
diff --git a/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts b/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts
index def3c4d891..e85986217f 100644
--- a/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts
+++ b/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '@univerjs/core';
import {
DataStreamTreeNodeType,
diff --git a/packages/engine-render/src/components/docs/view-model/document-view-model.ts b/packages/engine-render/src/components/docs/view-model/document-view-model.ts
index 3e2b864e29..bcc2dcc359 100644
--- a/packages/engine-render/src/components/docs/view-model/document-view-model.ts
+++ b/packages/engine-render/src/components/docs/view-model/document-view-model.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IDocumentBody, ITextRun, Nullable } from '@univerjs/core';
import { DataStreamTreeNodeType, DataStreamTreeTokenType, DocumentDataModel } from '@univerjs/core';
import type { IDisposable } from '@wendellhu/redi';
diff --git a/packages/engine-render/src/components/extension.ts b/packages/engine-render/src/components/extension.ts
index f1a588daaa..6806d01247 100644
--- a/packages/engine-render/src/components/extension.ts
+++ b/packages/engine-render/src/components/extension.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IDocumentRenderConfig, IScale, Nullable } from '@univerjs/core';
import { Registry } from '@univerjs/core';
diff --git a/packages/engine-render/src/components/index.ts b/packages/engine-render/src/components/index.ts
index 0185b961ee..4def10c62b 100644
--- a/packages/engine-render/src/components/index.ts
+++ b/packages/engine-render/src/components/index.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './component';
export * from './docs';
export * from './extension';
diff --git a/packages/engine-render/src/components/sheets/column-header.ts b/packages/engine-render/src/components/sheets/column-header.ts
index deae1b024a..403fd971a3 100644
--- a/packages/engine-render/src/components/sheets/column-header.ts
+++ b/packages/engine-render/src/components/sheets/column-header.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { getTranslateInSpreadContextWithPixelRatio } from '../../basics/draw';
import { fixLineWidthByScale, getScale } from '../../basics/tools';
import type { IBoundRect, Vector2 } from '../../basics/vector2';
diff --git a/packages/engine-render/src/components/sheets/extensions/background.ts b/packages/engine-render/src/components/sheets/extensions/background.ts
index f948bf353a..35c3191958 100644
--- a/packages/engine-render/src/components/sheets/extensions/background.ts
+++ b/packages/engine-render/src/components/sheets/extensions/background.ts
@@ -1,4 +1,19 @@
-// import { fixLineWidthByScale, getColor, IScale } from '@Basics';
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IScale } from '@univerjs/core';
import { fixLineWidthByScale, getColor } from '../../../basics/tools';
diff --git a/packages/engine-render/src/components/sheets/extensions/border-auxiliary.ts b/packages/engine-render/src/components/sheets/extensions/border-auxiliary.ts
index f906d372ed..5174ca45eb 100644
--- a/packages/engine-render/src/components/sheets/extensions/border-auxiliary.ts
+++ b/packages/engine-render/src/components/sheets/extensions/border-auxiliary.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IRange, IScale } from '@univerjs/core';
import { BooleanNumber } from '@univerjs/core';
diff --git a/packages/engine-render/src/components/sheets/extensions/border.ts b/packages/engine-render/src/components/sheets/extensions/border.ts
index ead4310d06..3ebee9c0d1 100644
--- a/packages/engine-render/src/components/sheets/extensions/border.ts
+++ b/packages/engine-render/src/components/sheets/extensions/border.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { BorderStyleTypes, IRange, IScale, ObjectMatrix } from '@univerjs/core';
import { BORDER_TYPE, COLOR_BLACK_RGB } from '../../../basics/const';
diff --git a/packages/engine-render/src/components/sheets/extensions/column-header-layout.ts b/packages/engine-render/src/components/sheets/extensions/column-header-layout.ts
index 2e438c838d..4280a648ea 100644
--- a/packages/engine-render/src/components/sheets/extensions/column-header-layout.ts
+++ b/packages/engine-render/src/components/sheets/extensions/column-header-layout.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IScale } from '@univerjs/core';
import { numberToABC } from '@univerjs/core';
diff --git a/packages/engine-render/src/components/sheets/extensions/font.ts b/packages/engine-render/src/components/sheets/extensions/font.ts
index 0290a6f7f6..16de4db1e2 100644
--- a/packages/engine-render/src/components/sheets/extensions/font.ts
+++ b/packages/engine-render/src/components/sheets/extensions/font.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IColorStyle, IScale } from '@univerjs/core';
import { HorizontalAlign, ObjectMatrix, WrapStrategy } from '@univerjs/core';
diff --git a/packages/engine-render/src/components/sheets/extensions/index.ts b/packages/engine-render/src/components/sheets/extensions/index.ts
index 35db3f1ed5..b3c8096578 100644
--- a/packages/engine-render/src/components/sheets/extensions/index.ts
+++ b/packages/engine-render/src/components/sheets/extensions/index.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './background';
export * from './border';
export * from './border-auxiliary';
diff --git a/packages/engine-render/src/components/sheets/extensions/row-header-layout.ts b/packages/engine-render/src/components/sheets/extensions/row-header-layout.ts
index f6c1b7662e..e54e215594 100644
--- a/packages/engine-render/src/components/sheets/extensions/row-header-layout.ts
+++ b/packages/engine-render/src/components/sheets/extensions/row-header-layout.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IScale } from '@univerjs/core';
import { DEFAULT_FONTFACE_PLANE, MIDDLE_CELL_POS_MAGIC_NUMBER } from '../../../basics/const';
diff --git a/packages/engine-render/src/components/sheets/extensions/sheet-extension.ts b/packages/engine-render/src/components/sheets/extensions/sheet-extension.ts
index 04501e9d54..a530c9ac1b 100644
--- a/packages/engine-render/src/components/sheets/extensions/sheet-extension.ts
+++ b/packages/engine-render/src/components/sheets/extensions/sheet-extension.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IRange } from '@univerjs/core';
import { getCellByIndex } from '../../../basics/tools';
diff --git a/packages/engine-render/src/components/sheets/index.ts b/packages/engine-render/src/components/sheets/index.ts
index e1363219b6..b27cb3a5dc 100644
--- a/packages/engine-render/src/components/sheets/index.ts
+++ b/packages/engine-render/src/components/sheets/index.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './column-header';
export * from './extensions';
export * from './interfaces';
diff --git a/packages/engine-render/src/components/sheets/interfaces.ts b/packages/engine-render/src/components/sheets/interfaces.ts
index 51556b810f..2f8c079a09 100644
--- a/packages/engine-render/src/components/sheets/interfaces.ts
+++ b/packages/engine-render/src/components/sheets/interfaces.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { BorderStyleTypes, HorizontalAlign, ObjectMatrix, VerticalAlign, WrapStrategy } from '@univerjs/core';
import type { BORDER_TYPE } from '../../basics/const';
diff --git a/packages/engine-render/src/components/sheets/row-header.ts b/packages/engine-render/src/components/sheets/row-header.ts
index 0c484d08a5..03e6fe75af 100644
--- a/packages/engine-render/src/components/sheets/row-header.ts
+++ b/packages/engine-render/src/components/sheets/row-header.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { getTranslateInSpreadContextWithPixelRatio } from '../../basics/draw';
import { fixLineWidthByScale, getScale } from '../../basics/tools';
import type { IBoundRect, Vector2 } from '../../basics/vector2';
diff --git a/packages/engine-render/src/components/sheets/sheet-component.ts b/packages/engine-render/src/components/sheets/sheet-component.ts
index db1682fc7c..8549cff9fc 100644
--- a/packages/engine-render/src/components/sheets/sheet-component.ts
+++ b/packages/engine-render/src/components/sheets/sheet-component.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '@univerjs/core';
import { RENDER_CLASS_TYPE } from '../../basics/const';
diff --git a/packages/engine-render/src/components/sheets/sheet-skeleton.ts b/packages/engine-render/src/components/sheets/sheet-skeleton.ts
index 7abc2ab22e..8c204f76a4 100644
--- a/packages/engine-render/src/components/sheets/sheet-skeleton.ts
+++ b/packages/engine-render/src/components/sheets/sheet-skeleton.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {
IBorderStyleData,
ICellData,
diff --git a/packages/engine-render/src/components/sheets/spreadsheet.ts b/packages/engine-render/src/components/sheets/spreadsheet.ts
index 5d0aec107e..a7a88e6738 100644
--- a/packages/engine-render/src/components/sheets/spreadsheet.ts
+++ b/packages/engine-render/src/components/sheets/spreadsheet.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IRange, Nullable } from '@univerjs/core';
import { CellValueType, HorizontalAlign, ObjectMatrix, sortRules, WrapStrategy } from '@univerjs/core';
diff --git a/packages/engine-render/src/components/skeleton.ts b/packages/engine-render/src/components/skeleton.ts
index dc1df0d899..a50bdd8743 100644
--- a/packages/engine-render/src/components/skeleton.ts
+++ b/packages/engine-render/src/components/skeleton.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Disposable, LocaleService } from '@univerjs/core';
import { Inject } from '@wendellhu/redi';
diff --git a/packages/engine-render/src/components/slides/index.ts b/packages/engine-render/src/components/slides/index.ts
index e8b68b8923..937c1afea2 100644
--- a/packages/engine-render/src/components/slides/index.ts
+++ b/packages/engine-render/src/components/slides/index.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './slide';
diff --git a/packages/engine-render/src/components/slides/slide.ts b/packages/engine-render/src/components/slides/slide.ts
index 1dd23c738a..52ef53cad3 100644
--- a/packages/engine-render/src/components/slides/slide.ts
+++ b/packages/engine-render/src/components/slides/slide.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '@univerjs/core';
import { Observable } from '@univerjs/core';
diff --git a/packages/engine-render/src/custom/custom-object.ts b/packages/engine-render/src/custom/custom-object.ts
index ce220f62ae..5e404778e6 100644
--- a/packages/engine-render/src/custom/custom-object.ts
+++ b/packages/engine-render/src/custom/custom-object.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { BaseObject } from '../base-object';
import { transformBoundingCoord } from '../basics/position';
import type { IBoundRect, Vector2 } from '../basics/vector2';
diff --git a/packages/engine-render/src/custom/index.ts b/packages/engine-render/src/custom/index.ts
index fc1134edf1..6a332efdad 100644
--- a/packages/engine-render/src/custom/index.ts
+++ b/packages/engine-render/src/custom/index.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './custom-object';
diff --git a/packages/engine-render/src/engine.ts b/packages/engine-render/src/engine.ts
index 8c6dce5ef1..8c7e606387 100644
--- a/packages/engine-render/src/engine.ts
+++ b/packages/engine-render/src/engine.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '@univerjs/core';
import { Observable, toDisposable } from '@univerjs/core';
diff --git a/packages/engine-render/src/group.ts b/packages/engine-render/src/group.ts
index 0f9dc376bc..45d09ca7cc 100644
--- a/packages/engine-render/src/group.ts
+++ b/packages/engine-render/src/group.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '@univerjs/core';
import { sortRules } from '@univerjs/core';
diff --git a/packages/engine-render/src/index.ts b/packages/engine-render/src/index.ts
index 712cc30ffc..be638a54b9 100644
--- a/packages/engine-render/src/index.ts
+++ b/packages/engine-render/src/index.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './base-object';
export * from './basics';
export * from './canvas';
diff --git a/packages/engine-render/src/layer.ts b/packages/engine-render/src/layer.ts
index 6a387822b1..cb68affe11 100644
--- a/packages/engine-render/src/layer.ts
+++ b/packages/engine-render/src/layer.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { sortRules } from '@univerjs/core';
import { BaseObject } from './base-object';
diff --git a/packages/engine-render/src/render-engine.ts b/packages/engine-render/src/render-engine.ts
index 9d4378d3d0..e053107096 100644
--- a/packages/engine-render/src/render-engine.ts
+++ b/packages/engine-render/src/render-engine.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Plugin, PluginType } from '@univerjs/core';
import { createIdentifier, Inject, Injector } from '@wendellhu/redi';
diff --git a/packages/engine-render/src/render-manager.service.ts b/packages/engine-render/src/render-manager.service.ts
index 7446e4a379..bed825a61e 100644
--- a/packages/engine-render/src/render-manager.service.ts
+++ b/packages/engine-render/src/render-manager.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '@univerjs/core';
import { createIdentifier } from '@wendellhu/redi';
import type { Observable } from 'rxjs';
diff --git a/packages/engine-render/src/scene-viewer.ts b/packages/engine-render/src/scene-viewer.ts
index 8582978c97..faf725f50d 100644
--- a/packages/engine-render/src/scene-viewer.ts
+++ b/packages/engine-render/src/scene-viewer.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IKeyValue, Nullable } from '@univerjs/core';
import { BaseObject } from './base-object';
diff --git a/packages/engine-render/src/scene.-transformer.ts b/packages/engine-render/src/scene.-transformer.ts
index d06216e56e..1ebd9eaaf5 100644
--- a/packages/engine-render/src/scene.-transformer.ts
+++ b/packages/engine-render/src/scene.-transformer.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IKeyValue, Nullable, Observer } from '@univerjs/core';
import { Observable } from '@univerjs/core';
diff --git a/packages/engine-render/src/scene.input-manager.ts b/packages/engine-render/src/scene.input-manager.ts
index 0841612f44..8d7ee74560 100644
--- a/packages/engine-render/src/scene.input-manager.ts
+++ b/packages/engine-render/src/scene.input-manager.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable, Observer } from '@univerjs/core';
import type { BaseObject } from './base-object';
diff --git a/packages/engine-render/src/scene.ts b/packages/engine-render/src/scene.ts
index b6008fe244..36cb80f9cd 100644
--- a/packages/engine-render/src/scene.ts
+++ b/packages/engine-render/src/scene.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IKeyValue, Nullable } from '@univerjs/core';
import { sortRules, sortRulesByDesc } from '@univerjs/core';
import { BehaviorSubject } from 'rxjs';
diff --git a/packages/engine-render/src/scroll-timer.ts b/packages/engine-render/src/scroll-timer.ts
index 1ee0e6f02d..c4ba71cdd7 100644
--- a/packages/engine-render/src/scroll-timer.ts
+++ b/packages/engine-render/src/scroll-timer.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IPaddingData, Nullable } from '@univerjs/core';
import { RENDER_CLASS_TYPE } from './basics/const';
diff --git a/packages/engine-render/src/services/object-transform-manager.service.ts b/packages/engine-render/src/services/object-transform-manager.service.ts
index d5fd7dd467..e6e0b83985 100644
--- a/packages/engine-render/src/services/object-transform-manager.service.ts
+++ b/packages/engine-render/src/services/object-transform-manager.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '@univerjs/core';
import type { IDisposable } from '@wendellhu/redi';
import { BehaviorSubject } from 'rxjs';
diff --git a/packages/engine-render/src/shape/base-scroll-bar.ts b/packages/engine-render/src/shape/base-scroll-bar.ts
index 262ad08958..57e53ed984 100644
--- a/packages/engine-render/src/shape/base-scroll-bar.ts
+++ b/packages/engine-render/src/shape/base-scroll-bar.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '@univerjs/core';
import type { Vector2 } from '../basics/vector2';
diff --git a/packages/engine-render/src/shape/circle.ts b/packages/engine-render/src/shape/circle.ts
index 60d0597c3b..16cde48d85 100644
--- a/packages/engine-render/src/shape/circle.ts
+++ b/packages/engine-render/src/shape/circle.ts
@@ -1,4 +1,18 @@
-// import { IShapeProps, Shape, IObjectFullState, Group, Scene } from '.';
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IKeyValue } from '@univerjs/core';
diff --git a/packages/engine-render/src/shape/control.ts b/packages/engine-render/src/shape/control.ts
index 67eb5c6e1b..eaafa15a90 100644
--- a/packages/engine-render/src/shape/control.ts
+++ b/packages/engine-render/src/shape/control.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 class Control {}
diff --git a/packages/engine-render/src/shape/drawing.ts b/packages/engine-render/src/shape/drawing.ts
index b9c910a89f..93c854e35e 100644
--- a/packages/engine-render/src/shape/drawing.ts
+++ b/packages/engine-render/src/shape/drawing.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 class Drawing {}
diff --git a/packages/engine-render/src/shape/index.ts b/packages/engine-render/src/shape/index.ts
index c0d8e44489..5b120f50a3 100644
--- a/packages/engine-render/src/shape/index.ts
+++ b/packages/engine-render/src/shape/index.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './circle';
export * from './control';
export * from './drawing';
diff --git a/packages/engine-render/src/shape/path.ts b/packages/engine-render/src/shape/path.ts
index 01eb548f34..6eaf565781 100644
--- a/packages/engine-render/src/shape/path.ts
+++ b/packages/engine-render/src/shape/path.ts
@@ -1,4 +1,19 @@
-/* eslint-disable no-magic-numbers */
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IShapeProps, Shape, IObjectFullState, Group, Scene } from '.';
import type { IKeyValue, Nullable } from '@univerjs/core';
diff --git a/packages/engine-render/src/shape/picture.ts b/packages/engine-render/src/shape/picture.ts
index e441b5fae0..c28823bd47 100644
--- a/packages/engine-render/src/shape/picture.ts
+++ b/packages/engine-render/src/shape/picture.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '@univerjs/core';
import type { IShapeProps } from './shape';
diff --git a/packages/engine-render/src/shape/rect.ts b/packages/engine-render/src/shape/rect.ts
index 0c6c4fcf8a..7f15f539a9 100644
--- a/packages/engine-render/src/shape/rect.ts
+++ b/packages/engine-render/src/shape/rect.ts
@@ -1,4 +1,18 @@
-// import { IShapeProps, Shape, IObjectFullState, Group, Scene } from '.';
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IKeyValue } from '@univerjs/core';
diff --git a/packages/engine-render/src/shape/regular-polygon.ts b/packages/engine-render/src/shape/regular-polygon.ts
index 09d9e01b68..ad93130681 100644
--- a/packages/engine-render/src/shape/regular-polygon.ts
+++ b/packages/engine-render/src/shape/regular-polygon.ts
@@ -1,4 +1,18 @@
-// import { IShapeProps, Shape, IObjectFullState, Group, Scene } from '.';
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IKeyValue } from '@univerjs/core';
diff --git a/packages/engine-render/src/shape/rich-text.ts b/packages/engine-render/src/shape/rich-text.ts
index 50881606e3..59825bb5e6 100644
--- a/packages/engine-render/src/shape/rich-text.ts
+++ b/packages/engine-render/src/shape/rich-text.ts
@@ -1,4 +1,18 @@
-// import { IShapeProps, Shape, IObjectFullState, Group, Scene } from '.';
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {
IBorderData,
diff --git a/packages/engine-render/src/shape/scroll-bar.ts b/packages/engine-render/src/shape/scroll-bar.ts
index 3e23a60103..2f1c5b2676 100644
--- a/packages/engine-render/src/shape/scroll-bar.ts
+++ b/packages/engine-render/src/shape/scroll-bar.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { EventState, IKeyValue, Nullable, Observer } from '@univerjs/core';
import { EVENT_TYPE } from '../basics/const';
diff --git a/packages/engine-render/src/shape/selection.ts b/packages/engine-render/src/shape/selection.ts
index 1b3575ce0a..9729d059bd 100644
--- a/packages/engine-render/src/shape/selection.ts
+++ b/packages/engine-render/src/shape/selection.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 class Selection {}
diff --git a/packages/engine-render/src/shape/shape.ts b/packages/engine-render/src/shape/shape.ts
index bf63044c5f..917dea61ab 100644
--- a/packages/engine-render/src/shape/shape.ts
+++ b/packages/engine-render/src/shape/shape.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IKeyValue, IScale, Nullable } from '@univerjs/core';
import { BASE_OBJECT_ARRAY, BaseObject } from '../base-object';
diff --git a/packages/engine-render/src/thin-engine.ts b/packages/engine-render/src/thin-engine.ts
index bbf0ee0231..bb99535618 100644
--- a/packages/engine-render/src/thin-engine.ts
+++ b/packages/engine-render/src/thin-engine.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Disposable, Observable } from '@univerjs/core';
import type { IDisposable } from '@wendellhu/redi';
diff --git a/packages/engine-render/src/thin-scene.ts b/packages/engine-render/src/thin-scene.ts
index b5dbb00b90..8e65a6e05b 100644
--- a/packages/engine-render/src/thin-scene.ts
+++ b/packages/engine-render/src/thin-scene.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { EventState, IKeyValue, Nullable, Observer } from '@univerjs/core';
import { Observable } from '@univerjs/core';
diff --git a/packages/engine-render/src/types/index.d.ts b/packages/engine-render/src/types/index.d.ts
index b043ed1885..01d2bef475 100644
--- a/packages/engine-render/src/types/index.d.ts
+++ b/packages/engine-render/src/types/index.d.ts
@@ -1,2 +1,18 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from '../index';
declare module '@univerjs/engine-render' {}
diff --git a/packages/engine-render/src/viewport.ts b/packages/engine-render/src/viewport.ts
index 5eeaab6a9b..a12e6dbc83 100644
--- a/packages/engine-render/src/viewport.ts
+++ b/packages/engine-render/src/viewport.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { EventState, IPosition, Nullable } from '@univerjs/core';
import { Observable } from '@univerjs/core';
diff --git a/packages/image/src/controllers/image.load.controller.ts b/packages/image/src/controllers/image.load.controller.ts
index b43af690e9..17b0664014 100644
--- a/packages/image/src/controllers/image.load.controller.ts
+++ b/packages/image/src/controllers/image.load.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommandInfo, IFloatingObjectManagerParam } from '@univerjs/core';
import {
Disposable,
diff --git a/packages/image/src/image-plugin.ts b/packages/image/src/image-plugin.ts
index 7700ee8e1a..f5062628ad 100644
--- a/packages/image/src/image-plugin.ts
+++ b/packages/image/src/image-plugin.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { DEFAULT_DOCUMENT_SUB_COMPONENT_ID, LocaleService, Plugin, PluginType } from '@univerjs/core';
import type { Dependency } from '@wendellhu/redi';
import { Inject, Injector } from '@wendellhu/redi';
diff --git a/packages/image/src/index.ts b/packages/image/src/index.ts
index 3f3b33bddd..271807c3ee 100644
--- a/packages/image/src/index.ts
+++ b/packages/image/src/index.ts
@@ -1,2 +1,18 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ImagePlugin } from './image-plugin';
export { ImageManagerService } from './services/image-manager.service';
diff --git a/packages/image/src/models/image-model.ts b/packages/image/src/models/image-model.ts
index 1c2ae1a1ae..4392255f9a 100644
--- a/packages/image/src/models/image-model.ts
+++ b/packages/image/src/models/image-model.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '@univerjs/core';
export interface IImageData {
diff --git a/packages/image/src/services/image-manager.service.ts b/packages/image/src/services/image-manager.service.ts
index 6ccf6ed200..f3add72ed2 100644
--- a/packages/image/src/services/image-manager.service.ts
+++ b/packages/image/src/services/image-manager.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '@univerjs/core';
import type { IDisposable } from '@wendellhu/redi';
import { createIdentifier } from '@wendellhu/redi';
diff --git a/packages/image/src/services/image-render.service.ts b/packages/image/src/services/image-render.service.ts
index 9c198176ec..59782dfecb 100644
--- a/packages/image/src/services/image-render.service.ts
+++ b/packages/image/src/services/image-render.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '@univerjs/core';
import type { IDisposable } from '@wendellhu/redi';
import { createIdentifier } from '@wendellhu/redi';
diff --git a/packages/local-save/src/controller/export.controller.ts b/packages/local-save/src/controller/export.controller.ts
index 8a43041f56..56d10edf90 100644
--- a/packages/local-save/src/controller/export.controller.ts
+++ b/packages/local-save/src/controller/export.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { createDownloadElement } from '../util/index';
export class ExportController {
diff --git a/packages/local-save/src/controller/record.controller.ts b/packages/local-save/src/controller/record.controller.ts
index fc50a7bef2..7a28a12c03 100644
--- a/packages/local-save/src/controller/record.controller.ts
+++ b/packages/local-save/src/controller/record.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { CommandType, ICommandService } from '@univerjs/core';
import { Inject } from '@wendellhu/redi';
import { Observable } from 'rxjs';
diff --git a/packages/local-save/src/index.ts b/packages/local-save/src/index.ts
index ccc002f25f..5e8cc103bb 100644
--- a/packages/local-save/src/index.ts
+++ b/packages/local-save/src/index.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ExportController } from './controller/export.controller';
export { RecordController } from './controller/record.controller';
export { LocalSnapshotService } from './services/local-snapshot.service';
diff --git a/packages/local-save/src/plugin.ts b/packages/local-save/src/plugin.ts
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/packages/local-save/src/services/local-snapshot.service.ts b/packages/local-save/src/services/local-snapshot.service.ts
index 1caa8089cc..db546f2027 100644
--- a/packages/local-save/src/services/local-snapshot.service.ts
+++ b/packages/local-save/src/services/local-snapshot.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ISnapshotPersistenceService, Workbook } from '@univerjs/core';
import { Disposable, IResourceManagerService, IUniverInstanceService } from '@univerjs/core';
import { Inject } from '@wendellhu/redi';
diff --git a/packages/local-save/src/util/index.ts b/packages/local-save/src/util/index.ts
index 34411e6395..a4b97b6022 100644
--- a/packages/local-save/src/util/index.ts
+++ b/packages/local-save/src/util/index.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 function createDownloadElement(fileName: string, blob: Blob) {
const a = document.createElement('a');
a.download = fileName;
diff --git a/packages/network/src/index.ts b/packages/network/src/index.ts
index 1556c4a92d..196f2f3c4a 100644
--- a/packages/network/src/index.ts
+++ b/packages/network/src/index.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { HTTPHeaders } from './services/http/headers';
export { HTTPService } from './services/http/http.service';
export { IHTTPImplementation } from './services/http/implementations/implementation';
diff --git a/packages/network/src/services/http/headers.ts b/packages/network/src/services/http/headers.ts
index e7f8e48f4c..a3aa49a8e8 100644
--- a/packages/network/src/services/http/headers.ts
+++ b/packages/network/src/services/http/headers.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
interface IHeadersConstructorProps {
[key: string]: string | number | boolean;
}
diff --git a/packages/network/src/services/http/http.service.ts b/packages/network/src/services/http/http.service.ts
index 9e4ae443ca..6c6774e417 100644
--- a/packages/network/src/services/http/http.service.ts
+++ b/packages/network/src/services/http/http.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '@univerjs/core';
import { Disposable, remove, toDisposable } from '@univerjs/core';
import type { IDisposable } from '@wendellhu/redi';
diff --git a/packages/network/src/services/http/http.ts b/packages/network/src/services/http/http.ts
index 1fc693780c..e867136dc0 100644
--- a/packages/network/src/services/http/http.ts
+++ b/packages/network/src/services/http/http.ts
@@ -1,4 +1,18 @@
-/* eslint-disable no-magic-numbers */
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 type HTTPResponseType = 'arraybuffer' | 'blob' | 'json' | 'text';
diff --git a/packages/network/src/services/http/implementations/fetch.ts b/packages/network/src/services/http/implementations/fetch.ts
deleted file mode 100644
index 70b786d12e..0000000000
--- a/packages/network/src/services/http/implementations/fetch.ts
+++ /dev/null
@@ -1 +0,0 @@
-// TODO
diff --git a/packages/network/src/services/http/implementations/implementation.ts b/packages/network/src/services/http/implementations/implementation.ts
index 6bdab89099..73ae032394 100644
--- a/packages/network/src/services/http/implementations/implementation.ts
+++ b/packages/network/src/services/http/implementations/implementation.ts
@@ -1,4 +1,19 @@
-/* eslint-disable @typescript-eslint/no-explicit-any */
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { createIdentifier } from '@wendellhu/redi';
import type { Observable } from 'rxjs';
diff --git a/packages/network/src/services/http/implementations/xhr.ts b/packages/network/src/services/http/implementations/xhr.ts
index 11aa1f8dbc..0887855b93 100644
--- a/packages/network/src/services/http/implementations/xhr.ts
+++ b/packages/network/src/services/http/implementations/xhr.ts
@@ -1,4 +1,18 @@
-/* eslint-disable @typescript-eslint/no-explicit-any */
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '@univerjs/core';
import type { Observer } from 'rxjs';
diff --git a/packages/network/src/services/http/params.ts b/packages/network/src/services/http/params.ts
index d09e4944bc..92b3a2b29b 100644
--- a/packages/network/src/services/http/params.ts
+++ b/packages/network/src/services/http/params.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 class HTTPParams {
constructor(readonly params?: { [key: string]: string | number | boolean }) {}
diff --git a/packages/network/src/services/http/request.ts b/packages/network/src/services/http/request.ts
index de4d085fff..85b0c679eb 100644
--- a/packages/network/src/services/http/request.ts
+++ b/packages/network/src/services/http/request.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { HTTPHeaders } from './headers';
import { ApplicationJSONType } from './headers';
import type { HTTPResponseType } from './http';
diff --git a/packages/network/src/services/http/response.ts b/packages/network/src/services/http/response.ts
index 34193f763e..95760ce7f7 100644
--- a/packages/network/src/services/http/response.ts
+++ b/packages/network/src/services/http/response.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { HTTPHeaders } from './headers';
/**
diff --git a/packages/network/src/services/web-socket/web-socket.service.ts b/packages/network/src/services/web-socket/web-socket.service.ts
index badf9e6136..3681d1eede 100644
--- a/packages/network/src/services/web-socket/web-socket.service.ts
+++ b/packages/network/src/services/web-socket/web-socket.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '@univerjs/core';
import { Disposable, DisposableCollection, toDisposable } from '@univerjs/core';
import { createIdentifier } from '@wendellhu/redi';
diff --git a/packages/rpc/src/controllers/data-sync/data-sync-primary.controller.ts b/packages/rpc/src/controllers/data-sync/data-sync-primary.controller.ts
index 7a88366680..65886b9bc6 100644
--- a/packages/rpc/src/controllers/data-sync/data-sync-primary.controller.ts
+++ b/packages/rpc/src/controllers/data-sync/data-sync-primary.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IMutationInfo } from '@univerjs/core';
import {
CommandType,
diff --git a/packages/rpc/src/controllers/data-sync/data-sync-replica.controller.ts b/packages/rpc/src/controllers/data-sync/data-sync-replica.controller.ts
index ba3ce3a23d..7b86ac277e 100644
--- a/packages/rpc/src/controllers/data-sync/data-sync-replica.controller.ts
+++ b/packages/rpc/src/controllers/data-sync/data-sync-replica.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IMutationInfo } from '@univerjs/core';
import { CommandType, Disposable, ICommandService, LifecycleStages, OnLifecycle } from '@univerjs/core';
import { Inject, Injector } from '@wendellhu/redi';
diff --git a/packages/rpc/src/index.ts b/packages/rpc/src/index.ts
index 290ede0e9e..a41e2cab3a 100644
--- a/packages/rpc/src/index.ts
+++ b/packages/rpc/src/index.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {
type IUniverRPCMainThreadConfig,
type IUniverRPCWorkerThreadPluginConfig,
diff --git a/packages/rpc/src/plugin.ts b/packages/rpc/src/plugin.ts
index 509bd85e41..472179cce7 100644
--- a/packages/rpc/src/plugin.ts
+++ b/packages/rpc/src/plugin.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Plugin, PluginType } from '@univerjs/core';
import type { Dependency } from '@wendellhu/redi';
import { Inject, Injector } from '@wendellhu/redi';
diff --git a/packages/rpc/src/services/remote-instance/remote-instance.service.ts b/packages/rpc/src/services/remote-instance/remote-instance.service.ts
index d7a5fa4f24..feefe8e0d4 100644
--- a/packages/rpc/src/services/remote-instance/remote-instance.service.ts
+++ b/packages/rpc/src/services/remote-instance/remote-instance.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IExecutionOptions, IMutationInfo, IWorkbookData } from '@univerjs/core';
import { DocumentType, ICommandService, IUniverInstanceService } from '@univerjs/core';
import { createIdentifier } from '@wendellhu/redi';
diff --git a/packages/rpc/src/services/rpc/__tests__/rpc.service.spec.ts b/packages/rpc/src/services/rpc/__tests__/rpc.service.spec.ts
index 221067307a..3990db8afe 100644
--- a/packages/rpc/src/services/rpc/__tests__/rpc.service.spec.ts
+++ b/packages/rpc/src/services/rpc/__tests__/rpc.service.spec.ts
@@ -1,4 +1,19 @@
-/* eslint-disable no-magic-numbers */
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
/* eslint-disable @typescript-eslint/no-explicit-any */
import type { Observable } from 'rxjs';
import { of, Subject } from 'rxjs';
diff --git a/packages/rpc/src/services/rpc/channel.service.ts b/packages/rpc/src/services/rpc/channel.service.ts
index b4b3c8001a..8121ec93cf 100644
--- a/packages/rpc/src/services/rpc/channel.service.ts
+++ b/packages/rpc/src/services/rpc/channel.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { createIdentifier } from '@wendellhu/redi';
import type { IChannel, IMessageProtocol } from './rpc.service';
diff --git a/packages/rpc/src/services/rpc/implementations/web-worker-rpc.service.ts b/packages/rpc/src/services/rpc/implementations/web-worker-rpc.service.ts
index 05819d780c..a2c9307905 100644
--- a/packages/rpc/src/services/rpc/implementations/web-worker-rpc.service.ts
+++ b/packages/rpc/src/services/rpc/implementations/web-worker-rpc.service.ts
@@ -1,4 +1,19 @@
-/* eslint-disable @typescript-eslint/no-explicit-any */
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Observable, shareReplay } from 'rxjs';
import type { IMessageProtocol } from '../rpc.service';
diff --git a/packages/rpc/src/services/rpc/rpc.service.ts b/packages/rpc/src/services/rpc/rpc.service.ts
index abf64e526a..ce335b0767 100644
--- a/packages/rpc/src/services/rpc/rpc.service.ts
+++ b/packages/rpc/src/services/rpc/rpc.service.ts
@@ -1,4 +1,18 @@
-/* eslint-disable @typescript-eslint/no-explicit-any */
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { RxDisposable } from '@univerjs/core';
import type { Subscriber, Subscription } from 'rxjs';
diff --git a/packages/sheets-find/src/action/action-find.ts b/packages/sheets-find/src/action/action-find.ts
index 1339407317..640dd3c8b7 100644
--- a/packages/sheets-find/src/action/action-find.ts
+++ b/packages/sheets-find/src/action/action-find.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 class ActionFind {}
diff --git a/packages/sheets-find/src/action/i-action-set.ts b/packages/sheets-find/src/action/i-action-set.ts
index f8e2a8f7e6..aef205ba19 100644
--- a/packages/sheets-find/src/action/i-action-set.ts
+++ b/packages/sheets-find/src/action/i-action-set.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 class IActionSet {}
diff --git a/packages/sheets-find/src/action/i-action.ts b/packages/sheets-find/src/action/i-action.ts
index 9b031a3c3c..9658c7dcd1 100644
--- a/packages/sheets-find/src/action/i-action.ts
+++ b/packages/sheets-find/src/action/i-action.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 class IAction {}
diff --git a/packages/sheets-find/src/action/index.ts b/packages/sheets-find/src/action/index.ts
index ed50b6b20c..0fb3eced77 100644
--- a/packages/sheets-find/src/action/index.ts
+++ b/packages/sheets-find/src/action/index.ts
@@ -1,8 +1,19 @@
/**
- * en: Modify localData, conflict handling, generate data transfer protocol, submit for background execution
+ * Copyright 2023 DreamNum Inc.
*
- * zh: 修改localData、冲突处理、生成数据传输协议、提交后台执行
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './action-find';
export * from './i-action';
export * from './i-action-set';
diff --git a/packages/sheets-find/src/base/cache.ts b/packages/sheets-find/src/base/cache.ts
index 002f98640e..99132cf5a3 100644
--- a/packages/sheets-find/src/base/cache.ts
+++ b/packages/sheets-find/src/base/cache.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 class Cache {}
diff --git a/packages/sheets-find/src/base/index.ts b/packages/sheets-find/src/base/index.ts
index c221bf7f25..d19837d2da 100644
--- a/packages/sheets-find/src/base/index.ts
+++ b/packages/sheets-find/src/base/index.ts
@@ -1,2 +1,18 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './cache';
export * from './state';
diff --git a/packages/sheets-find/src/base/state.ts b/packages/sheets-find/src/base/state.ts
index f277253fef..7e3e28e720 100644
--- a/packages/sheets-find/src/base/state.ts
+++ b/packages/sheets-find/src/base/state.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 class State {}
diff --git a/packages/sheets-find/src/commands/operations/show-modal.operation.ts b/packages/sheets-find/src/commands/operations/show-modal.operation.ts
index 066430f18a..29f871dead 100644
--- a/packages/sheets-find/src/commands/operations/show-modal.operation.ts
+++ b/packages/sheets-find/src/commands/operations/show-modal.operation.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand } from '@univerjs/core';
import { CommandType } from '@univerjs/core';
import type { IAccessor } from '@wendellhu/redi';
diff --git a/packages/sheets-find/src/conflict/conflict-find.ts b/packages/sheets-find/src/conflict/conflict-find.ts
index 7eaeb5897d..c955bec9e5 100644
--- a/packages/sheets-find/src/conflict/conflict-find.ts
+++ b/packages/sheets-find/src/conflict/conflict-find.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 class ConflictFind {}
diff --git a/packages/sheets-find/src/conflict/i-conflict.ts b/packages/sheets-find/src/conflict/i-conflict.ts
index 02b0979966..3f21368c4c 100644
--- a/packages/sheets-find/src/conflict/i-conflict.ts
+++ b/packages/sheets-find/src/conflict/i-conflict.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 class IConflict {}
diff --git a/packages/sheets-find/src/conflict/index.ts b/packages/sheets-find/src/conflict/index.ts
index 3dae643967..6638c87eab 100644
--- a/packages/sheets-find/src/conflict/index.ts
+++ b/packages/sheets-find/src/conflict/index.ts
@@ -1,7 +1,18 @@
/**
- * en: Handling action conflicts
+ * Copyright 2023 DreamNum Inc.
*
- * zh: 处理action冲突
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './conflict-find';
export * from './i-conflict';
diff --git a/packages/sheets-find/src/const/index.ts b/packages/sheets-find/src/const/index.ts
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/packages/sheets-find/src/const/plugin-name.ts b/packages/sheets-find/src/const/plugin-name.ts
index 3e4ba61434..eb7c2ddce9 100644
--- a/packages/sheets-find/src/const/plugin-name.ts
+++ b/packages/sheets-find/src/const/plugin-name.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 FIND_PLUGIN_NAME = 'find';
diff --git a/packages/sheets-find/src/controllers/find-controller.ts b/packages/sheets-find/src/controllers/find-controller.ts
index 3ac0b8770f..c1186414b0 100644
--- a/packages/sheets-find/src/controllers/find-controller.ts
+++ b/packages/sheets-find/src/controllers/find-controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Disposable, ICommandService } from '@univerjs/core';
import { ComponentManager, IMenuService } from '@univerjs/ui';
import type { IDisposable } from '@wendellhu/redi';
diff --git a/packages/sheets-find/src/controllers/find-modal-controller.ts b/packages/sheets-find/src/controllers/find-modal-controller.ts
index 5c49b07aa2..785628cd1e 100644
--- a/packages/sheets-find/src/controllers/find-modal-controller.ts
+++ b/packages/sheets-find/src/controllers/find-modal-controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ComponentManager } from '@univerjs/ui';
import { Inject } from '@wendellhu/redi';
diff --git a/packages/sheets-find/src/controllers/location-content-controller.ts b/packages/sheets-find/src/controllers/location-content-controller.ts
index 6593990315..865cf03464 100644
--- a/packages/sheets-find/src/controllers/location-content-controller.ts
+++ b/packages/sheets-find/src/controllers/location-content-controller.ts
@@ -1,4 +1,18 @@
-// import { FindPlugin } from '../find-plugin';
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 class LocationContentController {
// private _plugin: FindPlugin;
diff --git a/packages/sheets-find/src/controllers/menu.ts b/packages/sheets-find/src/controllers/menu.ts
index d4faccb726..223fd53574 100644
--- a/packages/sheets-find/src/controllers/menu.ts
+++ b/packages/sheets-find/src/controllers/menu.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IMenuButtonItem } from '@univerjs/ui';
import { MenuItemType, MenuPosition } from '@univerjs/ui';
import type { IAccessor } from '@wendellhu/redi';
diff --git a/packages/sheets-find/src/controllers/search-content-controller.ts b/packages/sheets-find/src/controllers/search-content-controller.ts
index 07f4d9d134..4164d3cdda 100644
--- a/packages/sheets-find/src/controllers/search-content-controller.ts
+++ b/packages/sheets-find/src/controllers/search-content-controller.ts
@@ -1,6 +1,18 @@
-// import { FIND_PLUGIN_NAME } from '../const/plugin-name';
-// import { FindPlugin } from '../find-plugin';
-// import { SearchContent } from '../views/ui/search-content';
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 class SearchContentController {
// private _searchData;
diff --git a/packages/sheets-find/src/domain/index.ts b/packages/sheets-find/src/domain/index.ts
index 751ee29881..23dadcf841 100644
--- a/packages/sheets-find/src/domain/index.ts
+++ b/packages/sheets-find/src/domain/index.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './text-find';
diff --git a/packages/sheets-find/src/domain/text-find.ts b/packages/sheets-find/src/domain/text-find.ts
index 6cfad3d32d..4047b3be89 100644
--- a/packages/sheets-find/src/domain/text-find.ts
+++ b/packages/sheets-find/src/domain/text-find.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICellData, IGridRange, Nullable, Range, Worksheet } from '@univerjs/core';
import { FormatType, IUniverInstanceService, ObjectMatrix } from '@univerjs/core';
import { SelectionManagerService, transformCellDataToSelectionData } from '@univerjs/sheets';
diff --git a/packages/sheets-find/src/enum/index.ts b/packages/sheets-find/src/enum/index.ts
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/packages/sheets-find/src/find-plugin.ts b/packages/sheets-find/src/find-plugin.ts
index a9eb89f237..0b515b53ea 100644
--- a/packages/sheets-find/src/find-plugin.ts
+++ b/packages/sheets-find/src/find-plugin.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IUniverInstanceService, LocaleService, Plugin, PluginType } from '@univerjs/core';
// import { TextFinder } from './domain/text-find';
import type { Dependency } from '@wendellhu/redi';
diff --git a/packages/sheets-find/src/i-data/i-find.ts b/packages/sheets-find/src/i-data/i-find.ts
index a2db712e80..810bef3d6e 100644
--- a/packages/sheets-find/src/i-data/i-find.ts
+++ b/packages/sheets-find/src/i-data/i-find.ts
@@ -1,3 +1,19 @@
-import type { FormatType } from '@univerjs/core';
-
-export type FindType = FormatType | 'null' | 'text' | 'condition' | 'intervalRow' | 'intervalColumn';
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { FormatType } from '@univerjs/core';
+
+export type FindType = FormatType | 'null' | 'text' | 'condition' | 'intervalRow' | 'intervalColumn';
diff --git a/packages/sheets-find/src/i-data/index.ts b/packages/sheets-find/src/i-data/index.ts
index 53674d977b..95876f48db 100644
--- a/packages/sheets-find/src/i-data/index.ts
+++ b/packages/sheets-find/src/i-data/index.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './i-find';
diff --git a/packages/sheets-find/src/index.ts b/packages/sheets-find/src/index.ts
index 68f9beecab..a42fc2e496 100644
--- a/packages/sheets-find/src/index.ts
+++ b/packages/sheets-find/src/index.ts
@@ -1,2 +1,18 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { FindPlugin } from './find-plugin';
export { enUS, zhCN } from './locale';
diff --git a/packages/sheets-find/src/locale/en-US.ts b/packages/sheets-find/src/locale/en-US.ts
index bec17e12f4..af20f762e4 100644
--- a/packages/sheets-find/src/locale/en-US.ts
+++ b/packages/sheets-find/src/locale/en-US.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {
find: {
findLabel: 'Find and replace',
diff --git a/packages/sheets-find/src/locale/index.ts b/packages/sheets-find/src/locale/index.ts
index b0b1d48d5d..ac8ca08af1 100644
--- a/packages/sheets-find/src/locale/index.ts
+++ b/packages/sheets-find/src/locale/index.ts
@@ -1,2 +1,18 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 enUS } from './en-US';
export { default as zhCN } from './zh-CN';
diff --git a/packages/sheets-find/src/locale/zh-CN.ts b/packages/sheets-find/src/locale/zh-CN.ts
index 5802ca5e32..1e5e86994e 100644
--- a/packages/sheets-find/src/locale/zh-CN.ts
+++ b/packages/sheets-find/src/locale/zh-CN.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {
find: {
findLabel: '查找替换',
diff --git a/packages/sheets-find/src/main.tsx b/packages/sheets-find/src/main.tsx
index e2cf0a6a30..82d882b458 100644
--- a/packages/sheets-find/src/main.tsx
+++ b/packages/sheets-find/src/main.tsx
@@ -1,10 +1,18 @@
-// const uiDefaultConfigUp = {
-// container: 'universheet-demo-up',
-// };
-// const uiDefaultConfigDown = {
-// container: 'universheet-demo-down',
-// layout: {
-// outerLeft: false,
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
// outerRight: true,
diff --git a/packages/sheets-find/src/proxy-data/i-proxy-data-set.ts b/packages/sheets-find/src/proxy-data/i-proxy-data-set.ts
index 9bf75cd768..f94bd813be 100644
--- a/packages/sheets-find/src/proxy-data/i-proxy-data-set.ts
+++ b/packages/sheets-find/src/proxy-data/i-proxy-data-set.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 class IProxyDataSet {}
diff --git a/packages/sheets-find/src/proxy-data/i-proxy-data.ts b/packages/sheets-find/src/proxy-data/i-proxy-data.ts
index 0bd8a3cf07..4cc4740274 100644
--- a/packages/sheets-find/src/proxy-data/i-proxy-data.ts
+++ b/packages/sheets-find/src/proxy-data/i-proxy-data.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 class IProxyData {}
diff --git a/packages/sheets-find/src/proxy-data/index.ts b/packages/sheets-find/src/proxy-data/index.ts
index 513c324871..31089db884 100644
--- a/packages/sheets-find/src/proxy-data/index.ts
+++ b/packages/sheets-find/src/proxy-data/index.ts
@@ -1,8 +1,19 @@
/**
- * en: Transfer to background data protocol
+ * Copyright 2023 DreamNum Inc.
*
- * zh: 传输到后台数据协议
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './i-proxy-data';
export * from './i-proxy-data-set';
export * from './proxy-data-find';
diff --git a/packages/sheets-find/src/proxy-data/proxy-data-find.ts b/packages/sheets-find/src/proxy-data/proxy-data-find.ts
index f30007621c..81d32bdbee 100644
--- a/packages/sheets-find/src/proxy-data/proxy-data-find.ts
+++ b/packages/sheets-find/src/proxy-data/proxy-data-find.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 class IProxyDataFind {}
diff --git a/packages/sheets-find/src/services/find-service.ts b/packages/sheets-find/src/services/find-service.ts
index d381ae071d..8dfcb75562 100644
--- a/packages/sheets-find/src/services/find-service.ts
+++ b/packages/sheets-find/src/services/find-service.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 class FindService {}
diff --git a/packages/sheets-find/src/services/find.service.ts b/packages/sheets-find/src/services/find.service.ts
index d7d5f8e5ac..e3529a37cb 100644
--- a/packages/sheets-find/src/services/find.service.ts
+++ b/packages/sheets-find/src/services/find.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Inject } from '@wendellhu/redi';
import { FindModalController } from '../controllers/find-modal-controller';
diff --git a/packages/sheets-find/src/services/index.ts b/packages/sheets-find/src/services/index.ts
index 0b849e4167..701f27ff38 100644
--- a/packages/sheets-find/src/services/index.ts
+++ b/packages/sheets-find/src/services/index.ts
@@ -1,7 +1,17 @@
/**
+ * Copyright 2023 DreamNum Inc.
*
- * en: Operate and register localData
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
*
- * zh: 操作、注册localData
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './find-service';
diff --git a/packages/sheets-find/src/shared/index.ts b/packages/sheets-find/src/shared/index.ts
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/packages/sheets-find/src/types/index.d.ts b/packages/sheets-find/src/types/index.d.ts
index e99acc2516..7b8d7cfd20 100644
--- a/packages/sheets-find/src/types/index.d.ts
+++ b/packages/sheets-find/src/types/index.d.ts
@@ -1,2 +1,18 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from '../index';
declare module '@univerjs/sheets-find' {}
diff --git a/packages/sheets-find/src/util/util.ts b/packages/sheets-find/src/util/util.ts
index 64039173a4..78350bef30 100644
--- a/packages/sheets-find/src/util/util.ts
+++ b/packages/sheets-find/src/util/util.ts
@@ -1,2 +1,18 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 getRegExpStr = (str: string) =>
str.replace('~*', '\\*').replace('~?', '\\?').replace('.', '\\.').replace('*', '.*').replace('?', '.');
diff --git a/packages/sheets-find/src/views/event.ts b/packages/sheets-find/src/views/event.ts
index 8c34a9ab4c..d12e7075b6 100644
--- a/packages/sheets-find/src/views/event.ts
+++ b/packages/sheets-find/src/views/event.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 class Event {}
diff --git a/packages/sheets-find/src/views/index.ts b/packages/sheets-find/src/views/index.ts
index 0f9494114c..e5680ad8fa 100644
--- a/packages/sheets-find/src/views/index.ts
+++ b/packages/sheets-find/src/views/index.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './event';
export * from './observer-list';
export * from './render';
diff --git a/packages/sheets-find/src/views/observer-list.ts b/packages/sheets-find/src/views/observer-list.ts
index a1b96aa311..4036dc3a6b 100644
--- a/packages/sheets-find/src/views/observer-list.ts
+++ b/packages/sheets-find/src/views/observer-list.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 class ObserverList {}
diff --git a/packages/sheets-find/src/views/render.ts b/packages/sheets-find/src/views/render.ts
index faca95e82e..99bbe9706f 100644
--- a/packages/sheets-find/src/views/render.ts
+++ b/packages/sheets-find/src/views/render.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 class Render {}
diff --git a/packages/sheets-find/src/views/ui/FindModal.tsx b/packages/sheets-find/src/views/ui/FindModal.tsx
index 1dfa38f31a..fb878a635a 100644
--- a/packages/sheets-find/src/views/ui/FindModal.tsx
+++ b/packages/sheets-find/src/views/ui/FindModal.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICheckboxGroupProps } from '@univerjs/design';
import type { BaseComponentProps } from '@univerjs/ui';
import React, { Component } from 'react';
diff --git a/packages/sheets-find/src/views/ui/LocationContent.tsx b/packages/sheets-find/src/views/ui/LocationContent.tsx
index 726ab85b6e..694efa28d9 100644
--- a/packages/sheets-find/src/views/ui/LocationContent.tsx
+++ b/packages/sheets-find/src/views/ui/LocationContent.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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, { Component } from 'react';
interface LocationProps {
diff --git a/packages/sheets-find/src/views/ui/SearchContent.tsx b/packages/sheets-find/src/views/ui/SearchContent.tsx
index 157bff8b51..67cad57014 100644
--- a/packages/sheets-find/src/views/ui/SearchContent.tsx
+++ b/packages/sheets-find/src/views/ui/SearchContent.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '@univerjs/core';
import React, { Component } from 'react';
diff --git a/packages/sheets-formula/src/commands/commands/formula-clipboard.command.ts b/packages/sheets-formula/src/commands/commands/formula-clipboard.command.ts
index bb41544fbd..f457275c49 100644
--- a/packages/sheets-formula/src/commands/commands/formula-clipboard.command.ts
+++ b/packages/sheets-formula/src/commands/commands/formula-clipboard.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand } from '@univerjs/core';
import { CommandType, ICommandService } from '@univerjs/core';
import { SheetPasteCommand } from '@univerjs/sheets-ui';
diff --git a/packages/sheets-formula/src/commands/commands/insert-function.command.ts b/packages/sheets-formula/src/commands/commands/insert-function.command.ts
index 4c0840377f..54a75cfa2d 100644
--- a/packages/sheets-formula/src/commands/commands/insert-function.command.ts
+++ b/packages/sheets-formula/src/commands/commands/insert-function.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICellData, ICommand, IRange } from '@univerjs/core';
import { CommandType, ICommandService, ObjectMatrix, Tools } from '@univerjs/core';
import type { ISetRangeValuesCommandParams } from '@univerjs/sheets';
diff --git a/packages/sheets-formula/src/commands/operations/__tests__/create-command-test-bed.ts b/packages/sheets-formula/src/commands/operations/__tests__/create-command-test-bed.ts
index 0de9014ffc..f2d1f6386d 100644
--- a/packages/sheets-formula/src/commands/operations/__tests__/create-command-test-bed.ts
+++ b/packages/sheets-formula/src/commands/operations/__tests__/create-command-test-bed.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IWorkbookData } from '@univerjs/core';
import { ILogService, IUniverInstanceService, LocaleType, LogLevel, Plugin, PluginType, Univer } from '@univerjs/core';
import { LexerTreeBuilder } from '@univerjs/engine-formula';
diff --git a/packages/sheets-formula/src/commands/operations/__tests__/insert-function.operation.spec.ts b/packages/sheets-formula/src/commands/operations/__tests__/insert-function.operation.spec.ts
index e0903068c6..193d1348bb 100644
--- a/packages/sheets-formula/src/commands/operations/__tests__/insert-function.operation.spec.ts
+++ b/packages/sheets-formula/src/commands/operations/__tests__/insert-function.operation.spec.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICellData, Nullable, Univer } from '@univerjs/core';
import { ICommandService, IUniverInstanceService, RANGE_TYPE, RedoCommand, UndoCommand } from '@univerjs/core';
import {
diff --git a/packages/sheets-formula/src/commands/operations/editor-formula.operation.ts b/packages/sheets-formula/src/commands/operations/editor-formula.operation.ts
index 8825c618e7..74b819a759 100644
--- a/packages/sheets-formula/src/commands/operations/editor-formula.operation.ts
+++ b/packages/sheets-formula/src/commands/operations/editor-formula.operation.ts
@@ -1,4 +1,18 @@
-// This file provides operations to change formula selection of sheets.
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IOperation } from '@univerjs/core';
import { CommandType } from '@univerjs/core';
diff --git a/packages/sheets-formula/src/commands/operations/help-function.operation.ts b/packages/sheets-formula/src/commands/operations/help-function.operation.ts
index a0ae33e4d0..e2c156490f 100644
--- a/packages/sheets-formula/src/commands/operations/help-function.operation.ts
+++ b/packages/sheets-formula/src/commands/operations/help-function.operation.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand } from '@univerjs/core';
import { CommandType } from '@univerjs/core';
import type { IAccessor } from '@wendellhu/redi';
diff --git a/packages/sheets-formula/src/commands/operations/insert-function.operation.ts b/packages/sheets-formula/src/commands/operations/insert-function.operation.ts
index 78a843526f..95e7f89bc2 100644
--- a/packages/sheets-formula/src/commands/operations/insert-function.operation.ts
+++ b/packages/sheets-formula/src/commands/operations/insert-function.operation.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICellData, ICommand, IRange, Nullable, ObjectMatrix } from '@univerjs/core';
import {
CellValueType,
diff --git a/packages/sheets-formula/src/commands/operations/more-functions.operation.ts b/packages/sheets-formula/src/commands/operations/more-functions.operation.ts
index 06de65a958..d83abcbde3 100644
--- a/packages/sheets-formula/src/commands/operations/more-functions.operation.ts
+++ b/packages/sheets-formula/src/commands/operations/more-functions.operation.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand } from '@univerjs/core';
import { CommandType } from '@univerjs/core';
import { ISidebarService } from '@univerjs/ui';
diff --git a/packages/sheets-formula/src/commands/operations/reference-absolute.operation.ts b/packages/sheets-formula/src/commands/operations/reference-absolute.operation.ts
index e6cf10a047..110532aac8 100644
--- a/packages/sheets-formula/src/commands/operations/reference-absolute.operation.ts
+++ b/packages/sheets-formula/src/commands/operations/reference-absolute.operation.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand } from '@univerjs/core';
import { CommandType } from '@univerjs/core';
import type { IAccessor } from '@wendellhu/redi';
diff --git a/packages/sheets-formula/src/commands/operations/search-function.operation.ts b/packages/sheets-formula/src/commands/operations/search-function.operation.ts
index 44d552a522..f762b34f4f 100644
--- a/packages/sheets-formula/src/commands/operations/search-function.operation.ts
+++ b/packages/sheets-formula/src/commands/operations/search-function.operation.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand } from '@univerjs/core';
import { CommandType } from '@univerjs/core';
import type { IAccessor } from '@wendellhu/redi';
diff --git a/packages/sheets-formula/src/common/plugin-name.ts b/packages/sheets-formula/src/common/plugin-name.ts
index 944ac89a99..f87048aeb8 100644
--- a/packages/sheets-formula/src/common/plugin-name.ts
+++ b/packages/sheets-formula/src/common/plugin-name.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 FORMULA_UI_PLUGIN_NAME = 'formula-ui';
diff --git a/packages/sheets-formula/src/common/prompt.ts b/packages/sheets-formula/src/common/prompt.ts
index 84d2e0a689..a3479f486e 100644
--- a/packages/sheets-formula/src/common/prompt.ts
+++ b/packages/sheets-formula/src/common/prompt.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 META_KEY_CTRL_AND_SHIFT = 'meta_key_ctrl_And_Shift';
diff --git a/packages/sheets-formula/src/common/selection.ts b/packages/sheets-formula/src/common/selection.ts
index ee72497ad9..cf0523518b 100644
--- a/packages/sheets-formula/src/common/selection.ts
+++ b/packages/sheets-formula/src/common/selection.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { TinyColor } from '@ctrl/tinycolor';
import type { ThemeService } from '@univerjs/core';
import type { ISelectionStyle } from '@univerjs/sheets';
diff --git a/packages/sheets-formula/src/controllers/__tests__/create-command-test-bed.ts b/packages/sheets-formula/src/controllers/__tests__/create-command-test-bed.ts
index d6a9c71f04..116c51e0e3 100644
--- a/packages/sheets-formula/src/controllers/__tests__/create-command-test-bed.ts
+++ b/packages/sheets-formula/src/controllers/__tests__/create-command-test-bed.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IWorkbookData, Workbook } from '@univerjs/core';
import { ILogService, IUniverInstanceService, LocaleType, LogLevel, Plugin, PluginType, Univer } from '@univerjs/core';
import { LexerTreeBuilder } from '@univerjs/engine-formula';
diff --git a/packages/sheets-formula/src/controllers/__tests__/formula-auto-fill.controller.spec.ts b/packages/sheets-formula/src/controllers/__tests__/formula-auto-fill.controller.spec.ts
index cb921d1c94..6a6215072a 100644
--- a/packages/sheets-formula/src/controllers/__tests__/formula-auto-fill.controller.spec.ts
+++ b/packages/sheets-formula/src/controllers/__tests__/formula-auto-fill.controller.spec.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICellData, Nullable, Univer } from '@univerjs/core';
import {
ICommandService,
diff --git a/packages/sheets-formula/src/controllers/__tests__/formula-clipboard.controller.spec.ts b/packages/sheets-formula/src/controllers/__tests__/formula-clipboard.controller.spec.ts
index 154027b1ee..d9ae10133f 100644
--- a/packages/sheets-formula/src/controllers/__tests__/formula-clipboard.controller.spec.ts
+++ b/packages/sheets-formula/src/controllers/__tests__/formula-clipboard.controller.spec.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICellData, IMutationInfo, Nullable, Univer } from '@univerjs/core';
import { ICommandService, IUniverInstanceService, ObjectMatrix } from '@univerjs/core';
import { LexerTreeBuilder } from '@univerjs/engine-formula';
diff --git a/packages/sheets-formula/src/controllers/__tests__/update-formula.controller.spec.ts b/packages/sheets-formula/src/controllers/__tests__/update-formula.controller.spec.ts
index fd997ff86a..869f69bd83 100644
--- a/packages/sheets-formula/src/controllers/__tests__/update-formula.controller.spec.ts
+++ b/packages/sheets-formula/src/controllers/__tests__/update-formula.controller.spec.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICellData, Nullable, Univer } from '@univerjs/core';
import { ICommandService, IUniverInstanceService, RANGE_TYPE } from '@univerjs/core';
import { MoveRowsCommand, NORMAL_SELECTION_PLUGIN_NAME, SelectionManagerService } from '@univerjs/sheets';
diff --git a/packages/sheets-formula/src/controllers/__tests__/utils.spec.ts b/packages/sheets-formula/src/controllers/__tests__/utils.spec.ts
index a346704c29..ac921501f1 100644
--- a/packages/sheets-formula/src/controllers/__tests__/utils.spec.ts
+++ b/packages/sheets-formula/src/controllers/__tests__/utils.spec.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {
DeleteRangeMoveLeftCommand,
DeleteRangeMoveUpCommand,
diff --git a/packages/sheets-formula/src/controllers/active-dirty.controller.ts b/packages/sheets-formula/src/controllers/active-dirty.controller.ts
index a4515ef554..345e8e0e95 100644
--- a/packages/sheets-formula/src/controllers/active-dirty.controller.ts
+++ b/packages/sheets-formula/src/controllers/active-dirty.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICellData, ICommandInfo, IRange, IUnitRange, Nullable, ObjectMatrixPrimitiveType } from '@univerjs/core';
import {
Dimension,
diff --git a/packages/sheets-formula/src/controllers/array-formula-display.controller.ts b/packages/sheets-formula/src/controllers/array-formula-display.controller.ts
index 4a7814147e..4d22fb5fe0 100644
--- a/packages/sheets-formula/src/controllers/array-formula-display.controller.ts
+++ b/packages/sheets-formula/src/controllers/array-formula-display.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommandInfo } from '@univerjs/core';
import { Disposable, ICommandService, LifecycleStages, OnLifecycle } from '@univerjs/core';
import type { ISetArrayFormulaDataMutationParams } from '@univerjs/engine-formula';
diff --git a/packages/sheets-formula/src/controllers/formula-auto-fill.controller.ts b/packages/sheets-formula/src/controllers/formula-auto-fill.controller.ts
index 44df30d030..29f9cc863b 100644
--- a/packages/sheets-formula/src/controllers/formula-auto-fill.controller.ts
+++ b/packages/sheets-formula/src/controllers/formula-auto-fill.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICellData, Nullable } from '@univerjs/core';
import {
Direction,
diff --git a/packages/sheets-formula/src/controllers/formula-clipboard.controller.ts b/packages/sheets-formula/src/controllers/formula-clipboard.controller.ts
index 472fbcb52d..7672242b10 100644
--- a/packages/sheets-formula/src/controllers/formula-clipboard.controller.ts
+++ b/packages/sheets-formula/src/controllers/formula-clipboard.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICellData, IMutationInfo, IRange } from '@univerjs/core';
import {
Disposable,
diff --git a/packages/sheets-formula/src/controllers/formula-editor-show.controller.ts b/packages/sheets-formula/src/controllers/formula-editor-show.controller.ts
index 000b6605e8..5d1ebe1b5f 100644
--- a/packages/sheets-formula/src/controllers/formula-editor-show.controller.ts
+++ b/packages/sheets-formula/src/controllers/formula-editor-show.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { TinyColor } from '@ctrl/tinycolor';
import type { ICellDataForSheetInterceptor, ICommandInfo, IRange, Nullable } from '@univerjs/core';
import {
diff --git a/packages/sheets-formula/src/controllers/formula-input.controller.ts b/packages/sheets-formula/src/controllers/formula-input.controller.ts
index e2c283a772..89516fbfb3 100644
--- a/packages/sheets-formula/src/controllers/formula-input.controller.ts
+++ b/packages/sheets-formula/src/controllers/formula-input.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommandInfo } from '@univerjs/core';
import {
AbsoluteRefType,
diff --git a/packages/sheets-formula/src/controllers/formula-ui.controller.ts b/packages/sheets-formula/src/controllers/formula-ui.controller.ts
index 2b7d88f72c..0f55999292 100644
--- a/packages/sheets-formula/src/controllers/formula-ui.controller.ts
+++ b/packages/sheets-formula/src/controllers/formula-ui.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Disposable, ICommandService, LifecycleStages, OnLifecycle } from '@univerjs/core';
import type { IDesktopUIController } from '@univerjs/ui';
import { ComponentManager, IMenuService, IShortcutService, IUIController } from '@univerjs/ui';
diff --git a/packages/sheets-formula/src/controllers/menu.ts b/packages/sheets-formula/src/controllers/menu.ts
index df531f88f2..76eec1eef6 100644
--- a/packages/sheets-formula/src/controllers/menu.ts
+++ b/packages/sheets-formula/src/controllers/menu.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { PASTE_SPECIAL_MENU_ID } from '@univerjs/sheets-ui';
import type { IMenuItem } from '@univerjs/ui';
import { MenuGroup, MenuItemType, MenuPosition } from '@univerjs/ui';
diff --git a/packages/sheets-formula/src/controllers/prompt.controller.ts b/packages/sheets-formula/src/controllers/prompt.controller.ts
index 0413903b1b..e8a4e30060 100644
--- a/packages/sheets-formula/src/controllers/prompt.controller.ts
+++ b/packages/sheets-formula/src/controllers/prompt.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommandInfo, IRangeWithCoord, ITextRun, Nullable } from '@univerjs/core';
import {
deserializeRangeWithSheet,
diff --git a/packages/sheets-formula/src/controllers/shortcuts/prompt.shortcut.ts b/packages/sheets-formula/src/controllers/shortcuts/prompt.shortcut.ts
index a0f14c5007..17c13af5fe 100644
--- a/packages/sheets-formula/src/controllers/shortcuts/prompt.shortcut.ts
+++ b/packages/sheets-formula/src/controllers/shortcuts/prompt.shortcut.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { DeviceInputEventType } from '@univerjs/engine-render';
import { whenEditorInputFormulaActivated } from '@univerjs/sheets-ui';
import type { IShortcutItem } from '@univerjs/ui';
diff --git a/packages/sheets-formula/src/controllers/trigger-calculation.controller.ts b/packages/sheets-formula/src/controllers/trigger-calculation.controller.ts
index d4a9020bd7..a1dad63a59 100644
--- a/packages/sheets-formula/src/controllers/trigger-calculation.controller.ts
+++ b/packages/sheets-formula/src/controllers/trigger-calculation.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommandInfo, IUnitRange } from '@univerjs/core';
import { Disposable, ICommandService, LifecycleStages, OnLifecycle } from '@univerjs/core';
import type {
diff --git a/packages/sheets-formula/src/controllers/update-formula.controller.ts b/packages/sheets-formula/src/controllers/update-formula.controller.ts
index c934d247ea..6f390dcdab 100644
--- a/packages/sheets-formula/src/controllers/update-formula.controller.ts
+++ b/packages/sheets-formula/src/controllers/update-formula.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICellData, ICommandInfo, IExecutionOptions, IRange, IUnitRange, Nullable } from '@univerjs/core';
import {
deserializeRangeWithSheet,
diff --git a/packages/sheets-formula/src/controllers/utils.ts b/packages/sheets-formula/src/controllers/utils.ts
index d8c066d491..cb627bbf5e 100644
--- a/packages/sheets-formula/src/controllers/utils.ts
+++ b/packages/sheets-formula/src/controllers/utils.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommandInfo, Nullable, ObjectMatrixPrimitiveType } from '@univerjs/core';
import { Dimension, ObjectMatrix, RANGE_TYPE } from '@univerjs/core';
import type { IArrayFormulaRangeType } from '@univerjs/engine-formula';
diff --git a/packages/sheets-formula/src/formula-ui-plugin.ts b/packages/sheets-formula/src/formula-ui-plugin.ts
index f3f19a2dd0..b8969aeb01 100644
--- a/packages/sheets-formula/src/formula-ui-plugin.ts
+++ b/packages/sheets-formula/src/formula-ui-plugin.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IUniverInstanceService, LocaleService, Plugin, PluginType } from '@univerjs/core';
import type { IFunctionInfo } from '@univerjs/engine-formula';
import type { Dependency } from '@wendellhu/redi';
diff --git a/packages/sheets-formula/src/index.ts b/packages/sheets-formula/src/index.ts
index 154afbd0fe..f9a0092b39 100644
--- a/packages/sheets-formula/src/index.ts
+++ b/packages/sheets-formula/src/index.ts
@@ -1,2 +1,18 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { UniverSheetsFormula } from './formula-ui-plugin';
export { enUS, zhCN } from './locale';
diff --git a/packages/sheets-formula/src/locale/en-US.ts b/packages/sheets-formula/src/locale/en-US.ts
index 879155e0bf..63f4c0b2c0 100644
--- a/packages/sheets-formula/src/locale/en-US.ts
+++ b/packages/sheets-formula/src/locale/en-US.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 array from './function-list/array/en-US';
import compatibility from './function-list/compatibility/en-US';
import cube from './function-list/cube/en-US';
diff --git a/packages/sheets-formula/src/locale/function-list/array/en-US.ts b/packages/sheets-formula/src/locale/function-list/array/en-US.ts
index ff8b4c5632..ef2cf5cf67 100644
--- a/packages/sheets-formula/src/locale/function-list/array/en-US.ts
+++ b/packages/sheets-formula/src/locale/function-list/array/en-US.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {};
diff --git a/packages/sheets-formula/src/locale/function-list/array/zh-CN.ts b/packages/sheets-formula/src/locale/function-list/array/zh-CN.ts
index ff8b4c5632..ef2cf5cf67 100644
--- a/packages/sheets-formula/src/locale/function-list/array/zh-CN.ts
+++ b/packages/sheets-formula/src/locale/function-list/array/zh-CN.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {};
diff --git a/packages/sheets-formula/src/locale/function-list/compatibility/en-US.ts b/packages/sheets-formula/src/locale/function-list/compatibility/en-US.ts
index ff8b4c5632..ef2cf5cf67 100644
--- a/packages/sheets-formula/src/locale/function-list/compatibility/en-US.ts
+++ b/packages/sheets-formula/src/locale/function-list/compatibility/en-US.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {};
diff --git a/packages/sheets-formula/src/locale/function-list/compatibility/zh-CN.ts b/packages/sheets-formula/src/locale/function-list/compatibility/zh-CN.ts
index ff8b4c5632..ef2cf5cf67 100644
--- a/packages/sheets-formula/src/locale/function-list/compatibility/zh-CN.ts
+++ b/packages/sheets-formula/src/locale/function-list/compatibility/zh-CN.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {};
diff --git a/packages/sheets-formula/src/locale/function-list/cube/en-US.ts b/packages/sheets-formula/src/locale/function-list/cube/en-US.ts
index ff8b4c5632..ef2cf5cf67 100644
--- a/packages/sheets-formula/src/locale/function-list/cube/en-US.ts
+++ b/packages/sheets-formula/src/locale/function-list/cube/en-US.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {};
diff --git a/packages/sheets-formula/src/locale/function-list/cube/zh-CN.ts b/packages/sheets-formula/src/locale/function-list/cube/zh-CN.ts
index ff8b4c5632..ef2cf5cf67 100644
--- a/packages/sheets-formula/src/locale/function-list/cube/zh-CN.ts
+++ b/packages/sheets-formula/src/locale/function-list/cube/zh-CN.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {};
diff --git a/packages/sheets-formula/src/locale/function-list/database/en-US.ts b/packages/sheets-formula/src/locale/function-list/database/en-US.ts
index ff8b4c5632..ef2cf5cf67 100644
--- a/packages/sheets-formula/src/locale/function-list/database/en-US.ts
+++ b/packages/sheets-formula/src/locale/function-list/database/en-US.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {};
diff --git a/packages/sheets-formula/src/locale/function-list/database/zh-CN.ts b/packages/sheets-formula/src/locale/function-list/database/zh-CN.ts
index ff8b4c5632..ef2cf5cf67 100644
--- a/packages/sheets-formula/src/locale/function-list/database/zh-CN.ts
+++ b/packages/sheets-formula/src/locale/function-list/database/zh-CN.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {};
diff --git a/packages/sheets-formula/src/locale/function-list/date/en-US.ts b/packages/sheets-formula/src/locale/function-list/date/en-US.ts
index ff8b4c5632..ef2cf5cf67 100644
--- a/packages/sheets-formula/src/locale/function-list/date/en-US.ts
+++ b/packages/sheets-formula/src/locale/function-list/date/en-US.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {};
diff --git a/packages/sheets-formula/src/locale/function-list/date/zh-CN.ts b/packages/sheets-formula/src/locale/function-list/date/zh-CN.ts
index ff8b4c5632..ef2cf5cf67 100644
--- a/packages/sheets-formula/src/locale/function-list/date/zh-CN.ts
+++ b/packages/sheets-formula/src/locale/function-list/date/zh-CN.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {};
diff --git a/packages/sheets-formula/src/locale/function-list/engineering/en-US.ts b/packages/sheets-formula/src/locale/function-list/engineering/en-US.ts
index ff8b4c5632..ef2cf5cf67 100644
--- a/packages/sheets-formula/src/locale/function-list/engineering/en-US.ts
+++ b/packages/sheets-formula/src/locale/function-list/engineering/en-US.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {};
diff --git a/packages/sheets-formula/src/locale/function-list/engineering/zh-CN.ts b/packages/sheets-formula/src/locale/function-list/engineering/zh-CN.ts
index ff8b4c5632..ef2cf5cf67 100644
--- a/packages/sheets-formula/src/locale/function-list/engineering/zh-CN.ts
+++ b/packages/sheets-formula/src/locale/function-list/engineering/zh-CN.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {};
diff --git a/packages/sheets-formula/src/locale/function-list/financial/en-US.ts b/packages/sheets-formula/src/locale/function-list/financial/en-US.ts
index ff8b4c5632..ef2cf5cf67 100644
--- a/packages/sheets-formula/src/locale/function-list/financial/en-US.ts
+++ b/packages/sheets-formula/src/locale/function-list/financial/en-US.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {};
diff --git a/packages/sheets-formula/src/locale/function-list/financial/zh-CN.ts b/packages/sheets-formula/src/locale/function-list/financial/zh-CN.ts
index ff8b4c5632..ef2cf5cf67 100644
--- a/packages/sheets-formula/src/locale/function-list/financial/zh-CN.ts
+++ b/packages/sheets-formula/src/locale/function-list/financial/zh-CN.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {};
diff --git a/packages/sheets-formula/src/locale/function-list/information/en-US.ts b/packages/sheets-formula/src/locale/function-list/information/en-US.ts
index ff8b4c5632..ef2cf5cf67 100644
--- a/packages/sheets-formula/src/locale/function-list/information/en-US.ts
+++ b/packages/sheets-formula/src/locale/function-list/information/en-US.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {};
diff --git a/packages/sheets-formula/src/locale/function-list/information/zh-CN.ts b/packages/sheets-formula/src/locale/function-list/information/zh-CN.ts
index ff8b4c5632..ef2cf5cf67 100644
--- a/packages/sheets-formula/src/locale/function-list/information/zh-CN.ts
+++ b/packages/sheets-formula/src/locale/function-list/information/zh-CN.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {};
diff --git a/packages/sheets-formula/src/locale/function-list/logical/en-US.ts b/packages/sheets-formula/src/locale/function-list/logical/en-US.ts
index ff8b4c5632..ef2cf5cf67 100644
--- a/packages/sheets-formula/src/locale/function-list/logical/en-US.ts
+++ b/packages/sheets-formula/src/locale/function-list/logical/en-US.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {};
diff --git a/packages/sheets-formula/src/locale/function-list/logical/zh-CN.ts b/packages/sheets-formula/src/locale/function-list/logical/zh-CN.ts
index ff8b4c5632..ef2cf5cf67 100644
--- a/packages/sheets-formula/src/locale/function-list/logical/zh-CN.ts
+++ b/packages/sheets-formula/src/locale/function-list/logical/zh-CN.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {};
diff --git a/packages/sheets-formula/src/locale/function-list/lookup/en-US.ts b/packages/sheets-formula/src/locale/function-list/lookup/en-US.ts
index ff8b4c5632..ef2cf5cf67 100644
--- a/packages/sheets-formula/src/locale/function-list/lookup/en-US.ts
+++ b/packages/sheets-formula/src/locale/function-list/lookup/en-US.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {};
diff --git a/packages/sheets-formula/src/locale/function-list/lookup/zh-CN.ts b/packages/sheets-formula/src/locale/function-list/lookup/zh-CN.ts
index ff8b4c5632..ef2cf5cf67 100644
--- a/packages/sheets-formula/src/locale/function-list/lookup/zh-CN.ts
+++ b/packages/sheets-formula/src/locale/function-list/lookup/zh-CN.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {};
diff --git a/packages/sheets-formula/src/locale/function-list/math/en-US.ts b/packages/sheets-formula/src/locale/function-list/math/en-US.ts
index a88b36a788..bc80233571 100644
--- a/packages/sheets-formula/src/locale/function-list/math/en-US.ts
+++ b/packages/sheets-formula/src/locale/function-list/math/en-US.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {
SUM: {
description: 'You can add individual values, cell references or ranges or a mix of all three.',
diff --git a/packages/sheets-formula/src/locale/function-list/math/zh-CN.ts b/packages/sheets-formula/src/locale/function-list/math/zh-CN.ts
index c8ed5a7989..7d6bc99cec 100644
--- a/packages/sheets-formula/src/locale/function-list/math/zh-CN.ts
+++ b/packages/sheets-formula/src/locale/function-list/math/zh-CN.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {
SUM: {
description: '将单个值、单元格引用或是区域相加,或者将三者的组合相加。',
diff --git a/packages/sheets-formula/src/locale/function-list/statistical/en-US.ts b/packages/sheets-formula/src/locale/function-list/statistical/en-US.ts
index 183926d97a..56e7378f3f 100644
--- a/packages/sheets-formula/src/locale/function-list/statistical/en-US.ts
+++ b/packages/sheets-formula/src/locale/function-list/statistical/en-US.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {
AVERAGE: {
description: 'Returns the average (arithmetic mean) of the arguments.',
diff --git a/packages/sheets-formula/src/locale/function-list/statistical/zh-CN.ts b/packages/sheets-formula/src/locale/function-list/statistical/zh-CN.ts
index 6660f0f3bb..a4cf0bb2b9 100644
--- a/packages/sheets-formula/src/locale/function-list/statistical/zh-CN.ts
+++ b/packages/sheets-formula/src/locale/function-list/statistical/zh-CN.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {
AVERAGE: {
description: '返回参数的平均值(算术平均值)。',
diff --git a/packages/sheets-formula/src/locale/function-list/text/en-US.ts b/packages/sheets-formula/src/locale/function-list/text/en-US.ts
index ff8b4c5632..ef2cf5cf67 100644
--- a/packages/sheets-formula/src/locale/function-list/text/en-US.ts
+++ b/packages/sheets-formula/src/locale/function-list/text/en-US.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {};
diff --git a/packages/sheets-formula/src/locale/function-list/text/zh-CN.ts b/packages/sheets-formula/src/locale/function-list/text/zh-CN.ts
index ff8b4c5632..ef2cf5cf67 100644
--- a/packages/sheets-formula/src/locale/function-list/text/zh-CN.ts
+++ b/packages/sheets-formula/src/locale/function-list/text/zh-CN.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {};
diff --git a/packages/sheets-formula/src/locale/function-list/univer/en-US.ts b/packages/sheets-formula/src/locale/function-list/univer/en-US.ts
index ff8b4c5632..ef2cf5cf67 100644
--- a/packages/sheets-formula/src/locale/function-list/univer/en-US.ts
+++ b/packages/sheets-formula/src/locale/function-list/univer/en-US.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {};
diff --git a/packages/sheets-formula/src/locale/function-list/univer/zh-CN.ts b/packages/sheets-formula/src/locale/function-list/univer/zh-CN.ts
index ff8b4c5632..ef2cf5cf67 100644
--- a/packages/sheets-formula/src/locale/function-list/univer/zh-CN.ts
+++ b/packages/sheets-formula/src/locale/function-list/univer/zh-CN.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {};
diff --git a/packages/sheets-formula/src/locale/function-list/web/en-US.ts b/packages/sheets-formula/src/locale/function-list/web/en-US.ts
index ff8b4c5632..ef2cf5cf67 100644
--- a/packages/sheets-formula/src/locale/function-list/web/en-US.ts
+++ b/packages/sheets-formula/src/locale/function-list/web/en-US.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {};
diff --git a/packages/sheets-formula/src/locale/function-list/web/zh-CN.ts b/packages/sheets-formula/src/locale/function-list/web/zh-CN.ts
index ff8b4c5632..ef2cf5cf67 100644
--- a/packages/sheets-formula/src/locale/function-list/web/zh-CN.ts
+++ b/packages/sheets-formula/src/locale/function-list/web/zh-CN.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {};
diff --git a/packages/sheets-formula/src/locale/index.ts b/packages/sheets-formula/src/locale/index.ts
index b0b1d48d5d..ac8ca08af1 100644
--- a/packages/sheets-formula/src/locale/index.ts
+++ b/packages/sheets-formula/src/locale/index.ts
@@ -1,2 +1,18 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 enUS } from './en-US';
export { default as zhCN } from './zh-CN';
diff --git a/packages/sheets-formula/src/locale/zh-CN.ts b/packages/sheets-formula/src/locale/zh-CN.ts
index 6a8f59139b..d3ce43ce87 100644
--- a/packages/sheets-formula/src/locale/zh-CN.ts
+++ b/packages/sheets-formula/src/locale/zh-CN.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 array from './function-list/array/zh-CN';
import compatibility from './function-list/compatibility/zh-CN';
import cube from './function-list/cube/zh-CN';
diff --git a/packages/sheets-formula/src/services/active-dirty-manager.service.ts b/packages/sheets-formula/src/services/active-dirty-manager.service.ts
index 6780403a23..456a9d87bc 100644
--- a/packages/sheets-formula/src/services/active-dirty-manager.service.ts
+++ b/packages/sheets-formula/src/services/active-dirty-manager.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommandInfo, IUnitRange, Nullable } from '@univerjs/core';
import { Disposable } from '@univerjs/core';
import type { IDirtyUnitFeatureMap, IDirtyUnitSheetNameMap } from '@univerjs/engine-formula';
diff --git a/packages/sheets-formula/src/services/description.service.ts b/packages/sheets-formula/src/services/description.service.ts
index 1e59cc56bc..fd2a8cc3b3 100644
--- a/packages/sheets-formula/src/services/description.service.ts
+++ b/packages/sheets-formula/src/services/description.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { LocaleService } from '@univerjs/core';
import type { IFunctionInfo, IFunctionNames } from '@univerjs/engine-formula';
import { IFunctionService } from '@univerjs/engine-formula';
diff --git a/packages/sheets-formula/src/services/formula-input.service.ts b/packages/sheets-formula/src/services/formula-input.service.ts
index 1d91b5eb53..b81712189a 100644
--- a/packages/sheets-formula/src/services/formula-input.service.ts
+++ b/packages/sheets-formula/src/services/formula-input.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ISequenceNode } from '@univerjs/engine-formula';
import { sequenceNodeType } from '@univerjs/engine-formula';
import type { IDisposable } from '@wendellhu/redi';
diff --git a/packages/sheets-formula/src/services/function-list/array.ts b/packages/sheets-formula/src/services/function-list/array.ts
index 6527e4a087..4d9d635941 100644
--- a/packages/sheets-formula/src/services/function-list/array.ts
+++ b/packages/sheets-formula/src/services/function-list/array.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IFunctionInfo } from '@univerjs/engine-formula';
export const FUNCTION_LIST_ARRAY: IFunctionInfo[] = [];
diff --git a/packages/sheets-formula/src/services/function-list/compatibility.ts b/packages/sheets-formula/src/services/function-list/compatibility.ts
index 18b9e1b8b6..f9f292f01a 100644
--- a/packages/sheets-formula/src/services/function-list/compatibility.ts
+++ b/packages/sheets-formula/src/services/function-list/compatibility.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IFunctionInfo } from '@univerjs/engine-formula';
export const FUNCTION_LIST_COMPATIBILITY: IFunctionInfo[] = [];
diff --git a/packages/sheets-formula/src/services/function-list/cube.ts b/packages/sheets-formula/src/services/function-list/cube.ts
index afeda99662..ca0eb68d24 100644
--- a/packages/sheets-formula/src/services/function-list/cube.ts
+++ b/packages/sheets-formula/src/services/function-list/cube.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IFunctionInfo } from '@univerjs/engine-formula';
export const FUNCTION_LIST_CUBE: IFunctionInfo[] = [];
diff --git a/packages/sheets-formula/src/services/function-list/database.ts b/packages/sheets-formula/src/services/function-list/database.ts
index c87896fddb..436e983965 100644
--- a/packages/sheets-formula/src/services/function-list/database.ts
+++ b/packages/sheets-formula/src/services/function-list/database.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IFunctionInfo } from '@univerjs/engine-formula';
export const FUNCTION_LIST_DATABASE: IFunctionInfo[] = [];
diff --git a/packages/sheets-formula/src/services/function-list/date.ts b/packages/sheets-formula/src/services/function-list/date.ts
index f1f2a8acf3..a4cc9e461a 100644
--- a/packages/sheets-formula/src/services/function-list/date.ts
+++ b/packages/sheets-formula/src/services/function-list/date.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IFunctionInfo } from '@univerjs/engine-formula';
export const FUNCTION_LIST_DATE: IFunctionInfo[] = [];
diff --git a/packages/sheets-formula/src/services/function-list/engineering.ts b/packages/sheets-formula/src/services/function-list/engineering.ts
index e0a07a8010..bfbc565ff5 100644
--- a/packages/sheets-formula/src/services/function-list/engineering.ts
+++ b/packages/sheets-formula/src/services/function-list/engineering.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IFunctionInfo } from '@univerjs/engine-formula';
export const FUNCTION_LIST_ENGINEERING: IFunctionInfo[] = [];
diff --git a/packages/sheets-formula/src/services/function-list/financial.ts b/packages/sheets-formula/src/services/function-list/financial.ts
index 1c69122d7a..7aedc24b7a 100644
--- a/packages/sheets-formula/src/services/function-list/financial.ts
+++ b/packages/sheets-formula/src/services/function-list/financial.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IFunctionInfo } from '@univerjs/engine-formula';
export const FUNCTION_LIST_FINANCIAL: IFunctionInfo[] = [];
diff --git a/packages/sheets-formula/src/services/function-list/function-list.ts b/packages/sheets-formula/src/services/function-list/function-list.ts
index 48a5b9c1b7..853e5d385e 100644
--- a/packages/sheets-formula/src/services/function-list/function-list.ts
+++ b/packages/sheets-formula/src/services/function-list/function-list.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IFunctionInfo } from '@univerjs/engine-formula';
import { FUNCTION_LIST_ARRAY } from './array';
diff --git a/packages/sheets-formula/src/services/function-list/information.ts b/packages/sheets-formula/src/services/function-list/information.ts
index 0b55822d7a..b50b10a05f 100644
--- a/packages/sheets-formula/src/services/function-list/information.ts
+++ b/packages/sheets-formula/src/services/function-list/information.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IFunctionInfo } from '@univerjs/engine-formula';
export const FUNCTION_LIST_INFORMATION: IFunctionInfo[] = [];
diff --git a/packages/sheets-formula/src/services/function-list/logical.ts b/packages/sheets-formula/src/services/function-list/logical.ts
index be628baf5d..2caf5975d6 100644
--- a/packages/sheets-formula/src/services/function-list/logical.ts
+++ b/packages/sheets-formula/src/services/function-list/logical.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IFunctionInfo } from '@univerjs/engine-formula';
export const FUNCTION_LIST_LOGICAL: IFunctionInfo[] = [];
diff --git a/packages/sheets-formula/src/services/function-list/lookup.ts b/packages/sheets-formula/src/services/function-list/lookup.ts
index d5e4a97007..d2b8b88d24 100644
--- a/packages/sheets-formula/src/services/function-list/lookup.ts
+++ b/packages/sheets-formula/src/services/function-list/lookup.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IFunctionInfo } from '@univerjs/engine-formula';
export const FUNCTION_LIST_LOOKUP: IFunctionInfo[] = [];
diff --git a/packages/sheets-formula/src/services/function-list/math.ts b/packages/sheets-formula/src/services/function-list/math.ts
index 9c4d28a97a..84f5839b7e 100644
--- a/packages/sheets-formula/src/services/function-list/math.ts
+++ b/packages/sheets-formula/src/services/function-list/math.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IFunctionInfo } from '@univerjs/engine-formula';
import { FUNCTION_NAMES_MATH, FunctionType } from '@univerjs/engine-formula';
diff --git a/packages/sheets-formula/src/services/function-list/statistical.ts b/packages/sheets-formula/src/services/function-list/statistical.ts
index 840ec65fc2..a68875d5c7 100644
--- a/packages/sheets-formula/src/services/function-list/statistical.ts
+++ b/packages/sheets-formula/src/services/function-list/statistical.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IFunctionInfo } from '@univerjs/engine-formula';
import { FUNCTION_NAMES_STATISTICAL, FunctionType } from '@univerjs/engine-formula';
diff --git a/packages/sheets-formula/src/services/function-list/text.ts b/packages/sheets-formula/src/services/function-list/text.ts
index 068d9cfd7b..3f13844d28 100644
--- a/packages/sheets-formula/src/services/function-list/text.ts
+++ b/packages/sheets-formula/src/services/function-list/text.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IFunctionInfo } from '@univerjs/engine-formula';
export const FUNCTION_LIST_TEXT: IFunctionInfo[] = [];
diff --git a/packages/sheets-formula/src/services/function-list/univer.ts b/packages/sheets-formula/src/services/function-list/univer.ts
index 4e5b60e0bf..9b6c0d320a 100644
--- a/packages/sheets-formula/src/services/function-list/univer.ts
+++ b/packages/sheets-formula/src/services/function-list/univer.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IFunctionInfo } from '@univerjs/engine-formula';
export const FUNCTION_LIST_UNIVER: IFunctionInfo[] = [];
diff --git a/packages/sheets-formula/src/services/function-list/web.ts b/packages/sheets-formula/src/services/function-list/web.ts
index 7037ede423..83bc0a85e9 100644
--- a/packages/sheets-formula/src/services/function-list/web.ts
+++ b/packages/sheets-formula/src/services/function-list/web.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IFunctionInfo } from '@univerjs/engine-formula';
export const FUNCTION_LIST_WEB: IFunctionInfo[] = [];
diff --git a/packages/sheets-formula/src/services/prompt.service.ts b/packages/sheets-formula/src/services/prompt.service.ts
index deda23328e..0f45361f03 100644
--- a/packages/sheets-formula/src/services/prompt.service.ts
+++ b/packages/sheets-formula/src/services/prompt.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Direction } from '@univerjs/core';
import type { IFunctionInfo } from '@univerjs/engine-formula';
import type { IDisposable } from '@wendellhu/redi';
diff --git a/packages/sheets-formula/src/services/utils.ts b/packages/sheets-formula/src/services/utils.ts
index 99d3399341..08bd6a8432 100644
--- a/packages/sheets-formula/src/services/utils.ts
+++ b/packages/sheets-formula/src/services/utils.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { LocaleService } from '@univerjs/core';
import type { IFunctionInfo } from '@univerjs/engine-formula';
diff --git a/packages/sheets-formula/src/views/FormulaPromptContainer.tsx b/packages/sheets-formula/src/views/FormulaPromptContainer.tsx
index 7b27f93387..166bcf9a28 100644
--- a/packages/sheets-formula/src/views/FormulaPromptContainer.tsx
+++ b/packages/sheets-formula/src/views/FormulaPromptContainer.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ErrorFunction } from './prompt/error-function/error-function';
diff --git a/packages/sheets-formula/src/views/more-functions/MoreFunctions.tsx b/packages/sheets-formula/src/views/more-functions/MoreFunctions.tsx
index c1ecd32c46..1127cc6253 100644
--- a/packages/sheets-formula/src/views/more-functions/MoreFunctions.tsx
+++ b/packages/sheets-formula/src/views/more-functions/MoreFunctions.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { LocaleService } from '@univerjs/core';
import { Button } from '@univerjs/design';
import type { IFunctionInfo } from '@univerjs/engine-formula';
diff --git a/packages/sheets-formula/src/views/more-functions/function-help/FunctionHelp.tsx b/packages/sheets-formula/src/views/more-functions/function-help/FunctionHelp.tsx
index 3292993a80..72f994bb70 100644
--- a/packages/sheets-formula/src/views/more-functions/function-help/FunctionHelp.tsx
+++ b/packages/sheets-formula/src/views/more-functions/function-help/FunctionHelp.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IFunctionParam } from '@univerjs/engine-formula';
import React from 'react';
diff --git a/packages/sheets-formula/src/views/more-functions/function-params/FunctionParams.tsx b/packages/sheets-formula/src/views/more-functions/function-params/FunctionParams.tsx
index c1e9f66fd9..627eed3a3e 100644
--- a/packages/sheets-formula/src/views/more-functions/function-params/FunctionParams.tsx
+++ b/packages/sheets-formula/src/views/more-functions/function-params/FunctionParams.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 styles from './index.module.less';
diff --git a/packages/sheets-formula/src/views/more-functions/input-params/InputParams.tsx b/packages/sheets-formula/src/views/more-functions/input-params/InputParams.tsx
index f307f4b9c6..93f0f77396 100644
--- a/packages/sheets-formula/src/views/more-functions/input-params/InputParams.tsx
+++ b/packages/sheets-formula/src/views/more-functions/input-params/InputParams.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IFunctionInfo, IFunctionParam } from '@univerjs/engine-formula';
import { RangeSelector } from '@univerjs/sheets-ui';
import React, { useState } from 'react';
diff --git a/packages/sheets-formula/src/views/more-functions/interface.ts b/packages/sheets-formula/src/views/more-functions/interface.ts
index 6e7244878a..105c1c4af3 100644
--- a/packages/sheets-formula/src/views/more-functions/interface.ts
+++ b/packages/sheets-formula/src/views/more-functions/interface.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { FORMULA_UI_PLUGIN_NAME } from '../../common/plugin-name';
export const MORE_FUNCTIONS_COMPONENT = `${FORMULA_UI_PLUGIN_NAME}_MORE_FUNCTIONS_COMPONENT`;
diff --git a/packages/sheets-formula/src/views/more-functions/select-function/SelectFunction.tsx b/packages/sheets-formula/src/views/more-functions/select-function/SelectFunction.tsx
index ef5d2c21cb..9a9d31edee 100644
--- a/packages/sheets-formula/src/views/more-functions/select-function/SelectFunction.tsx
+++ b/packages/sheets-formula/src/views/more-functions/select-function/SelectFunction.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { LocaleService } from '@univerjs/core';
import { Input, Select } from '@univerjs/design';
import type { IFunctionInfo, IFunctionParam } from '@univerjs/engine-formula';
diff --git a/packages/sheets-formula/src/views/prompt/error-function/error-function.tsx b/packages/sheets-formula/src/views/prompt/error-function/error-function.tsx
index 5cddbc50bc..65c41e2733 100644
--- a/packages/sheets-formula/src/views/prompt/error-function/error-function.tsx
+++ b/packages/sheets-formula/src/views/prompt/error-function/error-function.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICellEditorManagerService } from '@univerjs/sheets-ui';
import { useDependency } from '@wendellhu/redi/react-bindings';
import React, { useEffect, useState } from 'react';
diff --git a/packages/sheets-formula/src/views/prompt/help-function/HelpFunction.tsx b/packages/sheets-formula/src/views/prompt/help-function/HelpFunction.tsx
index 7d781a0cbe..48a542871e 100644
--- a/packages/sheets-formula/src/views/prompt/help-function/HelpFunction.tsx
+++ b/packages/sheets-formula/src/views/prompt/help-function/HelpFunction.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { FOCUSING_FORMULA_EDITOR, IContextService, LocaleService } from '@univerjs/core';
import { Popup } from '@univerjs/design';
import type { IFunctionInfo, IFunctionParam } from '@univerjs/engine-formula';
diff --git a/packages/sheets-formula/src/views/prompt/search-function/SearchFunction.tsx b/packages/sheets-formula/src/views/prompt/search-function/SearchFunction.tsx
index 0a5ba02591..37d6ff4095 100644
--- a/packages/sheets-formula/src/views/prompt/search-function/SearchFunction.tsx
+++ b/packages/sheets-formula/src/views/prompt/search-function/SearchFunction.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Direction, FOCUSING_FORMULA_EDITOR, IContextService } from '@univerjs/core';
import { Popup } from '@univerjs/design';
import { ICellEditorManagerService, IFormulaEditorManagerService } from '@univerjs/sheets-ui';
diff --git a/packages/sheets-import-xlsx/src/basics/const/index.ts b/packages/sheets-import-xlsx/src/basics/const/index.ts
deleted file mode 100644
index a37e8d7e0d..0000000000
--- a/packages/sheets-import-xlsx/src/basics/const/index.ts
+++ /dev/null
@@ -1 +0,0 @@
-export * from './plugin-name';
diff --git a/packages/sheets-import-xlsx/src/basics/const/plugin-name.ts b/packages/sheets-import-xlsx/src/basics/const/plugin-name.ts
deleted file mode 100644
index 4f23dac8c0..0000000000
--- a/packages/sheets-import-xlsx/src/basics/const/plugin-name.ts
+++ /dev/null
@@ -1 +0,0 @@
-export const IMPORT_XLSX_PLUGIN_NAME = 'importXlsx';
diff --git a/packages/sheets-import-xlsx/src/basics/enum/index.ts b/packages/sheets-import-xlsx/src/basics/enum/index.ts
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/packages/sheets-import-xlsx/src/basics/index.ts b/packages/sheets-import-xlsx/src/basics/index.ts
deleted file mode 100644
index e47ea3a46c..0000000000
--- a/packages/sheets-import-xlsx/src/basics/index.ts
+++ /dev/null
@@ -1 +0,0 @@
-export * from './const';
diff --git a/packages/sheets-import-xlsx/src/basics/shared/index.ts b/packages/sheets-import-xlsx/src/basics/shared/index.ts
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/packages/sheets-import-xlsx/src/commands/operations/upload.operation.ts b/packages/sheets-import-xlsx/src/commands/operations/upload.operation.ts
index d14347a527..971adeb4a6 100644
--- a/packages/sheets-import-xlsx/src/commands/operations/upload.operation.ts
+++ b/packages/sheets-import-xlsx/src/commands/operations/upload.operation.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand } from '@univerjs/core';
import { CommandType } from '@univerjs/core';
import type { IAccessor } from '@wendellhu/redi';
diff --git a/packages/sheets-import-xlsx/src/common/plugin-name.ts b/packages/sheets-import-xlsx/src/common/plugin-name.ts
new file mode 100644
index 0000000000..35d7bcd80e
--- /dev/null
+++ b/packages/sheets-import-xlsx/src/common/plugin-name.ts
@@ -0,0 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 IMPORT_XLSX_PLUGIN_NAME = 'importXlsx';
diff --git a/packages/sheets-import-xlsx/src/controllers/import-xlsx-controller.ts b/packages/sheets-import-xlsx/src/controllers/import-xlsx-controller.ts
index 04620418e9..2048ba6e74 100644
--- a/packages/sheets-import-xlsx/src/controllers/import-xlsx-controller.ts
+++ b/packages/sheets-import-xlsx/src/controllers/import-xlsx-controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Disposable, ICommandService } from '@univerjs/core';
import { IMenuService } from '@univerjs/ui';
import { Inject, Injector } from '@wendellhu/redi';
diff --git a/packages/sheets-import-xlsx/src/controllers/index.ts b/packages/sheets-import-xlsx/src/controllers/index.ts
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/packages/sheets-import-xlsx/src/controllers/menu.ts b/packages/sheets-import-xlsx/src/controllers/menu.ts
index f96288bf3c..beb782bc42 100644
--- a/packages/sheets-import-xlsx/src/controllers/menu.ts
+++ b/packages/sheets-import-xlsx/src/controllers/menu.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IMenuButtonItem } from '@univerjs/ui';
import { MenuItemType, MenuPosition } from '@univerjs/ui';
import type { IAccessor } from '@wendellhu/redi';
diff --git a/packages/sheets-import-xlsx/src/import-xlsx-plugin.tsx b/packages/sheets-import-xlsx/src/import-xlsx-plugin.tsx
index a2c77edf95..c3f021ab54 100644
--- a/packages/sheets-import-xlsx/src/import-xlsx-plugin.tsx
+++ b/packages/sheets-import-xlsx/src/import-xlsx-plugin.tsx
@@ -1,7 +1,23 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { LocaleService, Plugin, PluginType } from '@univerjs/core';
import { Inject, Injector } from '@wendellhu/redi';
-import { IMPORT_XLSX_PLUGIN_NAME } from './basics';
+import { IMPORT_XLSX_PLUGIN_NAME } from './common/plugin-name';
import { ImportXlsxController } from './controllers/import-xlsx-controller';
import { zhCN } from './locale';
import { UploadService } from './services/upload.service';
diff --git a/packages/sheets-import-xlsx/src/index.ts b/packages/sheets-import-xlsx/src/index.ts
index 84555dc56c..a18748b971 100644
--- a/packages/sheets-import-xlsx/src/index.ts
+++ b/packages/sheets-import-xlsx/src/index.ts
@@ -1,2 +1,18 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './import-xlsx-plugin';
export { enUS, zhCN } from './locale';
diff --git a/packages/sheets-import-xlsx/src/locale/en-US.ts b/packages/sheets-import-xlsx/src/locale/en-US.ts
index 1e5b30cb79..92f0c4b1e4 100644
--- a/packages/sheets-import-xlsx/src/locale/en-US.ts
+++ b/packages/sheets-import-xlsx/src/locale/en-US.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {
importXlsx: {
tooltip: 'Import XLSX',
diff --git a/packages/sheets-import-xlsx/src/locale/index.ts b/packages/sheets-import-xlsx/src/locale/index.ts
index b0b1d48d5d..ac8ca08af1 100644
--- a/packages/sheets-import-xlsx/src/locale/index.ts
+++ b/packages/sheets-import-xlsx/src/locale/index.ts
@@ -1,2 +1,18 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 enUS } from './en-US';
export { default as zhCN } from './zh-CN';
diff --git a/packages/sheets-import-xlsx/src/locale/zh-CN.ts b/packages/sheets-import-xlsx/src/locale/zh-CN.ts
index cbb0ca5e4c..b7965322f8 100644
--- a/packages/sheets-import-xlsx/src/locale/zh-CN.ts
+++ b/packages/sheets-import-xlsx/src/locale/zh-CN.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {
importXlsx: {
tooltip: '导入XLSX',
diff --git a/packages/sheets-import-xlsx/src/model/index.ts b/packages/sheets-import-xlsx/src/model/index.ts
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/packages/sheets-import-xlsx/src/services/border.ts b/packages/sheets-import-xlsx/src/services/border.ts
index 4506b2d3c3..6b35bd0533 100644
--- a/packages/sheets-import-xlsx/src/services/border.ts
+++ b/packages/sheets-import-xlsx/src/services/border.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IBorderData, IStyleData, IWorksheetData } from '@univerjs/core/types/interfaces/index.js';
export function border(newSheet: Partial<IWorksheetData>, sheet: any) {
diff --git a/packages/sheets-import-xlsx/src/services/index.ts b/packages/sheets-import-xlsx/src/services/index.ts
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/packages/sheets-import-xlsx/src/services/upload.service.ts b/packages/sheets-import-xlsx/src/services/upload.service.ts
index a8702f68f2..0f0c79c132 100644
--- a/packages/sheets-import-xlsx/src/services/upload.service.ts
+++ b/packages/sheets-import-xlsx/src/services/upload.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {
BooleanNumber,
ICellData,
diff --git a/packages/sheets-import-xlsx/src/types/index.d.ts b/packages/sheets-import-xlsx/src/types/index.d.ts
index 43bf3d1ca8..cc53e73c4f 100644
--- a/packages/sheets-import-xlsx/src/types/index.d.ts
+++ b/packages/sheets-import-xlsx/src/types/index.d.ts
@@ -1,2 +1,18 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from '../index';
declare module '@univerjs/sheets-import-xlsx' {}
diff --git a/packages/sheets-import-xlsx/src/views/render/index.ts b/packages/sheets-import-xlsx/src/views/render/index.ts
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/packages/sheets-import-xlsx/src/views/ui/index.ts b/packages/sheets-import-xlsx/src/views/ui/index.ts
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/packages/sheets-numfmt/src/__tests__/date.test.ts b/packages/sheets-numfmt/src/__tests__/date.test.ts
index d37372d8c7..7ba56c2142 100644
--- a/packages/sheets-numfmt/src/__tests__/date.test.ts
+++ b/packages/sheets-numfmt/src/__tests__/date.test.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 numfmt from '@univerjs/engine-numfmt';
import { describe, expect, it } from 'vitest';
diff --git a/packages/sheets-numfmt/src/__tests__/utils.test.ts b/packages/sheets-numfmt/src/__tests__/utils.test.ts
index 91b02822c0..f68015cfe1 100644
--- a/packages/sheets-numfmt/src/__tests__/utils.test.ts
+++ b/packages/sheets-numfmt/src/__tests__/utils.test.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { describe, expect, it } from 'vitest';
import { currencySymbols } from '../base/const/CURRENCY-SYMBOLS';
diff --git a/packages/sheets-numfmt/src/base/const/CURRENCY-SYMBOLS.ts b/packages/sheets-numfmt/src/base/const/CURRENCY-SYMBOLS.ts
index f2403cc215..8aa135fa55 100644
--- a/packages/sheets-numfmt/src/base/const/CURRENCY-SYMBOLS.ts
+++ b/packages/sheets-numfmt/src/base/const/CURRENCY-SYMBOLS.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 currencySymbols = [
'$',
'£',
diff --git a/packages/sheets-numfmt/src/base/const/FORMATDETAIL.ts b/packages/sheets-numfmt/src/base/const/FORMATDETAIL.ts
index 529f02e89c..db5bd0c80b 100644
--- a/packages/sheets-numfmt/src/base/const/FORMATDETAIL.ts
+++ b/packages/sheets-numfmt/src/base/const/FORMATDETAIL.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 DATEFMTLISG = [
{
label: '1930-08-05',
diff --git a/packages/sheets-numfmt/src/base/const/MENU-OPTIONS.ts b/packages/sheets-numfmt/src/base/const/MENU-OPTIONS.ts
index 3a9872179d..9f172395f4 100644
--- a/packages/sheets-numfmt/src/base/const/MENU-OPTIONS.ts
+++ b/packages/sheets-numfmt/src/base/const/MENU-OPTIONS.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 MENU_OPTIONS: Array<{ label: string; pattern: string | null } | '|'> = [
{
label: 'sheet.numfmt.general',
diff --git a/packages/sheets-numfmt/src/base/const/PLUGIN_NAME.ts b/packages/sheets-numfmt/src/base/const/PLUGIN_NAME.ts
index 01c76f42ef..468e989443 100644
--- a/packages/sheets-numfmt/src/base/const/PLUGIN_NAME.ts
+++ b/packages/sheets-numfmt/src/base/const/PLUGIN_NAME.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 SHEET_NUMFMT_PLUGIN = 'SHEET_NUMFMT_PLUGIN';
diff --git a/packages/sheets-numfmt/src/base/types/index.ts b/packages/sheets-numfmt/src/base/types/index.ts
index 6c41d0b422..9b9705ca8b 100644
--- a/packages/sheets-numfmt/src/base/types/index.ts
+++ b/packages/sheets-numfmt/src/base/types/index.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { MutableRefObject } from 'react';
export interface IBusinessComponentProps {
diff --git a/packages/sheets-numfmt/src/commands/commands/add.decimal.command.ts b/packages/sheets-numfmt/src/commands/commands/add.decimal.command.ts
index df1ceedfd7..6288f20d3d 100644
--- a/packages/sheets-numfmt/src/commands/commands/add.decimal.command.ts
+++ b/packages/sheets-numfmt/src/commands/commands/add.decimal.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand } from '@univerjs/core';
import { CommandType, ICommandService, IUniverInstanceService, Range } from '@univerjs/core';
import { INumfmtService, SelectionManagerService } from '@univerjs/sheets';
diff --git a/packages/sheets-numfmt/src/commands/commands/set.currency.command.ts b/packages/sheets-numfmt/src/commands/commands/set.currency.command.ts
index 4d0d08a641..3c0e34fee2 100644
--- a/packages/sheets-numfmt/src/commands/commands/set.currency.command.ts
+++ b/packages/sheets-numfmt/src/commands/commands/set.currency.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand } from '@univerjs/core';
import { CommandType, ICommandService, Range } from '@univerjs/core';
import { SelectionManagerService } from '@univerjs/sheets';
diff --git a/packages/sheets-numfmt/src/commands/commands/set.numfmt.command.ts b/packages/sheets-numfmt/src/commands/commands/set.numfmt.command.ts
index 43c757352c..28d44ac848 100644
--- a/packages/sheets-numfmt/src/commands/commands/set.numfmt.command.ts
+++ b/packages/sheets-numfmt/src/commands/commands/set.numfmt.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand, IMutationInfo } from '@univerjs/core';
import {
CommandType,
diff --git a/packages/sheets-numfmt/src/commands/commands/subtract.decimal.command.ts b/packages/sheets-numfmt/src/commands/commands/subtract.decimal.command.ts
index 1843506bcf..eabc4d9b3e 100644
--- a/packages/sheets-numfmt/src/commands/commands/subtract.decimal.command.ts
+++ b/packages/sheets-numfmt/src/commands/commands/subtract.decimal.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand } from '@univerjs/core';
import { CommandType, ICommandService, IUniverInstanceService, Range } from '@univerjs/core';
import { INumfmtService, SelectionManagerService } from '@univerjs/sheets';
diff --git a/packages/sheets-numfmt/src/commands/operators/close.numfmt.panel.operator.ts b/packages/sheets-numfmt/src/commands/operators/close.numfmt.panel.operator.ts
index bff38594f6..faa2beba7c 100644
--- a/packages/sheets-numfmt/src/commands/operators/close.numfmt.panel.operator.ts
+++ b/packages/sheets-numfmt/src/commands/operators/close.numfmt.panel.operator.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand } from '@univerjs/core';
import { CommandType } from '@univerjs/core';
diff --git a/packages/sheets-numfmt/src/commands/operators/open.numfmt.panel.operator.ts b/packages/sheets-numfmt/src/commands/operators/open.numfmt.panel.operator.ts
index 590fa98c3a..6b1524c470 100644
--- a/packages/sheets-numfmt/src/commands/operators/open.numfmt.panel.operator.ts
+++ b/packages/sheets-numfmt/src/commands/operators/open.numfmt.panel.operator.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand } from '@univerjs/core';
import { CommandType } from '@univerjs/core';
import type { IAccessor } from '@wendellhu/redi';
diff --git a/packages/sheets-numfmt/src/components/accounting/index.tsx b/packages/sheets-numfmt/src/components/accounting/index.tsx
index b0133bc220..aa1f582547 100644
--- a/packages/sheets-numfmt/src/components/accounting/index.tsx
+++ b/packages/sheets-numfmt/src/components/accounting/index.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { LocaleService } from '@univerjs/core';
import { InputNumber, Select } from '@univerjs/design';
import { useDependency } from '@wendellhu/redi/react-bindings';
diff --git a/packages/sheets-numfmt/src/components/currency/index.tsx b/packages/sheets-numfmt/src/components/currency/index.tsx
index 21737a3ed7..468166ae92 100644
--- a/packages/sheets-numfmt/src/components/currency/index.tsx
+++ b/packages/sheets-numfmt/src/components/currency/index.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 './index.less';
import { LocaleService } from '@univerjs/core';
diff --git a/packages/sheets-numfmt/src/components/date/index.tsx b/packages/sheets-numfmt/src/components/date/index.tsx
index a0cbd3c201..6b4e76b3ef 100644
--- a/packages/sheets-numfmt/src/components/date/index.tsx
+++ b/packages/sheets-numfmt/src/components/date/index.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { LocaleService } from '@univerjs/core';
import { SelectList } from '@univerjs/design';
import numfmt from '@univerjs/engine-numfmt';
diff --git a/packages/sheets-numfmt/src/components/general/index.tsx b/packages/sheets-numfmt/src/components/general/index.tsx
index 63d339c967..f373698d1c 100644
--- a/packages/sheets-numfmt/src/components/general/index.tsx
+++ b/packages/sheets-numfmt/src/components/general/index.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { LocaleService } from '@univerjs/core';
import { useDependency } from '@wendellhu/redi/react-bindings';
import type { FC } from 'react';
diff --git a/packages/sheets-numfmt/src/components/index.tsx b/packages/sheets-numfmt/src/components/index.tsx
index c6cb9c076d..3685b017a5 100644
--- a/packages/sheets-numfmt/src/components/index.tsx
+++ b/packages/sheets-numfmt/src/components/index.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 './index.less';
import { LocaleService } from '@univerjs/core';
diff --git a/packages/sheets-numfmt/src/components/more-numfmt-type/MoreNumfmtType.tsx b/packages/sheets-numfmt/src/components/more-numfmt-type/MoreNumfmtType.tsx
index 416e1df931..ec0c480fd0 100644
--- a/packages/sheets-numfmt/src/components/more-numfmt-type/MoreNumfmtType.tsx
+++ b/packages/sheets-numfmt/src/components/more-numfmt-type/MoreNumfmtType.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 './index.less';
import { ICommandService, LocaleService, Range } from '@univerjs/core';
diff --git a/packages/sheets-numfmt/src/components/stories/panel.stories.tsx b/packages/sheets-numfmt/src/components/stories/panel.stories.tsx
index 826c178deb..e141a79a7a 100644
--- a/packages/sheets-numfmt/src/components/stories/panel.stories.tsx
+++ b/packages/sheets-numfmt/src/components/stories/panel.stories.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Meta, StoryObj } from '@storybook/react';
import { LocaleService, ThemeService } from '@univerjs/core';
import { Injector } from '@wendellhu/redi';
diff --git a/packages/sheets-numfmt/src/components/thousandth-percentile/index.tsx b/packages/sheets-numfmt/src/components/thousandth-percentile/index.tsx
index 5ddd9d7406..51a1c8376a 100644
--- a/packages/sheets-numfmt/src/components/thousandth-percentile/index.tsx
+++ b/packages/sheets-numfmt/src/components/thousandth-percentile/index.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { LocaleService } from '@univerjs/core';
import { InputNumber, SelectList } from '@univerjs/design';
import { useDependency } from '@wendellhu/redi/react-bindings';
diff --git a/packages/sheets-numfmt/src/context/user-habit.ts b/packages/sheets-numfmt/src/context/user-habit.ts
index 6b60520a3a..5caf43fa70 100644
--- a/packages/sheets-numfmt/src/context/user-habit.ts
+++ b/packages/sheets-numfmt/src/context/user-habit.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { createContext } from 'react';
export const UserHabitCurrencyContext = createContext<string[]>([]);
diff --git a/packages/sheets-numfmt/src/controllers/numfmt.auto-fill.controller.ts b/packages/sheets-numfmt/src/controllers/numfmt.auto-fill.controller.ts
index 682129bbc6..489d2b3dc7 100644
--- a/packages/sheets-numfmt/src/controllers/numfmt.auto-fill.controller.ts
+++ b/packages/sheets-numfmt/src/controllers/numfmt.auto-fill.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IMutationInfo, IRange } from '@univerjs/core';
import { Disposable, IUniverInstanceService, LifecycleStages, OnLifecycle, Range, Rectangle } from '@univerjs/core';
import type { ISetCellsNumfmt, ISetNumfmtMutationParams } from '@univerjs/sheets';
diff --git a/packages/sheets-numfmt/src/controllers/numfmt.controller.ts b/packages/sheets-numfmt/src/controllers/numfmt.controller.ts
index 71d15c1a6c..7333718cb2 100644
--- a/packages/sheets-numfmt/src/controllers/numfmt.controller.ts
+++ b/packages/sheets-numfmt/src/controllers/numfmt.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICellData, ICellDataForSheetInterceptor, IRange } from '@univerjs/core';
import {
CellValueType,
diff --git a/packages/sheets-numfmt/src/controllers/numfmt.copy-paste.controller.ts b/packages/sheets-numfmt/src/controllers/numfmt.copy-paste.controller.ts
index 3f136df9a7..0bfdfbfcd2 100644
--- a/packages/sheets-numfmt/src/controllers/numfmt.copy-paste.controller.ts
+++ b/packages/sheets-numfmt/src/controllers/numfmt.copy-paste.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IRange, Nullable } from '@univerjs/core';
import {
Disposable,
diff --git a/packages/sheets-numfmt/src/controllers/numfmt.editor.controller.ts b/packages/sheets-numfmt/src/controllers/numfmt.editor.controller.ts
index ac6c743800..f5fa6ce408 100644
--- a/packages/sheets-numfmt/src/controllers/numfmt.editor.controller.ts
+++ b/packages/sheets-numfmt/src/controllers/numfmt.editor.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IRange, Nullable } from '@univerjs/core';
import {
CellValueType,
diff --git a/packages/sheets-numfmt/src/controllers/numfmt.ref-range.controller.ts b/packages/sheets-numfmt/src/controllers/numfmt.ref-range.controller.ts
index ab1170632a..84f9044a31 100644
--- a/packages/sheets-numfmt/src/controllers/numfmt.ref-range.controller.ts
+++ b/packages/sheets-numfmt/src/controllers/numfmt.ref-range.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IMutationInfo, IRange } from '@univerjs/core';
import {
Disposable,
diff --git a/packages/sheets-numfmt/src/controllers/numfmt.sheet.controller.ts b/packages/sheets-numfmt/src/controllers/numfmt.sheet.controller.ts
index bb467b28bc..01ee02ebdd 100644
--- a/packages/sheets-numfmt/src/controllers/numfmt.sheet.controller.ts
+++ b/packages/sheets-numfmt/src/controllers/numfmt.sheet.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IRange } from '@univerjs/core';
import { Disposable, IUniverInstanceService, LifecycleStages, OnLifecycle } from '@univerjs/core';
import type { IRemoveNumfmtMutationParams, IRemoveSheetCommandParams } from '@univerjs/sheets';
diff --git a/packages/sheets-numfmt/src/controllers/type.ts b/packages/sheets-numfmt/src/controllers/type.ts
index 2880cb6277..c04f7edae2 100644
--- a/packages/sheets-numfmt/src/controllers/type.ts
+++ b/packages/sheets-numfmt/src/controllers/type.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { LifecycleStages, runOnLifecycle } from '@univerjs/core';
import { createIdentifier } from '@wendellhu/redi';
diff --git a/packages/sheets-numfmt/src/controllers/user-habit.controller.ts b/packages/sheets-numfmt/src/controllers/user-habit.controller.ts
index 3252ba8130..e8ed2618c1 100644
--- a/packages/sheets-numfmt/src/controllers/user-habit.controller.ts
+++ b/packages/sheets-numfmt/src/controllers/user-habit.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ILocalStorageService } from '@univerjs/core';
import { Inject } from '@wendellhu/redi';
diff --git a/packages/sheets-numfmt/src/hooks/useCurrencyOptions.ts b/packages/sheets-numfmt/src/hooks/useCurrencyOptions.ts
index e1e1ba631c..7bd74f254c 100644
--- a/packages/sheets-numfmt/src/hooks/useCurrencyOptions.ts
+++ b/packages/sheets-numfmt/src/hooks/useCurrencyOptions.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { useDependency } from '@wendellhu/redi/react-bindings';
import { useEffect, useState } from 'react';
diff --git a/packages/sheets-numfmt/src/hooks/useNextTick.ts b/packages/sheets-numfmt/src/hooks/useNextTick.ts
index 7170d6ca09..10c1a9c1ca 100644
--- a/packages/sheets-numfmt/src/hooks/useNextTick.ts
+++ b/packages/sheets-numfmt/src/hooks/useNextTick.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { useEffect, useRef, useState } from 'react';
export const useNextTick = () => {
diff --git a/packages/sheets-numfmt/src/index.ts b/packages/sheets-numfmt/src/index.ts
index e9994589da..b44158e38b 100644
--- a/packages/sheets-numfmt/src/index.ts
+++ b/packages/sheets-numfmt/src/index.ts
@@ -1,2 +1,18 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { enUS, zhCN } from './locale';
export * from './numfmt-plugin';
diff --git a/packages/sheets-numfmt/src/locale/en-US.ts b/packages/sheets-numfmt/src/locale/en-US.ts
index 2e292ce4cd..a51d662fd3 100644
--- a/packages/sheets-numfmt/src/locale/en-US.ts
+++ b/packages/sheets-numfmt/src/locale/en-US.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {
sheet: {
numfmt: {
diff --git a/packages/sheets-numfmt/src/locale/index.ts b/packages/sheets-numfmt/src/locale/index.ts
index b0b1d48d5d..ac8ca08af1 100644
--- a/packages/sheets-numfmt/src/locale/index.ts
+++ b/packages/sheets-numfmt/src/locale/index.ts
@@ -1,2 +1,18 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 enUS } from './en-US';
export { default as zhCN } from './zh-CN';
diff --git a/packages/sheets-numfmt/src/locale/zh-CN.ts b/packages/sheets-numfmt/src/locale/zh-CN.ts
index 2e292ce4cd..a51d662fd3 100644
--- a/packages/sheets-numfmt/src/locale/zh-CN.ts
+++ b/packages/sheets-numfmt/src/locale/zh-CN.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {
sheet: {
numfmt: {
diff --git a/packages/sheets-numfmt/src/menu/menu.ts b/packages/sheets-numfmt/src/menu/menu.ts
index 6a5cbfa30f..6ab4f56d63 100644
--- a/packages/sheets-numfmt/src/menu/menu.ts
+++ b/packages/sheets-numfmt/src/menu/menu.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommandService, IUniverInstanceService, LocaleService } from '@univerjs/core';
import { AddDigitsSingle, MoreDownSingle, ReduceDigitsSingle, RmbSingle } from '@univerjs/icons';
import { INumfmtService, SelectionManagerService, SetNumfmtMutation } from '@univerjs/sheets';
diff --git a/packages/sheets-numfmt/src/numfmt-plugin.ts b/packages/sheets-numfmt/src/numfmt-plugin.ts
index d83e70bed1..0ceff94d8f 100644
--- a/packages/sheets-numfmt/src/numfmt-plugin.ts
+++ b/packages/sheets-numfmt/src/numfmt-plugin.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Plugin, PluginType } from '@univerjs/core';
import { Inject, Injector } from '@wendellhu/redi';
diff --git a/packages/sheets-numfmt/src/utils/currency.ts b/packages/sheets-numfmt/src/utils/currency.ts
index ff1cc94b3f..4cc28c2d98 100644
--- a/packages/sheets-numfmt/src/utils/currency.ts
+++ b/packages/sheets-numfmt/src/utils/currency.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { currencySymbols } from '../base/const/CURRENCY-SYMBOLS';
export const getCurrencyType = (pattern: string) => {
diff --git a/packages/sheets-numfmt/src/utils/decimal.ts b/packages/sheets-numfmt/src/utils/decimal.ts
index eaa8ee98f7..142e682e15 100644
--- a/packages/sheets-numfmt/src/utils/decimal.ts
+++ b/packages/sheets-numfmt/src/utils/decimal.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 numfmt from '@univerjs/engine-numfmt';
/**
diff --git a/packages/sheets-numfmt/src/utils/options.ts b/packages/sheets-numfmt/src/utils/options.ts
index b8ed222881..a283844c53 100644
--- a/packages/sheets-numfmt/src/utils/options.ts
+++ b/packages/sheets-numfmt/src/utils/options.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { currencySymbols } from '../base/const/CURRENCY-SYMBOLS';
import { CURRENCYFORMAT, DATEFMTLISG, NUMBERFORMAT } from '../base/const/FORMATDETAIL';
diff --git a/packages/sheets-numfmt/src/utils/pattern.ts b/packages/sheets-numfmt/src/utils/pattern.ts
index 41ae3ee313..5bb6fad3f5 100644
--- a/packages/sheets-numfmt/src/utils/pattern.ts
+++ b/packages/sheets-numfmt/src/utils/pattern.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 numfmt from '@univerjs/engine-numfmt';
import type { FormatType } from '@univerjs/sheets';
diff --git a/packages/sheets-ui/src/basics/const/default-univer-sheet-config.ts b/packages/sheets-ui/src/basics/const/default-univer-sheet-config.ts
index 8ca69f0390..3a8238dde2 100644
--- a/packages/sheets-ui/src/basics/const/default-univer-sheet-config.ts
+++ b/packages/sheets-ui/src/basics/const/default-univer-sheet-config.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 DefaultRightMenuConfig = {
InsertRow: true,
InsertColumn: true,
diff --git a/packages/sheets-ui/src/basics/const/index.ts b/packages/sheets-ui/src/basics/const/index.ts
index b8d5ece1c9..3432863746 100644
--- a/packages/sheets-ui/src/basics/const/index.ts
+++ b/packages/sheets-ui/src/basics/const/index.ts
@@ -1,2 +1,18 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './default-univer-sheet-config';
export * from './plugin-name';
diff --git a/packages/sheets-ui/src/basics/const/plugin-name.ts b/packages/sheets-ui/src/basics/const/plugin-name.ts
index 63fff17ab0..c3cca939ae 100644
--- a/packages/sheets-ui/src/basics/const/plugin-name.ts
+++ b/packages/sheets-ui/src/basics/const/plugin-name.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 SHEET_UI_PLUGIN_NAME = 'SheetUI';
diff --git a/packages/sheets-ui/src/basics/editor/get-editor-object.ts b/packages/sheets-ui/src/basics/editor/get-editor-object.ts
index 9951bbf127..7bb4fb3dd7 100644
--- a/packages/sheets-ui/src/basics/editor/get-editor-object.ts
+++ b/packages/sheets-ui/src/basics/editor/get-editor-object.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '@univerjs/core';
import type { Documents, Engine, IRenderManagerService, Scene } from '@univerjs/engine-render';
diff --git a/packages/sheets-ui/src/basics/index.ts b/packages/sheets-ui/src/basics/index.ts
index c6f20c3e48..9c53c04e2b 100644
--- a/packages/sheets-ui/src/basics/index.ts
+++ b/packages/sheets-ui/src/basics/index.ts
@@ -1,2 +1,18 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './const';
export * from './interfaces';
diff --git a/packages/sheets-ui/src/basics/interfaces/cell.ts b/packages/sheets-ui/src/basics/interfaces/cell.ts
index f0ec176b46..46ed3d6e48 100644
--- a/packages/sheets-ui/src/basics/interfaces/cell.ts
+++ b/packages/sheets-ui/src/basics/interfaces/cell.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 interface ICell {
row: number;
column: number;
diff --git a/packages/sheets-ui/src/basics/interfaces/component-config/i-sheet-ui-plugin-config.ts b/packages/sheets-ui/src/basics/interfaces/component-config/i-sheet-ui-plugin-config.ts
index f837d8ff93..e891fb78a3 100644
--- a/packages/sheets-ui/src/basics/interfaces/component-config/i-sheet-ui-plugin-config.ts
+++ b/packages/sheets-ui/src/basics/interfaces/component-config/i-sheet-ui-plugin-config.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { LocaleType } from '@univerjs/core';
import type { SheetContainerConfig } from './sheet-container-config';
diff --git a/packages/sheets-ui/src/basics/interfaces/component-config/index.ts b/packages/sheets-ui/src/basics/interfaces/component-config/index.ts
index ab7a44f964..7b6071da04 100644
--- a/packages/sheets-ui/src/basics/interfaces/component-config/index.ts
+++ b/packages/sheets-ui/src/basics/interfaces/component-config/index.ts
@@ -1,2 +1,18 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './i-sheet-ui-plugin-config';
export * from './toolbar-config';
diff --git a/packages/sheets-ui/src/basics/interfaces/component-config/sheet-container-config.ts b/packages/sheets-ui/src/basics/interfaces/component-config/sheet-container-config.ts
index c159d3b6c3..4ff1ec4c60 100644
--- a/packages/sheets-ui/src/basics/interfaces/component-config/sheet-container-config.ts
+++ b/packages/sheets-ui/src/basics/interfaces/component-config/sheet-container-config.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 interface SheetContainerConfig {
outerLeft?: boolean;
diff --git a/packages/sheets-ui/src/basics/interfaces/component-config/toolbar-config.ts b/packages/sheets-ui/src/basics/interfaces/component-config/toolbar-config.ts
index b8c580576c..d1dd830e61 100644
--- a/packages/sheets-ui/src/basics/interfaces/component-config/toolbar-config.ts
+++ b/packages/sheets-ui/src/basics/interfaces/component-config/toolbar-config.ts
@@ -1,4 +1,19 @@
-// sheet工具栏配置
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 interface SheetToolbarConfig {
undo?: boolean; // Undo redo
redo?: boolean; // Undo redo
diff --git a/packages/sheets-ui/src/basics/interfaces/index.ts b/packages/sheets-ui/src/basics/interfaces/index.ts
index e187dee03b..778a4e6364 100644
--- a/packages/sheets-ui/src/basics/interfaces/index.ts
+++ b/packages/sheets-ui/src/basics/interfaces/index.ts
@@ -1,2 +1,18 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './component-config';
// @endindex
diff --git a/packages/sheets-ui/src/commands/commands/__tests__/add-worksheet-merge.command.spec.ts b/packages/sheets-ui/src/commands/commands/__tests__/add-worksheet-merge.command.spec.ts
index 8cb7d0901e..dc4da23115 100644
--- a/packages/sheets-ui/src/commands/commands/__tests__/add-worksheet-merge.command.spec.ts
+++ b/packages/sheets-ui/src/commands/commands/__tests__/add-worksheet-merge.command.spec.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IRange, Univer } from '@univerjs/core';
import {
ICommandService,
diff --git a/packages/sheets-ui/src/commands/commands/__tests__/auto-fill.controller.spec.ts b/packages/sheets-ui/src/commands/commands/__tests__/auto-fill.controller.spec.ts
index 22d51059fa..3a20709d6a 100644
--- a/packages/sheets-ui/src/commands/commands/__tests__/auto-fill.controller.spec.ts
+++ b/packages/sheets-ui/src/commands/commands/__tests__/auto-fill.controller.spec.ts
@@ -1,4 +1,18 @@
-/* eslint-disable no-magic-numbers */
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Univer } from '@univerjs/core';
import {
diff --git a/packages/sheets-ui/src/commands/commands/__tests__/create-selection-command-test-bed.ts b/packages/sheets-ui/src/commands/commands/__tests__/create-selection-command-test-bed.ts
index a353aa1abd..4736a088f9 100644
--- a/packages/sheets-ui/src/commands/commands/__tests__/create-selection-command-test-bed.ts
+++ b/packages/sheets-ui/src/commands/commands/__tests__/create-selection-command-test-bed.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IWorkbookData } from '@univerjs/core';
import { ICommandService, LocaleType } from '@univerjs/core';
import { SetFrozenMutation, SetSelectionsOperation } from '@univerjs/sheets';
diff --git a/packages/sheets-ui/src/commands/commands/__tests__/set-format-painter.command.spec.ts b/packages/sheets-ui/src/commands/commands/__tests__/set-format-painter.command.spec.ts
index 748895fb09..d03a55fdd3 100644
--- a/packages/sheets-ui/src/commands/commands/__tests__/set-format-painter.command.spec.ts
+++ b/packages/sheets-ui/src/commands/commands/__tests__/set-format-painter.command.spec.ts
@@ -1,4 +1,18 @@
-/* eslint-disable no-magic-numbers */
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Univer } from '@univerjs/core';
import {
diff --git a/packages/sheets-ui/src/commands/commands/__tests__/set-frozen.command.spec.ts b/packages/sheets-ui/src/commands/commands/__tests__/set-frozen.command.spec.ts
index e1f4555411..70ff55437c 100644
--- a/packages/sheets-ui/src/commands/commands/__tests__/set-frozen.command.spec.ts
+++ b/packages/sheets-ui/src/commands/commands/__tests__/set-frozen.command.spec.ts
@@ -1,4 +1,18 @@
-/* eslint-disable no-magic-numbers */
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IWorkbookData, Univer } from '@univerjs/core';
import { ICommandService, IUniverInstanceService, RANGE_TYPE } from '@univerjs/core';
diff --git a/packages/sheets-ui/src/commands/commands/__tests__/set-selections.command.spec.ts b/packages/sheets-ui/src/commands/commands/__tests__/set-selections.command.spec.ts
index 09858e5cc0..fc71ca7385 100644
--- a/packages/sheets-ui/src/commands/commands/__tests__/set-selections.command.spec.ts
+++ b/packages/sheets-ui/src/commands/commands/__tests__/set-selections.command.spec.ts
@@ -1,4 +1,18 @@
-/* eslint-disable no-magic-numbers */
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IWorkbookData, Univer } from '@univerjs/core';
import { Direction, ICommandService, IUniverInstanceService, RANGE_TYPE } from '@univerjs/core';
diff --git a/packages/sheets-ui/src/commands/commands/add-worksheet-merge.command.ts b/packages/sheets-ui/src/commands/commands/add-worksheet-merge.command.ts
index 59e5e3ce14..c206793777 100644
--- a/packages/sheets-ui/src/commands/commands/add-worksheet-merge.command.ts
+++ b/packages/sheets-ui/src/commands/commands/add-worksheet-merge.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand, IMutationInfo, IRange } from '@univerjs/core';
import {
CommandType,
diff --git a/packages/sheets-ui/src/commands/commands/auto-fill.command.ts b/packages/sheets-ui/src/commands/commands/auto-fill.command.ts
index fa47b3b9d6..2ef863bb9f 100644
--- a/packages/sheets-ui/src/commands/commands/auto-fill.command.ts
+++ b/packages/sheets-ui/src/commands/commands/auto-fill.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICellData, ICommand, IMutationInfo, IRange, ObjectMatrixPrimitiveType } from '@univerjs/core';
import {
CommandType,
diff --git a/packages/sheets-ui/src/commands/commands/clipboard.command.ts b/packages/sheets-ui/src/commands/commands/clipboard.command.ts
index 5da6c9b6d9..0177c50c56 100644
--- a/packages/sheets-ui/src/commands/commands/clipboard.command.ts
+++ b/packages/sheets-ui/src/commands/commands/clipboard.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand, IMultiCommand } from '@univerjs/core';
import { CommandType, ICommandService, ILogService } from '@univerjs/core';
import { CopyCommand, CutCommand, IClipboardInterfaceService, PasteCommand } from '@univerjs/ui';
diff --git a/packages/sheets-ui/src/commands/commands/inline-format.command.ts b/packages/sheets-ui/src/commands/commands/inline-format.command.ts
index 2d42b82770..877edf02f6 100644
--- a/packages/sheets-ui/src/commands/commands/inline-format.command.ts
+++ b/packages/sheets-ui/src/commands/commands/inline-format.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand } from '@univerjs/core';
import { CommandType, FOCUSING_EDITOR, ICommandService, IContextService } from '@univerjs/core';
import {
diff --git a/packages/sheets-ui/src/commands/commands/refill.command.ts b/packages/sheets-ui/src/commands/commands/refill.command.ts
index 35580b0625..8da0216238 100644
--- a/packages/sheets-ui/src/commands/commands/refill.command.ts
+++ b/packages/sheets-ui/src/commands/commands/refill.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand } from '@univerjs/core';
import { CommandType } from '@univerjs/core';
import type { IAccessor } from '@wendellhu/redi';
diff --git a/packages/sheets-ui/src/commands/commands/rename.command.ts b/packages/sheets-ui/src/commands/commands/rename.command.ts
index dee9e1a875..d79d5b1579 100644
--- a/packages/sheets-ui/src/commands/commands/rename.command.ts
+++ b/packages/sheets-ui/src/commands/commands/rename.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand } from '@univerjs/core';
import { CommandType } from '@univerjs/core';
import type { IAccessor } from '@wendellhu/redi';
diff --git a/packages/sheets-ui/src/commands/commands/set-format-painter.command.ts b/packages/sheets-ui/src/commands/commands/set-format-painter.command.ts
index 39085cdfbc..9abef3ad27 100644
--- a/packages/sheets-ui/src/commands/commands/set-format-painter.command.ts
+++ b/packages/sheets-ui/src/commands/commands/set-format-painter.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICellData, ICommand, IMutationInfo, IRange, ObjectMatrixPrimitiveType } from '@univerjs/core';
import {
CommandType,
diff --git a/packages/sheets-ui/src/commands/commands/set-frozen.command.ts b/packages/sheets-ui/src/commands/commands/set-frozen.command.ts
index 44aed2a15e..905b84a0a5 100644
--- a/packages/sheets-ui/src/commands/commands/set-frozen.command.ts
+++ b/packages/sheets-ui/src/commands/commands/set-frozen.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand } from '@univerjs/core';
import { CommandType, ICommandService, IUndoRedoService, IUniverInstanceService, RANGE_TYPE } from '@univerjs/core';
import type { ISetFrozenMutationParams } from '@univerjs/sheets';
diff --git a/packages/sheets-ui/src/commands/commands/set-scroll.command.ts b/packages/sheets-ui/src/commands/commands/set-scroll.command.ts
index 818300ee85..4eef9a9c19 100644
--- a/packages/sheets-ui/src/commands/commands/set-scroll.command.ts
+++ b/packages/sheets-ui/src/commands/commands/set-scroll.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand } from '@univerjs/core';
import { CommandType, ICommandService, IUniverInstanceService } from '@univerjs/core';
diff --git a/packages/sheets-ui/src/commands/commands/set-selection-frozen.command.ts b/packages/sheets-ui/src/commands/commands/set-selection-frozen.command.ts
index 5275cb1cad..4c13dab7ec 100644
--- a/packages/sheets-ui/src/commands/commands/set-selection-frozen.command.ts
+++ b/packages/sheets-ui/src/commands/commands/set-selection-frozen.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand } from '@univerjs/core';
import { CommandType, ICommandService, IUndoRedoService, IUniverInstanceService, RANGE_TYPE } from '@univerjs/core';
import type { ISetFrozenMutationParams } from '@univerjs/sheets';
diff --git a/packages/sheets-ui/src/commands/commands/set-selection.command.ts b/packages/sheets-ui/src/commands/commands/set-selection.command.ts
index a639e29269..3368f39b56 100644
--- a/packages/sheets-ui/src/commands/commands/set-selection.command.ts
+++ b/packages/sheets-ui/src/commands/commands/set-selection.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Direction, ICommand, IRange } from '@univerjs/core';
import { CommandType, ICommandService, IUniverInstanceService, RANGE_TYPE, Rectangle, Tools } from '@univerjs/core';
import {
diff --git a/packages/sheets-ui/src/commands/commands/set-zoom-ratio.command.ts b/packages/sheets-ui/src/commands/commands/set-zoom-ratio.command.ts
index bbae9f1ce8..a2c503e3bb 100644
--- a/packages/sheets-ui/src/commands/commands/set-zoom-ratio.command.ts
+++ b/packages/sheets-ui/src/commands/commands/set-zoom-ratio.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand } from '@univerjs/core';
import { CommandType, ICommandService, IUniverInstanceService } from '@univerjs/core';
diff --git a/packages/sheets-ui/src/commands/commands/unhide.command.ts b/packages/sheets-ui/src/commands/commands/unhide.command.ts
index 74ce37859b..0fc66e16f7 100644
--- a/packages/sheets-ui/src/commands/commands/unhide.command.ts
+++ b/packages/sheets-ui/src/commands/commands/unhide.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand } from '@univerjs/core';
import { CommandType } from '@univerjs/core';
import type { IAccessor } from '@wendellhu/redi';
diff --git a/packages/sheets-ui/src/commands/operations/activate-cell-edit.operation.ts b/packages/sheets-ui/src/commands/operations/activate-cell-edit.operation.ts
index 16a211f6d9..5d5be17719 100644
--- a/packages/sheets-ui/src/commands/operations/activate-cell-edit.operation.ts
+++ b/packages/sheets-ui/src/commands/operations/activate-cell-edit.operation.ts
@@ -1,4 +1,18 @@
-// This file provide operations to change selection of sheets.
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IOperation } from '@univerjs/core';
import { CommandType } from '@univerjs/core';
diff --git a/packages/sheets-ui/src/commands/operations/cell-edit.operation.ts b/packages/sheets-ui/src/commands/operations/cell-edit.operation.ts
index f4b459da34..d7b90abf04 100644
--- a/packages/sheets-ui/src/commands/operations/cell-edit.operation.ts
+++ b/packages/sheets-ui/src/commands/operations/cell-edit.operation.ts
@@ -1,4 +1,18 @@
-// This file provide operations to change selection of sheets.
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IOperation } from '@univerjs/core';
import { CommandType } from '@univerjs/core';
diff --git a/packages/sheets-ui/src/commands/operations/scroll.operation.ts b/packages/sheets-ui/src/commands/operations/scroll.operation.ts
index 92bd5866ff..10280af0b2 100644
--- a/packages/sheets-ui/src/commands/operations/scroll.operation.ts
+++ b/packages/sheets-ui/src/commands/operations/scroll.operation.ts
@@ -1,4 +1,18 @@
-// This file provide operations to change selection of sheets.
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IOperation } from '@univerjs/core';
import { CommandType, IUniverInstanceService } from '@univerjs/core';
diff --git a/packages/sheets-ui/src/commands/operations/set-editor-resize.operation.ts b/packages/sheets-ui/src/commands/operations/set-editor-resize.operation.ts
index 573c96ad73..20a87f426d 100644
--- a/packages/sheets-ui/src/commands/operations/set-editor-resize.operation.ts
+++ b/packages/sheets-ui/src/commands/operations/set-editor-resize.operation.ts
@@ -1,4 +1,18 @@
-// This file provide operations to change selection of sheets.
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IOperation } from '@univerjs/core';
import { CommandType } from '@univerjs/core';
diff --git a/packages/sheets-ui/src/commands/operations/set-format-painter.operation.ts b/packages/sheets-ui/src/commands/operations/set-format-painter.operation.ts
index 2852624f4b..5eff4e420a 100644
--- a/packages/sheets-ui/src/commands/operations/set-format-painter.operation.ts
+++ b/packages/sheets-ui/src/commands/operations/set-format-painter.operation.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IOperation } from '@univerjs/core';
import { CommandType } from '@univerjs/core';
diff --git a/packages/sheets-ui/src/commands/operations/set-zoom-ratio.operation.ts b/packages/sheets-ui/src/commands/operations/set-zoom-ratio.operation.ts
index 52b5d666c3..3ea73ec8ea 100644
--- a/packages/sheets-ui/src/commands/operations/set-zoom-ratio.operation.ts
+++ b/packages/sheets-ui/src/commands/operations/set-zoom-ratio.operation.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IOperation } from '@univerjs/core';
import { CommandType, IUniverInstanceService, Tools } from '@univerjs/core';
import type { IAccessor } from '@wendellhu/redi';
diff --git a/packages/sheets-ui/src/common/keys.ts b/packages/sheets-ui/src/common/keys.ts
index 38c1a0f743..34db2c1ebe 100644
--- a/packages/sheets-ui/src/common/keys.ts
+++ b/packages/sheets-ui/src/common/keys.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 SHEET_VIEW_KEY {
MAIN = '__SpreadsheetRender__',
ROW = '__SpreadsheetRowHeader__',
diff --git a/packages/sheets-ui/src/common/utils.ts b/packages/sheets-ui/src/common/utils.ts
index 63425183d4..b6005b6447 100644
--- a/packages/sheets-ui/src/common/utils.ts
+++ b/packages/sheets-ui/src/common/utils.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICellData, IMutationInfo, IRange, Worksheet } from '@univerjs/core';
import { ObjectMatrix } from '@univerjs/core';
import type { ISetRangeValuesMutationParams } from '@univerjs/sheets';
diff --git a/packages/sheets-ui/src/components/border-panel/BorderPanel.tsx b/packages/sheets-ui/src/components/border-panel/BorderPanel.tsx
index 5dfc2c1366..35697bab5a 100644
--- a/packages/sheets-ui/src/components/border-panel/BorderPanel.tsx
+++ b/packages/sheets-ui/src/components/border-panel/BorderPanel.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { BorderStyleTypes } from '@univerjs/core';
import { ColorPicker, Dropdown, Menu, MenuItem } from '@univerjs/design';
import { MoreDownSingle, PaintBucket } from '@univerjs/icons';
diff --git a/packages/sheets-ui/src/components/border-panel/border-line/BorderLine.tsx b/packages/sheets-ui/src/components/border-panel/border-line/BorderLine.tsx
index d15f456864..8d845868be 100644
--- a/packages/sheets-ui/src/components/border-panel/border-line/BorderLine.tsx
+++ b/packages/sheets-ui/src/components/border-panel/border-line/BorderLine.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { BorderStyleTypes } from '@univerjs/core';
import React from 'react';
diff --git a/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderDashDot.tsx b/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderDashDot.tsx
index f27b813562..6aa24864e1 100644
--- a/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderDashDot.tsx
+++ b/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderDashDot.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 BorderDashDot = () => (
diff --git a/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderDashDotDot.tsx b/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderDashDotDot.tsx
index d68c3f4cf7..9e9abf401a 100644
--- a/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderDashDotDot.tsx
+++ b/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderDashDotDot.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 BorderDashDotDot = () => (
diff --git a/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderDashed.tsx b/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderDashed.tsx
index 91d263d1e0..583e540ca0 100644
--- a/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderDashed.tsx
+++ b/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderDashed.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 BorderDashed = () => (
diff --git a/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderDotted.tsx b/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderDotted.tsx
index 77701dc496..c87ca1c8f0 100644
--- a/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderDotted.tsx
+++ b/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderDotted.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 BorderDotted = () => (
diff --git a/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderHair.tsx b/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderHair.tsx
index f422771cdb..239cf0348e 100644
--- a/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderHair.tsx
+++ b/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderHair.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 BorderHair = () => (
diff --git a/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderMedium.tsx b/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderMedium.tsx
index ab337a524f..4bbc1ac679 100644
--- a/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderMedium.tsx
+++ b/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderMedium.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 BorderMedium = () => (
diff --git a/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderMediumDashDot.tsx b/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderMediumDashDot.tsx
index 7595ae915f..4732d2f9e5 100644
--- a/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderMediumDashDot.tsx
+++ b/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderMediumDashDot.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 BorderMediumDashDot = () => (
diff --git a/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderMediumDashDotDot.tsx b/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderMediumDashDotDot.tsx
index e26a87cbb9..80a4a98039 100644
--- a/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderMediumDashDotDot.tsx
+++ b/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderMediumDashDotDot.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 BorderMediumDashDotDot = () => (
diff --git a/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderMediumDashed.tsx b/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderMediumDashed.tsx
index e2ba28799a..37b18f69f8 100644
--- a/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderMediumDashed.tsx
+++ b/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderMediumDashed.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 BorderMediumDashed = () => (
diff --git a/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderThick.tsx b/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderThick.tsx
index 5b0a282c13..a4d13e170f 100644
--- a/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderThick.tsx
+++ b/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderThick.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 BorderThick = () => (
diff --git a/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderThin.tsx b/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderThin.tsx
index f1484f058d..9096ec25f2 100644
--- a/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderThin.tsx
+++ b/packages/sheets-ui/src/components/border-panel/border-line/icons/BorderThin.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 BorderThin = () => (
diff --git a/packages/sheets-ui/src/components/border-panel/index.ts b/packages/sheets-ui/src/components/border-panel/index.ts
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/packages/sheets-ui/src/components/border-panel/interface.ts b/packages/sheets-ui/src/components/border-panel/interface.ts
index 9393d5e1b6..27c5da2f6a 100644
--- a/packages/sheets-ui/src/components/border-panel/interface.ts
+++ b/packages/sheets-ui/src/components/border-panel/interface.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 IBorderInfo } from '@univerjs/sheets';
import type { ICustomComponentProps } from '@univerjs/ui';
diff --git a/packages/sheets-ui/src/components/color-picker/index.ts b/packages/sheets-ui/src/components/color-picker/index.ts
index 186e0a8ea0..802343df3f 100644
--- a/packages/sheets-ui/src/components/color-picker/index.ts
+++ b/packages/sheets-ui/src/components/color-picker/index.ts
@@ -1,2 +1,18 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { COLOR_PICKER_COMPONENT } from './interface';
export { ColorPicker } from '@univerjs/design';
diff --git a/packages/sheets-ui/src/components/color-picker/interface.ts b/packages/sheets-ui/src/components/color-picker/interface.ts
index eff75ea93c..9e02fa531b 100644
--- a/packages/sheets-ui/src/components/color-picker/interface.ts
+++ b/packages/sheets-ui/src/components/color-picker/interface.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { COMPONENT_PREFIX } from '../const';
export const COLOR_PICKER_COMPONENT = `${COMPONENT_PREFIX}_COLOR_PICKER_COMPONENT`;
diff --git a/packages/sheets-ui/src/components/const.ts b/packages/sheets-ui/src/components/const.ts
index b513519789..11d342e02e 100644
--- a/packages/sheets-ui/src/components/const.ts
+++ b/packages/sheets-ui/src/components/const.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 COMPONENT_PREFIX = 'UI_PLUGIN_SHEETS';
diff --git a/packages/sheets-ui/src/components/font-family/FontFamily.tsx b/packages/sheets-ui/src/components/font-family/FontFamily.tsx
index 52268306c4..1f04a19e3a 100644
--- a/packages/sheets-ui/src/components/font-family/FontFamily.tsx
+++ b/packages/sheets-ui/src/components/font-family/FontFamily.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { LocaleService } from '@univerjs/core';
import { useDependency } from '@wendellhu/redi/react-bindings';
import React from 'react';
diff --git a/packages/sheets-ui/src/components/font-family/FontFamilyItem.tsx b/packages/sheets-ui/src/components/font-family/FontFamilyItem.tsx
index 8094100140..9e8fd20daf 100644
--- a/packages/sheets-ui/src/components/font-family/FontFamilyItem.tsx
+++ b/packages/sheets-ui/src/components/font-family/FontFamilyItem.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { LocaleService } from '@univerjs/core';
import { useDependency } from '@wendellhu/redi/react-bindings';
import React from 'react';
diff --git a/packages/sheets-ui/src/components/font-family/index.ts b/packages/sheets-ui/src/components/font-family/index.ts
index ba5a1c82f3..f194af476c 100644
--- a/packages/sheets-ui/src/components/font-family/index.ts
+++ b/packages/sheets-ui/src/components/font-family/index.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { FontFamily } from './FontFamily';
export { FontFamilyItem } from './FontFamilyItem';
export { FONT_FAMILY_COMPONENT, FONT_FAMILY_ITEM_COMPONENT } from './interface';
diff --git a/packages/sheets-ui/src/components/font-family/interface.ts b/packages/sheets-ui/src/components/font-family/interface.ts
index 619d9701d8..289d63b09b 100644
--- a/packages/sheets-ui/src/components/font-family/interface.ts
+++ b/packages/sheets-ui/src/components/font-family/interface.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICustomComponentProps } from '@univerjs/ui';
import { COMPONENT_PREFIX } from '../const';
diff --git a/packages/sheets-ui/src/components/font-size/FontSize.tsx b/packages/sheets-ui/src/components/font-size/FontSize.tsx
index 6fad718e3c..59a2c9ec86 100644
--- a/packages/sheets-ui/src/components/font-size/FontSize.tsx
+++ b/packages/sheets-ui/src/components/font-size/FontSize.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { InputNumber } from '@univerjs/design';
import React, { useMemo, useState } from 'react';
diff --git a/packages/sheets-ui/src/components/font-size/index.ts b/packages/sheets-ui/src/components/font-size/index.ts
index 961388f23c..3ab9c6cb68 100644
--- a/packages/sheets-ui/src/components/font-size/index.ts
+++ b/packages/sheets-ui/src/components/font-size/index.ts
@@ -1,2 +1,18 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { FontSize } from './FontSize';
export { FONT_SIZE_COMPONENT } from './interface';
diff --git a/packages/sheets-ui/src/components/font-size/interface.ts b/packages/sheets-ui/src/components/font-size/interface.ts
index ab534b60b9..a79d83877f 100644
--- a/packages/sheets-ui/src/components/font-size/interface.ts
+++ b/packages/sheets-ui/src/components/font-size/interface.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICustomComponentProps } from '@univerjs/ui';
import { COMPONENT_PREFIX } from '../const';
diff --git a/packages/sheets-ui/src/components/menu-item-input/MenuItemInput.tsx b/packages/sheets-ui/src/components/menu-item-input/MenuItemInput.tsx
index 4c75bf9d6b..30f1749113 100644
--- a/packages/sheets-ui/src/components/menu-item-input/MenuItemInput.tsx
+++ b/packages/sheets-ui/src/components/menu-item-input/MenuItemInput.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { LocaleService } from '@univerjs/core';
import { InputNumber } from '@univerjs/design';
import { useDependency } from '@wendellhu/redi/react-bindings';
diff --git a/packages/sheets-ui/src/components/menu-item-input/index.ts b/packages/sheets-ui/src/components/menu-item-input/index.ts
index 338e0cade0..3a84827332 100644
--- a/packages/sheets-ui/src/components/menu-item-input/index.ts
+++ b/packages/sheets-ui/src/components/menu-item-input/index.ts
@@ -1,2 +1,18 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { MENU_ITEM_INPUT_COMPONENT } from './interface';
export { MenuItemInput } from './MenuItemInput';
diff --git a/packages/sheets-ui/src/components/menu-item-input/interface.ts b/packages/sheets-ui/src/components/menu-item-input/interface.ts
index 9ff5fd944d..ee0945a097 100644
--- a/packages/sheets-ui/src/components/menu-item-input/interface.ts
+++ b/packages/sheets-ui/src/components/menu-item-input/interface.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICustomComponentProps } from '@univerjs/ui';
import { COMPONENT_PREFIX } from '../const';
diff --git a/packages/sheets-ui/src/components/range-selector/RangeSelector.tsx b/packages/sheets-ui/src/components/range-selector/RangeSelector.tsx
index 4ff5ed1f7a..d85dd18004 100644
--- a/packages/sheets-ui/src/components/range-selector/RangeSelector.tsx
+++ b/packages/sheets-ui/src/components/range-selector/RangeSelector.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { LocaleService } from '@univerjs/core';
import { Tooltip } from '@univerjs/design';
import { SelectRangeSingle } from '@univerjs/icons';
diff --git a/packages/sheets-ui/src/controllers/active-worksheet/active-worksheet.controller.ts b/packages/sheets-ui/src/controllers/active-worksheet/active-worksheet.controller.ts
index 018ae4e0f6..9d0b526db3 100644
--- a/packages/sheets-ui/src/controllers/active-worksheet/active-worksheet.controller.ts
+++ b/packages/sheets-ui/src/controllers/active-worksheet/active-worksheet.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IMutationInfo, Workbook } from '@univerjs/core';
import { Disposable, ICommandService, IUniverInstanceService, LifecycleStages, OnLifecycle } from '@univerjs/core';
import type {
diff --git a/packages/sheets-ui/src/controllers/auto-fill.controller.ts b/packages/sheets-ui/src/controllers/auto-fill.controller.ts
index 8c5c7808a8..d66d9bd075 100644
--- a/packages/sheets-ui/src/controllers/auto-fill.controller.ts
+++ b/packages/sheets-ui/src/controllers/auto-fill.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICellData, IMutationInfo, IRange, Nullable } from '@univerjs/core';
import {
Direction,
diff --git a/packages/sheets-ui/src/controllers/auto-height.controller.ts b/packages/sheets-ui/src/controllers/auto-height.controller.ts
index a900d99568..efbb6d681f 100644
--- a/packages/sheets-ui/src/controllers/auto-height.controller.ts
+++ b/packages/sheets-ui/src/controllers/auto-height.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IRange } from '@univerjs/core';
import { IUniverInstanceService, LifecycleStages, OnLifecycle } from '@univerjs/core';
import type {
diff --git a/packages/sheets-ui/src/controllers/clipboard/clipboard.controller.ts b/packages/sheets-ui/src/controllers/clipboard/clipboard.controller.ts
index 87bdbb6414..4f96d96a4d 100644
--- a/packages/sheets-ui/src/controllers/clipboard/clipboard.controller.ts
+++ b/packages/sheets-ui/src/controllers/clipboard/clipboard.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICellData, IMutationInfo, IRange, IRowData, ObjectMatrixPrimitiveType, Worksheet } from '@univerjs/core';
import {
BooleanNumber,
diff --git a/packages/sheets-ui/src/controllers/clipboard/utils.ts b/packages/sheets-ui/src/controllers/clipboard/utils.ts
index 775447fba3..9aa2f95258 100644
--- a/packages/sheets-ui/src/controllers/clipboard/utils.ts
+++ b/packages/sheets-ui/src/controllers/clipboard/utils.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICellData, IMutationInfo, IRange } from '@univerjs/core';
import { IUniverInstanceService, ObjectMatrix, Rectangle } from '@univerjs/core';
import type {
diff --git a/packages/sheets-ui/src/controllers/contextmenu/contextmenu.controller.ts b/packages/sheets-ui/src/controllers/contextmenu/contextmenu.controller.ts
index 8af734a07d..0914204f6a 100644
--- a/packages/sheets-ui/src/controllers/contextmenu/contextmenu.controller.ts
+++ b/packages/sheets-ui/src/controllers/contextmenu/contextmenu.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {
Disposable,
IUniverInstanceService,
diff --git a/packages/sheets-ui/src/controllers/editor-bridge.controller.ts b/packages/sheets-ui/src/controllers/editor-bridge.controller.ts
index a2724fa93a..c2cd521048 100644
--- a/packages/sheets-ui/src/controllers/editor-bridge.controller.ts
+++ b/packages/sheets-ui/src/controllers/editor-bridge.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommandInfo, Nullable } from '@univerjs/core';
import {
Disposable,
diff --git a/packages/sheets-ui/src/controllers/editor/editing.controller.ts b/packages/sheets-ui/src/controllers/editor/editing.controller.ts
index 0aa7febd8d..5c80d04118 100644
--- a/packages/sheets-ui/src/controllers/editor/editing.controller.ts
+++ b/packages/sheets-ui/src/controllers/editor/editing.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {
DOCS_NORMAL_EDITOR_UNIT_ID_KEY,
IUndoRedoService,
diff --git a/packages/sheets-ui/src/controllers/editor/end-edit.controller.ts b/packages/sheets-ui/src/controllers/editor/end-edit.controller.ts
index 0feecbefe3..89c017365e 100644
--- a/packages/sheets-ui/src/controllers/editor/end-edit.controller.ts
+++ b/packages/sheets-ui/src/controllers/editor/end-edit.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { DocumentDataModel, ICellData, ICommandInfo, Nullable, Observer } from '@univerjs/core';
import {
DEFAULT_EMPTY_DOCUMENT_VALUE,
diff --git a/packages/sheets-ui/src/controllers/editor/formula-editor.controller.ts b/packages/sheets-ui/src/controllers/editor/formula-editor.controller.ts
index ab21e53ea1..96c922a4cb 100644
--- a/packages/sheets-ui/src/controllers/editor/formula-editor.controller.ts
+++ b/packages/sheets-ui/src/controllers/editor/formula-editor.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommandInfo, IParagraph, ITextRun, Nullable } from '@univerjs/core';
import {
DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY,
diff --git a/packages/sheets-ui/src/controllers/editor/initialize-editor.controller.ts b/packages/sheets-ui/src/controllers/editor/initialize-editor.controller.ts
index 2f30a36a8a..6d7ecadbf8 100644
--- a/packages/sheets-ui/src/controllers/editor/initialize-editor.controller.ts
+++ b/packages/sheets-ui/src/controllers/editor/initialize-editor.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '@univerjs/core';
import {
DEFAULT_EMPTY_DOCUMENT_VALUE,
diff --git a/packages/sheets-ui/src/controllers/editor/start-edit.controller.ts b/packages/sheets-ui/src/controllers/editor/start-edit.controller.ts
index 5345bcb5c3..baba22740c 100644
--- a/packages/sheets-ui/src/controllers/editor/start-edit.controller.ts
+++ b/packages/sheets-ui/src/controllers/editor/start-edit.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommandInfo, IDocumentBody, IDocumentData, IPosition, ITextRotation, Nullable } from '@univerjs/core';
import {
DEFAULT_EMPTY_DOCUMENT_VALUE,
diff --git a/packages/sheets-ui/src/controllers/format-painter/format-painter.controller.ts b/packages/sheets-ui/src/controllers/format-painter/format-painter.controller.ts
index 40748e5289..d055f46de0 100644
--- a/packages/sheets-ui/src/controllers/format-painter/format-painter.controller.ts
+++ b/packages/sheets-ui/src/controllers/format-painter/format-painter.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICellData, ICommandInfo, IRange } from '@univerjs/core';
import { Disposable, ICommandService, IUniverInstanceService, LifecycleStages, OnLifecycle } from '@univerjs/core';
import { CURSOR_TYPE, IRenderManagerService } from '@univerjs/engine-render';
diff --git a/packages/sheets-ui/src/controllers/freeze.controller.ts b/packages/sheets-ui/src/controllers/freeze.controller.ts
index ac27d1d31f..4bed0b2171 100644
--- a/packages/sheets-ui/src/controllers/freeze.controller.ts
+++ b/packages/sheets-ui/src/controllers/freeze.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { TinyColor } from '@ctrl/tinycolor';
import type { ICommandInfo, IStyleSheet, Nullable, Observer } from '@univerjs/core';
import {
diff --git a/packages/sheets-ui/src/controllers/header-menu.controller.ts b/packages/sheets-ui/src/controllers/header-menu.controller.ts
index 0f9d6ca1b1..3506c05fc2 100644
--- a/packages/sheets-ui/src/controllers/header-menu.controller.ts
+++ b/packages/sheets-ui/src/controllers/header-menu.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable, Observer } from '@univerjs/core';
import { Disposable, IUniverInstanceService, LifecycleStages, OnLifecycle } from '@univerjs/core';
import type { IMouseEvent, IPointerEvent } from '@univerjs/engine-render';
diff --git a/packages/sheets-ui/src/controllers/header-move.controller.ts b/packages/sheets-ui/src/controllers/header-move.controller.ts
index 1d5c916c90..5740b891cc 100644
--- a/packages/sheets-ui/src/controllers/header-move.controller.ts
+++ b/packages/sheets-ui/src/controllers/header-move.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable, Observer } from '@univerjs/core';
import {
Disposable,
diff --git a/packages/sheets-ui/src/controllers/header-resize.controller.ts b/packages/sheets-ui/src/controllers/header-resize.controller.ts
index 7698238371..26eea6ff0b 100644
--- a/packages/sheets-ui/src/controllers/header-resize.controller.ts
+++ b/packages/sheets-ui/src/controllers/header-resize.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable, Observer } from '@univerjs/core';
import { Disposable, ICommandService, IUniverInstanceService, LifecycleStages, OnLifecycle } from '@univerjs/core';
import type { IMouseEvent, IPointerEvent } from '@univerjs/engine-render';
diff --git a/packages/sheets-ui/src/controllers/header-unhide.controller.ts b/packages/sheets-ui/src/controllers/header-unhide.controller.ts
index 10c3b28372..7055b97279 100644
--- a/packages/sheets-ui/src/controllers/header-unhide.controller.ts
+++ b/packages/sheets-ui/src/controllers/header-unhide.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IKeyValue, Workbook, Worksheet } from '@univerjs/core';
import {
getWorksheetUID,
diff --git a/packages/sheets-ui/src/controllers/menu/__tests__/create-menu-test-bed.ts b/packages/sheets-ui/src/controllers/menu/__tests__/create-menu-test-bed.ts
index a3747c0c82..f165e361d4 100644
--- a/packages/sheets-ui/src/controllers/menu/__tests__/create-menu-test-bed.ts
+++ b/packages/sheets-ui/src/controllers/menu/__tests__/create-menu-test-bed.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IWorkbookData } from '@univerjs/core';
import { LocaleType, Plugin, PluginType, Univer } from '@univerjs/core';
import { SelectionManagerService, SheetInterceptorService, SheetPermissionService } from '@univerjs/sheets';
diff --git a/packages/sheets-ui/src/controllers/menu/__tests__/menu.spec.ts b/packages/sheets-ui/src/controllers/menu/__tests__/menu.spec.ts
index a7570fb6c6..d8d3eb800d 100644
--- a/packages/sheets-ui/src/controllers/menu/__tests__/menu.spec.ts
+++ b/packages/sheets-ui/src/controllers/menu/__tests__/menu.spec.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Univer } from '@univerjs/core';
import {
DisposableCollection,
diff --git a/packages/sheets-ui/src/controllers/menu/__tests__/row-col.menu.spec.ts b/packages/sheets-ui/src/controllers/menu/__tests__/row-col.menu.spec.ts
index f8b54a2c99..76ab5aa424 100644
--- a/packages/sheets-ui/src/controllers/menu/__tests__/row-col.menu.spec.ts
+++ b/packages/sheets-ui/src/controllers/menu/__tests__/row-col.menu.spec.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Univer } from '@univerjs/core';
import {
DisposableCollection,
diff --git a/packages/sheets-ui/src/controllers/menu/border.menu.ts b/packages/sheets-ui/src/controllers/menu/border.menu.ts
index 4c3f1924ba..d97d188ff3 100644
--- a/packages/sheets-ui/src/controllers/menu/border.menu.ts
+++ b/packages/sheets-ui/src/controllers/menu/border.menu.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommandService } from '@univerjs/core';
import type { IBorderInfo } from '@univerjs/sheets';
import { BorderStyleManagerService, SetBorderBasicCommand } from '@univerjs/sheets';
diff --git a/packages/sheets-ui/src/controllers/menu/clear.menu.ts b/packages/sheets-ui/src/controllers/menu/clear.menu.ts
index 446bb48f78..1697d8c2fa 100644
--- a/packages/sheets-ui/src/controllers/menu/clear.menu.ts
+++ b/packages/sheets-ui/src/controllers/menu/clear.menu.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ClearSelectionAllCommand, ClearSelectionContentCommand, ClearSelectionFormatCommand } from '@univerjs/sheets';
import type { IMenuButtonItem, IMenuSelectorItem } from '@univerjs/ui';
import { MenuGroup, MenuItemType, MenuPosition } from '@univerjs/ui';
diff --git a/packages/sheets-ui/src/controllers/menu/delete.menu.ts b/packages/sheets-ui/src/controllers/menu/delete.menu.ts
index dbae29b4eb..c1c92b2639 100644
--- a/packages/sheets-ui/src/controllers/menu/delete.menu.ts
+++ b/packages/sheets-ui/src/controllers/menu/delete.menu.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {
DeleteRangeMoveLeftCommand,
DeleteRangeMoveUpCommand,
diff --git a/packages/sheets-ui/src/controllers/menu/insert.menu.ts b/packages/sheets-ui/src/controllers/menu/insert.menu.ts
index 02edb9a5eb..d2c465b352 100644
--- a/packages/sheets-ui/src/controllers/menu/insert.menu.ts
+++ b/packages/sheets-ui/src/controllers/menu/insert.menu.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {
InsertColAfterCommand,
InsertColBeforeCommand,
diff --git a/packages/sheets-ui/src/controllers/menu/menu.ts b/packages/sheets-ui/src/controllers/menu/menu.ts
index 8df135df87..d961af9ba3 100644
--- a/packages/sheets-ui/src/controllers/menu/menu.ts
+++ b/packages/sheets-ui/src/controllers/menu/menu.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {
FontItalic,
FontWeight,
diff --git a/packages/sheets-ui/src/controllers/menu/merge.menu.ts b/packages/sheets-ui/src/controllers/menu/merge.menu.ts
index 62dc9f204c..a9c5953c7e 100644
--- a/packages/sheets-ui/src/controllers/menu/merge.menu.ts
+++ b/packages/sheets-ui/src/controllers/menu/merge.menu.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { RemoveWorksheetMergeCommand } from '@univerjs/sheets';
import type { IMenuButtonItem, IMenuSelectorItem } from '@univerjs/ui';
import { MenuGroup, MenuItemType, MenuPosition } from '@univerjs/ui';
diff --git a/packages/sheets-ui/src/controllers/menu/sheet.menu.ts b/packages/sheets-ui/src/controllers/menu/sheet.menu.ts
index acd9701eab..28fdc19090 100644
--- a/packages/sheets-ui/src/controllers/menu/sheet.menu.ts
+++ b/packages/sheets-ui/src/controllers/menu/sheet.menu.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommandService, IUniverInstanceService } from '@univerjs/core';
import {
CopySheetCommand,
diff --git a/packages/sheets-ui/src/controllers/move-range.controller.ts b/packages/sheets-ui/src/controllers/move-range.controller.ts
index 48bb579e65..a6c88ea4ed 100644
--- a/packages/sheets-ui/src/controllers/move-range.controller.ts
+++ b/packages/sheets-ui/src/controllers/move-range.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IRange } from '@univerjs/core';
import {
Disposable,
diff --git a/packages/sheets-ui/src/controllers/navigation/navigation.controller.ts b/packages/sheets-ui/src/controllers/navigation/navigation.controller.ts
index 30da12edeb..9095c9cd5e 100644
--- a/packages/sheets-ui/src/controllers/navigation/navigation.controller.ts
+++ b/packages/sheets-ui/src/controllers/navigation/navigation.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Disposable, ICommandService, LifecycleStages, OnLifecycle } from '@univerjs/core';
import { Inject } from '@wendellhu/redi';
diff --git a/packages/sheets-ui/src/controllers/scroll.controller.ts b/packages/sheets-ui/src/controllers/scroll.controller.ts
index a6a15dbf84..4ea3acb165 100644
--- a/packages/sheets-ui/src/controllers/scroll.controller.ts
+++ b/packages/sheets-ui/src/controllers/scroll.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Direction } from '@univerjs/core';
import {
Disposable,
diff --git a/packages/sheets-ui/src/controllers/selection.controller.ts b/packages/sheets-ui/src/controllers/selection.controller.ts
index 6208d1f94b..23065315a1 100644
--- a/packages/sheets-ui/src/controllers/selection.controller.ts
+++ b/packages/sheets-ui/src/controllers/selection.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommandInfo } from '@univerjs/core';
import {
Disposable,
diff --git a/packages/sheets-ui/src/controllers/sheet-render.controller.ts b/packages/sheets-ui/src/controllers/sheet-render.controller.ts
index 46b98237b9..fda83824c6 100644
--- a/packages/sheets-ui/src/controllers/sheet-render.controller.ts
+++ b/packages/sheets-ui/src/controllers/sheet-render.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommandInfo } from '@univerjs/core';
import {
Disposable,
diff --git a/packages/sheets-ui/src/controllers/sheet-ui.controller.ts b/packages/sheets-ui/src/controllers/sheet-ui.controller.ts
index f8bc7e9de0..b81d42f7cf 100644
--- a/packages/sheets-ui/src/controllers/sheet-ui.controller.ts
+++ b/packages/sheets-ui/src/controllers/sheet-ui.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Disposable, ICommandService, LifecycleStages, OnLifecycle } from '@univerjs/core';
import {
SetBoldCommand,
diff --git a/packages/sheets-ui/src/controllers/shortcuts/editor.shortcut.ts b/packages/sheets-ui/src/controllers/shortcuts/editor.shortcut.ts
index c6b5365929..5f0b974b07 100644
--- a/packages/sheets-ui/src/controllers/shortcuts/editor.shortcut.ts
+++ b/packages/sheets-ui/src/controllers/shortcuts/editor.shortcut.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { FOCUSING_EDITOR } from '@univerjs/core';
import { BreakLineCommand, DeleteLeftCommand } from '@univerjs/docs';
import { DeviceInputEventType } from '@univerjs/engine-render';
diff --git a/packages/sheets-ui/src/controllers/shortcuts/operation.shortcut.ts b/packages/sheets-ui/src/controllers/shortcuts/operation.shortcut.ts
index d553731e85..9b6425b7c8 100644
--- a/packages/sheets-ui/src/controllers/shortcuts/operation.shortcut.ts
+++ b/packages/sheets-ui/src/controllers/shortcuts/operation.shortcut.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { SetColHiddenCommand, SetRowHiddenCommand } from '@univerjs/sheets';
import type { IShortcutItem } from '@univerjs/ui';
import { KeyCode, MetaKeys } from '@univerjs/ui';
diff --git a/packages/sheets-ui/src/controllers/shortcuts/selection.shortcut.ts b/packages/sheets-ui/src/controllers/shortcuts/selection.shortcut.ts
index b6cb475554..0ec0293e4e 100644
--- a/packages/sheets-ui/src/controllers/shortcuts/selection.shortcut.ts
+++ b/packages/sheets-ui/src/controllers/shortcuts/selection.shortcut.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Direction } from '@univerjs/core';
import type { IShortcutItem } from '@univerjs/ui';
import { KeyCode, MetaKeys } from '@univerjs/ui';
diff --git a/packages/sheets-ui/src/controllers/shortcuts/style.shortcut.ts b/packages/sheets-ui/src/controllers/shortcuts/style.shortcut.ts
index 3e281347e4..2d7e04fb2e 100644
--- a/packages/sheets-ui/src/controllers/shortcuts/style.shortcut.ts
+++ b/packages/sheets-ui/src/controllers/shortcuts/style.shortcut.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { SetBoldCommand, SetItalicCommand, SetStrikeThroughCommand, SetUnderlineCommand } from '@univerjs/sheets';
import type { IShortcutItem } from '@univerjs/ui';
import { KeyCode, MetaKeys } from '@univerjs/ui';
diff --git a/packages/sheets-ui/src/controllers/shortcuts/utils.ts b/packages/sheets-ui/src/controllers/shortcuts/utils.ts
index e7c0da2e2e..e3c86013bd 100644
--- a/packages/sheets-ui/src/controllers/shortcuts/utils.ts
+++ b/packages/sheets-ui/src/controllers/shortcuts/utils.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IContextService } from '@univerjs/core';
import {
FOCUSING_EDITOR,
diff --git a/packages/sheets-ui/src/controllers/shortcuts/value.shortcut.ts b/packages/sheets-ui/src/controllers/shortcuts/value.shortcut.ts
index eb6e512ef3..2d5f8c4be6 100644
--- a/packages/sheets-ui/src/controllers/shortcuts/value.shortcut.ts
+++ b/packages/sheets-ui/src/controllers/shortcuts/value.shortcut.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ClearSelectionContentCommand } from '@univerjs/sheets';
import type { IShortcutItem } from '@univerjs/ui';
import { KeyCode } from '@univerjs/ui';
diff --git a/packages/sheets-ui/src/controllers/shortcuts/view.shortcut.ts b/packages/sheets-ui/src/controllers/shortcuts/view.shortcut.ts
index 236c69c443..6dd7e607f6 100644
--- a/packages/sheets-ui/src/controllers/shortcuts/view.shortcut.ts
+++ b/packages/sheets-ui/src/controllers/shortcuts/view.shortcut.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IShortcutItem } from '@univerjs/ui';
import { KeyCode, MetaKeys } from '@univerjs/ui';
diff --git a/packages/sheets-ui/src/controllers/status-bar.controller.ts b/packages/sheets-ui/src/controllers/status-bar.controller.ts
index f7c59710bd..33ff2e8a43 100644
--- a/packages/sheets-ui/src/controllers/status-bar.controller.ts
+++ b/packages/sheets-ui/src/controllers/status-bar.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IRange } from '@univerjs/core';
import {
Disposable,
diff --git a/packages/sheets-ui/src/controllers/utils/component-tools.ts b/packages/sheets-ui/src/controllers/utils/component-tools.ts
index c04cb8e932..f0af8c4965 100644
--- a/packages/sheets-ui/src/controllers/utils/component-tools.ts
+++ b/packages/sheets-ui/src/controllers/utils/component-tools.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IUniverInstanceService, Nullable } from '@univerjs/core';
import type {
Engine,
diff --git a/packages/sheets-ui/src/controllers/zoom.controller.ts b/packages/sheets-ui/src/controllers/zoom.controller.ts
index 2fffbd4a2b..d56a3a76db 100644
--- a/packages/sheets-ui/src/controllers/zoom.controller.ts
+++ b/packages/sheets-ui/src/controllers/zoom.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommandInfo } from '@univerjs/core';
import {
Disposable,
diff --git a/packages/sheets-ui/src/index.ts b/packages/sheets-ui/src/index.ts
index 8b069164c1..0ecc71e3e8 100644
--- a/packages/sheets-ui/src/index.ts
+++ b/packages/sheets-ui/src/index.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './basics';
export { getEditorObject } from './basics/editor/get-editor-object';
export { AutoFillCommand } from './commands/commands/auto-fill.command';
diff --git a/packages/sheets-ui/src/locale/en-US.ts b/packages/sheets-ui/src/locale/en-US.ts
index acc0225ca8..8f91660a46 100644
--- a/packages/sheets-ui/src/locale/en-US.ts
+++ b/packages/sheets-ui/src/locale/en-US.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {
spreadsheetLabel: 'Spreadsheet',
spreadsheetRightLabel: 'more Sheets',
diff --git a/packages/sheets-ui/src/locale/index.ts b/packages/sheets-ui/src/locale/index.ts
index b0b1d48d5d..ac8ca08af1 100644
--- a/packages/sheets-ui/src/locale/index.ts
+++ b/packages/sheets-ui/src/locale/index.ts
@@ -1,2 +1,18 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 enUS } from './en-US';
export { default as zhCN } from './zh-CN';
diff --git a/packages/sheets-ui/src/locale/zh-CN.ts b/packages/sheets-ui/src/locale/zh-CN.ts
index 8eb0fa8be9..43fac1f581 100644
--- a/packages/sheets-ui/src/locale/zh-CN.ts
+++ b/packages/sheets-ui/src/locale/zh-CN.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {
spreadsheetLabel: '插件',
spreadsheetRightLabel: '更多 Sheets',
diff --git a/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts b/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts
index ecc8c1bc23..63ab72cc0c 100644
--- a/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts
+++ b/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IRange } from '@univerjs/core';
import { Disposable, IUniverInstanceService, LifecycleStages, OnLifecycle, toDisposable } from '@univerjs/core';
import { SelectionManagerService, SheetInterceptorService } from '@univerjs/sheets';
diff --git a/packages/sheets-ui/src/services/auto-fill/rules.ts b/packages/sheets-ui/src/services/auto-fill/rules.ts
index 8ccbb3ab6d..94215374cd 100644
--- a/packages/sheets-ui/src/services/auto-fill/rules.ts
+++ b/packages/sheets-ui/src/services/auto-fill/rules.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Direction } from '@univerjs/core';
import {
diff --git a/packages/sheets-ui/src/services/auto-fill/tools.ts b/packages/sheets-ui/src/services/auto-fill/tools.ts
index b19505fe1f..d4c065ec30 100644
--- a/packages/sheets-ui/src/services/auto-fill/tools.ts
+++ b/packages/sheets-ui/src/services/auto-fill/tools.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICellData, IRange, Nullable } from '@univerjs/core';
import { Direction, Tools } from '@univerjs/core';
diff --git a/packages/sheets-ui/src/services/auto-fill/type.ts b/packages/sheets-ui/src/services/auto-fill/type.ts
index 7ffa2f83bb..353e036fb0 100644
--- a/packages/sheets-ui/src/services/auto-fill/type.ts
+++ b/packages/sheets-ui/src/services/auto-fill/type.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Direction, ICellData, IMutationInfo, IRange, Nullable } from '@univerjs/core';
export enum DATA_TYPE {
diff --git a/packages/sheets-ui/src/services/clipboard/__tests__/clipboard-service.spec.ts b/packages/sheets-ui/src/services/clipboard/__tests__/clipboard-service.spec.ts
index e2e9ca2ab4..dd743f0ee8 100644
--- a/packages/sheets-ui/src/services/clipboard/__tests__/clipboard-service.spec.ts
+++ b/packages/sheets-ui/src/services/clipboard/__tests__/clipboard-service.spec.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICellData, IRange, IStyleData, Nullable, Univer } from '@univerjs/core';
import { ICommandService, IUniverInstanceService, RANGE_TYPE, Rectangle } from '@univerjs/core';
import {
diff --git a/packages/sheets-ui/src/services/clipboard/__tests__/clipboard-test-bed.ts b/packages/sheets-ui/src/services/clipboard/__tests__/clipboard-test-bed.ts
index 81e885d078..27946ad8ab 100644
--- a/packages/sheets-ui/src/services/clipboard/__tests__/clipboard-test-bed.ts
+++ b/packages/sheets-ui/src/services/clipboard/__tests__/clipboard-test-bed.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IWorkbookData } from '@univerjs/core';
import { ILogService, IUniverInstanceService, LocaleType, LogLevel, Plugin, PluginType, Univer } from '@univerjs/core';
import { IRenderManagerService, RenderManagerService } from '@univerjs/engine-render';
diff --git a/packages/sheets-ui/src/services/clipboard/__tests__/mock-clipboard.ts b/packages/sheets-ui/src/services/clipboard/__tests__/mock-clipboard.ts
index 539038c127..81b68cbe19 100644
--- a/packages/sheets-ui/src/services/clipboard/__tests__/mock-clipboard.ts
+++ b/packages/sheets-ui/src/services/clipboard/__tests__/mock-clipboard.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 interface IClipboardItem {
readonly types: readonly string[];
getType(type: string): Promise<Blob>;
diff --git a/packages/sheets-ui/src/services/clipboard/__tests__/utils.spec.ts b/packages/sheets-ui/src/services/clipboard/__tests__/utils.spec.ts
index 6b13cf0ef9..ad80601a94 100644
--- a/packages/sheets-ui/src/services/clipboard/__tests__/utils.spec.ts
+++ b/packages/sheets-ui/src/services/clipboard/__tests__/utils.spec.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IRange } from '@univerjs/core';
import { describe, expect, it } from 'vitest';
diff --git a/packages/sheets-ui/src/services/clipboard/clipboard.service.ts b/packages/sheets-ui/src/services/clipboard/clipboard.service.ts
index eb306c83db..0c9053adf3 100644
--- a/packages/sheets-ui/src/services/clipboard/clipboard.service.ts
+++ b/packages/sheets-ui/src/services/clipboard/clipboard.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICellData, IMutationInfo, IRange, ObjectMatrixPrimitiveType, Worksheet } from '@univerjs/core';
import {
Disposable,
diff --git a/packages/sheets-ui/src/services/clipboard/copy-content-cache.ts b/packages/sheets-ui/src/services/clipboard/copy-content-cache.ts
index 71d674f8f0..23e6ec1dea 100644
--- a/packages/sheets-ui/src/services/clipboard/copy-content-cache.ts
+++ b/packages/sheets-ui/src/services/clipboard/copy-content-cache.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IRange, ObjectMatrix } from '@univerjs/core';
import { LRUMap, Tools } from '@univerjs/core';
diff --git a/packages/sheets-ui/src/services/clipboard/html-to-usm/converter.ts b/packages/sheets-ui/src/services/clipboard/html-to-usm/converter.ts
index 568175c67c..85243a3fb3 100644
--- a/packages/sheets-ui/src/services/clipboard/html-to-usm/converter.ts
+++ b/packages/sheets-ui/src/services/clipboard/html-to-usm/converter.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IDocumentBody, IDocumentData, ITextRun, ITextStyle, Nullable } from '@univerjs/core';
import { ObjectMatrix } from '@univerjs/core';
import { handleStringToStyle } from '@univerjs/ui';
diff --git a/packages/sheets-ui/src/services/clipboard/html-to-usm/parse-node-style.ts b/packages/sheets-ui/src/services/clipboard/html-to-usm/parse-node-style.ts
index 92d82aa23d..44ca21e174 100644
--- a/packages/sheets-ui/src/services/clipboard/html-to-usm/parse-node-style.ts
+++ b/packages/sheets-ui/src/services/clipboard/html-to-usm/parse-node-style.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { TinyColor } from '@ctrl/tinycolor';
import type { ITextStyle } from '@univerjs/core';
import { BaselineOffset, BooleanNumber } from '@univerjs/core';
diff --git a/packages/sheets-ui/src/services/clipboard/html-to-usm/paste-plugins/plugin-lark.ts b/packages/sheets-ui/src/services/clipboard/html-to-usm/paste-plugins/plugin-lark.ts
index 59f228d627..df98c00848 100644
--- a/packages/sheets-ui/src/services/clipboard/html-to-usm/paste-plugins/plugin-lark.ts
+++ b/packages/sheets-ui/src/services/clipboard/html-to-usm/paste-plugins/plugin-lark.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { BooleanNumber } from '@univerjs/core';
import { extractNodeStyle as getInlineStyle } from '../parse-node-style';
diff --git a/packages/sheets-ui/src/services/clipboard/html-to-usm/paste-plugins/plugin-word.ts b/packages/sheets-ui/src/services/clipboard/html-to-usm/paste-plugins/plugin-word.ts
index adf3dcca6a..a6dcbd1223 100644
--- a/packages/sheets-ui/src/services/clipboard/html-to-usm/paste-plugins/plugin-word.ts
+++ b/packages/sheets-ui/src/services/clipboard/html-to-usm/paste-plugins/plugin-word.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IParagraph } from '@univerjs/core';
import { BooleanNumber } from '@univerjs/core';
diff --git a/packages/sheets-ui/src/services/clipboard/html-to-usm/paste-plugins/type.ts b/packages/sheets-ui/src/services/clipboard/html-to-usm/paste-plugins/type.ts
index 6f21a92da1..b7edb7edcc 100644
--- a/packages/sheets-ui/src/services/clipboard/html-to-usm/paste-plugins/type.ts
+++ b/packages/sheets-ui/src/services/clipboard/html-to-usm/paste-plugins/type.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IDocumentBody, ITextStyle } from '@univerjs/core';
export interface IStyleRule {
diff --git a/packages/sheets-ui/src/services/clipboard/html-to-usm/utils.ts b/packages/sheets-ui/src/services/clipboard/html-to-usm/utils.ts
index 659d4b906f..78dc347c4b 100644
--- a/packages/sheets-ui/src/services/clipboard/html-to-usm/utils.ts
+++ b/packages/sheets-ui/src/services/clipboard/html-to-usm/utils.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IParagraphStyle, Nullable } from '@univerjs/core';
export default function parseToDom(rawHtml: string) {
diff --git a/packages/sheets-ui/src/services/clipboard/type.ts b/packages/sheets-ui/src/services/clipboard/type.ts
index 592c9b1afc..14cb000ef6 100644
--- a/packages/sheets-ui/src/services/clipboard/type.ts
+++ b/packages/sheets-ui/src/services/clipboard/type.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICellData, IMutationInfo, IRange, ObjectMatrix } from '@univerjs/core';
export enum COPY_TYPE {
diff --git a/packages/sheets-ui/src/services/clipboard/usm-to-html/convertor.ts b/packages/sheets-ui/src/services/clipboard/usm-to-html/convertor.ts
index 8b55720eb0..89043a7926 100644
--- a/packages/sheets-ui/src/services/clipboard/usm-to-html/convertor.ts
+++ b/packages/sheets-ui/src/services/clipboard/usm-to-html/convertor.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICellData, IRange, ObjectMatrix } from '@univerjs/core';
import type { ICellDataWithSpanInfo, IClipboardPropertyItem, ISheetClipboardHook } from '../type';
diff --git a/packages/sheets-ui/src/services/clipboard/utils.ts b/packages/sheets-ui/src/services/clipboard/utils.ts
index 6a72010ea2..5b817e8990 100644
--- a/packages/sheets-ui/src/services/clipboard/utils.ts
+++ b/packages/sheets-ui/src/services/clipboard/utils.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IRange } from '@univerjs/core';
/**
diff --git a/packages/sheets-ui/src/services/editor-bridge.service.ts b/packages/sheets-ui/src/services/editor-bridge.service.ts
index 12989f5a07..ab937a7f93 100644
--- a/packages/sheets-ui/src/services/editor-bridge.service.ts
+++ b/packages/sheets-ui/src/services/editor-bridge.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICellDataForSheetInterceptor, IPosition, Nullable } from '@univerjs/core';
import { createInterceptorKey, Disposable, InterceptorManager, toDisposable } from '@univerjs/core';
import type { IDocumentLayoutObject } from '@univerjs/engine-render';
diff --git a/packages/sheets-ui/src/services/editor/cell-editor-manager.service.ts b/packages/sheets-ui/src/services/editor/cell-editor-manager.service.ts
index cfb14f48ab..fd0ea3ccea 100644
--- a/packages/sheets-ui/src/services/editor/cell-editor-manager.service.ts
+++ b/packages/sheets-ui/src/services/editor/cell-editor-manager.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IPosition, Nullable } from '@univerjs/core';
import type { IDisposable } from '@wendellhu/redi';
import { createIdentifier } from '@wendellhu/redi';
diff --git a/packages/sheets-ui/src/services/editor/formula-editor-manager.service.ts b/packages/sheets-ui/src/services/editor/formula-editor-manager.service.ts
index a61c6fbec1..ee6670c859 100644
--- a/packages/sheets-ui/src/services/editor/formula-editor-manager.service.ts
+++ b/packages/sheets-ui/src/services/editor/formula-editor-manager.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '@univerjs/core';
import type { IDisposable } from '@wendellhu/redi';
import { createIdentifier } from '@wendellhu/redi';
diff --git a/packages/sheets-ui/src/services/format-painter/format-painter.service.ts b/packages/sheets-ui/src/services/format-painter/format-painter.service.ts
index ca7099181e..11c377929e 100644
--- a/packages/sheets-ui/src/services/format-painter/format-painter.service.ts
+++ b/packages/sheets-ui/src/services/format-painter/format-painter.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICellData, IRange, IStyleData } from '@univerjs/core';
import { Disposable, IUniverInstanceService, ObjectMatrix } from '@univerjs/core';
import { getCellInfoInMergeData } from '@univerjs/engine-render';
diff --git a/packages/sheets-ui/src/services/mark-selection/mark-selection.service.ts b/packages/sheets-ui/src/services/mark-selection/mark-selection.service.ts
index 119fc2037b..522511021a 100644
--- a/packages/sheets-ui/src/services/mark-selection/mark-selection.service.ts
+++ b/packages/sheets-ui/src/services/mark-selection/mark-selection.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommandInfo } from '@univerjs/core';
import { Disposable, ICommandService, IUniverInstanceService, ThemeService, Tools } from '@univerjs/core';
import { IRenderManagerService } from '@univerjs/engine-render';
diff --git a/packages/sheets-ui/src/services/scroll-manager.service.ts b/packages/sheets-ui/src/services/scroll-manager.service.ts
index 070c283750..2191f64236 100644
--- a/packages/sheets-ui/src/services/scroll-manager.service.ts
+++ b/packages/sheets-ui/src/services/scroll-manager.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '@univerjs/core';
import { BehaviorSubject } from 'rxjs';
diff --git a/packages/sheets-ui/src/services/selection/selection-render-model.ts b/packages/sheets-ui/src/services/selection/selection-render-model.ts
index fcb99e7ec1..87bdc72adf 100644
--- a/packages/sheets-ui/src/services/selection/selection-render-model.ts
+++ b/packages/sheets-ui/src/services/selection/selection-render-model.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IRangeWithCoord, ISelectionCellWithCoord, ISelectionWithCoord, Nullable } from '@univerjs/core';
import { makeCellToSelection, RANGE_TYPE } from '@univerjs/core';
diff --git a/packages/sheets-ui/src/services/selection/selection-render.service.ts b/packages/sheets-ui/src/services/selection/selection-render.service.ts
index 6648549193..389fb113e5 100644
--- a/packages/sheets-ui/src/services/selection/selection-render.service.ts
+++ b/packages/sheets-ui/src/services/selection/selection-render.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {
IRange,
IRangeWithCoord,
diff --git a/packages/sheets-ui/src/services/selection/selection-shape-extension.ts b/packages/sheets-ui/src/services/selection/selection-shape-extension.ts
index 3ad79a9595..f2c92e813f 100644
--- a/packages/sheets-ui/src/services/selection/selection-shape-extension.ts
+++ b/packages/sheets-ui/src/services/selection/selection-shape-extension.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { TinyColor } from '@ctrl/tinycolor';
import type { IRangeWithCoord, Nullable, Observer, ThemeService } from '@univerjs/core';
import type { IMouseEvent, IPointerEvent, Scene, SpreadsheetSkeleton } from '@univerjs/engine-render';
diff --git a/packages/sheets-ui/src/services/selection/selection-shape.ts b/packages/sheets-ui/src/services/selection/selection-shape.ts
index de5bd21b28..30cdd33675 100644
--- a/packages/sheets-ui/src/services/selection/selection-shape.ts
+++ b/packages/sheets-ui/src/services/selection/selection-shape.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { TinyColor } from '@ctrl/tinycolor';
import type { IRangeWithCoord, ISelectionCellWithCoord, Nullable, ThemeService } from '@univerjs/core';
import { RANGE_TYPE } from '@univerjs/core';
diff --git a/packages/sheets-ui/src/services/sheet-bar/sheet-bar.service.ts b/packages/sheets-ui/src/services/sheet-bar/sheet-bar.service.ts
index 099cb504f7..7584e67e5b 100644
--- a/packages/sheets-ui/src/services/sheet-bar/sheet-bar.service.ts
+++ b/packages/sheets-ui/src/services/sheet-bar/sheet-bar.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Disposable, toDisposable } from '@univerjs/core';
import type { IDisposable } from '@wendellhu/redi';
import { createIdentifier } from '@wendellhu/redi';
diff --git a/packages/sheets-ui/src/services/sheet-skeleton-manager.service.ts b/packages/sheets-ui/src/services/sheet-skeleton-manager.service.ts
index 888c8b84f0..ffb8d87410 100644
--- a/packages/sheets-ui/src/services/sheet-skeleton-manager.service.ts
+++ b/packages/sheets-ui/src/services/sheet-skeleton-manager.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable, Workbook, Worksheet } from '@univerjs/core';
import { IUniverInstanceService, LocaleService } from '@univerjs/core';
import { SpreadsheetSkeleton } from '@univerjs/engine-render';
diff --git a/packages/sheets-ui/src/services/status-bar.service.ts b/packages/sheets-ui/src/services/status-bar.service.ts
index a69ac105fe..2fa4a65649 100644
--- a/packages/sheets-ui/src/services/status-bar.service.ts
+++ b/packages/sheets-ui/src/services/status-bar.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '@univerjs/core';
import type { IFunctionNames } from '@univerjs/engine-formula';
import { FUNCTION_NAMES_MATH, FUNCTION_NAMES_STATISTICAL } from '@univerjs/engine-formula';
diff --git a/packages/sheets-ui/src/sheets-ui-plugin.ts b/packages/sheets-ui/src/sheets-ui-plugin.ts
index e3a4d45615..7a06edada6 100644
--- a/packages/sheets-ui/src/sheets-ui-plugin.ts
+++ b/packages/sheets-ui/src/sheets-ui-plugin.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IUniverInstanceService, LocaleService, Plugin, PluginType } from '@univerjs/core';
import type { Dependency } from '@wendellhu/redi';
import { Inject, Injector } from '@wendellhu/redi';
diff --git a/packages/sheets-ui/src/views/count-bar/CountBar.tsx b/packages/sheets-ui/src/views/count-bar/CountBar.tsx
index 77db25124e..e94caad926 100644
--- a/packages/sheets-ui/src/views/count-bar/CountBar.tsx
+++ b/packages/sheets-ui/src/views/count-bar/CountBar.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 styles from './index.module.less';
diff --git a/packages/sheets-ui/src/views/count-bar/index.ts b/packages/sheets-ui/src/views/count-bar/index.ts
index 2429282b86..02a4f164e5 100644
--- a/packages/sheets-ui/src/views/count-bar/index.ts
+++ b/packages/sheets-ui/src/views/count-bar/index.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './CountBar';
diff --git a/packages/sheets-ui/src/views/count-bar/zoom-slider.tsx b/packages/sheets-ui/src/views/count-bar/zoom-slider.tsx
index 8a95a65a2d..8bc635b39f 100644
--- a/packages/sheets-ui/src/views/count-bar/zoom-slider.tsx
+++ b/packages/sheets-ui/src/views/count-bar/zoom-slider.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommandService, IUniverInstanceService } from '@univerjs/core';
import { Slider } from '@univerjs/design';
import { SetWorksheetActivateCommand } from '@univerjs/sheets';
diff --git a/packages/sheets-ui/src/views/editor-container/EditorContainer.tsx b/packages/sheets-ui/src/views/editor-container/EditorContainer.tsx
index 077ddd57d5..0fd1e29d94 100644
--- a/packages/sheets-ui/src/views/editor-container/EditorContainer.tsx
+++ b/packages/sheets-ui/src/views/editor-container/EditorContainer.tsx
@@ -1,4 +1,19 @@
-/* eslint-disable no-magic-numbers */
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { DOCS_NORMAL_EDITOR_UNIT_ID_KEY } from '@univerjs/core';
import { IRenderManagerService } from '@univerjs/engine-render';
import { useDependency } from '@wendellhu/redi/react-bindings';
diff --git a/packages/sheets-ui/src/views/editor-container/index.ts b/packages/sheets-ui/src/views/editor-container/index.ts
index 38b6807631..d198bb0bb1 100644
--- a/packages/sheets-ui/src/views/editor-container/index.ts
+++ b/packages/sheets-ui/src/views/editor-container/index.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './EditorContainer';
diff --git a/packages/sheets-ui/src/views/formula-bar/FormulaBar.tsx b/packages/sheets-ui/src/views/formula-bar/FormulaBar.tsx
index e2353db262..1ddc83096a 100644
--- a/packages/sheets-ui/src/views/formula-bar/FormulaBar.tsx
+++ b/packages/sheets-ui/src/views/formula-bar/FormulaBar.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY } from '@univerjs/core';
import { DeviceInputEventType, IRenderManagerService } from '@univerjs/engine-render';
import { CheckMarkSingle, CloseSingle, DropdownSingle, FxSingle } from '@univerjs/icons';
diff --git a/packages/sheets-ui/src/views/formula-bar/index.ts b/packages/sheets-ui/src/views/formula-bar/index.ts
index a7fc0418a5..5c1317cb74 100644
--- a/packages/sheets-ui/src/views/formula-bar/index.ts
+++ b/packages/sheets-ui/src/views/formula-bar/index.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './FormulaBar';
diff --git a/packages/sheets-ui/src/views/header-menu-shape.ts b/packages/sheets-ui/src/views/header-menu-shape.ts
index 2ab8ff8ccd..10bf536c40 100644
--- a/packages/sheets-ui/src/views/header-menu-shape.ts
+++ b/packages/sheets-ui/src/views/header-menu-shape.ts
@@ -1,4 +1,19 @@
-/* eslint-disable no-magic-numbers */
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IShapeProps } from '@univerjs/engine-render';
import { Rect, RegularPolygon, Shape } from '@univerjs/engine-render';
diff --git a/packages/sheets-ui/src/views/header-resize-shape.ts b/packages/sheets-ui/src/views/header-resize-shape.ts
index 7e2cf0dc71..1ce3eb724f 100644
--- a/packages/sheets-ui/src/views/header-resize-shape.ts
+++ b/packages/sheets-ui/src/views/header-resize-shape.ts
@@ -1,4 +1,19 @@
-/* eslint-disable no-magic-numbers */
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IShapeProps } from '@univerjs/engine-render';
import { Rect, Shape } from '@univerjs/engine-render';
diff --git a/packages/sheets-ui/src/views/header-unhide-shape.ts b/packages/sheets-ui/src/views/header-unhide-shape.ts
index 99292d0286..15fdc9730d 100644
--- a/packages/sheets-ui/src/views/header-unhide-shape.ts
+++ b/packages/sheets-ui/src/views/header-unhide-shape.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IShapeProps } from '@univerjs/engine-render';
import { Rect, RegularPolygon, Shape } from '@univerjs/engine-render';
diff --git a/packages/sheets-ui/src/views/operate-container/AutoFillPopupMenu.tsx b/packages/sheets-ui/src/views/operate-container/AutoFillPopupMenu.tsx
index 128e99c958..eab1a07e82 100644
--- a/packages/sheets-ui/src/views/operate-container/AutoFillPopupMenu.tsx
+++ b/packages/sheets-ui/src/views/operate-container/AutoFillPopupMenu.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommandInfo } from '@univerjs/core';
import { ICommandService, IUniverInstanceService, LocaleService, toDisposable } from '@univerjs/core';
import { Dropdown } from '@univerjs/design';
diff --git a/packages/sheets-ui/src/views/operate-container/OperateContainer.tsx b/packages/sheets-ui/src/views/operate-container/OperateContainer.tsx
index ab53735184..fe6521849c 100644
--- a/packages/sheets-ui/src/views/operate-container/OperateContainer.tsx
+++ b/packages/sheets-ui/src/views/operate-container/OperateContainer.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { AutoFillPopupMenu } from './AutoFillPopupMenu';
diff --git a/packages/sheets-ui/src/views/operate-container/index.ts b/packages/sheets-ui/src/views/operate-container/index.ts
index 3604f3c3d9..b560403c2e 100644
--- a/packages/sheets-ui/src/views/operate-container/index.ts
+++ b/packages/sheets-ui/src/views/operate-container/index.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './OperateContainer';
diff --git a/packages/sheets-ui/src/views/sheet-bar/SheetBar.tsx b/packages/sheets-ui/src/views/sheet-bar/SheetBar.tsx
index 576e118c6e..8c567ff362 100644
--- a/packages/sheets-ui/src/views/sheet-bar/SheetBar.tsx
+++ b/packages/sheets-ui/src/views/sheet-bar/SheetBar.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommandService } from '@univerjs/core';
import { IncreaseSingle, MoreSingle } from '@univerjs/icons';
import { InsertSheetCommand } from '@univerjs/sheets';
diff --git a/packages/sheets-ui/src/views/sheet-bar/sheet-bar-button/SheetBarButton.tsx b/packages/sheets-ui/src/views/sheet-bar/sheet-bar-button/SheetBarButton.tsx
index fbd1568581..558e9dfd1b 100644
--- a/packages/sheets-ui/src/views/sheet-bar/sheet-bar-button/SheetBarButton.tsx
+++ b/packages/sheets-ui/src/views/sheet-bar/sheet-bar-button/SheetBarButton.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 styles from './index.module.less';
diff --git a/packages/sheets-ui/src/views/sheet-bar/sheet-bar-menu/SheetBarMenu.tsx b/packages/sheets-ui/src/views/sheet-bar/sheet-bar-menu/SheetBarMenu.tsx
index 5d9eb5e1fe..31f26c6148 100644
--- a/packages/sheets-ui/src/views/sheet-bar/sheet-bar-menu/SheetBarMenu.tsx
+++ b/packages/sheets-ui/src/views/sheet-bar/sheet-bar-menu/SheetBarMenu.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommandInfo } from '@univerjs/core';
import { BooleanNumber, DisposableCollection, ICommandService, IUniverInstanceService } from '@univerjs/core';
import { Dropdown } from '@univerjs/design';
diff --git a/packages/sheets-ui/src/views/sheet-bar/sheet-bar-tabs/SheetBarItem.tsx b/packages/sheets-ui/src/views/sheet-bar/sheet-bar-tabs/SheetBarItem.tsx
index cacf69f62c..a9f243767c 100644
--- a/packages/sheets-ui/src/views/sheet-bar/sheet-bar-tabs/SheetBarItem.tsx
+++ b/packages/sheets-ui/src/views/sheet-bar/sheet-bar-tabs/SheetBarItem.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { TinyColor } from '@ctrl/tinycolor';
import type { BooleanNumber } from '@univerjs/core';
import { ICommandService, ThemeService } from '@univerjs/core';
diff --git a/packages/sheets-ui/src/views/sheet-bar/sheet-bar-tabs/SheetBarTabs.tsx b/packages/sheets-ui/src/views/sheet-bar/sheet-bar-tabs/SheetBarTabs.tsx
index d16edac79d..83fbef5cc7 100644
--- a/packages/sheets-ui/src/views/sheet-bar/sheet-bar-tabs/SheetBarTabs.tsx
+++ b/packages/sheets-ui/src/views/sheet-bar/sheet-bar-tabs/SheetBarTabs.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommandInfo } from '@univerjs/core';
import { BooleanNumber, ICommandService, IUniverInstanceService, LocaleService } from '@univerjs/core';
import {
diff --git a/packages/sheets-ui/src/views/sheet-bar/sheet-bar-tabs/utils/animate.ts b/packages/sheets-ui/src/views/sheet-bar/sheet-bar-tabs/utils/animate.ts
index 036b8ed581..ebe0e9752b 100644
--- a/packages/sheets-ui/src/views/sheet-bar/sheet-bar-tabs/utils/animate.ts
+++ b/packages/sheets-ui/src/views/sheet-bar/sheet-bar-tabs/utils/animate.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 Tween: Record<string, Function> = {
easeOutStrong(t: number, b: number, c: number, d: number): number {
return -c * ((t = t / d - 1) * t * t * t - 1) + b;
diff --git a/packages/sheets-ui/src/views/sheet-bar/sheet-bar-tabs/utils/slide-tab-bar.ts b/packages/sheets-ui/src/views/sheet-bar/sheet-bar-tabs/utils/slide-tab-bar.ts
index 45642623a0..20f4970399 100644
--- a/packages/sheets-ui/src/views/sheet-bar/sheet-bar-tabs/utils/slide-tab-bar.ts
+++ b/packages/sheets-ui/src/views/sheet-bar/sheet-bar-tabs/utils/slide-tab-bar.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Animate } from './animate';
export interface IScrollState {
diff --git a/packages/sheets-ui/src/views/sheet-canvas-view.ts b/packages/sheets-ui/src/views/sheet-canvas-view.ts
index d988b74fa3..44b6842eff 100644
--- a/packages/sheets-ui/src/views/sheet-canvas-view.ts
+++ b/packages/sheets-ui/src/views/sheet-canvas-view.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Workbook, Worksheet } from '@univerjs/core';
import { ICommandService, IUniverInstanceService, LifecycleStages, OnLifecycle } from '@univerjs/core';
import type { IRender, IWheelEvent, Scene } from '@univerjs/engine-render';
diff --git a/packages/sheets-ui/src/views/sheet-container/SheetContainer.tsx b/packages/sheets-ui/src/views/sheet-container/SheetContainer.tsx
index 164cd3fd65..21c900c481 100644
--- a/packages/sheets-ui/src/views/sheet-container/SheetContainer.tsx
+++ b/packages/sheets-ui/src/views/sheet-container/SheetContainer.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 type { IUniverSheetsUIConfig } from '../../basics';
diff --git a/packages/sheets-ui/src/views/status-bar/CopyableStatisticItem.tsx b/packages/sheets-ui/src/views/status-bar/CopyableStatisticItem.tsx
index d8ef74d702..7e4d4d1a34 100644
--- a/packages/sheets-ui/src/views/status-bar/CopyableStatisticItem.tsx
+++ b/packages/sheets-ui/src/views/status-bar/CopyableStatisticItem.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { LocaleService } from '@univerjs/core';
import { MessageType, Tooltip } from '@univerjs/design';
import type { IFunctionNames } from '@univerjs/engine-formula';
diff --git a/packages/sheets-ui/src/views/status-bar/StatusBar.tsx b/packages/sheets-ui/src/views/status-bar/StatusBar.tsx
index 1653154a91..2063819c71 100644
--- a/packages/sheets-ui/src/views/status-bar/StatusBar.tsx
+++ b/packages/sheets-ui/src/views/status-bar/StatusBar.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { LocaleService } from '@univerjs/core';
import { Checkbox, Dropdown } from '@univerjs/design';
import { MoreSingle } from '@univerjs/icons';
diff --git a/packages/sheets/src/basics/const/command-listener-const.ts b/packages/sheets/src/basics/const/command-listener-const.ts
index fb2168d6f3..4bb8a8f3ac 100644
--- a/packages/sheets/src/basics/const/command-listener-const.ts
+++ b/packages/sheets/src/basics/const/command-listener-const.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { InsertColMutation, InsertRowMutation } from '../../commands/mutations/insert-row-col.mutation';
import { MoveRangeMutation } from '../../commands/mutations/move-range.mutation';
import { MoveColsMutation, MoveRowsMutation } from '../../commands/mutations/move-rows-cols.mutation';
diff --git a/packages/sheets/src/basics/const/default-spreadsheet-plugin-data.ts b/packages/sheets/src/basics/const/default-spreadsheet-plugin-data.ts
index b85fc14268..dd7d031cf1 100644
--- a/packages/sheets/src/basics/const/default-spreadsheet-plugin-data.ts
+++ b/packages/sheets/src/basics/const/default-spreadsheet-plugin-data.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IUniverSheetsConfig } from '../interfaces/spreadsheet-config';
export const DEFAULT_SPREADSHEET_PLUGIN_DATA: IUniverSheetsConfig = {
diff --git a/packages/sheets/src/basics/const/index.ts b/packages/sheets/src/basics/const/index.ts
index 7ced67b846..07ff6f446a 100644
--- a/packages/sheets/src/basics/const/index.ts
+++ b/packages/sheets/src/basics/const/index.ts
@@ -1,2 +1,18 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './command-listener-const';
export * from './default-spreadsheet-plugin-data';
diff --git a/packages/sheets/src/basics/get-apply-data.ts b/packages/sheets/src/basics/get-apply-data.ts
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/packages/sheets/src/basics/index.ts b/packages/sheets/src/basics/index.ts
index d4be4ea9ad..cf0bbd2e28 100644
--- a/packages/sheets/src/basics/index.ts
+++ b/packages/sheets/src/basics/index.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './const/index';
export * from './interfaces/index';
export * from './selection';
diff --git a/packages/sheets/src/basics/interfaces/i-ruler-manager.ts b/packages/sheets/src/basics/interfaces/i-ruler-manager.ts
index 0f763f66d5..596f02b972 100644
--- a/packages/sheets/src/basics/interfaces/i-ruler-manager.ts
+++ b/packages/sheets/src/basics/interfaces/i-ruler-manager.ts
@@ -1,8 +1,24 @@
-import type { BooleanNumber } from '@univerjs/core';
-
-/**
- * Column ruler data type
- */
-export interface IColumnRulerData {
- hd: BooleanNumber;
-}
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { BooleanNumber } from '@univerjs/core';
+
+/**
+ * Column ruler data type
+ */
+export interface IColumnRulerData {
+ hd: BooleanNumber;
+}
diff --git a/packages/sheets/src/basics/interfaces/index.ts b/packages/sheets/src/basics/interfaces/index.ts
index 0ce4e8eb3a..85ff3e2190 100644
--- a/packages/sheets/src/basics/interfaces/index.ts
+++ b/packages/sheets/src/basics/interfaces/index.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './mutation-interface';
export * from './selection-config';
export * from './spreadsheet-config';
diff --git a/packages/sheets/src/basics/interfaces/mutation-interface.ts b/packages/sheets/src/basics/interfaces/mutation-interface.ts
index c7c1f7bfe5..669afe525c 100644
--- a/packages/sheets/src/basics/interfaces/mutation-interface.ts
+++ b/packages/sheets/src/basics/interfaces/mutation-interface.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {
Dimension,
ICellData,
diff --git a/packages/sheets/src/basics/interfaces/selection-config.ts b/packages/sheets/src/basics/interfaces/selection-config.ts
index 0c47204c7e..99ad664b8a 100644
--- a/packages/sheets/src/basics/interfaces/selection-config.ts
+++ b/packages/sheets/src/basics/interfaces/selection-config.ts
@@ -1,10 +1,26 @@
-import type { IRange, IRangeCellData } from '@univerjs/core';
-
-export interface ISelectionConfig {
- selection: IRange;
- cell?: IRangeCellData;
-}
-
-export interface ISelectionsConfig {
- [worksheetId: string]: ISelectionConfig[];
-}
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IRange, IRangeCellData } from '@univerjs/core';
+
+export interface ISelectionConfig {
+ selection: IRange;
+ cell?: IRangeCellData;
+}
+
+export interface ISelectionsConfig {
+ [worksheetId: string]: ISelectionConfig[];
+}
diff --git a/packages/sheets/src/basics/interfaces/spreadsheet-config.ts b/packages/sheets/src/basics/interfaces/spreadsheet-config.ts
index 7cd5b08fc5..e016094248 100644
--- a/packages/sheets/src/basics/interfaces/spreadsheet-config.ts
+++ b/packages/sheets/src/basics/interfaces/spreadsheet-config.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ISelectionsConfig } from './selection-config';
export interface IUniverSheetsConfig {
diff --git a/packages/sheets/src/basics/selection.ts b/packages/sheets/src/basics/selection.ts
index eebd3bd524..5be619d999 100644
--- a/packages/sheets/src/basics/selection.ts
+++ b/packages/sheets/src/basics/selection.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { TinyColor } from '@ctrl/tinycolor';
import type {
IRange,
diff --git a/packages/sheets/src/basics/sheet-header.ts b/packages/sheets/src/basics/sheet-header.ts
index aa0240b34f..73969725c8 100644
--- a/packages/sheets/src/basics/sheet-header.ts
+++ b/packages/sheets/src/basics/sheet-header.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Worksheet } from '@univerjs/core';
export function rowHeightByHeader(worksheet: Worksheet) {
diff --git a/packages/sheets/src/basics/utils.ts b/packages/sheets/src/basics/utils.ts
index 4689e9b703..009ac002c4 100644
--- a/packages/sheets/src/basics/utils.ts
+++ b/packages/sheets/src/basics/utils.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 groupByKey = <T = Record<string, unknown>>(arr: T[], key: string, blankKey = '') => {
return arr.reduce(
(result, current) => {
diff --git a/packages/sheets/src/commands/commands/__tests__/clear-selection.command.spec.ts b/packages/sheets/src/commands/commands/__tests__/clear-selection.command.spec.ts
index f69ff0de84..004dd925aa 100644
--- a/packages/sheets/src/commands/commands/__tests__/clear-selection.command.spec.ts
+++ b/packages/sheets/src/commands/commands/__tests__/clear-selection.command.spec.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICellData, IRange, IStyleData, Nullable, Univer } from '@univerjs/core';
import {
CellValueType,
diff --git a/packages/sheets/src/commands/commands/__tests__/copy-worksheet.command.spec.ts b/packages/sheets/src/commands/commands/__tests__/copy-worksheet.command.spec.ts
index 24be1aa7a8..c9ca3f6c8f 100644
--- a/packages/sheets/src/commands/commands/__tests__/copy-worksheet.command.spec.ts
+++ b/packages/sheets/src/commands/commands/__tests__/copy-worksheet.command.spec.ts
@@ -1,4 +1,19 @@
-// test for copy sheet command
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Univer, Worksheet } from '@univerjs/core';
import { ICommandService, IUniverInstanceService, RedoCommand, UndoCommand } from '@univerjs/core';
import type { Injector } from '@wendellhu/redi';
diff --git a/packages/sheets/src/commands/commands/__tests__/create-command-test-bed.ts b/packages/sheets/src/commands/commands/__tests__/create-command-test-bed.ts
index e9e1bba213..036ad3166a 100644
--- a/packages/sheets/src/commands/commands/__tests__/create-command-test-bed.ts
+++ b/packages/sheets/src/commands/commands/__tests__/create-command-test-bed.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IWorkbookData, Workbook } from '@univerjs/core';
import {
BooleanNumber,
diff --git a/packages/sheets/src/commands/commands/__tests__/delete-range.command.spec.ts b/packages/sheets/src/commands/commands/__tests__/delete-range.command.spec.ts
index c47269dfa5..2d94c20a58 100644
--- a/packages/sheets/src/commands/commands/__tests__/delete-range.command.spec.ts
+++ b/packages/sheets/src/commands/commands/__tests__/delete-range.command.spec.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICellData, IRange, IStyleData, IWorkbookData, Nullable, Univer } from '@univerjs/core';
import {
ICommandService,
diff --git a/packages/sheets/src/commands/commands/__tests__/insert-range.command.spec.ts b/packages/sheets/src/commands/commands/__tests__/insert-range.command.spec.ts
index f2b0f32e6f..6f3053da21 100644
--- a/packages/sheets/src/commands/commands/__tests__/insert-range.command.spec.ts
+++ b/packages/sheets/src/commands/commands/__tests__/insert-range.command.spec.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICellData, IRange, IStyleData, IWorkbookData, Nullable, Univer } from '@univerjs/core';
import {
ICommandService,
diff --git a/packages/sheets/src/commands/commands/__tests__/insert-remove-rows-cols.command.spec.ts b/packages/sheets/src/commands/commands/__tests__/insert-remove-rows-cols.command.spec.ts
index 57cb41d7cf..94e9970de2 100644
--- a/packages/sheets/src/commands/commands/__tests__/insert-remove-rows-cols.command.spec.ts
+++ b/packages/sheets/src/commands/commands/__tests__/insert-remove-rows-cols.command.spec.ts
@@ -1,4 +1,19 @@
-/* eslint-disable no-magic-numbers */
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICellData, IRange, IStyleData, IWorkbookData, Nullable, Univer } from '@univerjs/core';
import {
ICommandService,
diff --git a/packages/sheets/src/commands/commands/__tests__/move-range-commands.spec.ts b/packages/sheets/src/commands/commands/__tests__/move-range-commands.spec.ts
index 845ba058c4..1037b1c724 100644
--- a/packages/sheets/src/commands/commands/__tests__/move-range-commands.spec.ts
+++ b/packages/sheets/src/commands/commands/__tests__/move-range-commands.spec.ts
@@ -1,4 +1,19 @@
-/* eslint-disable no-magic-numbers */
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICellData, IRange, IWorkbookData, Nullable, Univer } from '@univerjs/core';
import { ICommandService, IUniverInstanceService, LocaleType, Rectangle, Tools, UndoCommand } from '@univerjs/core';
import type { Injector } from '@wendellhu/redi';
diff --git a/packages/sheets/src/commands/commands/__tests__/move-rows-cols.command.spec.ts b/packages/sheets/src/commands/commands/__tests__/move-rows-cols.command.spec.ts
index 6c11694f32..94de293cb8 100644
--- a/packages/sheets/src/commands/commands/__tests__/move-rows-cols.command.spec.ts
+++ b/packages/sheets/src/commands/commands/__tests__/move-rows-cols.command.spec.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICellData, IRange, IWorkbookData, Nullable, Univer } from '@univerjs/core';
import {
ICommandService,
diff --git a/packages/sheets/src/commands/commands/__tests__/remove-sheet.command.spec.ts b/packages/sheets/src/commands/commands/__tests__/remove-sheet.command.spec.ts
index d2f6f07434..ee196edcca 100644
--- a/packages/sheets/src/commands/commands/__tests__/remove-sheet.command.spec.ts
+++ b/packages/sheets/src/commands/commands/__tests__/remove-sheet.command.spec.ts
@@ -1,4 +1,19 @@
-// test for remove sheet command
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Univer } from '@univerjs/core';
import { ICommandService, IUniverInstanceService, RedoCommand, UndoCommand } from '@univerjs/core';
import type { Injector } from '@wendellhu/redi';
diff --git a/packages/sheets/src/commands/commands/__tests__/set-border.command.spec.ts b/packages/sheets/src/commands/commands/__tests__/set-border.command.spec.ts
index 59bfffcec3..7c78374ef9 100644
--- a/packages/sheets/src/commands/commands/__tests__/set-border.command.spec.ts
+++ b/packages/sheets/src/commands/commands/__tests__/set-border.command.spec.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IBorderData, IRange, Univer } from '@univerjs/core';
import { BorderStyleTypes, BorderType, ICommandService, IUniverInstanceService, RANGE_TYPE } from '@univerjs/core';
import type { Injector } from '@wendellhu/redi';
diff --git a/packages/sheets/src/commands/commands/__tests__/set-col-width.command.spec.ts b/packages/sheets/src/commands/commands/__tests__/set-col-width.command.spec.ts
index bcd064fec3..5623d01e57 100644
--- a/packages/sheets/src/commands/commands/__tests__/set-col-width.command.spec.ts
+++ b/packages/sheets/src/commands/commands/__tests__/set-col-width.command.spec.ts
@@ -1,4 +1,19 @@
-/* eslint-disable no-magic-numbers */
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Univer } from '@univerjs/core';
import { ICommandService, IUniverInstanceService, RANGE_TYPE, RedoCommand, UndoCommand } from '@univerjs/core';
import type { Injector } from '@wendellhu/redi';
diff --git a/packages/sheets/src/commands/commands/__tests__/set-frozen.command.spec.ts b/packages/sheets/src/commands/commands/__tests__/set-frozen.command.spec.ts
index 31e100dfb7..1d09c50286 100644
--- a/packages/sheets/src/commands/commands/__tests__/set-frozen.command.spec.ts
+++ b/packages/sheets/src/commands/commands/__tests__/set-frozen.command.spec.ts
@@ -1,4 +1,19 @@
-// test for set frozen command
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IWorkbookData, Univer } from '@univerjs/core';
import { ICommandService, IUniverInstanceService, LocaleType, RedoCommand, UndoCommand } from '@univerjs/core';
import type { Injector } from '@wendellhu/redi';
diff --git a/packages/sheets/src/commands/commands/__tests__/set-range-values.command.spec.ts b/packages/sheets/src/commands/commands/__tests__/set-range-values.command.spec.ts
index 569ddefaf9..eb39693925 100644
--- a/packages/sheets/src/commands/commands/__tests__/set-range-values.command.spec.ts
+++ b/packages/sheets/src/commands/commands/__tests__/set-range-values.command.spec.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICellData, IDocumentData, IStyleData, Nullable, Univer } from '@univerjs/core';
import {
CellValueType,
diff --git a/packages/sheets/src/commands/commands/__tests__/set-row-col-visible.command.spec.ts b/packages/sheets/src/commands/commands/__tests__/set-row-col-visible.command.spec.ts
index f669e85551..fe92365cd3 100644
--- a/packages/sheets/src/commands/commands/__tests__/set-row-col-visible.command.spec.ts
+++ b/packages/sheets/src/commands/commands/__tests__/set-row-col-visible.command.spec.ts
@@ -1,4 +1,19 @@
-/* eslint-disable no-magic-numbers */
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Univer } from '@univerjs/core';
import { ICommandService, IUniverInstanceService, RANGE_TYPE, RedoCommand, UndoCommand } from '@univerjs/core';
import type { Injector } from '@wendellhu/redi';
diff --git a/packages/sheets/src/commands/commands/__tests__/set-row-height.command.spec.ts b/packages/sheets/src/commands/commands/__tests__/set-row-height.command.spec.ts
index d46268e0a5..ec2b118cfc 100644
--- a/packages/sheets/src/commands/commands/__tests__/set-row-height.command.spec.ts
+++ b/packages/sheets/src/commands/commands/__tests__/set-row-height.command.spec.ts
@@ -1,4 +1,19 @@
-/* eslint-disable no-magic-numbers */
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable, Univer } from '@univerjs/core';
import { ICommandService, IUniverInstanceService, RANGE_TYPE, RedoCommand, UndoCommand } from '@univerjs/core';
import type { Injector } from '@wendellhu/redi';
diff --git a/packages/sheets/src/commands/commands/__tests__/set-style.command.spec.ts b/packages/sheets/src/commands/commands/__tests__/set-style.command.spec.ts
index 9b4f6a0c46..8454ad6cee 100644
--- a/packages/sheets/src/commands/commands/__tests__/set-style.command.spec.ts
+++ b/packages/sheets/src/commands/commands/__tests__/set-style.command.spec.ts
@@ -1,4 +1,19 @@
-/* eslint-disable no-magic-numbers */
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ITextDecoration, ITextRotation, Univer } from '@univerjs/core';
import {
BooleanNumber,
diff --git a/packages/sheets/src/commands/commands/__tests__/set-tab-color.command.spec.ts b/packages/sheets/src/commands/commands/__tests__/set-tab-color.command.spec.ts
index c47cb9a570..938e088d65 100644
--- a/packages/sheets/src/commands/commands/__tests__/set-tab-color.command.spec.ts
+++ b/packages/sheets/src/commands/commands/__tests__/set-tab-color.command.spec.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Univer } from '@univerjs/core';
import { ICommandService, IUniverInstanceService, RedoCommand, UndoCommand } from '@univerjs/core';
import type { Injector } from '@wendellhu/redi';
diff --git a/packages/sheets/src/commands/commands/__tests__/set-worksheet-hide.command.spec.ts b/packages/sheets/src/commands/commands/__tests__/set-worksheet-hide.command.spec.ts
index 8c8132626b..bca76a8603 100644
--- a/packages/sheets/src/commands/commands/__tests__/set-worksheet-hide.command.spec.ts
+++ b/packages/sheets/src/commands/commands/__tests__/set-worksheet-hide.command.spec.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Univer } from '@univerjs/core';
import { BooleanNumber, ICommandService, IUniverInstanceService, RedoCommand, UndoCommand } from '@univerjs/core';
import type { Injector } from '@wendellhu/redi';
diff --git a/packages/sheets/src/commands/commands/__tests__/set-worksheet-name.command.spec.ts b/packages/sheets/src/commands/commands/__tests__/set-worksheet-name.command.spec.ts
index 4ed1306608..6c9e5a4a72 100644
--- a/packages/sheets/src/commands/commands/__tests__/set-worksheet-name.command.spec.ts
+++ b/packages/sheets/src/commands/commands/__tests__/set-worksheet-name.command.spec.ts
@@ -1,4 +1,19 @@
-// test for set worksheet name command
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Univer } from '@univerjs/core';
import { ICommandService, IUniverInstanceService, RedoCommand, UndoCommand } from '@univerjs/core';
import type { Injector } from '@wendellhu/redi';
diff --git a/packages/sheets/src/commands/commands/__tests__/set-worksheet-order.command.spec.ts b/packages/sheets/src/commands/commands/__tests__/set-worksheet-order.command.spec.ts
index 5a58dabb75..66800e22ea 100644
--- a/packages/sheets/src/commands/commands/__tests__/set-worksheet-order.command.spec.ts
+++ b/packages/sheets/src/commands/commands/__tests__/set-worksheet-order.command.spec.ts
@@ -1,4 +1,19 @@
-// test for set worksheet name command
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Univer } from '@univerjs/core';
import { ICommandService, IUniverInstanceService, RedoCommand, UndoCommand } from '@univerjs/core';
import type { Injector } from '@wendellhu/redi';
diff --git a/packages/sheets/src/commands/commands/__tests__/set-worksheet-show.command.spec.ts b/packages/sheets/src/commands/commands/__tests__/set-worksheet-show.command.spec.ts
index e903233edd..e82e70cd5a 100644
--- a/packages/sheets/src/commands/commands/__tests__/set-worksheet-show.command.spec.ts
+++ b/packages/sheets/src/commands/commands/__tests__/set-worksheet-show.command.spec.ts
@@ -1,4 +1,19 @@
-// test for remove sheet command
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Univer } from '@univerjs/core';
import { ICommandService, IUniverInstanceService, RedoCommand, UndoCommand } from '@univerjs/core';
import type { Injector } from '@wendellhu/redi';
diff --git a/packages/sheets/src/commands/commands/add-worksheet-merge.command.ts b/packages/sheets/src/commands/commands/add-worksheet-merge.command.ts
index 46447347ca..143572dbaf 100644
--- a/packages/sheets/src/commands/commands/add-worksheet-merge.command.ts
+++ b/packages/sheets/src/commands/commands/add-worksheet-merge.command.ts
@@ -1,5 +1,18 @@
-// The file is for tests only.
-// Please refer to packages/sheets-ui/src/commands/commands/add-worksheet-merge.command.ts
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICellData, ICommand, IMutationInfo, IRange, Worksheet } from '@univerjs/core';
import {
diff --git a/packages/sheets/src/commands/commands/clear-selection-all.command.ts b/packages/sheets/src/commands/commands/clear-selection-all.command.ts
index 2a46e85fe5..290cbc7a76 100644
--- a/packages/sheets/src/commands/commands/clear-selection-all.command.ts
+++ b/packages/sheets/src/commands/commands/clear-selection-all.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICellData, ICommand, IMutationInfo, IRange, ObjectMatrixPrimitiveType } from '@univerjs/core';
import {
CommandType,
diff --git a/packages/sheets/src/commands/commands/clear-selection-content.command.ts b/packages/sheets/src/commands/commands/clear-selection-content.command.ts
index 6aab77fc06..945643e762 100644
--- a/packages/sheets/src/commands/commands/clear-selection-content.command.ts
+++ b/packages/sheets/src/commands/commands/clear-selection-content.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICellData, ICommand, IRange, ObjectMatrixPrimitiveType } from '@univerjs/core';
import {
CommandType,
diff --git a/packages/sheets/src/commands/commands/clear-selection-format.command.ts b/packages/sheets/src/commands/commands/clear-selection-format.command.ts
index 132996846f..55364e6b6f 100644
--- a/packages/sheets/src/commands/commands/clear-selection-format.command.ts
+++ b/packages/sheets/src/commands/commands/clear-selection-format.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICellData, ICommand, IMutationInfo, IRange, ObjectMatrixPrimitiveType } from '@univerjs/core';
import {
CommandType,
diff --git a/packages/sheets/src/commands/commands/copy-to-worksheet.command.ts b/packages/sheets/src/commands/commands/copy-to-worksheet.command.ts
index b4bcd62b16..0b31f088b9 100644
--- a/packages/sheets/src/commands/commands/copy-to-worksheet.command.ts
+++ b/packages/sheets/src/commands/commands/copy-to-worksheet.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand } from '@univerjs/core';
import { CommandType, ICommandService, IUndoRedoService, IUniverInstanceService, Tools } from '@univerjs/core';
import type { IAccessor } from '@wendellhu/redi';
diff --git a/packages/sheets/src/commands/commands/copy-worksheet.command.ts b/packages/sheets/src/commands/commands/copy-worksheet.command.ts
index 2549951beb..37242a1d59 100644
--- a/packages/sheets/src/commands/commands/copy-worksheet.command.ts
+++ b/packages/sheets/src/commands/commands/copy-worksheet.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand } from '@univerjs/core';
import { CommandType, ICommandService, IUndoRedoService, IUniverInstanceService, Tools } from '@univerjs/core';
import type { IAccessor } from '@wendellhu/redi';
diff --git a/packages/sheets/src/commands/commands/delete-range-move-left.command.ts b/packages/sheets/src/commands/commands/delete-range-move-left.command.ts
index 5c9a07f8d0..ba569166ca 100644
--- a/packages/sheets/src/commands/commands/delete-range-move-left.command.ts
+++ b/packages/sheets/src/commands/commands/delete-range-move-left.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand, IMutationInfo, IRange, Nullable } from '@univerjs/core';
import {
CommandType,
diff --git a/packages/sheets/src/commands/commands/delete-range-move-up.command.ts b/packages/sheets/src/commands/commands/delete-range-move-up.command.ts
index e488c02f86..97b179452c 100644
--- a/packages/sheets/src/commands/commands/delete-range-move-up.command.ts
+++ b/packages/sheets/src/commands/commands/delete-range-move-up.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand, IMutationInfo, IRange, Nullable } from '@univerjs/core';
import {
CommandType,
diff --git a/packages/sheets/src/commands/commands/insert-range-move-down.command.ts b/packages/sheets/src/commands/commands/insert-range-move-down.command.ts
index a2fcd7f7c0..6d03ee14ae 100644
--- a/packages/sheets/src/commands/commands/insert-range-move-down.command.ts
+++ b/packages/sheets/src/commands/commands/insert-range-move-down.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICellData, ICommand, IMutationInfo, IRange, IRowData } from '@univerjs/core';
import {
BooleanNumber,
diff --git a/packages/sheets/src/commands/commands/insert-range-move-right.command.ts b/packages/sheets/src/commands/commands/insert-range-move-right.command.ts
index 5210ef563f..b2b570facc 100644
--- a/packages/sheets/src/commands/commands/insert-range-move-right.command.ts
+++ b/packages/sheets/src/commands/commands/insert-range-move-right.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICellData, IColumnData, ICommand, IMutationInfo, IRange } from '@univerjs/core';
import {
BooleanNumber,
diff --git a/packages/sheets/src/commands/commands/insert-row-col.command.ts b/packages/sheets/src/commands/commands/insert-row-col.command.ts
index 0610acb49f..a9753b229f 100644
--- a/packages/sheets/src/commands/commands/insert-row-col.command.ts
+++ b/packages/sheets/src/commands/commands/insert-row-col.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICellData, IColumnData, ICommand, IRange, IRowData, IStyleData, Nullable } from '@univerjs/core';
import {
BooleanNumber,
diff --git a/packages/sheets/src/commands/commands/insert-sheet.command.ts b/packages/sheets/src/commands/commands/insert-sheet.command.ts
index 32a8d527b1..3bc1155fa2 100644
--- a/packages/sheets/src/commands/commands/insert-sheet.command.ts
+++ b/packages/sheets/src/commands/commands/insert-sheet.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand, IWorksheetData } from '@univerjs/core';
import {
CommandType,
diff --git a/packages/sheets/src/commands/commands/move-range.command.ts b/packages/sheets/src/commands/commands/move-range.command.ts
index 784e1b10f0..09e839ea33 100644
--- a/packages/sheets/src/commands/commands/move-range.command.ts
+++ b/packages/sheets/src/commands/commands/move-range.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICellData, ICommand, IRange } from '@univerjs/core';
import {
CommandType,
diff --git a/packages/sheets/src/commands/commands/move-rows-cols.command.ts b/packages/sheets/src/commands/commands/move-rows-cols.command.ts
index b517547bf6..19e8fc0aa2 100644
--- a/packages/sheets/src/commands/commands/move-rows-cols.command.ts
+++ b/packages/sheets/src/commands/commands/move-rows-cols.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand, IRange } from '@univerjs/core';
import {
CommandType,
diff --git a/packages/sheets/src/commands/commands/remove-row-col.command.ts b/packages/sheets/src/commands/commands/remove-row-col.command.ts
index bf0e717bd8..35883078f6 100644
--- a/packages/sheets/src/commands/commands/remove-row-col.command.ts
+++ b/packages/sheets/src/commands/commands/remove-row-col.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand, IRange, Nullable } from '@univerjs/core';
import {
CommandType,
diff --git a/packages/sheets/src/commands/commands/remove-sheet.command.ts b/packages/sheets/src/commands/commands/remove-sheet.command.ts
index 3818f1d830..68ec06bf4a 100644
--- a/packages/sheets/src/commands/commands/remove-sheet.command.ts
+++ b/packages/sheets/src/commands/commands/remove-sheet.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand } from '@univerjs/core';
import {
CommandType,
diff --git a/packages/sheets/src/commands/commands/remove-worksheet-merge.command.ts b/packages/sheets/src/commands/commands/remove-worksheet-merge.command.ts
index 651732c123..74d655ed0d 100644
--- a/packages/sheets/src/commands/commands/remove-worksheet-merge.command.ts
+++ b/packages/sheets/src/commands/commands/remove-worksheet-merge.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand } from '@univerjs/core';
import { CommandType, ICommandService, IUndoRedoService, IUniverInstanceService, Rectangle } from '@univerjs/core';
import type { IAccessor } from '@wendellhu/redi';
diff --git a/packages/sheets/src/commands/commands/set-border-command.ts b/packages/sheets/src/commands/commands/set-border-command.ts
index a7e0d51583..a6947463f5 100644
--- a/packages/sheets/src/commands/commands/set-border-command.ts
+++ b/packages/sheets/src/commands/commands/set-border-command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {
BorderStyleTypes,
IBorderData,
diff --git a/packages/sheets/src/commands/commands/set-col-visible.command.ts b/packages/sheets/src/commands/commands/set-col-visible.command.ts
index 66a9f5e996..43dabd2098 100644
--- a/packages/sheets/src/commands/commands/set-col-visible.command.ts
+++ b/packages/sheets/src/commands/commands/set-col-visible.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand, IRange, Nullable } from '@univerjs/core';
import {
CommandType,
diff --git a/packages/sheets/src/commands/commands/set-frozen-cancel.command.ts b/packages/sheets/src/commands/commands/set-frozen-cancel.command.ts
index 06880d2eb6..10d99ddb38 100644
--- a/packages/sheets/src/commands/commands/set-frozen-cancel.command.ts
+++ b/packages/sheets/src/commands/commands/set-frozen-cancel.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand } from '@univerjs/core';
import { CommandType, ICommandService, IUndoRedoService, IUniverInstanceService } from '@univerjs/core';
import type { IAccessor } from '@wendellhu/redi';
diff --git a/packages/sheets/src/commands/commands/set-frozen.command.ts b/packages/sheets/src/commands/commands/set-frozen.command.ts
index dd10d94602..f65089e671 100644
--- a/packages/sheets/src/commands/commands/set-frozen.command.ts
+++ b/packages/sheets/src/commands/commands/set-frozen.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand } from '@univerjs/core';
import { CommandType, ICommandService, IUndoRedoService, IUniverInstanceService } from '@univerjs/core';
import type { IAccessor } from '@wendellhu/redi';
diff --git a/packages/sheets/src/commands/commands/set-hide-gridlines.command.ts b/packages/sheets/src/commands/commands/set-hide-gridlines.command.ts
index 4818e12b4a..9a9e6ddbf3 100644
--- a/packages/sheets/src/commands/commands/set-hide-gridlines.command.ts
+++ b/packages/sheets/src/commands/commands/set-hide-gridlines.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand } from '@univerjs/core';
import { BooleanNumber, CommandType, ICommandService, IUndoRedoService, IUniverInstanceService } from '@univerjs/core';
import type { IAccessor } from '@wendellhu/redi';
diff --git a/packages/sheets/src/commands/commands/set-range-values.command.ts b/packages/sheets/src/commands/commands/set-range-values.command.ts
index 9fb573ec71..4ed7e7a2f5 100644
--- a/packages/sheets/src/commands/commands/set-range-values.command.ts
+++ b/packages/sheets/src/commands/commands/set-range-values.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICellData, ICommand, IRange, ObjectMatrixPrimitiveType } from '@univerjs/core';
import {
CommandType,
diff --git a/packages/sheets/src/commands/commands/set-row-visible.command.ts b/packages/sheets/src/commands/commands/set-row-visible.command.ts
index 797ec04a14..00c516a999 100644
--- a/packages/sheets/src/commands/commands/set-row-visible.command.ts
+++ b/packages/sheets/src/commands/commands/set-row-visible.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand, IRange } from '@univerjs/core';
import {
CommandType,
diff --git a/packages/sheets/src/commands/commands/set-style.command.ts b/packages/sheets/src/commands/commands/set-style.command.ts
index e4a89490e0..aae135e6be 100644
--- a/packages/sheets/src/commands/commands/set-style.command.ts
+++ b/packages/sheets/src/commands/commands/set-style.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {
HorizontalAlign,
ICellData,
diff --git a/packages/sheets/src/commands/commands/set-tab-color.command.ts b/packages/sheets/src/commands/commands/set-tab-color.command.ts
index 38c79cdc07..df5fd38626 100644
--- a/packages/sheets/src/commands/commands/set-tab-color.command.ts
+++ b/packages/sheets/src/commands/commands/set-tab-color.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand } from '@univerjs/core';
import { CommandType, ICommandService, IUndoRedoService, IUniverInstanceService } from '@univerjs/core';
import type { IAccessor } from '@wendellhu/redi';
diff --git a/packages/sheets/src/commands/commands/set-worksheet-activate.command.ts b/packages/sheets/src/commands/commands/set-worksheet-activate.command.ts
index d3ea0653a7..f9f179ee5a 100644
--- a/packages/sheets/src/commands/commands/set-worksheet-activate.command.ts
+++ b/packages/sheets/src/commands/commands/set-worksheet-activate.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand } from '@univerjs/core';
import { CommandType, ICommandService, IUniverInstanceService } from '@univerjs/core';
import type { IAccessor } from '@wendellhu/redi';
diff --git a/packages/sheets/src/commands/commands/set-worksheet-col-width.command.ts b/packages/sheets/src/commands/commands/set-worksheet-col-width.command.ts
index 5844fb7e03..955408bf3d 100644
--- a/packages/sheets/src/commands/commands/set-worksheet-col-width.command.ts
+++ b/packages/sheets/src/commands/commands/set-worksheet-col-width.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand } from '@univerjs/core';
import {
CommandType,
diff --git a/packages/sheets/src/commands/commands/set-worksheet-hide.command.ts b/packages/sheets/src/commands/commands/set-worksheet-hide.command.ts
index f368e0b400..b03b1bd901 100644
--- a/packages/sheets/src/commands/commands/set-worksheet-hide.command.ts
+++ b/packages/sheets/src/commands/commands/set-worksheet-hide.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand } from '@univerjs/core';
import {
BooleanNumber,
diff --git a/packages/sheets/src/commands/commands/set-worksheet-name.command.ts b/packages/sheets/src/commands/commands/set-worksheet-name.command.ts
index 3cb3b3aa54..6149126712 100644
--- a/packages/sheets/src/commands/commands/set-worksheet-name.command.ts
+++ b/packages/sheets/src/commands/commands/set-worksheet-name.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand } from '@univerjs/core';
import {
CommandType,
diff --git a/packages/sheets/src/commands/commands/set-worksheet-order.command.ts b/packages/sheets/src/commands/commands/set-worksheet-order.command.ts
index e43a229f1c..593dfcbead 100644
--- a/packages/sheets/src/commands/commands/set-worksheet-order.command.ts
+++ b/packages/sheets/src/commands/commands/set-worksheet-order.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand } from '@univerjs/core';
import { CommandType, ICommandService, IUndoRedoService, IUniverInstanceService } from '@univerjs/core';
import type { IAccessor } from '@wendellhu/redi';
diff --git a/packages/sheets/src/commands/commands/set-worksheet-right-to-left.command.ts b/packages/sheets/src/commands/commands/set-worksheet-right-to-left.command.ts
index dcabf8b396..b0386e0055 100644
--- a/packages/sheets/src/commands/commands/set-worksheet-right-to-left.command.ts
+++ b/packages/sheets/src/commands/commands/set-worksheet-right-to-left.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand } from '@univerjs/core';
import { BooleanNumber, CommandType, ICommandService, IUndoRedoService, IUniverInstanceService } from '@univerjs/core';
import type { IAccessor } from '@wendellhu/redi';
diff --git a/packages/sheets/src/commands/commands/set-worksheet-row-height.command.ts b/packages/sheets/src/commands/commands/set-worksheet-row-height.command.ts
index 279a69c152..600d669d95 100644
--- a/packages/sheets/src/commands/commands/set-worksheet-row-height.command.ts
+++ b/packages/sheets/src/commands/commands/set-worksheet-row-height.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand } from '@univerjs/core';
import {
CommandType,
diff --git a/packages/sheets/src/commands/commands/set-worksheet-show.command.ts b/packages/sheets/src/commands/commands/set-worksheet-show.command.ts
index e74d1bea38..23e77dfa1b 100644
--- a/packages/sheets/src/commands/commands/set-worksheet-show.command.ts
+++ b/packages/sheets/src/commands/commands/set-worksheet-show.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand } from '@univerjs/core';
import { BooleanNumber, CommandType, ICommandService, IUndoRedoService, IUniverInstanceService } from '@univerjs/core';
import type { IAccessor } from '@wendellhu/redi';
diff --git a/packages/sheets/src/commands/commands/utils/merged-cell-util.ts b/packages/sheets/src/commands/commands/utils/merged-cell-util.ts
index bb1e04b9f3..8e78765cc1 100644
--- a/packages/sheets/src/commands/commands/utils/merged-cell-util.ts
+++ b/packages/sheets/src/commands/commands/utils/merged-cell-util.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Worksheet } from '@univerjs/core';
/**
diff --git a/packages/sheets/src/commands/commands/utils/selection-util.ts b/packages/sheets/src/commands/commands/utils/selection-util.ts
index 222b3a3f95..306e712084 100644
--- a/packages/sheets/src/commands/commands/utils/selection-util.ts
+++ b/packages/sheets/src/commands/commands/utils/selection-util.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICellData, IRange, ISelection, ISelectionCell, Nullable, ObjectMatrix, Worksheet } from '@univerjs/core';
import { Direction, getReverseDirection, RANGE_TYPE, Rectangle, selectionToArray } from '@univerjs/core';
diff --git a/packages/sheets/src/commands/mutations/add-worksheet-merge.mutation.ts b/packages/sheets/src/commands/mutations/add-worksheet-merge.mutation.ts
index cc37402087..7aabfb3de2 100644
--- a/packages/sheets/src/commands/mutations/add-worksheet-merge.mutation.ts
+++ b/packages/sheets/src/commands/mutations/add-worksheet-merge.mutation.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IMutation } from '@univerjs/core';
import { CommandType, IUniverInstanceService } from '@univerjs/core';
import type { IAccessor } from '@wendellhu/redi';
diff --git a/packages/sheets/src/commands/mutations/delete-range.mutation.ts b/packages/sheets/src/commands/mutations/delete-range.mutation.ts
index 389d0c36e5..153a11c2ee 100644
--- a/packages/sheets/src/commands/mutations/delete-range.mutation.ts
+++ b/packages/sheets/src/commands/mutations/delete-range.mutation.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICellData, IMutation, IRange, Nullable } from '@univerjs/core';
import { CommandType, Dimension, IUniverInstanceService, ObjectMatrix, Tools } from '@univerjs/core';
import type { IAccessor } from '@wendellhu/redi';
diff --git a/packages/sheets/src/commands/mutations/insert-range.mutation.ts b/packages/sheets/src/commands/mutations/insert-range.mutation.ts
index 09ead4cdb0..6df7e4f49a 100644
--- a/packages/sheets/src/commands/mutations/insert-range.mutation.ts
+++ b/packages/sheets/src/commands/mutations/insert-range.mutation.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IMutation, IRange, ObjectMatrix, ObjectMatrixPrimitiveType } from '@univerjs/core';
import { CommandType, Dimension, IUniverInstanceService } from '@univerjs/core';
import type { IAccessor } from '@wendellhu/redi';
diff --git a/packages/sheets/src/commands/mutations/insert-row-col.mutation.ts b/packages/sheets/src/commands/mutations/insert-row-col.mutation.ts
index 66170a1e3e..29e784be5e 100644
--- a/packages/sheets/src/commands/mutations/insert-row-col.mutation.ts
+++ b/packages/sheets/src/commands/mutations/insert-row-col.mutation.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IMutation } from '@univerjs/core';
import { CommandType, IUniverInstanceService, ObjectArray, Rectangle } from '@univerjs/core';
import type { IAccessor } from '@wendellhu/redi';
diff --git a/packages/sheets/src/commands/mutations/insert-sheet.mutation.ts b/packages/sheets/src/commands/mutations/insert-sheet.mutation.ts
index a8f5545cd6..4d11320cdb 100644
--- a/packages/sheets/src/commands/mutations/insert-sheet.mutation.ts
+++ b/packages/sheets/src/commands/mutations/insert-sheet.mutation.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IMutation } from '@univerjs/core';
import { CommandType, IUniverInstanceService } from '@univerjs/core';
import type { IAccessor } from '@wendellhu/redi';
diff --git a/packages/sheets/src/commands/mutations/move-range.mutation.ts b/packages/sheets/src/commands/mutations/move-range.mutation.ts
index 9c23ee0f14..8ce7eaefdf 100644
--- a/packages/sheets/src/commands/mutations/move-range.mutation.ts
+++ b/packages/sheets/src/commands/mutations/move-range.mutation.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICellData, IMutation, ObjectMatrixPrimitiveType } from '@univerjs/core';
import { CommandType, IUniverInstanceService, ObjectMatrix } from '@univerjs/core';
diff --git a/packages/sheets/src/commands/mutations/move-rows-cols.mutation.ts b/packages/sheets/src/commands/mutations/move-rows-cols.mutation.ts
index 91384e865b..50cf2829ae 100644
--- a/packages/sheets/src/commands/mutations/move-rows-cols.mutation.ts
+++ b/packages/sheets/src/commands/mutations/move-rows-cols.mutation.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IMutation, IRange } from '@univerjs/core';
import { CommandType, IUniverInstanceService, Rectangle } from '@univerjs/core';
import type { IAccessor } from '@wendellhu/redi';
diff --git a/packages/sheets/src/commands/mutations/numfmt-mutation.ts b/packages/sheets/src/commands/mutations/numfmt-mutation.ts
index 2be0d2fc9a..a60ac83673 100644
--- a/packages/sheets/src/commands/mutations/numfmt-mutation.ts
+++ b/packages/sheets/src/commands/mutations/numfmt-mutation.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommand, IMutationInfo, IRange } from '@univerjs/core';
import { CommandType, Range } from '@univerjs/core';
import type { IAccessor } from '@wendellhu/redi';
diff --git a/packages/sheets/src/commands/mutations/remove-row-col.mutation.ts b/packages/sheets/src/commands/mutations/remove-row-col.mutation.ts
index 1b88a9c51a..b8378a4c90 100644
--- a/packages/sheets/src/commands/mutations/remove-row-col.mutation.ts
+++ b/packages/sheets/src/commands/mutations/remove-row-col.mutation.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IColumnData, IMutation, IRowData, Worksheet } from '@univerjs/core';
import { CommandType, IUniverInstanceService, ObjectArray } from '@univerjs/core';
import type { IAccessor } from '@wendellhu/redi';
diff --git a/packages/sheets/src/commands/mutations/remove-sheet.mutation.ts b/packages/sheets/src/commands/mutations/remove-sheet.mutation.ts
index 8ff9865c84..169a755ba4 100644
--- a/packages/sheets/src/commands/mutations/remove-sheet.mutation.ts
+++ b/packages/sheets/src/commands/mutations/remove-sheet.mutation.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IMutation } from '@univerjs/core';
import { CommandType, IUniverInstanceService } from '@univerjs/core';
import type { IAccessor } from '@wendellhu/redi';
diff --git a/packages/sheets/src/commands/mutations/remove-worksheet-merge.mutation.ts b/packages/sheets/src/commands/mutations/remove-worksheet-merge.mutation.ts
index b704265816..0d95faa20f 100644
--- a/packages/sheets/src/commands/mutations/remove-worksheet-merge.mutation.ts
+++ b/packages/sheets/src/commands/mutations/remove-worksheet-merge.mutation.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IMutation } from '@univerjs/core';
import { CommandType, IUniverInstanceService, Rectangle } from '@univerjs/core';
import type { IAccessor } from '@wendellhu/redi';
diff --git a/packages/sheets/src/commands/mutations/set-col-visible.mutation.ts b/packages/sheets/src/commands/mutations/set-col-visible.mutation.ts
index 671e1c3c69..07b4cef76b 100644
--- a/packages/sheets/src/commands/mutations/set-col-visible.mutation.ts
+++ b/packages/sheets/src/commands/mutations/set-col-visible.mutation.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IMutation, IRange } from '@univerjs/core';
import { BooleanNumber, CommandType, IUniverInstanceService } from '@univerjs/core';
import type { IAccessor } from '@wendellhu/redi';
diff --git a/packages/sheets/src/commands/mutations/set-frozen.mutation.ts b/packages/sheets/src/commands/mutations/set-frozen.mutation.ts
index 5d64d627f6..f18f28bbf2 100644
--- a/packages/sheets/src/commands/mutations/set-frozen.mutation.ts
+++ b/packages/sheets/src/commands/mutations/set-frozen.mutation.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IMutation } from '@univerjs/core';
import { CommandType, IUniverInstanceService } from '@univerjs/core';
import type { IAccessor } from '@wendellhu/redi';
diff --git a/packages/sheets/src/commands/mutations/set-hide-gridlines.mutatiom.ts b/packages/sheets/src/commands/mutations/set-hide-gridlines.mutatiom.ts
index 25bc93e795..ec057ef580 100644
--- a/packages/sheets/src/commands/mutations/set-hide-gridlines.mutatiom.ts
+++ b/packages/sheets/src/commands/mutations/set-hide-gridlines.mutatiom.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { BooleanNumber, IMutation } from '@univerjs/core';
import { CommandType, IUniverInstanceService, Tools } from '@univerjs/core';
import type { IAccessor } from '@wendellhu/redi';
diff --git a/packages/sheets/src/commands/mutations/set-range-values.mutation.ts b/packages/sheets/src/commands/mutations/set-range-values.mutation.ts
index 52cc23de07..9a70038e2d 100644
--- a/packages/sheets/src/commands/mutations/set-range-values.mutation.ts
+++ b/packages/sheets/src/commands/mutations/set-range-values.mutation.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {
IBorderData,
ICellData,
diff --git a/packages/sheets/src/commands/mutations/set-row-visible.mutation.ts b/packages/sheets/src/commands/mutations/set-row-visible.mutation.ts
index d71a7ea224..aebb33b875 100644
--- a/packages/sheets/src/commands/mutations/set-row-visible.mutation.ts
+++ b/packages/sheets/src/commands/mutations/set-row-visible.mutation.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IMutation, IRange } from '@univerjs/core';
import { CommandType, IUniverInstanceService } from '@univerjs/core';
import type { IAccessor } from '@wendellhu/redi';
diff --git a/packages/sheets/src/commands/mutations/set-tab-color.mutation.ts b/packages/sheets/src/commands/mutations/set-tab-color.mutation.ts
index 46c351f7a4..2ef425b35a 100644
--- a/packages/sheets/src/commands/mutations/set-tab-color.mutation.ts
+++ b/packages/sheets/src/commands/mutations/set-tab-color.mutation.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IMutation } from '@univerjs/core';
import { CommandType, IUniverInstanceService, Tools } from '@univerjs/core';
import type { IAccessor } from '@wendellhu/redi';
diff --git a/packages/sheets/src/commands/mutations/set-worksheet-col-width.mutation.ts b/packages/sheets/src/commands/mutations/set-worksheet-col-width.mutation.ts
index f6b4580295..dff8aa3655 100644
--- a/packages/sheets/src/commands/mutations/set-worksheet-col-width.mutation.ts
+++ b/packages/sheets/src/commands/mutations/set-worksheet-col-width.mutation.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IMutation, IRange } from '@univerjs/core';
import { CommandType, IUniverInstanceService, ObjectArray } from '@univerjs/core';
import type { IAccessor } from '@wendellhu/redi';
diff --git a/packages/sheets/src/commands/mutations/set-worksheet-config.mutation.ts b/packages/sheets/src/commands/mutations/set-worksheet-config.mutation.ts
index a9585d4512..cf6c053238 100644
--- a/packages/sheets/src/commands/mutations/set-worksheet-config.mutation.ts
+++ b/packages/sheets/src/commands/mutations/set-worksheet-config.mutation.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IMutation, IWorksheetData } from '@univerjs/core';
import { CommandType, IUniverInstanceService, Tools } from '@univerjs/core';
import type { IAccessor } from '@wendellhu/redi';
diff --git a/packages/sheets/src/commands/mutations/set-worksheet-hide.mutation.ts b/packages/sheets/src/commands/mutations/set-worksheet-hide.mutation.ts
index 48a5ac0e4a..67a47a5e7a 100644
--- a/packages/sheets/src/commands/mutations/set-worksheet-hide.mutation.ts
+++ b/packages/sheets/src/commands/mutations/set-worksheet-hide.mutation.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { BooleanNumber, IMutation } from '@univerjs/core';
import { CommandType, IUniverInstanceService } from '@univerjs/core';
import type { IAccessor } from '@wendellhu/redi';
diff --git a/packages/sheets/src/commands/mutations/set-worksheet-name.mutation.ts b/packages/sheets/src/commands/mutations/set-worksheet-name.mutation.ts
index 68bf126530..b70de2fc69 100644
--- a/packages/sheets/src/commands/mutations/set-worksheet-name.mutation.ts
+++ b/packages/sheets/src/commands/mutations/set-worksheet-name.mutation.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IMutation } from '@univerjs/core';
import { CommandType, IUniverInstanceService } from '@univerjs/core';
import type { IAccessor } from '@wendellhu/redi';
diff --git a/packages/sheets/src/commands/mutations/set-worksheet-order.mutation.ts b/packages/sheets/src/commands/mutations/set-worksheet-order.mutation.ts
index 4c700cddf2..ac2ef25aef 100644
--- a/packages/sheets/src/commands/mutations/set-worksheet-order.mutation.ts
+++ b/packages/sheets/src/commands/mutations/set-worksheet-order.mutation.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IMutation } from '@univerjs/core';
import { CommandType, IUniverInstanceService, Tools } from '@univerjs/core';
import type { IAccessor } from '@wendellhu/redi';
diff --git a/packages/sheets/src/commands/mutations/set-worksheet-right-to-left.mutation.ts b/packages/sheets/src/commands/mutations/set-worksheet-right-to-left.mutation.ts
index 6a5998e205..fe08b878f9 100644
--- a/packages/sheets/src/commands/mutations/set-worksheet-right-to-left.mutation.ts
+++ b/packages/sheets/src/commands/mutations/set-worksheet-right-to-left.mutation.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { BooleanNumber, IMutation } from '@univerjs/core';
import { CommandType, IUniverInstanceService, Tools } from '@univerjs/core';
import type { IAccessor } from '@wendellhu/redi';
diff --git a/packages/sheets/src/commands/mutations/set-worksheet-row-height.mutation.ts b/packages/sheets/src/commands/mutations/set-worksheet-row-height.mutation.ts
index ff707dd8ad..d26b24e12d 100644
--- a/packages/sheets/src/commands/mutations/set-worksheet-row-height.mutation.ts
+++ b/packages/sheets/src/commands/mutations/set-worksheet-row-height.mutation.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IMutation, IRange, Nullable } from '@univerjs/core';
import { CommandType, IUniverInstanceService, ObjectArray } from '@univerjs/core';
import type { IRowAutoHeightInfo } from '@univerjs/engine-render';
diff --git a/packages/sheets/src/commands/operations/selection.operation.ts b/packages/sheets/src/commands/operations/selection.operation.ts
index 04bb74796a..92db923830 100644
--- a/packages/sheets/src/commands/operations/selection.operation.ts
+++ b/packages/sheets/src/commands/operations/selection.operation.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IOperation } from '@univerjs/core';
import { CommandType } from '@univerjs/core';
diff --git a/packages/sheets/src/commands/operations/set-worksheet-active.operation.ts b/packages/sheets/src/commands/operations/set-worksheet-active.operation.ts
index c2bc8a4535..c1f772c196 100644
--- a/packages/sheets/src/commands/operations/set-worksheet-active.operation.ts
+++ b/packages/sheets/src/commands/operations/set-worksheet-active.operation.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IOperation } from '@univerjs/core';
import { BooleanNumber, CommandType, IUniverInstanceService } from '@univerjs/core';
diff --git a/packages/sheets/src/commands/utils/interface.ts b/packages/sheets/src/commands/utils/interface.ts
index 45f38dd706..460088ae12 100644
--- a/packages/sheets/src/commands/utils/interface.ts
+++ b/packages/sheets/src/commands/utils/interface.ts
@@ -1,4 +1,19 @@
-// TODO@wzhudev: not all commands / mutations / operations depend on this interface
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 interface ISheetCommandSharedParams {
workbookId: string;
worksheetId: string;
diff --git a/packages/sheets/src/controllers/__tests__/util.ts b/packages/sheets/src/controllers/__tests__/util.ts
index ea317162c1..7eab1be128 100644
--- a/packages/sheets/src/controllers/__tests__/util.ts
+++ b/packages/sheets/src/controllers/__tests__/util.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IWorkbookData } from '@univerjs/core';
import { ILogService, IUniverInstanceService, LocaleType, LogLevel, Plugin, PluginType, Univer } from '@univerjs/core';
import type { Dependency } from '@wendellhu/redi';
diff --git a/packages/sheets/src/controllers/basic-worksheet.controller.ts b/packages/sheets/src/controllers/basic-worksheet.controller.ts
index 2634462f6f..90513da97a 100644
--- a/packages/sheets/src/controllers/basic-worksheet.controller.ts
+++ b/packages/sheets/src/controllers/basic-worksheet.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IStyleData } from '@univerjs/core';
import { Disposable, ICommandService, IConfigService, LifecycleStages, OnLifecycle } from '@univerjs/core';
import type { IDisposable } from '@wendellhu/redi';
diff --git a/packages/sheets/src/controllers/calculate-result-apply.controller.ts b/packages/sheets/src/controllers/calculate-result-apply.controller.ts
index a3fb07162f..41e6cf6dbb 100644
--- a/packages/sheets/src/controllers/calculate-result-apply.controller.ts
+++ b/packages/sheets/src/controllers/calculate-result-apply.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommandInfo } from '@univerjs/core';
import { Disposable, ICommandService, LifecycleStages, OnLifecycle } from '@univerjs/core';
import type { ISetFormulaCalculationResultMutation } from '@univerjs/engine-formula';
diff --git a/packages/sheets/src/controllers/config/config.ts b/packages/sheets/src/controllers/config/config.ts
index 32ff3a1053..fcc79453dd 100644
--- a/packages/sheets/src/controllers/config/config.ts
+++ b/packages/sheets/src/controllers/config/config.ts
@@ -1,2 +1,18 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 MAX_CELL_PER_SHEET_KEY = 'maxCellsPerSheet';
export const MAX_CELL_PER_SHEET_DEFAULT = 3_000_000;
diff --git a/packages/sheets/src/controllers/feature-calculation.controller.ts b/packages/sheets/src/controllers/feature-calculation.controller.ts
index ac832544ef..06b8cddfc5 100644
--- a/packages/sheets/src/controllers/feature-calculation.controller.ts
+++ b/packages/sheets/src/controllers/feature-calculation.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {
Disposable,
ICommandService,
diff --git a/packages/sheets/src/controllers/merge-cell.controller.ts b/packages/sheets/src/controllers/merge-cell.controller.ts
index e903a77c98..3eff82dcfd 100644
--- a/packages/sheets/src/controllers/merge-cell.controller.ts
+++ b/packages/sheets/src/controllers/merge-cell.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IMutationInfo, IRange, Workbook } from '@univerjs/core';
import {
Dimension,
diff --git a/packages/sheets/src/index.ts b/packages/sheets/src/index.ts
index c84a88363e..db1360ae9a 100644
--- a/packages/sheets/src/index.ts
+++ b/packages/sheets/src/index.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { type IUniverSheetsConfig, UniverSheets } from './sheets-plugin';
// #region services
diff --git a/packages/sheets/src/locale/en-US.ts b/packages/sheets/src/locale/en-US.ts
index ff8b4c5632..ef2cf5cf67 100644
--- a/packages/sheets/src/locale/en-US.ts
+++ b/packages/sheets/src/locale/en-US.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {};
diff --git a/packages/sheets/src/locale/index.ts b/packages/sheets/src/locale/index.ts
index b0b1d48d5d..ac8ca08af1 100644
--- a/packages/sheets/src/locale/index.ts
+++ b/packages/sheets/src/locale/index.ts
@@ -1,2 +1,18 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 enUS } from './en-US';
export { default as zhCN } from './zh-CN';
diff --git a/packages/sheets/src/locale/zh-CN.ts b/packages/sheets/src/locale/zh-CN.ts
index ff8b4c5632..ef2cf5cf67 100644
--- a/packages/sheets/src/locale/zh-CN.ts
+++ b/packages/sheets/src/locale/zh-CN.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {};
diff --git a/packages/sheets/src/services/__tests__/numfmt.service.test.ts b/packages/sheets/src/services/__tests__/numfmt.service.test.ts
index 1a34986d2d..0f88d1cde5 100644
--- a/packages/sheets/src/services/__tests__/numfmt.service.test.ts
+++ b/packages/sheets/src/services/__tests__/numfmt.service.test.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Univer } from '@univerjs/core';
import { ICommandService, IUniverInstanceService } from '@univerjs/core';
import type { IRemoveNumfmtMutationParams, ISetNumfmtMutationParams } from '@univerjs/sheets';
diff --git a/packages/sheets/src/services/__tests__/ref-range.setvice.spec.ts b/packages/sheets/src/services/__tests__/ref-range.setvice.spec.ts
index 99ea02853b..0ab9b5e142 100644
--- a/packages/sheets/src/services/__tests__/ref-range.setvice.spec.ts
+++ b/packages/sheets/src/services/__tests__/ref-range.setvice.spec.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IRange, Univer, Workbook, Worksheet } from '@univerjs/core';
import { ICommandService, IUniverInstanceService } from '@univerjs/core';
import type { Injector } from '@wendellhu/redi';
diff --git a/packages/sheets/src/services/__tests__/sheet-permission.spec.ts b/packages/sheets/src/services/__tests__/sheet-permission.spec.ts
index 699a94487b..8df0ac2d7a 100644
--- a/packages/sheets/src/services/__tests__/sheet-permission.spec.ts
+++ b/packages/sheets/src/services/__tests__/sheet-permission.spec.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Univer } from '@univerjs/core';
import { ICommandService, IUniverInstanceService, UniverPermissionService } from '@univerjs/core';
import type { Injector } from '@wendellhu/redi';
diff --git a/packages/sheets/src/services/__tests__/util.ts b/packages/sheets/src/services/__tests__/util.ts
index f2cbb3c520..12b5f765b2 100644
--- a/packages/sheets/src/services/__tests__/util.ts
+++ b/packages/sheets/src/services/__tests__/util.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IWorkbookData } from '@univerjs/core';
import { ILogService, IUniverInstanceService, LocaleType, LogLevel, Plugin, PluginType, Univer } from '@univerjs/core';
import type { Dependency } from '@wendellhu/redi';
diff --git a/packages/sheets/src/services/border-style-manager.service.ts b/packages/sheets/src/services/border-style-manager.service.ts
index 5944d1b135..445b9b99f4 100644
--- a/packages/sheets/src/services/border-style-manager.service.ts
+++ b/packages/sheets/src/services/border-style-manager.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { BorderStyleTypes, BorderType } from '@univerjs/core';
import type { IDisposable } from '@wendellhu/redi';
import { BehaviorSubject } from 'rxjs';
diff --git a/packages/sheets/src/services/numfmt/numfmt.service.ts b/packages/sheets/src/services/numfmt/numfmt.service.ts
index b772a856ef..99ab7f3c65 100644
--- a/packages/sheets/src/services/numfmt/numfmt.service.ts
+++ b/packages/sheets/src/services/numfmt/numfmt.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IRange, Nullable, ObjectMatrixPrimitiveType, Workbook } from '@univerjs/core';
import {
Disposable,
diff --git a/packages/sheets/src/services/numfmt/type.ts b/packages/sheets/src/services/numfmt/type.ts
index 33d7d70bf0..cb0254f18f 100644
--- a/packages/sheets/src/services/numfmt/type.ts
+++ b/packages/sheets/src/services/numfmt/type.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICellData, IRange, Nullable, ObjectMatrix, ObjectMatrixPrimitiveType, RefAlias } from '@univerjs/core';
import { LifecycleStages, runOnLifecycle } from '@univerjs/core';
import { createIdentifier } from '@wendellhu/redi';
diff --git a/packages/sheets/src/services/permission/index.ts b/packages/sheets/src/services/permission/index.ts
index d37520e610..29737ad5a9 100644
--- a/packages/sheets/src/services/permission/index.ts
+++ b/packages/sheets/src/services/permission/index.ts
@@ -1,2 +1,18 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { SheetEditablePermission } from './permission-point';
export { SheetPermissionService } from './sheet-permission.service';
diff --git a/packages/sheets/src/services/permission/permission-point.ts b/packages/sheets/src/services/permission/permission-point.ts
index ee6472809b..5920b565d0 100644
--- a/packages/sheets/src/services/permission/permission-point.ts
+++ b/packages/sheets/src/services/permission/permission-point.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { PermissionPoint } from '@univerjs/core';
const SheetEditablePermissionPoint = 'univer.sheet.editable';
diff --git a/packages/sheets/src/services/permission/sheet-permission.service.ts b/packages/sheets/src/services/permission/sheet-permission.service.ts
index e785ecfd26..f95966ab00 100644
--- a/packages/sheets/src/services/permission/sheet-permission.service.ts
+++ b/packages/sheets/src/services/permission/sheet-permission.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { PermissionService } from '@univerjs/core';
import {
Disposable,
diff --git a/packages/sheets/src/services/ref-range/__tests__/util.spec.ts b/packages/sheets/src/services/ref-range/__tests__/util.spec.ts
index f4e25e911f..b38b12a8e1 100644
--- a/packages/sheets/src/services/ref-range/__tests__/util.spec.ts
+++ b/packages/sheets/src/services/ref-range/__tests__/util.spec.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IRange } from '@univerjs/core';
import { beforeEach, describe, expect, it } from 'vitest';
diff --git a/packages/sheets/src/services/ref-range/__tests__/util.ts b/packages/sheets/src/services/ref-range/__tests__/util.ts
index f2cbb3c520..12b5f765b2 100644
--- a/packages/sheets/src/services/ref-range/__tests__/util.ts
+++ b/packages/sheets/src/services/ref-range/__tests__/util.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IWorkbookData } from '@univerjs/core';
import { ILogService, IUniverInstanceService, LocaleType, LogLevel, Plugin, PluginType, Univer } from '@univerjs/core';
import type { Dependency } from '@wendellhu/redi';
diff --git a/packages/sheets/src/services/ref-range/ref-range.service.ts b/packages/sheets/src/services/ref-range/ref-range.service.ts
index f40d44c9d4..efda80b319 100644
--- a/packages/sheets/src/services/ref-range/ref-range.service.ts
+++ b/packages/sheets/src/services/ref-range/ref-range.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IMutationInfo, IRange } from '@univerjs/core';
import {
createInterceptorKey,
diff --git a/packages/sheets/src/services/ref-range/type.ts b/packages/sheets/src/services/ref-range/type.ts
index cfac8c5df1..7d68c9ea6b 100644
--- a/packages/sheets/src/services/ref-range/type.ts
+++ b/packages/sheets/src/services/ref-range/type.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommandInfo, IRange } from '@univerjs/core';
import type { IDeleteRangeMoveLeftCommandParams } from '../../commands/commands/delete-range-move-left.command';
diff --git a/packages/sheets/src/services/ref-range/util.ts b/packages/sheets/src/services/ref-range/util.ts
index 718f08a244..987303b796 100644
--- a/packages/sheets/src/services/ref-range/util.ts
+++ b/packages/sheets/src/services/ref-range/util.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IRange, Nullable } from '@univerjs/core';
import { Rectangle } from '@univerjs/core';
diff --git a/packages/sheets/src/services/selection-manager.service.ts b/packages/sheets/src/services/selection-manager.service.ts
index ed0550f7e3..ed3ce4ba56 100644
--- a/packages/sheets/src/services/selection-manager.service.ts
+++ b/packages/sheets/src/services/selection-manager.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 IRange, type ISelectionCell, type Nullable, ThemeService } from '@univerjs/core';
import { type IDisposable, Inject } from '@wendellhu/redi';
import { BehaviorSubject, Subject } from 'rxjs';
diff --git a/packages/sheets/src/services/sheet-interceptor/__tests__/create-core-test-bed.ts b/packages/sheets/src/services/sheet-interceptor/__tests__/create-core-test-bed.ts
index 5b726521b4..ae58d227a8 100644
--- a/packages/sheets/src/services/sheet-interceptor/__tests__/create-core-test-bed.ts
+++ b/packages/sheets/src/services/sheet-interceptor/__tests__/create-core-test-bed.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IWorkbookData } from '@univerjs/core';
import { ILogService, IUniverInstanceService, LocaleType, LogLevel, Plugin, PluginType, Univer } from '@univerjs/core';
import type { Dependency } from '@wendellhu/redi';
diff --git a/packages/sheets/src/services/sheet-interceptor/__tests__/sheet-interceptor.service.spec.ts b/packages/sheets/src/services/sheet-interceptor/__tests__/sheet-interceptor.service.spec.ts
index a21661190d..cf5fb36521 100644
--- a/packages/sheets/src/services/sheet-interceptor/__tests__/sheet-interceptor.service.spec.ts
+++ b/packages/sheets/src/services/sheet-interceptor/__tests__/sheet-interceptor.service.spec.ts
@@ -1,4 +1,19 @@
-/* eslint-disable no-magic-numbers */
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICellData, Nullable, Univer } from '@univerjs/core';
import { createInterceptorKey, IUniverInstanceService } from '@univerjs/core';
import type { Injector } from '@wendellhu/redi';
diff --git a/packages/sheets/src/services/sheet-interceptor/interceptor-const.ts b/packages/sheets/src/services/sheet-interceptor/interceptor-const.ts
index 8cb73011d8..dd5226ebcd 100644
--- a/packages/sheets/src/services/sheet-interceptor/interceptor-const.ts
+++ b/packages/sheets/src/services/sheet-interceptor/interceptor-const.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICellDataForSheetInterceptor, ICommandInfo } from '@univerjs/core';
import { createInterceptorKey } from '@univerjs/core';
diff --git a/packages/sheets/src/services/sheet-interceptor/sheet-interceptor.service.ts b/packages/sheets/src/services/sheet-interceptor/sheet-interceptor.service.ts
index 5ece693f5b..e7a43ee8a9 100644
--- a/packages/sheets/src/services/sheet-interceptor/sheet-interceptor.service.ts
+++ b/packages/sheets/src/services/sheet-interceptor/sheet-interceptor.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {
ICellData,
ICommandInfo,
diff --git a/packages/sheets/src/services/sheet-interceptor/utils/interceptor.ts b/packages/sheets/src/services/sheet-interceptor/utils/interceptor.ts
index 31245d2e52..7b196fbf9c 100644
--- a/packages/sheets/src/services/sheet-interceptor/utils/interceptor.ts
+++ b/packages/sheets/src/services/sheet-interceptor/utils/interceptor.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Workbook, Worksheet } from '@univerjs/core';
export interface ISheetLocation {
diff --git a/packages/sheets/src/sheets-plugin.ts b/packages/sheets/src/sheets-plugin.ts
index 2b38a75261..bef63fa02c 100644
--- a/packages/sheets/src/sheets-plugin.ts
+++ b/packages/sheets/src/sheets-plugin.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommandService, LocaleService, Plugin, PluginType } from '@univerjs/core';
import type { Dependency } from '@wendellhu/redi';
import { Inject, Injector } from '@wendellhu/redi';
diff --git a/packages/slides-ui/src/basics/const/default-univer-slide-config.ts b/packages/slides-ui/src/basics/const/default-univer-slide-config.ts
index 782a76f76d..4a4c64eb7b 100644
--- a/packages/slides-ui/src/basics/const/default-univer-slide-config.ts
+++ b/packages/slides-ui/src/basics/const/default-univer-slide-config.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 DefaultToolbarConfig = {
undo: true,
redo: true, // Undo redo
diff --git a/packages/slides-ui/src/basics/const/index.ts b/packages/slides-ui/src/basics/const/index.ts
index 0449b3ba1b..bf3e30efb5 100644
--- a/packages/slides-ui/src/basics/const/index.ts
+++ b/packages/slides-ui/src/basics/const/index.ts
@@ -1,2 +1,18 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './default-univer-slide-config';
export * from './plugin-name';
diff --git a/packages/slides-ui/src/basics/const/plugin-name.ts b/packages/slides-ui/src/basics/const/plugin-name.ts
index 9ee068a5a0..ccadb37791 100644
--- a/packages/slides-ui/src/basics/const/plugin-name.ts
+++ b/packages/slides-ui/src/basics/const/plugin-name.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 SLIDE_UI_PLUGIN_NAME = 'SlideUI';
diff --git a/packages/slides-ui/src/basics/index.ts b/packages/slides-ui/src/basics/index.ts
index c6f20c3e48..9c53c04e2b 100644
--- a/packages/slides-ui/src/basics/index.ts
+++ b/packages/slides-ui/src/basics/index.ts
@@ -1,2 +1,18 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './const';
export * from './interfaces';
diff --git a/packages/slides-ui/src/basics/interfaces/component-config/i-slide-ui-plugin-config.ts b/packages/slides-ui/src/basics/interfaces/component-config/i-slide-ui-plugin-config.ts
index 84f8ff044e..5630b4dc1c 100644
--- a/packages/slides-ui/src/basics/interfaces/component-config/i-slide-ui-plugin-config.ts
+++ b/packages/slides-ui/src/basics/interfaces/component-config/i-slide-ui-plugin-config.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { LocaleType } from '@univerjs/core';
import type { SlideContainerConfig } from './slide-container-config';
diff --git a/packages/slides-ui/src/basics/interfaces/component-config/index.ts b/packages/slides-ui/src/basics/interfaces/component-config/index.ts
index afd8120ab5..7b638dca4a 100644
--- a/packages/slides-ui/src/basics/interfaces/component-config/index.ts
+++ b/packages/slides-ui/src/basics/interfaces/component-config/index.ts
@@ -1,2 +1,18 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './i-slide-ui-plugin-config';
export * from './toolbar-config';
diff --git a/packages/slides-ui/src/basics/interfaces/component-config/slide-container-config.ts b/packages/slides-ui/src/basics/interfaces/component-config/slide-container-config.ts
index 6814da32df..8b28971b54 100644
--- a/packages/slides-ui/src/basics/interfaces/component-config/slide-container-config.ts
+++ b/packages/slides-ui/src/basics/interfaces/component-config/slide-container-config.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 interface SlideContainerConfig {
outerLeft?: boolean;
diff --git a/packages/slides-ui/src/basics/interfaces/component-config/toolbar-config.ts b/packages/slides-ui/src/basics/interfaces/component-config/toolbar-config.ts
index 3d818ef74e..b0b70d9724 100644
--- a/packages/slides-ui/src/basics/interfaces/component-config/toolbar-config.ts
+++ b/packages/slides-ui/src/basics/interfaces/component-config/toolbar-config.ts
@@ -1,4 +1,19 @@
-// sheet工具栏配置
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 interface SlideToolbarConfig {
undo?: boolean; // Undo redo
redo?: boolean; // Undo redo
diff --git a/packages/slides-ui/src/basics/interfaces/index.ts b/packages/slides-ui/src/basics/interfaces/index.ts
index 79ccf90bfd..c1acc2d0d6 100644
--- a/packages/slides-ui/src/basics/interfaces/index.ts
+++ b/packages/slides-ui/src/basics/interfaces/index.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './component-config';
diff --git a/packages/slides-ui/src/controllers/app-ui-controller.ts b/packages/slides-ui/src/controllers/app-ui-controller.ts
index 246ba5abbf..f577d7ceb9 100644
--- a/packages/slides-ui/src/controllers/app-ui-controller.ts
+++ b/packages/slides-ui/src/controllers/app-ui-controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { LocaleType } from '@univerjs/core';
import { LocaleService } from '@univerjs/core';
import { ComponentManager } from '@univerjs/ui';
diff --git a/packages/slides-ui/src/controllers/index.ts b/packages/slides-ui/src/controllers/index.ts
index b5e2eadefd..e595258fd3 100644
--- a/packages/slides-ui/src/controllers/index.ts
+++ b/packages/slides-ui/src/controllers/index.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './app-ui-controller';
export * from './info-bar-ui-controller';
export * from './slide-container-ui-controller';
diff --git a/packages/slides-ui/src/controllers/info-bar-ui-controller.ts b/packages/slides-ui/src/controllers/info-bar-ui-controller.ts
index ce14e0a7fd..b098baebde 100644
--- a/packages/slides-ui/src/controllers/info-bar-ui-controller.ts
+++ b/packages/slides-ui/src/controllers/info-bar-ui-controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { InfoBarModel } from '../model/info-bar-model';
import type { InfoBar } from '../views/info-bar';
diff --git a/packages/slides-ui/src/controllers/slide-bar-ui-controller.ts b/packages/slides-ui/src/controllers/slide-bar-ui-controller.ts
index d9eef46c4c..c7fdd77bf4 100644
--- a/packages/slides-ui/src/controllers/slide-bar-ui-controller.ts
+++ b/packages/slides-ui/src/controllers/slide-bar-ui-controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ISlidePage } from '@univerjs/core';
import { IUniverInstanceService } from '@univerjs/core';
import { CanvasView } from '@univerjs/slides';
diff --git a/packages/slides-ui/src/controllers/slide-container-ui-controller.ts b/packages/slides-ui/src/controllers/slide-container-ui-controller.ts
index 28173bb545..f9472d7303 100644
--- a/packages/slides-ui/src/controllers/slide-container-ui-controller.ts
+++ b/packages/slides-ui/src/controllers/slide-container-ui-controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { LocaleType } from '@univerjs/core';
import { LocaleService } from '@univerjs/core';
import { ComponentManager } from '@univerjs/ui';
diff --git a/packages/slides-ui/src/controllers/slide-ui.controller.ts b/packages/slides-ui/src/controllers/slide-ui.controller.ts
index 7ed4c6f373..6800c2f583 100644
--- a/packages/slides-ui/src/controllers/slide-ui.controller.ts
+++ b/packages/slides-ui/src/controllers/slide-ui.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Disposable, LifecycleStages, OnLifecycle } from '@univerjs/core';
import type { IDesktopUIController } from '@univerjs/ui';
import { IUIController } from '@univerjs/ui';
diff --git a/packages/slides-ui/src/controllers/toolbar-ui-controller.ts b/packages/slides-ui/src/controllers/toolbar-ui-controller.ts
index 5eb649229c..7b18f1c4d1 100644
--- a/packages/slides-ui/src/controllers/toolbar-ui-controller.ts
+++ b/packages/slides-ui/src/controllers/toolbar-ui-controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { HorizontalAlign, IKeyValue, UIObserver, VerticalAlign, WrapStrategy } from '@univerjs/core';
import { BorderType, IUniverInstanceService, Tools } from '@univerjs/core';
import { ColorPicker } from '@univerjs/design';
diff --git a/packages/slides-ui/src/index.ts b/packages/slides-ui/src/index.ts
index a5994fceb5..b18cb79e33 100644
--- a/packages/slides-ui/src/index.ts
+++ b/packages/slides-ui/src/index.ts
@@ -1,2 +1,18 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './basics';
export * from './slides-ui-plugin';
diff --git a/packages/slides-ui/src/locale/en-US.ts b/packages/slides-ui/src/locale/en-US.ts
index ff8b4c5632..ef2cf5cf67 100644
--- a/packages/slides-ui/src/locale/en-US.ts
+++ b/packages/slides-ui/src/locale/en-US.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {};
diff --git a/packages/slides-ui/src/locale/index.ts b/packages/slides-ui/src/locale/index.ts
index b0b1d48d5d..ac8ca08af1 100644
--- a/packages/slides-ui/src/locale/index.ts
+++ b/packages/slides-ui/src/locale/index.ts
@@ -1,2 +1,18 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 enUS } from './en-US';
export { default as zhCN } from './zh-CN';
diff --git a/packages/slides-ui/src/locale/zh-CN.ts b/packages/slides-ui/src/locale/zh-CN.ts
index ff8b4c5632..ef2cf5cf67 100644
--- a/packages/slides-ui/src/locale/zh-CN.ts
+++ b/packages/slides-ui/src/locale/zh-CN.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {};
diff --git a/packages/slides-ui/src/model/index.ts b/packages/slides-ui/src/model/index.ts
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/packages/slides-ui/src/model/info-bar-model.ts b/packages/slides-ui/src/model/info-bar-model.ts
index e9d969cf44..20b7a7380d 100644
--- a/packages/slides-ui/src/model/info-bar-model.ts
+++ b/packages/slides-ui/src/model/info-bar-model.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 class InfoBarModel {
constructor(private _name: string) {}
diff --git a/packages/slides-ui/src/services/index.ts b/packages/slides-ui/src/services/index.ts
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/packages/slides-ui/src/slides-ui-plugin.ts b/packages/slides-ui/src/slides-ui-plugin.ts
index 187c89193f..27d2898988 100644
--- a/packages/slides-ui/src/slides-ui-plugin.ts
+++ b/packages/slides-ui/src/slides-ui-plugin.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IUniverInstanceService, LocaleService, Plugin, PluginType, Tools } from '@univerjs/core';
import { ComponentManager } from '@univerjs/ui';
import { Inject, Injector } from '@wendellhu/redi';
diff --git a/packages/slides-ui/src/types/index.d.ts b/packages/slides-ui/src/types/index.d.ts
index 9ecd9dee0c..0b5eafd001 100644
--- a/packages/slides-ui/src/types/index.d.ts
+++ b/packages/slides-ui/src/types/index.d.ts
@@ -1,2 +1,18 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from '../index';
declare module '@univerjs/slides-ui' {}
diff --git a/packages/slides-ui/src/views/info-bar/InfoBar.tsx b/packages/slides-ui/src/views/info-bar/InfoBar.tsx
index 92beb22ae0..df0a1a7b98 100644
--- a/packages/slides-ui/src/views/info-bar/InfoBar.tsx
+++ b/packages/slides-ui/src/views/info-bar/InfoBar.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '@univerjs/core';
import { Container, Input, Tooltip } from '@univerjs/design';
import type { BaseComponentProps } from '@univerjs/ui';
diff --git a/packages/slides-ui/src/views/info-bar/index.ts b/packages/slides-ui/src/views/info-bar/index.ts
index 345955a1ce..76be62d035 100644
--- a/packages/slides-ui/src/views/info-bar/index.ts
+++ b/packages/slides-ui/src/views/info-bar/index.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './InfoBar';
diff --git a/packages/slides-ui/src/views/slide-bar/SlideBar.tsx b/packages/slides-ui/src/views/slide-bar/SlideBar.tsx
index 548d25ea8d..1607230ec9 100644
--- a/packages/slides-ui/src/views/slide-bar/SlideBar.tsx
+++ b/packages/slides-ui/src/views/slide-bar/SlideBar.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ISlidePage } from '@univerjs/core';
import type { BaseComponentProps } from '@univerjs/ui';
import React, { Component, createRef } from 'react';
diff --git a/packages/slides-ui/src/views/slide-container/SlideContainer.tsx b/packages/slides-ui/src/views/slide-container/SlideContainer.tsx
index 9cf25388d2..af99e7bfeb 100644
--- a/packages/slides-ui/src/views/slide-container/SlideContainer.tsx
+++ b/packages/slides-ui/src/views/slide-container/SlideContainer.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { BaseComponentProps } from '@univerjs/ui';
import React, { Component, createRef } from 'react';
diff --git a/packages/slides-ui/src/views/slide-container/index.ts b/packages/slides-ui/src/views/slide-container/index.ts
index 9cee177d14..c3d0403e6b 100644
--- a/packages/slides-ui/src/views/slide-container/index.ts
+++ b/packages/slides-ui/src/views/slide-container/index.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './SlideContainer';
diff --git a/packages/slides-ui/src/views/toolbar/DataBar.tsx b/packages/slides-ui/src/views/toolbar/DataBar.tsx
index f4c8a5ef03..3e4c553e4e 100644
--- a/packages/slides-ui/src/views/toolbar/DataBar.tsx
+++ b/packages/slides-ui/src/views/toolbar/DataBar.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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';
interface BarProps {
diff --git a/packages/slides-ui/src/views/toolbar/Toolbar.tsx b/packages/slides-ui/src/views/toolbar/Toolbar.tsx
index 1b49dc679d..82805385a9 100644
--- a/packages/slides-ui/src/views/toolbar/Toolbar.tsx
+++ b/packages/slides-ui/src/views/toolbar/Toolbar.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Button, Container, Tooltip } from '@univerjs/design';
import type { BaseComponentProps } from '@univerjs/ui';
import React, { Component, createRef } from 'react';
diff --git a/packages/slides-ui/src/views/toolbar/const.ts b/packages/slides-ui/src/views/toolbar/const.ts
index 4e72dea985..ac9f12b291 100644
--- a/packages/slides-ui/src/views/toolbar/const.ts
+++ b/packages/slides-ui/src/views/toolbar/const.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { BorderStyleTypes } from '@univerjs/core';
export const FONT_FAMILY_CHILDREN = [
diff --git a/packages/slides-ui/src/views/toolbar/index.ts b/packages/slides-ui/src/views/toolbar/index.ts
index 7c6430332b..9ddf47dfe3 100644
--- a/packages/slides-ui/src/views/toolbar/index.ts
+++ b/packages/slides-ui/src/views/toolbar/index.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './Toolbar';
diff --git a/packages/slides/src/basics/const/index.ts b/packages/slides/src/basics/const/index.ts
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/packages/slides/src/basics/const/plugin-name.ts b/packages/slides/src/basics/const/plugin-name.ts
index aecdecac81..9e6d40a48b 100644
--- a/packages/slides/src/basics/const/plugin-name.ts
+++ b/packages/slides/src/basics/const/plugin-name.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 SLIDES_PLUGIN_NAME = 'slides';
diff --git a/packages/slides/src/basics/demo-data.ts b/packages/slides/src/basics/demo-data.ts
index de198a9ed6..9a3bbf772a 100644
--- a/packages/slides/src/basics/demo-data.ts
+++ b/packages/slides/src/basics/demo-data.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IDocumentData } from '@univerjs/core';
import {
BaselineOffset,
diff --git a/packages/slides/src/basics/enum/index.ts b/packages/slides/src/basics/enum/index.ts
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/packages/slides/src/basics/index.ts b/packages/slides/src/basics/index.ts
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/packages/slides/src/basics/shared/index.ts b/packages/slides/src/basics/shared/index.ts
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/packages/slides/src/index.ts b/packages/slides/src/index.ts
index 7c130ed66d..856000f029 100644
--- a/packages/slides/src/index.ts
+++ b/packages/slides/src/index.ts
@@ -1,2 +1,18 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './slides-plugin';
export * from './views/render';
diff --git a/packages/slides/src/locale/en-US.ts b/packages/slides/src/locale/en-US.ts
index ff8b4c5632..ef2cf5cf67 100644
--- a/packages/slides/src/locale/en-US.ts
+++ b/packages/slides/src/locale/en-US.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {};
diff --git a/packages/slides/src/locale/index.ts b/packages/slides/src/locale/index.ts
index b0b1d48d5d..ac8ca08af1 100644
--- a/packages/slides/src/locale/index.ts
+++ b/packages/slides/src/locale/index.ts
@@ -1,2 +1,18 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 enUS } from './en-US';
export { default as zhCN } from './zh-CN';
diff --git a/packages/slides/src/locale/zh-CN.ts b/packages/slides/src/locale/zh-CN.ts
index ff8b4c5632..ef2cf5cf67 100644
--- a/packages/slides/src/locale/zh-CN.ts
+++ b/packages/slides/src/locale/zh-CN.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {};
diff --git a/packages/slides/src/model/index.ts b/packages/slides/src/model/index.ts
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/packages/slides/src/model/info-bar-model.ts b/packages/slides/src/model/info-bar-model.ts
index e9d969cf44..20b7a7380d 100644
--- a/packages/slides/src/model/info-bar-model.ts
+++ b/packages/slides/src/model/info-bar-model.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 class InfoBarModel {
constructor(private _name: string) {}
diff --git a/packages/slides/src/model/toolbar-model.ts b/packages/slides/src/model/toolbar-model.ts
index 700a0e61f1..549606a485 100644
--- a/packages/slides/src/model/toolbar-model.ts
+++ b/packages/slides/src/model/toolbar-model.ts
@@ -1,5 +1,18 @@
-// import { BaseSelectChildrenProps, IBaseSelectProps } from '../views/ui/common/select/select';
-// import { BaseTextButtonProps } from '../views/ui/common/text-button/text-button';
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 interface IShowToolbarConfig {
// undoRedo?: boolean; // Undo redo
diff --git a/packages/slides/src/services/index.ts b/packages/slides/src/services/index.ts
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/packages/slides/src/slides-plugin.ts b/packages/slides/src/slides-plugin.ts
index 3e953a1d01..38c20e8b5d 100644
--- a/packages/slides/src/slides-plugin.ts
+++ b/packages/slides/src/slides-plugin.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IUniverInstanceService, LocaleService, Plugin, PluginType } from '@univerjs/core';
import type { Engine } from '@univerjs/engine-render';
import { IRenderingEngine } from '@univerjs/engine-render';
diff --git a/packages/slides/src/types/index.d.ts b/packages/slides/src/types/index.d.ts
index 996fd94c31..0f8ad6d438 100644
--- a/packages/slides/src/types/index.d.ts
+++ b/packages/slides/src/types/index.d.ts
@@ -1,2 +1,18 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from '../index';
declare module '@univerjs/slides' {}
diff --git a/packages/slides/src/views/render/adaptor.ts b/packages/slides/src/views/render/adaptor.ts
index da05d05159..9957f42c6c 100644
--- a/packages/slides/src/views/render/adaptor.ts
+++ b/packages/slides/src/views/render/adaptor.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IPageElement, PageElementType } from '@univerjs/core';
import { Registry } from '@univerjs/core';
import type { Scene } from '@univerjs/engine-render';
diff --git a/packages/slides/src/views/render/adaptors/docs-adaptor.ts b/packages/slides/src/views/render/adaptors/docs-adaptor.ts
index ef6cba106f..5b1df5b614 100644
--- a/packages/slides/src/views/render/adaptors/docs-adaptor.ts
+++ b/packages/slides/src/views/render/adaptors/docs-adaptor.ts
@@ -1,4 +1,19 @@
-/* eslint-disable no-magic-numbers */
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { EventState, IPageElement } from '@univerjs/core';
import { DocumentDataModel, LocaleService, PageElementType } from '@univerjs/core';
import type { BaseObject, IDocumentSkeletonDrawing, IPageRenderConfig, IWheelEvent } from '@univerjs/engine-render';
diff --git a/packages/slides/src/views/render/adaptors/image-adaptor.ts b/packages/slides/src/views/render/adaptors/image-adaptor.ts
index 29db7750ca..c99a96dbc4 100644
--- a/packages/slides/src/views/render/adaptors/image-adaptor.ts
+++ b/packages/slides/src/views/render/adaptors/image-adaptor.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IPageElement } from '@univerjs/core';
import { PageElementType } from '@univerjs/core';
import { Picture } from '@univerjs/engine-render';
diff --git a/packages/slides/src/views/render/adaptors/index.ts b/packages/slides/src/views/render/adaptors/index.ts
index ad4805c756..4b82df2f5c 100644
--- a/packages/slides/src/views/render/adaptors/index.ts
+++ b/packages/slides/src/views/render/adaptors/index.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './docs-adaptor';
export * from './image-adaptor';
export * from './rich-text-adaptor';
diff --git a/packages/slides/src/views/render/adaptors/rich-text-adaptor.ts b/packages/slides/src/views/render/adaptors/rich-text-adaptor.ts
index 58203ecd43..39eaf6eecd 100644
--- a/packages/slides/src/views/render/adaptors/rich-text-adaptor.ts
+++ b/packages/slides/src/views/render/adaptors/rich-text-adaptor.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IPageElement } from '@univerjs/core';
import { LocaleService, PageElementType } from '@univerjs/core';
import type { IRichTextProps, Scene } from '@univerjs/engine-render';
diff --git a/packages/slides/src/views/render/adaptors/shape-adaptor.ts b/packages/slides/src/views/render/adaptors/shape-adaptor.ts
index 777fc7d37b..4266b75140 100644
--- a/packages/slides/src/views/render/adaptors/shape-adaptor.ts
+++ b/packages/slides/src/views/render/adaptors/shape-adaptor.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IPageElement } from '@univerjs/core';
import { getColorStyle, PageElementType, ShapeType } from '@univerjs/core';
import { Rect } from '@univerjs/engine-render';
diff --git a/packages/slides/src/views/render/adaptors/slide-adaptor.ts b/packages/slides/src/views/render/adaptors/slide-adaptor.ts
index 20bf67bc57..6825cd24e7 100644
--- a/packages/slides/src/views/render/adaptors/slide-adaptor.ts
+++ b/packages/slides/src/views/render/adaptors/slide-adaptor.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IColorStyle, IPageElement, ISlidePage } from '@univerjs/core';
import { getColorStyle, PageElementType, Slide as SlideM } from '@univerjs/core';
import type { Engine } from '@univerjs/engine-render';
diff --git a/packages/slides/src/views/render/adaptors/spreadsheet-adaptor.ts b/packages/slides/src/views/render/adaptors/spreadsheet-adaptor.ts
index 491ec736c8..86383ffe5b 100644
--- a/packages/slides/src/views/render/adaptors/spreadsheet-adaptor.ts
+++ b/packages/slides/src/views/render/adaptors/spreadsheet-adaptor.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { EventState, ICellData, IPageElement } from '@univerjs/core';
import { LocaleService, ObjectMatrix, PageElementType, Styles } from '@univerjs/core';
import type { IScrollObserverParam, IWheelEvent } from '@univerjs/engine-render';
diff --git a/packages/slides/src/views/render/canvas-view.ts b/packages/slides/src/views/render/canvas-view.ts
index 6d0dd0213f..2bbec7be65 100644
--- a/packages/slides/src/views/render/canvas-view.ts
+++ b/packages/slides/src/views/render/canvas-view.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { EventState, IColorStyle, ISlidePage, Nullable } from '@univerjs/core';
import { getColorStyle, IUniverInstanceService } from '@univerjs/core';
import type { IWheelEvent, RenderManagerService } from '@univerjs/engine-render';
diff --git a/packages/slides/src/views/render/index.ts b/packages/slides/src/views/render/index.ts
index cea5f3faab..c339d7b272 100644
--- a/packages/slides/src/views/render/index.ts
+++ b/packages/slides/src/views/render/index.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './canvas-view';
diff --git a/packages/slides/src/views/render/object-provider.ts b/packages/slides/src/views/render/object-provider.ts
index 3f80816031..5927883384 100644
--- a/packages/slides/src/views/render/object-provider.ts
+++ b/packages/slides/src/views/render/object-provider.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 './adaptors';
import type { IPageElement } from '@univerjs/core';
diff --git a/packages/ui/src/BaseComponent.ts b/packages/ui/src/BaseComponent.ts
index f95ff993c0..ba828e8f5f 100644
--- a/packages/ui/src/BaseComponent.ts
+++ b/packages/ui/src/BaseComponent.ts
@@ -1,6 +1,19 @@
/**
- * @deprecated
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 interface BaseComponentProps {
getComponent?: (ref: any) => void; //获取自身组件
id?: string; // 组件id
diff --git a/packages/ui/src/commands/operations/toggle-shortcut-panel.operation.ts b/packages/ui/src/commands/operations/toggle-shortcut-panel.operation.ts
index 01d7af14c2..006c170ba9 100644
--- a/packages/ui/src/commands/operations/toggle-shortcut-panel.operation.ts
+++ b/packages/ui/src/commands/operations/toggle-shortcut-panel.operation.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IOperation } from '@univerjs/core';
import { CommandType } from '@univerjs/core';
import type { IAccessor } from '@wendellhu/redi';
diff --git a/packages/ui/src/common/component-manager.ts b/packages/ui/src/common/component-manager.ts
index ad815797ac..06d0dccceb 100644
--- a/packages/ui/src/common/component-manager.ts
+++ b/packages/ui/src/common/component-manager.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { toDisposable } from '@univerjs/core';
import {
AdjustHeight,
diff --git a/packages/ui/src/common/index.ts b/packages/ui/src/common/index.ts
index d4df12b99c..a58a6e53c5 100644
--- a/packages/ui/src/common/index.ts
+++ b/packages/ui/src/common/index.ts
@@ -1,2 +1,18 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './component-manager';
export * from './z-index-manager';
diff --git a/packages/ui/src/common/lifecycle.ts b/packages/ui/src/common/lifecycle.ts
index 17bdd9f8e0..9c5d26f473 100644
--- a/packages/ui/src/common/lifecycle.ts
+++ b/packages/ui/src/common/lifecycle.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { toDisposable } from '@univerjs/core';
import type { IDisposable } from '@wendellhu/redi';
diff --git a/packages/ui/src/common/z-index-manager.ts b/packages/ui/src/common/z-index-manager.ts
index c4a8fe41d5..7620c448be 100644
--- a/packages/ui/src/common/z-index-manager.ts
+++ b/packages/ui/src/common/z-index-manager.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 class ZIndexManager {
private _list: Map<string, number> = new Map();
diff --git a/packages/ui/src/components/custom-label/CustomLabel.tsx b/packages/ui/src/components/custom-label/CustomLabel.tsx
index 6c2615454f..e507204544 100644
--- a/packages/ui/src/components/custom-label/CustomLabel.tsx
+++ b/packages/ui/src/components/custom-label/CustomLabel.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { TinyColor } from '@ctrl/tinycolor';
import { LocaleService } from '@univerjs/core';
import { useDependency } from '@wendellhu/redi/react-bindings';
diff --git a/packages/ui/src/components/custom-label/index.ts b/packages/ui/src/components/custom-label/index.ts
index 4f5055db8e..90dacd8422 100644
--- a/packages/ui/src/components/custom-label/index.ts
+++ b/packages/ui/src/components/custom-label/index.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './CustomLabel';
diff --git a/packages/ui/src/components/hooks/observable.ts b/packages/ui/src/components/hooks/observable.ts
index 34139bb0f8..ade7a88f0b 100644
--- a/packages/ui/src/components/hooks/observable.ts
+++ b/packages/ui/src/components/hooks/observable.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 React from 'react';
import { useRef, useState } from 'react';
import type { Observable, Subscription } from 'rxjs';
diff --git a/packages/ui/src/components/index.ts b/packages/ui/src/components/index.ts
index 62db8296f8..0c33ac835f 100644
--- a/packages/ui/src/components/index.ts
+++ b/packages/ui/src/components/index.ts
@@ -1,2 +1,18 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './custom-label';
export * from './menu';
diff --git a/packages/ui/src/components/menu/Menu.tsx b/packages/ui/src/components/menu/Menu.tsx
index 933e54c8d3..36caacfb04 100644
--- a/packages/ui/src/components/menu/Menu.tsx
+++ b/packages/ui/src/components/menu/Menu.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { isRealNum } from '@univerjs/core';
import {
Menu as DesignMenu,
diff --git a/packages/ui/src/components/menu/index.ts b/packages/ui/src/components/menu/index.ts
index 629d3d0aa1..d9ebfd5a5f 100644
--- a/packages/ui/src/components/menu/index.ts
+++ b/packages/ui/src/components/menu/index.ts
@@ -1 +1,17 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './Menu';
diff --git a/packages/ui/src/components/notification/Notification.stories.tsx b/packages/ui/src/components/notification/Notification.stories.tsx
index a62a4a6ddd..69e6b865bd 100644
--- a/packages/ui/src/components/notification/Notification.stories.tsx
+++ b/packages/ui/src/components/notification/Notification.stories.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Meta } from '@storybook/react';
import { Button } from '@univerjs/design';
import React from 'react';
diff --git a/packages/ui/src/components/notification/Notification.tsx b/packages/ui/src/components/notification/Notification.tsx
index f3e928b206..04f21c33ec 100644
--- a/packages/ui/src/components/notification/Notification.tsx
+++ b/packages/ui/src/components/notification/Notification.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ConfigContext } from '@univerjs/design';
import { CloseSingle, ErrorSingle, SuccessSingle, WarningSingle } from '@univerjs/icons';
import clsx from 'clsx';
diff --git a/packages/ui/src/controllers/error/error.controller.ts b/packages/ui/src/controllers/error/error.controller.ts
index a7a4c6fae9..e4b3d5705c 100644
--- a/packages/ui/src/controllers/error/error.controller.ts
+++ b/packages/ui/src/controllers/error/error.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Disposable, ErrorService, LifecycleStages, OnLifecycle, toDisposable } from '@univerjs/core';
import { MessageType } from '@univerjs/design';
import { Inject } from '@wendellhu/redi';
diff --git a/packages/ui/src/controllers/menus/menus.ts b/packages/ui/src/controllers/menus/menus.ts
index 33bce02dca..a0cc22d013 100644
--- a/packages/ui/src/controllers/menus/menus.ts
+++ b/packages/ui/src/controllers/menus/menus.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IUndoRedoService, RedoCommand, UndoCommand } from '@univerjs/core';
import type { IAccessor } from '@wendellhu/redi';
import { map } from 'rxjs/operators';
diff --git a/packages/ui/src/controllers/shared-shortcut.controller.ts b/packages/ui/src/controllers/shared-shortcut.controller.ts
index 703e00c3a7..62956a2a63 100644
--- a/packages/ui/src/controllers/shared-shortcut.controller.ts
+++ b/packages/ui/src/controllers/shared-shortcut.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Disposable, ICommandService, LifecycleStages, OnLifecycle, RedoCommand, UndoCommand } from '@univerjs/core';
import { Inject, Injector } from '@wendellhu/redi';
diff --git a/packages/ui/src/controllers/shortcut-display/menu.ts b/packages/ui/src/controllers/shortcut-display/menu.ts
index ff0b1ae0a6..c0f8a6fe8c 100644
--- a/packages/ui/src/controllers/shortcut-display/menu.ts
+++ b/packages/ui/src/controllers/shortcut-display/menu.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ToggleShortcutPanelOperation } from '../../commands/operations/toggle-shortcut-panel.operation';
import type { IMenuButtonItem } from '../../services/menu/menu';
import { MenuItemType, MenuPosition } from '../../services/menu/menu';
diff --git a/packages/ui/src/controllers/shortcut-display/shortcut-panel.controller.ts b/packages/ui/src/controllers/shortcut-display/shortcut-panel.controller.ts
index 67b4d9e9ba..6492e3f7e2 100644
--- a/packages/ui/src/controllers/shortcut-display/shortcut-panel.controller.ts
+++ b/packages/ui/src/controllers/shortcut-display/shortcut-panel.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Disposable, ICommandService, LifecycleStages, OnLifecycle } from '@univerjs/core';
import { Inject } from '@wendellhu/redi';
diff --git a/packages/ui/src/controllers/ui/ui-desktop.controller.tsx b/packages/ui/src/controllers/ui/ui-desktop.controller.tsx
index 59109c261e..cda756a1c5 100644
--- a/packages/ui/src/controllers/ui/ui-desktop.controller.tsx
+++ b/packages/ui/src/controllers/ui/ui-desktop.controller.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Disposable, LifecycleService, LifecycleStages, toDisposable } from '@univerjs/core';
import { IRenderManagerService } from '@univerjs/engine-render';
import type { IDisposable } from '@wendellhu/redi';
diff --git a/packages/ui/src/controllers/ui/ui.controller.ts b/packages/ui/src/controllers/ui/ui.controller.ts
index 51a438051e..0a3119cc37 100644
--- a/packages/ui/src/controllers/ui/ui.controller.ts
+++ b/packages/ui/src/controllers/ui/ui.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { createIdentifier } from '@wendellhu/redi';
export interface IWorkbenchOptions {
diff --git a/packages/ui/src/index.ts b/packages/ui/src/index.ts
index 9bb010b3c2..076659ee0f 100644
--- a/packages/ui/src/index.ts
+++ b/packages/ui/src/index.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './BaseComponent';
export * from './common';
export * from './components';
diff --git a/packages/ui/src/locale/en-US.ts b/packages/ui/src/locale/en-US.ts
index ea496335ba..c4ed639a78 100644
--- a/packages/ui/src/locale/en-US.ts
+++ b/packages/ui/src/locale/en-US.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {
uiToolbar: {
start: 'Start',
diff --git a/packages/ui/src/locale/index.ts b/packages/ui/src/locale/index.ts
index b0b1d48d5d..ac8ca08af1 100644
--- a/packages/ui/src/locale/index.ts
+++ b/packages/ui/src/locale/index.ts
@@ -1,2 +1,18 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 enUS } from './en-US';
export { default as zhCN } from './zh-CN';
diff --git a/packages/ui/src/locale/zh-CN.ts b/packages/ui/src/locale/zh-CN.ts
index 65871b15e0..ee2ae81849 100644
--- a/packages/ui/src/locale/zh-CN.ts
+++ b/packages/ui/src/locale/zh-CN.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {
uiToolbar: {
start: '开始',
diff --git a/packages/ui/src/services/before-close/before-close.service.ts b/packages/ui/src/services/before-close/before-close.service.ts
index 6b2dc5fe92..1b53052bab 100644
--- a/packages/ui/src/services/before-close/before-close.service.ts
+++ b/packages/ui/src/services/before-close/before-close.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IDisposable } from '@wendellhu/redi';
import { createIdentifier } from '@wendellhu/redi';
diff --git a/packages/ui/src/services/clipboard/clipboard-interface.service.ts b/packages/ui/src/services/clipboard/clipboard-interface.service.ts
index 80cec77ceb..b66d8376c1 100644
--- a/packages/ui/src/services/clipboard/clipboard-interface.service.ts
+++ b/packages/ui/src/services/clipboard/clipboard-interface.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Disposable } from '@univerjs/core';
import { createIdentifier } from '@wendellhu/redi';
diff --git a/packages/ui/src/services/clipboard/clipboard.command.ts b/packages/ui/src/services/clipboard/clipboard.command.ts
index 636e6a7b59..b05be849d7 100644
--- a/packages/ui/src/services/clipboard/clipboard.command.ts
+++ b/packages/ui/src/services/clipboard/clipboard.command.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IMultiCommand } from '@univerjs/core';
import { CommandType } from '@univerjs/core';
diff --git a/packages/ui/src/services/confirm/confirm.service.ts b/packages/ui/src/services/confirm/confirm.service.ts
index 35761f816b..4ca2cce834 100644
--- a/packages/ui/src/services/confirm/confirm.service.ts
+++ b/packages/ui/src/services/confirm/confirm.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IDisposable } from '@wendellhu/redi';
import { createIdentifier } from '@wendellhu/redi';
import { type Subject } from 'rxjs';
diff --git a/packages/ui/src/services/confirm/desktop-confirm.service.ts b/packages/ui/src/services/confirm/desktop-confirm.service.ts
index 4f0f03a4bc..b5523891d3 100644
--- a/packages/ui/src/services/confirm/desktop-confirm.service.ts
+++ b/packages/ui/src/services/confirm/desktop-confirm.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { toDisposable } from '@univerjs/core';
import type { IDisposable } from '@wendellhu/redi';
import { Subject } from 'rxjs';
diff --git a/packages/ui/src/services/contextmenu/contextmenu.service.ts b/packages/ui/src/services/contextmenu/contextmenu.service.ts
index 55bf784e49..bde9de78d8 100644
--- a/packages/ui/src/services/contextmenu/contextmenu.service.ts
+++ b/packages/ui/src/services/contextmenu/contextmenu.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Disposable, toDisposable } from '@univerjs/core';
import type { IMouseEvent, IPointerEvent } from '@univerjs/engine-render';
import type { IDisposable } from '@wendellhu/redi';
diff --git a/packages/ui/src/services/dialog/desktop-dialog.service.ts b/packages/ui/src/services/dialog/desktop-dialog.service.ts
index 2637d20989..923e25ee9b 100644
--- a/packages/ui/src/services/dialog/desktop-dialog.service.ts
+++ b/packages/ui/src/services/dialog/desktop-dialog.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { toDisposable } from '@univerjs/core';
import type { IDisposable } from '@wendellhu/redi';
import { Subject } from 'rxjs';
diff --git a/packages/ui/src/services/dialog/dialog.service.ts b/packages/ui/src/services/dialog/dialog.service.ts
index 0ad5258418..dec1a9cd92 100644
--- a/packages/ui/src/services/dialog/dialog.service.ts
+++ b/packages/ui/src/services/dialog/dialog.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IDisposable } from '@wendellhu/redi';
import { createIdentifier } from '@wendellhu/redi';
import { type Subject } from 'rxjs';
diff --git a/packages/ui/src/services/focus/focus.service.ts b/packages/ui/src/services/focus/focus.service.ts
index f6150ab22e..8214663169 100644
--- a/packages/ui/src/services/focus/focus.service.ts
+++ b/packages/ui/src/services/focus/focus.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ContextService } from '@univerjs/core';
import { Disposable, IContextService, LifecycleStages, OnLifecycle, toDisposable } from '@univerjs/core';
import { createIdentifier } from '@wendellhu/redi';
diff --git a/packages/ui/src/services/local-storage/local-storage.service.ts b/packages/ui/src/services/local-storage/local-storage.service.ts
index 71598cd640..4bf9cd9921 100644
--- a/packages/ui/src/services/local-storage/local-storage.service.ts
+++ b/packages/ui/src/services/local-storage/local-storage.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ILocalStorageService } from '@univerjs/core';
import localforage from 'localforage';
diff --git a/packages/ui/src/services/menu/menu.service.ts b/packages/ui/src/services/menu/menu.service.ts
index d20f8c4496..754933e499 100644
--- a/packages/ui/src/services/menu/menu.service.ts
+++ b/packages/ui/src/services/menu/menu.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Disposable, toDisposable } from '@univerjs/core';
import type { IDisposable } from '@wendellhu/redi';
import { createIdentifier } from '@wendellhu/redi';
diff --git a/packages/ui/src/services/menu/menu.ts b/packages/ui/src/services/menu/menu.ts
index e5cd156894..c437feecff 100644
--- a/packages/ui/src/services/menu/menu.ts
+++ b/packages/ui/src/services/menu/menu.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IAccessor } from '@wendellhu/redi';
import type { Observable } from 'rxjs';
diff --git a/packages/ui/src/services/message/desktop-message.service.ts b/packages/ui/src/services/message/desktop-message.service.ts
index e9c68f3ae7..af061b22ab 100644
--- a/packages/ui/src/services/message/desktop-message.service.ts
+++ b/packages/ui/src/services/message/desktop-message.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { toDisposable } from '@univerjs/core';
import type { IMessageMethodOptions, IMessageProps } from '@univerjs/design';
import { Message } from '@univerjs/design';
diff --git a/packages/ui/src/services/message/message.service.ts b/packages/ui/src/services/message/message.service.ts
index b37de22943..0d869b3bbf 100644
--- a/packages/ui/src/services/message/message.service.ts
+++ b/packages/ui/src/services/message/message.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IMessageMethodOptions, IMessageProps } from '@univerjs/design';
import type { IDisposable } from '@wendellhu/redi';
import { createIdentifier } from '@wendellhu/redi';
diff --git a/packages/ui/src/services/notification/desktop-notification.service.ts b/packages/ui/src/services/notification/desktop-notification.service.ts
index 07f447fa29..6dd1344d2d 100644
--- a/packages/ui/src/services/notification/desktop-notification.service.ts
+++ b/packages/ui/src/services/notification/desktop-notification.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { toDisposable } from '@univerjs/core';
import type { IDisposable } from '@wendellhu/redi';
diff --git a/packages/ui/src/services/notification/notification.service.ts b/packages/ui/src/services/notification/notification.service.ts
index d2f7693eab..65ae7b5171 100644
--- a/packages/ui/src/services/notification/notification.service.ts
+++ b/packages/ui/src/services/notification/notification.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IDisposable } from '@wendellhu/redi';
import { createIdentifier } from '@wendellhu/redi';
diff --git a/packages/ui/src/services/platform/platform.service.ts b/packages/ui/src/services/platform/platform.service.ts
index d95eda9aeb..3f9b3f8c96 100644
--- a/packages/ui/src/services/platform/platform.service.ts
+++ b/packages/ui/src/services/platform/platform.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { createIdentifier } from '@wendellhu/redi';
/**
diff --git a/packages/ui/src/services/shortcut/keycode.ts b/packages/ui/src/services/shortcut/keycode.ts
index a363f8ed76..2c5033714b 100644
--- a/packages/ui/src/services/shortcut/keycode.ts
+++ b/packages/ui/src/services/shortcut/keycode.ts
@@ -1,4 +1,19 @@
-/* eslint-disable no-magic-numbers */
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
// Useful keyboard event inspection tool https://www.toptal.com/developers/keycode
export const KeyCodeToChar: { [key: number]: string } = {
diff --git a/packages/ui/src/services/shortcut/shortcut-experience.service.ts b/packages/ui/src/services/shortcut/shortcut-experience.service.ts
index c9e0364c48..4515ebac6a 100644
--- a/packages/ui/src/services/shortcut/shortcut-experience.service.ts
+++ b/packages/ui/src/services/shortcut/shortcut-experience.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ISelection, ITextRangeParam, Nullable } from '@univerjs/core';
import { IUniverInstanceService, LocaleService } from '@univerjs/core';
import type { IDisposable } from '@wendellhu/redi';
diff --git a/packages/ui/src/services/shortcut/shortcut-panel.service.ts b/packages/ui/src/services/shortcut/shortcut-panel.service.ts
index 2a028627ef..00578ba2bd 100644
--- a/packages/ui/src/services/shortcut/shortcut-panel.service.ts
+++ b/packages/ui/src/services/shortcut/shortcut-panel.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Disposable } from '@univerjs/core';
import { BehaviorSubject, distinctUntilChanged } from 'rxjs';
diff --git a/packages/ui/src/services/shortcut/shortcut.service.ts b/packages/ui/src/services/shortcut/shortcut.service.ts
index 49dddfe281..3e4c539f58 100644
--- a/packages/ui/src/services/shortcut/shortcut.service.ts
+++ b/packages/ui/src/services/shortcut/shortcut.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Disposable, ICommandService, IContextService, toDisposable } from '@univerjs/core';
import type { IDisposable } from '@wendellhu/redi';
import { createIdentifier } from '@wendellhu/redi';
diff --git a/packages/ui/src/services/sidebar/desktop-sidebar.service.ts b/packages/ui/src/services/sidebar/desktop-sidebar.service.ts
index a912a48dfa..19dd3d0c4d 100644
--- a/packages/ui/src/services/sidebar/desktop-sidebar.service.ts
+++ b/packages/ui/src/services/sidebar/desktop-sidebar.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { toDisposable } from '@univerjs/core';
import type { IDisposable } from '@wendellhu/redi';
import { Subject } from 'rxjs';
diff --git a/packages/ui/src/services/sidebar/sidebar.service.ts b/packages/ui/src/services/sidebar/sidebar.service.ts
index e2968cca2d..08318b99ae 100644
--- a/packages/ui/src/services/sidebar/sidebar.service.ts
+++ b/packages/ui/src/services/sidebar/sidebar.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IDisposable } from '@wendellhu/redi';
import { createIdentifier } from '@wendellhu/redi';
import type { Subject } from 'rxjs';
diff --git a/packages/ui/src/ui-plugin.ts b/packages/ui/src/ui-plugin.ts
index 7f97b790b7..93d63a8818 100644
--- a/packages/ui/src/ui-plugin.ts
+++ b/packages/ui/src/ui-plugin.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ILocalStorageService, LocaleService, Plugin, PluginType } from '@univerjs/core';
import type { Dependency } from '@wendellhu/redi';
import { Inject, Injector } from '@wendellhu/redi';
diff --git a/packages/ui/src/utils/cell.ts b/packages/ui/src/utils/cell.ts
index 266fa3fc1b..71a8602683 100644
--- a/packages/ui/src/utils/cell.ts
+++ b/packages/ui/src/utils/cell.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {
IBorderData,
ICellData,
diff --git a/packages/ui/src/utils/index.ts b/packages/ui/src/utils/index.ts
index cd5f681250..6b52071ad0 100644
--- a/packages/ui/src/utils/index.ts
+++ b/packages/ui/src/utils/index.ts
@@ -1,2 +1,18 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 * from './cell';
export * from './util';
diff --git a/packages/ui/src/utils/util.ts b/packages/ui/src/utils/util.ts
index 5b25391365..7a9ac7df4d 100644
--- a/packages/ui/src/utils/util.ts
+++ b/packages/ui/src/utils/util.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 function textTrim(x: string): string {
if (x.length === 0) {
// if (x == null || x.length == 0) {
diff --git a/packages/ui/src/views/App.tsx b/packages/ui/src/views/App.tsx
index 9e14fe3f46..73829baf51 100644
--- a/packages/ui/src/views/App.tsx
+++ b/packages/ui/src/views/App.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { LocaleService, ThemeService } from '@univerjs/core';
import type { ILocale } from '@univerjs/design';
import { ConfigProvider, defaultTheme, themeInstance } from '@univerjs/design';
diff --git a/packages/ui/src/views/components/ComponentContainer.tsx b/packages/ui/src/views/components/ComponentContainer.tsx
index dde97eab33..fa6baa4438 100644
--- a/packages/ui/src/views/components/ComponentContainer.tsx
+++ b/packages/ui/src/views/components/ComponentContainer.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ComponentType } from 'react';
import React from 'react';
diff --git a/packages/ui/src/views/components/confirm-part/ConfirmPart.tsx b/packages/ui/src/views/components/confirm-part/ConfirmPart.tsx
index 4bdad2c9e8..a9ad98af8b 100644
--- a/packages/ui/src/views/components/confirm-part/ConfirmPart.tsx
+++ b/packages/ui/src/views/components/confirm-part/ConfirmPart.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IConfirmProps } from '@univerjs/design';
import { Confirm } from '@univerjs/design';
import { useDependency } from '@wendellhu/redi/react-bindings';
diff --git a/packages/ui/src/views/components/confirm-part/interface.ts b/packages/ui/src/views/components/confirm-part/interface.ts
index 7a25defaff..659d52aa72 100644
--- a/packages/ui/src/views/components/confirm-part/interface.ts
+++ b/packages/ui/src/views/components/confirm-part/interface.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IConfirmProps } from '@univerjs/design';
import { type ICustomLabelProps } from '../../../components/custom-label/CustomLabel';
diff --git a/packages/ui/src/views/components/context-menu/ContextMenu.tsx b/packages/ui/src/views/components/context-menu/ContextMenu.tsx
index 6c8b7d78bb..3db7132847 100644
--- a/packages/ui/src/views/components/context-menu/ContextMenu.tsx
+++ b/packages/ui/src/views/components/context-menu/ContextMenu.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommandService } from '@univerjs/core';
import { Popup } from '@univerjs/design';
import type { IMouseEvent } from '@univerjs/engine-render';
diff --git a/packages/ui/src/views/components/dialog-part/DialogPart.tsx b/packages/ui/src/views/components/dialog-part/DialogPart.tsx
index 41e522d2c9..bb0f55989e 100644
--- a/packages/ui/src/views/components/dialog-part/DialogPart.tsx
+++ b/packages/ui/src/views/components/dialog-part/DialogPart.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IDialogProps } from '@univerjs/design';
import { Dialog } from '@univerjs/design';
import { useDependency } from '@wendellhu/redi/react-bindings';
diff --git a/packages/ui/src/views/components/dialog-part/interface.ts b/packages/ui/src/views/components/dialog-part/interface.ts
index 9cf8479aa6..6f159a27e3 100644
--- a/packages/ui/src/views/components/dialog-part/interface.ts
+++ b/packages/ui/src/views/components/dialog-part/interface.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IDialogProps } from '@univerjs/design';
import { type ICustomLabelProps } from '../../../components/custom-label/CustomLabel';
diff --git a/packages/ui/src/views/components/doc-bars/Button/ToolbarButton.tsx b/packages/ui/src/views/components/doc-bars/Button/ToolbarButton.tsx
index 4f872d6f09..a542737b62 100644
--- a/packages/ui/src/views/components/doc-bars/Button/ToolbarButton.tsx
+++ b/packages/ui/src/views/components/doc-bars/Button/ToolbarButton.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 clsx from 'clsx';
import React from 'react';
diff --git a/packages/ui/src/views/components/doc-bars/MenuBar.tsx b/packages/ui/src/views/components/doc-bars/MenuBar.tsx
index 244388dcc6..39c325544f 100644
--- a/packages/ui/src/views/components/doc-bars/MenuBar.tsx
+++ b/packages/ui/src/views/components/doc-bars/MenuBar.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { LocaleService } from '@univerjs/core';
import { useDependency } from '@wendellhu/redi/react-bindings';
import clsx from 'clsx';
diff --git a/packages/ui/src/views/components/doc-bars/Toolbar.tsx b/packages/ui/src/views/components/doc-bars/Toolbar.tsx
index b2fb19a8f4..6a84841777 100644
--- a/packages/ui/src/views/components/doc-bars/Toolbar.tsx
+++ b/packages/ui/src/views/components/doc-bars/Toolbar.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { useDependency } from '@wendellhu/redi/react-bindings';
import React, { useEffect, useState } from 'react';
diff --git a/packages/ui/src/views/components/doc-bars/ToolbarItem.tsx b/packages/ui/src/views/components/doc-bars/ToolbarItem.tsx
index c120a2eb0e..11701ac933 100644
--- a/packages/ui/src/views/components/doc-bars/ToolbarItem.tsx
+++ b/packages/ui/src/views/components/doc-bars/ToolbarItem.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICommandService, LocaleService } from '@univerjs/core';
import { Dropdown, Tooltip } from '@univerjs/design';
import { MoreDownSingle } from '@univerjs/icons';
diff --git a/packages/ui/src/views/components/doc-bars/hooks/menu.ts b/packages/ui/src/views/components/doc-bars/hooks/menu.ts
index 71d13732bf..df1b712a4a 100644
--- a/packages/ui/src/views/components/doc-bars/hooks/menu.ts
+++ b/packages/ui/src/views/components/doc-bars/hooks/menu.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { BehaviorSubject } from 'rxjs';
import type { IDisplayMenuItem, IMenuItem } from '../../../../services/menu/menu';
diff --git a/packages/ui/src/views/components/shortcut-panel/ShortcutPanel.tsx b/packages/ui/src/views/components/shortcut-panel/ShortcutPanel.tsx
index fe197739c8..eced5522cb 100644
--- a/packages/ui/src/views/components/shortcut-panel/ShortcutPanel.tsx
+++ b/packages/ui/src/views/components/shortcut-panel/ShortcutPanel.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { LocaleService } from '@univerjs/core';
import { useDependency } from '@wendellhu/redi/react-bindings';
import React, { useCallback, useEffect } from 'react';
diff --git a/packages/ui/src/views/components/sidebar/Sidebar.tsx b/packages/ui/src/views/components/sidebar/Sidebar.tsx
index a685785366..c26c954c96 100644
--- a/packages/ui/src/views/components/sidebar/Sidebar.tsx
+++ b/packages/ui/src/views/components/sidebar/Sidebar.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { CloseSingle } from '@univerjs/icons';
import { useDependency } from '@wendellhu/redi/react-bindings';
import clsx from 'clsx';
diff --git a/packages/ui/src/views/components/sidebar/interface.ts b/packages/ui/src/views/components/sidebar/interface.ts
index b0eba83789..3858155007 100644
--- a/packages/ui/src/views/components/sidebar/interface.ts
+++ b/packages/ui/src/views/components/sidebar/interface.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 ICustomLabelProps } from '../../../components/custom-label/CustomLabel';
export interface ISidebarMethodOptions {
diff --git a/packages/ui/src/views/parts.ts b/packages/ui/src/views/parts.ts
index 037723e4a3..1f69f438a2 100644
--- a/packages/ui/src/views/parts.ts
+++ b/packages/ui/src/views/parts.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ComponentType } from 'react';
import { Notification } from '../components/notification/Notification';
diff --git a/packages/uniscript/src/commands/operations/panel.operation.ts b/packages/uniscript/src/commands/operations/panel.operation.ts
index 3323f07ddc..4f3da24de6 100644
--- a/packages/uniscript/src/commands/operations/panel.operation.ts
+++ b/packages/uniscript/src/commands/operations/panel.operation.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IOperation } from '@univerjs/core';
import { CommandType } from '@univerjs/core';
import { ISidebarService } from '@univerjs/ui';
diff --git a/packages/uniscript/src/controllers/menu.ts b/packages/uniscript/src/controllers/menu.ts
index f23748dd6f..55efefa61a 100644
--- a/packages/uniscript/src/controllers/menu.ts
+++ b/packages/uniscript/src/controllers/menu.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IMenuButtonItem } from '@univerjs/ui';
import { MenuItemType, MenuPosition } from '@univerjs/ui';
diff --git a/packages/uniscript/src/controllers/uniscript.controller.ts b/packages/uniscript/src/controllers/uniscript.controller.ts
index 44f95a7722..3f86f49ef9 100644
--- a/packages/uniscript/src/controllers/uniscript.controller.ts
+++ b/packages/uniscript/src/controllers/uniscript.controller.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Disposable, ICommandService, LifecycleStages, OnLifecycle } from '@univerjs/core';
import { ComponentManager, IMenuService } from '@univerjs/ui';
import { Inject } from '@wendellhu/redi';
diff --git a/packages/uniscript/src/facade/facade.ts b/packages/uniscript/src/facade/facade.ts
index 4ca7139975..0ea5353278 100644
--- a/packages/uniscript/src/facade/facade.ts
+++ b/packages/uniscript/src/facade/facade.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IUniverInstanceService } from '@univerjs/core';
import { Inject, Injector } from '@wendellhu/redi';
diff --git a/packages/uniscript/src/facade/sheet/f-range.ts b/packages/uniscript/src/facade/sheet/f-range.ts
index 168f4e1383..bf57af181e 100644
--- a/packages/uniscript/src/facade/sheet/f-range.ts
+++ b/packages/uniscript/src/facade/sheet/f-range.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { ICellV, IColorStyle, IRange, Workbook, Worksheet } from '@univerjs/core';
import { ICommandService } from '@univerjs/core';
import type { ISetStyleCommandParams } from '@univerjs/sheets';
diff --git a/packages/uniscript/src/facade/sheet/f-selection.ts b/packages/uniscript/src/facade/sheet/f-selection.ts
index eae3e66e31..6ebef1da68 100644
--- a/packages/uniscript/src/facade/sheet/f-selection.ts
+++ b/packages/uniscript/src/facade/sheet/f-selection.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Workbook, Worksheet } from '@univerjs/core';
import type { ISelectionWithStyle } from '@univerjs/sheets';
import { Inject, Injector } from '@wendellhu/redi';
diff --git a/packages/uniscript/src/facade/sheet/f-workbook.ts b/packages/uniscript/src/facade/sheet/f-workbook.ts
index 0dd1645109..4a3e16d6b0 100644
--- a/packages/uniscript/src/facade/sheet/f-workbook.ts
+++ b/packages/uniscript/src/facade/sheet/f-workbook.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Workbook } from '@univerjs/core';
import { Inject, Injector } from '@wendellhu/redi';
diff --git a/packages/uniscript/src/facade/sheet/f-worksheet.ts b/packages/uniscript/src/facade/sheet/f-worksheet.ts
index bde1071b2f..120d072e69 100644
--- a/packages/uniscript/src/facade/sheet/f-worksheet.ts
+++ b/packages/uniscript/src/facade/sheet/f-worksheet.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { IRange, Workbook, Worksheet } from '@univerjs/core';
import { SelectionManagerService } from '@univerjs/sheets';
import { Inject, Injector } from '@wendellhu/redi';
diff --git a/packages/uniscript/src/index.ts b/packages/uniscript/src/index.ts
index 017417f26e..ad6c88fd10 100644
--- a/packages/uniscript/src/index.ts
+++ b/packages/uniscript/src/index.ts
@@ -1,2 +1,18 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { enUS, zhCN } from './locale';
export { type IUniscriptConfig, UniverUniscript } from './plugin';
diff --git a/packages/uniscript/src/locale/en-US.ts b/packages/uniscript/src/locale/en-US.ts
index 2e3e495243..2848db5910 100644
--- a/packages/uniscript/src/locale/en-US.ts
+++ b/packages/uniscript/src/locale/en-US.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {
'script-panel': {
title: 'Uniscript',
diff --git a/packages/uniscript/src/locale/index.ts b/packages/uniscript/src/locale/index.ts
index b0b1d48d5d..ac8ca08af1 100644
--- a/packages/uniscript/src/locale/index.ts
+++ b/packages/uniscript/src/locale/index.ts
@@ -1,2 +1,18 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 enUS } from './en-US';
export { default as zhCN } from './zh-CN';
diff --git a/packages/uniscript/src/locale/zh-CN.ts b/packages/uniscript/src/locale/zh-CN.ts
index 5fe2f12573..07e0373a7f 100644
--- a/packages/uniscript/src/locale/zh-CN.ts
+++ b/packages/uniscript/src/locale/zh-CN.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 {
'script-panel': {
title: 'Uniscript',
diff --git a/packages/uniscript/src/models/model.ts b/packages/uniscript/src/models/model.ts
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/packages/uniscript/src/plugin.ts b/packages/uniscript/src/plugin.ts
index 188f3fc1ac..b74ecf4229 100644
--- a/packages/uniscript/src/plugin.ts
+++ b/packages/uniscript/src/plugin.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { LocaleService, Plugin, PluginType } from '@univerjs/core';
import type { Dependency } from '@wendellhu/redi';
import { Inject, Injector } from '@wendellhu/redi';
diff --git a/packages/uniscript/src/services/command/batch-command.service.ts b/packages/uniscript/src/services/command/batch-command.service.ts
index dcc385dac7..6106a60553 100644
--- a/packages/uniscript/src/services/command/batch-command.service.ts
+++ b/packages/uniscript/src/services/command/batch-command.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { CommandListener, ICommand, ICommandService, IExecutionOptions } from '@univerjs/core';
import type { IDisposable } from '@wendellhu/redi';
diff --git a/packages/uniscript/src/services/script-editor.service.ts b/packages/uniscript/src/services/script-editor.service.ts
index d93560b44c..22e1086448 100644
--- a/packages/uniscript/src/services/script-editor.service.ts
+++ b/packages/uniscript/src/services/script-editor.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Disposable } from '@univerjs/core';
export interface IScriptEditorServiceConfig {
diff --git a/packages/uniscript/src/services/script-execution.service.ts b/packages/uniscript/src/services/script-execution.service.ts
index d5fda82c6f..7f344cfe99 100644
--- a/packages/uniscript/src/services/script-execution.service.ts
+++ b/packages/uniscript/src/services/script-execution.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Disposable, ILogService } from '@univerjs/core';
import { Inject, Injector } from '@wendellhu/redi';
diff --git a/packages/uniscript/src/services/script-panel.service.ts b/packages/uniscript/src/services/script-panel.service.ts
index c56ecaed5e..92be01612f 100644
--- a/packages/uniscript/src/services/script-panel.service.ts
+++ b/packages/uniscript/src/services/script-panel.service.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Disposable } from '@univerjs/core';
import { BehaviorSubject, distinctUntilChanged } from 'rxjs';
diff --git a/packages/uniscript/src/views/components/ScriptEditorPanel.tsx b/packages/uniscript/src/views/components/ScriptEditorPanel.tsx
index ab198f8d94..ff252a1f4a 100644
--- a/packages/uniscript/src/views/components/ScriptEditorPanel.tsx
+++ b/packages/uniscript/src/views/components/ScriptEditorPanel.tsx
@@ -1,3 +1,19 @@
+/**
+ * Copyright 2023 DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 { Nullable } from '@univerjs/core';
import { DisposableCollection, LocaleService, toDisposable } from '@univerjs/core';
import { Button, MessageType } from '@univerjs/design';
diff --git a/packages/uniscript/src/views/parts/render.part.ts b/packages/uniscript/src/views/parts/render.part.ts
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index afdd9e896b..fac653725e 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -77,6 +77,9 @@ importers:
eslint-import-resolver-typescript:
specifier: ^3.6.1
version: 3.6.1(@typescript-eslint/[email protected])([email protected])([email protected])
+ eslint-plugin-header:
+ specifier: ~3.1.1
+ version: 3.1.1([email protected])
eslint-plugin-import-newlines:
specifier: ^1.3.4
version: 1.3.4([email protected])
@@ -10744,6 +10747,14 @@ packages:
- supports-color
dev: true
+ resolution: {integrity: sha512-9vlKxuJ4qf793CmeeSrZUvVClw6amtpghq3CuWcB5cUNnWHQhgcqy5eF8oVKFk1G3Y/CbchGfEaw3wiIJaNmVg==}
+ peerDependencies:
+ eslint: '>=7.7.0'
+ dependencies:
+ eslint: 8.55.0
+ dev: true
+
resolution: {integrity: sha512-Lmf/BbK+EQKUfjKPcZpslE/KTGYlgaI8ZJ/sYzdbb3BVTg5+GmLBLHBjsUKNEVRM1SEhDTF/didtOSYKi4tSnQ==}
engines: {node: '>=10.0.0'}