sinzmise-cetastories 2.0.0-1737858032327 → 2.0.0-1737858654613

Sign up to get free protection for your applications and to get access to all the features.
Files changed (137) hide show
  1. package/404/index.html +1 -1
  2. package/404.html +1 -1
  3. package/archives/2021/12/index.html +1 -1
  4. package/archives/2021/index.html +1 -1
  5. package/archives/2022/12/index.html +1 -1
  6. package/archives/2022/index.html +1 -1
  7. package/archives/2023/01/index.html +1 -1
  8. package/archives/2023/02/index.html +1 -1
  9. package/archives/2023/03/index.html +1 -1
  10. package/archives/2023/04/index.html +1 -1
  11. package/archives/2023/07/index.html +1 -1
  12. package/archives/2023/08/index.html +1 -1
  13. package/archives/2023/09/index.html +1 -1
  14. package/archives/2023/10/index.html +1 -1
  15. package/archives/2023/11/index.html +1 -1
  16. package/archives/2023/12/index.html +1 -1
  17. package/archives/2023/index.html +1 -1
  18. package/archives/2023/page/2/index.html +1 -1
  19. package/archives/2023/page/3/index.html +1 -1
  20. package/archives/2024/01/index.html +1 -1
  21. package/archives/2024/02/index.html +1 -1
  22. package/archives/2024/03/index.html +1 -1
  23. package/archives/2024/04/index.html +1 -1
  24. package/archives/2024/05/index.html +1 -1
  25. package/archives/2024/06/index.html +1 -1
  26. package/archives/2024/07/index.html +1 -1
  27. package/archives/2024/08/index.html +1 -1
  28. package/archives/2024/09/index.html +1 -1
  29. package/archives/2024/10/index.html +1 -1
  30. package/archives/2024/11/index.html +1 -1
  31. package/archives/2024/12/index.html +1 -1
  32. package/archives/2024/index.html +1 -1
  33. package/archives/2024/page/2/index.html +1 -1
  34. package/archives/2024/page/3/index.html +1 -1
  35. package/archives/2025/01/index.html +1 -1
  36. package/archives/2025/index.html +1 -1
  37. package/archives/index.html +1 -1
  38. package/archives/page/2/index.html +1 -1
  39. package/archives/page/3/index.html +1 -1
  40. package/archives/page/4/index.html +1 -1
  41. package/archives/page/5/index.html +1 -1
  42. package/atom.xml +21 -21
  43. package/categories/index.html +1 -1
  44. package/categories//344/270/252/344/272/272/345/260/217/350/256/260/index.html +1 -1
  45. package/categories//344/270/252/344/272/272/345/260/217/350/256/260/page/2/index.html +1 -1
  46. package/categories//344/270/252/344/272/272/345/260/217/350/256/260/page/3/index.html +1 -1
  47. package/categories//346/255/214/346/233/262/346/224/266/351/233/206/index.html +1 -1
  48. package/categories//346/270/270/346/210/217/347/233/270/345/205/263/index.html +1 -1
  49. package/categories//347/253/231/347/202/271/346/212/230/350/205/276/index.html +1 -1
  50. package/categories//347/253/231/347/202/271/346/212/230/350/205/276/page/2/index.html +1 -1
  51. package/categories//351/241/271/347/233/256/346/212/230/350/205/276/index.html +1 -1
  52. package/charts/index.html +1 -1
  53. package/comments/index.html +1 -1
  54. package/fcircle/index.html +1 -1
  55. package/games/index.html +1 -1
  56. package/games/riddle/esc2-e.html +1 -1
  57. package/games/riddle/esc3-e.html +1 -1
  58. package/games/riddle/esc4-e.html +1 -1
  59. package/google8073542809160a67.html +1 -1
  60. package/index.html +1 -1
  61. package/js/webmention/webmention.js +53 -18
  62. package/link/index.html +1 -1
  63. package/load.html +1 -1
  64. package/music/index.html +1 -1
  65. package/package.json +1 -1
  66. package/page/2/index.html +1 -1
  67. package/page/3/index.html +1 -1
  68. package/page/4/index.html +1 -1
  69. package/page/5/index.html +1 -1
  70. package/posts/10021/index.html +1 -1
  71. package/posts/10045/index.html +1 -1
  72. package/posts/10733/index.html +1 -1
  73. package/posts/10996/index.html +1 -1
  74. package/posts/12779/index.html +1 -1
  75. package/posts/13624/index.html +1 -1
  76. package/posts/15688/index.html +1 -1
  77. package/posts/15748/index.html +1 -1
  78. package/posts/15799/index.html +1 -1
  79. package/posts/15842/index.html +1 -1
  80. package/posts/16107/index.html +1 -1
  81. package/posts/18063/index.html +1 -1
  82. package/posts/20412/index.html +1 -1
  83. package/posts/21375/index.html +1 -1
  84. package/posts/22945/index.html +1 -1
  85. package/posts/23021/index.html +1 -1
  86. package/posts/23226/index.html +1 -1
  87. package/posts/27531/index.html +1 -1
  88. package/posts/27762/index.html +1 -1
  89. package/posts/28536/index.html +1 -1
  90. package/posts/28733/index.html +1 -1
  91. package/posts/29196/index.html +1 -1
  92. package/posts/38917/index.html +1 -1
  93. package/posts/38964/index.html +1 -1
  94. package/posts/42487/index.html +1 -1
  95. package/posts/42580/index.html +1 -1
  96. package/posts/45875/index.html +1 -1
  97. package/posts/46640/index.html +1 -1
  98. package/posts/48762/index.html +1 -1
  99. package/posts/50710/index.html +1 -1
  100. package/posts/52677/index.html +1 -1
  101. package/posts/53662/index.html +1 -1
  102. package/posts/54386/index.html +1 -1
  103. package/posts/54481/index.html +1 -1
  104. package/posts/54787/index.html +1 -1
  105. package/posts/56467/index.html +1 -1
  106. package/posts/57692/index.html +1 -1
  107. package/posts/58203/index.html +1 -1
  108. package/posts/60486/index.html +1 -1
  109. package/posts/61417/index.html +1 -1
  110. package/posts/61712/index.html +1 -1
  111. package/posts/61713/index.html +1 -1
  112. package/posts/646/index.html +1 -1
  113. package/posts/64856/index.html +1 -1
  114. package/posts/64935/index.html +1 -1
  115. package/posts/65382/index.html +1 -1
  116. package/seas/index.html +1 -1
  117. package/sw.js +1 -1
  118. package/tags/Flash/347/233/270/345/205/263/index.html +1 -1
  119. package/tags/Steam/346/270/270/346/210/217/index.html +1 -1
  120. package/tags/Windows/350/275/257/344/273/266/index.html +1 -1
  121. package/tags/index.html +1 -1
  122. package/tags//344/270/252/344/272/272/345/260/217/350/256/260/index.html +1 -1
  123. package/tags//344/270/252/344/272/272/345/260/217/350/256/260/page/2/index.html +1 -1
  124. package/tags//344/270/252/344/272/272/345/260/217/350/256/260/page/3/index.html +1 -1
  125. package/tags//345/205/266/345/256/203/346/270/270/346/210/217/index.html +1 -1
  126. package/tags//345/212/240/350/275/275/345/212/250/347/224/273/index.html +1 -1
  127. package/tags//346/202/254/346/265/256/345/256/240/347/211/251-/347/234/213/346/235/277/345/250/230/index.html +1 -1
  128. package/tags//346/255/214/346/233/262/346/224/266/351/233/206/index.html +1 -1
  129. package/tags//346/270/270/346/210/217/347/233/270/345/205/263/index.html +1 -1
  130. package/tags//347/253/231/347/202/271/345/272/225/351/203/250/351/255/224/346/224/271/index.html +1 -1
  131. package/tags//347/253/231/347/202/271/346/212/230/350/205/276/index.html +1 -1
  132. package/tags//347/253/231/347/202/271/346/212/230/350/205/276/page/2/index.html +1 -1
  133. package/tags//350/207/252/345/273/272/351/203/250/347/275/262/index.html +1 -1
  134. package/tags//351/241/265/351/235/242/351/255/224/346/224/271/index.html +1 -1
  135. package/tags//351/241/271/347/233/256/346/212/230/350/205/276/index.html +1 -1
  136. package/update/index.html +1 -1
  137. package/js/webmention/webmention-timeline.js +0 -53
@@ -1,23 +1,58 @@
1
+ function webmention() {
2
+ const url = window.location.href;
3
+ const webmentionBaseUrl = "https://webmention.io"
4
+ var html = '';
5
+ fetch(webmentionBaseUrl + "/api/mentions.jf2?target=" + encodeURIComponent(url))
6
+ .then(function (response) {
7
+ console.log('sucess ' + webmentionBaseUrl + "/api/mentions.jf2?target=" + url);
8
+ return response.json();
9
+ })
10
+ .then(function (data) {
11
+
12
+ const distinctMentions = [
13
+ ...new Map(data.children.map((item) => [item.author.url, item])).values()].sort((a, b) => new Date(a['wm-received']) - new Date(b['wm-received']));
1
14
 
15
+ html += `<div><p>`;
2
16
 
3
- window.WebMentionLoadContext = function () {
4
- if (document.querySelector('.webmention-timeline')) {
5
- (function (webmentionContext) {
17
+ if (distinctMentions.length > 0) {
18
+ html += GLOBAL_CONFIG.lang.webmention.likes + `</p>`;
19
+ }
20
+ html += `<div className="webmention-avatars">`;
21
+ distinctMentions.forEach(function (reply) {
22
+ html += `<a class="avatar-wrapper" href=${reply.author.url} key=${reply.author.name}><image class="wm-avatar" loading="lazy" src=${reply.author.photo != "" ? reply.author.photo: "/img/avatar.png"} data-nimg="fill" sizes="(max-width: 768px) 100vw,(max-width: 1200px) 50vw, 33vw"/></a>`;
23
+ });
24
+ html += `</div>`;
25
+
26
+ const replies = distinctMentions.filter(
27
+ (mention) => ('in-reply-to' in mention || 'mention-of' in mention)&& 'content' in mention
28
+ );
29
+ if (replies && replies.length) {
30
+ html += `<div class="webmention-replies">`;
31
+ html += `</br><h3>` + GLOBAL_CONFIG.lang.webmention.comment + `</h3>`;
32
+ html += `<ul class="replies">`;
33
+ replies.forEach(function (reply){
34
+ html += `<li class="reply" key=${reply["wm-id"]}>`;
35
+ html += `<div>`;
36
+ html += `<a class="avatar-wrapper" href=${reply.author.url} key=${reply.author.name}><image class="wm-avatar" loading="lazy" src=${reply.author.photo != "" ? reply.author.photo: "/img/avatar.png"} alt=${reply.author.name} data-nimg="fill" sizes="(max-width: 768px) 100vw,(max-width: 1200px) 50vw, 33vw"/></a>`;
37
+ html += `</div>`;
38
+ html += `<div class="text">`;
39
+ html += `<p class="reply-author-name"><a href=${reply.url} target="_blank">${reply.author.name}</a></p>`;
40
+ html += `<p class="reply-content">${reply.content.text.slice(0, 200)}</p>`;
41
+ html += `</div>`;
42
+ html += `</li>`;
6
43
 
7
- const url = window.location.href;
8
- const webmentionBaseUrl = "https://webmention.io"
9
- // const url = "https://www.owenyoung.com/en/blog/indieweb/"
10
-
11
- webmentionContext.webmentionsPromise = fetch(webmentionBaseUrl + "/api/mentions.jf2?target=" + encodeURIComponent(url))
12
- .then(function (response) {
13
- console.log('sucess ' + webmentionBaseUrl + "/api/mentions.jf2?target=" + url);
14
- return response.json();
15
- })
16
- .catch(function (ex) {
17
- console.error('fetch webmention error' + ex);
18
44
  });
19
- })(window.webmentionContext);
20
- };
45
+ html += `</ul>`;
46
+ html += `</div>`;
47
+ }
48
+ })
49
+ .catch(function (ex) {
50
+ console.error('fetch webmention error' + ex);
51
+ });
52
+ document.querySelector('div.webmention-timeline').innerHTML = html;
53
+ }
54
+ window.WebMentionLoad = function () {
55
+ if (document.querySelector('.webmention-timeline')) webmention();
21
56
  };
22
- window.addEventListener("load", WebMentionLoadContext)
23
- document.addEventListener("pjax:complete", WebMentionLoadContext)
57
+ window.addEventListener("load", WebMentionLoad)
58
+ document.addEventListener("pjax:complete", WebMentionLoad)