| 
									
										
										
										
											2023-02-09 19:18:06 +00:00
										 |  |  | {{define "form/shadowsocks"}} | 
					
						
							| 
									
										
										
										
											2023-12-13 15:57:36 +00:00
										 |  |  | <template v-if="inbound.isSSMultiUser"> | 
					
						
							| 
									
										
										
										
											2023-12-09 15:18:06 +00:00
										 |  |  |     <a-collapse activeKey="0" v-for="(client, index) in inbound.settings.shadowsockses.slice(0,1)" v-if="!isEdit">   | 
					
						
							| 
									
										
										
										
											2023-05-06 16:51:14 +00:00
										 |  |  |         <a-collapse-panel header='{{ i18n "pages.inbounds.client" }}'> | 
					
						
							| 
									
										
										
										
											2023-12-04 18:17:38 +00:00
										 |  |  |             {{template "form/client"}} | 
					
						
							| 
									
										
										
										
											2023-05-06 16:51:14 +00:00
										 |  |  |         </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 10:32:13 +00:00
										 |  |  |                     <th>{{ i18n "pages.inbounds.email" }}</th> | 
					
						
							|  |  |  |                     <th>Password</th> | 
					
						
							| 
									
										
										
										
											2023-05-06 16:51:14 +00:00
										 |  |  |                 </tr> | 
					
						
							|  |  |  |                 <tr v-for="(client, index) in inbound.settings.shadowsockses" :class="index % 2 == 1 ? 'client-table-odd-row' : ''"> | 
					
						
							| 
									
										
										
										
											2025-06-21 08:24:52 +00:00
										 |  |  |                     <td>[[ client.email ]]</td> | 
					
						
							| 
									
										
										
										
											2023-06-21 10:32:13 +00:00
										 |  |  |                     <td>[[ client.password ]]</td> | 
					
						
							| 
									
										
										
										
											2023-05-06 16:51:14 +00:00
										 |  |  |                 </tr> | 
					
						
							|  |  |  |             </table> | 
					
						
							|  |  |  |         </a-collapse-panel> | 
					
						
							|  |  |  |     </a-collapse> | 
					
						
							| 
									
										
										
										
											2023-12-13 15:57:36 +00:00
										 |  |  | </template> | 
					
						
							| 
									
										
										
										
											2024-02-27 15:28:35 +00:00
										 |  |  | <a-form :colon="false" :label-col="{ md: {span:8} }" :wrapper-col="{ md: {span:14} }"> | 
					
						
							| 
									
										
										
										
											2023-12-19 09:36:36 +00:00
										 |  |  |     <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 09:36:36 +00:00
										 |  |  |         </a-select> | 
					
						
							|  |  |  |     </a-form-item> | 
					
						
							|  |  |  |     <a-form-item v-if="inbound.isSS2022"> | 
					
						
							|  |  |  |         <template slot="label"> | 
					
						
							|  |  |  |             <a-tooltip> | 
					
						
							|  |  |  |                 <template slot="title"> | 
					
						
							| 
									
										
										
										
											2024-01-10 12:44:37 +00:00
										 |  |  |                     <span>{{ i18n "reset" }}</span> | 
					
						
							| 
									
										
										
										
											2025-06-20 12:30:46 +00:00
										 |  |  |                 </template> Password <a-icon @click="inbound.settings.password = RandomUtil.randomShadowsocksPassword(inbound.settings.method)" type="sync"></a-icon> | 
					
						
							| 
									
										
										
										
											2023-12-19 09:36:36 +00:00
										 |  |  |             </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 09:40:33 +00:00
										 |  |  |         <a-select v-model="inbound.settings.network" :style="{ width: '100px' }" :dropdown-class-name="themeSwitcher.currentTheme"> | 
					
						
							| 
									
										
										
										
											2023-12-19 09:36:36 +00:00
										 |  |  |             <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 10:31:42 +00:00
										 |  |  |     <a-form-item label='ivCheck'> | 
					
						
							|  |  |  |         <a-switch v-model="inbound.settings.ivCheck"></a-switch> | 
					
						
							|  |  |  |     </a-form-item> | 
					
						
							| 
									
										
										
										
											2023-12-19 09:36:36 +00:00
										 |  |  | </a-form> | 
					
						
							|  |  |  | {{end}} |