Skip to content

Commit 6f27e69

Browse files
committed
Merge branch 'release/2.2.2'
2 parents a19f750 + a47f910 commit 6f27e69

28 files changed

+21604
-5193
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
<!--
12
Please check:
23
34
- [ ] Your pull request has a meaningful title.
45
- [ ] The description explains the changes proposed by the pull request and why you believe they are necessary.
56
- [ ] Relevant issues and pull requests are mentioned.
67
- [ ] The pull request contains documentation in README.md/README-de.md if necessary.
78
- [ ] You did not include any build artifacts.
8-
9-
Delete this list before submitting. Pull requests containing the list or failing to check all points will be rejected.
9+
-->

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ env:
1414
global:
1515
- BASE_NAME=shariff-plus-$TRAVIS_TAG
1616

17+
cache:
18+
directories:
19+
- node_modules
20+
1721
script:
1822
- npm run test
1923

@@ -35,7 +39,7 @@ deploy:
3539
- provider: npm
3640
email: richard.fath@t-online.de
3741
api_key:
38-
secure: "T1G1Qoi4TT7opqhDwXiP17m21zVJJuTOU3/JkUGbN5gbaM9fW/Hil8yQpHE5CHLtkA7W8I+NMG3vaL6+Mp9cqoO1tP1THppR19bP7FR9r7t1Oi+9NHNrQk8G1oZaOeAHYdD3BPUT58f1VkwwEb/QLlzLV4IUwZjdHg4r7wTjc9tDRphfm3wbVKIo9A3+L6DpTiO0sAT4xeQsKKSvdwpOlM+tt/ruifr7slSmuq9kpmjwYLMxxi0xW0sDkTSDqXcdfITiWaQ+x/2D/0yLkSlyh3J+BUruB91V5tGSZv5LzSBv9nPVU1sZzmHYwYfAPjae3d26QGFPjPpsE7E8uAaobgACNKoqlACu0IvusfTBBB46D9l/eU3DTefVBMmxaV7v+nEAuNVWdQj2rLOmwLXuOB4p9bUhEQlP/vy5PrmN0VoWlAzebuGyfUQp0CcNRbeQ2DCgXGIBXXBqq452O2jcN38FYQ/uszl8Rts4jDluHlFHk7evkcHuG7vu2mDxol/L6L34nHCSDD/u6p59XTgvqKA0IGzmYXI53WPmb4wIZ3zULSe2hTEKtfKcM5K1QgojqapVo6Zf8EwPWkfm0Ox5PXvk2q5HFESWDhFCU3mVOZ884YSqIm8NE19jGUCrj6aHPA/wr1jNAiRIcdVrdIYKcp/Vv6j5EVyv4RvPt+OOUBE="
42+
secure: "GT4YyWJ3/FwdkeRsy52o32GyvKUYTy1TSWKXLTBrhskZ/eNSzwz+VrDJzY+oKyb4+IWw1GOJT7jXVME5UVOH72VhVCVWnbRQL4bIJQun2SjkcEeUBHDgIvtNHD5aDbFWfM5in8Upywqw1ic5QkkzlHoKChaud6p3ZGGB/7euxfojjFPN8l2mqcQi4anels0n2y2mNFo9uzTSRHAXnB8JzPs7KVRcTZsI9Vv7WXidkeOAblPUaxqMiGpYwbEcc8OOLC6f4/HLameoa10oOZWEXNqC2OYabPd39zZS43LuM1RBYXk4b58eJdG/REyg+uXx+a7FmVk7kmeIkFpBUQjEeAOJDkL9NXfCVSd+1zJYXXonV0xss7ab3dWgiZDguZcsU96zgNQ2+vMprRUm3hJ7tjlh9sXp2R34yvIo2TpfRPgYYg5TqEbQgGaY+mnTPhUcbHSDmh8/ATy+kbIi9uNYk3kY18UaS8OBttIh9bN+SmP0HLeGvYFvtghOAeKBQI64GABDsnWHdf4VLGE7QfHzoc7Zyr7v67acLo82MiPRmCZFo50WSJfkiqro4m8jfjMDf2+4a3ifP8zfCX/8AtzUfPamrNQXZGZkBs3OynttDZYNPTOVwdevqLXIJKTceTMAzT4v7OxjxzXAkr2UYOHxB2RNq/TFxbrtRKngiZx6VFY="
3943
skip_cleanup: true
4044
on:
4145
repo: richard67/shariff-plus

CHANGELOG.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,66 @@
11
# Changelog
22

3+
## v2.2.2, 2021-06-13
4+
5+
Fetched from [heiseonline/shariff](https://github.com/heiseonline/shariff):
6+
7+
- Remove LinkedIn share count from backend.json ([heiseonline#365](https://github.com/heiseonline/shariff/pull/365)).
8+
9+
Fetched open pull requests from [heiseonline/shariff](https://github.com/heiseonline/shariff):
10+
11+
- Updated WhatsApp URL to WhatsApp Web ([heiseonline#381](https://github.com/heiseonline/shariff/pull/381)).
12+
- Updated LinkedIn URL to 2020 Version ([heiseonline#382](https://github.com/heiseonline/shariff/pull/382)).
13+
- Updated max. text length for Twitter ([heiseonline#401](https://github.com/heiseonline/shariff/pull/401)).
14+
15+
Other changes:
16+
17+
- Open WhatsApp link in new tab (see [heiseonline#381 (comment)](https://github.com/heiseonline/shariff/pull/381#issuecomment-761708915))
18+
- Update iframe code for the Facebook Like button ([#21](https://github.com/richard67/shariff-plus/pull/21)).
19+
- Updated dependencies.
20+
21+
## v2.2.1, 2019-05-27
22+
23+
Fetched from [heiseonline/shariff](https://github.com/heiseonline/shariff):
24+
25+
- Added translations for French, Italian, Polish, Russian and Dutch to print service ([heiseonline#362](https://github.com/heiseonline/shariff/pull/362)).
26+
- Updated dependencies.
27+
28+
## v2.2.0, 2019-04-01
29+
30+
- Add allow="encrypted-media" to iframe code of FB Like button in FacebookLike dialog ([#20](https://github.com/richard67/shariff-plus/pull/20)).
31+
32+
Fetched from [heiseonline/shariff](https://github.com/heiseonline/shariff):
33+
34+
- Added buffer service ([heiseonline#361](https://github.com/heiseonline/shariff/pull/361)).
35+
- Updated dependencies.
36+
- Updated Font Awesome to version 5.8.1 ([heiseonline#360](https://github.com/heiseonline/shariff/pull/360)).
37+
- Updated Xing share URL ([heiseonline#354](https://github.com/heiseonline/shariff/pull/354)).
38+
39+
## v2.1.1, 2019-01-29
40+
41+
Fixed deployment to npmjs.com.
42+
43+
## v2.1.0, 2019-01-29
44+
45+
Fetched from [heiseonline/shariff](https://github.com/heiseonline/shariff):
46+
47+
- Improved build process ([heiseonline#326](https://github.com/heiseonline/shariff/pull/326)).
48+
- Fixed creator being appended to title even though data-title has been set ([heiseonline#328](https://github.com/heiseonline/shariff/pull/328)).
49+
- Replaced third party Java backend in readme ([heiseonline#332](https://github.com/heiseonline/shariff/pull/332)).
50+
- Name is diaspora* and not Diaspora ([heiseonline#342](https://github.com/heiseonline/shariff/pull/342)).
51+
- Fixed canonical URL handling ([heiseonline#345](https://github.com/heiseonline/shariff/pull/345)).
52+
- Removed googleplus service ([heiseonline#348](https://github.com/heiseonline/shariff/pull/348)).
53+
- Added Pocket service ([heiseonline#349](https://github.com/heiseonline/shariff/pull/349)).
54+
- Fixed typo in README ([heiseonline#350](https://github.com/heiseonline/shariff/pull/350)).
55+
- Upgraded dependencies.
56+
57+
Note that the Google+ service has been removed due to the shutdown of Google+.
58+
See [https://developers.google.com/+/integrations-shutdown](https://developers.google.com/+/integrations-shutdown)
59+
and [https://developers.google.com/+/web/+1button/](https://developers.google.com/+/web/+1button/):
60+
> Google+ APIs will be shut down on March 7, 2019. This includes Google+ Sign-in. Learn more.
61+
> Google+ integrations for web and mobile apps will also cease to function March 7, 2019. Learn more.
62+
> This will be a progressive shutdown, with intermittent failures starting as early as January 28, 2019.
63+
364
## v2.0.2, 2018-04-17
465

566
Fetched from [heiseonline/shariff](https://github.com/heiseonline/shariff):

README-de.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Um die Privatsphäre ihrer Besucher gegenüber den Social-Media-Netzwerken zu be
44

55
Shariff-Plus ist identisch mit [Shariff von Heise Medien](https://github.com/heiseonline/shariff) plus Erweiterungen wie die Anzeige des Facebook-Buttons "Gefällt mir" in einem Dialog, welche nicht für die Integration in Shariff vorgesehen sind, oder andere Erweiterungen und Korrekturen für Shariff, die (noch) nicht in Shariff integriert wurden.
66

7-
Der Code der offiziellen Buttons von Facebook, Google+ und Twitter überträgt von jedem Besucher kennzeichnende Daten an die Social-Media-Netzwerke. Shariff-Plus erzeugt hingegen Buttons, die mit einem Klick die Dialoge zum Teilen oder Vergeben von "Gefällt mir" bei Facebook anzeigen, die Anzahl der Likes für die aktuelle Seite anzeigen und trotzdem keine unnötigen Daten übertragen.
7+
Der Code der offiziellen Buttons beispielsweise von Facebook überträgt von jedem Besucher kennzeichnende Daten an die Social-Media-Netzwerke. Shariff-Plus erzeugt hingegen Buttons, die mit einem Klick die Dialoge zum Teilen oder Vergeben von "Gefällt mir" bei Facebook anzeigen, die Anzahl der Likes für die aktuelle Seite anzeigen und trotzdem keine unnötigen Daten übertragen.
88

99
**Shariff** `(/ˈʃɛɹɪf/)` ist ein Open-Source Projekt von c't und heise online.
1010

@@ -106,7 +106,7 @@ Unterschiede zu Shariff sind mit (1), (2) usw. markiert und werden unterhalb der
106106
| `data-media-url` | Zu teilendes Bild (pinterest) | `null` |
107107
| `data-orientation` | Anordnung der Buttons. Verfügbar: `horizontal`, `vertical` | `horizontal` |
108108
| `data-referrer-track` | Wenn angegeben, wird dieser String an die geteilte URL angehängt. Mit `null` deaktivieren. | `null` |
109-
| `data-services` (3) | Liste der Services, die verwendet werden sollen. Für die Verwendung im `data`-Attribut muss die Angabe Entity-enkodiert werden. Die Reihenfolge wird berücksichtigt. Beispiel: `data-services="[&quot;facebook&quot;,&quot;googleplus&quot;]"` <br> Verfügbare Dienste: `twitter`, `facebook`, `facebooklike`, `googleplus`, `linkedin`, `pinterest`, `xing`, `whatsapp`, `mail`, `info`, `addthis`, `tumblr`, `flattr`, `diaspora`, `reddit`, `stumbleupon`, `threema`, `weibo`, `tencent-weibo`, `qzone`, `print`, `telegram`, `vk`, `flipboard` | `twitter`, `facebooklike`, `facebook`, `googleplus`, `info` |
109+
| `data-services` (3) | Liste der Services, die verwendet werden sollen. Für die Verwendung im `data`-Attribut muss die Angabe Entity-enkodiert werden. Die Reihenfolge wird berücksichtigt. Beispiel: `data-services="[&quot;facebook&quot;,&quot;twitter&quot;]"` <br> Verfügbare Dienste: `twitter`, `facebook`, `facebooklike`, `linkedin`, `pinterest`, `xing`, `whatsapp`, `mail`, `info`, `addthis`, `tumblr`, `flattr`, `diaspora`, `reddit`, `stumbleupon`, `threema`, `weibo`, `tencent-weibo`, `qzone`, `print`, `telegram`, `vk`, `flipboard`, `pocket`, `buffer` | `twitter`, `facebooklike`, `facebook`, `info` |
110110
| `data-theme` | Farbschema auswählen. Verfügbar: `standard`, `grey` und `white`. | `standard` |
111111
| `data-title` | Titel der zu teilenden Seite. | Entweder `DC.title`/`DC.creator` oder `<title>` |
112112
| `data-twitter-via` | User von dem der Tweet ursprünglich stammt. | `null` |
@@ -147,14 +147,15 @@ Die jeweils aktuell letzten und vorletzten Versionen von Firefox, Google Chrome,
147147
Shariff-Plus unterstützt folgende Social-Sharing-Services:
148148

149149
- AddThis
150+
- buffer
150151
- diaspora*
151152
- facebook
152153
- Flattr
153154
- Flipboard
154-
- Google+
155155
- LinkedIn
156156
- Mail
157157
- Pinterest
158+
- Pocket
158159
- Print
159160
- Qzone
160161
- reddit
@@ -183,10 +184,14 @@ Wenn in den Shariff-Buttons die Share-Counts angezeigt werden sollen, wird das f
183184

184185
Drittanbieter-Backends:
185186

186-
* [shariff-backend-java](http://github.com/headissue/shariff-backend-java)
187+
* [shariff-backend-java](https://github.com/shred/shariff-backend-java)
187188

188189
Die URL, unter der das Backend erreichbar ist, muss im `data`-Attribut `data-backend-url` angegeben werden. Ein Backend unter der URL `http://example.com/my-shariff-backend/` wird in `data-backend-url` so angegeben: `/my-shariff-backend/`. Den Rest erledigt das Skript.
189190

190191
## Drittanbieter-Integrationen
191192

192193
Es gibt noch keine Shariff-Plus-Integrationen in Drittanbieter-Software.
194+
195+
Wenn Sie eine solche Integration erstellt haben, z.B. eine Integration von Shariff-Plus in Ihr Lieblings-CMS, erstellen Sie bitte einen Pull-Request auf GitHub, um Ihre Integration hier aufzulisten, oder senden Sie mir über das Kontaktformular auf meiner Homepage eine E-Mail mit den Details.
196+
197+
Ein guter Startpunkt zum Erstellen einer Shariff-Plus-Integration ist, eine vorhandene Integration von Original Shariff zu nehmen und darin vorhandene Dateien von oder Referenzen auf Shariff durch solche von Shariff-Plus zu ersetzen.

README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Shariff-Plus enables website users to share and like their favorite content with
44

55
It is equal to [Shariff by Heise Medien](https://github.com/heiseonline/shariff) plus extensions like showing the Facebook "Like" button in a dialog, which is not intended to be ever included into Shariff, or other enhancements or corrections which have not been integrated into Shariff (yet).
66

7-
Facebook, Google+ and Twitter supply official code snippets for their buttons which quietly siphon personal data from all page visitors. Shariff-Plus enables visitors to see how popular your page is on Facebook and share your content with others without needless data leaks.
7+
Some social service providers like e.g. Facebook supply official code snippets for their buttons which quietly siphon personal data from all page visitors. Shariff-Plus enables visitors to see how popular your page is on Facebook and share your content with others without needless data leaks.
88

99
**Shariff** `(/ˈʃɛɹɪf/)` is an open-source, low-maintenance, high-privacy solution maintained by German computer magazine c't and heise online.
1010

@@ -106,7 +106,7 @@ Differences to Shariff are marked with (1), (2) and so on and explained below th
106106
| `data-media-url` | Media url to be shared (pinterest) | `null` |
107107
| `data-orientation` | `vertical` will stack the buttons vertically. | `horizontal` |
108108
| `data-referrer-track` | A string that will be appended to the share url. Can be disabled using `null`. | `null` |
109-
| `data-services` (3) | An entity-encoded JSON string containing an array of service names to be enabled. Example: `data-services="[&quot;facebook&quot;,&quot;googleplus&quot;]"` Available service names: `twitter`, `facebook`, `facebooklike`, `googleplus`, `linkedin`, `pinterest`, `xing`, `whatsapp`, `mail`, `info`, `addthis`, `tumblr`, `flattr`, `diaspora`, `reddit`, `stumbleupon`, `threema`, `weibo`, `tencent-weibo`, `qzone`, `print`, `telegram`, `vk`, `flipboard` | `twitter`, `facebooklike`, `facebook`, `googleplus`, `info` |
109+
| `data-services` (3) | An entity-encoded JSON string containing an array of service names to be enabled. Example: `data-services="[&quot;facebook&quot;,&quot;twitter&quot;]"` Available service names: `twitter`, `facebook`, `facebooklike`, `linkedin`, `pinterest`, `xing`, `whatsapp`, `mail`, `info`, `addthis`, `tumblr`, `flattr`, `diaspora`, `reddit`, `stumbleupon`, `threema`, `weibo`, `tencent-weibo`, `qzone`, `print`, `telegram`, `vk`, `flipboard`, `pocket`, `buffer` | `twitter`, `facebooklike`, `facebook`, `info` |
110110
| `data-theme` | We include 3 color schemes, `standard`, `grey` and `white`. | `standard` |
111111
| `data-title` | Title to be used as share text in Twitter/Whatsapp | page's `DC.title`/`DC.creator` or `<title>` |
112112
| `data-twitter-via` | Screen name of the user to attribute the Tweet to | `null` |
@@ -148,14 +148,15 @@ The current and previous major releases of Firefox, Google Chrome, Internet Expl
148148
Shariff-Plus supports the following social sharing services:
149149

150150
- AddThis
151+
- buffer
151152
- diaspora*
152153
- facebook
153154
- Flattr
154155
- Flipboard
155-
- Google+
156156
- LinkedIn
157157
- Mail
158158
- Pinterest
159+
- Pocket
159160
- Print
160161
- Qzone
161162
- reddit
@@ -184,10 +185,14 @@ In order to display share counts with Shariff, you need the following backend:
184185

185186
Third-party backends:
186187

187-
* [shariff-backend-java](http://github.com/headissue/shariff-backend-java)
188+
* [shariff-backend-java](https://github.com/shred/shariff-backend-java)
188189

189190
Once you have one of these backends up and running, insert its URL into the `data-backend-url` attribute. For example, if the backend runs under `http://example.com/my-shariff-backend/`, the `data-backend-url` should be `/my-shariff-backend/`. The script will handle the rest.
190191

191192
## Third-party integrations
192193

193194
There are no third-party integrations of Shariff-Plus yet.
195+
196+
If you have created such an integration, e.g. an integration of Shariff-Plus into your favourite CMS, create a pull request on GitHub to let your integration be listed here, or send me an email with the details using the contact form on my homepage.
197+
198+
A good starting point for creating a third-party integrations of Shariff-Plus is to use an existing third-party integration of the original Shariff and then replace files from or references to Shariff by the same for Shariff-Plus.

demo/backend.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"facebook":906,"linkedin":92,"reddit":12,"stumbleupon":4325,"vk":57,"xing":185}
1+
{"buffer":123,"facebook":906,"reddit":12,"stumbleupon":4325,"vk":57,"xing":185}

demo/custom-initialization.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
// Set custom options in constructor
2121
new Shariff(createDiv(), {
2222
theme: "grey",
23-
services: ["twitter", "googleplus"],
23+
services: ["twitter", "facebook"],
2424
infoUrl: "http://www.example.com"
2525
});
2626
</script>

0 commit comments

Comments
 (0)