Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
img_upload.enabled
为false
时,非管理员图片上传按钮自动隐藏Api.imgUpload
方法,适配后端新增/api/img-upload
conf-updated
事件,以后this.ctx.conf
set 时需要手动 trigger 一下后端更新
关联后端 PR:ArtalkJS/ArtalkGo#18
img_upload.path
img_upload.max_size
img_upload.public_path
captcha
开启img_upload.enabled
,当设为false
时仅管理员可上传img_upload.upgit
本次更新变动配置文件,可参考最新
artalk.config.example.yml
演示
TODOs
textarea.value
加载中占位字符会导致上传失败