mirror of
https://github.com/He4eT/elseifplayer.git
synced 2026-05-05 01:17:22 +00:00
components: remove redundant h import
This commit is contained in:
parent
763ff4da3e
commit
cce69a2cd8
17 changed files with 0 additions and 22 deletions
|
|
@ -1,5 +1,3 @@
|
||||||
import { h } from 'preact'
|
|
||||||
|
|
||||||
export default function LocalFileSelector ({ theme, setLocation, buildLink }) {
|
export default function LocalFileSelector ({ theme, setLocation, buildLink }) {
|
||||||
const fileInputHandler = ({ target }) => {
|
const fileInputHandler = ({ target }) => {
|
||||||
const file = target.files[0]
|
const file = target.files[0]
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
import { h } from 'preact'
|
|
||||||
|
|
||||||
export default function TargetURLSelector ({ theme, setLocation, buildLink }) {
|
export default function TargetURLSelector ({ theme, setLocation, buildLink }) {
|
||||||
const urlRE = /^(http|https):\/\/[^ "]+$/
|
const urlRE = /^(http|https):\/\/[^ "]+$/
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
import { h } from 'preact'
|
|
||||||
import { Link } from 'wouter-preact'
|
import { Link } from 'wouter-preact'
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
import { h } from 'preact'
|
|
||||||
import { useEffect, useRef, useState } from 'preact/hooks'
|
import { useEffect, useRef, useState } from 'preact/hooks'
|
||||||
|
|
||||||
import MenuButton from './MenuButton/MenuButton'
|
import MenuButton from './MenuButton/MenuButton'
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
import { h } from 'preact'
|
|
||||||
|
|
||||||
import * as s from './MenuButton.module.scss'
|
import * as s from './MenuButton.module.scss'
|
||||||
|
|
||||||
export default function MenuButton ({ onClick }) {
|
export default function MenuButton ({ onClick }) {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
import { h } from 'preact'
|
|
||||||
import { useEffect, useState } from 'preact/hooks'
|
import { useEffect, useState } from 'preact/hooks'
|
||||||
|
|
||||||
import TextMessage from './TextMessage'
|
import TextMessage from './TextMessage'
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
import { h } from 'preact'
|
|
||||||
import { useEffect, useRef, useState } from 'preact/hooks'
|
import { useEffect, useRef, useState } from 'preact/hooks'
|
||||||
|
|
||||||
import TextMessage from './TextMessage'
|
import TextMessage from './TextMessage'
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
import { h } from 'preact'
|
|
||||||
|
|
||||||
export default function TextMessage ({ style, text }) {
|
export default function TextMessage ({ style, text }) {
|
||||||
const defaultContent = (
|
const defaultContent = (
|
||||||
<span className={['message', style].join(' ')}>
|
<span className={['message', style].join(' ')}>
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
import { h } from 'preact'
|
|
||||||
import { useState, useEffect } from 'preact/hooks'
|
import { useState, useEffect } from 'preact/hooks'
|
||||||
|
|
||||||
import CheapGlkOte from 'cheap-glkote'
|
import CheapGlkOte from 'cheap-glkote'
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
import { h } from 'preact'
|
|
||||||
import { Link } from 'wouter-preact'
|
import { Link } from 'wouter-preact'
|
||||||
|
|
||||||
const fail = (details) => (
|
const fail = (details) => (
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
import { h } from 'preact'
|
|
||||||
import { useState, useEffect } from 'preact/hooks'
|
import { useState, useEffect } from 'preact/hooks'
|
||||||
|
|
||||||
import { engineByFilename } from './common/engines'
|
import { engineByFilename } from './common/engines'
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
import { h } from 'preact'
|
|
||||||
|
|
||||||
export default function ThemeSelector ({ themeEngine }) {
|
export default function ThemeSelector ({ themeEngine }) {
|
||||||
const options = themeEngine.themes.map((theme) => (
|
const options = themeEngine.themes.map((theme) => (
|
||||||
<option
|
<option
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
import { h } from 'preact'
|
|
||||||
import { Link } from 'wouter-preact'
|
import { Link } from 'wouter-preact'
|
||||||
|
|
||||||
import GameEntry from
|
import GameEntry from
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
import { h } from 'preact'
|
|
||||||
import { Link } from 'wouter-preact'
|
import { Link } from 'wouter-preact'
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
import { h } from 'preact'
|
|
||||||
import { Link } from 'wouter-preact'
|
import { Link } from 'wouter-preact'
|
||||||
|
|
||||||
export default function NotFoundView () {
|
export default function NotFoundView () {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
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'
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
import { h } from 'preact'
|
|
||||||
import { Link } from 'wouter-preact'
|
import { Link } from 'wouter-preact'
|
||||||
|
|
||||||
import './ThemesView.css'
|
import './ThemesView.css'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue