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.

docs(common): update npm command, remove unused module (#50)

Dushusir7d4d3033d766
diff --git a/README-zh.md b/README-zh.md
index 82d4ecb1ef..51ce7e9487 100644
--- a/README-zh.md
+++ b/README-zh.md
@@ -18,7 +18,8 @@ Univer 是一个开源的协作解决方案,旨在将协作能力赋能所有
### 环境
-[Node.js](https://nodejs.org/en/) Version >= 14.19
+- [node.js](https://nodejs.org) version 16.20.0
+- [pnpm](https://pnpm.io) version 8.6.2
### 安装
@@ -26,7 +27,6 @@ Univer 是一个开源的协作解决方案,旨在将协作能力赋能所有
git clone http://github.com/dream-num/univer
cd univer
npm i -g pnpm # MacOS : sudo npm i -g pnpm
-npx playwright install
pnpm i
```
@@ -35,23 +35,21 @@ pnpm i
启动 sheets
```
-npm run dev:sheet
+npm run start:sheet
```
启动 docs
```
-npm run dev:doc
+npm run start:doc
```
启动 slides
```
-npm run dev:slide
+npm run start:slide
```
-更多开发教程请参考 [贡献指南](./.github/contributing-zh.md)。
-
## 问题反馈
请到 [Issues](http://github.com/dream-num/univer/issues) 提交问题。
diff --git a/README.md b/README.md
index 1b0296069a..b9ab5371ee 100644
--- a/README.md
+++ b/README.md
@@ -18,7 +18,8 @@ We provide javascript part of code in the repository, including a canvas-based f
### Requirements
-[Node.js](https://nodejs.org/en/) Version >= 14.19
+- [node.js](https://nodejs.org) version 16.20.0
+- [pnpm](https://pnpm.io) version 8.6.2
### Installation
@@ -26,7 +27,6 @@ We provide javascript part of code in the repository, including a canvas-based f
git clone http://github.com/dream-num/univer
cd univer
npm i -g pnpm # MacOS : sudo npm i -g pnpm
-npx playwright install
pnpm i
```
@@ -35,19 +35,19 @@ pnpm i
Start sheets
```
-npm run dev:sheet
+npm run start:sheet
```
Start docs
```
-npm run dev:doc
+npm run start:doc
```
Start slides
```
-npm run dev:slide
+npm run start:slide
```
For more development tutorials, please refer to [Contribution Guide](./.github/contributing.md).
diff --git a/packages/core/src/Basics/SheetContext.ts b/packages/core/src/Basics/SheetContext.ts
deleted file mode 100644
index 228b4e242b..0000000000
--- a/packages/core/src/Basics/SheetContext.ts
+++ /dev/null
@@ -1,59 +0,0 @@
-import { Inject, Injector } from '@wendellhu/redi';
-
-import { Workbook } from '../Sheets/Domain';
-import { WorkBookObserverImpl } from './WorkBookObserverImpl';
-import { ContextBase } from './ContextBase';
-import { Observable } from '../Observer';
-import { GenName, PropsFrom } from '../Shared';
-import { Univer } from './Univer';
-import { WorkBookObserver } from './WorkBookObserver';
-import { IWorkbookConfig } from '../Types/Interfaces';
-
-/**
- * Core context, mount important instances, managers
- */
-export class SheetContext extends ContextBase {
- protected _workbook: Workbook;
-
- protected _genname: GenName;
-
- constructor(univerSheetData: Partial<IWorkbookConfig> = {}, @Inject(Injector) private readonly _sheetInjector: Injector) {
- super();
- this._workbook = this._sheetInjector.createInstance(Workbook, univerSheetData);
- }
-
- UNSAFE_setGenName(genName: GenName): void {
- this._genname = genName;
- }
-
- getWorkBook(): Workbook {
- return this._workbook;
- }
-
- getGenName(): GenName {
- return this._genname;
- }
-
- override onUniver(univer: Univer) {
- super.onUniver(univer);
-
- this._workbook.onUniver();
- }
-
- getContextObserver<Key extends keyof WorkBookObserver>(value: Key): Observable<PropsFrom<WorkBookObserver[Key]>> {
- return this.getObserverManager().requiredObserver(value, 'core');
- }
-
- TEMP_setObserver(): void {
- this._setObserver();
- }
-
- protected _setObserver(): void {
- const manager = this.getObserverManager();
- new WorkBookObserverImpl().install(manager);
- }
-
- protected override _initialize(): void {
- // EMPTY Context Initialize
- }
-}
\ No newline at end of file