Skip to content

TiannV/Valine

 
 

Repository files navigation

Valine

version npm downloads build donate

A fast, simple & powerful comment system. 适配memfire


View Documentation

Features

  • High speed.
  • Safe by default.
  • No server-side implementation.
  • Support for full markdown syntax.
  • Simple and lightweight.

See the Quick start for more details.

Contributors

集成

  1. https://cloud.memfiredb.com/auth/login 注册登录
  2. 创建应用,进入应用数据库创建comments表用于存储评论。
CREATE TABLE comments
(
   id UUID PRIMARY KEY DEFAULT uuid_generate_v4(),
    comment text,
    QQAvatar varchar(300),
    time	int,
    title	varchar(300),
    updatedAt	timestamptz,
    createdAt	timestamptz,
    pid	varchar(300),
    url	varchar(300),
    link varchar(300),
    rid varchar(300),
    mail varchar(300),
    ua varchar(300),
    nick varchar(300),
    ip varchar(300)
);
  1. 进入应用,获取网址anon key
  2. index.html 填入app_urlapp_key
valine.init({
    el: '.comment',
    app_key: '填入appkey',
    app_url: '填入app_url',
    placeholder: 'ヾノ≧∀≦)o来啊,快活啊!',
    path: window.location.pathname,
    avatar:'mm', // 1.1.7 新增(mm/identicon/monsterid/wavatar/retro)
    // guest_info: ['nick'] // 默认 ['nick', 'mail', 'link']
})
npm install
npm run build

主要用到的js文件就是打包文件:dist/Valine.min.js

静态托管

打包全部文件上传到Memfire Cloud的静态托管

在线体验

https://app.memfiredb.com/cb589ci5g6h46gn9g6q0/

License

GPL-2.0

About

A fast, simple & powerful comment system.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 76.8%
  • SCSS 16.5%
  • HTML 6.7%