mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-11-08 05:27:36 +08:00
Upgrade to Vue 3 (#331)
* Dependency updates * Upgrade to Vue 3 (WIP) * Fix reactivity of imported domains (the object gets replaced by a proxy) * Cleaner access of proxy for domain imports * Remove upgrade note about reactivity issue * Fix locale switching * Remove upgrade note about language issue * Patch Vue 3 issues with pretty-checkbox-vue * Remove upgrade note about checkbox issue * Fix extra slot for checkboxes and radios * Set checkmark as default for extra slot * Use patched pretty-checkbox-vue from do-vue * Fix removing domains * Switch to main do-vue/do-bulma
This commit is contained in:
@@ -35,7 +35,6 @@ THE SOFTWARE.
|
||||
<div :class="`control${httpsChanged ? ' is-changed' : ''}`">
|
||||
<div class="checkbox">
|
||||
<PrettyCheck v-model="https" class="p-default p-curve p-fill p-icon">
|
||||
<i slot="extra" class="icon fas fa-check"></i>
|
||||
{{ $t('templates.domainSections.https.enableEncryptedSslConnection') }}
|
||||
</PrettyCheck>
|
||||
</div>
|
||||
@@ -53,7 +52,6 @@ THE SOFTWARE.
|
||||
<div :class="`control${http2Changed ? ' is-changed' : ''}`">
|
||||
<div class="checkbox">
|
||||
<PrettyCheck v-model="http2" class="p-default p-curve p-fill p-icon">
|
||||
<i slot="extra" class="icon fas fa-check"></i>
|
||||
{{ $t('templates.domainSections.https.enableHttp2Connections') }}
|
||||
</PrettyCheck>
|
||||
</div>
|
||||
@@ -71,7 +69,6 @@ THE SOFTWARE.
|
||||
<div :class="`control${http3Changed ? ' is-changed' : ''}`">
|
||||
<div class="checkbox">
|
||||
<PrettyCheck v-model="http3" class="p-default p-curve p-fill p-icon">
|
||||
<i slot="extra" class="icon fas fa-check"></i>
|
||||
{{ $t('templates.domainSections.https.enableHttp3Connections') }}
|
||||
</PrettyCheck>
|
||||
</div>
|
||||
@@ -107,7 +104,6 @@ THE SOFTWARE.
|
||||
<div :class="`control${forceHttpsChanged ? ' is-changed' : ''}`">
|
||||
<div class="checkbox">
|
||||
<PrettyCheck v-model="forceHttps" class="p-default p-curve p-fill p-icon">
|
||||
<i slot="extra" class="icon fas fa-check"></i>
|
||||
(http://{{ $parent.$props.data.server.domain.computed }}
|
||||
<i class="fas fa-long-arrow-alt-right"></i>
|
||||
https://{{ $parent.$props.data.server.domain.computed }})
|
||||
@@ -127,7 +123,6 @@ THE SOFTWARE.
|
||||
<div :class="`control${hstsChanged ? ' is-changed' : ''}`">
|
||||
<div class="checkbox">
|
||||
<PrettyCheck v-model="hsts" class="p-default p-curve p-fill p-icon">
|
||||
<i slot="extra" class="icon fas fa-check"></i>
|
||||
{{ $t('templates.domainSections.https.enableStrictTransportSecurity') }}
|
||||
</PrettyCheck>
|
||||
</div>
|
||||
@@ -136,7 +131,6 @@ THE SOFTWARE.
|
||||
<div v-if="hstsSubdomainsEnabled" :class="`control${hstsSubdomainsChanged ? ' is-changed' : ''}`">
|
||||
<div class="checkbox">
|
||||
<PrettyCheck v-model="hstsSubdomains" class="p-default p-curve p-fill p-icon">
|
||||
<i slot="extra" class="icon fas fa-check"></i>
|
||||
{{ $t('templates.domainSections.https.enableIncludeSubDomains') }}
|
||||
</PrettyCheck>
|
||||
</div>
|
||||
@@ -145,7 +139,6 @@ THE SOFTWARE.
|
||||
<div v-if="hstsPreloadEnabled" :class="`control${hstsPreloadChanged ? ' is-changed' : ''}`">
|
||||
<div class="checkbox">
|
||||
<PrettyCheck v-model="hstsPreload" class="p-default p-curve p-fill p-icon">
|
||||
<i slot="extra" class="icon fas fa-check"></i>
|
||||
{{ $t('templates.domainSections.https.enablePreload') }}
|
||||
</PrettyCheck>
|
||||
</div>
|
||||
@@ -166,7 +159,6 @@ THE SOFTWARE.
|
||||
>
|
||||
<div class="radio">
|
||||
<PrettyRadio v-model="certType" :value="value" class="p-default p-round p-fill p-icon">
|
||||
<i slot="extra" class="icon fas fa-check"></i>
|
||||
{{ $t(name) }}
|
||||
</PrettyRadio>
|
||||
</div>
|
||||
@@ -232,11 +224,11 @@ THE SOFTWARE.
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import PrettyCheck from 'pretty-checkbox-vue/check';
|
||||
import PrettyRadio from 'pretty-checkbox-vue/radio';
|
||||
import ExternalLink from 'do-vue/src/templates/external_link';
|
||||
import delegatedFromDefaults from '../../util/delegated_from_defaults';
|
||||
import computedFromDefaults from '../../util/computed_from_defaults';
|
||||
import PrettyCheck from '../inputs/checkbox';
|
||||
import PrettyRadio from '../inputs/radio';
|
||||
|
||||
const defaults = {
|
||||
https: {
|
||||
|
||||
Reference in New Issue
Block a user