Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve shareText and title #439

Open
wants to merge 32 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
c494b80
Update buffer.js
InfoLibre May 12, 2024
e3182ea
Update clipboard.js
InfoLibre May 12, 2024
7a64e91
Update diaspora.js
InfoLibre May 12, 2024
4157460
Update buffer.js
InfoLibre May 12, 2024
f9a95fc
Update facebook.js
InfoLibre May 12, 2024
d78c167
Update fediverse.js
InfoLibre May 12, 2024
4be5f30
Delete src/js/services/flattr.js
InfoLibre May 12, 2024
926c232
Update flipboard.js
InfoLibre May 12, 2024
cb34b8f
Update index.js
InfoLibre May 12, 2024
a5207ed
Create mastodon.js
InfoLibre May 12, 2024
3e387ed
Update index.js
InfoLibre May 12, 2024
62b58e2
Delete src/js/services/fediverse.js
InfoLibre May 12, 2024
c50ee3a
Update linkedin.js
InfoLibre May 12, 2024
be5aed2
Update mail.js
InfoLibre May 12, 2024
dd253cc
Update pinterest.js
InfoLibre May 12, 2024
9da54b0
Update pocket.js
InfoLibre May 12, 2024
cfd4538
Update print.js
InfoLibre May 12, 2024
97524d8
Update qzone.js
InfoLibre May 12, 2024
e4f287b
Update reddit.js
InfoLibre May 12, 2024
4c418cf
Update index.js
InfoLibre May 12, 2024
08aab95
Delete src/js/services/stumbleupon.js
InfoLibre May 12, 2024
3947b57
Update telegram.js
InfoLibre May 12, 2024
9d3bcf7
Delete src/js/services/tencent-weibo.js
InfoLibre May 12, 2024
83c1581
Update index.js
InfoLibre May 12, 2024
469f9b9
Update threema.js
InfoLibre May 12, 2024
75a666f
Update tumblr.js
InfoLibre May 12, 2024
9d4e4d9
Update twitter.js
InfoLibre May 12, 2024
abe7291
Update vk.js
InfoLibre May 12, 2024
1b0fd7b
Update weibo.js
InfoLibre May 12, 2024
4da098c
Update whatsapp.js
InfoLibre May 12, 2024
7eeab24
Update xing.js
InfoLibre May 12, 2024
2dd6284
Merge branch 'develop' into develop
InfoLibre Dec 15, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 24 additions & 48 deletions src/js/services/buffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,61 +6,37 @@ module.exports = function (shariff) {
return {
popup: true,
shareText: {
bg: 'cподеляне',
cs: 'sdílet',
da: 'del',
de: 'teilen',
en: 'share',
es: 'compartir',
fi: 'Jaa',
fr: 'partager',
hr: 'podijelite',
hu: 'megosztás',
it: 'condividi',
ja: '共有',
ko: '공유하기',
nl: 'delen',
no: 'del',
pl: 'udostępnij',
pt: 'compartilhar',
ro: 'partajează',
ru: 'поделиться',
sk: 'zdieľať',
sl: 'deli',
sr: 'podeli',
sv: 'dela',
tr: 'paylaş',
zh: '分享',
en: 'Buffer',
},
name: 'buffer',
faPrefix: 'fab',
faName: 'fa-buffer',
title: {
bg: 'Сподели в buffer',
cs: 'Sdílet na buffer',
da: 'Del på buffer',
de: 'Bei buffer teilen',
en: 'Share on buffer',
es: 'Compartir en buffer',
bg: 'Сподели в Buffer',
cs: 'Sdílet na Buffer',
da: 'Del på Buffer',
de: 'Bei Buffer teilen',
en: 'Plan on Buffer',
es: 'Compartir en Buffer',
fi: 'Jaa bufferissä',
fr: 'Partager sur buffer',
hr: 'Podijelite na buffer',
fr: 'Planifier sur Buffer',
hr: 'Podijelite na Buffer',
hu: 'Megosztás bufferen',
it: 'Condividi su buffer',
ja: 'buffer上で共有',
ko: 'buffer에서 공유하기',
nl: 'Delen op buffer',
no: 'Del på buffer',
pl: 'Udostępnij przez buffer',
pt: 'Compartilhar no buffer',
ro: 'Partajează pe buffer',
ru: 'Поделиться на buffer',
sk: 'Zdieľať na buffer',
sl: 'Deli na buffer',
sr: 'Podeli na buffer',
sv: 'Dela på buffer',
tr: "buffer'ta paylaş",
zh: '在buffer上分享',
it: 'Condividi su Buffer',
ja: 'Buffer上で共有',
ko: 'Buffer에서 공유하기',
nl: 'Delen op Buffer',
no: 'Del på Buffer',
pl: 'Udostępnij przez Buffer',
pt: 'Compartilhar no Buffer',
ro: 'Partajează pe Buffer',
ru: 'Поделиться на Buffer',
sk: 'Zdieľať na Buffer',
sl: 'Deli na Buffer',
sr: 'Podeli na Buffer',
sv: 'Dela på Buffer',
tr: "Buffer'ta paylaş",
zh: '在Buffer上分享',
},
shareUrl:
'https://buffer.com/add?text=' +
Expand Down
4 changes: 2 additions & 2 deletions src/js/services/clipboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module.exports = function (shariff) {
en: 'clipboard',
es: '',
fi: '',
fr: '',
fr: 'presse-papiers',
hr: '',
hu: '',
it: '',
Expand Down Expand Up @@ -52,7 +52,7 @@ module.exports = function (shariff) {
en: 'Copy to clipboard',
es: '',
fi: '',
fr: '',
fr: 'Copier dans le presse-papiers',
hr: '',
hu: '',
it: '',
Expand Down
26 changes: 1 addition & 25 deletions src/js/services/diaspora.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,31 +12,7 @@ module.exports = function (shariff) {
return {
popup: true,
shareText: {
bg: 'cподеляне',
cs: 'sdílet',
da: 'del',
de: 'teilen',
en: 'share',
es: 'compartir',
fi: 'Jaa',
fr: 'partager',
hr: 'podijelite',
hu: 'megosztás',
it: 'condividi',
ja: '共有',
ko: '공유하기',
nl: 'delen',
no: 'del',
pl: 'udostępnij',
pt: 'compartilhar',
ro: 'partajează',
ru: 'поделиться',
sk: 'zdieľať',
sl: 'deli',
sr: 'podeli',
sv: 'dela',
tr: 'paylaş',
zh: '分享',
en: 'diaspora*',
},
name: 'diaspora',
faPrefix: 'fas',
Expand Down
26 changes: 1 addition & 25 deletions src/js/services/facebook.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,7 @@ module.exports = function (shariff) {
return {
popup: true,
shareText: {
bg: 'cподеляне',
cs: 'sdílet',
da: 'del',
de: 'teilen',
en: 'share',
es: 'compartir',
fi: 'Jaa',
fr: 'partager',
hr: 'podijelite',
hu: 'megosztás',
it: 'condividi',
ja: '共有',
ko: '공유하기',
nl: 'delen',
no: 'del',
pl: 'udostępnij',
pt: 'compartilhar',
ro: 'partajează',
ru: 'поделиться',
sk: 'zdieľať',
sl: 'deli',
sr: 'podeli',
sv: 'dela',
tr: 'paylaş',
zh: '分享',
en: 'Facebook',
},
name: 'facebook',
faPrefix: 'fab',
Expand Down
67 changes: 0 additions & 67 deletions src/js/services/fediverse.js

This file was deleted.

31 changes: 0 additions & 31 deletions src/js/services/flattr.js

This file was deleted.

2 changes: 1 addition & 1 deletion src/js/services/flipboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = function (shariff) {
var title = encodeURIComponent(shariff.getTitle())
return {
popup: true,
shareText: 'flip it',
shareText: 'Flipboard',
name: 'flipboard',
faPrefix: 'fab',
faName: 'fa-flipboard',
Expand Down
5 changes: 1 addition & 4 deletions src/js/services/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,17 @@ module.exports = {
clipboard: require('./clipboard'),
diaspora: require('./diaspora'),
facebook: require('./facebook'),
fediverse: require('./fediverse'),
flattr: require('./flattr'),
flipboard: require('./flipboard'),
info: require('./info'),
linkedin: require('./linkedin'),
mail: require('./mail'),
mastodon: require('./mastodon'),
pinterest: require('./pinterest'),
pocket: require('./pocket'),
print: require('./print'),
qzone: require('./qzone'),
reddit: require('./reddit'),
stumbleupon: require('./stumbleupon'),
telegram: require('./telegram'),
tencent: require('./tencent-weibo'),
threema: require('./threema'),
tumblr: require('./tumblr'),
twitter: require('./twitter'),
Expand Down
26 changes: 1 addition & 25 deletions src/js/services/linkedin.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,7 @@ module.exports = function (shariff) {
return {
popup: true,
shareText: {
bg: 'cподеляне',
cs: 'sdílet',
da: 'del',
de: 'mitteilen',
en: 'share',
es: 'compartir',
fi: 'Jaa',
fr: 'partager',
hr: 'podijelite',
hu: 'megosztás',
it: 'condividi',
ja: 'シェア',
ko: '공유하기',
nl: 'delen',
no: 'del',
pl: 'udostępnij',
pt: 'compartilhar',
ro: 'distribuiți',
ru: 'поделиться',
sk: 'zdieľať',
sl: 'deli',
sr: 'podeli',
sv: 'dela',
tr: 'paylaş',
zh: '分享',
en: 'LinkedIn'',
},
name: 'linkedin',
faPrefix: 'fab',
Expand Down
3 changes: 2 additions & 1 deletion src/js/services/mail.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ module.exports = function (shariff) {
popup: false,
shareText: {
en: 'mail',
fr: 'messagerie électronique',
zh: '分享',
},
name: 'mail',
Expand All @@ -33,7 +34,7 @@ module.exports = function (shariff) {
en: 'Send by email',
es: 'Enviar por email',
fi: 'Lähetä sähköpostitse',
fr: 'Envoyer par courriel',
fr: 'Envoyer par messagerie électronique',
hr: 'Pošaljite emailom',
hu: 'Elküldés e-mailben',
it: 'Inviare via email',
Expand Down
43 changes: 43 additions & 0 deletions src/js/services/mastodon.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
'use strict'

module.exports = function (shariff) {
var url = encodeURIComponent(shariff.getURL())

return {
popup: false,
shareText: {
en: 'Mastodon',
},
name: 'mastodon',
faPrefix: 'mas',
faName: 'fa-lock',
title: {
bg: 'Сподели в Mastodon',
cs: 'Sdílet na Mastodon',
da: 'Del på Mastodon',
de: 'Im Mastodon teilen',
en: 'Publish on Mastodon',
es: 'Compartir en Mastodon',
fi: 'Jaa Fediverseissä',
fr: 'Publier sur Mastodon',
hr: 'Podijelite na Mastodon',
hu: 'Megosztás Fediverseen',
it: 'Condividi su Mastodon',
ja: 'Mastodon上で共有',
ko: 'Mastodon에서 공유하기',
nl: 'Delen op Mastodon',
no: 'Del på Mastodon',
pl: 'Udostępnij przez Mastodon',
pt: 'Compartilhar no Mastodon',
ro: 'Partajează pe Mastodon',
ru: 'Поделиться на Mastodon',
sk: 'Zdieľať na Mastodon',
sl: 'Deli na Mastodon',
sr: 'Podeli na Mastodon-u',
sv: 'Dela på Mastodon',
tr: "Mastodon'ta paylaş",
zh: '在Mastodon上分享',
},
shareUrl: 'web+mastodon://share?text=' + url + shariff.getReferrerTrack(),
}
}
Loading