forked from tangly1024/NotionNext
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
168 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,20 +20,69 @@ const WalineComponent = (props) => { | |
waline.update(props) | ||
} | ||
} | ||
const locale = { | ||
nick: '昵称', | ||
nickError: '昵称不能少于3个字符哦...', | ||
mail: '邮箱', | ||
mailError: '请填写正确的邮件地址', | ||
link: '网址', | ||
optional: '可选', | ||
placeholder: '来叭叭,信息都不留也行哈~\n如果留下邮箱的话,被回复时会有📧通知~', | ||
sofa: '来发评论吧~', | ||
submit: '提交~', | ||
like: '喜欢~', | ||
cancelLike: '取消喜欢', | ||
reply: '回复~', | ||
cancelReply: '取消回复', | ||
comment: '评论~', | ||
refresh: '刷新', | ||
more: '加载更多...', | ||
preview: '预览', | ||
emoji: '表情', | ||
uploadImage: '上传图片', | ||
seconds: '秒前', | ||
minutes: '分钟前', | ||
hours: '小时前', | ||
days: '天前', | ||
now: '刚刚', | ||
uploading: '正在上传', | ||
login: '登录', | ||
logout: '退出', | ||
admin: '博主同志', | ||
sticky: '置顶', | ||
word: '字', | ||
wordHint: '评论字数应在 $0 到 $1 字之间!\n当前字数:$2', | ||
anonymous: '匿名同志', | ||
gif: '表情包', | ||
profile: '个人资料', | ||
approved: '通过', | ||
waiting: '待审核', | ||
spam: '垃圾', | ||
unsticky: '取消置顶', | ||
oldest: '按倒序', | ||
latest: '按正序', | ||
hottest: '按热度', | ||
reactionTitle: 'hi,觉得这篇文章咋样?选一个叭~' | ||
} | ||
|
||
React.useEffect(() => { | ||
if (!waline) { | ||
waline = init({ | ||
...props, | ||
el: containerRef.current, | ||
locale, | ||
serverURL: BLOG.COMMENT_WALINE_SERVER_URL, | ||
lang: BLOG.lang, | ||
reaction: true, | ||
dark: 'html.dark', | ||
emoji: [ | ||
'//npm.elemecdn.com/@waline/[email protected]/tieba', | ||
'//npm.elemecdn.com/@waline/[email protected]/weibo', | ||
'//npm.elemecdn.com/@waline/[email protected]/bilibili' | ||
'//npm.elemecdn.com/[email protected]/Sticker-100', | ||
'//npm.elemecdn.com/@waline/[email protected]/qq', | ||
'//npm.elemecdn.com/@waline/[email protected]/tieba', | ||
'//npm.elemecdn.com/@waline/[email protected]/weibo', | ||
'//npm.elemecdn.com/@waline/[email protected]/bilibili', | ||
'//file.66619.eu.org/beluga-emoji', | ||
'//file.66619.eu.org/ikun-emoji' | ||
] | ||
}) | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,5 +73,13 @@ | |
"bugs": { | ||
"url": "https://github.com/tangly/NotionNext/issues", | ||
"email": "[email protected]" | ||
}, | ||
"rules": { | ||
"generator-star-spacing": "off", | ||
"no-debugger": "off", | ||
"no-tabs": "off", | ||
"no-unused-vars": "off", | ||
"no-console": "off", | ||
"no-irregular-whitespace": "off" | ||
} | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters