|
@ -6,6 +6,8 @@ |
|
|
<div slot="header"> |
|
|
<div slot="header"> |
|
|
Subscription Converter |
|
|
Subscription Converter |
|
|
<svg-icon icon-class="github" style="margin-left: 20px" @click="goToProject" /> |
|
|
<svg-icon icon-class="github" style="margin-left: 20px" @click="goToProject" /> |
|
|
|
|
|
|
|
|
|
|
|
<div style="display: inline-block; position:absolute; right: 20px">{{ backendVersion }}</div> |
|
|
</div> |
|
|
</div> |
|
|
<el-container> |
|
|
<el-container> |
|
|
<el-form :model="form" label-width="120px" label-position="left" style="width: 100%"> |
|
|
<el-form :model="form" label-width="120px" label-position="left" style="width: 100%"> |
|
@ -219,6 +221,7 @@ const tgBotLink = "https://t.me/CareyWong_bot"; |
|
|
export default { |
|
|
export default { |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
|
|
|
backendVersion: '', |
|
|
advanced: "2", |
|
|
advanced: "2", |
|
|
|
|
|
|
|
|
options: { |
|
|
options: { |
|
@ -336,6 +339,7 @@ export default { |
|
|
mounted() { |
|
|
mounted() { |
|
|
this.form.clientType = "clashr"; |
|
|
this.form.clientType = "clashr"; |
|
|
this.notify(); |
|
|
this.notify(); |
|
|
|
|
|
this.getBackendVersion(); |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
onCopy() { |
|
|
onCopy() { |
|
@ -533,6 +537,11 @@ export default { |
|
|
candidate.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0 |
|
|
candidate.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0 |
|
|
); |
|
|
); |
|
|
}; |
|
|
}; |
|
|
|
|
|
}, |
|
|
|
|
|
getBackendVersion() { |
|
|
|
|
|
this.$axios.get(defaultBackend.substring(0, defaultBackend.length - 5) + '/version').then(res => { |
|
|
|
|
|
this.backendVersion = res.data.replace(/\n$/gm, ''); |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}; |
|
|
}; |
|
|