dsh-happy-reader 0.2.7 → 0.3.1

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/lib/index.js CHANGED
@@ -1,12 +1,4 @@
1
- // dsh-happy-reader(Happy Reader)—— 宿主(Node)半边
2
- //
3
- // 宿主侧当前不做任何事:本文件只需能被应用加载器成功导入。
4
- // 浏览器半边(lib/client.js)由应用启动扫描按 package.json 的 dsh.client
5
- // 声明自动发现,无需任何额外注册。
1
+ // dsh-happy-reader(Happy Reader)—— 宿主(Node)半边。
2
+ // 只负责被加载器成功导入;浏览器半边由 package.json 的 dsh.client 声明自动发现。
6
3
 
7
- export const name = 'dsh-happy-reader'
8
-
9
- export function apply() {
10
- // 加载即打印一行,便于在宿主侧诊断里确认插件被加载(不影响任何功能)
11
- console.log('[dsh-happy-reader] 宿主半边已加载')
12
- }
4
+ export function apply() {}
package/locale/en.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Happy Reader",
4
+ "description": "Reading enhancements for DSH chat: hide the composer and title bar, tune body/code/terminal fonts and sizes, content width, line height, fullscreen, and copy messages as Markdown with formulas restored as LaTeX."
5
+ }
6
+ }
package/locale/zh.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Happy Reader",
4
+ "description": "DSH 对话阅读增强:隐藏输入框与会话标题栏,调整正文/代码/终端字体与字号、内容宽度、行距,支持全屏,并可将选中内容与公式复制为 Markdown(公式还原为 LaTeX)。"
5
+ }
6
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dsh-happy-reader",
3
- "version": "0.2.7",
4
- "description": "Happy Reader(阅读增强):隐藏输入框 / 上边栏、全屏切换、字号 10–40px、行距/字距微调、面板可拖动可拉高、复制为 Markdown(公式→LaTeX)、内容宽度扩展、中英文分别选正文字体 + 代码字体(仅列本机已装)—— 与官方设置协同,不冲突",
3
+ "version": "0.3.1",
4
+ "description": "Happy Reader(阅读增强):隐藏输入框 / 上边栏、全屏切换、字号 10–40px、行距/字距微调、面板可拖动可拉高、复制为 Markdown(公式→LaTeX)、内容宽度扩展、中英文分别选正文字体 + 官方代码/终端字体与字号(仅列本机已装)—— 与官方设置协同,不冲突",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "author": "Richardwongyk",
@@ -26,13 +26,17 @@
26
26
  ".": "./lib/index.js",
27
27
  "./client": "./lib/client.js",
28
28
  "./cordis.patch.yml": "./cordis.patch.yml",
29
- "./package.json": "./package.json"
29
+ "./package.json": "./package.json",
30
+ "./locale/*.json": "./locale/*.json",
31
+ "./icon": "./icon.svg"
30
32
  },
31
33
  "files": [
32
34
  "lib",
33
35
  "cordis.patch.yml",
34
36
  "README.md",
35
- "LICENSE"
37
+ "LICENSE",
38
+ "locale/*.json",
39
+ "icon.svg"
36
40
  ],
37
41
  "dsh": {
38
42
  "bundle": {