@univerjs/docs-thread-comment-ui 1.3.1 → 1.5.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 (64) hide show
  1. package/README.md +5 -5
  2. package/lib/cjs/index.js +33 -50
  3. package/lib/cjs/locale/ar-SA.js +1 -2
  4. package/lib/cjs/locale/ca-ES.js +1 -2
  5. package/lib/cjs/locale/de-DE.js +1 -2
  6. package/lib/cjs/locale/en-US.js +1 -2
  7. package/lib/cjs/locale/es-ES.js +1 -2
  8. package/lib/cjs/locale/fa-IR.js +1 -2
  9. package/lib/cjs/locale/fr-FR.js +1 -2
  10. package/lib/cjs/locale/id-ID.js +1 -2
  11. package/lib/cjs/locale/it-IT.js +1 -2
  12. package/lib/cjs/locale/ja-JP.js +1 -2
  13. package/lib/cjs/locale/ko-KR.js +1 -2
  14. package/lib/cjs/locale/pl-PL.js +1 -2
  15. package/lib/cjs/locale/pt-BR.js +1 -2
  16. package/lib/cjs/locale/ru-RU.js +1 -2
  17. package/lib/cjs/locale/sk-SK.js +1 -2
  18. package/lib/cjs/locale/vi-VN.js +1 -2
  19. package/lib/cjs/locale/zh-CN.js +1 -2
  20. package/lib/cjs/locale/zh-HK.js +1 -2
  21. package/lib/cjs/locale/zh-TW.js +1 -2
  22. package/lib/es/index.js +34 -51
  23. package/lib/es/locale/ar-SA.js +1 -2
  24. package/lib/es/locale/ca-ES.js +1 -2
  25. package/lib/es/locale/de-DE.js +1 -2
  26. package/lib/es/locale/en-US.js +1 -2
  27. package/lib/es/locale/es-ES.js +1 -2
  28. package/lib/es/locale/fa-IR.js +1 -2
  29. package/lib/es/locale/fr-FR.js +1 -2
  30. package/lib/es/locale/id-ID.js +1 -2
  31. package/lib/es/locale/it-IT.js +1 -2
  32. package/lib/es/locale/ja-JP.js +1 -2
  33. package/lib/es/locale/ko-KR.js +1 -2
  34. package/lib/es/locale/pl-PL.js +1 -2
  35. package/lib/es/locale/pt-BR.js +1 -2
  36. package/lib/es/locale/ru-RU.js +1 -2
  37. package/lib/es/locale/sk-SK.js +1 -2
  38. package/lib/es/locale/vi-VN.js +1 -2
  39. package/lib/es/locale/zh-CN.js +1 -2
  40. package/lib/es/locale/zh-HK.js +1 -2
  41. package/lib/es/locale/zh-TW.js +1 -2
  42. package/lib/index.js +34 -51
  43. package/lib/locale/ar-SA.js +1 -2
  44. package/lib/locale/ca-ES.js +1 -2
  45. package/lib/locale/de-DE.js +1 -2
  46. package/lib/locale/en-US.js +1 -2
  47. package/lib/locale/es-ES.js +1 -2
  48. package/lib/locale/fa-IR.js +1 -2
  49. package/lib/locale/fr-FR.js +1 -2
  50. package/lib/locale/id-ID.js +1 -2
  51. package/lib/locale/it-IT.js +1 -2
  52. package/lib/locale/ja-JP.js +1 -2
  53. package/lib/locale/ko-KR.js +1 -2
  54. package/lib/locale/pl-PL.js +1 -2
  55. package/lib/locale/pt-BR.js +1 -2
  56. package/lib/locale/ru-RU.js +1 -2
  57. package/lib/locale/sk-SK.js +1 -2
  58. package/lib/locale/vi-VN.js +1 -2
  59. package/lib/locale/zh-CN.js +1 -2
  60. package/lib/locale/zh-HK.js +1 -2
  61. package/lib/locale/zh-TW.js +1 -2
  62. package/lib/types/menu/menu.d.ts +1 -0
  63. package/lib/umd/index.js +3 -3
  64. package/package.json +18 -18
package/lib/es/index.js CHANGED
@@ -7,13 +7,13 @@ import { IDrawingManagerService, UniverDrawingPlugin, getDrawingShapeKeyByDrawin
7
7
  import { DocumentEditArea, IRenderManagerService, UniverRenderEnginePlugin, withCurrentTypeOfRenderer } from "@univerjs/engine-render";
8
8
  import { ThreadCommentAnchorKind, ThreadCommentModel, UniverThreadCommentPlugin, deserializeThreadCommentAnchor, getDT, serializeThreadCommentAnchor } from "@univerjs/thread-comment";
9
9
  import { ComponentManager, ContextMenuGroup, ContextMenuPosition, FloatingObjectToolbarPosition, IMenuManagerService, ISidebarService, IconManager, MenuItemType, RibbonInsertGroup, getMenuHiddenObservable, useDependency, useObservable } from "@univerjs/ui";
10
- import { BehaviorSubject, Observable, combineLatest, debounceTime, filter, map, merge as merge$1, pairwise, skip, startWith } from "rxjs";
10
+ import { BehaviorSubject, Observable, combineLatest, debounceTime, defer, distinctUntilChanged, filter, map, merge as merge$1, pairwise, skip, startWith } from "rxjs";
11
11
  import { UnitAction } from "@univerjs/protocol";
12
12
  import { CommentIcon, InsertCommentDoubleIcon } from "@univerjs/icons";
13
13
  import { useEffect, useMemo, useState } from "react";
14
14
  import { jsx } from "react/jsx-runtime";
15
15
 
16
- //#region src/commands/commands/add-doc-comment.command.ts
16
+ // src/commands/commands/add-doc-comment.command.ts
17
17
  /** Adds a document comment and activates it in the UI comment panel. */
18
18
  const AddDocCommentComment = {
19
19
  id: "docs.command.add-comment",
@@ -46,8 +46,7 @@ const AddDocCommentComment = {
46
46
  }
47
47
  };
48
48
 
49
- //#endregion
50
- //#region src/commands/commands/delete-doc-comment.command.ts
49
+ // src/commands/commands/delete-doc-comment.command.ts
51
50
  const DeleteDocCommentComment = {
52
51
  id: "docs.command.delete-comment",
53
52
  type: CommandType.COMMAND,
@@ -64,8 +63,7 @@ const DeleteDocCommentComment = {
64
63
  }
65
64
  };
66
65
 
67
- //#endregion
68
- //#region src/common/const.ts
66
+ // src/common/const.ts
69
67
  /**
70
68
  * Copyright 2023-present DreamNum Co., Ltd.
71
69
  *
@@ -84,8 +82,7 @@ const DeleteDocCommentComment = {
84
82
  const DOCS_THREAD_COMMENT_PANEL = "univer.doc.thread-comment-panel";
85
83
  const PLUGIN_NAME = "DOC_THREAD_COMMENT_UI_PLUGIN";
86
84
 
87
- //#endregion
88
- //#region \0@oxc-project+runtime@0.153.0/helpers/esm/typeof.js
85
+ // \0@oxc-project+runtime@0.157.0/helpers/esm/typeof.js
89
86
  function _typeof(o) {
90
87
  "@babel/helpers - typeof";
91
88
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -95,28 +92,25 @@ function _typeof(o) {
95
92
  }, _typeof(o);
96
93
  }
97
94
 
98
- //#endregion
99
- //#region \0@oxc-project+runtime@0.153.0/helpers/esm/toPrimitive.js
100
- function toPrimitive(t, r) {
95
+ // \0@oxc-project+runtime@0.157.0/helpers/esm/toPrimitive.js
96
+ function toPrimitive(t, e) {
101
97
  if ("object" != _typeof(t) || !t) return t;
102
- var e = t[Symbol.toPrimitive];
103
- if (void 0 !== e) {
104
- var i = e.call(t, r || "default");
98
+ var r;
99
+ if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) {
100
+ var i = r.call(t, e || "default");
105
101
  if ("object" != _typeof(i)) return i;
106
102
  throw new TypeError("@@toPrimitive must return a primitive value.");
107
103
  }
108
- return ("string" === r ? String : Number)(t);
104
+ return ("string" === e ? String : Number)(t);
109
105
  }
110
106
 
111
- //#endregion
112
- //#region \0@oxc-project+runtime@0.153.0/helpers/esm/toPropertyKey.js
107
+ // \0@oxc-project+runtime@0.157.0/helpers/esm/toPropertyKey.js
113
108
  function toPropertyKey(t) {
114
109
  var i = toPrimitive(t, "string");
115
110
  return "symbol" == _typeof(i) ? i : i + "";
116
111
  }
117
112
 
118
- //#endregion
119
- //#region \0@oxc-project+runtime@0.153.0/helpers/esm/defineProperty.js
113
+ // \0@oxc-project+runtime@0.157.0/helpers/esm/defineProperty.js
120
114
  function _defineProperty(e, r, t) {
121
115
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
122
116
  value: t,
@@ -126,16 +120,14 @@ function _defineProperty(e, r, t) {
126
120
  }) : e[r] = t, e;
127
121
  }
128
122
 
129
- //#endregion
130
- //#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorateParam.js
123
+ // \0@oxc-project+runtime@0.157.0/helpers/esm/decorateParam.js
131
124
  function __decorateParam(paramIndex, decorator) {
132
125
  return function(target, key) {
133
126
  decorator(target, key, paramIndex);
134
127
  };
135
128
  }
136
129
 
137
- //#endregion
138
- //#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorate.js
130
+ // \0@oxc-project+runtime@0.157.0/helpers/esm/decorate.js
139
131
  function __decorate(decorators, target, key, desc) {
140
132
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
141
133
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -143,8 +135,7 @@ function __decorate(decorators, target, key, desc) {
143
135
  return c > 3 && r && Object.defineProperty(target, key, r), r;
144
136
  }
145
137
 
146
- //#endregion
147
- //#region src/services/doc-thread-comment.service.ts
138
+ // src/services/doc-thread-comment.service.ts
148
139
  let DocThreadCommentService = class DocThreadCommentService extends Disposable {
149
140
  get addingComment() {
150
141
  return this._addingComment$.getValue();
@@ -168,8 +159,7 @@ let DocThreadCommentService = class DocThreadCommentService extends Disposable {
168
159
  };
169
160
  DocThreadCommentService = __decorate([__decorateParam(0, ISidebarService), __decorateParam(1, Inject(ThreadCommentPanelService))], DocThreadCommentService);
170
161
 
171
- //#endregion
172
- //#region src/commands/operations/show-comment-panel.operation.ts
162
+ // src/commands/operations/show-comment-panel.operation.ts
173
163
  const ShowCommentPanelOperation = {
174
164
  id: "docs.operation.show-comment-panel",
175
165
  type: CommandType.OPERATION,
@@ -294,8 +284,7 @@ const AddDocDrawingCommentOperation = {
294
284
  }
295
285
  };
296
286
 
297
- //#endregion
298
- //#region src/menu/menu.ts
287
+ // src/menu/menu.ts
299
288
  /**
300
289
  * Copyright 2023-present DreamNum Co., Ltd.
301
290
  *
@@ -354,7 +343,12 @@ function AddDocCommentMenuItemFactory(accessor) {
354
343
  };
355
344
  }
356
345
  function ToolbarDocCommentMenuItemFactory(accessor) {
346
+ const sidebarService = accessor.get(ISidebarService);
357
347
  return {
348
+ activated$: defer(() => sidebarService.sidebarOptions$.pipe(startWith(sidebarService.options), map((options) => {
349
+ var _options$children;
350
+ return options.visible === true && ((_options$children = options.children) === null || _options$children === void 0 ? void 0 : _options$children.label) === "univer.doc.thread-comment-panel";
351
+ }), distinctUntilChanged())),
358
352
  id: ToggleCommentPanelOperation.id,
359
353
  type: MenuItemType.BUTTON,
360
354
  icon: "CommentIcon",
@@ -364,8 +358,7 @@ function ToolbarDocCommentMenuItemFactory(accessor) {
364
358
  };
365
359
  }
366
360
 
367
- //#endregion
368
- //#region src/menu/schema.ts
361
+ // src/menu/schema.ts
369
362
  const menuSchema = {
370
363
  [RibbonInsertGroup.OTHERS]: {
371
364
  [ToggleCommentPanelOperation.id]: {
@@ -401,19 +394,16 @@ const menuSchema = {
401
394
  } } }
402
395
  };
403
396
 
404
- //#endregion
405
- //#region package.json
397
+ // package.json
406
398
  var name = "@univerjs/docs-thread-comment-ui";
407
- var version = "1.3.1";
399
+ var version = "1.5.0";
408
400
 
409
- //#endregion
410
- //#region src/config/config.ts
401
+ // src/config/config.ts
411
402
  const DOCS_THREAD_COMMENT_UI_PLUGIN_CONFIG_KEY = "docs-thread-comment-ui.config";
412
403
  const configSymbol = Symbol(DOCS_THREAD_COMMENT_UI_PLUGIN_CONFIG_KEY);
413
404
  const defaultPluginConfig = {};
414
405
 
415
- //#endregion
416
- //#region src/views/DocThreadCommentPanel.tsx
406
+ // src/views/DocThreadCommentPanel.tsx
417
407
  function getDocCommentPanelSubUnitId(draft, unitId) {
418
408
  return draft && draft.unitId === unitId ? draft.subUnitId : DEFAULT_DOC_SUBUNIT_ID;
419
409
  }
@@ -522,8 +512,7 @@ const DocThreadCommentPanel = () => {
522
512
  });
523
513
  };
524
514
 
525
- //#endregion
526
- //#region src/controllers/components.controller.ts
515
+ // src/controllers/components.controller.ts
527
516
  /**
528
517
  * Copyright 2023-present DreamNum Co., Ltd.
529
518
  *
@@ -561,8 +550,7 @@ let ComponentsController = class ComponentsController extends Disposable {
561
550
  };
562
551
  ComponentsController = __decorate([__decorateParam(0, Inject(ComponentManager)), __decorateParam(1, Inject(IconManager))], ComponentsController);
563
552
 
564
- //#endregion
565
- //#region src/controllers/doc-thread-comment-selection.controller.ts
553
+ // src/controllers/doc-thread-comment-selection.controller.ts
566
554
  let DocThreadCommentSelectionController = class DocThreadCommentSelectionController extends Disposable {
567
555
  constructor(_threadCommentPanelService, _univerInstanceService, _commandService, _docThreadCommentService, _renderManagerService, _threadCommentModel) {
568
556
  super();
@@ -642,8 +630,7 @@ DocThreadCommentSelectionController = __decorate([
642
630
  __decorateParam(5, Inject(ThreadCommentModel))
643
631
  ], DocThreadCommentSelectionController);
644
632
 
645
- //#endregion
646
- //#region src/controllers/render-controllers/render.controller.ts
633
+ // src/controllers/render-controllers/render.controller.ts
647
634
  const DOC_COMMENT_DRAWING_OVERLAY_KEY = "doc-thread-comment-drawing-overlay";
648
635
  const DOC_COMMENT_DRAWING_OVERLAY_LAYER_INDEX = 10100;
649
636
  let DocThreadCommentRenderController = class DocThreadCommentRenderController extends Disposable {
@@ -834,8 +821,7 @@ DocThreadCommentRenderController = __decorate([
834
821
  __decorateParam(7, Inject(ThemeService))
835
822
  ], DocThreadCommentRenderController);
836
823
 
837
- //#endregion
838
- //#region src/controllers/ui.controller.ts
824
+ // src/controllers/ui.controller.ts
839
825
  /**
840
826
  * Copyright 2023-present DreamNum Co., Ltd.
841
827
  *
@@ -878,8 +864,7 @@ let DocThreadCommentUIController = class DocThreadCommentUIController extends Di
878
864
  };
879
865
  DocThreadCommentUIController = __decorate([__decorateParam(0, ICommandService), __decorateParam(1, IMenuManagerService)], DocThreadCommentUIController);
880
866
 
881
- //#endregion
882
- //#region src/mobile-plugin.ts
867
+ // src/mobile-plugin.ts
883
868
  let UniverDocsThreadCommentMobileUIPlugin = class UniverDocsThreadCommentMobileUIPlugin extends Plugin {
884
869
  constructor(_config = defaultPluginConfig, _injector, _renderManagerSrv, _configService) {
885
870
  super();
@@ -922,8 +907,7 @@ UniverDocsThreadCommentMobileUIPlugin = __decorate([
922
907
  __decorateParam(3, IConfigService)
923
908
  ], UniverDocsThreadCommentMobileUIPlugin);
924
909
 
925
- //#endregion
926
- //#region src/plugin.ts
910
+ // src/plugin.ts
927
911
  const STARTING_DEPENDENCIES = [
928
912
  [DocThreadCommentUIController],
929
913
  [DocThreadCommentSelectionController],
@@ -967,5 +951,4 @@ UniverDocsThreadCommentUIPlugin = __decorate([
967
951
  __decorateParam(3, IConfigService)
968
952
  ], UniverDocsThreadCommentUIPlugin);
969
953
 
970
- //#endregion
971
954
  export { AddDocCommentComment, DeleteDocCommentComment, menuSchema as DocsThreadCommentUIMenuSchema, ShowCommentPanelOperation, StartAddCommentOperation, UniverDocsThreadCommentMobileUIPlugin, UniverDocsThreadCommentUIPlugin };
@@ -1,9 +1,8 @@
1
- //#region src/locale/ar-SA.ts
1
+ // src/locale/ar-SA.ts
2
2
  const locale = { "docs-thread-comment-ui": { panel: {
3
3
  title: "إدارة التعليقات",
4
4
  addComment: "إضافة تعليق",
5
5
  openComments: "فتح التعليقات"
6
6
  } } };
7
7
 
8
- //#endregion
9
8
  export { locale as default };
@@ -1,9 +1,8 @@
1
- //#region src/locale/ca-ES.ts
1
+ // src/locale/ca-ES.ts
2
2
  const locale = { "docs-thread-comment-ui": { panel: {
3
3
  title: "Gestió de comentaris",
4
4
  addComment: "Afegeix un comentari",
5
5
  openComments: "Obre els comentaris"
6
6
  } } };
7
7
 
8
- //#endregion
9
8
  export { locale as default };
@@ -1,9 +1,8 @@
1
- //#region src/locale/de-DE.ts
1
+ // src/locale/de-DE.ts
2
2
  const locale = { "docs-thread-comment-ui": { panel: {
3
3
  title: "Kommentarverwaltung",
4
4
  addComment: "Kommentar hinzufügen",
5
5
  openComments: "Kommentare öffnen"
6
6
  } } };
7
7
 
8
- //#endregion
9
8
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/en-US.ts
1
+ // src/locale/en-US.ts
2
2
  /**
3
3
  * Copyright 2023-present DreamNum Co., Ltd.
4
4
  *
@@ -20,5 +20,4 @@ const locale = { "docs-thread-comment-ui": { panel: {
20
20
  openComments: "Comments"
21
21
  } } };
22
22
 
23
- //#endregion
24
23
  export { locale as default };
@@ -1,9 +1,8 @@
1
- //#region src/locale/es-ES.ts
1
+ // src/locale/es-ES.ts
2
2
  const locale = { "docs-thread-comment-ui": { panel: {
3
3
  title: "Gestión de comentarios",
4
4
  addComment: "Añadir comentario",
5
5
  openComments: "Abrir comentarios"
6
6
  } } };
7
7
 
8
- //#endregion
9
8
  export { locale as default };
@@ -1,9 +1,8 @@
1
- //#region src/locale/fa-IR.ts
1
+ // src/locale/fa-IR.ts
2
2
  const locale = { "docs-thread-comment-ui": { panel: {
3
3
  title: "مدیریت نظرات",
4
4
  addComment: "افزودن نظر",
5
5
  openComments: "باز کردن نظرات"
6
6
  } } };
7
7
 
8
- //#endregion
9
8
  export { locale as default };
@@ -1,9 +1,8 @@
1
- //#region src/locale/fr-FR.ts
1
+ // src/locale/fr-FR.ts
2
2
  const locale = { "docs-thread-comment-ui": { panel: {
3
3
  title: "Gestion des commentaires",
4
4
  addComment: "Ajouter un commentaire",
5
5
  openComments: "Ouvrir les commentaires"
6
6
  } } };
7
7
 
8
- //#endregion
9
8
  export { locale as default };
@@ -1,9 +1,8 @@
1
- //#region src/locale/id-ID.ts
1
+ // src/locale/id-ID.ts
2
2
  const locale = { "docs-thread-comment-ui": { panel: {
3
3
  title: "Manajemen Komentar",
4
4
  addComment: "Tambah Komentar",
5
5
  openComments: "Buka Komentar"
6
6
  } } };
7
7
 
8
- //#endregion
9
8
  export { locale as default };
@@ -1,9 +1,8 @@
1
- //#region src/locale/it-IT.ts
1
+ // src/locale/it-IT.ts
2
2
  const locale = { "docs-thread-comment-ui": { panel: {
3
3
  title: "Gestione Commenti",
4
4
  addComment: "Aggiungi Commento",
5
5
  openComments: "Apri commenti"
6
6
  } } };
7
7
 
8
- //#endregion
9
8
  export { locale as default };
@@ -1,9 +1,8 @@
1
- //#region src/locale/ja-JP.ts
1
+ // src/locale/ja-JP.ts
2
2
  const locale = { "docs-thread-comment-ui": { panel: {
3
3
  title: "コメント管理",
4
4
  addComment: "コメントを追加",
5
5
  openComments: "コメントを開く"
6
6
  } } };
7
7
 
8
- //#endregion
9
8
  export { locale as default };
@@ -1,9 +1,8 @@
1
- //#region src/locale/ko-KR.ts
1
+ // src/locale/ko-KR.ts
2
2
  const locale = { "docs-thread-comment-ui": { panel: {
3
3
  title: "댓글 관리",
4
4
  addComment: "댓글 추가",
5
5
  openComments: "댓글 열기"
6
6
  } } };
7
7
 
8
- //#endregion
9
8
  export { locale as default };
@@ -1,9 +1,8 @@
1
- //#region src/locale/pl-PL.ts
1
+ // src/locale/pl-PL.ts
2
2
  const locale = { "docs-thread-comment-ui": { panel: {
3
3
  title: "Zarządzanie komentarzami",
4
4
  addComment: "Dodaj komentarz",
5
5
  openComments: "Otwórz komentarze"
6
6
  } } };
7
7
 
8
- //#endregion
9
8
  export { locale as default };
@@ -1,9 +1,8 @@
1
- //#region src/locale/pt-BR.ts
1
+ // src/locale/pt-BR.ts
2
2
  const locale = { "docs-thread-comment-ui": { panel: {
3
3
  title: "Gerenciamento de Comentários",
4
4
  addComment: "Adicionar Comentário",
5
5
  openComments: "Abrir comentários"
6
6
  } } };
7
7
 
8
- //#endregion
9
8
  export { locale as default };
@@ -1,9 +1,8 @@
1
- //#region src/locale/ru-RU.ts
1
+ // src/locale/ru-RU.ts
2
2
  const locale = { "docs-thread-comment-ui": { panel: {
3
3
  title: "Управление комментариями",
4
4
  addComment: "Добавить комментарий",
5
5
  openComments: "Открыть комментарии"
6
6
  } } };
7
7
 
8
- //#endregion
9
8
  export { locale as default };
@@ -1,9 +1,8 @@
1
- //#region src/locale/sk-SK.ts
1
+ // src/locale/sk-SK.ts
2
2
  const locale = { "docs-thread-comment-ui": { panel: {
3
3
  title: "Správa komentárov",
4
4
  addComment: "Pridať komentár",
5
5
  openComments: "Otvoriť komentáre"
6
6
  } } };
7
7
 
8
- //#endregion
9
8
  export { locale as default };
@@ -1,9 +1,8 @@
1
- //#region src/locale/vi-VN.ts
1
+ // src/locale/vi-VN.ts
2
2
  const locale = { "docs-thread-comment-ui": { panel: {
3
3
  title: "Quản lý Bình luận",
4
4
  addComment: "Thêm bình luận",
5
5
  openComments: "Mở bình luận"
6
6
  } } };
7
7
 
8
- //#endregion
9
8
  export { locale as default };
@@ -1,9 +1,8 @@
1
- //#region src/locale/zh-CN.ts
1
+ // src/locale/zh-CN.ts
2
2
  const locale = { "docs-thread-comment-ui": { panel: {
3
3
  title: "评论管理",
4
4
  addComment: "添加评论",
5
5
  openComments: "打开评论"
6
6
  } } };
7
7
 
8
- //#endregion
9
8
  export { locale as default };
@@ -1,9 +1,8 @@
1
- //#region src/locale/zh-HK.ts
1
+ // src/locale/zh-HK.ts
2
2
  const locale = { "docs-thread-comment-ui": { panel: {
3
3
  title: "評論管理",
4
4
  addComment: "新增評論",
5
5
  openComments: "開啟評論"
6
6
  } } };
7
7
 
8
- //#endregion
9
8
  export { locale as default };
@@ -1,9 +1,8 @@
1
- //#region src/locale/zh-TW.ts
1
+ // src/locale/zh-TW.ts
2
2
  const locale = { "docs-thread-comment-ui": { panel: {
3
3
  title: "評論管理",
4
4
  addComment: "新增評論",
5
5
  openComments: "開啟評論"
6
6
  } } };
7
7
 
8
- //#endregion
9
8
  export { locale as default };