diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-03-29 17:06:04 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-03-29 20:10:12 -0300 |
commit | d0fda4429c4f71cbc308296acf86dec506f32b8b (patch) | |
tree | e27adebc7e499bbf0c35ada1d935bd06674cfda4 /src/util | |
parent | dbc75094b6ad03990998b349aee1d09b1b647cb0 (diff) |
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.
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/external-links.js | 131 |
1 files changed, 126 insertions, 5 deletions
diff --git a/src/util/external-links.js b/src/util/external-links.js index 846302af..4dc95921 100644 --- a/src/util/external-links.js +++ b/src/util/external-links.js @@ -247,6 +247,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']}, platform: 'bandcamp', @@ -268,6 +296,31 @@ export const externalLinkSpec = [ }, { + 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', icon: 'globe', @@ -286,9 +339,48 @@ export const externalLinkSpec = [ }, { + 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', @@ -342,6 +434,17 @@ export const externalLinkSpec = [ }, { + match: {domains: ['tiktok.com']}, + + platform: 'tiktok', + + compact: 'handle', + icon: 'tiktok', + + handle: {pathname: /^@?([a-zA-Z0-9_]*)\/?$/}, + }, + + { match: {domains: ['types.pl']}, platform: 'mastodon', @@ -352,6 +455,16 @@ export const externalLinkSpec = [ }, { + match: {domain: '.neocities.org'}, + + platform: 'neocities', + + normal: 'domain', + compact: 'domain', + icon: 'globe', + }, + + { match: {domain: 'newgrounds.com'}, platform: 'newgrounds', icon: 'newgrounds', @@ -398,6 +511,17 @@ export const externalLinkSpec = [ }, { + match: {domain: 'twitch.tv'}, + + platform: 'twitch', + + compact: 'handle', + icon: 'twitch', + + handle: {pathname: /^(.+)\/?/}, + }, + + { match: {domain: 'twitter.com'}, platform: 'twitter', @@ -405,10 +529,7 @@ export const externalLinkSpec = [ compact: 'handle', icon: 'twitter', - handle: { - prefix: '@', - pathname: /^@?([a-zA-Z0-9_]*)\/?$/, - }, + handle: {pathname: /^@?([a-zA-Z0-9_]*)\/?$/}, }, { |