From 4075254c9e38be6741527e1fb535eed444e6ad08 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 26 Jun 2022 16:41:09 -0300 Subject: initial prettier/eslint commit --- src/url-spec.js | 127 ++++++++++++++++++++++++++++---------------------------- 1 file changed, 63 insertions(+), 64 deletions(-) (limited to 'src/url-spec.js') diff --git a/src/url-spec.js b/src/url-spec.js index 5c59941..cd35abe 100644 --- a/src/url-spec.js +++ b/src/url-spec.js @@ -1,93 +1,92 @@ -import {withEntries} from './util/sugar.js'; +import { withEntries } from "./util/sugar.js"; const urlSpec = { - data: { - prefix: 'data/', + data: { + prefix: "data/", - paths: { - root: '', - path: '<>', + paths: { + root: "", + path: "<>", - album: 'album/<>', - artist: 'artist/<>', - track: 'track/<>' - } + album: "album/<>", + artist: "artist/<>", + track: "track/<>", }, + }, - localized: { - // TODO: Implement this. - // prefix: '_languageCode', + localized: { + // TODO: Implement this. + // prefix: '_languageCode', - paths: { - root: '', - path: '<>', + paths: { + 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: '<>', + shared: { + paths: { + root: "", + path: "<>", - utilityRoot: 'util', - staticRoot: 'static', + utilityRoot: "util", + staticRoot: "static", - utilityFile: 'util/<>', - staticFile: 'static/<>' - } + utilityFile: "util/<>", + staticFile: "static/<>", }, - - 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/<>/<>', - } - } + }, + + 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/<>/<>", + }, + }, }; // This gets automatically switched in place when working from a baseDirectory, // so it should never be referenced manually. urlSpec.localizedWithBaseDirectory = { - paths: withEntries( - urlSpec.localized.paths, - entries => entries.map(([key, path]) => [key, '<>/' + path]) - ) + paths: withEntries(urlSpec.localized.paths, (entries) => + entries.map(([key, path]) => [key, "<>/" + path]) + ), }; export default urlSpec; -- cgit 1.3.0-6-gf8a5