Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated yaml syntax #13

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
zips
cookiebanner.zip
build.txt
14 changes: 7 additions & 7 deletions cookiebanner.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Cookie Banner
version: 1.2.0
version: 1.1.2
description: Enables a cookie banner for websites
author: Josef Slezak
licence: MIT
Expand All @@ -22,13 +22,13 @@ forms:
label: introduction text as markdown - if you add a link to your data privacy or other links without cookiebanner requirement, add the parameter ?nocb=true
javascriptcallback:
type: textarea
label: callback of the banner - carries an object: { req: true/false, fun: true/false, mar: true/false, newConsent: true/false} for the categories required, functional and marekting.True is for "user has consented". The attribute newConsent shows, if the user set the cookies just now or if it already persisted in the storage. You can get it with 'e.detail'. You are already inside the callback, so just write javascript-statement-blocks.
label: "callback of the banner - carries an object: { req: true/false, fun: true/false, mar: true/false, newConsent: true/false} for the categories required, functional and marekting.True is for 'user has consented'. The attribute newConsent shows, if the user set the cookies just now or if it already persisted in the storage. You can get it with 'e.detail'. You are already inside the callback, so just write javascript-statement-blocks."
optoutcallback:
type: textarea
label: callback of the opt-out Event if the site loads with the queryParam ?cboptout=true You are already inside the callback, so just write javascript-statement-blocks.
label: "callback of the opt-out Event if the site loads with the queryParam ?cboptout=true You are already inside the callback, so just write javascript-statement-blocks."
consentversion:
type: text
label: Consent Version - Increment this string number to force a new cookiebanner to show
label: "Consent Version - Increment this string number to force a new cookiebanner to show"
required: true
showmore:
type: text
Expand Down Expand Up @@ -68,7 +68,7 @@ forms:
fields:
reqcookies:
type: textarea
label: Required Storage Elements - you have to use a markdown table as follows: 'cookieName | cookieHost | cookiePersistence' (enter as Number: -2 is localstorage, -1 is Sessionstorage, 0 is a SESSION Cookie, every other number is the persistence in days! You can also type a string value). e.G test|TESTHOST|0 --> SESSION Cookie - e.G test|TESTHOST|1year --> Cookie on TESTHOST with 1 year
label: "Required Storage Elements - you have to use a markdown table as follows: 'cookieName | cookieHost | cookiePersistence' (enter as Number: -2 is localstorage, -1 is Sessionstorage, 0 is a SESSION Cookie, every other number is the persistence in days! You can also type a string value). e.G test|TESTHOST|0 --> SESSION Cookie - e.G test|TESTHOST|1year --> Cookie on TESTHOST with 1 year"
reqheadline:
type: text
label: The headline for this cookie category
Expand All @@ -81,7 +81,7 @@ forms:
fields:
funcookies:
type: textarea
label: Functional Storage Elements - you have to use a markdown table as follows: 'cookieName | cookieHost | cookiePersistence' (enter as Number: -2 is localstorage, -1 is Sessionstorage, 0 is a SESSION Cookie, every other number is the persistence in days! You can also type a string value). e.G test|TESTHOST|0 --> SESSION Cookie - e.G test|TESTHOST|1year --> Cookie on TESTHOST with 1 year
label: "Functional Storage Elements - you have to use a markdown table as follows: 'cookieName | cookieHost | cookiePersistence' (enter as Number: -2 is localstorage, -1 is Sessionstorage, 0 is a SESSION Cookie, every other number is the persistence in days! You can also type a string value). e.G test|TESTHOST|0 --> SESSION Cookie - e.G test|TESTHOST|1year --> Cookie on TESTHOST with 1 year"
funheadline:
type: text
label: The headline for this cookie category
Expand All @@ -94,7 +94,7 @@ forms:
fields:
marcookies:
type: textarea
label: Marketing Storage Elements - you have to use a markdown table as follows: 'cookieName | cookieHost | cookiePersistence' (enter as Number: -2 is localstorage, -1 is Sessionstorage, 0 is a SESSION Cookie, every other number is the persistence in days! You can also type a string value). e.G test|TESTHOST|0 --> SESSION Cookie - e.G test|TESTHOST|1year --> Cookie on TESTHOST with 1 year
label: "Marketing Storage Elements - you have to use a markdown table as follows: 'cookieName | cookieHost | cookiePersistence' (enter as Number: -2 is localstorage, -1 is Sessionstorage, 0 is a SESSION Cookie, every other number is the persistence in days! You can also type a string value). e.G test|TESTHOST|0 --> SESSION Cookie - e.G test|TESTHOST|1year --> Cookie on TESTHOST with 1 year"
marheadline:
type: text
label: The headline for this cookie category
Expand Down