From eebb995769c03f4aa64858525fe7ee1d550f021a Mon Sep 17 00:00:00 2001 From: trendschau Date: Tue, 12 Oct 2021 15:22:43 +0200 Subject: [PATCH 1/2] Old change for yaml file --- .gitignore | 3 +++ cookiebanner.yaml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5268013 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +zips +cookiebanner.zip +build.txt \ No newline at end of file diff --git a/cookiebanner.yaml b/cookiebanner.yaml index 76867f8..95dfb28 100644 --- a/cookiebanner.yaml +++ b/cookiebanner.yaml @@ -1,5 +1,5 @@ name: Cookie Banner -version: 1.0.0 +version: 1.0.1 description: Enables a cookie banner for websites author: Josef Slezak licence: MIT From 4b096d35d00fb04e5638879f96d1cfd351587ffd Mon Sep 17 00:00:00 2001 From: trendschau Date: Sun, 29 May 2022 12:05:57 +0200 Subject: [PATCH 2/2] Update yaml syntax --- cookiebanner.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/cookiebanner.yaml b/cookiebanner.yaml index 37cde38..2d7757f 100644 --- a/cookiebanner.yaml +++ b/cookiebanner.yaml @@ -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 @@ -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 @@ -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 @@ -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 @@ -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