|
@ -153,16 +153,30 @@ |
|
|
:close-on-press-escape="false" |
|
|
:close-on-press-escape="false" |
|
|
width="700px" |
|
|
width="700px" |
|
|
> |
|
|
> |
|
|
<el-form label-position="left" label-width="130px"> |
|
|
<el-form label-position="left" label-width="150px"> |
|
|
<el-form-item label="密码" prop="uploadPasswordItem"> |
|
|
<el-form-item prop="uploadPasswordItem"> |
|
|
|
|
|
<div slot="label"> |
|
|
|
|
|
密码: |
|
|
|
|
|
<el-popover trigger="hover" placement="right"> |
|
|
|
|
|
<el-link type="primary" :href="myBot" target="_blank" icon="el-icon-s-promotion">@CareyWong_bot</el-link> |
|
|
|
|
|
<i class="el-icon-question" slot="reference"></i> |
|
|
|
|
|
</el-popover> |
|
|
|
|
|
</div> |
|
|
<el-input v-model="uploadPassword" show-password placeholder="请输入密码" style="width: 250px"></el-input> |
|
|
<el-input v-model="uploadPassword" show-password placeholder="请输入密码" style="width: 250px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="Remote config" prop="uploadConfig"> |
|
|
<el-form-item prop="uploadConfig"> |
|
|
|
|
|
<div slot="label"> |
|
|
|
|
|
RemoteConfig: |
|
|
|
|
|
<el-popover trigger="hover" placement="right"> |
|
|
|
|
|
<el-link type="primary" :href="sampleConfig" target="_blank" icon="el-icon-info">参考配置</el-link> |
|
|
|
|
|
<i class="el-icon-question" slot="reference"></i> |
|
|
|
|
|
</el-popover> |
|
|
|
|
|
</div> |
|
|
<el-input |
|
|
<el-input |
|
|
v-model="uploadConfig" |
|
|
v-model="uploadConfig" |
|
|
type="textarea" |
|
|
type="textarea" |
|
|
:autosize="{ minRows: 15, maxRows: 15}" |
|
|
:autosize="{ minRows: 15, maxRows: 15}" |
|
|
maxlength="2000" |
|
|
maxlength="3000" |
|
|
show-word-limit |
|
|
show-word-limit |
|
|
></el-input> |
|
|
></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
@ -181,11 +195,12 @@ |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
const remoteConfigSample = |
|
|
const remoteConfigSample = |
|
|
"https://raw.githubusercontent.com/tindy2013/subconverter/master/base/example_external_config.ini"; |
|
|
"https://raw.githubusercontent.com/tindy2013/subconverter/master/base/config/example_external_config.ini"; |
|
|
const gayhubRelease = "https://github.com/tindy2013/subconverter/releases"; |
|
|
const gayhubRelease = "https://github.com/tindy2013/subconverter/releases"; |
|
|
const defaultBackend = "https://api.wcc.best/sub?"; |
|
|
const defaultBackend = "https://api.wcc.best/sub?"; |
|
|
const shortUrlBackend = ""; |
|
|
const shortUrlBackend = ""; |
|
|
const configUploadBackend = "https://api.wcc.best/config/upload" |
|
|
const configUploadBackend = "https://api.wcc.best/config/upload"; |
|
|
|
|
|
const tgBotLink = "https://t.me/CareyWong_bot" |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
data() { |
|
|
data() { |
|
@ -240,6 +255,11 @@ export default { |
|
|
value: |
|
|
value: |
|
|
"https://raw.githubusercontent.com/CareyWang/sub-web/master/docs/customized/yoyu.ini" |
|
|
"https://raw.githubusercontent.com/CareyWang/sub-web/master/docs/customized/yoyu.ini" |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: "Ytoo", |
|
|
|
|
|
value: |
|
|
|
|
|
"https://raw.githubusercontent.com/CareyWang/sub-web/master/docs/customized/ytoo.ini" |
|
|
|
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: "贼船", |
|
|
label: "贼船", |
|
|
value: |
|
|
value: |
|
@ -281,7 +301,9 @@ export default { |
|
|
|
|
|
|
|
|
dialogUploadConfigVisible: false, |
|
|
dialogUploadConfigVisible: false, |
|
|
uploadConfig: "", |
|
|
uploadConfig: "", |
|
|
uploadPassword: "" |
|
|
uploadPassword: "", |
|
|
|
|
|
myBot: tgBotLink, |
|
|
|
|
|
sampleConfig: remoteConfigSample, |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
created() { |
|
|
created() { |
|
|