« get me outta code hell

external-links: GameBanana - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-03-30 12:54:06 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-03-30 12:54:06 -0300
commitdcd5845b43b995ca41fb6b1711165d096a25b807 (patch)
treef98fe19c668fb5e17db1af49e289be4de646420a
parente3c91e682c3ce246f0628a4f4786c50d9066fc4d (diff)
external-links: GameBanana
We tried making a vector icon here, but basically no dice.
Pixel art presented this small on the wiki just doesn't work
as a vector image.
-rw-r--r--src/strings-default.yaml2
-rw-r--r--src/util/external-links.js6
-rw-r--r--tap-snapshots/test/snapshot/linkExternal.js.test.cjs4
-rw-r--r--test/snapshot/linkExternal.js4
4 files changed, 16 insertions, 0 deletions
diff --git a/src/strings-default.yaml b/src/strings-default.yaml
index 2248428..5f3b115 100644
--- a/src/strings-default.yaml
+++ b/src/strings-default.yaml
@@ -531,6 +531,8 @@ misc:
         _: "MSPA Wiki"
         page: "MSPA Wiki ({PAGE})"
 
+    gamebanana: "GameBanana"
+
     homestuck:
       _: "Homestuck"
       page: "Homestuck (page {PAGE})"
diff --git a/src/util/external-links.js b/src/util/external-links.js
index 4d77eb7..da0889a 100644
--- a/src/util/external-links.js
+++ b/src/util/external-links.js
@@ -365,6 +365,12 @@ export const externalLinkSpec = [
   },
 
   {
+    match: {domain: 'gamebanana.com'},
+    platform: 'gamebanana',
+    icon: 'globe',
+  },
+
+  {
     match: {domain: 'homestuck.com'},
     platform: 'homestuck',
     icon: 'globe',
diff --git a/tap-snapshots/test/snapshot/linkExternal.js.test.cjs b/tap-snapshots/test/snapshot/linkExternal.js.test.cjs
index c53d158..b09aff6 100644
--- a/tap-snapshots/test/snapshot/linkExternal.js.test.cjs
+++ b/tap-snapshots/test/snapshot/linkExternal.js.test.cjs
@@ -95,6 +95,8 @@ exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > context
 <a href="https://community.fandom.com/" class="nowrap">Fandom</a>
 <a href="https://community.fandom.com/wiki/" class="nowrap">Fandom</a>
 <a href="https://community.fandom.com/wiki/Community_Central" class="nowrap">Fandom</a>
+<a href="https://gamebanana.com/members/2028092" class="nowrap">GameBanana</a>
+<a href="https://gamebanana.com/mods/459476" class="nowrap">GameBanana</a>
 <a href="https://homestuck.com/" class="nowrap">Homestuck</a>
 <a href="https://archive.org/details/a-life-well-lived" class="nowrap">Internet Archive</a>
 <a href="https://archive.org/details/VastError_Volume1/11+Renaissance.mp3" class="nowrap">Internet Archive</a>
@@ -162,6 +164,8 @@ exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > context
 <a href="https://community.fandom.com/" class="nowrap">Fandom</a>
 <a href="https://community.fandom.com/wiki/" class="nowrap">Fandom</a>
 <a href="https://community.fandom.com/wiki/Community_Central" class="nowrap">Fandom</a>
+<a href="https://gamebanana.com/members/2028092" class="nowrap">GameBanana</a>
+<a href="https://gamebanana.com/mods/459476" class="nowrap">GameBanana</a>
 <a href="https://homestuck.com/" class="nowrap">Homestuck</a>
 <a href="https://archive.org/details/a-life-well-lived" class="nowrap">Internet Archive</a>
 <a href="https://archive.org/details/VastError_Volume1/11+Renaissance.mp3" class="nowrap">Internet Archive</a>
diff --git a/test/snapshot/linkExternal.js b/test/snapshot/linkExternal.js
index 39135a3..18885d1 100644
--- a/test/snapshot/linkExternal.js
+++ b/test/snapshot/linkExternal.js
@@ -87,6 +87,10 @@ testContentFunctions(t, 'linkExternal (snapshot)', async (t, evaluate) => {
     'https://community.fandom.com/wiki/',
     'https://community.fandom.com/wiki/Community_Central',
 
+    // platform: gamebanana
+    'https://gamebanana.com/members/2028092',
+    'https://gamebanana.com/mods/459476',
+
     // platform: homestuck
     'https://homestuck.com/',