Commit Graph

315 Commits

Author SHA1 Message Date
Matt (IPv4) Cowley 47371a1216
Fix tab order (#255)
* Export array from domain sections

* Export array from global sections

* Export array from setup sections
2021-04-21 21:46:39 +01:00
Matt (IPv4) Cowley e49ec084ac
Dependency updates (#253)
* Bump do-vue

* Bump do-bulma

* Use https://github.com/do-community/sass-lint

* Uninstall sass-lint-auto-fix

* Assorted minor version updates

* Assorted major version updates
2021-04-20 21:51:12 +01:00
Matt (IPv4) Cowley 36d23555ac
Bump all deps (#251) 2021-04-12 20:37:50 +01:00
SVE1R 03ad31f8d7
Update Simplified Chinese Translation (#252)
* Complete Translation In Simplified Chinese

* Update src/nginxconfig/i18n/zh-cn/templates/domain_sections/https.js

Co-authored-by: Matt (IPv4) Cowley <me@mattcowley.co.uk>

Co-authored-by: Matt (IPv4) Cowley <me@mattcowley.co.uk>
2021-04-12 15:49:16 +01:00
Matt (IPv4) Cowley deec5269ad
Hotfix: HTTP/3 strings use domainSections not globalSections (#250) 2021-04-06 00:53:56 +01:00
Matt (IPv4) Cowley 8cd4adbd9c
Tweak sed commands in certbot setup (#240) 2021-03-31 14:14:40 +01:00
Matt (IPv4) Cowley 7a0b6937c6
Assorted cleanup + fixes (#249)
* Move i18n strings to correct files

* Update copyright header in recently modified files

* More consistent line wrapping

* Move modules above events block
2021-03-31 14:12:50 +01:00
Matt (IPv4) Cowley 34ec037d13
Rely on Prism being in window to fix dev error (#248) 2021-03-31 14:11:16 +01:00
J3fftw 8b7cf80733
Added http/3 and port reuse support (#238)
* Added http/3 and port reuse support

* eslint fixes

* updated locale translations

* euhm no one saw this

* Did requested changes

* fixed eslint

* note to self tab is 4 spaces not 2

* Did requested changes

* added coma

* i forgot to ctrl + s

* did requested changes

* removed trailing comma

* it should be reverted now

* :PanSpoonSad: intensifies

* Im bad at this
2021-03-29 20:35:55 +01:00
Bernhard Kau 89e847b62f
Load modules-enabled/* in main conf (#244)
Co-authored-by: Matt (IPv4) Cowley <me@mattcowley.co.uk>

Co-authored-by: Bernhard Kau <bernhard@kau-boys.de>
Co-authored-by: Matt (IPv4) Cowley <me@mattcowley.co.uk>
2021-03-29 16:21:10 +01:00
Matt (IPv4) Cowley bbb572a668
Bump do-bulma for Inter (#245)
* Bump do-bulma

* Fix SCSS font includes

* Inject resolve-url-loader

* Also bump do-vue
2021-03-29 15:02:01 +01:00
dependabot[bot] 3ddceae0d9
Bump elliptic from 6.5.3 to 6.5.4 (#242)
Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.3 to 6.5.4.
- [Release notes](https://github.com/indutny/elliptic/releases)
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.3...v6.5.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-26 15:28:16 +00:00
Bernhard Kau 7706d13420
Remove WordPress comments from deny rule (#241)
Co-authored-by: Bernhard Kau <bernhard@kau-boys.de>
2021-03-26 15:06:51 +00:00
MiaoTony eb25fc5eee
Fix broken link in README (#237) 2021-03-16 14:58:29 +00:00
dependabot[bot] a421bc602d
Bump prismjs from 1.22.0 to 1.23.0 (#236)
Bumps [prismjs](https://github.com/PrismJS/prism) from 1.22.0 to 1.23.0.
- [Release notes](https://github.com/PrismJS/prism/releases)
- [Changelog](https://github.com/PrismJS/prism/blob/master/CHANGELOG.md)
- [Commits](https://github.com/PrismJS/prism/compare/v1.22.0...v1.23.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-03 16:56:32 +00:00
Atila Silva 1fb756ca77
Set the PHP server config per site (#232)
* Set up the php server per site.

* Backwards compatibility logic for old config URLs.

* Remove php global config tab.

* Fix util import in website.conf.js

* Fix eslint fails.

* Move global php i18n keys to domain

* Remove unnecessary domains verification and set fastcgi_pass in unified mode.

* Convert return statement to logic operator in php_ustream.js

* Move php upstream to outside the server blocks

* Remove unnecessary watcher from php domain section

* Fix upstream config context and conditional append

* Separate backwards compatibility logic.

* Remove unused i18n key from php domain and update copyright of these files

* Replace all dots for underscore in php_upstream helper

* Fix missing space and remove upstream comment from php config.

* Fix selects $refs and watch the enable status for phpServer and phpBackupServer.

* Change copyright year for all modified files.

* Backwards compatibility logic for old config URLs after angularBackwardsCompatibility

* Deep merge old php global config from data url, and add safe disable for phpConfigs

* Move deep merge function to new helper

* Fix missing disable wordpressRules  and convert function declaration to arrows in deep merge helper

* Fix missing css class in php domain-section
2021-02-24 16:20:10 +00:00
Matt (IPv4) Cowley 4cfdcdb8d1
Update template generation (#224)
* Bump do-vue & do-bulma

* Tweak how we generate the template

* Remove the document.write monkeypatch, we'll fix this in prod
2021-02-19 17:56:38 +00:00
Matt (IPv4) Cowley 4a786d2bfd
Add IntersectionObserver to Droplet callout event (#228) 2021-02-19 17:55:43 +00:00
Matt (IPv4) Cowley 3d321759e3
Design fixes for RU language pack (#229)
* Fix checkbox label font weight

* Fix callout button wrapping

* Fix header description font weight

* Bump copyright in updated files
2021-02-19 17:55:23 +00:00
Matt (IPv4) Cowley b4a933add1
Disable index.html fallback in dev (#230) 2021-02-19 17:54:58 +00:00
powerdot 90afc38a38
Updates to RU langauge pack (#231)
* Russian lang

* Russian Lang

* Update src/nginxconfig/i18n/fr/languages.js

Mama Mia! Pizza!

Co-authored-by: Matt (IPv4) Cowley <me@mattcowley.co.uk>

* Update src/nginxconfig/i18n/ru/common.js

Tabs to 4 spaces

Co-authored-by: Matt (IPv4) Cowley <me@mattcowley.co.uk>

* Matt language revision

2020 -> 2021
Added translations

* Little updates

1 translation
1 correction

* Update package-lock.json

* Update package-lock.json

* Update https.js

Broken French

* Translation fix

Better to UI, better to understand, 4 mistakes fixed

Co-authored-by: Matt (IPv4) Cowley <me@mattcowley.co.uk>
2021-02-19 17:15:17 +00:00
powerdot d4d02172d0
Add Russian language support (#226)
* Russian lang

* Russian Lang

* Update src/nginxconfig/i18n/fr/languages.js

Mama Mia! Pizza!

Co-authored-by: Matt (IPv4) Cowley <me@mattcowley.co.uk>

* Update src/nginxconfig/i18n/ru/common.js

Tabs to 4 spaces

Co-authored-by: Matt (IPv4) Cowley <me@mattcowley.co.uk>

* Matt language revision

2020 -> 2021
Added translations

* Little updates

1 translation
1 correction

* Update package-lock.json

* Update package-lock.json

* Update https.js

Broken French

Co-authored-by: Matt (IPv4) Cowley <me@mattcowley.co.uk>
2021-02-17 12:43:34 +00:00
Matt (IPv4) Cowley 5f37442cbe
Send a consistent event name to GTM (#222) 2021-02-15 19:23:06 +00:00
墨娘 68b2fccbc0
Translate Chinese strings for Callouts (#223) 2021-02-15 17:05:49 +00:00
Atila Silva 189a0fc3cf
Prevent access error in phpServerOptions (#221)
* Prevent access error in phpServerOptions

* fix missing semicolon
2021-02-10 16:11:22 +00:00
Matt (IPv4) Cowley bbddeb0f13
Add Droplet & contribution callouts (#216)
* Add the initial Droplet callout

* Add the initial Contribute callout

* Show contribute callout on scroll

* Add close button to contribute callout

* Add/update styling copyright header

* Add analytics events for the callouts

* Tweak how we send analytics events

* Add some z-index to the floating callout

* Fix all the failing tests
2021-02-04 19:31:26 +00:00
Matt (IPv4) Cowley ad63ca0c8b
Support custom PHP server values (#218)
* Add the logic for custom php paths

* Add the i18n strings

* Fix some visual things
2021-02-04 19:29:32 +00:00
Matt (IPv4) Cowley 323cae4c50
Allow setting of custom sizes for types hash (#219) 2021-02-04 19:28:50 +00:00
Michael Krickl 5f8931c231
Improve Connection header for WebSocket reverse proxy (#217)
* Improve Connection header for WebSocket reverse proxy

reference: https://nginx.org/en/docs/http/websocket.html

* Move map to http context
2021-02-02 21:20:46 +00:00
mphschmitt f2aa59297d
Add French translations (#214)
* Add French translations

* French: add zh-cn and zh-tw translations.

* Update case

* Translate 'reverse proxy'
2021-01-19 21:08:11 +00:00
Matt (IPv4) Cowley 3fdccfa68a
Refactor analytics events (#209)
* Refactor analytics.js

* Update analytics calls in app.vue

* Update analytics calls in presets.vue

* Update analytics calls in tools.vue (and app.vue)

* Update analytics calls in global.vue

* Update analytics calls in domain.vue

* Update analytics calls in setup.vue

* Add list of all events to analytics.js

* Add custom copy to clipboard that emits event

* Emit the events from the components

* Update copyright year in all files touched

* Update analytics calls in download.vue

* Update analytics calls in ssl.vue

* Update analytics calls in certbot.vue

* Update analytics calls in domain.vue

* Update analytics calls in app.vue

* Note down 'Code snippet copied' events
2021-01-18 19:45:19 +00:00
墨娘 c86fb3cf76
Translate Chinese strings for Onion (#211) 2021-01-18 16:28:48 +00:00
Matt (IPv4) Cowley 479412888d
Set dynamic webpack import path (#208)
* Set dynamic webpack import path

* Cleanup
2021-01-05 15:29:13 +00:00
Matt (IPv4) Cowley 0cefd5ddef
Add onion location support (#207)
* Add initial onion tab

* Add some explaining copy

* Add to generator

* Add strings to language packs

* Add external learn more link
2021-01-04 15:41:56 +00:00
Matt (IPv4) Cowley 2b459b47ee
Improve language pack verification (#206)
* Add warnings for unused files in packs

* Add warnings for todos

* Cleanup pack file conversion
2021-01-04 15:38:56 +00:00
Matt (IPv4) Cowley de76ad9a43
Make language packs load async (#204)
* Webpack magic to make language packs async

* Fix jest failing

* Ensure the native language names are always present

* Add loading state for language packs
2020-12-29 16:46:58 +00:00
墨娘 9b0a7dc4ac
Translate missing Chinese strings (#205)
* Translate the new phrase

* Update src/nginxconfig/i18n/zh-tw/templates/global_sections/docker.js

Co-authored-by: Matt (IPv4) Cowley <me@mattcowley.co.uk>
2020-12-29 16:29:24 +00:00
Fernando Pimenta 6fd11d9438
Add Brazilian Portuguese translations (#202)
* Fisrt time Portuguese Brazilian translation

* Revised translation to Portuguese Brazilian

* Corrected PR error: Unexpected token, expected ","

* Exported the pt-br pack in index.js

* Translated the docker missing keys

* Added the new constants

* Corrected issues with the suggested tips

* Tab -> spaces

Co-authored-by: Fernando Pimenta <fernandopimenta@tecnosys.com.br>
Co-authored-by: Matt (IPv4) Cowley <me@mattcowley.co.uk>
2020-12-22 21:29:08 +00:00
墨娘 d1bf984d0b
Add unit testing for browser language (#197)
* Add unit testing

* Update unit testing

* Update unit testing

* fix a big heap of formatting typo
2020-12-22 17:06:52 +00:00
Matt (IPv4) Cowley 0d920fa9bc
Add Docker tweaks/preset button (#201)
* Docker preset button

* All the strings

* Sorry sass-lint
2020-12-21 15:27:44 +00:00
Matt (IPv4) Cowley de86df7fe4
Add script to verify integrity of language packs (#203)
* Add script to verify integrity of language packs

* Update workflows

* It'd help if we ran the right test
2020-12-21 15:22:07 +00:00
Matt (IPv4) Cowley 91db6ee322
Add build script for bundled DO Prism styles (#200)
* Only ignore root build/dist/dev directories

* Add build script for bundled DO Prism styles
2020-12-21 15:15:35 +00:00
Matt (IPv4) Cowley 4df47e4c5c
Update deps to fix diffing issues (#199) 2020-12-17 15:19:16 +00:00
Matt (IPv4) Cowley 7340e0df74
Add analytics event for langauge selection (#198)
* Add analytics event for language

* Action per language pack

* Missing underscore in action
2020-12-17 15:17:40 +00:00
Matt (IPv4) Cowley d58b6e08d9
Remove extra quotes from website HSTS (#196) 2020-12-14 15:52:41 +00:00
Matt (IPv4) Cowley ff88e2f322
Allow language selection (#191)
* Add dropdown for language

* Use vue-i18n to translate strings

* Tweak header styling

* Add Chinese languages in

* Typo

* Get language from browser (#193)

* adaptive system language

* Modify the adaptive system language

* Remove dead code

* Delete lang default values

* Move browser language detection to util

* Remove todos

* Fix global PHP dropdown

Co-authored-by: 墨娘 <61287199+moniang@users.noreply.github.com>
2020-12-11 16:54:12 +00:00
墨娘 7d3290d850
Add Chinese translations (cn & tw) (#190)
* - Add Chinese translation
- Fix code style with eslint

* Check and revise

* Added traditional Chinese

* Check and revise

* fix Typo
2020-12-10 12:05:20 +00:00
Sascha Moser bc1bcd7b5b
Add PHP 8.0 socket (#189) 2020-12-01 17:21:50 +00:00
Faiz Azhar 3b00bda80e
Log Cloudflare headers (#116) (#183)
* #116 Log Cloudflare headers

* #116 Log Cloudflare headers

* #116 Log Cloudflare headers

* #163 Fix linting

* Update src/nginxconfig/generators/conf/website.conf.js

Co-authored-by: Matt (IPv4) Cowley <me@mattcowley.co.uk>

* Update src/nginxconfig/generators/conf/website.conf.js

Co-authored-by: Matt (IPv4) Cowley <me@mattcowley.co.uk>

* Update src/nginxconfig/generators/conf/website.conf.js

Co-authored-by: Matt (IPv4) Cowley <me@mattcowley.co.uk>

* Update src/nginxconfig/generators/conf/nginx.conf.js

Co-authored-by: Matt (IPv4) Cowley <me@mattcowley.co.uk>

* Remove extra div + incorrect if check, revert linebreak  removal

* handle custom log formats as an array

* Update src/nginxconfig/generators/conf/nginx.conf.js

Co-authored-by: Matt (IPv4) Cowley <me@mattcowley.co.uk>

* remove curly braces, move default log format array definition inside if statement

Co-authored-by: Matt (IPv4) Cowley <me@mattcowley.co.uk>
2020-10-27 18:11:53 +00:00
Alexandre Dias ae322cf2c5
Joomla! conf (#86) (#186)
* Joomla! conf

* fix bug escape character & ;

* remove global and fix presets }

* change requests
2020-10-27 10:40:39 +00:00