mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-06-07 05:34:17 +00:00
- Add splitTemplate() to split at proxies:/proxy-groups: markers (like mihomo-gen) - Store clash_template.yaml and servers.yaml as files alongside x-ui.json - Add Clash/Servers editors in Xray advanced config page - Support multi-server proxy generation (each server × each client) - Remove inline template editor from Clash settings panel - Bump version to v1.7.2.1
24 lines
1.4 KiB
HTML
24 lines
1.4 KiB
HTML
{{define "settings/panel/subscription/clash"}}
|
|
<a-collapse default-active-key="['1']">
|
|
<a-collapse-panel key="1" header='{{ i18n "pages.xray.generalConfigs"}}'>
|
|
<a-setting-list-item paddings="small">
|
|
<template #title>{{ i18n "pages.settings.subPath"}}</template>
|
|
<template #description>{{ i18n "pages.settings.subPathDesc"}}</template>
|
|
<template #control>
|
|
<a-input type="text" v-model="allSetting.subClashPath"
|
|
@input="allSetting.subClashPath = ((typeof $event === 'string' ? $event : ($event && $event.target ? $event.target.value : '')) || '').replace(/[:*]/g, '')"
|
|
@blur="allSetting.subClashPath = (p => { p = p || '/'; if (!p.startsWith('/')) p='/' + p; if (!p.endsWith('/')) p += '/'; return p.replace(/\/+/g,'/'); })(allSetting.subClashPath)"
|
|
placeholder="/clash/"></a-input>
|
|
</template>
|
|
</a-setting-list-item>
|
|
<a-setting-list-item paddings="small">
|
|
<template #title>{{ i18n "pages.settings.subURI"}}</template>
|
|
<template #description>{{ i18n "pages.settings.subURIDesc"}}</template>
|
|
<template #control>
|
|
<a-input type="text" placeholder="(http|https)://domain[:port]/path/"
|
|
v-model="allSetting.subClashURI"></a-input>
|
|
</template>
|
|
</a-setting-list-item>
|
|
</a-collapse-panel>
|
|
</a-collapse>
|
|
{{end}}
|