From 5d3110d34970c1a2802ab814f8be1b59a2d1e1e5 Mon Sep 17 00:00:00 2001 From: MattIPv4 Date: Fri, 1 May 2020 17:45:04 +0100 Subject: [PATCH] Global config base & https tab --- src/nginxconfig/i18n/en/templates/app.js | 2 +- src/nginxconfig/templates/app.vue | 10 +- src/nginxconfig/templates/global.vue | 108 ++++++++++++ .../templates/global_sections/https.vue | 160 ++++++++++++++++++ .../templates/global_sections/index.js | 1 + 5 files changed, 279 insertions(+), 2 deletions(-) create mode 100644 src/nginxconfig/templates/global.vue create mode 100644 src/nginxconfig/templates/global_sections/https.vue create mode 100644 src/nginxconfig/templates/global_sections/index.js diff --git a/src/nginxconfig/i18n/en/templates/app.js b/src/nginxconfig/i18n/en/templates/app.js index 27b79af..b9eb4e7 100644 --- a/src/nginxconfig/i18n/en/templates/app.js +++ b/src/nginxconfig/i18n/en/templates/app.js @@ -1,5 +1,5 @@ export default { title: 'NGINXConfig', - description: '', + description: 'The easiest way to configure a performant, secure, and stable NGINX server.', oss: 'This tool is {link|open-source on GitHub|https://github.com/do-community/nginxconfig-vue} under the {link|Apache-2.0|https://github.com/do-community/nginxconfig-vue/blob/master/LICENSE} license! We welcome feedback and contributions.', }; diff --git a/src/nginxconfig/templates/app.vue b/src/nginxconfig/templates/app.vue index 7f04e09..5715c75 100644 --- a/src/nginxconfig/templates/app.vue +++ b/src/nginxconfig/templates/app.vue @@ -27,6 +27,8 @@ limitations under the License.
+

Per-website config

+
  • @@ -47,6 +49,9 @@ limitations under the License. :style="{ display: data[1] === active ? 'block' : 'none' }" > + +

    Global config

    +
@@ -60,13 +65,15 @@ limitations under the License. import isChanged from '../util/is_changed'; import i18n from '../i18n'; import Domain from './domain'; + import Global from './global'; export default { name: 'App', components: { - Domain, Header, Footer, + Domain, + Global, }, data() { return { @@ -74,6 +81,7 @@ limitations under the License. domains: [ clone(Domain.delegated), ], + global: Global.delegated, active: 0, }; }, diff --git a/src/nginxconfig/templates/global.vue b/src/nginxconfig/templates/global.vue new file mode 100644 index 0000000..43c216d --- /dev/null +++ b/src/nginxconfig/templates/global.vue @@ -0,0 +1,108 @@ + + + + + diff --git a/src/nginxconfig/templates/global_sections/https.vue b/src/nginxconfig/templates/global_sections/https.vue new file mode 100644 index 0000000..4d0268d --- /dev/null +++ b/src/nginxconfig/templates/global_sections/https.vue @@ -0,0 +1,160 @@ + + + diff --git a/src/nginxconfig/templates/global_sections/index.js b/src/nginxconfig/templates/global_sections/index.js new file mode 100644 index 0000000..96c4b33 --- /dev/null +++ b/src/nginxconfig/templates/global_sections/index.js @@ -0,0 +1 @@ +export { default as HTTPS } from './https';