-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ea269b5
commit d520a49
Showing
4 changed files
with
151 additions
and
77 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
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 |
---|---|---|
|
@@ -34,10 +34,23 @@ const pluginConfig: CookieConsentConfig = { | |
enabled: true, | ||
}, | ||
analytics: { | ||
enabled: true, | ||
autoClear: { | ||
cookies: [ | ||
{ | ||
name: /^(_ga|_gid|color_mode|preferred_color_mode|disabled_global_site_banners|fileTreeExpanded)$/, | ||
name: /^(_ga|_gid)$/, | ||
}, | ||
], | ||
}, | ||
}, | ||
preferences: { | ||
enabled: true, | ||
autoClear: { | ||
cookies: [ | ||
{ | ||
name: /^(color_mode|preferred_color_mode|disabled_global_site_banners|fileTreeExpanded)$/, | ||
domain: ".github.com", | ||
path: "/", | ||
}, | ||
], | ||
}, | ||
|
@@ -85,27 +98,27 @@ const pluginConfig: CookieConsentConfig = { | |
body: [ | ||
{ | ||
name: "_octo", | ||
domain: ".github.com", | ||
domain: "Github", | ||
description: "Session management", | ||
}, | ||
{ | ||
name: "logged_in", | ||
domain: ".github.com", | ||
domain: "Github", | ||
description: "Maintains login status", | ||
}, | ||
{ | ||
name: "GHCC", | ||
domain: ".github.com", | ||
domain: "Github", | ||
description: "Content customization", | ||
}, | ||
{ | ||
name: "dotcom_user", | ||
domain: ".github.com", | ||
domain: "Github", | ||
description: "Identifies the logged-in user", | ||
}, | ||
{ | ||
name: "tz", | ||
domain: ".github.com", | ||
domain: "Github", | ||
description: "Stores timezone setting", | ||
}, | ||
], | ||
|
@@ -118,45 +131,55 @@ const pluginConfig: CookieConsentConfig = { | |
headers: { | ||
name: "Name", | ||
domain: "Service", | ||
description: "Description", | ||
}, | ||
body: [ | ||
{ | ||
name: "_ga", | ||
domain: "Google Analytics", | ||
description: "Used to distinguish users", | ||
}, | ||
{ | ||
name: "_gid", | ||
domain: "Google Analytics", | ||
description: "Used to distinguish users", | ||
}, | ||
], | ||
}, | ||
}, | ||
{ | ||
title: "Preferences cookies", | ||
linkedCategory: "preferences", | ||
cookieTable: { | ||
headers: { | ||
name: "Name", | ||
domain: "Service", | ||
description: "Description", | ||
}, | ||
body: [ | ||
{ | ||
name: "color_mode", | ||
domain: ".github.com", | ||
domain: "Github", | ||
description: "Saves your preferred color scheme", | ||
}, | ||
{ | ||
name: "preferred_color_mode", | ||
domain: ".github.com", | ||
domain: "Github", | ||
description: "Remembers your display preferences", | ||
}, | ||
{ | ||
name: "disabled_global_site_banners", | ||
domain: ".github.com", | ||
domain: "Github", | ||
description: "Keeps track of your banner preferences", | ||
}, | ||
|
||
{ | ||
name: "fileTreeExpanded", | ||
domain: ".github.com", | ||
domain: "Github", | ||
description: "Remembers your file tree preferences", | ||
}, | ||
], | ||
}, | ||
}, | ||
{ | ||
title: "More information", | ||
description: | ||
'For any queries in relation to our policy on cookies and your choices, please <a class="cc__link" href="mailto:[email protected]">contact us</a>.', | ||
}, | ||
], | ||
}, | ||
}, | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.