2023-02-09 22:48:06 +03:30
|
|
|
{{define "form/shadowsocks"}}
|
2023-12-13 19:27:36 +03:30
|
|
|
<template v-if="inbound.isSSMultiUser">
|
2023-12-09 18:48:06 +03:30
|
|
|
<a-collapse activeKey="0" v-for="(client, index) in inbound.settings.shadowsockses.slice(0,1)" v-if="!isEdit">
|
2023-05-06 20:21:14 +03:30
|
|
|
<a-collapse-panel header='{{ i18n "pages.inbounds.client" }}'>
|
2023-12-04 19:17:38 +01:00
|
|
|
{{template "form/client"}}
|
2023-05-06 20:21:14 +03:30
|
|
|
</a-collapse-panel>
|
|
|
|
|
</a-collapse>
|
|
|
|
|
<a-collapse v-else>
|
|
|
|
|
<a-collapse-panel :header="'{{ i18n "pages.client.clientCount"}} : ' + inbound.settings.shadowsockses.length">
|
|
|
|
|
<table width="100%">
|
|
|
|
|
<tr class="client-table-header">
|
2023-06-21 14:02:13 +03:30
|
|
|
<th>{{ i18n "pages.inbounds.email" }}</th>
|
|
|
|
|
<th>Password</th>
|
2023-05-06 20:21:14 +03:30
|
|
|
</tr>
|
|
|
|
|
<tr v-for="(client, index) in inbound.settings.shadowsockses" :class="index % 2 == 1 ? 'client-table-odd-row' : ''">
|
2025-06-21 15:24:52 +07:00
|
|
|
<td>[[ client.email ]]</td>
|
2023-06-21 14:02:13 +03:30
|
|
|
<td>[[ client.password ]]</td>
|
2023-05-06 20:21:14 +03:30
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</a-collapse-panel>
|
|
|
|
|
</a-collapse>
|
2023-12-13 19:27:36 +03:30
|
|
|
</template>
|
2024-02-27 18:58:35 +03:30
|
|
|
<a-form :colon="false" :label-col="{ md: {span:8} }" :wrapper-col="{ md: {span:14} }">
|
2023-12-19 13:06:36 +03:30
|
|
|
<a-form-item label='{{ i18n "encryption" }}'>
|
|
|
|
|
<a-select v-model="inbound.settings.method" @change="SSMethodChange" :dropdown-class-name="themeSwitcher.currentTheme">
|
2024-01-09 09:10:40 +00:00
|
|
|
<a-select-option v-for="(method,method_name) in SSMethods" :value="method">[[ method_name ]]</a-select-option>
|
2023-12-19 13:06:36 +03:30
|
|
|
</a-select>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
<a-form-item v-if="inbound.isSS2022">
|
|
|
|
|
<template slot="label">
|
|
|
|
|
<a-tooltip>
|
|
|
|
|
<template slot="title">
|
2024-01-10 16:14:37 +03:30
|
|
|
<span>{{ i18n "reset" }}</span>
|
2025-06-20 19:30:46 +07:00
|
|
|
</template> Password <a-icon @click="inbound.settings.password = RandomUtil.randomShadowsocksPassword(inbound.settings.method)" type="sync"></a-icon>
|
2023-12-19 13:06:36 +03:30
|
|
|
</a-tooltip>
|
|
|
|
|
</template>
|
|
|
|
|
<a-input v-model.trim="inbound.settings.password"></a-input>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
<a-form-item label='{{ i18n "pages.inbounds.network" }}'>
|
2025-04-06 16:40:33 +07:00
|
|
|
<a-select v-model="inbound.settings.network" :style="{ width: '100px' }" :dropdown-class-name="themeSwitcher.currentTheme">
|
2023-12-19 13:06:36 +03:30
|
|
|
<a-select-option value="tcp,udp">TCP,UDP</a-select-option>
|
|
|
|
|
<a-select-option value="tcp">TCP</a-select-option>
|
|
|
|
|
<a-select-option value="udp">UDP</a-select-option>
|
|
|
|
|
</a-select>
|
|
|
|
|
</a-form-item>
|
2024-11-12 14:01:42 +03:30
|
|
|
<a-form-item label='ivCheck'>
|
|
|
|
|
<a-switch v-model="inbound.settings.ivCheck"></a-switch>
|
|
|
|
|
</a-form-item>
|
2023-12-19 13:06:36 +03:30
|
|
|
</a-form>
|
|
|
|
|
{{end}}
|