@grapecity-software/dsh-spreadjs-editor 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/README.md +22 -134
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -17,9 +17,8 @@ A DeepSeek Harness Web UI plugin that opens, views, and edits Excel / SpreadJS f
|
|
|
17
17
|
### 功能
|
|
18
18
|
|
|
19
19
|
- 支持 `.xlsx`、`.xlsm`、`.csv`、`.sjs`、`.ssjson` 文件。
|
|
20
|
-
-
|
|
21
|
-
-
|
|
22
|
-
- Designer 界面自动跟随系统 light/dark 偏好。
|
|
20
|
+
- 从文件树打开工作簿,使用 SpreadJS Designer 编辑表格。
|
|
21
|
+
- 编辑器跟随系统切换浅色和深色主题。
|
|
23
22
|
|
|
24
23
|
### 内置版本与文件兼容性
|
|
25
24
|
|
|
@@ -28,15 +27,13 @@ A DeepSeek Harness Web UI plugin that opens, views, and edits Excel / SpreadJS f
|
|
|
28
27
|
| SpreadJS | 19.1.4 |
|
|
29
28
|
| SpreadJS Designer | 19.1.4 |
|
|
30
29
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
请先备份原文件或另存副本,再用目标版本验证打开结果,确认后再替换原文件。本插件不会自动备份、降级文件格式或保证无损往返转换。
|
|
30
|
+
编辑器底部显示 SpreadJS 版本号。低版本 SpreadJS 可能无法打开本版本保存的 `.sjs` 或 `.ssjson` 文件;与旧版系统交换文件时,建议保留原文件并确认兼容性。
|
|
34
31
|
|
|
35
32
|
### 安装
|
|
36
33
|
|
|
37
|
-
|
|
34
|
+
需要 DSH `>=0.1.2-rc.1`,并已安装 `@linxin666/dsh-web-all`(ui-all)。
|
|
38
35
|
|
|
39
|
-
|
|
36
|
+
插件内置 SpreadJS 和 Designer,无需编译。使用已安装的 DSH CLI 安装并启动:
|
|
40
37
|
|
|
41
38
|
```sh
|
|
42
39
|
dsh plugin --profile web add @grapecity-software/dsh-spreadjs-editor
|
|
@@ -45,36 +42,18 @@ dsh --profile web
|
|
|
45
42
|
|
|
46
43
|
启动后,在 Web UI 右侧文件树中打开 `.xlsx`、`.xlsm`、`.csv`、`.sjs` 或 `.ssjson` 文件即可。
|
|
47
44
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
如果使用 npx 运行 DSH,使用同样的命令:
|
|
45
|
+
也可以通过 npx 安装并启动:
|
|
51
46
|
|
|
52
47
|
```sh
|
|
53
48
|
npx --yes @deepseek-ai/dsh@latest plugin --profile web add @grapecity-software/dsh-spreadjs-editor
|
|
54
49
|
npx --yes @deepseek-ai/dsh@latest --profile web
|
|
55
50
|
```
|
|
56
51
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
从旧版本升级后,不再需要本插件的 `onlyBuiltDependencies` 放行项。
|
|
60
|
-
|
|
61
|
-
### 常见问题
|
|
62
|
-
|
|
63
|
-
**我已经有 ui-all,还需要额外安装什么吗?**
|
|
64
|
-
|
|
65
|
-
不需要。ui-all 自带 `dsh-better-sidebar`,本插件会直接注册到它。
|
|
66
|
-
|
|
67
|
-
**安装完还需要手动构建吗?**
|
|
68
|
-
|
|
69
|
-
不需要。发布包已包含构建产物,只有从源码开发时才需要构建。
|
|
70
|
-
|
|
71
|
-
**SpreadJS 会跟随每次安装自动升级吗?**
|
|
72
|
-
|
|
73
|
-
不会自动跨版本升级。所有 GrapeCity 官方包在 `package.json` 中锁定为同一版本;维护者会在发布新版时统一同步。
|
|
52
|
+
旧版本用户请参阅[升级说明](CHANGELOG.md)。
|
|
74
53
|
|
|
75
54
|
### 配置
|
|
76
55
|
|
|
77
|
-
|
|
56
|
+
如已获得许可证,在 web profile 的 `cordis.patch.yml` 中添加以下配置:
|
|
78
57
|
|
|
79
58
|
| Key | 默认值 | 说明 |
|
|
80
59
|
| --- | --- | --- |
|
|
@@ -88,48 +67,13 @@ DeepSeek Harness CLI 是 `@deepseek-ai/dsh`,不要使用同名 npm 包 `dsh`
|
|
|
88
67
|
designerLicenseKey: 'YOUR_DESIGNER_KEY'
|
|
89
68
|
```
|
|
90
69
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
### 支持的文件
|
|
94
|
-
|
|
95
|
-
| 文件 | 说明 |
|
|
96
|
-
| --- | --- |
|
|
97
|
-
| `.xlsx` / `.xlsm` | Excel 工作簿 |
|
|
98
|
-
| `.csv` | CSV 文本 |
|
|
99
|
-
| `.sjs` | SpreadJS 原生工作簿格式 |
|
|
100
|
-
| `.ssjson` | SpreadJS JSON 工作簿 |
|
|
101
|
-
|
|
102
|
-
### 从源码安装
|
|
103
|
-
|
|
104
|
-
如果你需要从源码运行或参与开发:
|
|
105
|
-
|
|
106
|
-
```sh
|
|
107
|
-
git clone https://github.com/GrapeCityXA/dsh-plugin-spreadjs-editor.git
|
|
108
|
-
|
|
109
|
-
cd dsh-plugin-spreadjs-editor
|
|
110
|
-
npm install
|
|
111
|
-
npm run build
|
|
112
|
-
|
|
113
|
-
dsh plugin --profile web add ../dsh-plugin-spreadjs-editor
|
|
114
|
-
```
|
|
70
|
+
修改后重启 DSH 并刷新网页。
|
|
115
71
|
|
|
116
72
|
### 许可
|
|
117
73
|
|
|
118
|
-
插件代码免费提供,采用 MIT
|
|
119
|
-
|
|
120
|
-
可将 DSH 与插件部署为 SaaS 服务,表格仍在浏览器端运行。部署者应根据服务场景获取适用的 SpreadJS 和 Designer 授权,分别配置许可证。身份认证、租户与文件隔离由宿主服务负责,本插件不提供这些能力。
|
|
74
|
+
插件代码免费提供,采用 [MIT 许可证](LICENSE)。内置的 SpreadJS 和 Designer 是葡萄城商业产品,未配置许可证时可按其试用条款体验;插件免费不包含这两个产品的商业授权。
|
|
121
75
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
每次发布前更新 `CHANGELOG.md` 中对应版本的变更、兼容性和升级说明。当前版本尚未发布时,继续归并到同一版本条目;实际发布后再填写发布日期。
|
|
125
|
-
|
|
126
|
-
发布前执行 `npm run prepublishOnly`。该检查包含类型检查、单元测试、构建、smoke 测试,以及在临时目录离线安装 tarball,验证预构建客户端注册和许可证配置接口。它不代替浏览器中实际打开、编辑和保存工作簿的验证。
|
|
127
|
-
|
|
128
|
-
发布新版前,统一把所有 GrapeCity 依赖同步到最新版本:
|
|
129
|
-
|
|
130
|
-
```sh
|
|
131
|
-
npm run grapecity:update -- --latest
|
|
132
|
-
```
|
|
76
|
+
如用于正式部署或 SaaS 服务,请根据使用场景获取适用的 SpreadJS 和 Designer 授权。
|
|
133
77
|
|
|
134
78
|
---
|
|
135
79
|
|
|
@@ -138,9 +82,8 @@ npm run grapecity:update -- --latest
|
|
|
138
82
|
### Features
|
|
139
83
|
|
|
140
84
|
- Opens `.xlsx`, `.xlsm`, `.csv`, `.sjs`, and `.ssjson` files.
|
|
141
|
-
-
|
|
142
|
-
-
|
|
143
|
-
- The Designer follows the OS light/dark preference.
|
|
85
|
+
- Open workbooks from the file tree and edit them with SpreadJS Designer.
|
|
86
|
+
- Follows the system's light or dark theme.
|
|
144
87
|
|
|
145
88
|
### Bundled Versions and File Compatibility
|
|
146
89
|
|
|
@@ -149,15 +92,13 @@ npm run grapecity:update -- --latest
|
|
|
149
92
|
| SpreadJS | 19.1.4 |
|
|
150
93
|
| SpreadJS Designer | 19.1.4 |
|
|
151
94
|
|
|
152
|
-
The
|
|
153
|
-
|
|
154
|
-
Keep a backup or save a copy, and verify it in the target version before replacing the original. This plugin does not automatically back up files, downgrade formats, or guarantee lossless round trips.
|
|
95
|
+
The editor status bar shows the SpreadJS version. Older SpreadJS versions may not open `.sjs` or `.ssjson` files saved by this version. When exchanging files with older systems, keep the original files and check compatibility.
|
|
155
96
|
|
|
156
97
|
### Installation
|
|
157
98
|
|
|
158
|
-
Requires DSH `>=0.1.2-rc.1`
|
|
99
|
+
Requires DSH `>=0.1.2-rc.1` with `@linxin666/dsh-web-all` (ui-all) installed.
|
|
159
100
|
|
|
160
|
-
The
|
|
101
|
+
The plugin includes SpreadJS and Designer, with no build step required. With the DSH CLI installed:
|
|
161
102
|
|
|
162
103
|
```sh
|
|
163
104
|
dsh plugin --profile web add @grapecity-software/dsh-spreadjs-editor
|
|
@@ -166,36 +107,18 @@ dsh --profile web
|
|
|
166
107
|
|
|
167
108
|
After startup, open `.xlsx`, `.xlsm`, `.csv`, `.sjs`, or `.ssjson` from the right-side file tree.
|
|
168
109
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
If you run DSH through npx, use the same commands:
|
|
110
|
+
Alternatively, install and start through npx:
|
|
172
111
|
|
|
173
112
|
```sh
|
|
174
113
|
npx --yes @deepseek-ai/dsh@latest plugin --profile web add @grapecity-software/dsh-spreadjs-editor
|
|
175
114
|
npx --yes @deepseek-ai/dsh@latest --profile web
|
|
176
115
|
```
|
|
177
116
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
After upgrading, this plugin no longer needs an `onlyBuiltDependencies` allow-list entry.
|
|
181
|
-
|
|
182
|
-
### FAQ
|
|
183
|
-
|
|
184
|
-
**I already have ui-all. Do I need to install anything else?**
|
|
185
|
-
|
|
186
|
-
No. ui-all bundles `dsh-better-sidebar`, and this plugin registers directly with it.
|
|
187
|
-
|
|
188
|
-
**Do I need to build manually after installation?**
|
|
189
|
-
|
|
190
|
-
No. The package includes built artifacts. Building is only required when developing from source.
|
|
191
|
-
|
|
192
|
-
**Will SpreadJS upgrade automatically with every install?**
|
|
193
|
-
|
|
194
|
-
No. All GrapeCity packages are pinned to the same version in `package.json`; maintainers sync them together before a new release.
|
|
117
|
+
For upgrades, see the [release notes](CHANGELOG.md).
|
|
195
118
|
|
|
196
119
|
### Configuration
|
|
197
120
|
|
|
198
|
-
|
|
121
|
+
If you have licenses, add the following to the web profile's `cordis.patch.yml`:
|
|
199
122
|
|
|
200
123
|
| Key | Default | Description |
|
|
201
124
|
| --- | --- | --- |
|
|
@@ -209,45 +132,10 @@ For production use, set the license key in the profile's `cordis.patch.yml`:
|
|
|
209
132
|
designerLicenseKey: 'YOUR_DESIGNER_KEY'
|
|
210
133
|
```
|
|
211
134
|
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
### Supported files
|
|
215
|
-
|
|
216
|
-
| File | Description |
|
|
217
|
-
| --- | --- |
|
|
218
|
-
| `.xlsx` / `.xlsm` | Excel workbook |
|
|
219
|
-
| `.csv` | CSV text |
|
|
220
|
-
| `.sjs` | SpreadJS native workbook format |
|
|
221
|
-
| `.ssjson` | SpreadJS JSON workbook |
|
|
222
|
-
|
|
223
|
-
### Install from source
|
|
224
|
-
|
|
225
|
-
To run from source or contribute:
|
|
226
|
-
|
|
227
|
-
```sh
|
|
228
|
-
git clone https://github.com/GrapeCityXA/dsh-plugin-spreadjs-editor.git
|
|
229
|
-
|
|
230
|
-
cd dsh-plugin-spreadjs-editor
|
|
231
|
-
npm install
|
|
232
|
-
npm run build
|
|
233
|
-
|
|
234
|
-
dsh plugin --profile web add ../dsh-plugin-spreadjs-editor
|
|
235
|
-
```
|
|
135
|
+
Restart DSH and refresh the browser after changing the configuration.
|
|
236
136
|
|
|
237
137
|
### License
|
|
238
138
|
|
|
239
|
-
The plugin code is free
|
|
240
|
-
|
|
241
|
-
DSH and the plugin can be hosted as a SaaS service, with spreadsheets still running in the browser. Operators should obtain licenses appropriate to their deployment and configure SpreadJS and Designer keys separately. Authentication, tenant isolation, and file isolation are responsibilities of the host service.
|
|
139
|
+
The plugin code is free under the [MIT license](LICENSE). Bundled SpreadJS and Designer are GrapeCity commercial products available for evaluation under their trial terms without license keys. The free plugin does not include commercial licenses for these products.
|
|
242
140
|
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
Before each release, update its `CHANGELOG.md` entry with changes, compatibility requirements, and upgrade notes. Keep changes under the same version while it is unpublished; add the release date only after publishing.
|
|
246
|
-
|
|
247
|
-
Run `npm run prepublishOnly` before releasing. It checks types, unit tests, builds, smoke tests, and a fresh offline tarball installation with client registration and license-config checks. It does not replace opening, editing, and saving workbooks in a real browser.
|
|
248
|
-
|
|
249
|
-
Before a new release, sync all GrapeCity dependencies to the latest version:
|
|
250
|
-
|
|
251
|
-
```sh
|
|
252
|
-
npm run grapecity:update -- --latest
|
|
253
|
-
```
|
|
141
|
+
For production or SaaS deployments, obtain SpreadJS and Designer licenses appropriate to your use.
|
package/package.json
CHANGED