housekeeping

This commit is contained in:
2025-08-26 18:37:27 -04:00
parent 0f015841ff
commit e5f432dc98
14 changed files with 32 additions and 77 deletions

View File

@@ -1,7 +1,7 @@
import { Component, createResource, JSX, Suspense } from "solid-js";
import { Component, Suspense } from "solid-js";
import type { Card } from "@games/shared/cards";
import { Clickable, Stylable } from "./toolbox";
import { Card } from "../../../shared/cards";
const cardToSvgFilename = (card: Card) => {
if (card.kind == "joker") {

View File

@@ -1,9 +1,9 @@
import { Accessor, createContext, useContext } from "solid-js";
import {
import type {
SimpleAction,
SimplePlayerView,
} from "../../../server/src/games/simple";
import { me, profile } from "../profile";
} from "@games/server/src/games/simple";
import { me, profile } from "~/profile";
import Hand from "./Hand";
import Pile from "./Pile";
import { TableContext } from "./Table";

View File

@@ -1,5 +1,5 @@
import { Component, For } from "solid-js";
import type { Card as TCard, Hand as THand } from "../../../shared/cards";
import type { Card as TCard, Hand as THand } from "@games/shared/cards";
import Card from "./Card";
import { Stylable } from "./toolbox";

View File

@@ -1,8 +1,8 @@
import { createSignal, useContext } from "solid-js";
import { playerColor, profile } from "../profile";
import { playerColor, profile } from "~/profile";
import { TableContext } from "./Table";
import { Stylable } from "./toolbox";
import { createObservable, createObservableWithInit } from "../fn";
import { createObservable, createObservableWithInit } from "~/fn";
export default (props: { playerKey: string } & Stylable) => {
const table = useContext(TableContext);

View File

@@ -1,20 +1,19 @@
import type { TWsIn, TWsOut } from "@games/server/src/table";
import { fromPromise, Stream } from "kefir";
import {
Accessor,
createContext,
createEffect,
createResource,
createSignal,
For,
onCleanup,
Show,
} from "solid-js";
import { TWsIn, TWsOut } from "../../../server/src/table";
import api, { fromWebsocket } from "../api";
import { createObservable, createObservableWithInit, cx } from "../fn";
import { me } from "../profile";
import api, { fromWebsocket } from "~/api";
import { createObservable, createObservableWithInit, cx } from "~/fn";
import { me } from "~/profile";
import Game from "./Game";
import Player from "./Player";
import { fromPromise, Stream } from "kefir";
export const TableContext = createContext<{
view: Accessor<any>;