« get me outta code hell

external-links: HSMusic (replacing "local") - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-03-30 12:59:47 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-03-30 13:01:11 -0300
commitc58e21df768e52411c3c7b739b01eddf3ae7ef51 (patch)
tree581cafe6cec7cf00ab3604dfaa60816d0d7ab221 /src
parentdcd5845b43b995ca41fb6b1711165d096a25b807 (diff)
external-links: HSMusic (replacing "local")
Diffstat (limited to 'src')
-rw-r--r--src/strings-default.yaml6
-rw-r--r--src/util/external-links.js23
2 files changed, 21 insertions, 8 deletions
diff --git a/src/strings-default.yaml b/src/strings-default.yaml
index 5f3b115c..3c38f2f8 100644
--- a/src/strings-default.yaml
+++ b/src/strings-default.yaml
@@ -504,8 +504,6 @@ misc:
     withHandle:
       "{PLATFORM} ({HANDLE})"
 
-    local: "Wiki Archive (local upload)"
-
     appleMusic: "Apple Music"
     artstation: "ArtStation"
     bandcamp: "Bandcamp"
@@ -538,6 +536,10 @@ misc:
       page: "Homestuck (page {PAGE})"
       secretPage: "Homestuck (secret page)"
 
+    hsmusic:
+      _: "HSMusic"
+      archive: "HSMusic (wiki archive)"
+
     instagram: "Instagram"
     internetArchive: "Internet Archive"
     itch: "itch.io"
diff --git a/src/util/external-links.js b/src/util/external-links.js
index da0889a3..b8b97849 100644
--- a/src/util/external-links.js
+++ b/src/util/external-links.js
@@ -377,6 +377,23 @@ export const externalLinkSpec = [
   },
 
   {
+    match: {
+      domain: 'hsmusic.wiki',
+      pathname: /^media\/misc\/archive/,
+    },
+
+    platform: 'hsmusic.archive',
+
+    icon: 'globe',
+  },
+
+  {
+    match: {domain: 'hsmusic.wiki'},
+    platform: 'hsmusic',
+    icon: 'globe',
+  },
+
+  {
     match: {domain: 'instagram.com'},
     platform: 'instagram',
     icon: 'instagram',
@@ -417,12 +434,6 @@ export const externalLinkSpec = [
   },
 
   {
-    match: {domain: 'hsmusic.wiki'},
-    platform: 'local',
-    icon: 'globe',
-  },
-
-  {
     match: {domains: ['types.pl']},
 
     platform: 'mastodon',