housekeeping
This commit is contained in:
@@ -10,7 +10,12 @@ import {
|
|||||||
import Card from "./Card";
|
import Card from "./Card";
|
||||||
import Hand from "./Hand";
|
import Hand from "./Hand";
|
||||||
import Pile from "./Pile";
|
import Pile from "./Pile";
|
||||||
import { GameState, newDeck, shuffle, Hand as THand } from "../types/cards";
|
import {
|
||||||
|
GameState,
|
||||||
|
newDeck,
|
||||||
|
shuffle,
|
||||||
|
Hand as THand,
|
||||||
|
} from "../../../shared/types/cards";
|
||||||
import { createStore, produce, SetStoreFunction, Store } from "solid-js/store";
|
import { createStore, produce, SetStoreFunction, Store } from "solid-js/store";
|
||||||
import api from "../api";
|
import api from "../api";
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Component, For, useContext } from "solid-js";
|
import { Component, For, useContext } from "solid-js";
|
||||||
import Card from "./Card";
|
import Card from "./Card";
|
||||||
import { Hand } from "../types/cards";
|
import { Hand } from "../../../shared/types/cards";
|
||||||
import { GameContext } from "./Game";
|
import { GameContext } from "./Game";
|
||||||
import { produce } from "solid-js/store";
|
import { produce } from "solid-js/store";
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ import { Hono } from "hono";
|
|||||||
import { serveStatic } from "hono/bun";
|
import { serveStatic } from "hono/bun";
|
||||||
import api from "./api";
|
import api from "./api";
|
||||||
import { cors } from "hono/cors";
|
import { cors } from "hono/cors";
|
||||||
|
import { createBunWebSocket } from "hono/bun";
|
||||||
|
|
||||||
const app = new Hono();
|
const app = new Hono();
|
||||||
app.use("*", async (c, next) => {
|
app.use("*", async (c, next) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user