From b7f8d726125f6204e67393a02d5b42daaf814ee6 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 30 Mar 2024 10:22:18 -0300 Subject: external-links: fix descriptor alphabetization by platform Why do we ever write alphabetical lists. --- src/util/external-links.js | 74 +++++++++++++++++++++++----------------------- 1 file changed, 37 insertions(+), 37 deletions(-) (limited to 'src/util') diff --git a/src/util/external-links.js b/src/util/external-links.js index d5c27ab..512ac16 100644 --- a/src/util/external-links.js +++ b/src/util/external-links.js @@ -289,33 +289,6 @@ export const externalLinkSpec = [ icon: 'deviantart', }, - { - match: {domain: '.itch.io'}, - - platform: 'itch', - handle: {domain: /^[^.]*/}, - - icon: 'itch', - }, - - { - match: {domain: 'itch.io'}, - - platform: 'itch', - handle: {pathname: /^profile\/(.+)\/?$/}, - - icon: 'itch', - }, - - { - match: {domain: 'ko-fi.com'}, - - platform: 'kofi', - handle: {pathname: /^(.+)\/?/}, - - icon: 'kofi', - }, - { match: {domain: 'mspaintadventures.fandom.com'}, @@ -355,12 +328,6 @@ export const externalLinkSpec = [ icon: 'globe', }, - { - match: {domain: 'hsmusic.wiki'}, - platform: 'local', - icon: 'globe', - }, - { match: {domain: 'instagram.com'}, platform: 'instagram', @@ -368,12 +335,36 @@ export const externalLinkSpec = [ }, { - match: {domain: 'tiktok.com'}, + match: {domain: '.itch.io'}, - platform: 'tiktok', - handle: {pathname: /^@?([a-zA-Z0-9_]*)\/?$/}, + platform: 'itch', + handle: {domain: /^[^.]*/}, - icon: 'tiktok', + icon: 'itch', + }, + + { + match: {domain: 'itch.io'}, + + platform: 'itch', + handle: {pathname: /^profile\/(.+)\/?$/}, + + icon: 'itch', + }, + + { + match: {domain: 'ko-fi.com'}, + + platform: 'kofi', + handle: {pathname: /^(.+)\/?/}, + + icon: 'kofi', + }, + + { + match: {domain: 'hsmusic.wiki'}, + platform: 'local', + icon: 'globe', }, { @@ -446,6 +437,15 @@ export const externalLinkSpec = [ icon: 'globe', }, + { + match: {domain: 'tiktok.com'}, + + platform: 'tiktok', + handle: {pathname: /^@?([a-zA-Z0-9_]*)\/?$/}, + + icon: 'tiktok', + }, + { match: {domain: '.tumblr.com'}, -- cgit 1.3.0-6-gf8a5