artalk 2.6.4 → 2.7.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/dist/Artalk.css +1 -1
- package/dist/Artalk.es.js +7756 -7432
- package/dist/Artalk.es.js.map +1 -0
- package/dist/Artalk.iife.js +2 -1
- package/dist/Artalk.iife.js.map +1 -0
- package/dist/Artalk.js +2 -1
- package/dist/Artalk.js.map +1 -0
- package/dist/ArtalkLite.css +1 -1
- package/dist/ArtalkLite.es.js +5576 -5252
- package/dist/ArtalkLite.es.js.map +1 -0
- package/dist/ArtalkLite.iife.js +2 -1
- package/dist/ArtalkLite.iife.js.map +1 -0
- package/dist/ArtalkLite.js +2 -1
- package/dist/ArtalkLite.js.map +1 -0
- package/dist/i18n/jp.js +1 -1
- package/dist/i18n/zh-TW.js +1 -1
- package/dist/src/api/{api-base.d.ts → _base.d.ts} +3 -7
- package/dist/src/api/_options.d.ts +19 -0
- package/dist/src/api/{request.d.ts → _request.d.ts} +3 -3
- package/dist/src/api/admin.d.ts +1 -1
- package/dist/src/api/captcha.d.ts +1 -1
- package/dist/src/api/comment.d.ts +2 -2
- package/dist/src/api/index.d.ts +2 -4
- package/dist/src/api/page.d.ts +3 -3
- package/dist/src/api/site.d.ts +2 -2
- package/dist/src/api/system.d.ts +13 -3
- package/dist/src/api/upload.d.ts +1 -1
- package/dist/src/api/user.d.ts +2 -2
- package/dist/src/artalk.d.ts +12 -37
- package/dist/src/comment/actions.d.ts +1 -1
- package/dist/src/comment/comment.d.ts +3 -4
- package/dist/src/comment/render.d.ts +21 -3
- package/dist/src/comment/renders/actions.d.ts +2 -2
- package/dist/src/comment/renders/avatar.d.ts +2 -2
- package/dist/src/comment/renders/content.d.ts +2 -2
- package/dist/src/comment/renders/header.d.ts +2 -2
- package/dist/src/comment/renders/index.d.ts +2 -2
- package/dist/src/comment/renders/pending.d.ts +2 -2
- package/dist/src/comment/renders/reply-at.d.ts +2 -2
- package/dist/src/comment/renders/reply-to.d.ts +2 -2
- package/dist/src/components/action-btn.d.ts +3 -5
- package/dist/src/{lib → components}/checker/admin.d.ts +1 -1
- package/dist/src/{lib → components}/checker/captcha-renders.d.ts +1 -1
- package/dist/src/{lib → components}/checker/captcha.d.ts +1 -1
- package/dist/src/{lib → components}/checker/index.d.ts +10 -7
- package/dist/src/components/dark-mode.d.ts +2 -0
- package/dist/src/components/dialog.d.ts +1 -3
- package/dist/src/components/error-dialog.d.ts +8 -0
- package/dist/src/components/pagination.d.ts +4 -3
- package/dist/src/components/read-more-btn.d.ts +3 -3
- package/dist/src/config.d.ts +24 -8
- package/dist/src/context.d.ts +16 -35
- package/dist/src/data.d.ts +27 -0
- package/dist/src/defaults.d.ts +1 -1
- package/dist/src/editor/editor.d.ts +14 -61
- package/dist/src/editor/state.d.ts +20 -0
- package/dist/src/i18n/en.d.ts +3 -0
- package/dist/src/i18n/external.d.ts +3 -0
- package/dist/src/i18n/index.d.ts +9 -0
- package/dist/src/i18n/jp.d.ts +3 -0
- package/dist/src/i18n/zh-CN.d.ts +1 -1
- package/dist/src/i18n/zh-TW.d.ts +3 -0
- package/dist/src/layer/index.d.ts +4 -3
- package/dist/src/layer/layer-manager.d.ts +9 -0
- package/dist/src/layer/layer.d.ts +8 -28
- package/dist/src/layer/scrollbar-helper.d.ts +5 -0
- package/dist/src/layer/sidebar-layer.d.ts +6 -6
- package/dist/src/layer/wrap.d.ts +13 -0
- package/dist/src/lib/component.d.ts +3 -8
- package/dist/src/lib/event-manager.d.ts +28 -0
- package/dist/src/lib/highlight.d.ts +1 -0
- package/dist/src/lib/marked-renderer.d.ts +4 -0
- package/dist/src/lib/marked.d.ts +4 -2
- package/dist/src/lib/sanitizer.d.ts +1 -0
- package/dist/src/lib/ui.d.ts +3 -2
- package/dist/src/lib/user.d.ts +8 -5
- package/dist/src/lib/utils.d.ts +11 -5
- package/dist/src/list/comment.d.ts +3 -0
- package/dist/src/list/layout.d.ts +23 -0
- package/dist/src/list/list.d.ts +13 -25
- package/dist/src/list/{list-nest.d.ts → nest.d.ts} +1 -1
- package/dist/src/list/page.d.ts +2 -0
- package/dist/src/list/paginator/index.d.ts +22 -7
- package/dist/src/list/paginator/read-more.d.ts +18 -0
- package/dist/src/list/paginator/up-down.d.ts +14 -0
- package/dist/src/main.d.ts +5 -0
- package/dist/src/plugins/admin-only-elem.d.ts +2 -0
- package/dist/src/plugins/conf-remoter.d.ts +2 -0
- package/dist/src/plugins/dark-mode.d.ts +2 -0
- package/dist/src/plugins/editor/_kit.d.ts +27 -0
- package/dist/src/plugins/editor/_plug.d.ts +29 -0
- package/dist/src/plugins/editor/_sample.d.ts +5 -0
- package/dist/src/plugins/editor/closable.d.ts +7 -0
- package/dist/src/{editor/plugs/emoticons-plug.d.ts → plugins/editor/emoticons.d.ts} +10 -16
- package/dist/src/plugins/editor/header-event.d.ts +6 -0
- package/dist/src/plugins/editor/header-link.d.ts +6 -0
- package/dist/src/plugins/editor/header-user.d.ts +16 -0
- package/dist/src/plugins/editor/index.d.ts +6 -0
- package/dist/src/plugins/editor/local-storage.d.ts +6 -0
- package/dist/src/plugins/editor/mover.d.ts +6 -0
- package/dist/src/plugins/editor/preview.d.ts +7 -0
- package/dist/src/plugins/editor/state-edit.d.ts +11 -0
- package/dist/src/plugins/editor/state-reply.d.ts +8 -0
- package/dist/src/plugins/editor/submit-add.d.ts +18 -0
- package/dist/src/plugins/editor/submit-btn.d.ts +5 -0
- package/dist/src/plugins/editor/submit.d.ts +17 -0
- package/dist/src/plugins/editor/textarea.d.ts +8 -0
- package/dist/src/plugins/editor/upload.d.ts +9 -0
- package/dist/src/plugins/editor-kit.d.ts +42 -0
- package/dist/src/plugins/index.d.ts +2 -0
- package/dist/src/plugins/list/copyright.d.ts +2 -0
- package/dist/src/plugins/list/count.d.ts +2 -0
- package/dist/src/plugins/list/dropdown.d.ts +2 -0
- package/dist/src/plugins/list/error-dialog.d.ts +2 -0
- package/dist/src/plugins/list/fetch.d.ts +2 -0
- package/dist/src/plugins/list/goto-first.d.ts +3 -0
- package/dist/src/plugins/list/goto.d.ts +2 -0
- package/dist/src/plugins/list/index.d.ts +3 -0
- package/dist/src/plugins/list/loading.d.ts +2 -0
- package/dist/src/plugins/list/no-comment.d.ts +2 -0
- package/dist/src/plugins/list/reach-bottom.d.ts +2 -0
- package/dist/src/plugins/list/sidebar-btn.d.ts +2 -0
- package/dist/src/plugins/list/time-ticking.d.ts +3 -0
- package/dist/src/plugins/list/unread-badge.d.ts +2 -0
- package/dist/src/plugins/list/unread.d.ts +2 -0
- package/dist/src/plugins/list/with-editor.d.ts +2 -0
- package/dist/src/plugins/markdown.d.ts +2 -0
- package/dist/src/plugins/stat.d.ts +13 -0
- package/dist/src/plugins/version-check.d.ts +2 -0
- package/dist/src/service.d.ts +19 -23
- package/dist/tests/e2e/comment-add.spec.d.ts +1 -0
- package/dist/types/config.d.ts +110 -0
- package/dist/types/context.d.ts +56 -136
- package/dist/types/data.d.ts +194 -0
- package/dist/types/editor.d.ts +76 -0
- package/dist/types/event.d.ts +36 -25
- package/dist/types/index.d.ts +7 -0
- package/dist/types/plugin.d.ts +2 -0
- package/dist/types/sidebar.d.ts +3 -0
- package/package.json +5 -2
- package/src/api/_base.ts +18 -0
- package/src/api/_options.ts +25 -0
- package/src/api/{request.ts → _request.ts} +19 -18
- package/src/api/admin.ts +1 -1
- package/src/api/captcha.ts +1 -1
- package/src/api/comment.ts +4 -4
- package/src/api/index.ts +3 -12
- package/src/api/page.ts +5 -5
- package/src/api/site.ts +2 -2
- package/src/api/system.ts +19 -7
- package/src/api/upload.ts +3 -3
- package/src/api/user.ts +3 -3
- package/src/artalk.ts +47 -99
- package/src/comment/actions.ts +1 -4
- package/src/comment/comment.ts +9 -6
- package/src/comment/render.ts +27 -5
- package/src/comment/renders/actions.ts +45 -45
- package/src/comment/renders/avatar.ts +7 -7
- package/src/comment/renders/content.ts +18 -18
- package/src/comment/renders/header.ts +13 -13
- package/src/comment/renders/index.ts +3 -3
- package/src/comment/renders/pending.ts +5 -5
- package/src/comment/renders/reply-at.ts +8 -8
- package/src/comment/renders/reply-to.ts +13 -13
- package/src/components/action-btn.ts +11 -13
- package/src/{lib → components}/checker/admin.ts +6 -6
- package/src/{lib → components}/checker/captcha-renders.ts +7 -6
- package/src/{lib → components}/checker/captcha.ts +1 -1
- package/src/{lib → components}/checker/index.ts +21 -26
- package/src/components/dark-mode.ts +30 -0
- package/src/components/dialog.ts +4 -9
- package/src/components/error-dialog.ts +35 -0
- package/src/components/pagination.ts +10 -6
- package/src/components/read-more-btn.ts +7 -7
- package/src/config.ts +60 -6
- package/src/context.ts +39 -144
- package/src/data.ts +110 -0
- package/src/defaults.ts +1 -1
- package/src/editor/editor.ts +39 -152
- package/src/editor/state.ts +52 -0
- package/src/i18n/en.ts +3 -0
- package/src/i18n/jp.ts +3 -0
- package/src/i18n/zh-CN.ts +4 -1
- package/src/i18n/zh-TW.ts +3 -0
- package/src/layer/index.ts +4 -4
- package/src/layer/layer-manager.ts +32 -0
- package/src/layer/layer.ts +20 -144
- package/src/layer/scrollbar-helper.ts +24 -0
- package/src/layer/sidebar-layer.ts +74 -64
- package/src/layer/wrap.ts +77 -0
- package/src/lib/component.ts +4 -11
- package/src/lib/detect.ts +1 -1
- package/src/lib/event-manager.ts +47 -0
- package/src/lib/highlight.ts +5 -0
- package/src/lib/marked-renderer.ts +32 -0
- package/src/lib/marked.ts +43 -104
- package/src/lib/sanitizer.ts +57 -0
- package/src/lib/ui.ts +22 -15
- package/src/lib/user.ts +21 -16
- package/src/lib/utils.ts +29 -18
- package/src/list/comment.ts +20 -0
- package/src/list/layout.ts +120 -0
- package/src/list/list.html +3 -1
- package/src/list/list.ts +56 -200
- package/src/list/{list-nest.ts → nest.ts} +1 -1
- package/src/list/page.ts +97 -0
- package/src/list/paginator/index.ts +20 -8
- package/src/list/paginator/read-more.ts +67 -0
- package/src/list/paginator/up-down.ts +51 -0
- package/src/main.ts +11 -0
- package/src/plugins/admin-only-elem.ts +40 -0
- package/src/plugins/conf-remoter.ts +54 -0
- package/src/plugins/dark-mode.ts +12 -0
- package/src/plugins/editor/_kit.ts +57 -0
- package/src/plugins/editor/_plug.ts +60 -0
- package/src/plugins/editor/_sample.ts +8 -0
- package/src/plugins/editor/closable.ts +44 -0
- package/src/{editor/plugs/emoticons-plug.ts → plugins/editor/emoticons.ts} +51 -52
- package/src/plugins/editor/header-event.ts +35 -0
- package/src/plugins/editor/header-link.ts +31 -0
- package/src/plugins/editor/header-user.ts +98 -0
- package/src/plugins/editor/index.ts +40 -0
- package/src/plugins/editor/local-storage.ts +36 -0
- package/src/plugins/editor/mover.ts +29 -0
- package/src/plugins/editor/preview.ts +41 -0
- package/src/plugins/editor/state-edit.ts +116 -0
- package/src/plugins/editor/state-reply.ts +91 -0
- package/src/plugins/editor/submit-add.ts +33 -0
- package/src/plugins/editor/submit-btn.ts +25 -0
- package/src/plugins/editor/submit.ts +73 -0
- package/src/plugins/editor/textarea.ts +55 -0
- package/src/plugins/editor/upload.ts +145 -0
- package/src/plugins/editor-kit.ts +161 -0
- package/src/plugins/index.ts +16 -0
- package/src/plugins/list/copyright.ts +16 -0
- package/src/plugins/list/count.ts +31 -0
- package/src/plugins/list/dropdown.ts +95 -0
- package/src/plugins/list/error-dialog.ts +22 -0
- package/src/plugins/list/fetch.ts +64 -0
- package/src/plugins/list/goto-first.ts +23 -0
- package/src/plugins/list/goto.ts +72 -0
- package/src/plugins/list/index.ts +25 -0
- package/src/plugins/list/loading.ts +17 -0
- package/src/plugins/list/no-comment.ts +25 -0
- package/src/plugins/list/reach-bottom.ts +46 -0
- package/src/plugins/list/sidebar-btn.ts +39 -0
- package/src/plugins/list/time-ticking.ts +22 -0
- package/src/plugins/list/unread-badge.ts +26 -0
- package/src/plugins/list/unread.ts +38 -0
- package/src/plugins/list/with-editor.ts +59 -0
- package/src/plugins/markdown.ts +10 -0
- package/src/plugins/stat.ts +82 -0
- package/src/plugins/version-check.ts +36 -0
- package/src/service.ts +34 -61
- package/src/style/comment.scss +5 -7
- package/src/style/editor.scss +5 -0
- package/src/style/list.scss +1 -1
- package/types/{artalk-config.d.ts → config.ts} +16 -2
- package/types/context.ts +84 -0
- package/types/{artalk-data.d.ts → data.ts} +41 -0
- package/types/editor.ts +95 -0
- package/types/event.ts +40 -0
- package/types/index.ts +7 -0
- package/types/plugin.ts +3 -0
- package/types/sidebar.ts +3 -0
- package/dist/src/comment/render-ctx.d.ts +0 -23
- package/dist/src/editor/edit-mode.d.ts +0 -9
- package/dist/src/editor/funcs.d.ts +0 -2
- package/dist/src/editor/index.d.ts +0 -2
- package/dist/src/editor/mover.d.ts +0 -8
- package/dist/src/editor/plug-manager.d.ts +0 -17
- package/dist/src/editor/plugs/editor-plug.d.ts +0 -38
- package/dist/src/editor/plugs/header-input-plug.d.ts +0 -13
- package/dist/src/editor/plugs/preview-plug.d.ts +0 -10
- package/dist/src/editor/plugs/upload-plug.d.ts +0 -10
- package/dist/src/editor/reply.d.ts +0 -9
- package/dist/src/editor/submit.d.ts +0 -16
- package/dist/src/lib/dark-mode.d.ts +0 -4
- package/dist/src/lib/stat.d.ts +0 -15
- package/dist/src/list/index.d.ts +0 -2
- package/dist/src/list/list-lite.d.ts +0 -77
- package/dist/src/list/list-ui.d.ts +0 -16
- package/dist/src/list/paginator/adaptors/index.d.ts +0 -12
- package/dist/src/list/paginator/adaptors/pagination.d.ts +0 -9
- package/dist/src/list/paginator/adaptors/read-more.d.ts +0 -10
- package/dist/src/list/paginator/holder.d.ts +0 -16
- package/dist/types/artalk-config.d.ts +0 -139
- package/dist/types/artalk-data.d.ts +0 -230
- package/dist/types/plug.d.ts +0 -4
- package/src/api/api-base.ts +0 -27
- package/src/comment/render-ctx.ts +0 -30
- package/src/editor/edit-mode.ts +0 -105
- package/src/editor/funcs.ts +0 -150
- package/src/editor/index.ts +0 -3
- package/src/editor/mover.ts +0 -43
- package/src/editor/plug-manager.ts +0 -172
- package/src/editor/plugs/editor-plug.ts +0 -69
- package/src/editor/plugs/header-input-plug.ts +0 -79
- package/src/editor/plugs/preview-plug.ts +0 -44
- package/src/editor/plugs/upload-plug.ts +0 -122
- package/src/editor/reply.ts +0 -62
- package/src/editor/submit.ts +0 -99
- package/src/lib/dark-mode.ts +0 -48
- package/src/lib/stat.ts +0 -71
- package/src/list/index.ts +0 -3
- package/src/list/list-lite.ts +0 -424
- package/src/list/list-ui.ts +0 -137
- package/src/list/paginator/adaptors/index.ts +0 -21
- package/src/list/paginator/adaptors/pagination.ts +0 -42
- package/src/list/paginator/adaptors/read-more.ts +0 -56
- package/src/list/paginator/holder.ts +0 -56
- package/types/context.d.ts +0 -142
- package/types/event.d.ts +0 -28
- package/types/plug.d.ts +0 -4
- /package/src/{editor/plugs/emoticons-plug.scss → plugins/editor/emoticons.scss} +0 -0
- /package/src/{editor/plugs/preview-plug.scss → plugins/editor/preview.scss} +0 -0
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import EditorPlug from './plugs/editor-plug';
|
|
2
|
-
import Editor from './editor';
|
|
3
|
-
/** Context of an editor plug manager */
|
|
4
|
-
export interface PlugManager {
|
|
5
|
-
editor: Editor;
|
|
6
|
-
plugList: {
|
|
7
|
-
[name: string]: EditorPlug;
|
|
8
|
-
};
|
|
9
|
-
openedPlugName: string | null;
|
|
10
|
-
openPlugPanel(plugName: string): void;
|
|
11
|
-
closePlugPanel(): void;
|
|
12
|
-
triggerHeaderInputEvt(field: string, $input: HTMLInputElement): void;
|
|
13
|
-
triggerContentUpdatedEvt(content: string): void;
|
|
14
|
-
getTransformedContent(raw: string): string;
|
|
15
|
-
}
|
|
16
|
-
/** Create an editor plug manager */
|
|
17
|
-
export declare function createPlugManager(editor: Editor): PlugManager;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import Editor from '../editor';
|
|
2
|
-
/**
|
|
3
|
-
* Editor 插件
|
|
4
|
-
*
|
|
5
|
-
* @desc 使用 Interface x Abstract 合并声明
|
|
6
|
-
* @see https://www.typescriptlang.org/docs/handbook/declaration-merging.html#merging-interfaces
|
|
7
|
-
*/
|
|
8
|
-
interface EditorPlug {
|
|
9
|
-
onPanelShow?(): void;
|
|
10
|
-
onPanelHide?(): void;
|
|
11
|
-
}
|
|
12
|
-
declare abstract class EditorPlug {
|
|
13
|
-
protected editor: Editor;
|
|
14
|
-
protected get ctx(): import("../../../types/context").default;
|
|
15
|
-
protected $panel?: HTMLElement;
|
|
16
|
-
protected $btn?: HTMLElement;
|
|
17
|
-
onHeaderInput?: (key: string, $input: HTMLElement) => void;
|
|
18
|
-
contentTransformer?: (rawContent: string) => string;
|
|
19
|
-
onContentUpdated?: (content: string) => void;
|
|
20
|
-
constructor(editor: Editor);
|
|
21
|
-
/** Name of plug */
|
|
22
|
-
static Name: string;
|
|
23
|
-
/** Register plug panel will provide a plug el */
|
|
24
|
-
protected registerPanel(html?: string): HTMLElement;
|
|
25
|
-
/** Register plug btn will add a btn on the bottom of editor */
|
|
26
|
-
protected registerBtn(html: string): HTMLElement;
|
|
27
|
-
/** Register the event of header input is changed */
|
|
28
|
-
protected registerHeaderInputEvt(func: (key: string, $input: HTMLElement) => void): void;
|
|
29
|
-
/** Register the content transformer to handle the content of the last submit by the editor */
|
|
30
|
-
protected registerContentTransformer(func: (raw: string) => string): void;
|
|
31
|
-
/** Register the event of editor content is updated */
|
|
32
|
-
protected registerContentUpdatedEvt(func: (content: string) => void): void;
|
|
33
|
-
/** Get panel element of plug */
|
|
34
|
-
getPanel(): HTMLElement | undefined;
|
|
35
|
-
/** Get btn element of plug */
|
|
36
|
-
getBtn(): HTMLElement | undefined;
|
|
37
|
-
}
|
|
38
|
-
export default EditorPlug;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import Editor from '../editor';
|
|
2
|
-
import EditorPlug from './editor-plug';
|
|
3
|
-
export default class HeaderInputPlug extends EditorPlug {
|
|
4
|
-
static Name: string;
|
|
5
|
-
constructor(editor: Editor);
|
|
6
|
-
queryUserInfo: {
|
|
7
|
-
timeout: number | null;
|
|
8
|
-
abortFunc: (() => void) | null;
|
|
9
|
-
};
|
|
10
|
-
/** 远程获取用户数据 */
|
|
11
|
-
fetchUserInfo(): void;
|
|
12
|
-
showLoginDialog(): void;
|
|
13
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import Editor from '../editor';
|
|
2
|
-
import EditorPlug from './editor-plug';
|
|
3
|
-
export default class PreviewPlug extends EditorPlug {
|
|
4
|
-
static Name: string;
|
|
5
|
-
protected $panel: HTMLElement;
|
|
6
|
-
private isBind;
|
|
7
|
-
constructor(editor: Editor);
|
|
8
|
-
onPanelShow(): void;
|
|
9
|
-
updateContent(): void;
|
|
10
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import Editor from '../editor';
|
|
2
|
-
import EditorPlug from './editor-plug';
|
|
3
|
-
export default class UploadPlug extends EditorPlug {
|
|
4
|
-
static Name: string;
|
|
5
|
-
$imgUploadInput?: HTMLInputElement;
|
|
6
|
-
/** 允许的图片格式 */
|
|
7
|
-
allowImgExts: string[];
|
|
8
|
-
constructor(editor: Editor);
|
|
9
|
-
uploadImg(file: File): Promise<void>;
|
|
10
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { CommentData } from '../../types/artalk-data';
|
|
2
|
-
import Editor from './editor';
|
|
3
|
-
export interface ReplyManager {
|
|
4
|
-
editor: Editor;
|
|
5
|
-
comment?: CommentData;
|
|
6
|
-
setReply(comment: CommentData, $comment: HTMLElement, scroll?: boolean): void;
|
|
7
|
-
cancelReply(): void;
|
|
8
|
-
}
|
|
9
|
-
export declare function createReplyManager(editor: Editor): ReplyManager;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { CommentData } from '../../types/artalk-data';
|
|
2
|
-
import Editor from './editor';
|
|
3
|
-
export interface SubmitManager {
|
|
4
|
-
editor: Editor;
|
|
5
|
-
do: () => Promise<void>;
|
|
6
|
-
customs: CustomSubmit[];
|
|
7
|
-
registerCustom(c: CustomSubmit): void;
|
|
8
|
-
}
|
|
9
|
-
export declare function createSubmitManager(editor: Editor): SubmitManager;
|
|
10
|
-
interface CustomSubmit {
|
|
11
|
-
activeCond: () => void;
|
|
12
|
-
pre?: () => void;
|
|
13
|
-
req?: () => Promise<CommentData>;
|
|
14
|
-
post?: (nComment: CommentData) => void;
|
|
15
|
-
}
|
|
16
|
-
export {};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type Context from '../../types/context';
|
|
2
|
-
export declare function syncDarkModeConf(ctx: Context): void;
|
|
3
|
-
export declare function setDarkMode(ctx: Context, darkMode: boolean | 'auto', alterConf?: boolean): void;
|
|
4
|
-
export declare function updateClassName(ctx: Context, darkMode: boolean): void;
|
package/dist/src/lib/stat.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import ContextApi from '../../types/context';
|
|
2
|
-
import ArtalkPlug from '../../types/plug';
|
|
3
|
-
export interface CountConf {
|
|
4
|
-
ctx: ContextApi;
|
|
5
|
-
/** 是否增加当前页面 PV 数 */
|
|
6
|
-
pvAdd?: boolean;
|
|
7
|
-
}
|
|
8
|
-
export declare const PvCountWidget: ArtalkPlug;
|
|
9
|
-
/** 初始化评论数和 PV 数量展示元素 */
|
|
10
|
-
export declare function initCountWidget(p: CountConf): Promise<void>;
|
|
11
|
-
export declare function handleStatCount(p: CountConf, args: {
|
|
12
|
-
api: 'page_pv' | 'page_comment';
|
|
13
|
-
countEl: string;
|
|
14
|
-
curtPageCount?: number;
|
|
15
|
-
}): Promise<void>;
|
package/dist/src/list/index.d.ts
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { ListData, CommentData, NotifyData } from '../../types/artalk-data';
|
|
2
|
-
import Context from '../../types/context';
|
|
3
|
-
import Component from '../lib/component';
|
|
4
|
-
import Comment from '../comment';
|
|
5
|
-
import PgHolder, { TPgMode } from './paginator';
|
|
6
|
-
import * as ListNest from './list-nest';
|
|
7
|
-
export default class ListLite extends Component {
|
|
8
|
-
/** 列表评论集区域元素 */
|
|
9
|
-
protected $commentsWrap: HTMLElement;
|
|
10
|
-
/** 最后一次请求得到的列表数据 */
|
|
11
|
-
protected data?: ListData;
|
|
12
|
-
/** 是否处于加载中状态 */
|
|
13
|
-
protected isLoading: boolean;
|
|
14
|
-
/** 配置是否已加载 */
|
|
15
|
-
private confLoaded;
|
|
16
|
-
/** 无评论显示文字 */
|
|
17
|
-
noCommentText?: string;
|
|
18
|
-
/** 嵌套模式下的排序方式 */
|
|
19
|
-
private _nestSortBy?;
|
|
20
|
-
get nestSortBy(): ListNest.SortByType;
|
|
21
|
-
set nestSortBy(val: ListNest.SortByType);
|
|
22
|
-
/** 平铺模式 */
|
|
23
|
-
private _flatMode?;
|
|
24
|
-
get flatMode(): boolean;
|
|
25
|
-
set flatMode(val: boolean);
|
|
26
|
-
/** 分页方式 */
|
|
27
|
-
_pageMode?: TPgMode;
|
|
28
|
-
get pageMode(): 'pagination' | 'read-more';
|
|
29
|
-
set pageMode(val: 'pagination' | 'read-more');
|
|
30
|
-
/** 分页方式持有者 */
|
|
31
|
-
pgHolder?: PgHolder;
|
|
32
|
-
/** 每页数量 (每次请求获取量) */
|
|
33
|
-
private _pageSize?;
|
|
34
|
-
get pageSize(): number;
|
|
35
|
-
set pageSize(val: number);
|
|
36
|
-
/** 监听指定元素上的滚动 */
|
|
37
|
-
scrollListenerAt?: HTMLElement;
|
|
38
|
-
/** 翻页归位到指定元素 */
|
|
39
|
-
repositionAt?: HTMLElement;
|
|
40
|
-
renderComment?: (comment: Comment) => void;
|
|
41
|
-
paramsEditor?: (params: any) => void;
|
|
42
|
-
onAfterLoad?: (data: ListData) => void;
|
|
43
|
-
/** 未读标记 */
|
|
44
|
-
protected unread: NotifyData[];
|
|
45
|
-
unreadHighlight?: boolean;
|
|
46
|
-
constructor(ctx: Context);
|
|
47
|
-
getData(): ListData | undefined;
|
|
48
|
-
clearData(): void;
|
|
49
|
-
getLoading(): boolean;
|
|
50
|
-
getCommentsWrapEl(): HTMLElement;
|
|
51
|
-
/** 设置加载状态 */
|
|
52
|
-
setLoading(val: boolean, isFirstLoad?: boolean): void;
|
|
53
|
-
/** 评论获取 */
|
|
54
|
-
fetchComments(offset: number): Promise<void>;
|
|
55
|
-
protected onLoad(data: ListData, offset: number): void;
|
|
56
|
-
/** 分页模式 */
|
|
57
|
-
private refreshPagination;
|
|
58
|
-
/** 错误处理 */
|
|
59
|
-
protected onError(msg: any, offset: number, errData?: any): void;
|
|
60
|
-
/** 刷新界面 */
|
|
61
|
-
refreshUI(): void;
|
|
62
|
-
/** 重新加载列表 */
|
|
63
|
-
reload(): void;
|
|
64
|
-
/** 创建新评论 */
|
|
65
|
-
protected createComment(cData: CommentData, ctxData?: CommentData[]): Comment;
|
|
66
|
-
/** 导入评论 · 通过请求数据 */
|
|
67
|
-
importComments(srcData: CommentData[]): void;
|
|
68
|
-
private importCommentsNest;
|
|
69
|
-
/** 导入评论 · 平铺模式 */
|
|
70
|
-
private putCommentFlatMode;
|
|
71
|
-
/** 新增评论 · 首部添加 */
|
|
72
|
-
insertComment(commentData: CommentData): void;
|
|
73
|
-
/** 更新评论 */
|
|
74
|
-
updateComment(commentData: CommentData): void;
|
|
75
|
-
/** 更新未读数据 */
|
|
76
|
-
updateUnread(notifies: NotifyData[]): void;
|
|
77
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import ListLite from './list-lite';
|
|
2
|
-
/** 界面刷新 */
|
|
3
|
-
export declare function refreshUI(list: ListLite): void;
|
|
4
|
-
/** 构建错误提示界面 */
|
|
5
|
-
export declare function renderErrorDialog(list: ListLite, errMsg: string, errData?: any): HTMLElement;
|
|
6
|
-
/** 版本检测弹窗 */
|
|
7
|
-
export declare function versionCheckDialog(list: ListLite, feVer: string, beVer: string): boolean;
|
|
8
|
-
/** 评论排序方式选择下拉菜单 */
|
|
9
|
-
export declare function renderDropdown(conf: {
|
|
10
|
-
$dropdownWrap: HTMLElement;
|
|
11
|
-
dropdownList: [string, () => void][];
|
|
12
|
-
}): void;
|
|
13
|
-
/** 删除评论排序方式选择下拉菜单 */
|
|
14
|
-
export declare function removeDropdown(conf: {
|
|
15
|
-
$dropdownWrap: HTMLElement;
|
|
16
|
-
}): void;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { IPgHolderConf, TPgMode } from '../index';
|
|
2
|
-
declare const Adaptors: Record<TPgMode, IPgAdaptor<any>>;
|
|
3
|
-
export default Adaptors;
|
|
4
|
-
export interface IPgAdaptor<T> {
|
|
5
|
-
instance: T;
|
|
6
|
-
el: HTMLElement;
|
|
7
|
-
createInstance(conf: IPgHolderConf): [T, HTMLElement];
|
|
8
|
-
setLoading(val: boolean): void;
|
|
9
|
-
update(offset: number, total: number): void;
|
|
10
|
-
next(): void;
|
|
11
|
-
showErr?(msg: string): void;
|
|
12
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import ReadMoreBtn from '../../../components/read-more-btn';
|
|
2
|
-
import { IPgAdaptor } from '.';
|
|
3
|
-
interface IReadMoreAdaptor extends IPgAdaptor<ReadMoreBtn> {
|
|
4
|
-
autoLoadScrollEvent?: () => void;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* 阅读更多形式的分页
|
|
8
|
-
*/
|
|
9
|
-
declare const _default: IReadMoreAdaptor;
|
|
10
|
-
export default _default;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { IPgHolderConf, TPgMode } from '.';
|
|
2
|
-
/**
|
|
3
|
-
* 分页方式持有者(调度器)
|
|
4
|
-
*/
|
|
5
|
-
export default class PgHolder {
|
|
6
|
-
private conf;
|
|
7
|
-
constructor(conf: IPgHolderConf);
|
|
8
|
-
getAdaptor(): import("./adaptors").IPgAdaptor<any>;
|
|
9
|
-
init(): void;
|
|
10
|
-
setLoading(val: boolean): void;
|
|
11
|
-
update(offset: number, total: number): void;
|
|
12
|
-
getEl(): HTMLElement;
|
|
13
|
-
showErr(msg: string): void;
|
|
14
|
-
setMode(val: TPgMode): void;
|
|
15
|
-
next(): void;
|
|
16
|
-
}
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
import { I18n } from '../src/i18n'
|
|
2
|
-
import { CommentData } from './artalk-data'
|
|
3
|
-
|
|
4
|
-
export default interface ArtalkConfig {
|
|
5
|
-
/** 装载元素 */
|
|
6
|
-
el: string|HTMLElement
|
|
7
|
-
|
|
8
|
-
/** 页面唯一标识(完整 URL) */
|
|
9
|
-
pageKey: string
|
|
10
|
-
|
|
11
|
-
/** 页面标题 */
|
|
12
|
-
pageTitle: string
|
|
13
|
-
|
|
14
|
-
/** 服务器地址 */
|
|
15
|
-
server: string
|
|
16
|
-
|
|
17
|
-
/** 站点名 */
|
|
18
|
-
site: string
|
|
19
|
-
|
|
20
|
-
/** 评论框占位字符 */
|
|
21
|
-
placeholder: string
|
|
22
|
-
|
|
23
|
-
/** 评论为空时显示字符 */
|
|
24
|
-
noComment: string
|
|
25
|
-
|
|
26
|
-
/** 发送按钮文字 */
|
|
27
|
-
sendBtn: string
|
|
28
|
-
|
|
29
|
-
/** 评论框穿梭(显示在待回复评论后面) */
|
|
30
|
-
editorTravel: boolean
|
|
31
|
-
|
|
32
|
-
/** 表情包 */
|
|
33
|
-
emoticons: object|any[]|string|false
|
|
34
|
-
|
|
35
|
-
/** Gravatar 头像 */
|
|
36
|
-
gravatar: {
|
|
37
|
-
/** API 地址 */
|
|
38
|
-
mirror: string
|
|
39
|
-
/** API 参数 */
|
|
40
|
-
params: string
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/** 头像链接生成器 */
|
|
44
|
-
avatarURLBuilder?: (comment: CommentData) => string,
|
|
45
|
-
|
|
46
|
-
/** 分页配置 */
|
|
47
|
-
pagination: {
|
|
48
|
-
/** 每次请求获取数量 */
|
|
49
|
-
pageSize: number
|
|
50
|
-
/** 阅读更多模式 */
|
|
51
|
-
readMore: boolean
|
|
52
|
-
/** 滚动到底部自动加载 */
|
|
53
|
-
autoLoad: boolean
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/** 内容限高 */
|
|
57
|
-
heightLimit: {
|
|
58
|
-
/** 评论内容限高 */
|
|
59
|
-
content: number
|
|
60
|
-
|
|
61
|
-
/** 子评论区域限高 */
|
|
62
|
-
children: number
|
|
63
|
-
|
|
64
|
-
/** 滚动限高 */
|
|
65
|
-
scrollable: boolean
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/** 评论投票按钮 */
|
|
69
|
-
vote: boolean
|
|
70
|
-
|
|
71
|
-
/** 评论投票反对按钮 */
|
|
72
|
-
voteDown: boolean
|
|
73
|
-
|
|
74
|
-
/** 评论预览功能 */
|
|
75
|
-
preview: boolean
|
|
76
|
-
|
|
77
|
-
/** 评论数绑定元素 Selector */
|
|
78
|
-
countEl: string
|
|
79
|
-
|
|
80
|
-
/** PV 数绑定元素 Selector */
|
|
81
|
-
pvEl: string
|
|
82
|
-
|
|
83
|
-
/** 夜间模式 */
|
|
84
|
-
darkMode: boolean|'auto'
|
|
85
|
-
|
|
86
|
-
/** 请求超时(单位:秒) */
|
|
87
|
-
reqTimeout: number
|
|
88
|
-
|
|
89
|
-
/** 平铺模式 */
|
|
90
|
-
flatMode: boolean|'auto'
|
|
91
|
-
|
|
92
|
-
/** 嵌套模式 · 最大层数 */
|
|
93
|
-
nestMax: number
|
|
94
|
-
|
|
95
|
-
/** 嵌套模式 · 排序方式 */
|
|
96
|
-
nestSort: 'DATE_ASC'|'DATE_DESC'
|
|
97
|
-
|
|
98
|
-
/** 显示 UA 徽标 */
|
|
99
|
-
uaBadge: boolean
|
|
100
|
-
|
|
101
|
-
/** 评论列表排序功能 (显示 Dropdown) */
|
|
102
|
-
listSort: boolean
|
|
103
|
-
|
|
104
|
-
/** 图片上传功能 */
|
|
105
|
-
imgUpload: boolean
|
|
106
|
-
|
|
107
|
-
/** 图片上传器 */
|
|
108
|
-
imgUploader?: (file: File) => Promise<string>
|
|
109
|
-
|
|
110
|
-
/** 版本检测 */
|
|
111
|
-
versionCheck: boolean
|
|
112
|
-
|
|
113
|
-
/** 引用后端配置 */
|
|
114
|
-
useBackendConf: boolean
|
|
115
|
-
|
|
116
|
-
/** 语言本地化 */
|
|
117
|
-
locale: I18n|string
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* 本地持久化用户数据
|
|
122
|
-
* @note 始终保持一层结构,不支持多层结构
|
|
123
|
-
*/
|
|
124
|
-
export interface LocalUser {
|
|
125
|
-
/** 昵称 */
|
|
126
|
-
nick: string
|
|
127
|
-
|
|
128
|
-
/** 邮箱 */
|
|
129
|
-
email: string
|
|
130
|
-
|
|
131
|
-
/** 链接 */
|
|
132
|
-
link: string
|
|
133
|
-
|
|
134
|
-
/** TOKEN */
|
|
135
|
-
token: string
|
|
136
|
-
|
|
137
|
-
/** 是否为管理员 */
|
|
138
|
-
isAdmin: boolean
|
|
139
|
-
}
|
|
@@ -1,230 +0,0 @@
|
|
|
1
|
-
export interface CommentData {
|
|
2
|
-
/** 评论 ID */
|
|
3
|
-
id: number
|
|
4
|
-
|
|
5
|
-
/** 评论正文 */
|
|
6
|
-
content: string
|
|
7
|
-
|
|
8
|
-
/** 用户昵称 */
|
|
9
|
-
nick: string
|
|
10
|
-
|
|
11
|
-
/** 用户邮箱 (该字段仅管理员可见) */
|
|
12
|
-
email?: string
|
|
13
|
-
|
|
14
|
-
/** 用户邮箱(已加密) */
|
|
15
|
-
email_encrypted: string
|
|
16
|
-
|
|
17
|
-
/** 用户链接 */
|
|
18
|
-
link: string
|
|
19
|
-
|
|
20
|
-
/** 回复目标评论 ID */
|
|
21
|
-
rid: number
|
|
22
|
-
|
|
23
|
-
/** User Agent */
|
|
24
|
-
ua: string
|
|
25
|
-
|
|
26
|
-
/** 评论日期 */
|
|
27
|
-
date: string
|
|
28
|
-
|
|
29
|
-
/** 是否折叠 */
|
|
30
|
-
is_collapsed?: boolean
|
|
31
|
-
|
|
32
|
-
/** 是否待审 */
|
|
33
|
-
is_pending?: boolean
|
|
34
|
-
|
|
35
|
-
/** 是否置顶 */
|
|
36
|
-
is_pinned?: boolean
|
|
37
|
-
|
|
38
|
-
/** 是否为管理员 */
|
|
39
|
-
is_admin?: boolean
|
|
40
|
-
|
|
41
|
-
/** 徽章文字 */
|
|
42
|
-
badge_name?: string
|
|
43
|
-
|
|
44
|
-
/** 徽章颜色 */
|
|
45
|
-
badge_color?: string
|
|
46
|
-
|
|
47
|
-
/** IP 归属地 */
|
|
48
|
-
ip_region?: string
|
|
49
|
-
|
|
50
|
-
/** 是否允许回复 */
|
|
51
|
-
is_allow_reply?: boolean
|
|
52
|
-
|
|
53
|
-
/** 评论页面 key */
|
|
54
|
-
page_key: string
|
|
55
|
-
|
|
56
|
-
/** 评论页面 url */
|
|
57
|
-
page_url?: string
|
|
58
|
-
|
|
59
|
-
/** 是否可见 */
|
|
60
|
-
visible: boolean
|
|
61
|
-
|
|
62
|
-
/** 站点名(用于隔离) */
|
|
63
|
-
site_name: string
|
|
64
|
-
|
|
65
|
-
/** 赞同数 */
|
|
66
|
-
vote_up: number
|
|
67
|
-
|
|
68
|
-
/** 反对数 */
|
|
69
|
-
vote_down: number
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export interface ListData {
|
|
73
|
-
/** 评论数据 */
|
|
74
|
-
comments: CommentData[]
|
|
75
|
-
|
|
76
|
-
/** 根评论总数 */
|
|
77
|
-
total_roots: number
|
|
78
|
-
|
|
79
|
-
/** 评论总数(包括所有子评论) */
|
|
80
|
-
total: number
|
|
81
|
-
|
|
82
|
-
/** 页面信息 */
|
|
83
|
-
page: PageData
|
|
84
|
-
|
|
85
|
-
/** 站点信息 */
|
|
86
|
-
site: SiteData
|
|
87
|
-
|
|
88
|
-
/** 未读的 Notifies */
|
|
89
|
-
unread: NotifyData[]
|
|
90
|
-
|
|
91
|
-
/** 未读计数 */
|
|
92
|
-
unread_count: number
|
|
93
|
-
|
|
94
|
-
/** API 版本 */
|
|
95
|
-
api_version: ApiVersionData
|
|
96
|
-
|
|
97
|
-
/** 后端配置 */
|
|
98
|
-
conf: any // TODO
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
export interface PageData {
|
|
102
|
-
/** 页面 ID */
|
|
103
|
-
id: number
|
|
104
|
-
|
|
105
|
-
/** 页面唯一标识符 */
|
|
106
|
-
key: string
|
|
107
|
-
|
|
108
|
-
/** 页面标题 */
|
|
109
|
-
title: string
|
|
110
|
-
|
|
111
|
-
/** 页面 url */
|
|
112
|
-
url: string
|
|
113
|
-
|
|
114
|
-
/** 仅管理员可评 */
|
|
115
|
-
admin_only: boolean
|
|
116
|
-
|
|
117
|
-
/** 站点名(用于隔离) */
|
|
118
|
-
site_name: string
|
|
119
|
-
|
|
120
|
-
/** 赞同数 */
|
|
121
|
-
vote_up: number
|
|
122
|
-
|
|
123
|
-
/** 反对数 */
|
|
124
|
-
vote_down: number
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
export interface SiteData {
|
|
128
|
-
/** 站点 ID */
|
|
129
|
-
id: number
|
|
130
|
-
|
|
131
|
-
/** 站点名 */
|
|
132
|
-
name: string
|
|
133
|
-
|
|
134
|
-
/** 站点 URLs */
|
|
135
|
-
urls: string[]
|
|
136
|
-
|
|
137
|
-
/** 站点 URLs(原始字符串) */
|
|
138
|
-
urls_raw: string
|
|
139
|
-
|
|
140
|
-
/** 站点主 URL */
|
|
141
|
-
first_url: string
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
export interface UserData {
|
|
145
|
-
/** 用户 ID */
|
|
146
|
-
id: number
|
|
147
|
-
|
|
148
|
-
/** 用户名 */
|
|
149
|
-
name: string
|
|
150
|
-
|
|
151
|
-
/** 邮箱 */
|
|
152
|
-
email: string
|
|
153
|
-
|
|
154
|
-
/** 链接 */
|
|
155
|
-
link: string
|
|
156
|
-
|
|
157
|
-
/** 徽章名称 */
|
|
158
|
-
badge_name: string
|
|
159
|
-
|
|
160
|
-
/** 徽章颜色 */
|
|
161
|
-
badge_color: string
|
|
162
|
-
|
|
163
|
-
/** 是否属于管理员 */
|
|
164
|
-
is_admin: boolean
|
|
165
|
-
|
|
166
|
-
/** 所属站点名 */
|
|
167
|
-
site_names: string[]
|
|
168
|
-
|
|
169
|
-
/** 所属站点名 (字符串) */
|
|
170
|
-
site_names_raw: string,
|
|
171
|
-
|
|
172
|
-
/** 是否允许接收邮件通知 */
|
|
173
|
-
receive_email: boolean
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
export interface UserDataForAdmin extends UserData {
|
|
177
|
-
/** 最后一次操作 IP */
|
|
178
|
-
last_ip: string
|
|
179
|
-
|
|
180
|
-
/** 最后一次操作 UA */
|
|
181
|
-
last_ua: string
|
|
182
|
-
|
|
183
|
-
/** 是否存在于配置文件中 */
|
|
184
|
-
is_in_conf: boolean
|
|
185
|
-
|
|
186
|
-
/** 评论数 */
|
|
187
|
-
comment_count: number
|
|
188
|
-
|
|
189
|
-
/** 密码 */
|
|
190
|
-
password: string
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
export interface NotifyData {
|
|
194
|
-
/** 通知 ID */
|
|
195
|
-
id: number
|
|
196
|
-
|
|
197
|
-
/** 用户 ID */
|
|
198
|
-
user_id: number
|
|
199
|
-
|
|
200
|
-
/** 评论 ID */
|
|
201
|
-
comment_id: number
|
|
202
|
-
|
|
203
|
-
/** 是否已读 */
|
|
204
|
-
is_read: boolean
|
|
205
|
-
|
|
206
|
-
/** 是否已发送邮件通知 */
|
|
207
|
-
is_emailed: boolean
|
|
208
|
-
|
|
209
|
-
/** 标为已读地址 */
|
|
210
|
-
read_link: string
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
export type EmoticonGrpData = {
|
|
214
|
-
name: string,
|
|
215
|
-
type: 'emoticon'|'image'|'emoji'
|
|
216
|
-
items: {key: string, val: string}[]
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
export type EmoticonListData = EmoticonGrpData[]
|
|
220
|
-
|
|
221
|
-
export interface ApiVersionData {
|
|
222
|
-
/** API 程序名 */
|
|
223
|
-
app: string
|
|
224
|
-
|
|
225
|
-
/** API 程序版本号 */
|
|
226
|
-
version: string
|
|
227
|
-
|
|
228
|
-
/** API 程序 CommitHash */
|
|
229
|
-
commit_hash: string
|
|
230
|
-
}
|
package/dist/types/plug.d.ts
DELETED