Skip to content

Commit 5608718

Browse files
committed
feat: add share by bluesky and linkedin
We try to replace X with bluesky but for 32 we keep both. Because an uneven number will result in bad visual appearence I also added linkedin like we do on the blog. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
1 parent 0733318 commit 5608718

File tree

5 files changed

+35
-4
lines changed

5 files changed

+35
-4
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
LinkedIn is the owner of the LinkedIn trademark and the *[in] Logo (as well as other trademarks, collectively our “Brand”), and protecting our intellectual property is very important to us. A list of our trademarks can be found here. Since LinkedIn is the owner of the Brand, please do not file any applications with any intellectual property office for any marks which incorporate the Brand.
2+
3+
Our Brand may only be used as outlined in these guidelines or with express written permission from an authorized representative of LinkedIn. We may request that you stop the use of our Brand both on and off the LinkedIn platform, if we believe, in our sole discretion, that your use of our Brand violates our Branding Guidelines, our User Agreement, or our Professional Community Policies, hereafter collectively referred to as “LinkedIn Brand and User Agreements.”
4+
5+
You may not use our Brand, including our name, logos, or any elements that are identical to, incorporate, or closely resemble our Brand, in any way that could cause confusion about the source, sponsorship, or affiliation of your product, service, or account. LinkedIn reserves the right to determine, at its sole discretion, whether a use is misleading or otherwise violates the LinkedIn Brand and User Agreements.
6+
7+
Your use must also be consistent with applicable law and align with LinkedIn’s values (which include, but are not limited to, not using the Brand in a misleading, unfair, defamatory, infringing, libelous, disparaging, obscene, or otherwise objectionable manner). Failure to follow these guidelines could result in the suspension or termination of your LinkedIn account and other actions by LinkedIn. We may modify these Guidelines at any time, and your continued use of the Brand Features will constitute your consent to such modifications.
8+
9+
Overall, you should ensure that you do not use our Brand in a manner that might create the impression that your use is sponsored by LinkedIn. Please ensure compliance with these guidelines, make clear that your use is separate from the LinkedIn Brand, and ensure that you do not copy or imitate the LinkedIn platform’s overall look and feel. Any logos or images found elsewhere on the web are not approved for use. Please help us protect our Brand, and present your work in the most appropriate way, by following these guidelines and only using approved Brand assets from this site.

REUSE.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,12 @@ precedence = "aggregate"
6565
SPDX-FileCopyrightText = "X Corp."
6666
SPDX-License-Identifier = "LicenseRef-XTrademarks"
6767

68+
[[annotations]]
69+
path = "img/linkedin.svg"
70+
precedence = "aggregate"
71+
SPDX-FileCopyrightText = "LinkedIn Corporation"
72+
SPDX-License-Identifier = "LicenseRef-LinkedInTrademarks"
73+
6874
[[annotations]]
6975
path = "img/facebook.svg"
7076
precedence = "aggregate"

img/bluesky.svg

Lines changed: 1 addition & 0 deletions
Loading

img/linkedin.svg

Lines changed: 1 addition & 0 deletions
Loading

src/components/pages/SharePage.vue

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ import NcButton from '@nextcloud/vue/components/NcButton'
3737
import NcIconSvgWrapper from '@nextcloud/vue/components/NcIconSvgWrapper'
3838
import InfoCard from '../InfoCard.vue'
3939
import WizardPage from '../WizardPage.vue'
40+
import blueskySvg from '../../../img/bluesky.svg?raw'
4041
import facebookSvg from '../../../img/facebook.svg?raw'
42+
import linkedInSvg from '../../../img/linkedin.svg?raw'
4143
import mastodonSvg from '../../../img/mastodon.svg?raw'
4244
import xSvg from '../../../img/x.svg?raw'
4345
import HubRelease from '../../hub-release.ts'
@@ -47,24 +49,36 @@ const mailSubject = encodeURIComponent(HubRelease.shareSubject ?? t('firstrunwiz
4749
const mailBody = encodeURIComponent(t('firstrunwizard', 'Read more about it on the Nextcloud Hub {version} blog', { version: HubRelease.version }) + '\n' + HubRelease.link)
4850
4951
const shareLinks = [
52+
{
53+
id: 'bluesky',
54+
name: 'Bluesky',
55+
link: `https://bsky.app/intent/compose?text=${encodedLink}`,
56+
icon: blueskySvg,
57+
},
5058
{
5159
id: 'facebook',
5260
name: 'Facebook',
5361
link: `https://www.facebook.com/sharer/sharer.php?u=${encodedLink}`,
5462
icon: facebookSvg,
5563
},
5664
{
57-
id: 'x',
58-
name: 'X',
59-
link: `https://x.com/intent/post?url=${encodedLink}&via=Nextclouders&text=${encodeURIComponent(HubRelease.shareSubject ?? '')}`,
60-
icon: xSvg,
65+
id: 'linkedin',
66+
name: 'LinkedIn',
67+
link: `https://www.linkedin.com/sharing/share-offsite/?url=${encodedLink}`,
68+
icon: linkedInSvg,
6169
},
6270
{
6371
id: 'mastodon',
6472
name: 'Mastodon',
6573
link: `https://mastodon.social/share?text=${encodedLink}`,
6674
icon: mastodonSvg,
6775
},
76+
{
77+
id: 'x',
78+
name: 'X',
79+
link: `https://x.com/intent/post?url=${encodedLink}&via=Nextclouders&text=${encodeURIComponent(HubRelease.shareSubject ?? '')}`,
80+
icon: xSvg,
81+
},
6882
{
6983
id: 'email',
7084
name: 'EMail',

0 commit comments

Comments
 (0)