aa-bulletin-board 2.0.0__py3-none-any.whl → 2.0.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. aa_bulletin_board/__init__.py +1 -1
  2. aa_bulletin_board/locale/cs/LC_MESSAGES/django.mo +0 -0
  3. aa_bulletin_board/locale/cs/LC_MESSAGES/django.po +178 -0
  4. aa_bulletin_board/locale/de/LC_MESSAGES/django.mo +0 -0
  5. aa_bulletin_board/locale/de/LC_MESSAGES/django.po +2 -2
  6. aa_bulletin_board/locale/django.pot +1 -1
  7. aa_bulletin_board/locale/es/LC_MESSAGES/django.mo +0 -0
  8. aa_bulletin_board/locale/es/LC_MESSAGES/django.po +10 -12
  9. aa_bulletin_board/locale/fr_FR/LC_MESSAGES/django.mo +0 -0
  10. aa_bulletin_board/locale/fr_FR/LC_MESSAGES/django.po +5 -5
  11. aa_bulletin_board/locale/it_IT/LC_MESSAGES/django.mo +0 -0
  12. aa_bulletin_board/locale/it_IT/LC_MESSAGES/django.po +4 -4
  13. aa_bulletin_board/locale/ja/LC_MESSAGES/django.mo +0 -0
  14. aa_bulletin_board/locale/ja/LC_MESSAGES/django.po +4 -4
  15. aa_bulletin_board/locale/ko_KR/LC_MESSAGES/django.mo +0 -0
  16. aa_bulletin_board/locale/ko_KR/LC_MESSAGES/django.po +12 -10
  17. aa_bulletin_board/locale/nl/LC_MESSAGES/django.mo +0 -0
  18. aa_bulletin_board/locale/nl/LC_MESSAGES/django.po +175 -0
  19. aa_bulletin_board/locale/pl_PL/LC_MESSAGES/django.mo +0 -0
  20. aa_bulletin_board/locale/pl_PL/LC_MESSAGES/django.po +178 -0
  21. aa_bulletin_board/locale/ru/LC_MESSAGES/django.mo +0 -0
  22. aa_bulletin_board/locale/ru/LC_MESSAGES/django.po +8 -8
  23. aa_bulletin_board/locale/sk/LC_MESSAGES/django.mo +0 -0
  24. aa_bulletin_board/locale/sk/LC_MESSAGES/django.po +178 -0
  25. aa_bulletin_board/locale/uk/LC_MESSAGES/django.mo +0 -0
  26. aa_bulletin_board/locale/uk/LC_MESSAGES/django.po +8 -8
  27. aa_bulletin_board/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
  28. aa_bulletin_board/locale/zh_Hans/LC_MESSAGES/django.po +34 -31
  29. aa_bulletin_board/static/aa_bulletin_board/css/aa-bulletin-board.css +1 -2
  30. aa_bulletin_board/static/aa_bulletin_board/css/aa-bulletin-board.min.css +1 -1
  31. aa_bulletin_board/static/aa_bulletin_board/css/aa-bulletin-board.min.css.map +1 -1
  32. aa_bulletin_board/static/aa_bulletin_board/javascript/aa-bulletin-board-oembed.js +35 -37
  33. aa_bulletin_board/static/aa_bulletin_board/javascript/aa-bulletin-board-oembed.min.js +1 -1
  34. aa_bulletin_board/static/aa_bulletin_board/javascript/aa-bulletin-board-oembed.min.js.map +1 -1
  35. aa_bulletin_board-2.0.1.dist-info/METADATA +1137 -0
  36. {aa_bulletin_board-2.0.0.dist-info → aa_bulletin_board-2.0.1.dist-info}/RECORD +38 -30
  37. {aa_bulletin_board-2.0.0.dist-info → aa_bulletin_board-2.0.1.dist-info}/WHEEL +1 -1
  38. aa_bulletin_board-2.0.0.dist-info/METADATA +0 -1137
  39. {aa_bulletin_board-2.0.0.dist-info → aa_bulletin_board-2.0.1.dist-info}/licenses/LICENSE +0 -0
@@ -1 +1 @@
1
- {"version":3,"sources":["aa-bulletin-board.css"],"names":[],"mappings":"AAAA,A,WACI,kC,CACI,a,CAGJ,sC,CACI,Y,CACA,c,CAGJ,4C,CACI,U,CAGJ,6D,CACI,mB,CACA,U,CAGJ,oD,CACI,Y,CACA,0D,CACA,kD,CACA,e,CACA,Y,CAGJ,uE,CACI,oB,CAGJ,0C,CACI,yB,CAGJ,sB,CACI,qB,CACA,c,CAOJ,gC,CACI,qC,CACA,W,CAGJ,8B,CACI,mB,CACA,e,CAGJ,mD,CACI,qB,CAGJ,4D,CACI,4B,CACA,mB,CACA,WAIR,A,iCACI,6D,CACI,oBAIR,A,kCACI,6D,CACI,oBAMR,A,WACI,6C,CACI,W,CACA,c,CACA,e,CACA,qB,CACA,iB,CAGJ,oD,CACI,W,CACA,M,CACA,gB,CACA,iB,CACA,K,CACA,U,CAOJ,sC,CACI,0C,CAGJ,uC,CACI,a,CAGJ,iC,CACI,yC,CAEA,qB","file":"aa-bulletin-board.css","sourcesContent":["@media all {\n .aa-bulletin-board-header-addition {\n display: block;\n }\n\n .aa-bulletin-board .cards-equal-height {\n display: flex;\n flex-wrap: wrap;\n }\n\n .aa-bulletin-board .cards-equal-height .card {\n width: 100%;\n }\n\n .aa-bulletin-board .cards-equal-height .card-bulletin-excerpt {\n margin-bottom: 0.5rem;\n width: 100%;\n }\n\n .aa-bulletin-board .card-bulletin-excerpt .card-body {\n height: 200px;\n -webkit-mask-image: linear-gradient(rgb(0 0 0), transparent);\n mask-image: linear-gradient(rgb(0 0 0), transparent);\n overflow: hidden;\n padding: 1rem;\n }\n\n .aa-bulletin-board .card-bulletin-excerpt .card-footer-read-more-button {\n padding: 0.625rem 1rem;\n }\n\n .aa-bulletin-board .django-ckeditor-widget {\n display: initial !important;\n }\n\n .aa-bulletin-board img {\n height: auto !important; /* to override inline style added by CKeditor */\n max-width: 100%;\n }\n}\n\n/* SumoSelect\n------------------------------------------------------------------------------------- */\n@media all {\n .aa-bulletin-board .SumoSelect p {\n border-radius: var(--bs-border-radius);\n height: auto;\n }\n\n .aa-bulletin-board .SumoSelect {\n color: rgb(54 54 54);\n display: inherit;\n }\n\n .aa-bulletin-board .SumoSelect > .CaptionCont > label > i {\n background-image: none;\n }\n\n .aa-bulletin-board .SumoSelect > .CaptionCont > span.placeholder {\n background-color: transparent;\n color: rgb(62 68 76);\n opacity: 1;\n }\n}\n\n@media all and (min-width: 768px) {\n .aa-bulletin-board .cards-equal-height .card-bulletin-excerpt {\n width: calc(100% / 2);\n }\n}\n\n@media all and (min-width: 1200px) {\n .aa-bulletin-board .cards-equal-height .card-bulletin-excerpt {\n width: calc(100% / 3);\n }\n}\n\n/* Fix for oEmbed videos\n------------------------------------------------------------------------------------- */\n@media all {\n .aa-bulletin-board figure.media .oembed-video {\n height: auto;\n max-width: 100%;\n overflow: hidden;\n padding-bottom: 56.25%;\n position: relative;\n }\n\n .aa-bulletin-board figure.media .oembed-video > iframe {\n height: 100%;\n left: 0;\n max-height: 100vh;\n position: absolute;\n top: 0;\n width: 100%;\n }\n}\n\n/* CKEditor 5 (WYSIWYG editor)\n------------------------------------------------------------------------------------- */\n@media all {\n .aa-bulletin-board .ck-rounded-corners {\n --ck-border-radius: var(--bs-border-radius);\n }\n\n .aa-bulletin-board .ck-editor__editable {\n color: initial;\n }\n\n .aa-bulletin-board .ck-word-count {\n color: var(--bs-secondary-color) !important;\n\n --bs-text-opacity: 1;\n }\n}\n"]}
1
+ {"version":3,"sources":["aa-bulletin-board.css"],"names":[],"mappings":"AAAA,A,WACI,kC,CACI,a,CAGJ,sC,CACI,Y,CACA,c,CAGJ,4C,CACI,U,CAGJ,6D,CACI,mB,CACA,U,CAGJ,oD,CACI,Y,CACA,kD,CACA,e,CACA,Y,CAGJ,uE,CACI,oB,CAGJ,0C,CACI,yB,CAGJ,sB,CACI,qB,CACA,c,CAOJ,gC,CACI,qC,CACA,W,CAGJ,8B,CACI,mB,CACA,e,CAGJ,mD,CACI,qB,CAGJ,4D,CACI,4B,CACA,mB,CACA,WAIR,A,iCACI,6D,CACI,oBAIR,A,kCACI,6D,CACI,oBAMR,A,WACI,6C,CACI,W,CACA,c,CACA,e,CACA,qB,CACA,iB,CAGJ,oD,CACI,W,CACA,M,CACA,gB,CACA,iB,CACA,K,CACA,U,CAOJ,sC,CACI,0C,CAGJ,uC,CACI,a,CAGJ,iC,CACI,yC,CAEA,qB","file":"aa-bulletin-board.css","sourcesContent":["@media all {\n .aa-bulletin-board-header-addition {\n display: block;\n }\n\n .aa-bulletin-board .cards-equal-height {\n display: flex;\n flex-wrap: wrap;\n }\n\n .aa-bulletin-board .cards-equal-height .card {\n width: 100%;\n }\n\n .aa-bulletin-board .cards-equal-height .card-bulletin-excerpt {\n margin-bottom: 0.5rem;\n width: 100%;\n }\n\n .aa-bulletin-board .card-bulletin-excerpt .card-body {\n height: 200px;\n mask-image: linear-gradient(rgb(0 0 0), transparent);\n overflow: hidden;\n padding: 1rem;\n }\n\n .aa-bulletin-board .card-bulletin-excerpt .card-footer-read-more-button {\n padding: 0.625rem 1rem;\n }\n\n .aa-bulletin-board .django-ckeditor-widget {\n display: initial !important;\n }\n\n .aa-bulletin-board img {\n height: auto !important; /* to override inline style added by CKEditor */\n max-width: 100%;\n }\n}\n\n/* SumoSelect\n------------------------------------------------------------------------------------- */\n@media all {\n .aa-bulletin-board .SumoSelect p {\n border-radius: var(--bs-border-radius);\n height: auto;\n }\n\n .aa-bulletin-board .SumoSelect {\n color: rgb(54 54 54);\n display: inherit;\n }\n\n .aa-bulletin-board .SumoSelect > .CaptionCont > label > i {\n background-image: none;\n }\n\n .aa-bulletin-board .SumoSelect > .CaptionCont > span.placeholder {\n background-color: transparent;\n color: rgb(62 68 76);\n opacity: 1;\n }\n}\n\n@media all and (min-width: 768px) {\n .aa-bulletin-board .cards-equal-height .card-bulletin-excerpt {\n width: calc(100% / 2);\n }\n}\n\n@media all and (min-width: 1200px) {\n .aa-bulletin-board .cards-equal-height .card-bulletin-excerpt {\n width: calc(100% / 3);\n }\n}\n\n/* Fix for oEmbed videos\n------------------------------------------------------------------------------------- */\n@media all {\n .aa-bulletin-board figure.media .oembed-video {\n height: auto;\n max-width: 100%;\n overflow: hidden;\n padding-bottom: 56.25%;\n position: relative;\n }\n\n .aa-bulletin-board figure.media .oembed-video > iframe {\n height: 100%;\n left: 0;\n max-height: 100vh;\n position: absolute;\n top: 0;\n width: 100%;\n }\n}\n\n/* CKEditor 5 (WYSIWYG editor)\n------------------------------------------------------------------------------------- */\n@media all {\n .aa-bulletin-board .ck-rounded-corners {\n --ck-border-radius: var(--bs-border-radius);\n }\n\n .aa-bulletin-board .ck-editor__editable {\n color: initial;\n }\n\n .aa-bulletin-board .ck-word-count {\n color: var(--bs-secondary-color) !important;\n\n --bs-text-opacity: 1;\n }\n}\n"]}
@@ -1,47 +1,45 @@
1
- /**
2
- * Replace oembed YouTube video with an iframe
3
- *
4
- * CKEditor5 oembed plugin is used to embed YouTube videos, and browsers cannot render the oembed element.
5
- * This function replaces the oembed element with an iframe and is using the YouTube-nocookie domain.
6
- *
7
- * @param {string} url The YouTube video URL
8
- * @returns {`<div class="oembed-video youtube-oembed-video"><iframe src="https://www.youtube-nocookie.com/embed/${string}" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></div>`}
9
- */
10
- const youtubeOembedToIframe = (url) => {
1
+ $(document).ready(() => {
11
2
  'use strict';
12
3
 
13
- let videoId = url.split('v=')[1];
14
- const ampersandPosition = videoId.indexOf('&');
4
+ /**
5
+ * Replace oembed YouTube video with an iframe
6
+ *
7
+ * CKEditor5 oembed plugin is used to embed YouTube videos, and browsers cannot render the oembed element.
8
+ * This function replaces the oembed element with an iframe and is using the YouTube-nocookie domain.
9
+ *
10
+ * @param {string} url The YouTube video URL
11
+ * @returns {`<div class="oembed-video youtube-oembed-video"><iframe src="${string}" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></div>`}
12
+ */
13
+ const youtubeOembedToIframe = (url) => {
14
+ let videoId = url.split('v=')[1];
15
+ const ampersandPosition = videoId.indexOf('&');
16
+ const embedUrl = 'https://www.youtube-nocookie.com/embed/';
17
+
18
+ if (ampersandPosition !== -1) {
19
+ videoId = videoId.substring(0, ampersandPosition);
20
+ }
15
21
 
16
- if (ampersandPosition !== -1) {
17
- videoId = videoId.substring(0, ampersandPosition);
18
- }
22
+ const videoUrl = embedUrl + videoId;
19
23
 
20
- return `<div class="oembed-video youtube-oembed-video"><iframe src="https://www.youtube-nocookie.com/embed/${videoId}" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></div>`;
21
- };
24
+ return `<div class="oembed-video youtube-oembed-video"><iframe src="${videoUrl}" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></div>`;
25
+ };
22
26
 
23
27
 
24
- /**
25
- * Look for oembed elements and replace them with iframes
26
- */
27
- const checkForOembed = () => {
28
- 'use strict';
28
+ /**
29
+ * Look for oembed elements and replace them with iframes
30
+ */
31
+ const checkForOembed = () => {
32
+ // Find all oembed elements and loop through them
33
+ $('.ck-content figure.media oembed').each((index, element) => {
34
+ const source = $(element).attr('url');
29
35
 
30
- // Find all oembed elements and loop through them
31
- $('.ck-content figure.media oembed').each((index, element) => {
32
- const source = $(element).attr('url');
33
-
34
- // Check if the source is a YouTube video
35
- if (source.includes('youtube.com/watch')) {
36
- // Replace the oembed element with an iframe
37
- $(element).replaceWith(youtubeOembedToIframe(source));
38
- }
39
- });
40
- };
41
-
42
-
43
- $(document).ready(() => {
44
- 'use strict';
36
+ // Check if the source is a YouTube video
37
+ if (source.includes('youtube.com/watch')) {
38
+ // Replace the oembed element with an iframe
39
+ $(element).replaceWith(youtubeOembedToIframe(source));
40
+ }
41
+ });
42
+ };
45
43
 
46
44
  // Run the checkForOembed function when the document is ready
47
45
  checkForOembed();
@@ -1,2 +1,2 @@
1
- const youtubeOembedToIframe=e=>{"use strict";let t=e.split("v=")[1];const o=t.indexOf("&");return`<div class="oembed-video youtube-oembed-video"><iframe src="https://www.youtube-nocookie.com/embed/${t=-1!==o?t.substring(0,o):t}" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></div>`},checkForOembed=()=>{"use strict";$(".ck-content figure.media oembed").each((e,t)=>{const o=$(t).attr("url");o.includes("youtube.com/watch")&&$(t).replaceWith(youtubeOembedToIframe(o))})};$(document).ready(()=>{"use strict";checkForOembed()});
1
+ $(document).ready(()=>{"use strict";const c=e=>{let t=e.split("v=")[1];const o=t.indexOf("&"),c="https://www.youtube-nocookie.com/embed/",i=(-1!==o&&(t=t.substring(0,o)),c+t);return`<div class="oembed-video youtube-oembed-video"><iframe src="${i}" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></div>`},e=()=>{$(".ck-content figure.media oembed").each((e,t)=>{const o=$(t).attr("url");o.includes("youtube.com/watch")&&$(t).replaceWith(c(o))})};e()});
2
2
  //# sourceMappingURL=aa-bulletin-board-oembed.min.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["aa-bulletin-board-oembed.js"],"names":["youtubeOembedToIframe","let","videoId","url","split","ampersandPosition","indexOf","substring","checkForOembed","$","each","index","element","source","attr","includes","replaceWith","document","ready"],"mappings":"AASA,MAAMA,sBAAwB,IAC1B,aAEAC,IAAIC,EAAUC,EAAIC,MAAM,IAAI,EAAE,GAC9B,MAAMC,EAAoBH,EAAQI,QAAQ,GAAG,EAM7C,4GAHIJ,EADsB,CAAC,IAAvBG,EACUH,EAAQK,UAAU,EAAGF,CAAiB,EAGyDH,oHACjH,EAMMM,eAAiB,KACnB,aAGAC,EAAE,iCAAiC,EAAEC,KAAK,CAACC,EAAOC,KAC9C,MAAMC,EAASJ,EAAEG,CAAO,EAAEE,KAAK,KAAK,EAGhCD,EAAOE,SAAS,mBAAmB,GAEnCN,EAAEG,CAAO,EAAEI,YAAYhB,sBAAsBa,CAAM,CAAC,CAE5D,CAAC,CACL,EAGAJ,EAAEQ,QAAQ,EAAEC,MAAM,KACd,aAGAV,eAAe,CACnB,CAAC"}
1
+ {"version":3,"sources":["aa-bulletin-board-oembed.js"],"names":["$","document","ready","youtubeOembedToIframe","let","videoId","url","split","ampersandPosition","indexOf","embedUrl","videoUrl","substring","checkForOembed","each","index","element","source","attr","includes","replaceWith"],"mappings":"AAAAA,EAAEC,QAAQ,EAAEC,MAAM,KACd,aAWA,MAAMC,EAAwB,IAC1BC,IAAIC,EAAUC,EAAIC,MAAM,IAAI,EAAE,GAC9B,MAAMC,EAAoBH,EAAQI,QAAQ,GAAG,EACvCC,EAAW,0CAMXC,GAJoB,CAAC,IAAvBH,IACAH,EAAUA,EAAQO,UAAU,EAAGJ,CAAiB,GAGnCE,EAAWL,GAE5B,qEAAsEM,oHAC1E,EAMME,EAAiB,KAEnBb,EAAE,iCAAiC,EAAEc,KAAK,CAACC,EAAOC,KAC9C,MAAMC,EAASjB,EAAEgB,CAAO,EAAEE,KAAK,KAAK,EAGhCD,EAAOE,SAAS,mBAAmB,GAEnCnB,EAAEgB,CAAO,EAAEI,YAAYjB,EAAsBc,CAAM,CAAC,CAE5D,CAAC,CACL,EAGAJ,EAAe,CACnB,CAAC"}