Sfoglia il codice sorgente

Add mailbox.org as sponsor

JC Brand 4 anni fa
parent
commit
a24aa1487e
5 ha cambiato i file con 79 aggiunte e 1 eliminazioni
  1. 7 0
      README.md
  2. 4 0
      docs/source/_templates/sponsors.html
  3. 2 0
      index.html
  4. 65 0
      logo/mailbox.svg
  5. 1 1
      src/headless/plugins/status.js

+ 7 - 0
README.md

@@ -149,3 +149,10 @@ A heartfelt thanks for everyone who has supported this project over the years.
 Many people have contributed testing, bugfixes, features and corrections.
 
 We accept donations via [Patreon](https://www.patreon.com/jcbrand) and [Liberapay](https://liberapay.com/jcbrand).
+
+## Sponsors
+
+![Blokt Crypto & Privacy](https://raw.githubusercontent.com/conversejs/converse.js/541613d1fea8aef364af00180f60e959162e5e4b/logo/blokt.png)
+![Codefirst](https://raw.githubusercontent.com/conversejs/converse.js/541613d1fea8aef364af00180f60e959162e5e4b/logo/codefirst.png)
+![KeyCDN](https://raw.githubusercontent.com/conversejs/converse.js/541613d1fea8aef364af00180f60e959162e5e4b/logo/keycdn.png)
+![Mailbox](https://raw.githubusercontent.com/conversejs/converse.js/logo/mailbox.svg)

+ 4 - 0
docs/source/_templates/sponsors.html

@@ -14,5 +14,9 @@
             <img style="width: 9em" src="/logo/blokt.png" alt="Blokt Crypto & Privacy">
         </a>
     </li>
+    <li><a href="https://mailbox.org/?utm_source=conversejs" target="_blank" rel="noopener">
+            <img style="width: 5em" src="/logo/mailbox.svg" alt="mailbox - Email and cloud storage">
+        </a>
+    </li>
 </ul>
 <span class="centered-text-container patreon-link-container"><a href="https://conversejs.org#sponsors">Become a sponsor</a></span>

+ 2 - 0
index.html

@@ -185,6 +185,7 @@
                         <li>A <a href="https://conversejs.org/docs/html/plugin_development.html" target="_blank" rel="noopener">plugin architecture</a> based on <a href="https://conversejs.github.io/pluggable.js/" target="_blank" rel="noopener">pluggable.js</a></li>
                         <li>Chat statuses (online, busy, away, offline)</li>
                         <li>Desktop notifications</li>
+                        <li>URL Previews (requires server support, for example <a href="https://modules.prosody.im/mod_ogp.html" target="_blank" rel="noopener">mod_ogp</a></li>
                         <li>Multi-user chatrooms (<a href="https://xmpp.org/extensions/xep-0045.html" target="_blank" rel="noopener">XEP 45</a>)</li>
                         <li>Chatroom bookmarks (<a href="https://xmpp.org/extensions/xep-0048.html" target="_blank" rel="noopener">XEP 48</a>)</li>
                         <li>Direct invitations to chat rooms (<a href="https://xmpp.org/extensions/xep-0249.html" target="_blank" rel="noopener">XEP 249</a>)</li>
@@ -248,6 +249,7 @@
                             <li><a href="https://weblate.org?utm_source=conversejs" target="_blank" rel="noopener"><img style="height: 2.6em" src="/logo/weblate-button.svg" alt="Weblate"></a></li>
                             <li><a href="https://www.codefirst.co.uk?utm_source=conversejs" target="_blank" rel="noopener"><img style="width: 12em; padding-top: 0.5em" src="/logo/codefirst.png" alt="Codefirst"></a></li>
                             <li><a href="https://blokt.com?utm_source=conversejs" target="_blank" rel="noopener"><img style="width: 12em" src="/logo/blokt.png" alt="Blokt Crypto & Privacy"></a></li>
+                            <li><a href="https://mailbox.org?utm_source=conversejs" target="_blank" rel="noopener"><img style="width: 6em" src="/logo/mailbox.svg" alt="Mailbox - Email and cloud storage"></a></li>
                         </ul>
                     </div>
 

+ 65 - 0
logo/mailbox.svg

@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 15.0.2, SVG Export Plug-In  -->
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [
+	<!ENTITY ns_flows "http://ns.adobe.com/Flows/1.0/">
+]>
+<svg version="1.1"
+	 xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"
+	 x="0px" y="0px" width="150px" height="94px" viewBox="0 0 150 94" enable-background="new 0 0 150 94" xml:space="preserve">
+<defs>
+</defs>
+<g>
+	<defs>
+		<rect id="SVGID_1_" width="150" height="94.337"/>
+	</defs>
+	<clipPath id="SVGID_2_">
+		<use xlink:href="#SVGID_1_"  overflow="visible"/>
+	</clipPath>
+	<path clip-path="url(#SVGID_2_)" fill="#76BC21" d="M126.282,74.147v13.759c0,0.299,0.148,0.448,0.448,0.448h2.572
+		c0.299,0,0.448-0.149,0.448-0.448V76.003c0.569-0.24,1.556-0.419,2.632-0.419c0.809,0,1.675,0,2.423,0.12
+		c0.3,0.059,0.479-0.09,0.479-0.359V73.19c0-0.238-0.119-0.419-0.388-0.447c-1.138-0.181-2.124-0.24-3.052-0.24
+		c-1.825,0-3.709,0.389-5.233,1.137C126.372,73.729,126.282,73.909,126.282,74.147 M112.913,78.664c0-1.975,1.166-3.05,3.32-3.05
+		c2.123,0,3.319,1.075,3.319,3.05v4.008c0,1.914-1.196,2.931-3.319,2.931c-2.154,0-3.32-1.017-3.32-2.931V78.664z M109.414,78.664
+		v4.008c0,3.709,2.691,6.042,6.819,6.042c4.127,0,6.818-2.333,6.818-6.042v-4.008c0-3.769-2.691-6.161-6.818-6.161
+		C112.105,72.503,109.414,74.896,109.414,78.664 M103.684,85.287v2.588c0,0,0,0.439,0.441,0.439h2.587c0,0,0.441,0,0.441-0.439
+		v-2.588c0,0,0-0.441-0.441-0.441h-2.587C104.125,84.846,103.684,84.846,103.684,85.287 M87.422,87.816
+		c-0.179,0.329-0.059,0.538,0.299,0.538h3.142c0.238,0,0.419-0.09,0.538-0.299l2.99-5.085l2.991,5.085
+		c0.12,0.209,0.299,0.299,0.538,0.299h3.171c0.329,0,0.448-0.209,0.27-0.538l-4.815-7.237l4.546-7.208
+		c0.179-0.271,0.03-0.51-0.299-0.51h-3.021c-0.239,0-0.42,0.12-0.539,0.3l-2.842,4.995l-2.841-4.995c-0.12-0.18-0.299-0.3-0.539-0.3
+		h-3.02c-0.329,0-0.479,0.239-0.299,0.51l4.546,7.208L87.422,87.816z M47.375,67.419v15.493c0,3.647,1.764,5.802,4.995,5.802
+		c0.598,0,1.196-0.03,1.704-0.09c0.24-0.03,0.329-0.239,0.329-0.479v-2.214c0-0.299-0.149-0.448-0.448-0.448
+		c-0.389,0.03-0.778,0.061-1.137,0.061c-1.346,0-1.974-0.778-1.974-2.752V67.419c0-0.299-0.149-0.449-0.448-0.449h-2.573
+		C47.524,66.97,47.375,67.12,47.375,67.419 M40.227,73.281v14.625c0,0.299,0.179,0.448,0.449,0.448h2.602
+		c0.269,0,0.418-0.149,0.418-0.448V73.281c0-0.27-0.149-0.42-0.418-0.42h-2.602C40.406,72.861,40.227,73.012,40.227,73.281
+		 M40.226,67.408v2.588c0,0,0,0.439,0.44,0.439h2.588c0,0,0.441,0,0.441-0.439v-2.588c0,0,0-0.44-0.441-0.44h-2.588
+		C40.666,66.968,40.226,66.968,40.226,67.408 M27.127,83.688c0-1.226,0.897-1.974,3.141-1.974c0.927,0,2.093,0.12,2.901,0.239v3.38
+		c-0.748,0.18-1.885,0.358-2.871,0.358C28.473,85.692,27.127,85.095,27.127,83.688 M23.628,83.719c0,3.739,3.2,4.995,6.67,4.995
+		c2.213,0,4.456-0.419,6.011-0.897c0.21-0.09,0.329-0.27,0.329-0.509v-8.732c0-4.218-2.512-6.072-6.221-6.072
+		c-2.423,0-4.426,0.598-5.862,1.585c-0.15,0.12-0.15,0.27,0,0.509l1.196,1.824c0.15,0.24,0.389,0.269,0.599,0.12
+		c0.957-0.568,2.332-0.957,3.828-0.957c2.213,0,2.991,0.896,2.991,3.021v0.568c-0.898-0.12-2.004-0.239-2.991-0.239
+		C26.35,78.934,23.628,80.459,23.628,83.719 M0,74.208v13.698c0,0.299,0.15,0.448,0.449,0.448h2.572
+		c0.299,0,0.448-0.149,0.448-0.448V75.942c0.599-0.18,1.376-0.328,2.393-0.328c1.944,0,2.961,0.957,2.961,3.14v9.152
+		c0,0.299,0.18,0.448,0.449,0.448h2.572c0.299,0,0.449-0.149,0.449-0.448v-9.093c0-0.896-0.15-1.705-0.389-2.423
+		c0.777-0.508,1.645-0.747,2.632-0.747c2.153,0,3.08,1.166,3.08,3.11v9.152c0,0.299,0.15,0.448,0.419,0.448h2.602
+		c0.269,0,0.419-0.149,0.419-0.448v-9.032c0-4.188-2.692-6.371-6.43-6.371c-1.735,0-3.021,0.449-4.517,1.376
+		c-1.106-0.867-2.572-1.376-4.337-1.376c-1.884,0-3.768,0.449-5.413,1.167C0.09,73.789,0,73.969,0,74.208 M38.766,32.55
+		l24.153-16.543V0H5.841C5.841,0,0,0,0,5.84V6L38.766,32.55z M5.841,56.86h57.078V24.5l-22.62,15.422
+		c-1.609,1.096-3.212-0.007-3.212-0.007L0,14.399v36.622C0,51.021,0,56.86,5.841,56.86 M66.217,82.164
+		c0,2.542-1.286,3.438-3.439,3.438c-1.017,0-2.094-0.119-2.812-0.418V76.36c0.748-0.478,1.735-0.776,2.872-0.776
+		c2.153,0,3.379,0.987,3.379,3.26V82.164z M69.747,82.134v-3.29c0-3.888-2.782-6.341-6.551-6.341c-1.196,0-2.303,0.269-3.23,0.658
+		v-5.742c0-0.299-0.149-0.449-0.448-0.449h-2.572c-0.3,0-0.449,0.15-0.449,0.449v19.71c0,0.269,0.09,0.418,0.359,0.508
+		c1.764,0.658,4.067,1.077,6.011,1.077C66.815,88.714,69.747,86.68,69.747,82.134 M79.287,75.614c2.124,0,3.32,1.075,3.32,3.05
+		v4.008c0,1.914-1.196,2.931-3.32,2.931c-2.153,0-3.32-1.017-3.32-2.931v-4.008C75.967,76.689,77.134,75.614,79.287,75.614
+		 M79.287,72.503c-4.127,0-6.819,2.393-6.819,6.161v4.008c0,3.709,2.692,6.042,6.819,6.042c4.128,0,6.819-2.333,6.819-6.042v-4.008
+		C86.106,74.896,83.415,72.503,79.287,72.503 M136.852,56.86H150V20.354C150,4.709,141.719,0,129.337,0
+		c-6.5,0-12.005,1.437-16.081,3.066C111.163,1.763,107.924,0,100.212,0c-6.853,0-17.63,2.3-21.29,5.095V56.86h12.997V12.372
+		c3.037-0.74,5.101-1.31,8.449-1.285c5.256,0.039,7.397,2.31,7.554,9.618V56.86h12.966l-0.078-36.959
+		c0-5.215-1.013-7.529-1.013-7.529c2.688-0.895,5.255-1.285,9.034-1.285c5.918,0,7.826,2.453,8.059,9.773L136.852,56.86z
+		 M146.531,84.107c-0.569,0.479-1.825,0.748-2.961,0.748c-1.825,0-3.29-0.777-3.29-3.141v-2.811c0-2.572,1.404-3.29,3.469-3.29
+		c0.897,0,2.153,0.118,2.782,0.328V84.107z M150,87.368v-13.19c0-0.239-0.09-0.419-0.329-0.508
+		c-1.615-0.688-3.769-1.167-5.981-1.167c-3.799,0-6.909,1.705-6.909,6.401v2.811c0,4.217,2.931,6.191,6.461,6.191
+		c1.076,0,2.361-0.239,3.318-0.658c0.091,3.021-0.986,4.008-3.229,4.008c-1.555,0-2.931-0.538-4.037-1.346
+		c-0.24-0.18-0.449-0.119-0.599,0.12l-1.257,1.854c-0.148,0.269-0.148,0.449,0.091,0.598c1.585,1.228,3.38,1.855,5.832,1.855
+		C148.086,94.337,150,91.795,150,87.368"/>
+</g>
+</svg>

+ 1 - 1
src/headless/plugins/status.js

@@ -251,7 +251,7 @@ converse.plugins.add('converse-status', {
                  * @param { String } type
                  * @param { String } to
                  * @param { String } [status] - An optional status message
-                 * @param { Array[Element]|Array[Strophe.Builder]|Element|Strophe.Builder } [child_nodes]
+                 * @param { Element[]|Strophe.Builder[]|Element|Strophe.Builder } [child_nodes]
                  *  Nodes(s) to be added as child nodes of the `presence` XML element.
                  */
                 async send (type, to, status, child_nodes) {