Commit Graph

45 Commits

Author SHA1 Message Date
Matt Cowley ebca910786
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
2022-03-21 22:51:21 +00:00
Matt Cowley 07b0714837
Suppress logging with NODE_ENV (#332) 2022-02-25 20:00:45 +00:00
Matt (IPv4) Cowley 387a47b014
Dependency updates + full ESM (#327)
* Dependency updates

* Fix eslint issues

* Switch to esm fully

* Fix Jest tests

* Update to node 16, force mini-css-extract-plugin to 1.x

* More dep updates

* Use correct NPM version in Actions

* Fix mini-css-extract-plugin version overrides

* Don't rely on Webpack for available languages
2022-02-04 21:10:20 +00:00
Matt (IPv4) Cowley fe5f2b234d
Reduce the query param cut-off to 1000 chars (#259)
* Reduce the query param cut-off to 1000 chars

* Update copyright
2021-05-13 15:27:17 +01: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 5f37442cbe
Send a consistent event name to GTM (#222) 2021-02-15 19:23:06 +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 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
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
墨娘 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 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
MattIPv4 989d2b257d Try sending directly to the analytics tracker? 2020-07-20 17:58:27 +01:00
MattIPv4 2dce7a956f Only use analytics.js, not gtag.js 2020-07-17 16:25:00 +01:00
MattIPv4 a9cb3e54f6 Analytics for global reset/remove 2020-07-14 16:41:55 +01:00
MattIPv4 df440ddc79 Some more analytics logic 2020-07-14 16:14:29 +01:00
MattIPv4 a66db340f4 Use files-diff for diffing 2020-06-26 18:00:03 +01:00
MattIPv4 97ccb98ef8 Provide an option for LE cert dir (fixes #156) 2020-06-21 15:52:07 +01:00
MattIPv4 95bad7b943 Diff file names 2020-06-09 16:02:46 +01:00
MattIPv4 8b10ed3e05 Refactor diffing & track conf file renames in diff 2020-06-08 17:31:01 +01:00
MattIPv4 a9b69fd6f5 Centralise query string generation & fallback to hash if too long 2020-06-05 17:21:01 +01:00
MattIPv4 7444fa6f77 MIT license 2020-06-04 14:44:30 +01:00
MattIPv4 62178fd7d2 Preserve untouched example domains from query params 2020-06-03 16:44:49 +01:00
MattIPv4 289893d1f4 Don't convert objects during backwards compat 2020-06-02 17:40:05 +01:00
MattIPv4 19cac71df0 Add in all the missing copyright headers 2020-05-28 16:50:03 +01:00
MattIPv4 4e1afc007a Backwards compatibility for domain options 2020-05-28 16:44:03 +01:00
MattIPv4 193b50efc7 Backwards compatibility for global options 2020-05-27 21:15:30 +01:00
MattIPv4 2f6ad2634e Move to using vue-cli-service instead of parcel (2.1MB to 850KB) 2020-05-26 23:23:07 +01:00
MattIPv4 5ccb6ddfbe Move prism css into scss 2020-05-26 21:45:21 +01:00
MattIPv4 17261e8bbd Conf diffing?! 2020-05-22 21:17:01 +01:00
MattIPv4 3bb350633b Fix no domains if only glob config set 2020-05-21 15:43:30 +01:00
MattIPv4 96e72a44bb Some more confs 2020-05-15 20:31:54 +01:00
MattIPv4 b773081e5f Even more confs! 2020-05-15 18:18:52 +01:00
MattIPv4 adf4752e1c Some more conf files 2020-05-14 18:01:55 +01:00
MattIPv4 e6db3cea7b Begin making conf files 2020-05-08 17:58:38 +01:00
MattIPv4 6a72ae5173 Import global config from url query params on load 2020-05-05 17:28:12 +01:00
MattIPv4 2273662feb Import domains from url query params on load 2020-05-05 17:19:08 +01:00
MattIPv4 f2c0878cda Add writing of query params 2020-05-05 16:29:13 +01:00
MattIPv4 795edd2255 Move presets into their own panel 2020-05-05 15:49:42 +01:00
MattIPv4 e7e9cbcfa2 Add global tools section & export data generator 2020-05-04 20:55:23 +01:00
MattIPv4 969d610831 Python section all done 2020-04-30 16:45:30 +01:00
MattIPv4 361f3d8aa3 HTTPS section all done 2020-04-30 16:23:31 +01:00
MattIPv4 fc6fd025b7 Server section all done 2020-04-28 19:53:59 +01:00
MattIPv4 10c7ced0b7 Delegate data around the app 2020-04-28 12:03:11 +01:00