{{ $t('admin_dash.frontend.wip_notice') }}
{{ $t('admin_dash.frontend.default_frontend_tip') }}
{{ $t('admin_dash.http.web_cache_ttl_description') }}
-{{ $t('admin_dash.http.web_push_description') }}
-class
-
- rel
-
- {{ $t('admin_dash.other.remote_ip_description') }}
-{{ $t('admin_dash.registrations.welcome.description') }}
-- {{ backendDescriptionDescription + ' ' }} -
-- {{ backendDescriptionDescription + ' ' }} -
-- {{ backendDescriptionDescription + ' ' }} -
- state?.tuple ? state.tuple[1] + ':' + state.tuple[2] : state
-const getSocks = state => state?.tuple
-
-export default {
- ...Setting,
- data () {
- return {
- urlField: '',
- socksField: false
- }
- },
- created () {
- Setting.created()
- this.urlField = getUrl(this.realDraftMode ? this.draft : this.state)
- this.socksField = getSocks(this.realDraftMode ? this.draft : this.state)
- },
- computed: {
- ...Setting.computed,
- // state that we'll show in the UI, i.e. transforming map into list
- displayState () {
- if (this.visibleState?.tuple) {
- return this.visibleState.tuple[1] + ':' + this.visibleState.tuple[2]
- }
- return this.visibleState
- },
- socksState () {
- return getSocks(this.visibleState)
- }
- },
- components: {
- ...Setting.components,
- Checkbox
- },
- methods: {
- ...Setting.methods,
- getValue ({ event, isProxy}) {
- if (isProxy) {
- this.socksField = event
- } else {
- this.urlField = event.target.value
- }
-
- if (this.socksField) {
- return { tuple: [ ':socks5', ...this.urlField.split(':') ] }
- } else {
- return this.urlField
- }
- }
- }
-}
diff --git a/src/components/settings_modal/helpers/proxy_setting.vue b/src/components/settings_modal/helpers/proxy_setting.vue
deleted file mode 100644
index ac4884696..000000000
--- a/src/components/settings_modal/helpers/proxy_setting.vue
+++ /dev/null
@@ -1,57 +0,0 @@
-
-
- {{ backendDescriptionDescription + ' ' }}
-
- {{ backendDescriptionDescription + ' ' }}
-
-
- {{ backendDescriptionDescription + ' ' }}
-
-
-
-
- purposesizessrctype