-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…in-offline Gatsby Plugin "Web App Manifest"
- Loading branch information
Showing
6 changed files
with
431 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
* Copyright (C) 2018-present Arctic Ice Studio <development@arcticicestudio.com> | ||
* Copyright (C) 2018-present Sven Greb <development@svengreb.de> | ||
* | ||
* Project: Nord Docs | ||
* Repository: https://github.com/arcticicestudio/nord-docs | ||
* License: MIT | ||
*/ | ||
|
||
/** | ||
* @file The configuration for the Gatsby plugin `gatsby-plugin-google-gtag`. | ||
* @author Arctic Ice Studio <development@arcticicestudio.com> | ||
* @author Sven Greb <development@svengreb.de> | ||
* @see https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-google-gtag | ||
* @since 0.4.0 | ||
*/ | ||
|
||
const { GOOGLE_UNIVERSAL_ANALYTICS_TRACKING_ID } = require("../../../src/config/internal/constants"); | ||
|
||
module.exports = { | ||
/* The tracking IDs for all used "Google Marketing" products. */ | ||
trackingIds: [GOOGLE_UNIVERSAL_ANALYTICS_TRACKING_ID], | ||
/* The configuration that gets passed to the `gtag.js`'s `config` command. */ | ||
/* eslint-disable-next-line babel/camelcase */ | ||
gtagConfig: { anonymize_ip: true }, | ||
pluginConfig: { | ||
/* | ||
* Put the `gtag.js` tracking script in the HTML `<head>` instead of the `<body>` as recommended by Google. | ||
* | ||
* @see https://developers.google.com/analytics/devguides/collection/gtagjs | ||
*/ | ||
head: true, | ||
/* | ||
* Respect the 'Do Not Track' HTTP header. | ||
* | ||
* @see https://en.wikipedia.org/wiki/Do_Not_Track | ||
*/ | ||
respectDNT: true | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* Copyright (C) 2018-present Arctic Ice Studio <development@arcticicestudio.com> | ||
* Copyright (C) 2018-present Sven Greb <development@svengreb.de> | ||
* | ||
* Project: Nord Docs | ||
* Repository: https://github.com/arcticicestudio/nord-docs | ||
* License: MIT | ||
*/ | ||
|
||
/** | ||
* @file The configuration for the Gatsby plugin `gatsby-plugin-manifest`. | ||
* @author Arctic Ice Studio <development@arcticicestudio.com> | ||
* @author Sven Greb <development@svengreb.de> | ||
* @see https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest | ||
* @since 0.4.0 | ||
*/ | ||
|
||
/* eslint-disable babel/camelcase */ | ||
|
||
const { metadataNord } = require("../../src/data/project"); | ||
const { ROUTE_ROOT } = require("../../src/config/routes/mappings"); | ||
|
||
module.exports = { | ||
name: metadataNord.name, | ||
short_name: metadataNord.name, | ||
start_url: ROUTE_ROOT, | ||
background_color: "#d8dee9", | ||
theme_color: "#88c0d0", | ||
/* | ||
* Enables the "Add to Homescreen" prompt and disables browser UI (including back button) | ||
* @see https://developers.google.com/web/fundamentals/web-app-manifest/#display | ||
*/ | ||
display: "standalone", | ||
/* The relative path (starting from the project root) to the source icon all other favicons will be generated from. */ | ||
icon: "src/assets/images/icons/favicon.svg", | ||
/* | ||
* Enable support for legacy `apple-touch-icon` links. Support for the web app manifest specification was added first | ||
* in iOS 11.3. | ||
*/ | ||
legacy: true | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.