@waline/client 2.1.0 → 2.1.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/component.js +1 -1
- package/dist/component.js.map +1 -1
- package/dist/legacy.js +1 -1
- package/dist/legacy.js.map +1 -1
- package/dist/pageview.cjs.js +1 -1
- package/dist/pageview.cjs.js.map +1 -1
- package/dist/pageview.d.ts +9 -1
- package/dist/pageview.esm.js +1 -1
- package/dist/pageview.esm.js.map +1 -1
- package/dist/pageview.js +1 -1
- package/dist/pageview.js.map +1 -1
- package/dist/shim.d.ts +27 -3
- package/dist/shim.esm.d.ts +27 -3
- package/dist/shim.esm.js +1 -1
- package/dist/shim.esm.js.map +1 -1
- package/dist/shim.js +1 -1
- package/dist/shim.js.map +1 -1
- package/dist/waline.cjs.d.ts +27 -3
- package/dist/waline.cjs.js +1 -1
- package/dist/waline.cjs.js.map +1 -1
- package/dist/waline.css +1 -1
- package/dist/waline.css.map +1 -1
- package/dist/waline.d.ts +27 -3
- package/dist/waline.esm.d.ts +27 -3
- package/dist/waline.esm.js +1 -1
- package/dist/waline.esm.js.map +1 -1
- package/dist/waline.js +1 -1
- package/dist/waline.js.map +1 -1
- package/package.json +17 -3
- package/src/comment.ts +11 -0
- package/src/components/Waline.vue +1 -0
- package/src/pageview.ts +12 -1
- package/src/styles/card.scss +4 -4
- package/src/styles/config.scss +2 -2
- package/src/styles/layout.scss +3 -3
- package/src/utils/fetch.ts +20 -7
- package/src/widgets/recentComments.ts +11 -0
package/dist/waline.cjs.d.ts
CHANGED
|
@@ -355,8 +355,16 @@ interface WalineCommentCountOptions {
|
|
|
355
355
|
* @default window.location.pathname
|
|
356
356
|
*/
|
|
357
357
|
path?: string;
|
|
358
|
+
/**
|
|
359
|
+
* 错误提示消息所使用的语言
|
|
360
|
+
*
|
|
361
|
+
* Language of error message
|
|
362
|
+
*
|
|
363
|
+
* @default 'zh-CN'
|
|
364
|
+
*/
|
|
365
|
+
lang?: string;
|
|
358
366
|
}
|
|
359
|
-
declare const commentCount: ({ serverURL, path, selector, }: WalineCommentCountOptions) => WalineAbort;
|
|
367
|
+
declare const commentCount: ({ serverURL, path, selector, lang, }: WalineCommentCountOptions) => WalineAbort;
|
|
360
368
|
|
|
361
369
|
interface WalineInstance {
|
|
362
370
|
/**
|
|
@@ -419,8 +427,16 @@ interface WalinePageviewCountOptions {
|
|
|
419
427
|
* @default true
|
|
420
428
|
*/
|
|
421
429
|
update?: boolean;
|
|
430
|
+
/**
|
|
431
|
+
* 错误提示消息所使用的语言
|
|
432
|
+
*
|
|
433
|
+
* Language of error message
|
|
434
|
+
*
|
|
435
|
+
* @default 'zh-CN'
|
|
436
|
+
*/
|
|
437
|
+
lang?: string;
|
|
422
438
|
}
|
|
423
|
-
declare const pageviewCount: ({ serverURL, path, selector, update, }: WalinePageviewCountOptions) => WalineAbort;
|
|
439
|
+
declare const pageviewCount: ({ serverURL, path, selector, update, lang, }: WalinePageviewCountOptions) => WalineAbort;
|
|
424
440
|
|
|
425
441
|
declare const version: string;
|
|
426
442
|
|
|
@@ -443,6 +459,14 @@ interface WalineRecentCommentsOptions {
|
|
|
443
459
|
* Element to be mounted
|
|
444
460
|
*/
|
|
445
461
|
el?: string | HTMLElement;
|
|
462
|
+
/**
|
|
463
|
+
* 错误提示消息所使用的语言
|
|
464
|
+
*
|
|
465
|
+
* Language of error message
|
|
466
|
+
*
|
|
467
|
+
* @default 'zh-CN'
|
|
468
|
+
*/
|
|
469
|
+
lang?: string;
|
|
446
470
|
}
|
|
447
471
|
interface WalineRecentCommentsResult {
|
|
448
472
|
/**
|
|
@@ -458,6 +482,6 @@ interface WalineRecentCommentsResult {
|
|
|
458
482
|
*/
|
|
459
483
|
destroy: () => void;
|
|
460
484
|
}
|
|
461
|
-
declare const RecentComments: ({ el, serverURL, count, }: WalineRecentCommentsOptions) => Promise<WalineRecentCommentsResult>;
|
|
485
|
+
declare const RecentComments: ({ el, serverURL, count, lang, }: WalineRecentCommentsOptions) => Promise<WalineRecentCommentsResult>;
|
|
462
486
|
|
|
463
487
|
export { Locales, RecentComments, WalineAbort, WalineComment, WalineCommentCountOptions, WalineCommentData, WalineDateLocale, WalineEmojiInfo, WalineEmojiMaps, WalineHighlighter, WalineImageUploader, WalineInitOptions, WalineInstance, WalineLocale, WalineMeta, WalinePageviewCountOptions, WalineProps, WalineRecentCommentsOptions, WalineRecentCommentsResult, WalineTexRenderer, commentCount, defaultLang, defaultTexRenderer, defaultUploadImage, getMeta, init, locales, pageviewCount, version };
|