Migration from Valine
Since Waline completely reuses Valine's data structure in storage, migrating from Valine to Waline is very simple.
Deploy backend according to Vercel Deploy in Get Started section.
LEAN_ID
andLEAN_KEY
should be the same as those applied for when using Valine before. Don't forget to setLEAN_MASTER_KEY
for Waline.Modify frontend scripts according to HTML in Get Started section. Please remind we should remove old configuration
appId
andappKey
from Valine, and addserverURL
option.- <script src='//unpkg.com/valine/dist/Valine.min.js'></script> + <script src='//unpkg.com/@waline/client@v2/dist/waline.js'></script> + <link href='//unpkg.com/@waline/client@v2/dist/waline.css' rel='stylesheet' /> <script> - new Valine({ + Waline.init({ el: '#vcomments', - appId: 'Your appId', - appKey: 'Your appKey' + serverURL: 'YOUR SERVER URL' }); </script>
Config
Waline V2 has removed Valine support and moved to a better configuration. The following is a migration summary of some options:
placeholder
: uselocales.placeholder
highlight
: usehighlighter
avatarForce
,avatar
: use the server'sAVATAR_PROXY
environment variablerecordIP
: no longer display the user IP, and provide theDISABLE_USERAGENT
environment variable on the serverrequiredFields
: renamed torequiredMeta
langMode
: renamed tolocales
emojiCDN
,emojiMap
: use more powerfulemoji
options
For waline config, please refer to Client Config. You can also check Waline Client V2 Migration Guide to learn about the options that are not compatible with Valine.
Using Leancloud China
Besides LEAN_ID
and LEAN_KEY
, you need to config LEAN_SERVER
environment variable if you're the user of LeanCloud China.
Also, you need to complete Domain name filing to Local Communications Administration, that needs a Fixed IP。
Migration to Cloudbase
If you want to migrate your Valine data to Tencent Cloud Database, you can use the import function of LeanCloud with the import function of the cloud database. Select Import/Export > Limit to certain classes > Comment > Export in the LeanCloud background, and then you will receive a email notification.
Paste the content of export file into the textarea below, and click the convert button to obtain the file to be imported. Enter the Tencent Cloud Development Backend → Database page and select the Comment
collection. If the collection doesn't exist, click New Collection in the upper left corner to create it. Click the import button above, select the converted file and wait a while to complete importing.
Waline Highlights
Compared with Valine, Waline has the following highlights:
More features
- Markdown supports more syntax, including superscript and subscript, emoji, tables, strike-through, mathematical formulas, HTML tags, footnotes, etc.
- Image upload feature, which allows customized image provider service or embedding images directly.
- The brand new label system adds level labels for users according to the frequency of user interaction, and support custom labels for registered users.
- Emoji presets and tab support, allowing multiple sets of Emoji, while allowing anyone to publish and use Emoji presets.
- A brand new reaction system that allows visitors to express their attitude towards the article.
- Comment likes, express support for the comment you like.
- Pageviews, more accurate viewing and anti-tampering.
- Emoji search. Customizable service, allowing users to search and insert emoticons freely.
- Support registered users to edit and delete their published comments.
Safer
- Zero privacy leakage, will not expose user mailboxes, IP addresses and other sensitive information, and can choose to hide user geographic location, browser and operating system at server
- Complete anti-spam system.
- All comments can be authenticated by anti-spam services and support additional validation logic.
- You can set the comment speed limit for a single IP or a single user, and Waline automatically identify duplicate comments.
- Comment review feature, in sensitive periods or when the website is under attack, you can enable comment review, manually review and approve the display of comments, and prevent malicious comments from causing site closure.
- Support user accounts. Besides registering an account, Waline also supports social media accounts, quickly synchronizes avatars and nicknames with authorized label to prevent identity fraud.
more convenient
- Various methods (QQ, WeChat, DingTalk, E-mail), etc. to notify bloggers about comments
- Powerful management service, you can view all users and comments and perform related operations, and set custom labels and administrators for users
- Front-end management, administrators can review, edit or delete comments directly through the Waline comment component.
- 0
- 0
- 0
- 0
- 0
- 0