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