-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pc/consent: Restructure consent src dir to make modle/browser distinc…
…tion clearer (#1904)
- Loading branch information
1 parent
71157ff
commit 754c93f
Showing
8 changed files
with
27 additions
and
14 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
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
12 changes: 12 additions & 0 deletions
12
clients/privacy-center/packages/fides-consent/src/fides-consent.ts
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,12 @@ | ||
/** | ||
* This script defines the browser script entrypoint for Fides consent logic. It is distributed | ||
* as `fides-consent.js` and is accessed from the `Fides` global variable. | ||
*/ | ||
|
||
import { getConsentCookie } from "./lib/cookie"; | ||
|
||
const Fides = { | ||
consent: getConsentCookie(), | ||
}; | ||
|
||
export default Fides; |
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
...nter/packages/fides-consent/src/cookie.ts → .../packages/fides-consent/src/lib/cookie.ts
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
6 changes: 6 additions & 0 deletions
6
clients/privacy-center/packages/fides-consent/src/lib/index.ts
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,6 @@ | ||
/** | ||
* This module defines the library of features are exported as a module. This library | ||
* is then bundled into `fides-consent.js` and imported by Privacy Center app, so that | ||
* both can share the same consent logic. | ||
*/ | ||
export * from "./cookie"; |