artalk 2.5.5 → 2.6.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.
@@ -18,5 +18,5 @@ export default class PageApi extends ApiBase {
18
18
  /** PV */
19
19
  pv(): Promise<number>;
20
20
  /** 统计 */
21
- stat(type: 'latest_comments' | 'latest_pages' | 'pv_most_pages' | 'comment_most_pages' | 'page_pv' | 'site_pv' | 'page_comment' | 'site_comment', pageKeys?: string | string[], limit?: number): Promise<number | object | CommentData[] | PageData[]>;
21
+ stat(type: 'latest_comments' | 'latest_pages' | 'pv_most_pages' | 'comment_most_pages' | 'page_pv' | 'site_pv' | 'page_comment' | 'site_comment', pageKeys?: string | string[], limit?: number): Promise<number | object | PageData[] | CommentData[]>;
22
22
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="marked" />
1
2
  import type ArtalkConfig from '../types/artalk-config';
2
3
  import type { CommentData, NotifyData } from '../types/artalk-data';
3
4
  import type ContextApi from '../types/context';
@@ -0,0 +1,69 @@
1
+ declare const _default: {
2
+ placeholder: string;
3
+ noComment: string;
4
+ send: string;
5
+ save: string;
6
+ nick: string;
7
+ email: string;
8
+ link: string;
9
+ emoticon: string;
10
+ preview: string;
11
+ image: string;
12
+ uploadFail: string;
13
+ commentFail: string;
14
+ restoredMsg: string;
15
+ onlyAdminCanReply: string;
16
+ uploadLoginMsg: string;
17
+ counter: string;
18
+ sortLatest: string;
19
+ sortOldest: string;
20
+ sortBest: string;
21
+ sortAuthor: string;
22
+ openComment: string;
23
+ closeComment: string;
24
+ listLoadFailMsg: string;
25
+ listRetry: string;
26
+ loadMore: string;
27
+ admin: string;
28
+ reply: string;
29
+ voteUp: string;
30
+ voteDown: string;
31
+ voteFail: string;
32
+ readMore: string;
33
+ actionConfirm: string;
34
+ collapse: string;
35
+ collapsed: string;
36
+ collapsedMsg: string;
37
+ expand: string;
38
+ approved: string;
39
+ pending: string;
40
+ pendingMsg: string;
41
+ edit: string;
42
+ editCancel: string;
43
+ delete: string;
44
+ deleteConfirm: string;
45
+ pin: string;
46
+ unpin: string;
47
+ seconds: string;
48
+ minutes: string;
49
+ hours: string;
50
+ days: string;
51
+ now: string;
52
+ adminCheck: string;
53
+ captchaCheck: string;
54
+ confirm: string;
55
+ cancel: string;
56
+ msgCenter: string;
57
+ ctrlCenter: string;
58
+ frontend: string;
59
+ backend: string;
60
+ loading: string;
61
+ loadFail: string;
62
+ editing: string;
63
+ editFail: string;
64
+ deleting: string;
65
+ deleteFail: string;
66
+ reqGot: string;
67
+ reqAborted: string;
68
+ };
69
+ export default _default;
@@ -0,0 +1,69 @@
1
+ declare const _default: {
2
+ placeholder: string;
3
+ noComment: string;
4
+ send: string;
5
+ save: string;
6
+ nick: string;
7
+ email: string;
8
+ link: string;
9
+ emoticon: string;
10
+ preview: string;
11
+ image: string;
12
+ uploadFail: string;
13
+ commentFail: string;
14
+ restoredMsg: string;
15
+ onlyAdminCanReply: string;
16
+ uploadLoginMsg: string;
17
+ counter: string;
18
+ sortLatest: string;
19
+ sortOldest: string;
20
+ sortBest: string;
21
+ sortAuthor: string;
22
+ openComment: string;
23
+ closeComment: string;
24
+ listLoadFailMsg: string;
25
+ listRetry: string;
26
+ loadMore: string;
27
+ admin: string;
28
+ reply: string;
29
+ voteUp: string;
30
+ voteDown: string;
31
+ voteFail: string;
32
+ readMore: string;
33
+ actionConfirm: string;
34
+ collapse: string;
35
+ collapsed: string;
36
+ collapsedMsg: string;
37
+ expand: string;
38
+ approved: string;
39
+ pending: string;
40
+ pendingMsg: string;
41
+ edit: string;
42
+ editCancel: string;
43
+ delete: string;
44
+ deleteConfirm: string;
45
+ pin: string;
46
+ unpin: string;
47
+ seconds: string;
48
+ minutes: string;
49
+ hours: string;
50
+ days: string;
51
+ now: string;
52
+ adminCheck: string;
53
+ captchaCheck: string;
54
+ confirm: string;
55
+ cancel: string;
56
+ msgCenter: string;
57
+ ctrlCenter: string;
58
+ frontend: string;
59
+ backend: string;
60
+ loading: string;
61
+ loadFail: string;
62
+ editing: string;
63
+ editFail: string;
64
+ deleting: string;
65
+ deleteFail: string;
66
+ reqGot: string;
67
+ reqAborted: string;
68
+ };
69
+ export default _default;
@@ -185,6 +185,9 @@ export interface UserDataForAdmin extends UserData {
185
185
 
186
186
  /** 评论数 */
187
187
  comment_count: number
188
+
189
+ /** 密码 */
190
+ password: string
188
191
  }
189
192
 
190
193
  export interface NotifyData {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "artalk",
3
- "version": "2.5.5",
3
+ "version": "2.6.1",
4
4
  "license": "LGPL-3.0",
5
5
  "description": "A Selfhosted Comment System",
6
6
  "keywords": [
@@ -23,13 +23,13 @@
23
23
  "module": "./dist/Artalk.es.js",
24
24
  "types": "./dist/src/main.d.ts",
25
25
  "devDependencies": {
26
- "@types/marked": "4.3.0"
26
+ "@types/marked": "5.0.1"
27
27
  },
28
28
  "dependencies": {
29
29
  "abortcontroller-polyfill": "^1.7.5",
30
30
  "hanabi": "^0.4.0",
31
31
  "insane": "^2.6.2",
32
- "marked": "^5.0.1"
32
+ "marked": "^7.0.4"
33
33
  },
34
34
  "scripts": {
35
35
  "dev": "vite",
@@ -46,7 +46,7 @@ export function createPlugManager(editor: Editor): PlugManager {
46
46
  const DISABLED = getDisabledPlugNames(editor.conf)
47
47
 
48
48
  ENABLED_PLUGS
49
- .filter(p => !DISABLED.includes(p.name)) // 禁用的插件
49
+ .filter(p => !DISABLED.includes(p.Name)) // 禁用的插件
50
50
  .forEach((Plug) => {
51
51
  initPlugItem(ctx, Plug)
52
52
  })
@@ -185,6 +185,9 @@ export interface UserDataForAdmin extends UserData {
185
185
 
186
186
  /** 评论数 */
187
187
  comment_count: number
188
+
189
+ /** 密码 */
190
+ password: string
188
191
  }
189
192
 
190
193
  export interface NotifyData {