« get me outta code hell

real pragma, and some eslint fixes - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/url-spec.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2022-06-26 18:02:27 -0300
committer(quasar) nebula <qznebula@protonmail.com>2022-06-26 18:02:27 -0300
commitc75b029160248b6935e5c0f5156cc7a870311e82 (patch)
tree693c5cca195e50b048b0086e768aa06a7c1986ee /src/url-spec.js
parentf65e712fe8b8b1a196da2db286ebc6a5c9bf7433 (diff)
real pragma, and some eslint fixes
Diffstat (limited to 'src/url-spec.js')
-rw-r--r--src/url-spec.js90
1 files changed, 45 insertions, 45 deletions
diff --git a/src/url-spec.js b/src/url-spec.js
index 0defced..bab97ef 100644
--- a/src/url-spec.js
+++ b/src/url-spec.js
@@ -1,18 +1,18 @@
-// @format
+/** @format */
 
-import { withEntries } from "./util/sugar.js";
+import {withEntries} from './util/sugar.js';
 
 const urlSpec = {
   data: {
-    prefix: "data/",
+    prefix: 'data/',
 
     paths: {
-      root: "",
-      path: "<>",
+      root: '',
+      path: '<>',
 
-      album: "album/<>",
-      artist: "artist/<>",
-      track: "track/<>",
+      album: 'album/<>',
+      artist: 'artist/<>',
+      track: 'track/<>',
     },
   },
 
@@ -21,64 +21,64 @@ const urlSpec = {
     // prefix: '_languageCode',
 
     paths: {
-      root: "",
-      path: "<>",
+      root: '',
+      path: '<>',
 
-      home: "",
+      home: '',
 
-      album: "album/<>/",
-      albumCommentary: "commentary/album/<>/",
+      album: 'album/<>/',
+      albumCommentary: 'commentary/album/<>/',
 
-      artist: "artist/<>/",
-      artistGallery: "artist/<>/gallery/",
+      artist: 'artist/<>/',
+      artistGallery: 'artist/<>/gallery/',
 
-      commentaryIndex: "commentary/",
+      commentaryIndex: 'commentary/',
 
-      flashIndex: "flash/",
-      flash: "flash/<>/",
+      flashIndex: 'flash/',
+      flash: 'flash/<>/',
 
-      groupInfo: "group/<>/",
-      groupGallery: "group/<>/gallery/",
+      groupInfo: 'group/<>/',
+      groupGallery: 'group/<>/gallery/',
 
-      listingIndex: "list/",
-      listing: "list/<>/",
+      listingIndex: 'list/',
+      listing: 'list/<>/',
 
-      newsIndex: "news/",
-      newsEntry: "news/<>/",
+      newsIndex: 'news/',
+      newsEntry: 'news/<>/',
 
-      staticPage: "<>/",
-      tag: "tag/<>/",
-      track: "track/<>/",
+      staticPage: '<>/',
+      tag: 'tag/<>/',
+      track: 'track/<>/',
     },
   },
 
   shared: {
     paths: {
-      root: "",
-      path: "<>",
+      root: '',
+      path: '<>',
 
-      utilityRoot: "util",
-      staticRoot: "static",
+      utilityRoot: 'util',
+      staticRoot: 'static',
 
-      utilityFile: "util/<>",
-      staticFile: "static/<>",
+      utilityFile: 'util/<>',
+      staticFile: 'static/<>',
     },
   },
 
   media: {
-    prefix: "media/",
+    prefix: 'media/',
 
     paths: {
-      root: "",
-      path: "<>",
-
-      albumCover: "album-art/<>/cover.<>",
-      albumWallpaper: "album-art/<>/bg.<>",
-      albumBanner: "album-art/<>/banner.<>",
-      trackCover: "album-art/<>/<>.<>",
-      artistAvatar: "artist-avatar/<>.<>",
-      flashArt: "flash-art/<>.<>",
-      albumAdditionalFile: "album-additional/<>/<>",
+      root: '',
+      path: '<>',
+
+      albumCover: 'album-art/<>/cover.<>',
+      albumWallpaper: 'album-art/<>/bg.<>',
+      albumBanner: 'album-art/<>/banner.<>',
+      trackCover: 'album-art/<>/<>.<>',
+      artistAvatar: 'artist-avatar/<>.<>',
+      flashArt: 'flash-art/<>.<>',
+      albumAdditionalFile: 'album-additional/<>/<>',
     },
   },
 };
@@ -87,7 +87,7 @@ const urlSpec = {
 // so it should never be referenced manually.
 urlSpec.localizedWithBaseDirectory = {
   paths: withEntries(urlSpec.localized.paths, (entries) =>
-    entries.map(([key, path]) => [key, "<>/" + path])
+    entries.map(([key, path]) => [key, '<>/' + path])
   ),
 };