You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.6 KiB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
  1. import * as riot from 'riot';
  2. import TinyConsent from './src/TinyConsent.riot';
  3. import TinyConsentButton from './src/TinyConsentButton.riot';
  4. riot.register('tiny-consent', TinyConsent);
  5. riot.register('tiny-consent-button', TinyConsentButton);
  6. const data = {
  7. cookies: [{
  8. title: 'Matomo',
  9. name: 'matamo_',
  10. id: 'matamo',
  11. content: 'Cookie from Matamo for Website-Analytics. Creates statiscial Data how the User uses this Website',
  12. provider: 'Tentakelfabrik.de',
  13. duration: '1 Year',
  14. privacy_policy: 'https://tentakelfabrik.de/datenschutzerklarung',
  15. handleAgree: function() {
  16. console.log('agree');
  17. },
  18. handleReject: function() {
  19. console.log('reject');
  20. }
  21. },{
  22. title: 'Tiny Consent',
  23. id: 'tiny_consent',
  24. name: 'tiny_consent',
  25. content: 'Saves the Settings of Cookies from Tiny Consent',
  26. provider: 'Owner of this Site',
  27. duration: '1 Year',
  28. essential: true
  29. }, {
  30. title: 'Wordpress',
  31. id: 'wordpress',
  32. name: 'wordpress_',
  33. content: 'Wordpress is using Session Cookie to handle the Login',
  34. provider: 'Owner of this Site',
  35. duration: '1 Year',
  36. essential: true
  37. },{
  38. title: 'Wordpress - WooCommerce',
  39. id: 'wordpress',
  40. name: 'wordpress_',
  41. content: 'WooCommerce is a Shop-Plugin for Wordpress. Cookies will be used for the Cart',
  42. provider: 'Owner of this Site',
  43. duration: '1 Year',
  44. essential: true
  45. }]
  46. };
  47. riot.mount('tiny-consent', data);
  48. riot.mount('tiny-consent-button');