Refactor imports and update copyright headers

pull/486/head
Himanshu Bhatt 2024-10-02 16:46:06 +05:30
parent 58644c5534
commit dfdf6e7b64
345 changed files with 2855 additions and 1222 deletions

View File

@ -40,5 +40,5 @@ module.exports = {
it: true,
test: true,
},
plugins: ['prettier'],
plugins: ['prettier', 'import'],
};

1843
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,107 +1,108 @@
{
"name": "nginxconfig.io",
"version": "1.0.0",
"description": "NGINX config generator on steroids",
"license": "MIT",
"private": true,
"engines": {
"node": "20.9.0"
},
"main": "src/nginxconfig/mount.js",
"type": "module",
"scripts": {
"build": "npm run build:clean && npm run build:template && npm run build:prism && npm run build:static && npm run build:tool",
"build:clean": "do-vue clean",
"build:template": "do-vue template && node src/nginxconfig/build/template.js",
"build:prism": "node src/nginxconfig/build/prism.js",
"build:static": "copyfiles --up 2 src/static/{*,**/*} dist",
"build:tool": "vue-cli-service build src/nginxconfig/mount.js --no-clean",
"dev": "npm run build:template && npm run build:prism && npm run dev:tool",
"dev:tool": "vue-cli-service serve src/nginxconfig/mount.js",
"deploy:spaces:comment": "do-vue comment nginxconfig",
"test": "npm run test:prettier:fix && npm run test:eslint && npm run test:stylelint && npm run test:i18n-packs && npm run test:jest",
"test:jest": "jest --env=jsdom /test/.*.js?$",
"test:fix": "npm run test:prettier:fix && npm run test:eslint:fix",
"test:eslint": "eslint 'src/**/*.{js,vue}' --cache",
"test:eslint:fix": "npm run test:eslint -- --fix",
"test:stylelint": "stylelint 'src/**/*.scss' --config node_modules/do-bulma/.stylelintrc.json",
"test:i18n-packs": "node --import=extensionless/register src/nginxconfig/i18n/verify.js",
"test:prettier": "prettier 'src/**/*.{js,vue}' --check",
"test:prettier:fix": "prettier --write 'src/**/*.{js,vue}'",
"prepare": "husky install"
},
"jest": {
"testRegex": "/test/.*.js?$"
},
"repository": {
"type": "git",
"url": "git+https://github.com/digitalocean/nginxconfig.io.git"
},
"keywords": [
"nginx"
],
"author": "DigitalOcean",
"bugs": {
"url": "https://github.com/digitalocean/nginxconfig.io/issues"
},
"homepage": "https://github.com/digitalocean/nginxconfig.io#readme",
"dependencies": {
"clipboard": "^2.0.11",
"clone": "^2.1.2",
"do-bulma": "github:do-community/do-bulma",
"do-vue": "github:do-community/do-vue",
"escape-html": "^1.0.3",
"files-diff": "0.0.6",
"json-to-pretty-yaml": "^1.2.2",
"memory-tar-create": "0.0.3",
"pretty-checkbox-vue": "^1.1.9",
"prismjs": "^1.29.0",
"qs": "^6.11.2",
"simple-js-sha2-256": "^1.0.7",
"vue": "^3.4.15",
"vue-i18n": "^9.9.0",
"vue-select": "^4.0.0-beta.6",
"webpack-require-from": "^1.8.6"
},
"devDependencies": {
"@babel/eslint-parser": "^7.23.3",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-transform-runtime": "^7.23.7",
"@babel/preset-env": "^7.23.8",
"@babel/runtime": "^7.23.8",
"@vue/cli-service": "^5.0.8",
"ajv": "^8.12.0",
"chalk": "^5.3.0",
"copyfiles": "^2.4.1",
"core-js": "^3.35.1",
"duplicate-package-checker-webpack-plugin": "^3.0.0",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-vue": "^9.20.1",
"husky": "^8.0.3",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"lint-staged": "^15.2.10",
"node-fetch": "^3.3.2",
"postcss": "^8.4.33",
"prettier": "3.2.4",
"sass": "^1.70.0",
"sass-loader": "^14.0.0",
"stylelint": "^16.2.0",
"stylelint-config-standard-scss": "^13.0.0",
"stylelint-order": "^6.0.4",
"vue-template-compiler": "^2.7.16",
"webpack": "^5.94.0",
"webpack-bundle-analyzer": "^4.10.1"
},
"overrides": {
"@vue/cli-service": {
"mini-css-extract-plugin": "^1.6.2",
"@achrinza/node-ipc": "^10.1.10"
},
"pretty-checkbox-vue": {
"vue": "^3.0.0"
}
}
}
"name": "nginxconfig.io",
"version": "1.0.0",
"description": "NGINX config generator on steroids",
"license": "MIT",
"private": true,
"engines": {
"node": "20.9.0"
},
"main": "src/nginxconfig/mount.js",
"type": "module",
"scripts": {
"build": "npm run build:clean && npm run build:template && npm run build:prism && npm run build:static && npm run build:tool",
"build:clean": "do-vue clean",
"build:template": "do-vue template && node src/nginxconfig/build/template.js",
"build:prism": "node src/nginxconfig/build/prism.js",
"build:static": "copyfiles --up 2 src/static/{*,**/*} dist",
"build:tool": "vue-cli-service build src/nginxconfig/mount.js --no-clean",
"dev": "npm run build:template && npm run build:prism && npm run dev:tool",
"dev:tool": "vue-cli-service serve src/nginxconfig/mount.js",
"deploy:spaces:comment": "do-vue comment nginxconfig",
"test": "npm run test:prettier:fix && npm run test:eslint && npm run test:stylelint && npm run test:i18n-packs && npm run test:jest",
"test:jest": "jest --env=jsdom /test/.*.js?$",
"test:fix": "npm run test:prettier:fix && npm run test:eslint:fix",
"test:eslint": "eslint src/**/*.{js,vue} --cache",
"test:eslint:fix": "npm run test:eslint -- --fix",
"test:stylelint": "stylelint 'src/**/*.{scss,css}' --config node_modules/do-bulma/.stylelintrc.json",
"test:i18n-packs": "node src/nginxconfig/i18n/verify.js",
"test:prettier": "prettier 'src/**/*.{js,vue}' --check",
"test:prettier:fix": "prettier --write 'src/**/*.{js,vue}'",
"prepare": "husky install"
},
"jest": {
"testRegex": "/test/.*.js?$"
},
"repository": {
"type": "git",
"url": "git+https://github.com/digitalocean/nginxconfig.io.git"
},
"keywords": [
"nginx"
],
"author": "DigitalOcean",
"bugs": {
"url": "https://github.com/digitalocean/nginxconfig.io/issues"
},
"homepage": "https://github.com/digitalocean/nginxconfig.io#readme",
"dependencies": {
"clipboard": "^2.0.11",
"clone": "^2.1.2",
"do-bulma": "github:do-community/do-bulma",
"do-vue": "github:do-community/do-vue",
"escape-html": "^1.0.3",
"files-diff": "0.0.6",
"json-to-pretty-yaml": "^1.2.2",
"memory-tar-create": "0.0.3",
"pretty-checkbox-vue": "^1.1.9",
"prismjs": "^1.29.0",
"qs": "^6.11.2",
"simple-js-sha2-256": "^1.0.7",
"vue": "^3.4.15",
"vue-i18n": "^9.9.0",
"vue-select": "^4.0.0-beta.6",
"webpack-require-from": "^1.8.6"
},
"devDependencies": {
"@babel/eslint-parser": "^7.23.3",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-transform-runtime": "^7.23.7",
"@babel/preset-env": "^7.23.8",
"@babel/runtime": "^7.23.8",
"@vue/cli-service": "^5.0.8",
"ajv": "^8.12.0",
"chalk": "^5.3.0",
"copyfiles": "^2.4.1",
"core-js": "^3.35.1",
"duplicate-package-checker-webpack-plugin": "^3.0.0",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.30.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-vue": "^9.20.1",
"husky": "^8.0.3",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"lint-staged": "^15.2.10",
"node-fetch": "^3.3.2",
"postcss": "^8.4.33",
"prettier": "3.2.4",
"sass": "^1.70.0",
"sass-loader": "^14.0.0",
"stylelint": "^16.2.0",
"stylelint-config-standard-scss": "^13.0.0",
"stylelint-order": "^6.0.4",
"vue-template-compiler": "^2.7.16",
"webpack": "^5.94.0",
"webpack-bundle-analyzer": "^4.10.1"
},
"overrides": {
"@vue/cli-service": {
"mini-css-extract-plugin": "^1.6.2",
"@achrinza/node-ipc": "^10.1.10"
},
"pretty-checkbox-vue": {
"vue": "^3.0.0"
}
}
}

View File

@ -1,5 +1,5 @@
/*
Copyright 2022 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at

View File

@ -1,5 +1,5 @@
/*
Copyright 2022 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at

View File

@ -1,5 +1,5 @@
/*
Copyright 2022 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at

View File

@ -1,5 +1,5 @@
/*
Copyright 2021 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at

View File

@ -1,5 +1,5 @@
/*
Copyright 2022 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at

View File

@ -1,5 +1,5 @@
/*
Copyright 2020 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at

View File

@ -1,5 +1,5 @@
/*
Copyright 2021 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at

View File

@ -1,5 +1,5 @@
/*
Copyright 2020 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at

View File

@ -1,5 +1,5 @@
/*
Copyright 2021 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at
@ -26,6 +26,6 @@ THE SOFTWARE.
import common from './common.js';
import languages from './languages.js';
import templates from './templates';
import templates from './templates/index.js';
export default { common, languages, templates };

View File

@ -1,5 +1,5 @@
/*
Copyright 2022 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at

View File

@ -1,5 +1,5 @@
/*
Copyright 2021 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at

View File

@ -1,5 +1,5 @@
/*
Copyright 2021 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at

View File

@ -1,5 +1,5 @@
/*
Copyright 2021 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at

View File

@ -1,5 +1,5 @@
/*
Copyright 2022 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at

View File

@ -1,5 +1,5 @@
/*
Copyright 2021 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at

View File

@ -1,5 +1,5 @@
/*
Copyright 2022 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at

View File

@ -1,5 +1,5 @@
/*
Copyright 2021 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at

View File

@ -1,5 +1,5 @@
/*
Copyright 2021 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at

View File

@ -1,5 +1,5 @@
/*
Copyright 2021 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at

View File

@ -1,5 +1,5 @@
/*
Copyright 2021 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at

View File

@ -1,5 +1,5 @@
/*
Copyright 2022 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at

View File

@ -1,5 +1,5 @@
/*
Copyright 2021 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at

View File

@ -1,5 +1,5 @@
/*
Copyright 2022 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at

View File

@ -1,5 +1,5 @@
/*
Copyright 2021 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at

View File

@ -1,5 +1,5 @@
/*
Copyright 2021 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at

View File

@ -1,5 +1,5 @@
/*
Copyright 2021 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at

View File

@ -1,5 +1,5 @@
/*
Copyright 2021 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at

View File

@ -1,5 +1,5 @@
/*
Copyright 2021 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at
@ -27,9 +27,9 @@ THE SOFTWARE.
import app from './app.js';
import setup from './setup.js';
import footer from './footer.js';
import domainSections from './domain_sections';
import globalSections from './global_sections';
import setupSections from './setup_sections';
import callouts from './callouts';
import domainSections from './domain_sections/index.js';
import globalSections from './global_sections/index.js';
import setupSections from './setup_sections/index.js';
import callouts from './callouts/index.js';
export default { app, setup, footer, domainSections, globalSections, setupSections, callouts };

View File

@ -1,5 +1,5 @@
/*
Copyright 2023 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at

View File

@ -1,5 +1,5 @@
/*
Copyright 2021 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at

View File

@ -1,5 +1,5 @@
/*
Copyright 2021 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at

View File

@ -1,5 +1,5 @@
/*
Copyright 2021 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at

View File

@ -1,5 +1,5 @@
/*
Copyright 2021 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at

View File

@ -1,5 +1,5 @@
/*
Copyright 2020 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at
@ -26,6 +26,6 @@ THE SOFTWARE.
import common from './common.js';
import languages from './languages.js';
import templates from './templates';
import templates from './templates/index.js';
export default { common, languages, templates };

View File

@ -1,5 +1,5 @@
/*
Copyright 2022 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at
@ -24,7 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import common from '../common';
import common from '../common.js';
export default {
title: `${common.nginx}Config`,

View File

@ -1,5 +1,5 @@
/*
Copyright 2021 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at
@ -24,7 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import droplet from './droplet';
import contribute from './contribute';
import droplet from './droplet.js';
import contribute from './contribute.js';
export default { droplet, contribute };

View File

@ -24,7 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import common from '../../common';
import common from '../../common.js';
export default {
enableEncryptedSslConnection: `${common.enable} encrypted ${common.ssl} connections`,

View File

@ -1,5 +1,5 @@
/*
Copyright 2020 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at
@ -24,16 +24,16 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import https from './https';
import logging from './logging';
import php from './php';
import presets from './presets';
import python from './python';
import reverseProxy from './reverse_proxy';
import routing from './routing';
import server from './server';
import restrict from './restrict';
import onion from './onion';
import https from './https.js';
import logging from './logging.js';
import php from './php.js';
import presets from './presets.js';
import python from './python.js';
import reverseProxy from './reverse_proxy.js';
import routing from './routing.js';
import server from './server.js';
import restrict from './restrict.js';
import onion from './onion.js';
export default {
https,

View File

@ -1,5 +1,5 @@
/*
Copyright 2022 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at
@ -24,7 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import common from '../../common';
import common from '../../common.js';
export default {
byDomain: 'by domain',

View File

@ -1,5 +1,5 @@
/*
Copyright 2022 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at
@ -24,7 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import common from '../../common';
import common from '../../common.js';
export default {
phpIsDisabled: `${common.php} is disabled.`,

View File

@ -1,5 +1,5 @@
/*
Copyright 2020 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at
@ -24,7 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import common from '../../common';
import common from '../../common.js';
export default {
pythonIsDisabled: `${common.python} is disabled.`,

View File

@ -1,5 +1,5 @@
/*
Copyright 2022 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at
@ -24,7 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import common from '../../common';
import common from '../../common.js';
export default {
reverseProxyIsDisabled: `${common.reverseProxy} is disabled.`,

View File

@ -1,5 +1,5 @@
/*
Copyright 2020 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at
@ -24,7 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import common from '../../common';
import common from '../../common.js';
export default {
fallbackRouting: 'Fallback routing',

View File

@ -1,5 +1,5 @@
/*
Copyright 2020 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at
@ -24,7 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import common from '../../common';
import common from '../../common.js';
const docker = 'Docker';
const dockerfile = 'Dockerfile';

View File

@ -1,5 +1,5 @@
/*
Copyright 2021 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at
@ -24,7 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import common from '../../common';
import common from '../../common.js';
const mozilla = 'Mozilla';
const ipv4 = 'IPv4';

View File

@ -1,5 +1,5 @@
/*
Copyright 2021 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at
@ -24,15 +24,15 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import https from './https';
import logging from './logging';
import nginx from './nginx';
import performance from './performance';
import python from './python';
import reverseProxy from './reverse_proxy';
import security from './security';
import tools from './tools';
import docker from './docker';
import https from './https.js';
import logging from './logging.js';
import nginx from './nginx.js';
import performance from './performance.js';
import python from './python.js';
import reverseProxy from './reverse_proxy.js';
import security from './security.js';
import tools from './tools.js';
import docker from './docker.js';
export default {
https,

View File

@ -1,5 +1,5 @@
/*
Copyright 2022 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at
@ -24,7 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import common from '../../common';
import common from '../../common.js';
export default {
enableFileNotFoundErrorLogging: `${common.enable} file not found error logging in`,

View File

@ -1,5 +1,5 @@
/*
Copyright 2020 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at
@ -24,7 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import common from '../../common';
import common from '../../common.js';
export default {
nginxConfigDirectory: `${common.nginx} config directory`,

View File

@ -1,5 +1,5 @@
/*
Copyright 2022 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at
@ -24,7 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import common from '../../common';
import common from '../../common.js';
export default {
disableHtmlCaching: 'Disable HTML caching',

View File

@ -1,5 +1,5 @@
/*
Copyright 2020 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at
@ -24,7 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import common from '../../common';
import common from '../../common.js';
export default {
pythonServer: `${common.python} server`,

View File

@ -1,5 +1,5 @@
/*
Copyright 2021 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at
@ -24,7 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import common from '../../common';
import common from '../../common.js';
const legacyXForwarded = 'Legacy X-Forwarded-* headers';

View File

@ -1,5 +1,5 @@
/*
Copyright 2021 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at
@ -24,7 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import common from '../../common';
import common from '../../common.js';
export default {
whenUsingWordPressUnsafeEvalIsOftenRequiredToAllowFunctionality: `When using ${common.wordPress}, <code class="slim">script-src 'self' 'unsafe-inline' 'unsafe-eval';</code> is often required in the Content Security Policy to allow the admin panel to function correctly.`,

View File

@ -1,5 +1,5 @@
/*
Copyright 2020 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at
@ -24,7 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import common from '../../common';
import common from '../../common.js';
export default {
modularizedStructure: 'Modularized structure',

View File

@ -1,5 +1,5 @@
/*
Copyright 2021 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at
@ -24,12 +24,12 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import app from './app';
import setup from './setup';
import footer from './footer';
import domainSections from './domain_sections';
import globalSections from './global_sections';
import setupSections from './setup_sections';
import callouts from './callouts';
import app from './app.js';
import setup from './setup.js';
import footer from './footer.js';
import domainSections from './domain_sections/index.js';
import globalSections from './global_sections/index.js';
import setupSections from './setup_sections/index.js';
import callouts from './callouts/index.js';
export default { app, setup, footer, domainSections, globalSections, setupSections, callouts };

View File

@ -1,5 +1,5 @@
/*
Copyright 2023 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at
@ -24,7 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import common from '../../common';
import common from '../../common.js';
const certbot = 'Certbot';

View File

@ -1,5 +1,5 @@
/*
Copyright 2020 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at
@ -24,7 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import common from '../../common';
import common from '../../common.js';
export default {
downloadTheGeneratedConfig: '<b>Download</b> the generated config:',

View File

@ -1,5 +1,5 @@
/*
Copyright 2020 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at
@ -24,7 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import common from '../../common';
import common from '../../common.js';
export default {
letsGoLive: "Let's go live!",

View File

@ -1,5 +1,5 @@
/*
Copyright 2020 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at
@ -24,9 +24,9 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import certbot from './certbot';
import download from './download';
import goLive from './go_live';
import ssl from './ssl';
import certbot from './certbot.js';
import download from './download.js';
import goLive from './go_live.js';
import ssl from './ssl.js';
export default { certbot, download, goLive, ssl };

View File

@ -1,5 +1,5 @@
/*
Copyright 2020 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at
@ -24,7 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import common from '../../common';
import common from '../../common.js';
export default {
generateDiffieHellmanKeysByRunningThisCommandOnYourServer:

View File

@ -1,5 +1,5 @@
/*
Copyright 2021 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at
@ -26,6 +26,6 @@ THE SOFTWARE.
import common from './common.js';
import languages from './languages.js';
import templates from './templates';
import templates from './templates/index.js';
export default { common, languages, templates };

View File

@ -1,5 +1,5 @@
/*
Copyright 2022 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at
@ -24,7 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import common from '../common';
import common from '../common.js';
export default {
title: `${common.nginx}Config`,

View File

@ -1,5 +1,5 @@
/*
Copyright 2021 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at
@ -24,7 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import droplet from './droplet';
import contribute from './contribute';
import droplet from './droplet.js';
import contribute from './contribute.js';
export default { droplet, contribute };

View File

@ -1,5 +1,5 @@
/*
Copyright 2021 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at
@ -24,7 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import common from '../../common';
import common from '../../common.js';
export default {
enableEncryptedSslConnection: `${common.enable} conexiones ${common.ssl} encriptadas`,

View File

@ -1,5 +1,5 @@
/*
Copyright 2021 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at
@ -24,16 +24,16 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import https from './https';
import logging from './logging';
import php from './php';
import presets from './presets';
import python from './python';
import reverseProxy from './reverse_proxy';
import routing from './routing';
import server from './server';
import restrict from './restrict';
import onion from './onion';
import https from './https.js';
import logging from './logging.js';
import php from './php.js';
import presets from './presets.js';
import python from './python.js';
import reverseProxy from './reverse_proxy.js';
import routing from './routing.js';
import server from './server.js';
import restrict from './restrict.js';
import onion from './onion.js';
export default {
https,

View File

@ -1,5 +1,5 @@
/*
Copyright 2022 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at
@ -24,7 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import common from '../../common';
import common from '../../common.js';
export default {
byDomain: 'por dominio',

View File

@ -1,5 +1,5 @@
/*
Copyright 2022 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at
@ -24,7 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import common from '../../common';
import common from '../../common.js';
export default {
phpIsDisabled: `${common.php} esta desactivado.`,

View File

@ -1,5 +1,5 @@
/*
Copyright 2021 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at
@ -24,7 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import common from '../../common';
import common from '../../common.js';
export default {
pythonIsDisabled: `${common.python} esta desactivado.`,

View File

@ -1,5 +1,5 @@
/*
Copyright 2022 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at
@ -24,7 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import common from '../../common';
import common from '../../common.js';
export default {
reverseProxyIsDisabled: `${common.reverseProxy} esta desactivado.`,

View File

@ -1,5 +1,5 @@
/*
Copyright 2021 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at
@ -24,7 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import common from '../../common';
import common from '../../common.js';
export default {
fallbackRouting: 'Enrutamiento alternativo',

View File

@ -1,5 +1,5 @@
/*
Copyright 2021 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at
@ -24,7 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import common from '../../common';
import common from '../../common.js';
const docker = 'Docker';
const dockerfile = 'Dockerfile';

View File

@ -1,5 +1,5 @@
/*
Copyright 2021 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at
@ -24,7 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import common from '../../common';
import common from '../../common.js';
const mozilla = 'Mozilla';
const ipv4 = 'IPv4';

View File

@ -1,5 +1,5 @@
/*
Copyright 2021 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at
@ -24,15 +24,15 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import https from './https';
import logging from './logging';
import nginx from './nginx';
import performance from './performance';
import python from './python';
import reverseProxy from './reverse_proxy';
import security from './security';
import tools from './tools';
import docker from './docker';
import https from './https.js';
import logging from './logging.js';
import nginx from './nginx.js';
import performance from './performance.js';
import python from './python.js';
import reverseProxy from './reverse_proxy.js';
import security from './security.js';
import tools from './tools.js';
import docker from './docker.js';
export default {
https,

View File

@ -1,5 +1,5 @@
/*
Copyright 2022 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at
@ -24,7 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import common from '../../common';
import common from '../../common.js';
export default {
enableFileNotFoundErrorLogging: `${common.enable} el registro de error de archivo no encontrado`,

View File

@ -1,5 +1,5 @@
/*
Copyright 2021 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at
@ -24,7 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import common from '../../common';
import common from '../../common.js';
export default {
nginxConfigDirectory: `Directorio de configuración de ${common.nginx}`,

View File

@ -1,5 +1,5 @@
/*
Copyright 2022 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at
@ -24,7 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import common from '../../common';
import common from '../../common.js';
export default {
disableHtmlCaching: 'Disable HTML caching', // TODO: translate

View File

@ -1,5 +1,5 @@
/*
Copyright 2021 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at
@ -24,7 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import common from '../../common';
import common from '../../common.js';
export default {
pythonServer: `Servidor ${common.python}`,

View File

@ -1,5 +1,5 @@
/*
Copyright 2021 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at
@ -24,7 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import common from '../../common';
import common from '../../common.js';
const legacyXForwarded = 'Cabeceras X-Forwarded-* Legacy';

View File

@ -1,5 +1,5 @@
/*
Copyright 2021 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at
@ -24,7 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import common from '../../common';
import common from '../../common.js';
export default {
whenUsingWordPressUnsafeEvalIsOftenRequiredToAllowFunctionality: `Cuando usan ${common.wordPress}, <code class="slim">script-src 'self' 'unsafe-inline' 'unsafe-eval';</code> es usualmente requerido en el Content Security Policy para permitir que el panel de administrador funcione correctamente.`,

View File

@ -1,5 +1,5 @@
/*
Copyright 2021 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at
@ -24,7 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import common from '../../common';
import common from '../../common.js';
export default {
modularizedStructure: 'Estructura modularizada',

View File

@ -1,5 +1,5 @@
/*
Copyright 2021 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at
@ -24,12 +24,12 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import app from './app';
import setup from './setup';
import footer from './footer';
import domainSections from './domain_sections';
import globalSections from './global_sections';
import setupSections from './setup_sections';
import callouts from './callouts';
import app from './app.js';
import setup from './setup.js';
import footer from './footer.js';
import domainSections from './domain_sections/index.js';
import globalSections from './global_sections/index.js';
import setupSections from './setup_sections/index.js';
import callouts from './callouts/index.js';
export default { app, setup, footer, domainSections, globalSections, setupSections, callouts };

View File

@ -1,5 +1,5 @@
/*
Copyright 2023 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at
@ -24,7 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import common from '../../common';
import common from '../../common.js';
const certbot = 'Certbot';

View File

@ -1,5 +1,5 @@
/*
Copyright 2021 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at
@ -24,7 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import common from '../../common';
import common from '../../common.js';
// Here is a HACK, because the real traslation is: "y subirla en la carpeta '/etc/nginx' de tu servidor. "
// but the HTML order of the templates are wrong: "y subirla en el servidor '/etc/nginx' carpeta."

View File

@ -1,5 +1,5 @@
/*
Copyright 2021 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at
@ -24,7 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import common from '../../common';
import common from '../../common.js';
export default {
letsGoLive: '¡Vamos a desplegar!',

View File

@ -1,5 +1,5 @@
/*
Copyright 2021 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at
@ -24,9 +24,9 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import certbot from './certbot';
import download from './download';
import goLive from './go_live';
import ssl from './ssl';
import certbot from './certbot.js';
import download from './download.js';
import goLive from './go_live.js';
import ssl from './ssl.js';
export default { certbot, download, goLive, ssl };

View File

@ -1,5 +1,5 @@
/*
Copyright 2021 DigitalOcean
Copyright 2024 DigitalOcean
This code is licensed under the MIT License.
You may obtain a copy of the License at
@ -24,7 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import common from '../../common';
import common from '../../common.js';
export default {
generateDiffieHellmanKeysByRunningThisCommandOnYourServer:

View File

@ -26,6 +26,6 @@ THE SOFTWARE.
import common from './common.js';
import languages from './languages.js';
import templates from './templates';
import templates from './templates/index.js';
export default { common, languages, templates };

View File

@ -24,7 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import common from '../common';
import common from '../common.js';
export default {
title: `${common.nginx}پیکربندی`,

View File

@ -24,7 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import droplet from './droplet';
import contribute from './contribute';
import droplet from './droplet.js';
import contribute from './contribute.js';
export default { droplet, contribute };

View File

@ -24,7 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import common from '../../common';
import common from '../../common.js';
export default {
enableEncryptedSslConnection: `${common.enable} ${common.ssl} اتصال‌های رمزگذاری شده`,

View File

@ -24,16 +24,16 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import https from './https';
import logging from './logging';
import php from './php';
import presets from './presets';
import python from './python';
import reverseProxy from './reverse_proxy';
import routing from './routing';
import server from './server';
import restrict from './restrict';
import onion from './onion';
import https from './https.js';
import logging from './logging.js';
import php from './php.js';
import presets from './presets.js';
import python from './python.js';
import reverseProxy from './reverse_proxy.js';
import routing from './routing.js';
import server from './server.js';
import restrict from './restrict.js';
import onion from './onion.js';
export default {
https,

View File

@ -24,7 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import common from '../../common';
import common from '../../common.js';
export default {
byDomain: 'به وسیلهٔ دامنه',

View File

@ -24,7 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import common from '../../common';
import common from '../../common.js';
export default {
phpIsDisabled: `${common.php} غیرفعال است.`,

View File

@ -24,7 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import common from '../../common';
import common from '../../common.js';
export default {
pythonIsDisabled: `${common.python} غیرفعال است.`,

View File

@ -24,7 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import common from '../../common';
import common from '../../common.js';
export default {
reverseProxyIsDisabled: `${common.reverseProxy} غیرفعال است.`,

View File

@ -24,7 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import common from '../../common';
import common from '../../common.js';
export default {
fallbackRouting: 'مسیریابی پشتیبانی شده',

View File

@ -24,7 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import common from '../../common';
import common from '../../common.js';
const docker = 'Docker';
const dockerfile = 'Dockerfile';

View File

@ -24,7 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
import common from '../../common';
import common from '../../common.js';
const mozilla = 'Mozilla';
const ipv4 = 'IPv4';

Some files were not shown because too many files have changed in this diff Show More