Skip to content

Commit

Permalink
release v1.11
Browse files Browse the repository at this point in the history
  • Loading branch information
staugur committed Dec 15, 2020
1 parent ab9a326 commit 0c3ecc1
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 6 deletions.
27 changes: 26 additions & 1 deletion docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,35 @@
更新日志
=========

v1.11.0
--------

Released in 2020-12-15

功能:
- 命令行客户端更新:

- cli.py win10 通知功能
- emmmm, 然后cli.py就被废弃,全部功能用golang重写,命名为
`picbed-cli <https://github.com/staugur/picbed-cli>`_
- 命令行文档更新,cli.py文档仍然保留

- 图片分享功能

- 管理员控制台新增"注册审核邮箱",开启注册审核并填写审核邮箱后,新用户注册会发送邮件提醒,
不过发送邮件依赖邮件服务。

- 新用户注册审核结果通知:无论拒绝还是通过,前提是用户验证了邮箱。
另外,发送邮件也依赖邮件服务。

更改:
- 配合picbed-cli,api返回的msg字段None改为空字符串
- LinkToken统计的UserAgent解析picbed-cli专属头字段并进行图标显示

v1.10.5
-------

Released in 2020-1-07
Released in 2020-11-07

- api.upload返回字段增加tpl:url、md、rst、html模板

Expand Down
2 changes: 1 addition & 1 deletion docs/cli.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ picbed图床客户端上传工具cli.py,之前集成在
`picbed源仓库 <https://github.com/staugur/picbed/tree/1.10.5/cli>`_ 中,使用
python编写,其跨平台需要Python环境支持,相对麻烦。

不过2020-11-26开始,picbed源仓库移除cli.py,且使用golang编写的
不过2020-11-26开始(或者说自v1.11.0开始),picbed源仓库移除cli.py,且使用golang编写的
`picbed-cli <https://github.com/staugur/picbed-cli>`_ 发布初始版本,凭借golang的
特性,打包后的命令天然具有跨平台能力,且已打包win、mac、linux三端压缩包,可在release中
直接下载,实现了cli.py所有功能!
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Gitee:https://gitee.com/staugur/picbed

7. 支持油猴脚本(用户脚本) ,使用它,几乎可以采集全网图片!

8. 多种上传方式:用户脚本、JS SDK、命令行脚本(可集成Windows、macOS右键)、支持HTTP API的图床客户端
8. 多种上传方式:用户脚本、JS SDK、命令行工具(支持三端系统,可集成Windows、macOS右键菜单)、支持HTTP API的图床客户端

不足:
-------
Expand Down
2 changes: 2 additions & 0 deletions docs/module.rst
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ Picbed Modules

.. autofunction:: sendmail

.. autofunction:: async_sendmail

.. autofunction:: make_email_tpl

.. autofunction:: try_proxy_request
Expand Down
2 changes: 1 addition & 1 deletion src/templates/control/my.html
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@
'<div style="padding: 15px;">',
'<center><img src="' + mySrc + '" width="300px"><br><br>',
'<p>点击下方按钮分享</p>',
'<div class="shorturl-social-share" data-mobile-sites="weibo,qq,qzone,wechat"></div></center>',
'<div class="shorturl-social-share"></div></center>',
'</div>'
].join("");
layer.open({
Expand Down
3 changes: 2 additions & 1 deletion src/utils/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ def check_activate_token(token):


def sendmail(subject, message, to):
"""调用钩子中发送邮件函数(任意钩子发送成功即停止)
"""调用钩子中发送邮件函数(任意钩子发送成功即停止),要求用于Web上下文环境
:param str subject: 主题
:param str message: 正文(支持HTML)
Expand All @@ -623,6 +623,7 @@ def sendmail(subject, message, to):


def async_sendmail(subject, message, to):
"""异步邮件发送,可用于多线程及非Web上下文环境"""
def send_async_email(app):
with app.test_request_context():
app.preprocess_request()
Expand Down
2 changes: 1 addition & 1 deletion src/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.10.6-rc4'
__version__ = '1.11.0'

0 comments on commit 0c3ecc1

Please sign in to comment.