From d0fda4429c4f71cbc308296acf86dec506f32b8b Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Fri, 29 Mar 2024 17:06:04 -0300 Subject: external-links: misc new descriptors & icons Just committing as we might mess with the format a bit and will treat these new entries as pre-existing. --- src/util/external-links.js | 131 +++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 126 insertions(+), 5 deletions(-) (limited to 'src/util') diff --git a/src/util/external-links.js b/src/util/external-links.js index 846302a..4dc9592 100644 --- a/src/util/external-links.js +++ b/src/util/external-links.js @@ -246,6 +246,34 @@ export const externalLinkSpec = [ // Generic domains, sorted alphabetically (by string) + { + match: {domains: ['music.apple.com']}, + platform: 'appleMusic', + icon: 'globe', + }, + + { + match: {domains: ['artstation.com']}, + + platform: 'artstation', + + compact: 'handle', + icon: 'globe', + + handle: {pathname: /^[^/]*/}, + }, + + { + match: {domains: ['.artstation.com']}, + + platform: 'artstation', + + compact: 'handle', + icon: 'globe', + + handle: {domain: /^[^.]*/}, + }, + { match: {domains: ['bc.s3m.us', 'music.solatrus.com']}, @@ -267,6 +295,31 @@ export const externalLinkSpec = [ handle: {domain: /^[^.]*/}, }, + { + match: { + domain: 'bsky.app', + pathname: /^profile\/[^/]+\/?/, + }, + + platform: 'bluesky', + + compact: 'handle', + icon: 'bluesky', + + handle: {pathname: /^profile\/([^/]+?)(?:\.bsky\.social)?\/?$/}, + }, + + { + match: {domain: '.carrd.co'}, + + platform: 'carrd', + + compact: 'handle', + icon: 'carrd', + + handle: {domain: /^[^.]*/}, + }, + { match: {domain: 'music.deconreconstruction.com'}, platform: 'deconreconstruction.music', @@ -285,10 +338,49 @@ export const externalLinkSpec = [ icon: 'deviantart', }, + { + match: {domain: '.itch.io'}, + + platform: 'itch', + + compact: 'handle', + icon: 'itch', + + handle: {domain: /^[^.]*/}, + }, + + { + match: { + domain: 'itch.io', + pathname: /^profile\/.+\/?$/, + }, + + platform: 'itch', + + compact: 'handle', + icon: 'itch', + + handle: {pathname: /^profile\/(.+)\/?$/} + }, + + { + match: { + domain: 'ko-fi.com', + pathname: /^.+\/?/, + }, + + platform: 'kofi', + + compact: 'handle', + icon: 'kofi', + + handle: {pathname: /^(.+)\/?/}, + }, + { match: { domain: 'mspaintadventures.fandom.com', - pathname: /^wiki\/(.+)\/?$/, + pathname: /^wiki\/.+\/?$/, }, platform: 'fandom', @@ -341,6 +433,17 @@ export const externalLinkSpec = [ icon: 'instagram', }, + { + match: {domains: ['tiktok.com']}, + + platform: 'tiktok', + + compact: 'handle', + icon: 'tiktok', + + handle: {pathname: /^@?([a-zA-Z0-9_]*)\/?$/}, + }, + { match: {domains: ['types.pl']}, @@ -351,6 +454,16 @@ export const externalLinkSpec = [ icon: 'mastodon', }, + { + match: {domain: '.neocities.org'}, + + platform: 'neocities', + + normal: 'domain', + compact: 'domain', + icon: 'globe', + }, + { match: {domain: 'newgrounds.com'}, platform: 'newgrounds', @@ -397,6 +510,17 @@ export const externalLinkSpec = [ handle: {domain: /^[^.]*/}, }, + { + match: {domain: 'twitch.tv'}, + + platform: 'twitch', + + compact: 'handle', + icon: 'twitch', + + handle: {pathname: /^(.+)\/?/}, + }, + { match: {domain: 'twitter.com'}, @@ -405,10 +529,7 @@ export const externalLinkSpec = [ compact: 'handle', icon: 'twitter', - handle: { - prefix: '@', - pathname: /^@?([a-zA-Z0-9_]*)\/?$/, - }, + handle: {pathname: /^@?([a-zA-Z0-9_]*)\/?$/}, }, { -- cgit 1.3.0-6-gf8a5