Skip to content

Commit

Permalink
Merge pull request #177 from lkw199711/version/3.6.4
Browse files Browse the repository at this point in the history
Version/3.6.4
  • Loading branch information
lkw199711 committed Dec 9, 2023
2 parents c7e80f3 + 08f7fde commit c715f27
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 7 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ Telegram 交流群:https://t.me/+FFgQ7AMIdrg2M2Y1
- 3.6.1 新增任务展示列表.
- 3.6.2 支持ssl证书设置.
- 3.6.3 存储封面时将进行压缩.
- 3.6.4 修复ssl证书路径回显以及封面压缩大小设置.

## 开发注意事项

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "smanga",
"version": "3.6.3",
"version": "3.6.4",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
Expand Down
29 changes: 23 additions & 6 deletions src/views/serve-setting/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author: lkw199711 lkw199711@163.com
* @Date: 2023-07-16 12:02:34
* @LastEditors: lkw199711 lkw199711@163.com
* @LastEditTime: 2023-12-03 20:14:28
* @LastEditTime: 2023-12-07 00:04:21
* @FilePath: /smanga/src/views/serve-setting/index.vue
-->
<template>
Expand Down Expand Up @@ -43,13 +43,26 @@

<el-button type="primary" @click="comfirm_ssl">确定</el-button>
<el-button type="success" @click="reset_ssl">重置ssl证书设置</el-button>

<p class="note form-note">
ssl证书在默认模式下,以http的方式监听443端口,使用http://smanga_domain:443可以访问.
你可以使用宿主机的nginx配置反向代理进行设置.
如果你在宿主机没有nginx或者不希望通过反代的方式进行配置,可以在此处填写证书使用的文件,smanga会将这些文件写入到nginx配置之中.
</p>
</div>


<p class="s-form-title">封面设置</p>
<!-- 语言设置 -->
<div class="scan">
<el-form-item label="压缩大小">
<el-input v-model="form.posterSize" class="poster-size"></el-input>
<el-button type="primary" @click="confirm_poster_size">确定</el-button>
</el-form-item>
</div>
<p class="note form-note">
扫描周期单位为秒,可使用*表达式.设置周期最短为10
</p>
</el-form>
</div>
</template>
Expand All @@ -66,6 +79,7 @@ const form = reactive({
pem: '',
// 证书key文件
key: '',
posterSize: 100,
})
/**
Expand All @@ -84,6 +98,10 @@ async function comfirm_auto_compressl() {
serveSettingApi.set('scan', 'autoCompress', form.autoCompress)
}
async function confirm_poster_size() {
serveSettingApi.set('poster', 'size', form.posterSize)
}
/**
* @description: 设置ssl证书
* @return {*}
Expand All @@ -101,14 +119,13 @@ async function reset_ssl() {
}
onMounted(async () => {
const res = await serveSettingApi.get();
form.interval = res.interval
form.autoCompress = res.autoCompress
Object.assign(form, res);
})
</script>

<style scoped lang="less">
.interval {
.interval,.poster-size {
margin-right: 2rem;
width: 20rem;
Expand Down Expand Up @@ -148,7 +165,7 @@ onMounted(async () => {
margin: 3rem 2rem 0;
}
.interval {
.interval,.poster-size {
width: 14rem;
}
}
Expand Down

0 comments on commit c715f27

Please sign in to comment.