artalk 2.8.5 → 2.8.6
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.cjs +1 -1
- package/dist/Artalk.cjs.map +1 -1
- package/dist/Artalk.iife.js +1 -1
- package/dist/Artalk.iife.js.map +1 -1
- package/dist/Artalk.js +1 -1
- package/dist/Artalk.js.map +1 -1
- package/dist/Artalk.mjs +281 -86
- package/dist/Artalk.mjs.map +1 -1
- package/dist/ArtalkLite.cjs +1 -1
- package/dist/ArtalkLite.cjs.map +1 -1
- package/dist/ArtalkLite.iife.js +1 -1
- package/dist/ArtalkLite.iife.js.map +1 -1
- package/dist/ArtalkLite.js +1 -1
- package/dist/ArtalkLite.js.map +1 -1
- package/dist/ArtalkLite.mjs +279 -85
- package/dist/ArtalkLite.mjs.map +1 -1
- package/dist/i18n/jp.cjs +1 -1
- package/dist/i18n/jp.js +1 -1
- package/dist/i18n/jp.mjs +21 -0
- package/dist/i18n/zh-TW.cjs +1 -1
- package/dist/i18n/zh-TW.js +1 -1
- package/dist/i18n/zh-TW.mjs +21 -4
- package/dist/main.d.cts +199 -0
- package/dist/main.d.ts +199 -0
- package/package.json +2 -2
package/dist/i18n/jp.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e="ArtalkI18n";const o=(n="jp",t={placeholder:"内容を入力してください...",noComment:"コメントなし",send:"コメントを送信",save:"コメントを保存",nick:"ニックネーム",email:"Eメール",link:"ウェブサイト",emoticon:"絵文字",preview:"プレビュー",uploadImage:"画像をアップロード",uploadFail:"アップロードに失敗しました",commentFail:"コメントに失敗しました",restoredMsg:"内容が自動的に復元されました",onlyAdminCanReply:"管理者のみがコメントできます",uploadLoginMsg:"名前とメールアドレスを入力してからアップロードしてください",counter:"{count}件のコメント",sortLatest:"最新",sortOldest:"最古",sortBest:"人気",sortAuthor:"著者",openComment:"コメントを表示",closeComment:"コメントを非表示",listLoadFailMsg:"コメントリストのデータを取得できません",listRetry:"再試行するにはクリック",loadMore:"もっと読み込む",admin:"管理者",reply:"返信",voteUp:"賛成",voteDown:"反対",voteFail:"投票に失敗しました",readMore:"続きを読む",actionConfirm:"操作を確認",collapse:"折り畳む",collapsed:"折りたたまれた",collapsedMsg:"このコメントはシステムまたは管理者によって折りたたまれました",expand:"展開",approved:"承認済み",pending:"保留中",pendingMsg:"審査中、自分自身のみが表示できます。",edit:"編集",editCancel:"編集をキャンセル",delete:"削除",deleteConfirm:"削除を確認",pin:"ピン留め",unpin:"ピン留めを解除",seconds:"秒前",minutes:"分前",hours:"時間前",days:"日前",now:"たった今",adminCheck:"管理者として認証するにはパスワードを入力してください:",captchaCheck:"続行するにはキャプチャを入力してください:",confirm:"確認",cancel:"キャンセル",msgCenter:"通知センター",ctrlCenter:"コントロールセンター",emailVerified:"メールアドレスが確認されました",frontend:"フロントエンド",backend:"バックエンド",loading:"読み込み中",loadFail:"読み込みに失敗しました",editing:"編集中",editFail:"編集に失敗しました",deleting:"削除中",deleteFail:"削除に失敗しました",reqGot:"リクエストが受信されました",reqAborted:"リクエストがタイムアウトまたは予期せず中止されました",updateMsg:"Artalk {name} を更新して、より良い体験をしてください!",currentVersion:"現在のバージョン",ignore:"無視",open:"開く",openName:"{name}を開く"},
|
|
1
|
+
"use strict";const e="ArtalkI18n";const o=(n="jp",t={placeholder:"内容を入力してください...",noComment:"コメントなし",send:"コメントを送信",signIn:"サインイン",signUp:"サインアップ",save:"コメントを保存",nick:"ニックネーム",email:"Eメール",link:"ウェブサイト",emoticon:"絵文字",preview:"プレビュー",uploadImage:"画像をアップロード",uploadFail:"アップロードに失敗しました",commentFail:"コメントに失敗しました",restoredMsg:"内容が自動的に復元されました",onlyAdminCanReply:"管理者のみがコメントできます",uploadLoginMsg:"名前とメールアドレスを入力してからアップロードしてください",counter:"{count}件のコメント",sortLatest:"最新",sortOldest:"最古",sortBest:"人気",sortAuthor:"著者",openComment:"コメントを表示",closeComment:"コメントを非表示",listLoadFailMsg:"コメントリストのデータを取得できません",listRetry:"再試行するにはクリック",loadMore:"もっと読み込む",admin:"管理者",reply:"返信",voteUp:"賛成",voteDown:"反対",voteFail:"投票に失敗しました",readMore:"続きを読む",actionConfirm:"操作を確認",collapse:"折り畳む",collapsed:"折りたたまれた",collapsedMsg:"このコメントはシステムまたは管理者によって折りたたまれました",expand:"展開",approved:"承認済み",pending:"保留中",pendingMsg:"審査中、自分自身のみが表示できます。",edit:"編集",editCancel:"編集をキャンセル",delete:"削除",deleteConfirm:"削除を確認",pin:"ピン留め",unpin:"ピン留めを解除",seconds:"秒前",minutes:"分前",hours:"時間前",days:"日前",now:"たった今",adminCheck:"管理者として認証するにはパスワードを入力してください:",captchaCheck:"続行するにはキャプチャを入力してください:",confirm:"確認",cancel:"キャンセル",msgCenter:"通知センター",ctrlCenter:"コントロールセンター",noAccountPrompt:"アカウントがありませんか?",haveAccountPrompt:"アカウントをお持ちですか?",forgetPassword:"パスワードを忘れた",resetPassword:"パスワードをリセット",verificationCode:"検証コード",verifySend:"検証",verifyResend:"再送信",waitSeconds:"{seconds}秒待つ",emailVerified:"メールアドレスが確認されました",password:"パスワード",username:"ユーザー名",nextStep:"次のステップ",skipNotVerify:"スキップ、検証しない",logoutConfirm:"ログアウトしてもよろしいですか?",accountMergeNotice:"あなたのメールには異なるIDを持つ複数のアカウントがあります。",accountMergeSelectOne:"すべてのデータを統合するアカウントを選択してください。",accountMergeConfirm:"すべてのデータは1つのアカウントに統合されます。そのIDは{id}です。",dismiss:"閉じる",merge:"統合する",frontend:"フロントエンド",backend:"バックエンド",loading:"読み込み中",loadFail:"読み込みに失敗しました",editing:"編集中",editFail:"編集に失敗しました",deleting:"削除中",deleteFail:"削除に失敗しました",reqGot:"リクエストが受信されました",reqAborted:"リクエストがタイムアウトまたは予期せず中止されました",updateMsg:"Artalk {name} を更新して、より良い体験をしてください!",currentVersion:"現在のバージョン",ignore:"無視",open:"開く",openName:"{name}を開く"},i=["jp-JP"],window[e]||(window[e]={}),window[e][n]=t,i&&i.forEach((o=>{window[e][o]=t})),t);var n,t,i;module.exports=o;
|
package/dist/i18n/jp.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,
|
|
1
|
+
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o():"function"==typeof define&&define.amd?define(o):(e="undefined"!=typeof globalThis?globalThis:e||self).jp=o()}(this,(function(){"use strict";const e="ArtalkI18n";var o,n,t;return o="jp",n={placeholder:"内容を入力してください...",noComment:"コメントなし",send:"コメントを送信",signIn:"サインイン",signUp:"サインアップ",save:"コメントを保存",nick:"ニックネーム",email:"Eメール",link:"ウェブサイト",emoticon:"絵文字",preview:"プレビュー",uploadImage:"画像をアップロード",uploadFail:"アップロードに失敗しました",commentFail:"コメントに失敗しました",restoredMsg:"内容が自動的に復元されました",onlyAdminCanReply:"管理者のみがコメントできます",uploadLoginMsg:"名前とメールアドレスを入力してからアップロードしてください",counter:"{count}件のコメント",sortLatest:"最新",sortOldest:"最古",sortBest:"人気",sortAuthor:"著者",openComment:"コメントを表示",closeComment:"コメントを非表示",listLoadFailMsg:"コメントリストのデータを取得できません",listRetry:"再試行するにはクリック",loadMore:"もっと読み込む",admin:"管理者",reply:"返信",voteUp:"賛成",voteDown:"反対",voteFail:"投票に失敗しました",readMore:"続きを読む",actionConfirm:"操作を確認",collapse:"折り畳む",collapsed:"折りたたまれた",collapsedMsg:"このコメントはシステムまたは管理者によって折りたたまれました",expand:"展開",approved:"承認済み",pending:"保留中",pendingMsg:"審査中、自分自身のみが表示できます。",edit:"編集",editCancel:"編集をキャンセル",delete:"削除",deleteConfirm:"削除を確認",pin:"ピン留め",unpin:"ピン留めを解除",seconds:"秒前",minutes:"分前",hours:"時間前",days:"日前",now:"たった今",adminCheck:"管理者として認証するにはパスワードを入力してください:",captchaCheck:"続行するにはキャプチャを入力してください:",confirm:"確認",cancel:"キャンセル",msgCenter:"通知センター",ctrlCenter:"コントロールセンター",noAccountPrompt:"アカウントがありませんか?",haveAccountPrompt:"アカウントをお持ちですか?",forgetPassword:"パスワードを忘れた",resetPassword:"パスワードをリセット",verificationCode:"検証コード",verifySend:"検証",verifyResend:"再送信",waitSeconds:"{seconds}秒待つ",emailVerified:"メールアドレスが確認されました",password:"パスワード",username:"ユーザー名",nextStep:"次のステップ",skipNotVerify:"スキップ、検証しない",logoutConfirm:"ログアウトしてもよろしいですか?",accountMergeNotice:"あなたのメールには異なるIDを持つ複数のアカウントがあります。",accountMergeSelectOne:"すべてのデータを統合するアカウントを選択してください。",accountMergeConfirm:"すべてのデータは1つのアカウントに統合されます。そのIDは{id}です。",dismiss:"閉じる",merge:"統合する",frontend:"フロントエンド",backend:"バックエンド",loading:"読み込み中",loadFail:"読み込みに失敗しました",editing:"編集中",editFail:"編集に失敗しました",deleting:"削除中",deleteFail:"削除に失敗しました",reqGot:"リクエストが受信されました",reqAborted:"リクエストがタイムアウトまたは予期せず中止されました",updateMsg:"Artalk {name} を更新して、より良い体験をしてください!",currentVersion:"現在のバージョン",ignore:"無視",open:"開く",openName:"{name}を開く"},t=["jp-JP"],window[e]||(window[e]={}),window[e][o]=n,t&&t.forEach((o=>{window[e][o]=n})),n}));
|
package/dist/i18n/jp.mjs
CHANGED
|
@@ -16,6 +16,8 @@ const jp = defineLocaleExternal(
|
|
|
16
16
|
placeholder: "内容を入力してください...",
|
|
17
17
|
noComment: "コメントなし",
|
|
18
18
|
send: "コメントを送信",
|
|
19
|
+
signIn: "サインイン",
|
|
20
|
+
signUp: "サインアップ",
|
|
19
21
|
save: "コメントを保存",
|
|
20
22
|
nick: "ニックネーム",
|
|
21
23
|
email: "Eメール",
|
|
@@ -74,7 +76,26 @@ const jp = defineLocaleExternal(
|
|
|
74
76
|
/* Sidebar */
|
|
75
77
|
msgCenter: "通知センター",
|
|
76
78
|
ctrlCenter: "コントロールセンター",
|
|
79
|
+
/* Auth */
|
|
80
|
+
noAccountPrompt: "アカウントがありませんか?",
|
|
81
|
+
haveAccountPrompt: "アカウントをお持ちですか?",
|
|
82
|
+
forgetPassword: "パスワードを忘れた",
|
|
83
|
+
resetPassword: "パスワードをリセット",
|
|
84
|
+
verificationCode: "検証コード",
|
|
85
|
+
verifySend: "検証",
|
|
86
|
+
verifyResend: "再送信",
|
|
87
|
+
waitSeconds: "{seconds}秒待つ",
|
|
77
88
|
emailVerified: "メールアドレスが確認されました",
|
|
89
|
+
password: "パスワード",
|
|
90
|
+
username: "ユーザー名",
|
|
91
|
+
nextStep: "次のステップ",
|
|
92
|
+
skipNotVerify: "スキップ、検証しない",
|
|
93
|
+
logoutConfirm: "ログアウトしてもよろしいですか?",
|
|
94
|
+
accountMergeNotice: "あなたのメールには異なるIDを持つ複数のアカウントがあります。",
|
|
95
|
+
accountMergeSelectOne: "すべてのデータを統合するアカウントを選択してください。",
|
|
96
|
+
accountMergeConfirm: "すべてのデータは1つのアカウントに統合されます。そのIDは{id}です。",
|
|
97
|
+
dismiss: "閉じる",
|
|
98
|
+
merge: "統合する",
|
|
78
99
|
/* General */
|
|
79
100
|
frontend: "フロントエンド",
|
|
80
101
|
backend: "バックエンド",
|
package/dist/i18n/zh-TW.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e="ArtalkI18n";const o=(n="zh-TW",t={placeholder:"輸入內容...",noComment:"「此時無聲勝有聲」",send:"發送",save:"保存",nick:"暱稱",email:"電子郵件",link:"網址",emoticon:"表情",preview:"預覽",uploadImage:"上傳圖片",uploadFail:"上傳失敗",commentFail:"評論失敗",restoredMsg:"內容已自動恢復",onlyAdminCanReply:"僅管理員可評論",uploadLoginMsg:"填入你的名字郵箱才能上傳哦",counter:"{count} 條評論",sortLatest:"最新",sortOldest:"最舊",sortBest:"最熱",sortAuthor:"作者",openComment:"打開評論",closeComment:"關閉評論",listLoadFailMsg:"無法獲取評論列表數據",listRetry:"點擊重新獲取",loadMore:"加載更多",admin:"管理員",reply:"回覆",voteUp:"贊同",voteDown:"反對",voteFail:"投票失敗",readMore:"閱讀更多",actionConfirm:"確認操作",collapse:"折疊",collapsed:"已折疊",collapsedMsg:"該評論已被系統或管理員折疊",expand:"展開",approved:"已審",pending:"待審",pendingMsg:"審核中,僅本人可見。",edit:"編輯",editCancel:"取消編輯",delete:"刪除",deleteConfirm:"確認刪除",pin:"置頂",unpin:"取消置頂",seconds:"秒前",minutes:"分鐘前",hours:"小時前",days:"天前",now:"剛剛",adminCheck:"輸入密碼來驗證管理員身份:",captchaCheck:"輸入驗證碼繼續:",confirm:"確認",cancel:"取消",msgCenter:"通知中心",ctrlCenter:"控制中心",emailVerified:"郵箱已驗證",frontend:"前端",backend:"後端",loading:"加載中",loadFail:"加載失敗",editing:"修改中",editFail:"修改失敗",deleting:"刪除中",deleteFail:"刪除失敗",reqGot:"請求已接收",reqAborted:"請求超時或意外終止",updateMsg:"請更新 Artalk {name} 以獲得更好的體驗!",currentVersion:"當前版本",ignore:"忽略",open:"打開",openName:"打開{name}"},window[e]||(window[e]={}),window[e][n]=t,
|
|
1
|
+
"use strict";const e="ArtalkI18n";const o=(n="zh-TW",t={placeholder:"輸入內容...",noComment:"「此時無聲勝有聲」",send:"發送",signIn:"登入",signUp:"註冊",save:"保存",nick:"暱稱",email:"電子郵件",link:"網址",emoticon:"表情",preview:"預覽",uploadImage:"上傳圖片",uploadFail:"上傳失敗",commentFail:"評論失敗",restoredMsg:"內容已自動恢復",onlyAdminCanReply:"僅管理員可評論",uploadLoginMsg:"填入你的名字郵箱才能上傳哦",counter:"{count} 條評論",sortLatest:"最新",sortOldest:"最舊",sortBest:"最熱",sortAuthor:"作者",openComment:"打開評論",closeComment:"關閉評論",listLoadFailMsg:"無法獲取評論列表數據",listRetry:"點擊重新獲取",loadMore:"加載更多",admin:"管理員",reply:"回覆",voteUp:"贊同",voteDown:"反對",voteFail:"投票失敗",readMore:"閱讀更多",actionConfirm:"確認操作",collapse:"折疊",collapsed:"已折疊",collapsedMsg:"該評論已被系統或管理員折疊",expand:"展開",approved:"已審",pending:"待審",pendingMsg:"審核中,僅本人可見。",edit:"編輯",editCancel:"取消編輯",delete:"刪除",deleteConfirm:"確認刪除",pin:"置頂",unpin:"取消置頂",seconds:"秒前",minutes:"分鐘前",hours:"小時前",days:"天前",now:"剛剛",adminCheck:"輸入密碼來驗證管理員身份:",captchaCheck:"輸入驗證碼繼續:",confirm:"確認",cancel:"取消",msgCenter:"通知中心",ctrlCenter:"控制中心",noAccountPrompt:"沒有帳號?",haveAccountPrompt:"已有帳號?",forgetPassword:"忘記密碼",resetPassword:"重置密碼",verificationCode:"驗證碼",verifySend:"發送驗證碼",verifyResend:"重新發送",waitSeconds:"等待 {seconds}秒",emailVerified:"郵箱已驗證",password:"密碼",username:"用戶名",nextStep:"下一步",skipNotVerify:"跳過,不驗證",logoutConfirm:"確定要登出嗎?",accountMergeNotice:"您的電子郵件下有多個不同 ID 的帳戶。",accountMergeSelectOne:"請選擇要將所有數據合併到其中的一個。",accountMergeConfirm:"所有數據將合併到 ID 為 {id} 的帳戶中。",dismiss:"忽略",merge:"合併",frontend:"前端",backend:"後端",loading:"加載中",loadFail:"加載失敗",editing:"修改中",editFail:"修改失敗",deleting:"刪除中",deleteFail:"刪除失敗",reqGot:"請求已接收",reqAborted:"請求超時或意外終止",updateMsg:"請更新 Artalk {name} 以獲得更好的體驗!",currentVersion:"當前版本",ignore:"忽略",open:"打開",openName:"打開{name}"},window[e]||(window[e]={}),window[e][n]=t,t);var n,t;module.exports=o;
|
package/dist/i18n/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,
|
|
1
|
+
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o():"function"==typeof define&&define.amd?define(o):(e="undefined"!=typeof globalThis?globalThis:e||self)["zh-TW"]=o()}(this,(function(){"use strict";const e="ArtalkI18n";var o,n;return o="zh-TW",n={placeholder:"輸入內容...",noComment:"「此時無聲勝有聲」",send:"發送",signIn:"登入",signUp:"註冊",save:"保存",nick:"暱稱",email:"電子郵件",link:"網址",emoticon:"表情",preview:"預覽",uploadImage:"上傳圖片",uploadFail:"上傳失敗",commentFail:"評論失敗",restoredMsg:"內容已自動恢復",onlyAdminCanReply:"僅管理員可評論",uploadLoginMsg:"填入你的名字郵箱才能上傳哦",counter:"{count} 條評論",sortLatest:"最新",sortOldest:"最舊",sortBest:"最熱",sortAuthor:"作者",openComment:"打開評論",closeComment:"關閉評論",listLoadFailMsg:"無法獲取評論列表數據",listRetry:"點擊重新獲取",loadMore:"加載更多",admin:"管理員",reply:"回覆",voteUp:"贊同",voteDown:"反對",voteFail:"投票失敗",readMore:"閱讀更多",actionConfirm:"確認操作",collapse:"折疊",collapsed:"已折疊",collapsedMsg:"該評論已被系統或管理員折疊",expand:"展開",approved:"已審",pending:"待審",pendingMsg:"審核中,僅本人可見。",edit:"編輯",editCancel:"取消編輯",delete:"刪除",deleteConfirm:"確認刪除",pin:"置頂",unpin:"取消置頂",seconds:"秒前",minutes:"分鐘前",hours:"小時前",days:"天前",now:"剛剛",adminCheck:"輸入密碼來驗證管理員身份:",captchaCheck:"輸入驗證碼繼續:",confirm:"確認",cancel:"取消",msgCenter:"通知中心",ctrlCenter:"控制中心",noAccountPrompt:"沒有帳號?",haveAccountPrompt:"已有帳號?",forgetPassword:"忘記密碼",resetPassword:"重置密碼",verificationCode:"驗證碼",verifySend:"發送驗證碼",verifyResend:"重新發送",waitSeconds:"等待 {seconds}秒",emailVerified:"郵箱已驗證",password:"密碼",username:"用戶名",nextStep:"下一步",skipNotVerify:"跳過,不驗證",logoutConfirm:"確定要登出嗎?",accountMergeNotice:"您的電子郵件下有多個不同 ID 的帳戶。",accountMergeSelectOne:"請選擇要將所有數據合併到其中的一個。",accountMergeConfirm:"所有數據將合併到 ID 為 {id} 的帳戶中。",dismiss:"忽略",merge:"合併",frontend:"前端",backend:"後端",loading:"加載中",loadFail:"加載失敗",editing:"修改中",editFail:"修改失敗",deleting:"刪除中",deleteFail:"刪除失敗",reqGot:"請求已接收",reqAborted:"請求超時或意外終止",updateMsg:"請更新 Artalk {name} 以獲得更好的體驗!",currentVersion:"當前版本",ignore:"忽略",open:"打開",openName:"打開{name}"},window[e]||(window[e]={}),window[e][o]=n,n}));
|
package/dist/i18n/zh-TW.mjs
CHANGED
|
@@ -3,10 +3,6 @@ function defineLocaleExternal(lang, locale, aliases) {
|
|
|
3
3
|
if (!window[GLOBAL_LOCALES_KEY])
|
|
4
4
|
window[GLOBAL_LOCALES_KEY] = {};
|
|
5
5
|
window[GLOBAL_LOCALES_KEY][lang] = locale;
|
|
6
|
-
if (aliases)
|
|
7
|
-
aliases.forEach((l) => {
|
|
8
|
-
window[GLOBAL_LOCALES_KEY][l] = locale;
|
|
9
|
-
});
|
|
10
6
|
return locale;
|
|
11
7
|
}
|
|
12
8
|
const zhTW = defineLocaleExternal("zh-TW", {
|
|
@@ -14,6 +10,8 @@ const zhTW = defineLocaleExternal("zh-TW", {
|
|
|
14
10
|
placeholder: "輸入內容...",
|
|
15
11
|
noComment: "「此時無聲勝有聲」",
|
|
16
12
|
send: "發送",
|
|
13
|
+
signIn: "登入",
|
|
14
|
+
signUp: "註冊",
|
|
17
15
|
save: "保存",
|
|
18
16
|
nick: "暱稱",
|
|
19
17
|
email: "電子郵件",
|
|
@@ -72,7 +70,26 @@ const zhTW = defineLocaleExternal("zh-TW", {
|
|
|
72
70
|
/* Sidebar */
|
|
73
71
|
msgCenter: "通知中心",
|
|
74
72
|
ctrlCenter: "控制中心",
|
|
73
|
+
/* Auth */
|
|
74
|
+
noAccountPrompt: "沒有帳號?",
|
|
75
|
+
haveAccountPrompt: "已有帳號?",
|
|
76
|
+
forgetPassword: "忘記密碼",
|
|
77
|
+
resetPassword: "重置密碼",
|
|
78
|
+
verificationCode: "驗證碼",
|
|
79
|
+
verifySend: "發送驗證碼",
|
|
80
|
+
verifyResend: "重新發送",
|
|
81
|
+
waitSeconds: "等待 {seconds}秒",
|
|
75
82
|
emailVerified: "郵箱已驗證",
|
|
83
|
+
password: "密碼",
|
|
84
|
+
username: "用戶名",
|
|
85
|
+
nextStep: "下一步",
|
|
86
|
+
skipNotVerify: "跳過,不驗證",
|
|
87
|
+
logoutConfirm: "確定要登出嗎?",
|
|
88
|
+
accountMergeNotice: "您的電子郵件下有多個不同 ID 的帳戶。",
|
|
89
|
+
accountMergeSelectOne: "請選擇要將所有數據合併到其中的一個。",
|
|
90
|
+
accountMergeConfirm: "所有數據將合併到 ID 為 {id} 的帳戶中。",
|
|
91
|
+
dismiss: "忽略",
|
|
92
|
+
merge: "合併",
|
|
76
93
|
/* General */
|
|
77
94
|
frontend: "前端",
|
|
78
95
|
backend: "後端",
|
package/dist/main.d.cts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { marked } from 'marked';
|
|
2
|
+
import { MarkedOptions } from 'marked';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* 通用操作按钮
|
|
@@ -75,6 +76,115 @@ declare class Api extends Api_2<void> {
|
|
|
75
76
|
* Artalk is a modern comment system based on Golang.
|
|
76
77
|
*/
|
|
77
78
|
declare class Api_2<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
|
|
79
|
+
auth: {
|
|
80
|
+
/**
|
|
81
|
+
* @description Login by email with verify code (Need send email verify code first) or password
|
|
82
|
+
*
|
|
83
|
+
* @tags Auth
|
|
84
|
+
* @name LoginByEmail
|
|
85
|
+
* @summary Login by email
|
|
86
|
+
* @request POST:/auth/email/login
|
|
87
|
+
* @response `200` `HandlerResponseUserLogin` OK
|
|
88
|
+
* @response `400` `(HandlerMap & {
|
|
89
|
+
msg?: string,
|
|
90
|
+
|
|
91
|
+
})` Bad Request
|
|
92
|
+
* @response `500` `(HandlerMap & {
|
|
93
|
+
msg?: string,
|
|
94
|
+
|
|
95
|
+
})` Internal Server Error
|
|
96
|
+
*/
|
|
97
|
+
loginByEmail: (data: HandlerRequestAuthEmailLogin, params?: RequestParams) => Promise<HttpResponse<HandlerResponseUserLogin, HandlerMap & {
|
|
98
|
+
msg?: string | undefined;
|
|
99
|
+
}>>;
|
|
100
|
+
/**
|
|
101
|
+
* @description Register by email and verify code (if user exists, will update user, like forget password. Need send email verify code first)
|
|
102
|
+
*
|
|
103
|
+
* @tags Auth
|
|
104
|
+
* @name RegisterByEmail
|
|
105
|
+
* @summary Register by email
|
|
106
|
+
* @request POST:/auth/email/register
|
|
107
|
+
* @response `200` `HandlerResponseUserLogin` OK
|
|
108
|
+
* @response `400` `(HandlerMap & {
|
|
109
|
+
msg?: string,
|
|
110
|
+
|
|
111
|
+
})` Bad Request
|
|
112
|
+
* @response `500` `(HandlerMap & {
|
|
113
|
+
msg?: string,
|
|
114
|
+
|
|
115
|
+
})` Internal Server Error
|
|
116
|
+
*/
|
|
117
|
+
registerByEmail: (data: HandlerRequestAuthEmailRegister, params?: RequestParams) => Promise<HttpResponse<HandlerResponseUserLogin, HandlerMap & {
|
|
118
|
+
msg?: string | undefined;
|
|
119
|
+
}>>;
|
|
120
|
+
/**
|
|
121
|
+
* @description Send email including verify code to user
|
|
122
|
+
*
|
|
123
|
+
* @tags Auth
|
|
124
|
+
* @name SendVerifyEmail
|
|
125
|
+
* @summary Send verify email
|
|
126
|
+
* @request POST:/auth/email/send
|
|
127
|
+
* @response `200` `(HandlerMap & {
|
|
128
|
+
msg?: string,
|
|
129
|
+
|
|
130
|
+
})` OK
|
|
131
|
+
* @response `400` `(HandlerMap & {
|
|
132
|
+
msg?: string,
|
|
133
|
+
|
|
134
|
+
})` Bad Request
|
|
135
|
+
* @response `500` `(HandlerMap & {
|
|
136
|
+
msg?: string,
|
|
137
|
+
|
|
138
|
+
})` Internal Server Error
|
|
139
|
+
*/
|
|
140
|
+
sendVerifyEmail: (data: HandlerRequestAuthEmailSend, params?: RequestParams) => Promise<HttpResponse<HandlerMap & {
|
|
141
|
+
msg?: string | undefined;
|
|
142
|
+
}, HandlerMap & {
|
|
143
|
+
msg?: string | undefined;
|
|
144
|
+
}>>;
|
|
145
|
+
/**
|
|
146
|
+
* @description Get all users with same email, if there are more than one user with same email, need merge
|
|
147
|
+
*
|
|
148
|
+
* @tags Auth
|
|
149
|
+
* @name CheckDataMerge
|
|
150
|
+
* @summary Check data merge
|
|
151
|
+
* @request GET:/auth/merge
|
|
152
|
+
* @secure
|
|
153
|
+
* @response `200` `HandlerResponseAuthDataMergeCheck` OK
|
|
154
|
+
* @response `400` `(HandlerMap & {
|
|
155
|
+
msg?: string,
|
|
156
|
+
|
|
157
|
+
})` Bad Request
|
|
158
|
+
* @response `500` `(HandlerMap & {
|
|
159
|
+
msg?: string,
|
|
160
|
+
|
|
161
|
+
})` Internal Server Error
|
|
162
|
+
*/
|
|
163
|
+
checkDataMerge: (params?: RequestParams) => Promise<HttpResponse<HandlerResponseAuthDataMergeCheck, HandlerMap & {
|
|
164
|
+
msg?: string | undefined;
|
|
165
|
+
}>>;
|
|
166
|
+
/**
|
|
167
|
+
* @description This function is to solve the problem of multiple users with the same email address, should be called after user login and then check, and perform data merge.
|
|
168
|
+
*
|
|
169
|
+
* @tags Auth
|
|
170
|
+
* @name ApplyDataMerge
|
|
171
|
+
* @summary Apply data merge
|
|
172
|
+
* @request POST:/auth/merge
|
|
173
|
+
* @secure
|
|
174
|
+
* @response `200` `HandlerResponseAuthDataMergeApply` OK
|
|
175
|
+
* @response `400` `(HandlerMap & {
|
|
176
|
+
msg?: string,
|
|
177
|
+
|
|
178
|
+
})` Bad Request
|
|
179
|
+
* @response `500` `(HandlerMap & {
|
|
180
|
+
msg?: string,
|
|
181
|
+
|
|
182
|
+
})` Internal Server Error
|
|
183
|
+
*/
|
|
184
|
+
applyDataMerge: (data: HandlerRequestAuthDataMergeApply, params?: RequestParams) => Promise<HttpResponse<HandlerResponseAuthDataMergeApply, HandlerMap & {
|
|
185
|
+
msg?: string | undefined;
|
|
186
|
+
}>>;
|
|
187
|
+
};
|
|
78
188
|
cache: {
|
|
79
189
|
/**
|
|
80
190
|
* @description Flush all cache on the server
|
|
@@ -323,6 +433,22 @@ declare class Api_2<SecurityDataType extends unknown> extends HttpClient<Securit
|
|
|
323
433
|
* @response `200` `CommonConfData` OK
|
|
324
434
|
*/
|
|
325
435
|
conf: (params?: RequestParams) => Promise<HttpResponse<CommonConfData, any>>;
|
|
436
|
+
/**
|
|
437
|
+
* @description Get social login providers
|
|
438
|
+
*
|
|
439
|
+
* @tags System
|
|
440
|
+
* @name GetSocialLoginProviders
|
|
441
|
+
* @summary Get Social Login Providers
|
|
442
|
+
* @request GET:/conf/auth/providers
|
|
443
|
+
* @response `200` `HandlerResponseConfAuthProviders` OK
|
|
444
|
+
* @response `404` `(HandlerMap & {
|
|
445
|
+
msg?: string,
|
|
446
|
+
|
|
447
|
+
})` Not Found
|
|
448
|
+
*/
|
|
449
|
+
getSocialLoginProviders: (params?: RequestParams) => Promise<HttpResponse<HandlerResponseConfAuthProviders, HandlerMap & {
|
|
450
|
+
msg?: string | undefined;
|
|
451
|
+
}>>;
|
|
326
452
|
/**
|
|
327
453
|
* @description Get Domain Info
|
|
328
454
|
*
|
|
@@ -1225,6 +1351,8 @@ export declare interface ArtalkConfig {
|
|
|
1225
1351
|
imgUpload: boolean;
|
|
1226
1352
|
/** 图片上传器 */
|
|
1227
1353
|
imgUploader?: (file: File) => Promise<string>;
|
|
1354
|
+
/** Image lazy load */
|
|
1355
|
+
imgLazyLoad?: 'native' | 'data-src';
|
|
1228
1356
|
/** 版本检测 */
|
|
1229
1357
|
versionCheck: boolean;
|
|
1230
1358
|
/** 引用后端配置 */
|
|
@@ -1237,6 +1365,8 @@ export declare interface ArtalkConfig {
|
|
|
1237
1365
|
pluginURLs?: string[];
|
|
1238
1366
|
/** Replacer for marked */
|
|
1239
1367
|
markedReplacers?: ((raw: string) => string)[];
|
|
1368
|
+
/** Marked options */
|
|
1369
|
+
markedOptions?: MarkedOptions;
|
|
1240
1370
|
/** 列表请求参数修改器 */
|
|
1241
1371
|
listFetchParamsModifier?: (params: any) => void;
|
|
1242
1372
|
remoteConfModifier?: (conf: Partial<ArtalkConfig>) => void;
|
|
@@ -1282,6 +1412,13 @@ declare namespace ArtalkType {
|
|
|
1282
1412
|
}
|
|
1283
1413
|
export { ArtalkType }
|
|
1284
1414
|
|
|
1415
|
+
declare interface AuthAuthProviderInfo {
|
|
1416
|
+
icon: string;
|
|
1417
|
+
label: string;
|
|
1418
|
+
name: string;
|
|
1419
|
+
path?: string;
|
|
1420
|
+
}
|
|
1421
|
+
|
|
1285
1422
|
declare type CancelToken = Symbol | string | number;
|
|
1286
1423
|
|
|
1287
1424
|
declare interface Checker<T = any> {
|
|
@@ -1805,6 +1942,8 @@ declare const en: {
|
|
|
1805
1942
|
placeholder: string;
|
|
1806
1943
|
noComment: string;
|
|
1807
1944
|
send: string;
|
|
1945
|
+
signIn: string;
|
|
1946
|
+
signUp: string;
|
|
1808
1947
|
save: string;
|
|
1809
1948
|
nick: string;
|
|
1810
1949
|
email: string;
|
|
@@ -1858,7 +1997,25 @@ declare const en: {
|
|
|
1858
1997
|
cancel: string;
|
|
1859
1998
|
msgCenter: string;
|
|
1860
1999
|
ctrlCenter: string;
|
|
2000
|
+
noAccountPrompt: string;
|
|
2001
|
+
haveAccountPrompt: string;
|
|
2002
|
+
forgetPassword: string;
|
|
2003
|
+
resetPassword: string;
|
|
2004
|
+
verificationCode: string;
|
|
2005
|
+
verifySend: string;
|
|
2006
|
+
verifyResend: string;
|
|
2007
|
+
waitSeconds: string;
|
|
1861
2008
|
emailVerified: string;
|
|
2009
|
+
password: string;
|
|
2010
|
+
username: string;
|
|
2011
|
+
nextStep: string;
|
|
2012
|
+
skipNotVerify: string;
|
|
2013
|
+
logoutConfirm: string;
|
|
2014
|
+
accountMergeNotice: string;
|
|
2015
|
+
accountMergeSelectOne: string;
|
|
2016
|
+
accountMergeConfirm: string;
|
|
2017
|
+
dismiss: string;
|
|
2018
|
+
merge: string;
|
|
1862
2019
|
frontend: string;
|
|
1863
2020
|
backend: string;
|
|
1864
2021
|
loading: string;
|
|
@@ -2222,11 +2379,47 @@ declare interface HandlerParamsVote {
|
|
|
2222
2379
|
name?: string;
|
|
2223
2380
|
}
|
|
2224
2381
|
|
|
2382
|
+
declare interface HandlerRequestAuthDataMergeApply {
|
|
2383
|
+
user_name: string;
|
|
2384
|
+
}
|
|
2385
|
+
|
|
2386
|
+
declare interface HandlerRequestAuthEmailLogin {
|
|
2387
|
+
code?: string;
|
|
2388
|
+
email: string;
|
|
2389
|
+
password?: string;
|
|
2390
|
+
}
|
|
2391
|
+
|
|
2392
|
+
declare interface HandlerRequestAuthEmailRegister {
|
|
2393
|
+
code: string;
|
|
2394
|
+
email: string;
|
|
2395
|
+
link?: string;
|
|
2396
|
+
name?: string;
|
|
2397
|
+
password: string;
|
|
2398
|
+
}
|
|
2399
|
+
|
|
2400
|
+
declare interface HandlerRequestAuthEmailSend {
|
|
2401
|
+
email: string;
|
|
2402
|
+
}
|
|
2403
|
+
|
|
2225
2404
|
declare interface HandlerResponseAdminUserList {
|
|
2226
2405
|
count: number;
|
|
2227
2406
|
users: EntityCookedUserForAdmin[];
|
|
2228
2407
|
}
|
|
2229
2408
|
|
|
2409
|
+
declare interface HandlerResponseAuthDataMergeApply {
|
|
2410
|
+
deleted_user_count: number;
|
|
2411
|
+
update_comments_count: number;
|
|
2412
|
+
update_notifies_count: number;
|
|
2413
|
+
update_votes_count: number;
|
|
2414
|
+
/** Empty if login user is target user no need to re-login */
|
|
2415
|
+
user_token: string;
|
|
2416
|
+
}
|
|
2417
|
+
|
|
2418
|
+
declare interface HandlerResponseAuthDataMergeCheck {
|
|
2419
|
+
need_merge: boolean;
|
|
2420
|
+
user_names: string[];
|
|
2421
|
+
}
|
|
2422
|
+
|
|
2230
2423
|
declare interface HandlerResponseCaptchaGet {
|
|
2231
2424
|
img_data: string;
|
|
2232
2425
|
}
|
|
@@ -2303,6 +2496,11 @@ declare interface HandlerResponseCommentUpdate {
|
|
|
2303
2496
|
vote_up: number;
|
|
2304
2497
|
}
|
|
2305
2498
|
|
|
2499
|
+
declare interface HandlerResponseConfAuthProviders {
|
|
2500
|
+
anonymous: boolean;
|
|
2501
|
+
providers: AuthAuthProviderInfo[];
|
|
2502
|
+
}
|
|
2503
|
+
|
|
2306
2504
|
declare interface HandlerResponseConfDomain {
|
|
2307
2505
|
/** Is the domain trusted */
|
|
2308
2506
|
is_trusted: boolean;
|
|
@@ -2808,6 +3006,7 @@ declare class SidebarLayer extends Component {
|
|
|
2808
3006
|
private authCheck;
|
|
2809
3007
|
private initLayer;
|
|
2810
3008
|
private createIframe;
|
|
3009
|
+
private getDarkMode;
|
|
2811
3010
|
private iframeLoad;
|
|
2812
3011
|
}
|
|
2813
3012
|
|