Giter VIP home page Giter VIP logo

valine-admin's People

Contributors

aisk avatar dependabot[bot] avatar desertsp avatar desertspan avatar eillon avatar feisuzhu avatar heziqiang avatar hjiang avatar imaegoo avatar jalenzz avatar juvenn avatar jysperm avatar leeyeh avatar lzwjava avatar myleslee avatar sdjcw avatar snowflake-pink avatar sparanoid avatar wangxiao avatar weakish avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

valine-admin's Issues

部署失败。

无论是用脚本还是自己按步骤部署都会失败
错误代码为

[Git] master: Merge pull request #2 from ZvonimirSun/master
STDOUT  11:04:16
运行环境: nodejs
STDOUT  11:04:16
正在下载和安装依赖项 ...
STDERR  11:07:22
部署失败:npm WARN deprecated [email protected]: Critical security bugs fixed in 2.5.5
npm ERR! registry error parsing json
npm ERR! registry error parsing json
npm ERR! Linux 4.13.0-26-generic
npm ERR! argv "/usr/local/nvm/versions/node/v6.14.2/bin/node" "/usr/local/bin/npm" "install" "--production" "--registry=http://registry.npm.taobao.org" "--disturl=http://npm.taobao.org/dist" "--sass-binary-site=https://npm.taobao.org/mirrors/node-sass/"
npm ERR! node v6.14.2
npm ERR! npm  v3.10.10

npm ERR! failed to fetch from registry: http://registry.npm.taobao.org/mime
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     /home/leanengine/app/npm-debug.log

Valine Admin 说明

Valine Admin 是基于Leancloud云引擎示例代码开发的。项目代码量很少,修修补补也不会很多。不求各位看官Star。

一些有能力的朋友Fork后做了不少有意义的修改,比如兼容新版Valine,增加邮件模板功能等。由于本人忙于考试,项目疏于管理,也鲜有人发起Pull Requests,带来了很多不必要的重复工作。

然而,有些人不进行Fork就将该项目代码发布在个人Github上,去除了Contributor相关信息,使用Deserts上的博文内容却未注明引用来源,在博客和论坛中摇尾乞怜要Star。

鉴于此,恳请有能力的朋友在修改本项目后提交Pull Requests,遇到部署失败等问题时留下您的联系方式并详述遇到的问题,也欢迎所有人到我的博客相关文章下面留言。

126 邮箱 smtp 连接不上

  • 错误信息
SMTP邮箱配置异常: { Error: Greeting never received
STDOUT web1 21:11:35
    at SMTPConnection._formatError (/home/leanengine/app/node_modules/nodemailer/lib/smtp-connection/index.js:605:19)
STDOUT web1 21:11:35
    at SMTPConnection._onError (/home/leanengine/app/node_modules/nodemailer/lib/smtp-connection/index.js:591:20)
STDOUT web1 21:11:35
    at Timeout._greetingTimeout.setTimeout (/home/leanengine/app/node_modules/nodemailer/lib/smtp-connection/index.js:532:22)
STDOUT web1 21:11:35
    at ontimeout (timers.js:386:11)
STDOUT web1 21:11:35
    at tryOnTimeout (timers.js:250:5)
STDOUT web1 21:11:35
    at Timer.listOnTimeout (timers.js:214:5) code: 'ETIMEDOUT', command: 'CONN' }

网上找到的相关信息

使用outlook发送通知邮件失败

版本是该仓库的最新版本。
日志如下:

STDOUT web1 23:54:19
{ Error: 140251656853312:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:../deps/openssl/openssl/ssl/s23_clnt.c:827:
STDOUT web1 23:54:19

STDOUT web1 23:54:19
    at Error (native) code: 'ECONNECTION', command: 'CONN' }

怀疑和Email里面含有'_'字符有关

建议增加ip屏蔽功能

RT,最近很受垃圾评论困扰。。

但是自带的评论过滤插件不知道为什么没有屏蔽掉。。

在LeanCloud的后台按照教程设置完后邮件提醒仍然不可用

点击请求验证(email)提示未开启邮件验证
点击请求验证(email)提示未开启邮件验证

点击请求重置(密码)可以正常收到邮件
点击请求重置(密码)可以正常收到邮件

在博客中启用评论功能后可以正常发表评论,但@回复别人没有邮件提醒。
不知道是哪里设置出了问题?我想要回复评论会自动发通知邮件到被回复人所填的邮箱。
烦请大佬指点一二,不胜感激!

PARENT_NICK is not defined

LeanEngine: /Comment/afterSave: 500: ReferenceError: PARENT_NICK is not defined
STDERR
at eval (eval at (/home/leanengine/app/utilities/send-mail.js:40:45), :1:385)
STDERR
at Object.exports.notice (/home/leanengine/app/utilities/send-mail.js:40:24)
STDERR
at sendNotification (/home/leanengine/app/cloud.js:10:14)
STDERR
at /home/leanengine/app/cloud.js:44:12
STDERR
at err (/home/leanengine/app/node_modules/leanengine/lib/leanengine.js:356:23)
STDERR
at promiseTry (/home/leanengine/app/node_modules/leanengine/lib/leanengine.js:354:10)
STDERR
at Promise (/home/leanengine/app/node_modules/leanengine/lib/leanengine.js:249:7)
STDERR
at callClassHook (/home/leanengine/app/node_modules/leanengine/lib/leanengine.js:237:10)
STDERR
at promiseTry (/home/leanengine/app/node_modules/leanengine/lib/leanengine.js:104:16)
STDERR
at err (/home/leanengine/app/node_modules/leanengine/lib/leanengine.js:356:23)
STDERR
at promiseTry (/home/leanengine/app/node_modules/leanengine/lib/leanengine.js:354:10)
STDERR
at /home/leanengine/app/node_modules/leanengine/lib/leanengine.js:86:5
STDERR
at call (/home/leanengine/app/node_modules/connect/index.js:239:7)
STDERR
at next (/home/leanengine/app/node_modules/connect/index.js:183:5)
STDERR
at next (/home/leanengine/app/node_modules/connect/index.js:161:14)
STDERR
at /home/leanengine/app/node_modules/leanengine/middleware/leancloud-headers.js:82:18

qq邮件发送失败Error501

发送邮件提醒时会提示501 mail from address must be same as authorization user,发件失败,请帮忙看看
image

一个报错

我在使用邮件发送的功能时报错535

可能不需要部署

您好,

leancloud是支持跨域,可以使用Master Key,

所以如果只是管理评论,是不是可以不需要部署,

可以使用静态页面即可

博主通知邮箱 WASCL UserAction verdict is not None. Actual verdict is HipNotify

这条评论没有 @ 任何人
STDOUT
垃圾评论检测完成,放行~
STDOUT
{ Error: Message failed: 554 5.2.0 STOREDRV.Submission.Exception:OutboundSpamException; Failed to process message due to a permanent exception with message WASCL UserAction verdict is not None. Actual verdict is HipNotify, ShowTierUpgrade. OutboundSpamException: WASCL UserAction verdict is not None. Actual verdict is HipNotify, ShowTierUpgrade. [Hostname=TY2PR06MB3117.apcprd06.prod.outlook.com]
STDOUT
at SMTPConnection._formatError (/home/leanengine/app/node_modules/nodemailer/lib/smtp-connection/index.js:605:19)
STDOUT
at SMTPConnection._actionSMTPStream (/home/leanengine/app/node_modules/nodemailer/lib/smtp-connection/index.js:1478:34)
STDOUT
at SMTPConnection._responseActions.push.str (/home/leanengine/app/node_modules/nodemailer/lib/smtp-connection/index.js:968:22)
STDOUT
at SMTPConnection._processResponse (/home/leanengine/app/node_modules/nodemailer/lib/smtp-connection/index.js:764:20)
STDOUT
at SMTPConnection._onData (/home/leanengine/app/node_modules/nodemailer/lib/smtp-connection/index.js:570:14)
STDOUT
at TLSSocket._socket.on.chunk (/home/leanengine/app/node_modules/nodemailer/lib/smtp-connection/index.js:710:55)
STDOUT
at emitOne (events.js:96:13)
STDOUT
at TLSSocket.emit (events.js:188:7)
STDOUT
at readableAddChunk (_stream_readable.js:176:18)
STDOUT
at TLSSocket.Readable.push (_stream_readable.js:134:10)
STDOUT
at TLSWrap.onread (net.js:559:20)
STDOUT
code: 'EMESSAGE',
STDOUT
response: '554 5.2.0 STOREDRV.Submission.Exception:OutboundSpamException; Failed to process message due to a permanent exception with message WASCL UserAction verdict is not None. Actual verdict is HipNotify, ShowTierUpgrade. OutboundSpamException: WASCL UserAction verdict is not None. Actual verdict is HipNotify, ShowTierUpgrade. [Hostname=TY2PR06MB3117.apcprd06.prod.outlook.com]',
STDOUT
responseCode: 554,
STDOUT
command: 'DATA' }

登录验证的一个逻辑错误

复现步骤

  1. 设置管理员接收邮箱为: [email protected](任意邮箱)
  2. 访问sign-up注册管理员账号,此时注册完成以后,可以通过管理员邮箱登录
  3. 修改环境变量,把管理员邮箱改为:[email protected](另一个任意邮箱)
  4. 重启实例
  5. 访问sign-up注册管理员账号
  6. 此时,无法使用[email protected]登录后台,也无法使用[email protected]登录后台。必需把User里面的记录删除以后重新注册才能正常登录。

SMTP邮箱配置异常

STDOUT web1 13:05:26
> [email protected] start /home/leanengine/app
STDOUT web1 13:05:26
> node server.js
STDOUT web1 13:05:26

STDOUT web1 13:05:28
    at SMTPConnection._responseActions.push.str (/home/leanengine/app/node_modules/nodemailer/lib/smtp-connection/index.js:366:26)
STDOUT web1 13:05:28
Node app is running on port: 3000
STDOUT web1 13:05:28
SMTP邮箱配置异常: { Error: Invalid login: 535 Error: ÇëʹÓÃÊÚȨÂëµÇ¼¡£ÏêÇéÇë¿´: http://service.mail.qq.com/cgi-bin/help?subtype=1&&id=28&&no=1001256
STDOUT web1 13:05:28
    at SMTPConnection._formatError (/home/leanengine/app/node_modules/nodemailer/lib/smtp-connection/index.js:606:19)
STDOUT web1 13:05:28
    at SMTPConnection._processResponse (/home/leanengine/app/node_modules/nodemailer/lib/smtp-connection/index.js:762:20)
STDOUT web1 13:05:28
    at SMTPConnection._onData (/home/leanengine/app/node_modules/nodemailer/lib/smtp-connection/index.js:558:14)
STDOUT web1 13:05:28
    at TLSSocket._socket.on.chunk (/home/leanengine/app/node_modules/nodemailer/lib/smtp-connection/index.js:510:47)
STDOUT web1 13:05:28
    at emitOne (events.js:96:13)
STDOUT web1 13:05:28
    at readableAddChunk (_stream_readable.js:176:18)
STDOUT web1 13:05:28
    at TLSSocket.Readable.push (_stream_readable.js:134:10)
STDOUT web1 13:05:28
    at TLSWrap.onread (net.js:559:20)
STDOUT web1 13:05:28
  code: 'EAUTH',
STDOUT web1 13:05:28
  response: '535 Error: ÇëʹÓÃÊÚȨÂëµÇ¼¡£ÏêÇéÇë¿´: http://service.mail.qq.com/cgi-bin/help?subtype=1&&id=28&&no=1001256',
STDOUT web1 13:05:28
  responseCode: 535,
STDOUT web1 13:05:28
  command: 'AUTH PLAIN' }
STDOUT web1 13:05:28
实例启动成功:{"runtime":"nodejs-v6.14.4","version":"3.3.2"}

跳转到对应评论的bug

邮件通知里的链接可以设置了跳转到对应评论,但是当跳转到对应页面的时候,评论框及其内容是没有加载出来的,所以无法跳转到对应的评论。

是不是可以等评论框及其内容加载完成后再次跳转到对应评论?

建议加个指定时间发送邮件通知的功能

建议加个在指定时间发送邮件通知的功能,因为有时候工作时间或休息时间不希望接收邮件(防打扰)。
在指定时间发送邮件方便我们在那个时间【统一】处理这些评论回复的邮件

建议邮件回复模板里增加 POST_TITLE

希望增加一个POST_TITLE,可以取document.title, 网站的名字游客可能记不住,但是评论过的帖子的名称游客会记忆更深刻一点,然后我们把POST_TITLE放到通知邮件的标题里去,游客收到邮件提醒就不会感到陌生了,这样子体验会更好。

关于评论的几个问题?

1)不能评论,评论框下面显示:
Code -1: Request has been terminated
Possible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.

2)设置了verify = false, 但是还是需要输入验证码

麻烦看下:)

邮件提醒:多了一封<重设 hexo 的密码>

邮件提醒正常,但是每次会多一封:
您请求重设应用 hexo 的密码。点击下列链接来重设您的帐号密码(链接在 48 小时内有效):

这是什么原因造成的?有人知道么?

关于Valine-Admin问题

大佬你好 麻烦问下 如果使用Valine 用户要想给你留言是不是就要注册Valine的账号

关于邮件提醒

希望能根据邮箱来判断博主。

自己发的回复建议不再提醒。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.