mirror of
https://github.com/He4eT/elseifplayer.git
synced 2026-05-05 01:17:22 +00:00
Rearrange components
This commit is contained in:
parent
7e2de6b269
commit
9f1057ed2f
16 changed files with 14 additions and 11 deletions
|
|
@ -3,7 +3,7 @@ import { Link } from 'wouter-preact'
|
|||
|
||||
import {
|
||||
buildPlayLinkHref,
|
||||
} from '~/src/utils/utils.routing'
|
||||
} from '~/src/routing'
|
||||
|
||||
export default function GameEntry ({ name, ifdb, url }) {
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { h } from 'preact'
|
||||
import { useEffect, useRef, useState } from 'preact/hooks'
|
||||
|
||||
import s from './InputBox/MenuButton.module.scss'
|
||||
import s from './MenuButton/MenuButton.module.scss'
|
||||
|
||||
/* eslint-disable */
|
||||
const keyCodes = {
|
||||
|
|
@ -3,13 +3,16 @@ import { useState, useEffect } from 'preact/hooks'
|
|||
|
||||
import CheapGlkOte from 'cheap-glkote'
|
||||
|
||||
import TextBuffer from './TextBuffer'
|
||||
import GridBuffer from './GridBuffer'
|
||||
import TextBuffer from './OutputBox/TextBuffer'
|
||||
import GridBuffer from './OutputBox/GridBuffer'
|
||||
|
||||
import InputBox from './InputBox'
|
||||
import Status from './Status'
|
||||
import InputBox from './InputBox/InputBox'
|
||||
import Status from './Status/Status'
|
||||
|
||||
import { Handlers, unhandledRejectionHandler } from './playerHandlers'
|
||||
import {
|
||||
Handlers,
|
||||
unhandledRejectionHandler
|
||||
} from './common/playerHandlers'
|
||||
|
||||
import './player.css'
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import { useState, useEffect } from 'preact/hooks'
|
|||
import { engineByFilename } from './common/engines'
|
||||
|
||||
import Player from './Player'
|
||||
import Status from './Status'
|
||||
import Status from './Status/Status'
|
||||
|
||||
const INITIAL_STATUS = {
|
||||
stage: 'loading',
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import { Route, Router, Switch } from 'wouter-preact'
|
|||
import {
|
||||
useHashLocation,
|
||||
extractView,
|
||||
} from '~/src/utils/utils.routing'
|
||||
} from './routing'
|
||||
import {
|
||||
useThemeEngine,
|
||||
} from '~/src/themes/themes'
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import { Link } from 'wouter-preact'
|
|||
import {
|
||||
useHashLocation,
|
||||
buildPlayLinkHref,
|
||||
} from '~/src/utils/utils.routing'
|
||||
} from '~/src/routing'
|
||||
|
||||
import LocalFileSelector from
|
||||
'~/src/components/FileSelector/LocalFileSelector'
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import { h } from 'preact'
|
|||
import { useState, useEffect } from 'preact/hooks'
|
||||
|
||||
import UrlPlayer from '~/src/components/Player/UrlPlayer'
|
||||
import MenuOverlay from '~/src/components/Player/MenuOverlay'
|
||||
import MenuOverlay from '~/src/components/Player/MenuOverlay/MenuOverlay'
|
||||
|
||||
import './PlayerView.css'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue