Moving stuff around
This commit is contained in:
parent
8920b864a1
commit
ed2894f5cf
6 changed files with 8 additions and 8 deletions
|
@ -1,6 +1,6 @@
|
||||||
import { CSSProperties, Dispatch, SetStateAction } from 'react'
|
import { CSSProperties, Dispatch, SetStateAction } from 'react'
|
||||||
import { borderCN, cornerCN, fieldIndex } from '../helpers'
|
import { borderCN, cornerCN, fieldIndex } from '../utils/helpers'
|
||||||
import { Position, MouseCursor } from '../interfaces'
|
import { Position, MouseCursor } from '../interfaces/frontend'
|
||||||
|
|
||||||
type TilesType = {
|
type TilesType = {
|
||||||
key: number,
|
key: number,
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import { faBurst, faXmark } from '@fortawesome/pro-solid-svg-icons'
|
import { faBurst, faXmark } from '@fortawesome/pro-solid-svg-icons'
|
||||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
|
||||||
import { CSSProperties } from 'react'
|
import { CSSProperties } from 'react'
|
||||||
import { Hit } from '../interfaces'
|
import { Hit } from '../interfaces/frontend'
|
||||||
|
|
||||||
function HitElems({hits}: {hits: Hit[]}) {
|
function HitElems({hits}: {hits: Hit[]}) {
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import classNames from 'classnames'
|
import classNames from 'classnames'
|
||||||
import { CSSProperties } from 'react'
|
import { CSSProperties } from 'react'
|
||||||
import { fieldIndex } from '../helpers'
|
import { fieldIndex } from '../utils/helpers'
|
||||||
import { Field } from '../interfaces'
|
import { Field } from '../interfaces/frontend'
|
||||||
|
|
||||||
function Labeling({count}: {count: number}) {
|
function Labeling({count}: {count: number}) {
|
||||||
let elems: (Field & {
|
let elems: (Field & {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { useCallback, useEffect, useMemo, useReducer, useState } from 'react'
|
import { useCallback, useEffect, useMemo, useReducer, useState } from 'react'
|
||||||
import { hitReducer, initlialLastLeftTile, initlialTarget, initlialTargetPreview, initlialMouseCursor, isHit } from '../helpers'
|
import { hitReducer, initlialLastLeftTile, initlialTarget, initlialTargetPreview, initlialMouseCursor, isHit } from '../utils/helpers'
|
||||||
import { Hit, Items, Mode, MouseCursor, Target, Position } from '../interfaces'
|
import { Hit, Items, Mode, MouseCursor, Target, Position } from '../interfaces/frontend'
|
||||||
import Item from './Item'
|
import Item from './Item'
|
||||||
import GamefieldPointer from './GamefieldPointer'
|
import GamefieldPointer from './GamefieldPointer'
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { Hit, HitDispatch } from "./interfaces"
|
import { Hit, HitDispatch } from "../interfaces/frontend"
|
||||||
|
|
||||||
export function borderCN(count: number, x: number, y: number) {
|
export function borderCN(count: number, x: number, y: number) {
|
||||||
if (x === 0)
|
if (x === 0)
|
Loading…
Add table
Add a link
Reference in a new issue