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.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
docs: adjust folder structure (#602)
Wenzhao Hud355cd0edbbc
diff --git a/README-zh.md b/README-zh.mdindex 5ee33e58a5..d872eb64ba 100644--- a/README-zh.md+++ b/README-zh.md@@ -10,7 +10,7 @@ Univer 是一个开源的协作解决方案,旨在将协作能力赋能所有我们在本仓库中提供了 Univer 前端代码,一套基于 Canvas 的框架,用于构建文档、电子表格和幻灯片。-> ⚠️ 该项目仍在开发中,仅用于测试和学习,请勿用于生产+> ⚠️ 该项目仍在开发中## Demo@@ -20,8 +20,8 @@ Univer 是一个开源的协作解决方案,旨在将协作能力赋能所有### 环境-- [node.js](https://nodejs.org) version 16.20.0-- [pnpm](https://pnpm.io) version 8.6.2+- [node.js](https://nodejs.org) version 16.20.0+- [pnpm](https://pnpm.io) version 8.6.2### 安装@@ -93,214 +93,3 @@ Univer sheet, document, slide 采用同一套渲染引擎架构,把应用抽Univer 自研公式引擎,支持异步计算, lambda 函数及范围命名-<!---## 开发计划--### Sheets--> 第一期目标与[luckysheet2.0 版本功能对齐](https://dream-num.github.io/LuckysheetDocs/guide/#features)--#### 🛠️ 格式设置--- **样式** `done`-- **条件格式** `2023Q1`-- **文本对齐及旋转** `done`-- **支持文本的截断、溢出、自动换行** `done`-- **数据类型** `done`-- **单元格内多样式** `done`--#### 🧬 单元格--- **拖拽选取来修改单元格** `done`-- **选区下拉填充** `2023Q1`-- **自动填充选项** `2023Q1`-- **多选区操作** `2023Q1`-- **查找和替换** `2023Q2`-- **定位** `2023Q4`-- **合并单元格** `done`-- **数据验证(表单功能)** `2023Q2`--#### 🖱️ 行和列操作--- **隐藏,插入,删除行或列** `2023Q1`-- **冻结行或列** `2023Q1`-- **文本分列** `2023Q4`--#### 🔨 操作体验--- **撤销/重做** `2023Q1`-- **复制/粘贴/剪切操作** `2023Q1`-- **快捷键支持** `2023Q2`-- **格式刷** `2023Q4`-- **任意选区拖拽** `2023Q1`--#### ⚙️ 公式和函数--- **公式引擎(支持数组函数、命名、lambda)** `done`-- **内置公式** `2023Q1 - 2023Q4 按照使用频率补齐`-- **远程公式** `2023Q4`-- **自定义公式** `2023Q4`--#### 📐 表格操作--- **筛选** `2023Q2`-- **排序** `2023Q2`--#### 📈 数据透视表--- **字段拖拽** `2023Q3`-- **聚合方式** `2023Q3`-- **筛选数据** `2023Q4`-- **数据透视表下钻** `2023Q4`-- **根据数据透视表新建图表** `2023Q4`--#### 📊 图表 2023H2--- **基础 6 种图表类型** `2023Q4 - 2024Q2`-- **进阶图表类型** `2024Q4`-- **SparkLines 小图** `2024Q2`--#### ✍️ 分享及协作--- **评论** `2023Q3`-- **协同编辑** `2023Q3`--#### 📚 插入对象--- **插入图片** `2023Q3`--#### ⚡ 其他--- **矩阵计算** `2023Q4`-- **截图** `2023Q4`-- **复制到其他格式** `2023Q3`-- **EXCEL 导入及导出** `2023Q1 - 2023Q4 逐渐增强兼容性`--> ⏱️ 后续目标--- **打印及设置** (像 excel 一样进行打印设置,并导出为图片或者 PDF) `2024Q2`-- **树形菜单** (类似 excel 中的分级显示(分组)) `2024Q1`-- **表格新功能** (类似 excel 中表格的筛选器和切片器) `2024Q1`-- **CSV,TXT 导入及导出** (专为 Luckysheet 打造的导入导出插件,支持密码、水印、公式等的本地导入导出) `2024Q1`-- **插入 svg 形状** (支持[Pen tool](https://github.com/mengshukeji/Pentool)的插入、修改和删除,并且随表格的变动而产生变化) `2023Q2`--### Docs--#### 💌 编辑--- **添加和编辑文本** `2023Q1`-- **查找和替换文本** `2023Q4`-- **检查语法、拼写等** `2024Q2`-- **显示字数统计** `2023Q1`-- **插入和删除超链接** `2023Q2`--#### 🛀 文本格式--- **设置文本格式** `2023Q1`-- **创建项目符号列表或编号列表** `2023Q1`-- **更改行距** `2023Q1`-- **样式** `2023Q1`-- **主题** `2024Q1`--#### 🗺️ 页面布局--- **更改页边距** `2023Q1`-- **分栏** `2023Q1`-- **横向或纵向页面** `2023Q2`-- **页面边框** `2023Q4`-- **页眉或页脚** `2023Q2`-- **页码** `2023Q2`-- **分页符** `2023Q2`-- **目录** `2024Q2`--#### 🧭 插入表格、图片和水印--- **表格** `2023Q2`-- **图片** `2023Q1`-- **图标** `2023Q3`-- **艺术字** `2024Q3`-- **水印** `2023Q2`-- **标尺** `2023Q3`-- **旋转图片或形状** `2023Q1`-- **图文混排** `2023Q1`--#### 🛎️ 学术格式--- **编写方程式或公式** `2024Q2`-- **段落首行缩进** `2023Q1`-- **双倍行距** `2023Q1`--#### 🧳 编辑、打印、协作--- **转换或保存为 PDF** `2024Q4`-- **编辑 PDF** `2024Q4`-- **打印文档** `2024Q4`-- **协同编辑** `2023Q4`-- **批注** `2023Q4`-- **移动端** `2024Q4`--#### 🕰️ 其他--- **插入 Sheet** `2023Q2`-- **插入 slide** `2023Q2`-- **导入/导出 word 格式** `2023Q4 - 2024Q4 Gradually enhance compatibility`--### Slides--#### 📻 幻灯片和版式--- **幻灯片母版** `2023Q3`-- **幻灯片版式** `2023Q3`-- **通过主题为幻灯片添加颜色和设计** `2023Q4`-- **横向和纵向页面** `2023Q4`-- **幻灯片组织成节** `2023Q4`-- **创建、合并和组合幻灯片上的对象** `2023Q2`-- **旋转或翻转对象** `2023Q2`-- **叠放顺序** `2023Q2`--#### 📱 文本、表格--- **艺术字** `2024Q3`-- **超链接** `2023Q3`-- **拼写检查** `2024Q4`-- **表格** `2023Q2`-- **幻灯片编号、页码或日期和时间** `2023Q4`-- **形状或文本框中的文本方向和位置** `2023Q3`--#### 📀 图片、形状、图表--- **图片插入** `2023Q1`-- **图片编辑** `2024Q2`-- **SmartArt** `2024Q2`-- **背景图片** `2023Q2`-- **图表** `2023Q4 - 2024Q2`-- **形状** `2023Q2`-- **图标** `2023Q2`--#### 🧮 幻灯片放映--- **演示模式** `2023Q2`-- **演讲者备注** `2023Q4`-- **排练和计时** `2024Q4`-- **录制** `2024Q4`-- **打印** `2024Q4`-- **自动放映** `2024Q4`--#### 📒 动画、视频和音频--- **切换效果** `2024Q2`-- **文本和对象动画** `2024Q1`-- **补间切换** `2024Q4`-- **视频** `2023Q4`-- **音频** `2023Q4`-- **录制屏幕** `2024Q4`--#### 📫 其他--- **协同编辑** `2023Q4`-- **转换为视频** `2024Q4`-- **保存为 PDF** `2024Q4`-- **导入/导出为 PPT** `2023Q4`-- **移动端** `2023Q4`-- **插入 Sheets** `2023Q2`-- **插入 documents** `2023Q2` -->diff --git a/README.md b/README.mdindex 88e3cebdeb..2f1f2a2c11 100644--- a/README.md+++ b/README.md@@ -20,20 +20,20 @@ We provide JavaScript part of code in the repository, including a canvas-based f| Name | Description | Version || :-------------------------------------------------------------- | :---------- | :----------------------------------------------------------------------------------------------------------- |-| [base-doc](./packages/base-doc) | - | [](https://badge.fury.io/js/@univerjs%2Fbase-doc) |-| [base-formula-engine](./packages/base-formula-engine) | - | [](https://badge.fury.io/js/@univerjs%2Fbase-formula-engine) |-| [base-numfmt-engine](./packages/base-numfmt-engine) | - | [](https://badge.fury.io/js/@univerjs%2Fbase-numfmt-engine) |-| [base-render](./packages/base-render) | - | [](https://badge.fury.io/js/@univerjs%2Fbase-render) |-| [base-sheets](./packages/base-sheets) | - | [](https://badge.fury.io/js/@univerjs%2Fbase-sheets) |-| [base-ui](./packages/base-ui) | - | [](https://badge.fury.io/js/@univerjs%2Fbase-ui) |+| [base-doc](./packages/base-doc) | - | [](https://badge.fury.io/js/@univerjs%2Fbase-doc) |+| [base-formula-engine](./packages/base-formula-engine) | - | [](https://badge.fury.io/js/@univerjs%2Fbase-formula-engine) |+| [base-numfmt-engine](./packages/base-numfmt-engine) | - | [](https://badge.fury.io/js/@univerjs%2Fbase-numfmt-engine) |+| [base-render](./packages/base-render) | - | [](https://badge.fury.io/js/@univerjs%2Fbase-render) |+| [base-sheets](./packages/base-sheets) | - | [](https://badge.fury.io/js/@univerjs%2Fbase-sheets) |+| [base-ui](./packages/base-ui) | - | [](https://badge.fury.io/js/@univerjs%2Fbase-ui) || [core](./packages/core) | - | [](https://badge.fury.io/js/@univerjs%2Fcore) |-| [design](./packages/design) | - | [](https://badge.fury.io/js/@univerjs%2Fdesign) |-| [rpc](./packages/rpc) | - | [](https://badge.fury.io/js/@univerjs%2Frpc) |-| [sheets-plugin-formula](./packages/sheets-plugin-formula) | - | [](https://badge.fury.io/js/@univerjs%2Fsheets-plugin-formula) |-| [sheets-plugin-formula-ui](./packages/sheets-plugin-formula-ui) | - | [](https://badge.fury.io/js/@univerjs%2Fsheets-plugin-formula-ai) |-| [sheets-plugin-numfmt](./packages/sheets-plugin-numfmt) | - | [](https://badge.fury.io/js/@univerjs%2Fsheets-plugin-numfmt) |-| [ui-plugin-docs](./packages/ui-plugin-docs) | - | [](https://badge.fury.io/js/@univerjs%2Fui-plugin-docs) |-| [ui-plugin-sheets](./packages/ui-plugin-sheets) | - | [](https://badge.fury.io/js/@univerjs%2Fui-plugin-sheets) |+| [design](./packages/design) | - | [](https://badge.fury.io/js/@univerjs%2Fdesign) |+| [rpc](./packages/rpc) | - | [](https://badge.fury.io/js/@univerjs%2Frpc) |+| [sheets-plugin-formula](./packages/sheets-plugin-formula) | - | [](https://badge.fury.io/js/@univerjs%2Fsheets-plugin-formula) |+| [sheets-plugin-formula-ui](./packages/sheets-plugin-formula-ui) | - | [](https://badge.fury.io/js/@univerjs%2Fsheets-plugin-formula-ui) |+| [sheets-plugin-numfmt](./packages/sheets-plugin-numfmt) | - | [](https://badge.fury.io/js/@univerjs%2Fsheets-plugin-numfmt) |+| [ui-plugin-docs](./packages/ui-plugin-docs) | - | [](https://badge.fury.io/js/@univerjs%2Fui-plugin-docs) |+| [ui-plugin-sheets](./packages/ui-plugin-sheets) | - | [](https://badge.fury.io/js/@univerjs%2Fui-plugin-sheets) |## Contribution@@ -53,7 +53,8 @@ Please file an issue at [Issues](http://github.com/dream-num/univer/issues).## Architecture-Univer is written in typescript and designed according to the plug-in architecture. The functions outside the core are developed in the form of plug-ins. In the future, a plug-in market will be built to meet more personalized needs+Univer is written in typescript and designed according to the plugin architecture. The functions outside the core are developed in the form of plugins.+## Rendering enginediff --git a/apps/docs/docs/tutorial/architecture/_category_.json b/apps/docs/docs/tutorial/architecture/_category_.jsonnew file mode 100644index 0000000000..343f582bc8--- /dev/null+++ b/apps/docs/docs/tutorial/architecture/_category_.json@@ -0,0 +1,9 @@+{+ "label": "架构",+ "position": 5,+ "link": {+ "type": "generated-index",+ "description": "为了满足多样化的用户需求,我们围绕插件化、依赖注入、关注点分离等理念设计了一套灵活的架构。如果你想要充分发挥 Univer 的可扩展能力,建议阅读本小节的内容。"+ }+}+diff --git a/apps/docs/docs/tutorial/extend/architecture/architecture.md b/apps/docs/docs/tutorial/architecture/architecture.mdsimilarity index 94%rename from apps/docs/docs/tutorial/extend/architecture/architecture.mdrename to apps/docs/docs/tutorial/architecture/architecture.mdindex a48b66f875..553a4c2ce5 100644--- a/apps/docs/docs/tutorial/extend/architecture/architecture.md+++ b/apps/docs/docs/tutorial/architecture/architecture.md@@ -2,22 +2,17 @@sidebar_position: 1----# 架构概要--## Univer 架构简介--Univer 通过插件化的方式组织代码,这使得用户可以按照其实际需要选择插件组合成为一个 Univer 应用,例如用户可以通过插件化的方式在传统的电子表格的基础上增加协同编辑、宏录制、AI 生成脚本语言等能力。用户开发插件将 Univer 的能力和用户自己的应用的能力融汇贯通。+# Univer 架构## Univer 架构设计的核心需求-这些设计的需求部分来自于 Univer 的产品规划,部分来自于团队成员参与别的项目研发所得到的 learning--1. **100% 拥抱 web 技术栈**。Univer 需要运行在相当多的环境里,要满足快速的迭代需求并让客户、ISV、社区有二次开发的能力,能同时满足这些需求的只有以 web 技术为核心的技术栈。+1. **100% 拥抱 web 技术栈**。Univer 需要运行在相当多的环境里,要满足快速的迭代需求并让客户、ISV、社区拥有二次开发的能力,能同时满足这些需求的只有以 web 技术为核心的技术栈。2. **插件化和高度可扩展性**。Univer 的各个模块应当尽可能地以插件的方式存在,尽可能解耦插件之间的耦合关系,做到降低适配不同的用户需求、不同的运行环境的成本,同时降低二次开发的门槛。3. **层次结构和单向依赖**。Univer 的模块之间不允许循环依赖,这使得我们可以按照不同环境的需要加载所需的层次和模块。4. **面向多平台做设计**。解耦代码和具体运行环境的耦合关系,方便迁移到不同的运行环境当中。5. **面向高可测试性做设计**。各个模块直接尽可能基于接口建立依赖关系,方便独立测试。+## 插件和依赖注入<img width="962" alt="" src="/img/architecture.png" />diff --git a/apps/docs/docs/tutorial/extend/architecture/extensibility.md b/apps/docs/docs/tutorial/architecture/extensibility.mdsimilarity index 100%rename from apps/docs/docs/tutorial/extend/architecture/extensibility.mdrename to apps/docs/docs/tutorial/architecture/extensibility.mddiff --git a/apps/docs/docs/tutorial/architecture/sheet-architecture.md b/apps/docs/docs/tutorial/architecture/sheet-architecture.mdnew file mode 100644index 0000000000..bc31408d93--- /dev/null+++ b/apps/docs/docs/tutorial/architecture/sheet-architecture.md@@ -0,0 +1,68 @@+---+sidebar_position: 2+---++# Univer Sheet 架构++如同在[架构概要](./architecture) 中所提到的,Univer 以插件化的方式来实现各种功能,Univer Sheet 业务逻辑的实现也是通过插件来完成的,本文档将会介绍 Univer Sheet 的架构。++## 主要插件以及职责++Univer Sheet 的插件架构如下图所示:++*上图并未绘制出全部的模块,仅做示意*。++Univer Sheet 的架构主要由以下几个部分组成:++### core++`core` 跟 sheet 相关的模块主要是基数据结构和一个 `SheetInterceptorService`:++* UniverSheet 类型,它负责管理 Sheet 相关的 plugin+* Workbook 类型,它是一个工作簿,包含多个 Worksheet,存储工作簿的元数据+* Worksheet 类型,它是一个工作表,存储每个子表的数据+* `SheetInterceptorService`,允许其他插件干预从 Worksheet 上取值的行为++#### SheetInterceptorService++一个较为特殊的服务,它允许上层业务修改从 Worksheet 中获取单元格数据、获取行列隐藏信息等操作的结果,以及在特定的 command 执行时补充 mutation 或者 operation。这个服务的主要目的是为了实现一些特殊的功能,例如:++1. sheet 公式+2. sheet 条件格式+3. sheet 数据验证+4. sheet 数据透视表++等等。++**何时使用 SheetInterceptorService,何时不要使用?**++当各个功能需要操作同一块数据或者状态,但是它们之前并没有明确的依赖关系时使用 SheetInterceptorService,例如:数据透视表、公式、条件格式、数据验证、单元格原始数据都可能影响其他功能对单元格内容的取值结果,但是它们之间并没有明确的依赖关系,因此使用 SheetInterceptorService 来实现这些功能是比较合适的。++如果一个功能明确地依赖其他功能,例如公式需要在下拉填充或复制粘贴功能被调用时做一些操作,那么公式模块应该直接依赖下拉填充和复制粘贴模块,而不是通过 SheetInterceptorService 来实现。++### base-sheets++承载 sheet 的主要(基础)业务逻辑和渲染:++* 更改 sheet 数据的 commands / mutations+* 应用程序的内部状态+* 为高级功能提供内部扩展机制+* canvas 渲染+* 更改 canvas 区域状态的 operations++或许 render 部分也应该单独拆解出来,但是目前还没有这个需求。++### ui-plugin-sheets++ui-plugin-sheets 提供了 sheet 的 UI,包括:++* sheet 快捷键+* 复制粘贴逻辑+* sheet 的 UI 组件+* 单元格编辑器++后面如果有跨运行环境的 UI,则通过进一步按照平台拆分 plugin,或者通过二级入口点来解决。++### 其他功能++后续的高级功能\ No newline at end of filediff --git a/apps/docs/docs/tutorial/plugins/plugins.md b/apps/docs/docs/tutorial/architecture/web-worker.mdsimilarity index 100%rename from apps/docs/docs/tutorial/plugins/plugins.mdrename to apps/docs/docs/tutorial/architecture/web-worker.mddiff --git a/apps/docs/docs/tutorial/contributing.md b/apps/docs/docs/tutorial/contributing.mdindex ce5d183d7d..b2cb31b6ca 100644--- a/apps/docs/docs/tutorial/contributing.md+++ b/apps/docs/docs/tutorial/contributing.md@@ -2,5 +2,4 @@sidebar_position: 10-----# 贡献指南\ No newline at end of file+# 贡献指南diff --git a/apps/docs/docs/tutorial/extend/_category_.json b/apps/docs/docs/tutorial/extend/_category_.jsonindex bd7c0813b6..b0cdc27848 100644--- a/apps/docs/docs/tutorial/extend/_category_.json+++ b/apps/docs/docs/tutorial/extend/_category_.json@@ -3,7 +3,7 @@"position": 5,"link": {"type": "generated-index",- "description": "5 minutes to learn the most important Docusaurus concepts."+ "description": "Univer 在设计时就以高可扩展性作为目标,方便用户根据业务需求进行二次开发。你可以在 Univer 的基础上搭建个人知识库、CRM 系统、协同文档等等。这一小节将会介绍 Univer 的架构设计,以及如何在 Univer 基础上开发自定义插件。"}}diff --git a/apps/docs/docs/tutorial/extend/architecture/sheet-architecture.md b/apps/docs/docs/tutorial/extend/architecture/sheet-architecture.mddeleted file mode 100644index fb9af2fee6..0000000000--- a/apps/docs/docs/tutorial/extend/architecture/sheet-architecture.md+++ /dev/null@@ -1,5 +0,0 @@-----sidebar_position: 2------# Univer Sheet 架构diff --git a/apps/docs/docs/tutorial/extend/backend.md b/apps/docs/docs/tutorial/extend/backend.mddeleted file mode 100644index f93fe1b66b..0000000000--- a/apps/docs/docs/tutorial/extend/backend.md+++ /dev/null@@ -1,5 +0,0 @@-----sidebar_position: 6------# 后端\ No newline at end of filediff --git a/apps/docs/docs/tutorial/extend/write-a-plugin.md b/apps/docs/docs/tutorial/extend/write-a-plugin.mdindex 64da612415..df7890f64c 100644--- a/apps/docs/docs/tutorial/extend/write-a-plugin.md+++ b/apps/docs/docs/tutorial/extend/write-a-plugin.md@@ -2,4 +2,4 @@sidebar_position: 2----# 撰写新插件\ No newline at end of file+# 自定义插件\ No newline at end of filediff --git a/apps/docs/docs/tutorial/intro.md b/apps/docs/docs/tutorial/intro.mdindex 33e6ed46a4..fd987107d3 100644--- a/apps/docs/docs/tutorial/intro.md+++ b/apps/docs/docs/tutorial/intro.md@@ -6,7 +6,7 @@ sidebar_position: 1TODO: Logo Here-Univer 是一套企业协同办公文档与数据解决方案。+Univer 是一套企业协同办公文档与数据解决方案,[](https://badge.fury.io/js/@univerjs%2Fcore)@@ -21,36 +21,11 @@ Univer 是一套企业协同办公文档与数据解决方案。* 🧮 高性能的公式引擎,支持 web worker* 🌍 国际化支持-## 安装--Univer 的前端通过多个 npm 包发布,你可以通过以下命令安装核心包:--```bash-npm install @univerjs/core-```--然后可以根据你的实际需要安装其它包。例如想要创建一个基本的电子表格,可以以如下命令安装相关的包:--```zsh-npm install @univerjs/base-docs \- @univerjs/base-formula-engine \- @univerjs/base-render \- @univerjs/base-sheets \- @univerjs/base-ui \- @univerjs/design \- @univerjs/sheets-plugin-formula \- @univerjs/sheets-plugin-formula-ui \- @univerjs/ui-plugin-sheets-```-## 如何使用-请参考[快速上手](/docs/category/quick-start)。--## 在线 demo--我们准备了一个在线 IDE 来帮助你快速体验如何使用 Univer 开发,点击[这里](/playground)访问。+如果你不想在本地设置开发环境,我们准备了一个在线 IDE 来帮助你快速体验使用 Univer 开发,点击[这里](/playground)访问。+如果你喜欢本地的开发方式,请参考[快速上手](/docs/category/quick-start)。## 链接@@ -58,11 +33,9 @@ npm install @univerjs/base-docs \* [GitHub](https://github.com/dream-num/univer)* [知乎专栏](https://www.zhihu.com/org/meng-shu-ke-ji)-## 谁在使用-## 如何贡献-请在参与 Univer 的开发之前阅读[贡献指南](https://github.com/dream-num/univer/contributingguide)。+我们欢迎任何形式的贡献,包括但不限于[提交 issue](https://github.com/dream-num/univer/issues/new/choose)、提交 PR、参与讨论等。请在参与 Univer 的开发之前阅读[贡献指南](https://github.com/dream-num/univer/contributingguide)。## 社区@@ -72,14 +45,14 @@ npm install @univerjs/base-docs \1. [GitHub Discussions](https://github.com/dream-num/univer/discussions)1. 加入 Univer 中文社群-你也可以在以下技术社区提出问题,建议带上 univer 标签:+## 授权协议-1. stackoverflow-1. segmentfault+Univer 的核心代码在 MIT 协议下开源。Univer 同时提供商业授权,如果你的产品需要进阶功能或者部署方面的支持,可以联系我们获取商业授权。Univer 商业授权包括以下内容:-## 商业授权+* 👨💻 多人协同编辑和协同浏览+* 🛜 数据连接器+* 🎚️ 私有化部署咨询服务-* 👨💻 支持多人协同编辑和协同浏览-*+可以通过以下方式咨询商业授权:-## 联系方式+* 商务合作邮箱 [email protected]\ No newline at end of filediff --git a/apps/docs/docs/tutorial/plugins/_category_.json b/apps/docs/docs/tutorial/plugins/_category_.jsonindex 84132599e8..e1d81d9d74 100644--- a/apps/docs/docs/tutorial/plugins/_category_.json+++ b/apps/docs/docs/tutorial/plugins/_category_.json@@ -3,7 +3,7 @@"position": 4,"link": {"type": "generated-index",- "description": "5 minutes to learn the most important Docusaurus concepts."+ "description": "Univer 的能力可以通过插件来扩展,这里列出了所有可用的官方插件。"}}diff --git a/apps/docs/docs/tutorial/plugins/common/_category_.json b/apps/docs/docs/tutorial/plugins/common/_category_.jsonnew file mode 100644index 0000000000..4db886eb97--- /dev/null+++ b/apps/docs/docs/tutorial/plugins/common/_category_.json@@ -0,0 +1,9 @@+{+ "label": "通用插件",+ "position": 1,+ "link": {+ "type": "generated-index",+ "description": "通用插件提供了 Univer 中的基础能力,可以被上层业务的插件所依赖。"+ }+}+diff --git a/apps/docs/docs/tutorial/plugins/common/base-render.md b/apps/docs/docs/tutorial/plugins/common/base-render.mdnew file mode 100644index 0000000000..ab927e0e51--- /dev/null+++ b/apps/docs/docs/tutorial/plugins/common/base-render.md@@ -0,0 +1,5 @@+---+sidebar_position: 3+---++# @univerjs/base-render\ No newline at end of filediff --git a/apps/docs/docs/tutorial/plugins/common/core.md b/apps/docs/docs/tutorial/plugins/common/core.mdnew file mode 100644index 0000000000..4edb6cd3a7--- /dev/null+++ b/apps/docs/docs/tutorial/plugins/common/core.md@@ -0,0 +1,22 @@+---+sidebar_position: 1+---++# @univerjs/core++@univerjs/core 是 Univer 的核心仓库,它提供了一些基础的功能,包括:++- 提供作为应用入口和其他 plugin 挂载点的 `Univer` 类+- 定义或者实现一些基础服务,例如+ - 权限控制+ - 命令系统+ - Undo Redo+ - 配置系统+ - 日志系统+ - 上下文系统+ - 生命周期+ - 本地存储+ - 国际化+ - 资源管理++@univerjs/core 的 API 请参考 API 文档。diff --git a/apps/docs/docs/tutorial/plugins/common/design.md b/apps/docs/docs/tutorial/plugins/common/design.mdnew file mode 100644index 0000000000..bddc62594a--- /dev/null+++ b/apps/docs/docs/tutorial/plugins/common/design.md@@ -0,0 +1,9 @@+---+sidebar_position: 9+---++# @univerjs/design++为了让 Univer 的插件 UI 能够有更好的一致性,也为了降低用户自定义开发时的工作量,我们提供了一些基础的设计规范和组件。组件基于 React 和 less 开发,可以访问组件库网站了解更多信息。++TODO 添加组件库网站的地址diff --git a/apps/docs/docs/tutorial/plugins/common/formula.md b/apps/docs/docs/tutorial/plugins/common/formula.mdnew file mode 100644index 0000000000..17b7d787f2--- /dev/null+++ b/apps/docs/docs/tutorial/plugins/common/formula.md@@ -0,0 +1 @@+# @univerjs/base-formula-engine\ No newline at end of filediff --git a/apps/docs/docs/tutorial/plugins/common/icon.md b/apps/docs/docs/tutorial/plugins/common/icon.mdnew file mode 100644index 0000000000..dfa15018f8--- /dev/null+++ b/apps/docs/docs/tutorial/plugins/common/icon.md@@ -0,0 +1,9 @@+---+sidebar_position: 10+---++# @univerjs/icons++++出于和提供 [@univerjs/design](/docs/tutorial/plugins/common/design) 同样的目的,我们也提供了一些基础图标,可以访问[图标库网站](https://univer-icons.vercel.app/)了解更多信息。diff --git a/apps/docs/docs/tutorial/plugins/common/network.md b/apps/docs/docs/tutorial/plugins/common/network.mdnew file mode 100644index 0000000000..160a7fd082--- /dev/null+++ b/apps/docs/docs/tutorial/plugins/common/network.md@@ -0,0 +1,5 @@+---+sidebar_position: 7+---++# @univerjs/network\ No newline at end of filediff --git a/apps/docs/docs/tutorial/plugins/common/numfmt.md b/apps/docs/docs/tutorial/plugins/common/numfmt.mdnew file mode 100644index 0000000000..7bf7cb4f87--- /dev/null+++ b/apps/docs/docs/tutorial/plugins/common/numfmt.md@@ -0,0 +1 @@+# @univerjs/base-numfmt-plugin\ No newline at end of filediff --git a/apps/docs/docs/tutorial/extend/authentication.md b/apps/docs/docs/tutorial/plugins/common/rpc.mdsimilarity index 64%rename from apps/docs/docs/tutorial/extend/authentication.mdrename to apps/docs/docs/tutorial/plugins/common/rpc.mdindex 5412077b33..2606ecf9bb 100644--- a/apps/docs/docs/tutorial/extend/authentication.md+++ b/apps/docs/docs/tutorial/plugins/common/rpc.md@@ -2,4 +2,4 @@sidebar_position: 5----# 鉴权\ No newline at end of file+# @univerjs/rpcdiff --git a/apps/docs/docs/tutorial/plugins/common/ui.md b/apps/docs/docs/tutorial/plugins/common/ui.mdnew file mode 100644index 0000000000..7d1d409199--- /dev/null+++ b/apps/docs/docs/tutorial/plugins/common/ui.md@@ -0,0 +1,7 @@+---+sidebar_position: 2+---++# @univerjs/base-ui++@univerjs/base-ui 是\ No newline at end of filediff --git a/apps/docs/docs/tutorial/plugins/sheet/_category_.json b/apps/docs/docs/tutorial/plugins/sheet/_category_.jsonnew file mode 100644index 0000000000..de4e8df5f9--- /dev/null+++ b/apps/docs/docs/tutorial/plugins/sheet/_category_.json@@ -0,0 +1,9 @@+{+ "label": "Univer Sheet 插件",+ "position": 2,+ "link": {+ "type": "generated-index",+ "description": "5 minutes to learn the most important Docusaurus concepts."+ }+}+diff --git a/apps/docs/docs/tutorial/plugins/sheet/base-sheets.md b/apps/docs/docs/tutorial/plugins/sheet/base-sheets.mdnew file mode 100644index 0000000000..e69de29bb2diff --git a/apps/docs/docs/tutorial/extend/architecture/_category_.json b/apps/docs/docs/tutorial/plugins/univer-doc/_category_.jsonsimilarity index 73%rename from apps/docs/docs/tutorial/extend/architecture/_category_.jsonrename to apps/docs/docs/tutorial/plugins/univer-doc/_category_.jsonindex 53d9f5523a..bce1823301 100644--- a/apps/docs/docs/tutorial/extend/architecture/_category_.json+++ b/apps/docs/docs/tutorial/plugins/univer-doc/_category_.json@@ -1,6 +1,6 @@{- "label": "架构",- "position": 1,+ "label": "Univer Doc 插件",+ "position": 3,"link": {"type": "generated-index","description": "5 minutes to learn the most important Docusaurus concepts."diff --git a/apps/docs/docs/tutorial/plugins/univer-doc/base-doc.md b/apps/docs/docs/tutorial/plugins/univer-doc/base-doc.mdnew file mode 100644index 0000000000..e69de29bb2diff --git a/apps/docs/docs/tutorial/quick-start/create-a-page.md b/apps/docs/docs/tutorial/quick-start/create-a-page.mdindex 486756195a..bb981ebfeb 100644--- a/apps/docs/docs/tutorial/quick-start/create-a-page.md+++ b/apps/docs/docs/tutorial/quick-start/create-a-page.md@@ -2,4 +2,26 @@sidebar_position: 1----# 创建一个 Sheet\ No newline at end of file+# 快速上手 Univer Sheet++## 安装++Univer 的前端通过多个 npm 包发布,你可以通过以下命令安装核心包:++```bash+npm install @univerjs/core+```++然后可以根据你的实际需要安装其它包。例如想要创建一个基本的电子表格,可以以如下命令安装相关的包:++```zsh+npm install @univerjs/base-docs \+ @univerjs/base-formula-engine \+ @univerjs/base-render \+ @univerjs/base-sheets \+ @univerjs/base-ui \+ @univerjs/design \+ @univerjs/sheets-plugin-formula \+ @univerjs/sheets-plugin-formula-ui \+ @univerjs/ui-plugin-sheets+```diff --git a/apps/docs/docs/tutorial/releases.md b/apps/docs/docs/tutorial/releases.mdindex 3b58ca6c5f..61061a78ab 100644--- a/apps/docs/docs/tutorial/releases.md+++ b/apps/docs/docs/tutorial/releases.md@@ -2,4 +2,12 @@sidebar_position: 2----# 更新日志\ No newline at end of file+# 更新日志++### 0.1.0++2023-12-yy++首个公开测试版本++* 发布 Univer Sheetdiff --git a/apps/docs/docs/tutorial/roadmap.md b/apps/docs/docs/tutorial/roadmap.mdindex 8a9840d9c5..1c1191cb74 100644--- a/apps/docs/docs/tutorial/roadmap.md+++ b/apps/docs/docs/tutorial/roadmap.md@@ -2,10 +2,10 @@sidebar_position: 9----# 路线图-## Univer Sheet+## 2024 Q1-### 已支持能力+### Univer Sheet+### Univer Docdiff --git a/apps/docs/docs/tutorial/specs.md b/apps/docs/docs/tutorial/specs.mdnew file mode 100644index 0000000000..3e1fb34b6b--- /dev/null+++ b/apps/docs/docs/tutorial/specs.md@@ -0,0 +1,24 @@+---+sidebar_position: 3+---++# 功能一览++Univer 致力于为用户实现完整的办公文档解决方案,以下是我们目前已经实现的产品和特性。想要了解后续的开发计划,请参考[路线图](/docs/tutorial/roadmap)。你也可以通过 Feature Request 的方式提交你的需求,请参考[贡献指南](/docs/tutorial/contributing)。++## 通用能力++* 撤消重做+* 复制粘贴++## Univer Sheet++### 编辑操作++* 单元格编辑+* 下拉填充++### 数据与计算++* 公式+* 数字格式diff --git a/apps/docs/static/img/icons-preview.png b/apps/docs/static/img/icons-preview.pngnew file mode 100644index 0000000000..a3eba7b95aBinary files /dev/null and b/apps/docs/static/img/icons-preview.png differ