Skip to content
This repository has been archived by the owner on Jun 13, 2022. It is now read-only.

Commit

Permalink
feat: footer links for EU GDPR legal notice and data pricacy statement
Browse files Browse the repository at this point in the history
initial implementation of feature
  • Loading branch information
clouless committed Aug 25, 2019
1 parent 09ea473 commit 22ce441
Show file tree
Hide file tree
Showing 12 changed files with 66 additions and 36 deletions.
8 changes: 7 additions & 1 deletion packages/@statusfy/core/client/components/Footer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,13 @@ export default {
computed: {
links() {
const $t = this.$t.bind(this);
const allowedLinksKeys = ["home", "contact", "support"];
const allowedLinksKeys = [
"home",
"contact",
"support",
"privacy",
"legal"
];
const themeLinks = get(this.$statusfy, ["theme", "links"]);
const links = {};
Expand Down
4 changes: 3 additions & 1 deletion packages/@statusfy/core/client/locales/br-default.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"contact": "Contato",
"support": "Suporte",
"home": "Home",
"powered-by": "Powered by"
"powered-by": "Powered by",
"legal": "Aviso legal",
"privacy": "Protección de datos"
},
"statuses": {
"under-maintenance": "Em Manutenção",
Expand Down
4 changes: 3 additions & 1 deletion packages/@statusfy/core/client/locales/de-default.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"contact": "Kontakt",
"support": "Support",
"home": "Startseite",
"powered-by": "Powered by"
"powered-by": "Powered by",
"legal": "Impressum",
"privacy": "Datenschutzerklärung"
},
"statuses": {
"under-maintenance": "Wartung",
Expand Down
4 changes: 3 additions & 1 deletion packages/@statusfy/core/client/locales/en-default.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"contact": "Contact",
"support": "Support",
"home": "Home",
"powered-by": "Powered by"
"powered-by": "Powered by",
"legal": "Legal Notice",
"privacy": "Data Privacy"
},
"statuses": {
"under-maintenance": "Under Maintenance",
Expand Down
4 changes: 3 additions & 1 deletion packages/@statusfy/core/client/locales/es-default.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"contact": "Contacto",
"support": "Soporte",
"home": "Inicio",
"powered-by": "Respaldado por"
"powered-by": "Respaldado por",
"legal": "Aviso legal",
"privacy": "Protección de datos"
},
"statuses": {
"under-maintenance": "En Mantenimiento",
Expand Down
4 changes: 3 additions & 1 deletion packages/@statusfy/core/client/locales/hu-default.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"contact": "Kapcsolat",
"support": "Támogatás",
"home": "Főoldal",
"powered-by": "Üzemelteti"
"powered-by": "Üzemelteti",
"legal": "Impresszum",
"privacy": "Adatvédelem"
},
"statuses": {
"under-maintenance": "Karbantartás alatt",
Expand Down
4 changes: 3 additions & 1 deletion packages/@statusfy/core/client/locales/it-default.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"contact": "Contatto",
"support": "Supporto",
"home": "Home",
"powered-by": "Powered by"
"powered-by": "Powered by",
"legal": "Colofone",
"privacy": "Protezione dei dati"
},
"statuses": {
"under-maintenance": "In Manutenzione",
Expand Down
4 changes: 3 additions & 1 deletion packages/@statusfy/core/client/locales/nl-default.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"contact": "Contact",
"support": "Support",
"home": "Startpagina",
"powered-by": "Powered by"
"powered-by": "Powered by",
"legal": "Impressum",
"privacy": "Gegevensbescherming"
},
"statuses": {
"under-maintenance": "In onderhoud",
Expand Down
4 changes: 3 additions & 1 deletion packages/@statusfy/core/client/locales/pt-default.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"contact": "Contactos",
"support": "Suporte",
"home": "Página Inicial",
"powered-by": "Criado com"
"powered-by": "Criado com",
"legal": "Informação legal",
"privacy": "Proteção de dados"
},
"statuses": {
"under-maintenance": "Em Manuntenção",
Expand Down
50 changes: 27 additions & 23 deletions packages/demo/config.js
Original file line number Diff line number Diff line change
@@ -1,46 +1,50 @@
const oneSignalAppID = process.env.ONESIGNAL_APP_ID || '0c13819d-dd92-4c3e-a554-e7ab14c561af'
const oneSignalAppID =
process.env.ONESIGNAL_APP_ID || "0c13819d-dd92-4c3e-a554-e7ab14c561af";

module.exports = {
title: 'Demo System Status',
short_title: 'System Status',
description: 'A marvelous open source Status Page system',
baseUrl: 'https://demo.statusfy.co',
title: "Demo System Status",
short_title: "System Status",
description: "A marvelous open source Status Page system",
baseUrl: "https://demo.statusfy.co",
analytics: {
ga: process.env.GA_TRACKING_ID || 'UA-XXXXXXXXX-Y',
mixpanel: process.env.MIXPANEL_TOKEN || 'mixpanel-token',
facebook: process.env.FACEBOOK_TOKEN || 'facebook-token',
segment: process.env.SEGMENT_TOKEN || 'segment-token'
ga: process.env.GA_TRACKING_ID || "UA-XXXXXXXXX-Y",
mixpanel: process.env.MIXPANEL_TOKEN || "mixpanel-token",
facebook: process.env.FACEBOOK_TOKEN || "facebook-token",
segment: process.env.SEGMENT_TOKEN || "segment-token"
},
defaultLocale: 'en',
defaultLocale: "en",
locales: [
{ code: 'en', iso: 'en-US', name: 'English' },
{ code: 'es', iso: 'es-ES', name: 'Español' }
{ code: "en", iso: "en-US", name: "English" },
{ code: "es", iso: "es-ES", name: "Español" }
],
content: {
frontMatterFormat: 'yaml',
systems: [
'cdn',
'conversions',
'site-delivery',
'api'
]
frontMatterFormat: "yaml",
systems: ["cdn", "conversions", "site-delivery", "api"]
},
head: {
link: [
{ rel: 'mask-icon', href: '/icons/safari-pinned-tab.svg', color: '#3e4e88' }
{
rel: "mask-icon",
href: "/icons/safari-pinned-tab.svg",
color: "#3e4e88"
}
]
},
theme: {
links: {
en: {
contact: "https://statusfy.co/support",
support: "https://statusfy.co/support",
home: "https://statusfy.co"
home: "https://statusfy.co",
privacy: "https://statusfy.co/data-privacy",
legal: "https://statusfy.co/legal"
},
es: {
contact: "https://statusfy.co/es/support",
support: "https://statusfy.co/es/support",
home: "https://statusfy.co/es"
home: "https://statusfy.co/es",
privacy: "https://statusfy.co/es/data-privacy",
legal: "https://statusfy.co/es/legal"
}
}
},
Expand All @@ -59,4 +63,4 @@ module.exports = {
}
}
}
}
};
10 changes: 7 additions & 3 deletions packages/docs/src/config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ Define the position of the Section **Scheduled Maintenance** in the home page. T
- Type: `Object`
- Default: `{}`

The external links located at the Footer of each page. There only three links you can define: `home`, `contact`, and `support` and must be used the language code as the index of the object. For example:
The external links located at the Footer of each page. There only three links you can define: `home`, `contact`, `support`, `legal` and `privacy` and must be used the language code as the index of the object. For example:

```json
module.exports = {
Expand All @@ -91,12 +91,16 @@ module.exports = {
en: {
contact: "https://statusfy.co/contact",
support: "https://statusfy.co/support",
home: "https://statusfy.co"
home: "https://statusfy.co",
privacy: "https://statusfy.co/data-privacy",
legal: "https://statusfy.co/legal"
},
es: {
contact: "https://statusfy.co/es/contact",
support: "https://statusfy.co/es/support",
home: "https://statusfy.co/es"
home: "https://statusfy.co/es",
privacy: "https://statusfy.co/es/data-privacy",
legal: "https://statusfy.co/es/legal"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/src/guide/theme-customization.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@ You can define static files in the `public/` directory that will be mapped to th

## Links

The external links located at the footer of each page can be customize. There only three links you can define: `home`, `contact`, and `support`. More information in the [Config Reference Guide](../config/README.md#links).
The external links located at the footer of each page can be customize. There only three links you can define: `home`, `contact`, `support`, `legal` and `privacy`. More information in the [Config Reference Guide](../config/README.md#links).

0 comments on commit 22ce441

Please sign in to comment.