-
Notifications
You must be signed in to change notification settings - Fork 618
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
Showing
853 changed files
with
31,774 additions
and
5,105 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"presets": [ | ||
["@babel/preset-env", { | ||
"targets": { | ||
"browsers": ["last 2 versions", "safari >= 7"] | ||
} | ||
}], | ||
"@babel/preset-react", | ||
"@babel/preset-flow" | ||
], | ||
"plugins": [ | ||
["babel-plugin-emotion", { "autoLabel": true }], | ||
["@babel/plugin-proposal-object-rest-spread", {"useBuiltIns": true}], | ||
["@babel/plugin-transform-runtime"], | ||
["@babel/plugin-proposal-class-properties"], | ||
["babel-plugin-named-asset-import", { | ||
"loaderMap": { | ||
"svg": { | ||
"ReactComponent": "@svgr/webpack![path]" | ||
} | ||
} | ||
}] | ||
] | ||
} | ||
|
File renamed without changes.
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,42 @@ | ||
# webiny-integration-cookie-policy | ||
|
||
Renders a simple cookie policy info banner. Powered by Cookie Consent (https://cookieconsent.insites.com/). | ||
|
||
## Installation | ||
`yarn add webiny-integration-cookie policy` | ||
|
||
## Setup | ||
To setup, you must register a set of plugins. For more information on plugins, please visit Webiny documentation. | ||
|
||
#### API | ||
``` | ||
import cookiePolicyPlugins from "webiny-integration-cookie-policy/plugins/api" | ||
import { registerPlugins } from "webiny-plugins"; | ||
registerPlugins(cookiePolicyPlugins); | ||
``` | ||
|
||
Exposes necessary GraphQL fields for updating integration settings. | ||
|
||
|
||
#### Admin | ||
``` | ||
import cookiePolicyPlugins from "webiny-integration-cookie-policy/plugins/admin" | ||
import { registerPlugins } from "webiny-plugins"; | ||
registerPlugins(cookiePolicyPlugins); | ||
``` | ||
|
||
Enables management of cookie policy settings, which can be accessed via Settings section in the main menu. Here you | ||
can edit things like banner position, colors and labels. | ||
|
||
|
||
#### Site | ||
``` | ||
import cookiePolicyPlugins from "webiny-integration-cookie-policy/plugins/render" | ||
import { registerPlugins } from "webiny-plugins"; | ||
registerPlugins(cookiePolicyPlugins); | ||
``` | ||
|
||
Renders cookie policy banner. Use in your public website. |
Empty file.
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,34 @@ | ||
{ | ||
"name": "webiny-integration-cookie-policy", | ||
"version": "0.0.0", | ||
"main": "index.js", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/webiny/webiny-js.git" | ||
}, | ||
"author": "Adrian Smijulj", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@babel/runtime": "^7.0.0", | ||
"react": "^16.4.0", | ||
"react-dom": "^16.4.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.0.0", | ||
"@babel/core": "^7.0.0", | ||
"@babel/plugin-proposal-class-properties": "^7.0.0", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.0.0", | ||
"@babel/plugin-transform-runtime": "^7.0.0", | ||
"@babel/preset-env": "^7.0.0", | ||
"@babel/preset-flow": "^7.0.0", | ||
"@babel/preset-react": "^7.0.0", | ||
"@svgr/webpack": "^2.1.1", | ||
"babel-plugin-module-resolver": "^3.1.1", | ||
"babel-plugin-named-asset-import": "^1.0.0-next.3e165448" | ||
}, | ||
"scripts": { | ||
"build": "babel src -d ${DEST:-build} --source-maps --copy-files", | ||
"flow-copy-source": "flow-copy-source src ${DEST:-build}", | ||
"postbuild": "yarn flow-copy-source" | ||
} | ||
} |
Oops, something went wrong.