« get me outta code hell

external-links: fix descriptor alphabetization by platform - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/util
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-03-30 10:22:18 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-03-30 10:22:18 -0300
commitb7f8d726125f6204e67393a02d5b42daaf814ee6 (patch)
tree1f479875108a999868874b8073a7f6785187b756 /src/util
parent644949440c9d85f4acc4731e92c49f3719e8d757 (diff)
external-links: fix descriptor alphabetization by platform
Why do we ever write alphabetical lists.
Diffstat (limited to 'src/util')
-rw-r--r--src/util/external-links.js74
1 files changed, 37 insertions, 37 deletions
diff --git a/src/util/external-links.js b/src/util/external-links.js
index d5c27ab6..512ac165 100644
--- a/src/util/external-links.js
+++ b/src/util/external-links.js
@@ -290,33 +290,6 @@ export const externalLinkSpec = [
   },
 
   {
-    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'},
 
     platform: 'fandom.mspaintadventures',
@@ -356,24 +329,42 @@ export const externalLinkSpec = [
   },
 
   {
-    match: {domain: 'hsmusic.wiki'},
-    platform: 'local',
-    icon: 'globe',
-  },
-
-  {
     match: {domain: 'instagram.com'},
     platform: 'instagram',
     icon: 'instagram',
   },
 
   {
-    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',
   },
 
   {
@@ -447,6 +438,15 @@ export const externalLinkSpec = [
   },
 
   {
+    match: {domain: 'tiktok.com'},
+
+    platform: 'tiktok',
+    handle: {pathname: /^@?([a-zA-Z0-9_]*)\/?$/},
+
+    icon: 'tiktok',
+  },
+
+  {
     match: {domain: '.tumblr.com'},
 
     platform: 'tumblr',