Skip to content

Commit

Permalink
Add bluesky resource type
Browse files Browse the repository at this point in the history
  • Loading branch information
bhousel committed Nov 20, 2024
1 parent 17ac842 commit 5147ff2
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions defaults.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
"description": "Subscribe to our Aparat channel",
"url": "https://aparat.com/{account}"
},
"bluesky": {
"name": "{community} on Bluesky",
"description": "Follow us on Bluesky",
"url": "https://bsky.app/profile/{account}"
},
"discord": {
"name": "{community} Discord",
"description": "Get in touch with other mappers on Discord",
Expand Down
1 change: 1 addition & 0 deletions dist/img/bluesky.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions schema/resource.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"type": "string",
"enum": [
"aparat",
"bluesky",
"discord",
"discourse",
"facebook",
Expand Down
5 changes: 3 additions & 2 deletions scripts/build_icons.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@ import {
} from '@fortawesome/free-solid-svg-icons';

import {
faDiscord, faDiscourse, faLinkedin, faMastodon, faMeetup, faSlack, faSignalMessenger, faTiktok,
faSquareFacebook, faSquareGithub, faSquareGitlab, faSquareInstagram, faSquareReddit,
faBluesky, faDiscord, faDiscourse, faLinkedin, faMastodon, faMeetup, faSlack, faSignalMessenger,
faTiktok, faSquareFacebook, faSquareGithub, faSquareGitlab, faSquareInstagram, faSquareReddit,
faSquareThreads, faSquareXTwitter, faSquareYoutube, faTelegram,
} from '@fortawesome/free-brands-svg-icons';


const toBuild = {
bluesky: faBluesky,
discord: faDiscord,
discourse: faDiscourse,
facebook: faSquareFacebook,
Expand Down
2 changes: 2 additions & 0 deletions scripts/build_index.js
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,8 @@ function convertURLs(item) {

if (item.type === 'aparat') {
matchUrl = url.match(/aparat.com\/([\-A-Za-z0-9_.]+)\/?$/i);
} else if (item.type === 'bluesky') {
matchUrl = url.match(/bsky.app\/profile\/([\-A-Za-z0-9_.]+)\/?$/i);
} else if (item.type === 'discord') {
matchUrl = url.match(/discord.gg\/(\w+)\/?$/i);
} else if (item.type === 'facebook') {
Expand Down

0 comments on commit 5147ff2

Please sign in to comment.