Clean up
parent
3099306f06
commit
70f327e1e7
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
Copyright 2020 DigitalOcean
|
Copyright 2022 DigitalOcean
|
||||||
|
|
||||||
This code is licensed under the MIT License.
|
This code is licensed under the MIT License.
|
||||||
You may obtain a copy of the License at
|
You may obtain a copy of the License at
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
Copyright 2021 DigitalOcean
|
Copyright 2022 DigitalOcean
|
||||||
|
|
||||||
This code is licensed under the MIT License.
|
This code is licensed under the MIT License.
|
||||||
You may obtain a copy of the License at
|
You may obtain a copy of the License at
|
||||||
|
@ -27,8 +27,8 @@ THE SOFTWARE.
|
||||||
import common from '../../common';
|
import common from '../../common';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
disableHtmlCaching: 'Disable HTML caching',
|
disableHtmlCaching: 'Disable HTML caching', // TODO: translate
|
||||||
enableChangesTakeEffect: 'disable HTML caching',
|
enableDisableHtmlCaching: 'disable HTML caching', // TODO: translate
|
||||||
gzipCompression: 'Gzip Komprimierung',
|
gzipCompression: 'Gzip Komprimierung',
|
||||||
enableGzipCompression: `${common.enable} Gzip Komprimierung`,
|
enableGzipCompression: `${common.enable} Gzip Komprimierung`,
|
||||||
brotliCompression: 'Brotli Komprimierung',
|
brotliCompression: 'Brotli Komprimierung',
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
Copyright 2021 DigitalOcean
|
Copyright 2022 DigitalOcean
|
||||||
|
|
||||||
This code is licensed under the MIT License.
|
This code is licensed under the MIT License.
|
||||||
You may obtain a copy of the License at
|
You may obtain a copy of the License at
|
||||||
|
@ -28,7 +28,7 @@ import common from '../../common';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
disableHtmlCaching: 'Disable HTML caching',
|
disableHtmlCaching: 'Disable HTML caching',
|
||||||
enableChangesTakeEffect: 'disable HTML caching',
|
enableDisableHtmlCaching: 'disable HTML caching',
|
||||||
gzipCompression: 'Gzip compression',
|
gzipCompression: 'Gzip compression',
|
||||||
enableGzipCompression: `${common.enable} gzip compression`,
|
enableGzipCompression: `${common.enable} gzip compression`,
|
||||||
brotliCompression: 'Brotli compression',
|
brotliCompression: 'Brotli compression',
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
Copyright 2021 DigitalOcean
|
Copyright 2022 DigitalOcean
|
||||||
|
|
||||||
This code is licensed under the MIT License.
|
This code is licensed under the MIT License.
|
||||||
You may obtain a copy of the License at
|
You may obtain a copy of the License at
|
||||||
|
@ -27,8 +27,8 @@ THE SOFTWARE.
|
||||||
import common from '../../common';
|
import common from '../../common';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
disableHtmlCaching: 'Disable HTML caching',
|
disableHtmlCaching: 'Disable HTML caching', // TODO: translate
|
||||||
enableChangesTakeEffect: 'disable HTML caching',
|
enableDisableHtmlCaching: 'disable HTML caching', // TODO: translate
|
||||||
gzipCompression: 'Compresión Gzip',
|
gzipCompression: 'Compresión Gzip',
|
||||||
enableGzipCompression: `${common.enable} compresión gzip`,
|
enableGzipCompression: `${common.enable} compresión gzip`,
|
||||||
brotliCompression: 'Compresión Brotli',
|
brotliCompression: 'Compresión Brotli',
|
||||||
|
@ -40,6 +40,5 @@ export default {
|
||||||
expirationForMedia: 'Expiración para media',
|
expirationForMedia: 'Expiración para media',
|
||||||
expirationForSvgs: 'Expiración para SVGs',
|
expirationForSvgs: 'Expiración para SVGs',
|
||||||
expirationForFonts: 'Expiración para fuentes',
|
expirationForFonts: 'Expiración para fuentes',
|
||||||
|
|
||||||
performance: 'Rendimiento',
|
performance: 'Rendimiento',
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
Copyright 2021 DigitalOcean
|
Copyright 2022 DigitalOcean
|
||||||
|
|
||||||
This code is licensed under the MIT License.
|
This code is licensed under the MIT License.
|
||||||
You may obtain a copy of the License at
|
You may obtain a copy of the License at
|
||||||
|
@ -27,8 +27,8 @@ THE SOFTWARE.
|
||||||
import common from '../../common';
|
import common from '../../common';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
disableHtmlCaching: 'Disable HTML caching',
|
disableHtmlCaching: 'Disable HTML caching', // TODO: translate
|
||||||
enableChangesTakeEffect: 'disable HTML caching',
|
enableDisableHtmlCaching: 'disable HTML caching', // TODO: translate
|
||||||
gzipCompression: 'Compression Gzip',
|
gzipCompression: 'Compression Gzip',
|
||||||
enableGzipCompression: `${common.enable} la compression gzip`,
|
enableGzipCompression: `${common.enable} la compression gzip`,
|
||||||
brotliCompression: 'Compression Brotli',
|
brotliCompression: 'Compression Brotli',
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
Copyright 2021 DigitalOcean
|
Copyright 2022 DigitalOcean
|
||||||
|
|
||||||
This code is licensed under the MIT License.
|
This code is licensed under the MIT License.
|
||||||
You may obtain a copy of the License at
|
You may obtain a copy of the License at
|
||||||
|
@ -27,8 +27,8 @@ THE SOFTWARE.
|
||||||
import common from '../../common';
|
import common from '../../common';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
disableHtmlCaching: 'Disable HTML caching',
|
disableHtmlCaching: 'Disable HTML caching', // TODO: translate
|
||||||
enableChangesTakeEffect: 'disable HTML caching',
|
enableDisableHtmlCaching: 'disable HTML caching', // TODO: translate
|
||||||
gzipCompression: 'Kompresja gzip',
|
gzipCompression: 'Kompresja gzip',
|
||||||
enableGzipCompression: `${common.enable} kompresję gzip`,
|
enableGzipCompression: `${common.enable} kompresję gzip`,
|
||||||
brotliCompression: 'Kompresja brotli',
|
brotliCompression: 'Kompresja brotli',
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
Copyright 2021 DigitalOcean
|
Copyright 2022 DigitalOcean
|
||||||
|
|
||||||
This code is licensed under the MIT License.
|
This code is licensed under the MIT License.
|
||||||
You may obtain a copy of the License at
|
You may obtain a copy of the License at
|
||||||
|
@ -27,8 +27,8 @@ THE SOFTWARE.
|
||||||
import common from '../../common';
|
import common from '../../common';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
disableHtmlCaching: 'Disable HTML caching',
|
disableHtmlCaching: 'Disable HTML caching', // TODO: translate
|
||||||
enableChangesTakeEffect: 'disable HTML caching',
|
enableDisableHtmlCaching: 'disable HTML caching', // TODO: translate
|
||||||
gzipCompression: 'Compressão Gzip',
|
gzipCompression: 'Compressão Gzip',
|
||||||
enableGzipCompression: `${common.enable} compressão gzip`,
|
enableGzipCompression: `${common.enable} compressão gzip`,
|
||||||
brotliCompression: 'Compressão Brotli',
|
brotliCompression: 'Compressão Brotli',
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
Copyright 2021 DigitalOcean
|
Copyright 2022 DigitalOcean
|
||||||
|
|
||||||
This code is licensed under the MIT License.
|
This code is licensed under the MIT License.
|
||||||
You may obtain a copy of the License at
|
You may obtain a copy of the License at
|
||||||
|
@ -27,8 +27,8 @@ THE SOFTWARE.
|
||||||
import common from '../../common';
|
import common from '../../common';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
disableHtmlCaching: 'Disable HTML caching',
|
disableHtmlCaching: 'Disable HTML caching', // TODO: translate
|
||||||
enableChangesTakeEffect: 'disable HTML caching',
|
enableDisableHtmlCaching: 'disable HTML caching', // TODO: translate
|
||||||
gzipCompression: 'Gzip сжатие',
|
gzipCompression: 'Gzip сжатие',
|
||||||
enableGzipCompression: `${common.enable} gzip сжатие`,
|
enableGzipCompression: `${common.enable} gzip сжатие`,
|
||||||
brotliCompression: 'Brotli сжатие',
|
brotliCompression: 'Brotli сжатие',
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
Copyright 2021 DigitalOcean
|
Copyright 2022 DigitalOcean
|
||||||
|
|
||||||
This code is licensed under the MIT License.
|
This code is licensed under the MIT License.
|
||||||
You may obtain a copy of the License at
|
You may obtain a copy of the License at
|
||||||
|
@ -28,7 +28,7 @@ import common from '../../common';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
disableHtmlCaching: '禁用 HTML 缓存',
|
disableHtmlCaching: '禁用 HTML 缓存',
|
||||||
enableChangesTakeEffect: '禁用 HTML 缓存',
|
enableDisableHtmlCaching: '禁用 HTML 缓存',
|
||||||
gzipCompression: 'Gzip 压缩',
|
gzipCompression: 'Gzip 压缩',
|
||||||
enableGzipCompression: `${common.enable} Gzip 压缩`,
|
enableGzipCompression: `${common.enable} Gzip 压缩`,
|
||||||
brotliCompression: 'Brotli 压缩',
|
brotliCompression: 'Brotli 压缩',
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
Copyright 2021 DigitalOcean
|
Copyright 2022 DigitalOcean
|
||||||
|
|
||||||
This code is licensed under the MIT License.
|
This code is licensed under the MIT License.
|
||||||
You may obtain a copy of the License at
|
You may obtain a copy of the License at
|
||||||
|
@ -27,8 +27,8 @@ THE SOFTWARE.
|
||||||
import common from '../../common';
|
import common from '../../common';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
disableHtmlCaching: 'Disable HTML caching',
|
disableHtmlCaching: 'Disable HTML caching', // TODO: translate
|
||||||
enableChangesTakeEffect: 'disable HTML caching',
|
enableDisableHtmlCaching: 'disable HTML caching', // TODO: translate
|
||||||
gzipCompression: 'Gzip 壓縮',
|
gzipCompression: 'Gzip 壓縮',
|
||||||
enableGzipCompression: `${common.enable}Gzip壓縮`,
|
enableGzipCompression: `${common.enable}Gzip壓縮`,
|
||||||
brotliCompression: 'Brotli 壓縮',
|
brotliCompression: 'Brotli 壓縮',
|
||||||
|
|
|
@ -26,8 +26,6 @@ THE SOFTWARE.
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
|
|
||||||
|
|
||||||
<div class="field is-horizontal">
|
<div class="field is-horizontal">
|
||||||
<div class="field-label">
|
<div class="field-label">
|
||||||
<label class="label">{{ $t('templates.globalSections.performance.disableHtmlCaching') }}</label>
|
<label class="label">{{ $t('templates.globalSections.performance.disableHtmlCaching') }}</label>
|
||||||
|
@ -37,7 +35,7 @@ THE SOFTWARE.
|
||||||
<div :class="`control${disableHtmlCachingChanged ? ' is-changed' : ''}`">
|
<div :class="`control${disableHtmlCachingChanged ? ' is-changed' : ''}`">
|
||||||
<div class="checkbox">
|
<div class="checkbox">
|
||||||
<PrettyCheck v-model="disableHtmlCaching" class="p-default p-curve p-fill p-icon">
|
<PrettyCheck v-model="disableHtmlCaching" class="p-default p-curve p-fill p-icon">
|
||||||
{{ $t('templates.globalSections.performance.enableChangesTakeEffect') }}
|
{{ $t('templates.globalSections.performance.enableDisableHtmlCaching') }}
|
||||||
</PrettyCheck>
|
</PrettyCheck>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -146,8 +144,23 @@ THE SOFTWARE.
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="field is-horizontal">
|
||||||
|
<div class="field-label">
|
||||||
|
<label class="label">{{ $t('templates.globalSections.performance.expirationForFonts') }}</label>
|
||||||
|
</div>
|
||||||
|
<div class="field-body">
|
||||||
|
<div class="field">
|
||||||
|
<div :class="`control${fontsExpirationChanged ? ' is-changed' : ''}`">
|
||||||
|
<input
|
||||||
|
v-model="fontsExpiration"
|
||||||
|
class="input"
|
||||||
|
type="text"
|
||||||
|
:placeholder="$props.data.fontsExpiration.default"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -159,7 +172,7 @@ THE SOFTWARE.
|
||||||
|
|
||||||
const defaults = {
|
const defaults = {
|
||||||
disableHtmlCaching: {
|
disableHtmlCaching: {
|
||||||
default: true,
|
default: false,
|
||||||
enabled: true,
|
enabled: true,
|
||||||
},
|
},
|
||||||
gzipCompression: {
|
gzipCompression: {
|
||||||
|
|
|
@ -45,7 +45,6 @@ const globalMap = {
|
||||||
|
|
||||||
python_server: ['python', 'pythonServer'],
|
python_server: ['python', 'pythonServer'],
|
||||||
|
|
||||||
disableHtmlCaching: ['performance', 'disableHtmlCaching', oldBool],
|
|
||||||
gzip: ['performance', 'gzipCompression', oldBool],
|
gzip: ['performance', 'gzipCompression', oldBool],
|
||||||
brotli: ['performance', 'brotliCompression', oldBool],
|
brotli: ['performance', 'brotliCompression', oldBool],
|
||||||
expires_assets: ['performance', 'assetsExpiration'],
|
expires_assets: ['performance', 'assetsExpiration'],
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
Copyright 2020 DigitalOcean
|
Copyright 2022 DigitalOcean
|
||||||
|
|
||||||
This code is licensed under the MIT License.
|
This code is licensed under the MIT License.
|
||||||
You may obtain a copy of the License at
|
You may obtain a copy of the License at
|
||||||
|
@ -37,5 +37,5 @@ export const extensions = {
|
||||||
'docx?|dotx?|docm|dotm|' +
|
'docx?|dotx?|docm|dotm|' +
|
||||||
'xlsx?|xltx?|xlsm|xltm|' +
|
'xlsx?|xltx?|xlsm|xltm|' +
|
||||||
'pptx?|potx?|pptm|potm|ppsx?',
|
'pptx?|potx?|pptm|potm|ppsx?',
|
||||||
html: 'html',
|
html: 'html?',
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue