mirror of
https://github.com/He4eT/elseifplayer.git
synced 2026-05-05 09:27:23 +00:00
Linting
This commit is contained in:
parent
3288234f36
commit
7a96d99055
21 changed files with 174 additions and 170 deletions
|
|
@ -11,10 +11,10 @@ import './GamesView.css'
|
|||
const tutorialGame = {
|
||||
name: 'The Dreamhold',
|
||||
ifdb: 'https://ifdb.org/viewgame?id=3myqnrs64nbtwdaz',
|
||||
url: 'https://mirror.ifarchive.org/if-archive/games/zcode/dreamhold.z8'
|
||||
url: 'https://mirror.ifarchive.org/if-archive/games/zcode/dreamhold.z8',
|
||||
}
|
||||
|
||||
export default function () {
|
||||
export default function GamesView () {
|
||||
return (
|
||||
<main className='view games'>
|
||||
|
||||
|
|
@ -46,7 +46,7 @@ export default function () {
|
|||
<ul>
|
||||
<li>
|
||||
<GameEntry {...{
|
||||
...tutorialGame
|
||||
...tutorialGame,
|
||||
}} />
|
||||
</li>
|
||||
</ul>
|
||||
|
|
@ -73,10 +73,10 @@ export default function () {
|
|||
</p>
|
||||
|
||||
<ol>
|
||||
{top2019.map(game => (
|
||||
{top2019.map((game) => (
|
||||
<li key={game[0]}>
|
||||
<GameEntry {...{
|
||||
...game
|
||||
...game,
|
||||
}} />
|
||||
</li>
|
||||
))}
|
||||
|
|
|
|||
|
|
@ -3,18 +3,18 @@ export default [
|
|||
/* Check with cheap-glk */
|
||||
'Counterfeit Monkey',
|
||||
'https://ifdb.org/viewgame?id=aearuuxv83plclpl',
|
||||
'https://mirror.ifarchive.org/if-archive/games/glulx/CounterfeitMonkey.gblorb'
|
||||
'https://mirror.ifarchive.org/if-archive/games/glulx/CounterfeitMonkey.gblorb',
|
||||
],
|
||||
[
|
||||
'Lost Pig',
|
||||
'https://ifdb.org/viewgame?id=mohwfk47yjzii14w',
|
||||
'https://mirror.ifarchive.org/if-archive/games/zcode/LostPig.z8'
|
||||
'https://mirror.ifarchive.org/if-archive/games/zcode/LostPig.z8',
|
||||
],
|
||||
[
|
||||
/* Works. Check inputs */
|
||||
'Anchorhead',
|
||||
'https://ifdb.org/viewgame?id=op0uw1gn1tjqmjt7',
|
||||
'https://ifarchive.org/if-archive/games/zcode/anchor.z8'
|
||||
'https://ifarchive.org/if-archive/games/zcode/anchor.z8',
|
||||
],
|
||||
/* [
|
||||
'80 DAYS',
|
||||
|
|
@ -24,18 +24,18 @@ export default [
|
|||
[
|
||||
'Galatea',
|
||||
'https://ifdb.org/viewgame?id=urxrv27t7qtu52lb',
|
||||
'https://mirror.ifarchive.org/if-archive/games/zcode/Galatea.zblorb'
|
||||
'https://mirror.ifarchive.org/if-archive/games/zcode/Galatea.zblorb',
|
||||
],
|
||||
[
|
||||
/* Works. Check inputs */
|
||||
'Photopia',
|
||||
'https://ifdb.org/viewgame?id=ju778uv5xaswnlpl',
|
||||
'https://mirror.ifarchive.org/if-archive/games/zcode/photopia.z5'
|
||||
'https://mirror.ifarchive.org/if-archive/games/zcode/photopia.z5',
|
||||
],
|
||||
[
|
||||
'Spider and Web',
|
||||
'https://ifdb.org/viewgame?id=2xyccw3pe0uovfad',
|
||||
'https://mirror.ifarchive.org/if-archive/games/zcode/Tangle.z5'
|
||||
'https://mirror.ifarchive.org/if-archive/games/zcode/Tangle.z5',
|
||||
],
|
||||
/* [
|
||||
'Trinity',
|
||||
|
|
@ -60,12 +60,12 @@ export default [
|
|||
[
|
||||
'Slouching Towards Bedlam',
|
||||
'https://ifdb.org/viewgame?id=032krqe6bjn5au78',
|
||||
'https://mirror.ifarchive.org/if-archive/games/competition2003/zcode/slouch/slouch.z5'
|
||||
'https://mirror.ifarchive.org/if-archive/games/competition2003/zcode/slouch/slouch.z5',
|
||||
],
|
||||
[
|
||||
'Curses!',
|
||||
'https://ifdb.org/viewgame?id=plvzam05bmz3enh8',
|
||||
'https://mirror.ifarchive.org/if-archive/games/zcode/curses.z5'
|
||||
'https://mirror.ifarchive.org/if-archive/games/zcode/curses.z5',
|
||||
],
|
||||
/* [
|
||||
'howling dogs',
|
||||
|
|
@ -75,12 +75,12 @@ export default [
|
|||
[
|
||||
'Violet',
|
||||
'https://ifdb.org/viewgame?id=4glrrfh7wrp9zz7b',
|
||||
'https://mirror.ifarchive.org/if-archive/games/zcode/Violet.zblorb'
|
||||
'https://mirror.ifarchive.org/if-archive/games/zcode/Violet.zblorb',
|
||||
],
|
||||
[
|
||||
'The Wizard Sniffer',
|
||||
'https://ifdb.org/viewgame?id=uq18rw9gt8j58da',
|
||||
'https://ifarchive.org/if-archive/games/competition2017/The%20Wizard%20Sniffer/The_Wizard_Sniffer.gblorb'
|
||||
'https://ifarchive.org/if-archive/games/competition2017/The%20Wizard%20Sniffer/The_Wizard_Sniffer.gblorb',
|
||||
],
|
||||
/* [
|
||||
'Eat Me',
|
||||
|
|
@ -100,12 +100,12 @@ export default [
|
|||
[
|
||||
'Shade',
|
||||
'https://ifdb.org/viewgame?id=hsfc7fnl40k4a30q',
|
||||
'https://mirror.ifarchive.org/if-archive/games/zcode/shade.z5'
|
||||
'https://mirror.ifarchive.org/if-archive/games/zcode/shade.z5',
|
||||
],
|
||||
[
|
||||
'Vespers',
|
||||
'https://ifdb.org/viewgame?id=6dj2vguyiagrhvc2',
|
||||
'https://mirror.ifarchive.org/if-archive/games/zcode/vespers.z8'
|
||||
'https://mirror.ifarchive.org/if-archive/games/zcode/vespers.z8',
|
||||
],
|
||||
/* [
|
||||
'Will Not Let Me Go',
|
||||
|
|
@ -135,7 +135,7 @@ export default [
|
|||
[
|
||||
'Savoir-Faire',
|
||||
'https://ifdb.org/viewgame?id=p0cizeb3kiwzlm2p',
|
||||
'https://mirror.ifarchive.org/if-archive/games/zcode/Savoir-Faire.zblorb'
|
||||
'https://mirror.ifarchive.org/if-archive/games/zcode/Savoir-Faire.zblorb',
|
||||
],
|
||||
/* [
|
||||
'With Those We Love Alive',
|
||||
|
|
@ -145,7 +145,7 @@ export default [
|
|||
[
|
||||
'Aisle',
|
||||
'https://ifdb.org/viewgame?id=j49crlvd62mhwuzu',
|
||||
'https://mirror.ifarchive.org/if-archive/games/zcode/Aisle.z5'
|
||||
'https://mirror.ifarchive.org/if-archive/games/zcode/Aisle.z5',
|
||||
],
|
||||
/* [
|
||||
'Blue Lacuna',
|
||||
|
|
@ -155,7 +155,7 @@ export default [
|
|||
[
|
||||
'Gun Mute',
|
||||
'https://ifdb.org/viewgame?id=xwedbibfksczn7eq',
|
||||
'https://mirror.ifarchive.org/if-archive/games/tads/GunMute.t3'
|
||||
'https://mirror.ifarchive.org/if-archive/games/tads/GunMute.t3',
|
||||
],
|
||||
/* [
|
||||
'The King of Shreds and Patches',
|
||||
|
|
@ -180,7 +180,7 @@ export default [
|
|||
[
|
||||
'A Beauty Cold and Austere',
|
||||
'https://ifdb.org/viewgame?id=y9y7jozi0l76bb82',
|
||||
'https://ifarchive.org/if-archive/games/competition2017/A%20Beauty%20Cold%20and%20Austere/A_Beauty_Cold_and_Austere.gblorb'
|
||||
'https://ifarchive.org/if-archive/games/competition2017/A%20Beauty%20Cold%20and%20Austere/A_Beauty_Cold_and_Austere.gblorb',
|
||||
],
|
||||
/* [
|
||||
'Cactus Blue Motel',
|
||||
|
|
@ -190,7 +190,7 @@ export default [
|
|||
[
|
||||
'Coloratura',
|
||||
'https://ifdb.org/viewgame?id=g0fl99ovcrq2sqzk',
|
||||
'https://mirror.ifarchive.org/if-archive/games/competition2013/glulx/coloratura/Coloratura.gblorb'
|
||||
'https://mirror.ifarchive.org/if-archive/games/competition2013/glulx/coloratura/Coloratura.gblorb',
|
||||
],
|
||||
/* [
|
||||
'Harmonia',
|
||||
|
|
@ -200,12 +200,12 @@ export default [
|
|||
[
|
||||
'Lime Ergot',
|
||||
'https://ifdb.org/viewgame?id=b8mb4fcwmf1hrxl',
|
||||
'https://mirror.ifarchive.org/if-archive/games/glulx/Lime_Ergot.gblorb'
|
||||
'https://mirror.ifarchive.org/if-archive/games/glulx/Lime_Ergot.gblorb',
|
||||
],
|
||||
[
|
||||
'Rameses',
|
||||
'https://ifdb.org/viewgame?id=0stz0hr7a98bp9mp',
|
||||
'https://mirror.ifarchive.org/if-archive/games/zcode/rameses.zblorb'
|
||||
'https://mirror.ifarchive.org/if-archive/games/zcode/rameses.zblorb',
|
||||
],
|
||||
/* [
|
||||
'Spellbreaker',
|
||||
|
|
@ -220,7 +220,7 @@ export default [
|
|||
[
|
||||
'The Wand',
|
||||
'https://ifdb.org/viewgame?id=2jil5vbxmbv8riv1',
|
||||
'https://ifarchive.org/if-archive/games/glulx/Wand.ulx'
|
||||
'https://ifarchive.org/if-archive/games/glulx/Wand.ulx',
|
||||
],
|
||||
/* [
|
||||
'Zork I',
|
||||
|
|
@ -230,17 +230,17 @@ export default [
|
|||
[
|
||||
'1893: A World\'s Fair Mystery',
|
||||
'https://ifdb.org/viewgame?id=00e0t7swrris5pg6',
|
||||
'https://mirror.ifarchive.org/if-archive/games/tads/1893.gam'
|
||||
'https://mirror.ifarchive.org/if-archive/games/tads/1893.gam',
|
||||
],
|
||||
[
|
||||
'Adventure',
|
||||
'https://ifdb.org/viewgame?id=fft6pu91j85y4acv',
|
||||
'https://mirror.ifarchive.org/if-archive/games/zcode/Advent.z5'
|
||||
'https://mirror.ifarchive.org/if-archive/games/zcode/Advent.z5',
|
||||
],
|
||||
[
|
||||
'Alias \'The Magpie\'',
|
||||
'https://ifdb.org/viewgame?id=yspn49v69hzc8rtb',
|
||||
'https://ifarchive.org/if-archive/games/competition2018/Alias%20The%20Magpie/Alias%20%27The%20Magpie%27.gblorb'
|
||||
'https://ifarchive.org/if-archive/games/competition2018/Alias%20The%20Magpie/Alias%20%27The%20Magpie%27.gblorb',
|
||||
],
|
||||
/* [
|
||||
'De Baron',
|
||||
|
|
@ -255,22 +255,22 @@ export default [
|
|||
[
|
||||
'Cragne Manor',
|
||||
'https://ifdb.org/viewgame?id=4x7nltu8p851tn4x',
|
||||
'https://mirror.ifarchive.org/if-archive/games/glulx/cragne.gblorb'
|
||||
'https://mirror.ifarchive.org/if-archive/games/glulx/cragne.gblorb',
|
||||
],
|
||||
[
|
||||
'The Edifice',
|
||||
'https://ifdb.org/viewgame?id=4tb9soabrb4apqzd',
|
||||
'https://mirror.ifarchive.org/if-archive/games/zcode/edifice.z5'
|
||||
'https://mirror.ifarchive.org/if-archive/games/zcode/edifice.z5',
|
||||
],
|
||||
[
|
||||
'Endless, Nameless',
|
||||
'https://ifdb.org/viewgame?id=7vtm1rq16hh3xch',
|
||||
'https://ifarchive.org/if-archive/games/zcode/nameless.z8'
|
||||
'https://ifarchive.org/if-archive/games/zcode/nameless.z8',
|
||||
],
|
||||
[
|
||||
'Everybody Dies',
|
||||
'https://ifdb.org/viewgame?id=lyblvftb8xtlo0a1',
|
||||
'https://mirror.ifarchive.org/if-archive/games/competition2008/glulx/everybodydies/EverybodyDies.gblorb'
|
||||
'https://mirror.ifarchive.org/if-archive/games/competition2008/glulx/everybodydies/EverybodyDies.gblorb',
|
||||
],
|
||||
/* [
|
||||
'Fallen London',
|
||||
|
|
@ -280,12 +280,12 @@ export default [
|
|||
[
|
||||
'Foo Foo',
|
||||
'https://ifdb.org/viewgame?id=ec6x9y8qcmsrxob9',
|
||||
'https://ifarchive.org/if-archive/games/springthing/2016/FooFoo.gblorb'
|
||||
'https://ifarchive.org/if-archive/games/springthing/2016/FooFoo.gblorb',
|
||||
],
|
||||
[
|
||||
'The Gostak',
|
||||
'https://ifdb.org/viewgame?id=w5s3sv43s3p98v45',
|
||||
'https://mirror.ifarchive.org/if-archive/games/zcode/gostak.z5'
|
||||
'https://mirror.ifarchive.org/if-archive/games/zcode/gostak.z5',
|
||||
],
|
||||
/* [
|
||||
'The Hitchhiker\'s Guide to the Galaxy',
|
||||
|
|
@ -305,27 +305,27 @@ export default [
|
|||
[
|
||||
'Inside the Facility',
|
||||
'https://ifdb.org/viewgame?id=stsdri5zh7a4i5my',
|
||||
'https://ifarchive.org/if-archive/games/competition2016/Inside%20the%20Facility/Facility.z8'
|
||||
'https://ifarchive.org/if-archive/games/competition2016/Inside%20the%20Facility/Facility.z8',
|
||||
],
|
||||
[
|
||||
'Junior Arithmancer',
|
||||
'https://ifdb.org/viewgame?id=pw1rbjt1t4n4n87s',
|
||||
'https://ifarchive.org/if-archive/games/competition2018/Junior%20Arithmancer/Junior_Arithmancer.gblorb'
|
||||
'https://ifarchive.org/if-archive/games/competition2018/Junior%20Arithmancer/Junior_Arithmancer.gblorb',
|
||||
],
|
||||
[
|
||||
'Make It Good',
|
||||
'https://ifdb.org/viewgame?id=jdrbw1htq4ah8q57',
|
||||
'https://mirror.ifarchive.org/if-archive/games/zcode/MakeItGood.zblorb'
|
||||
'https://mirror.ifarchive.org/if-archive/games/zcode/MakeItGood.zblorb',
|
||||
],
|
||||
[
|
||||
'Sub Rosa',
|
||||
'https://ifdb.org/viewgame?id=73nvz9yui87ub3sd',
|
||||
'https://mirror.ifarchive.org/if-archive/games/glulx/Sub_Rosa.gblorb'
|
||||
'https://mirror.ifarchive.org/if-archive/games/glulx/Sub_Rosa.gblorb',
|
||||
],
|
||||
[
|
||||
'Suveh Nux',
|
||||
'https://ifdb.org/viewgame?id=xkai23ry99qdxce3',
|
||||
'https://mirror.ifarchive.org/if-archive/games/zcode/suvehnux.z5'
|
||||
'https://mirror.ifarchive.org/if-archive/games/zcode/suvehnux.z5',
|
||||
],
|
||||
/* [
|
||||
'their angelical understanding',
|
||||
|
|
@ -340,6 +340,6 @@ export default [
|
|||
[
|
||||
'Varicella',
|
||||
'https://ifdb.org/viewgame?id=ywwlr3tpxnktjasd',
|
||||
'https://mirror.ifarchive.org/if-archive/games/zcode/vgame.z8'
|
||||
]
|
||||
'https://mirror.ifarchive.org/if-archive/games/zcode/vgame.z8',
|
||||
],
|
||||
].map(([name, ifdb, url]) => ({ name, ifdb, url }))
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import { Link } from 'wouter-preact'
|
|||
|
||||
import {
|
||||
useHashLocation,
|
||||
buildPlayLinkHref
|
||||
buildPlayLinkHref,
|
||||
} from '~/src/utils/utils.routing'
|
||||
|
||||
import LocalFileSelector from
|
||||
|
|
@ -15,7 +15,7 @@ import ThemeSelector from
|
|||
|
||||
import './HomeView.css'
|
||||
|
||||
export default function ({ themeEngine }) {
|
||||
export default function HomeView ({ themeEngine }) {
|
||||
const setLocation = useHashLocation()[1]
|
||||
|
||||
return (
|
||||
|
|
@ -46,7 +46,7 @@ export default function ({ themeEngine }) {
|
|||
</h2>
|
||||
|
||||
<ThemeSelector {...{
|
||||
themeEngine
|
||||
themeEngine,
|
||||
}} />
|
||||
|
||||
<p>
|
||||
|
|
@ -97,7 +97,7 @@ export default function ({ themeEngine }) {
|
|||
<LocalFileSelector {...{
|
||||
setLocation,
|
||||
buildLink: buildPlayLinkHref,
|
||||
theme: themeEngine.currentTheme
|
||||
theme: themeEngine.currentTheme,
|
||||
}} />
|
||||
</label>
|
||||
</p>
|
||||
|
|
@ -108,7 +108,7 @@ export default function ({ themeEngine }) {
|
|||
<TargetURLSelector {...{
|
||||
setLocation,
|
||||
buildLink: buildPlayLinkHref,
|
||||
theme: themeEngine.currentTheme
|
||||
theme: themeEngine.currentTheme,
|
||||
}} />
|
||||
</label>
|
||||
</p>
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
import { h } from 'preact'
|
||||
import { Link } from 'wouter-preact'
|
||||
|
||||
export default () => (
|
||||
<main>
|
||||
export default function NotFoundView () {
|
||||
return <main>
|
||||
<div className='status'>
|
||||
<h1>
|
||||
404
|
||||
|
|
@ -23,4 +23,4 @@ export default () => (
|
|||
</a>
|
||||
</div>
|
||||
</main>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,10 +5,10 @@ import UrlPlayer from '~/src/components/Player/UrlPlayer'
|
|||
|
||||
import './PlayerView.css'
|
||||
|
||||
const decode = encodedUrl => decodeURIComponent(encodedUrl)
|
||||
const decode = (encodedUrl) => decodeURIComponent(encodedUrl)
|
||||
|
||||
export default function ({
|
||||
setTheme, theme, encodedUrl, singleWindow
|
||||
export default function PlayerView ({
|
||||
setTheme, theme, encodedUrl, singleWindow,
|
||||
}) {
|
||||
useEffect(() => setTheme(theme), [setTheme, theme])
|
||||
|
||||
|
|
@ -22,7 +22,7 @@ export default function ({
|
|||
<main>
|
||||
<UrlPlayer {...{
|
||||
url: targetUrl,
|
||||
singleWindow
|
||||
singleWindow,
|
||||
}} />
|
||||
</main>
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue