@allbluecn/shared 0.2.0

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.
Files changed (95) hide show
  1. package/package.json +117 -0
  2. package/src/constants/perf.ts +21 -0
  3. package/src/i18n/client.ts +32 -0
  4. package/src/i18n/config.ts +104 -0
  5. package/src/i18n/detect.ts +43 -0
  6. package/src/i18n/locales/en/agents.json +134 -0
  7. package/src/i18n/locales/en/apps.json +6 -0
  8. package/src/i18n/locales/en/auth.json +88 -0
  9. package/src/i18n/locales/en/billing.json +78 -0
  10. package/src/i18n/locales/en/chat.json +194 -0
  11. package/src/i18n/locales/en/common.json +203 -0
  12. package/src/i18n/locales/en/dashboard.json +38 -0
  13. package/src/i18n/locales/en/design.json +70 -0
  14. package/src/i18n/locales/en/desktop.json +35 -0
  15. package/src/i18n/locales/en/display.json +37 -0
  16. package/src/i18n/locales/en/editor.json +304 -0
  17. package/src/i18n/locales/en/enterprise.json +1 -0
  18. package/src/i18n/locales/en/invite.json +11 -0
  19. package/src/i18n/locales/en/knowledge.json +451 -0
  20. package/src/i18n/locales/en/mindmap.json +28 -0
  21. package/src/i18n/locales/en/prd.json +43 -0
  22. package/src/i18n/locales/en/projects.json +133 -0
  23. package/src/i18n/locales/en/settings.json +375 -0
  24. package/src/i18n/locales/en/share.json +20 -0
  25. package/src/i18n/locales/en/story.json +785 -0
  26. package/src/i18n/locales/en/tags.json +42 -0
  27. package/src/i18n/locales/en/workspace.json +90 -0
  28. package/src/i18n/locales/zh/agents.json +134 -0
  29. package/src/i18n/locales/zh/apps.json +6 -0
  30. package/src/i18n/locales/zh/auth.json +88 -0
  31. package/src/i18n/locales/zh/billing.json +78 -0
  32. package/src/i18n/locales/zh/chat.json +194 -0
  33. package/src/i18n/locales/zh/common.json +203 -0
  34. package/src/i18n/locales/zh/dashboard.json +38 -0
  35. package/src/i18n/locales/zh/design.json +70 -0
  36. package/src/i18n/locales/zh/desktop.json +35 -0
  37. package/src/i18n/locales/zh/display.json +37 -0
  38. package/src/i18n/locales/zh/editor.json +304 -0
  39. package/src/i18n/locales/zh/enterprise.json +1 -0
  40. package/src/i18n/locales/zh/invite.json +11 -0
  41. package/src/i18n/locales/zh/knowledge.json +451 -0
  42. package/src/i18n/locales/zh/mindmap.json +28 -0
  43. package/src/i18n/locales/zh/prd.json +43 -0
  44. package/src/i18n/locales/zh/projects.json +133 -0
  45. package/src/i18n/locales/zh/settings.json +375 -0
  46. package/src/i18n/locales/zh/share.json +20 -0
  47. package/src/i18n/locales/zh/story.json +785 -0
  48. package/src/i18n/locales/zh/tags.json +42 -0
  49. package/src/i18n/locales/zh/workspace.json +90 -0
  50. package/src/i18n/server.ts +18 -0
  51. package/src/i18n/types.ts +5 -0
  52. package/src/index.ts +90 -0
  53. package/src/infrastructure/ai/adapter.ts +59 -0
  54. package/src/infrastructure/ai/cli-detector.ts +64 -0
  55. package/src/infrastructure/ip-location.ts +76 -0
  56. package/src/infrastructure/references/engine.ts +104 -0
  57. package/src/infrastructure/ua-parser.ts +107 -0
  58. package/src/interfaces/ai.ts +38 -0
  59. package/src/interfaces/avatar.ts +22 -0
  60. package/src/interfaces/module.ts +60 -0
  61. package/src/interfaces/references.ts +44 -0
  62. package/src/interfaces/transport.ts +26 -0
  63. package/src/lib/annotation-template.ts +33 -0
  64. package/src/lib/comment-utils.ts +47 -0
  65. package/src/lib/datetime.ts +115 -0
  66. package/src/lib/desktop-detect.ts +27 -0
  67. package/src/lib/outline-utils.ts +57 -0
  68. package/src/lib/pacer.ts +96 -0
  69. package/src/lib/prd/stack-layout.ts +53 -0
  70. package/src/lib/prd-tree-utils.ts +94 -0
  71. package/src/lib/prototype-registry.ts +24 -0
  72. package/src/lib/query-client-seam.ts +14 -0
  73. package/src/lib/share-events.ts +78 -0
  74. package/src/lib/sidebar-utils.ts +21 -0
  75. package/src/lib/stores/prd-canvas-store.ts +69 -0
  76. package/src/lib/tag-colors.ts +35 -0
  77. package/src/lib/time-format.ts +50 -0
  78. package/src/modules/ai-providers/constants.ts +79 -0
  79. package/src/modules/ai-providers/index.ts +21 -0
  80. package/src/modules/ai-providers/seed-data.ts +222 -0
  81. package/src/modules/ai-providers/types.ts +95 -0
  82. package/src/modules/billing/feature-registry.ts +63 -0
  83. package/src/modules/billing/plan-features-schema.ts +11 -0
  84. package/src/modules/billing/resource-registry.ts +80 -0
  85. package/src/modules/definitions/plugin.module.ts +38 -0
  86. package/src/modules/definitions/prd.module.ts +45 -0
  87. package/src/modules/definitions/prototype.module.ts +38 -0
  88. package/src/modules/dependencies/index.ts +186 -0
  89. package/src/modules/register-defaults.ts +27 -0
  90. package/src/modules/registry.ts +53 -0
  91. package/src/server-seam.ts +51 -0
  92. package/src/types/outline.ts +26 -0
  93. package/src/types/prd.ts +90 -0
  94. package/src/types/prototype.ts +12 -0
  95. package/src/virtual.d.ts +4 -0
@@ -0,0 +1,304 @@
1
+ {
2
+ "ai-assistant": "AI 助手",
3
+ "ai-is-generating": "AI 正在生成",
4
+ "ai-annotation": "AI注释",
5
+ "ai-annotation-fill-failed": "AI 注释填充失败",
6
+ "ai-annotation-fill-error": "[AI注释] 填充失败:",
7
+ "it-support": "IT 支持",
8
+ "it-project-manager": "IT 项目经理",
9
+ "element-not-in-editor-root": "element 不在编辑器根节点内",
10
+ "element-and-editorroot-required": "element 和 editorRoot 必须同时提供",
11
+ "level-1": "一级",
12
+ "heading-1": "标题1",
13
+ "level-3": "三级",
14
+ "heading-3": "标题3",
15
+ "upload": "上传",
16
+ "insert-row-above": "上方插入行",
17
+ "superscript": "上标",
18
+ "move-up": "上移",
19
+ "underline": "下划线",
20
+ "insert-row-below": "下方插入行",
21
+ "subscript": "下标",
22
+ "move-down": "下移",
23
+ "download-image": "下载图片",
24
+ "justify-align": "两端对齐",
25
+ "chinese": "中文",
26
+ "main-section-heading": "主要章节标题",
27
+ "level-2": "二级",
28
+ "heading-2": "标题2",
29
+ "heading-5": "五级标题",
30
+ "product-manager": "产品经理",
31
+ "product-designer": "产品设计师",
32
+ "hr-specialist": "人力资源专员",
33
+ "continue-writing": "续写",
34
+ "code": "代码",
35
+ "code-block": "代码块",
36
+ "task": "任务",
37
+ "task-list": "任务清单",
38
+ "russian": "俄语",
39
+ "informative": "信息丰富",
40
+ "fix-spelling-grammar": "修正拼写和语法",
41
+ "stop": "停止",
42
+ "stop-generating": "停止生成",
43
+ "child-friendly": "儿童友好",
44
+ "guest": "访客",
45
+ "heading-6": "六级标题",
46
+ "excited": "兴奋",
47
+ "writing": "写作",
48
+ "decrease-indent": "减少缩进",
49
+ "divider": "分隔线",
50
+ "column-move-up": "列上移",
51
+ "column-move-down": "列下移",
52
+ "column-sort-asc": "列升序排序",
53
+ "column-move-right": "列右移",
54
+ "column-move-left": "列左移",
55
+ "column-actions": "列操作",
56
+ "list": "列表",
57
+ "column-sort-desc": "列降序排序",
58
+ "liu-qiang": "刘强",
59
+ "liu-yang": "刘洋",
60
+ "just-now": "刚刚",
61
+ "minutesAgo": "{{count}} 分钟前",
62
+ "hoursAgo": "{{count}} 小时前",
63
+ "daysAgo": "{{count}} 天前",
64
+ "creative": "创意",
65
+ "delete": "删除",
66
+ "delete-column": "删除列",
67
+ "strikethrough": "删除线",
68
+ "delete-row": "删除行",
69
+ "bold": "加粗",
70
+ "loading": "加载中...",
71
+ "card-view": "卡片视图",
72
+ "indonesian": "印尼语",
73
+ "friendly": "友好",
74
+ "send": "发送",
75
+ "cancel": "取消",
76
+ "narrative": "叙事",
77
+ "colloquial": "口语化",
78
+ "insert-column-right": "右侧插入列",
79
+ "right-align": "右对齐",
80
+ "merge-cells": "合并单元格",
81
+ "describe-need-to-ai": "向 AI 描述你的需求...",
82
+ "tell-ai-more-changes": "告诉 AI 还需要修改哪些内容……",
83
+ "business": "商务",
84
+ "heading-4": "四级标题",
85
+ "image": "图片",
86
+ "image-right-align": "图片右对齐",
87
+ "image-center-align": "图片居中",
88
+ "image-left-align": "图片左对齐",
89
+ "image-caption": "图片说明",
90
+ "turkish": "土耳其语",
91
+ "open-in-new-tab": "在新标签页打开",
92
+ "open-in-new-window": "在新窗口打开",
93
+ "increase-indent": "增加缩进",
94
+ "copy-column": "复制列",
95
+ "copy-to-clipboard": "复制到剪贴板",
96
+ "copy-node": "复制节点",
97
+ "copy-row": "复制行",
98
+ "copy-anchor-link": "复制锚点链接",
99
+ "sub-section-heading": "子章节与分组标题",
100
+ "academic": "学术",
101
+ "objective": "客观",
102
+ "alignment": "对齐方式",
103
+ "center-align": "居中对齐",
104
+ "insert-column-left": "左侧插入列",
105
+ "left-align": "左对齐",
106
+ "marketing-assistant": "市场助理",
107
+ "marketing-manager": "市场经理",
108
+ "syntax-highlighted-code-block": "带语法高亮的代码块",
109
+ "zoomable-image-with-caption": "带说明的可缩放图片",
110
+ "graphic-designer": "平面设计师",
111
+ "humorous": "幽默",
112
+ "app": "应用",
113
+ "apply-link": "应用链接",
114
+ "bottom-align": "底部对齐",
115
+ "start-writing": "开始写作...",
116
+ "quote": "引用",
117
+ "reference-other-doc": "引用其他文档",
118
+ "blockquote": "引用块",
119
+ "reference-doc": "引用文档",
120
+ "zhang-wei": "张伟",
121
+ "zhang-kai": "张凯",
122
+ "zhang-dawei": "张大伟",
123
+ "zhang-lei": "张磊",
124
+ "todo": "待办",
125
+ "todo-list": "待办列表",
126
+ "german": "德语",
127
+ "mind-map": "脑图",
128
+ "summarize": "总结",
129
+ "italian": "意大利语",
130
+ "emotional": "感性",
131
+ "expand": "扩写",
132
+ "expand-text": "扩写文本",
133
+ "split-cells": "拆分单元格",
134
+ "hold-to-drag": "按住可拖拽",
135
+ "mention": "提及",
136
+ "mention-user-or-item": "提及用户或条目",
137
+ "insert": "插入",
138
+ "insert-editable-mind-map": "插入可编辑的思维导图",
139
+ "insert-block": "插入块",
140
+ "insert-local-file": "插入本地文件",
141
+ "insert-toc": "插入目录",
142
+ "insert-emoji": "插入表情",
143
+ "insert-table": "插入表格",
144
+ "search-emoji": "搜索表情...",
145
+ "undo": "撤销",
146
+ "improve-writing": "改进写作",
147
+ "text": "文字",
148
+ "text-color": "文字颜色",
149
+ "text-color-options": "文字颜色选项",
150
+ "text-highlight": "文字高亮",
151
+ "doc-not-found": "文档不存在或已被删除",
152
+ "italic": "斜体",
153
+ "unordered": "无序",
154
+ "unordered-list": "无序列表",
155
+ "unordered-bullet-list": "无序项目列表",
156
+ "japanese": "日语",
157
+ "show-heading": "显示标题",
158
+ "normal-paragraph": "普通段落",
159
+ "smart": "智能",
160
+ "no-content": "暂无内容",
161
+ "more-options": "更多选项",
162
+ "last-updated": "最后更新",
163
+ "recently-used-colors": "最近使用的颜色",
164
+ "ordered": "有序",
165
+ "ordered-list": "有序列表",
166
+ "ordered-numbered-list": "有序项目列表",
167
+ "persuasive": "有说服力",
168
+ "unknown-component": "未知组件",
169
+ "li-jun": "李军",
170
+ "li-na": "李娜",
171
+ "li-jianguo": "李建国",
172
+ "li-siqi": "李思琪",
173
+ "heading-view": "标题视图",
174
+ "style": "样式",
175
+ "brown": "棕色",
176
+ "brown-bg": "棕色背景",
177
+ "orange": "橙色",
178
+ "orange-bg": "橙色背景",
179
+ "formal": "正式",
180
+ "paragraph": "段落",
181
+ "horizontal-divider": "水平分隔线",
182
+ "laws-regulations": "法律法规",
183
+ "french": "法语",
184
+ "annotate": "注释",
185
+ "light": "浅色",
186
+ "dark": "深色",
187
+ "add": "添加",
188
+ "add-image": "添加图片",
189
+ "add-or-delete-column": "添加或删除列",
190
+ "add-or-delete-row": "添加或删除行",
191
+ "add-mention": "添加提及",
192
+ "add-summary": "添加摘要",
193
+ "add-emoji": "添加表情",
194
+ "clear-all-content": "清空全部内容",
195
+ "clear-content": "清空内容",
196
+ "clear-column-content": "清空列内容",
197
+ "clear-row-content": "清空行内容",
198
+ "gray": "灰色",
199
+ "gray-bg": "灰色背景",
200
+ "click-to-show-options": "点击显示选项",
201
+ "wang-ting": "王婷",
202
+ "wang-ming": "王明",
203
+ "wang-xiaoyan": "王晓燕",
204
+ "wang-hao": "王浩",
205
+ "wang-fang": "王芳",
206
+ "generate": "生成",
207
+ "table-of-contents": "目录",
208
+ "remove-link": "移除链接",
209
+ "remove-highlight": "移除高亮",
210
+ "smiley": "笑脸",
211
+ "simplify-text": "简化文本",
212
+ "simplify-language": "简化语言",
213
+ "pink": "粉色",
214
+ "pink-bg": "粉色背景",
215
+ "paste-link": "粘贴链接...",
216
+ "purple": "紫色",
217
+ "purple-bg": "紫色背景",
218
+ "red": "红色",
219
+ "red-bg": "红色背景",
220
+ "component-id": "组件ID:",
221
+ "drawing": "绘图",
222
+ "continue": "继续",
223
+ "green": "绿色",
224
+ "green-bg": "绿色背景",
225
+ "numbered": "编号",
226
+ "edit": "编辑",
227
+ "abbreviate": "缩写",
228
+ "abbreviate-text": "缩写文本",
229
+ "website-bookmark": "网站收藏",
230
+ "translate": "翻译",
231
+ "background-color": "背景颜色",
232
+ "confident": "自信",
233
+ "custom-knowledge-base": "自建知识库",
234
+ "english": "英语",
235
+ "dutch": "荷兰语",
236
+ "portuguese": "葡萄牙语",
237
+ "blue": "蓝色",
238
+ "blue-bg": "蓝色背景",
239
+ "row-move-up": "行上移",
240
+ "row-move-down": "行下移",
241
+ "industry-compliance": "行业合规",
242
+ "inline-code": "行内代码",
243
+ "row-sort-asc": "行升序排序",
244
+ "row-move-right": "行右移",
245
+ "row-move-left": "行左移",
246
+ "row-actions": "行操作",
247
+ "row-sort-desc": "行降序排序",
248
+ "complete-sentence": "补全句子",
249
+ "header-column": "表头列",
250
+ "header-row": "表头行",
251
+ "emoji": "表情",
252
+ "emoji-style": "表情包化",
253
+ "table": "表格",
254
+ "table-cell-options": "表格单元格选项",
255
+ "spanish": "西班牙语",
256
+ "let-ai-generate": "让 AI 生成内容",
257
+ "dictionary-entry": "词典词条",
258
+ "poetic": "诗意",
259
+ "tone": "语气",
260
+ "tone-adjust-options": "语气调整选项",
261
+ "language": "语言",
262
+ "write-new-paragraph": "请写一个新的段落。只能写一句话。",
263
+ "please-retry": "请重试",
264
+ "adjust-tone": "调整语气",
265
+ "finance-head": "财务主管",
266
+ "zhao-min": "赵敏",
267
+ "zhao-xiaomeng": "赵晓萌",
268
+ "vietnamese": "越南语",
269
+ "convert-to": "转换为",
270
+ "fit-width": "适应宽度",
271
+ "select": "选择",
272
+ "redo": "重做",
273
+ "re-upload": "重新上传",
274
+ "reset-format": "重置格式",
275
+ "retry": "重试",
276
+ "link": "链接",
277
+ "link-edit": "链接编辑",
278
+ "sales-rep": "销售代表",
279
+ "sales-manager": "销售经理",
280
+ "ask-ai": "问问 AI",
281
+ "ask-ai-assistant": "问问 AI 助手",
282
+ "arabic": "阿拉伯语",
283
+ "chen-li": "陈丽",
284
+ "chen-xue": "陈雪",
285
+ "chen-jing": "陈静",
286
+ "casual": "随意",
287
+ "korean": "韩语",
288
+ "top-level-heading": "顶级标题",
289
+ "top-align": "顶部对齐",
290
+ "color": "颜色",
291
+ "highlight": "高亮",
292
+ "highlight-text": "高亮文字",
293
+ "highlight-color": "高亮颜色",
294
+ "yellow": "黄色",
295
+ "yellow-bg": "黄色背景",
296
+ "table-select": "选择 {{x}}x{{y}} 表格",
297
+ "theme-switch-to": "切换到{{mode}}模式",
298
+ "default": "默认",
299
+ "default-bg": "默认背景",
300
+ "inspirational": "鼓舞人心",
301
+ "continue-from-above": "上文:{{snippet}}\n\n请从上文结尾处继续书写。只能写一句话,不要重复上文。",
302
+ "convert-to-current": "转换为(当前:{{type}})",
303
+ "text-color-label": "文字颜色:{{color}}"
304
+ }
@@ -0,0 +1 @@
1
+ {"title":"企业版"}
@@ -0,0 +1,11 @@
1
+ {
2
+ "title": "{{owner}} 邀请你加入 TA 的团队",
3
+ "seatType": "席位类型",
4
+ "member": "成员",
5
+ "guest": "访客",
6
+ "accept": "接受邀请",
7
+ "accepted": "已加入团队",
8
+ "expired": "邀请已过期,请联系邀请人重发",
9
+ "invalid": "邀请已失效",
10
+ "notFound": "邀请不存在"
11
+ }