17 changed files with
0 additions and
22 deletions
|
|
|
|
@ -1,5 +1,3 @@
|
|
|
|
|
import { h } from 'preact'
|
|
|
|
|
|
|
|
|
|
export default function LocalFileSelector ({ theme, setLocation, buildLink }) {
|
|
|
|
|
const fileInputHandler = ({ target }) => {
|
|
|
|
|
const file = target.files[0]
|
|
|
|
|
|
|
|
|
|
@ -1,5 +1,3 @@
|
|
|
|
|
import { h } from 'preact'
|
|
|
|
|
|
|
|
|
|
export default function TargetURLSelector ({ theme, setLocation, buildLink }) {
|
|
|
|
|
const urlRE = /^(http|https):\/\/[^ "]+$/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -1,4 +1,3 @@
|
|
|
|
|
import { h } from 'preact'
|
|
|
|
|
import { Link } from 'wouter-preact'
|
|
|
|
|
|
|
|
|
|
import {
|
|
|
|
|
|
|
|
|
|
@ -1,4 +1,3 @@
|
|
|
|
|
import { h } from 'preact'
|
|
|
|
|
import { useEffect, useRef, useState } from 'preact/hooks'
|
|
|
|
|
|
|
|
|
|
import MenuButton from './MenuButton/MenuButton'
|
|
|
|
|
|
|
|
|
|
@ -1,5 +1,3 @@
|
|
|
|
|
import { h } from 'preact'
|
|
|
|
|
|
|
|
|
|
import * as s from './MenuButton.module.scss'
|
|
|
|
|
|
|
|
|
|
export default function MenuButton ({ onClick }) {
|
|
|
|
|
|
|
|
|
|
@ -1,4 +1,3 @@
|
|
|
|
|
import { h } from 'preact'
|
|
|
|
|
import { useEffect, useState } from 'preact/hooks'
|
|
|
|
|
|
|
|
|
|
import TextMessage from './TextMessage'
|
|
|
|
|
|
|
|
|
|
@ -1,4 +1,3 @@
|
|
|
|
|
import { h } from 'preact'
|
|
|
|
|
import { useEffect, useRef, useState } from 'preact/hooks'
|
|
|
|
|
|
|
|
|
|
import TextMessage from './TextMessage'
|
|
|
|
|
|
|
|
|
|
@ -1,5 +1,3 @@
|
|
|
|
|
import { h } from 'preact'
|
|
|
|
|
|
|
|
|
|
export default function TextMessage ({ style, text }) {
|
|
|
|
|
const defaultContent = (
|
|
|
|
|
<span className={['message', style].join(' ')}>
|
|
|
|
|
|
|
|
|
|
@ -1,4 +1,3 @@
|
|
|
|
|
import { h } from 'preact'
|
|
|
|
|
import { useState, useEffect } from 'preact/hooks'
|
|
|
|
|
|
|
|
|
|
import CheapGlkOte from 'cheap-glkote'
|
|
|
|
|
|
|
|
|
|
@ -1,4 +1,3 @@
|
|
|
|
|
import { h } from 'preact'
|
|
|
|
|
import { Link } from 'wouter-preact'
|
|
|
|
|
|
|
|
|
|
const fail = (details) => (
|
|
|
|
|
|
|
|
|
|
@ -1,4 +1,3 @@
|
|
|
|
|
import { h } from 'preact'
|
|
|
|
|
import { useState, useEffect } from 'preact/hooks'
|
|
|
|
|
|
|
|
|
|
import { engineByFilename } from './common/engines'
|
|
|
|
|
|
|
|
|
|
@ -1,5 +1,3 @@
|
|
|
|
|
import { h } from 'preact'
|
|
|
|
|
|
|
|
|
|
export default function ThemeSelector ({ themeEngine }) {
|
|
|
|
|
const options = themeEngine.themes.map((theme) => (
|
|
|
|
|
<option
|
|
|
|
|
|
|
|
|
|
@ -1,4 +1,3 @@
|
|
|
|
|
import { h } from 'preact'
|
|
|
|
|
import { Link } from 'wouter-preact'
|
|
|
|
|
|
|
|
|
|
import GameEntry from
|
|
|
|
|
|
|
|
|
|
@ -1,4 +1,3 @@
|
|
|
|
|
import { h } from 'preact'
|
|
|
|
|
import { Link } from 'wouter-preact'
|
|
|
|
|
|
|
|
|
|
import {
|
|
|
|
|
|
|
|
|
|
@ -1,4 +1,3 @@
|
|
|
|
|
import { h } from 'preact'
|
|
|
|
|
import { Link } from 'wouter-preact'
|
|
|
|
|
|
|
|
|
|
export default function NotFoundView () {
|
|
|
|
|
|
|
|
|
|
@ -1,4 +1,3 @@
|
|
|
|
|
import { h } from 'preact'
|
|
|
|
|
import { useState, useEffect } from 'preact/hooks'
|
|
|
|
|
|
|
|
|
|
import UrlPlayer from '~/src/components/Player/UrlPlayer'
|
|
|
|
|
|
|
|
|
|
@ -1,4 +1,3 @@
|
|
|
|
|
import { h } from 'preact'
|
|
|
|
|
import { Link } from 'wouter-preact'
|
|
|
|
|
|
|
|
|
|
import './ThemesView.css'
|
|
|
|
|
|