Rearrange components

This commit is contained in:
He4eT 2023-06-03 22:50:37 +03:00 committed by Alexey
commit daa26965cd
16 changed files with 14 additions and 11 deletions

View file

@ -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 (

View file

@ -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 = {

View file

@ -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'

View file

@ -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',

View file

@ -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'

View file

@ -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'

View file

@ -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'