Compare commits
3 Commits
gpio-strea
...
main
Author | SHA1 | Date | |
---|---|---|---|
|
db2007e4b0 | ||
![]() |
a343f74821 | ||
![]() |
ac5f4d2c1e |
10
README.md
10
README.md
@ -1,12 +1,6 @@
|
|||||||
# Firstack
|
# Picobook
|
||||||
|
|
||||||
Firstack is a template repo for a tech stack. This stack includes
|
A website for hosting pico8 projects.
|
||||||
|
|
||||||
- [react](https://react.dev/)
|
|
||||||
- [emotion](https://emotion.sh/)
|
|
||||||
- [fastify](https://fastify.dev/)
|
|
||||||
- [postgres](https://www.postgresql.org/)
|
|
||||||
- [typescript](https://www.typescriptlang.org/)
|
|
||||||
|
|
||||||
## Dependencies
|
## Dependencies
|
||||||
|
|
||||||
|
@ -12,29 +12,29 @@ type Info = {
|
|||||||
|
|
||||||
export const GamePage = () => {
|
export const GamePage = () => {
|
||||||
const {author, slug} = useParams();
|
const {author, slug} = useParams();
|
||||||
const [searchParams, setSearchParams] = useSearchParams();
|
// const [searchParams, setSearchParams] = useSearchParams();
|
||||||
const room = searchParams.get('room');
|
// const room = searchParams.get('room');
|
||||||
const picoRef = useRef<Pico8ConsoleImperatives>(null);
|
const picoRef = useRef<Pico8ConsoleImperatives>(null);
|
||||||
const socket = useWebsocket({
|
// const socket = useWebsocket({
|
||||||
url: `/api/ws/room?room=${room}`,
|
// url: `/api/ws/room?room=${room}`,
|
||||||
// url: "wss://echo.websocket.org",
|
// // url: "wss://echo.websocket.org",
|
||||||
onMessage({message}) {
|
// onMessage({message}) {
|
||||||
// const msg = message as any;
|
// // const msg = message as any;
|
||||||
// if (msg.type === "gpio") {
|
// // if (msg.type === "gpio") {
|
||||||
// if (picoRef.current) {
|
// // if (picoRef.current) {
|
||||||
// const handle = picoRef.current.getPicoConsoleHandle();
|
// // const handle = picoRef.current.getPicoConsoleHandle();
|
||||||
// if (handle) {
|
// // if (handle) {
|
||||||
// console.log("updating pico gpio");
|
// // console.log("updating pico gpio");
|
||||||
// (handle.gpio as any).dontSend = true;
|
// // (handle.gpio as any).dontSend = true;
|
||||||
// handle.gpio.length = 0;
|
// // handle.gpio.length = 0;
|
||||||
// handle.gpio.push(...msg.gpio);
|
// // handle.gpio.push(...msg.gpio);
|
||||||
// (handle.gpio as any).dontSend = false;
|
// // (handle.gpio as any).dontSend = false;
|
||||||
|
// // }
|
||||||
|
// // }
|
||||||
|
// // }
|
||||||
|
// console.log('message', message);
|
||||||
// }
|
// }
|
||||||
// }
|
// })
|
||||||
// }
|
|
||||||
console.log('message', message);
|
|
||||||
}
|
|
||||||
})
|
|
||||||
// const version = searchParams.get('v');
|
// const version = searchParams.get('v');
|
||||||
const [v, setVersion] = useState<string | null>(null);
|
const [v, setVersion] = useState<string | null>(null);
|
||||||
const [info, setInfo] = useState<Info | null>(null);
|
const [info, setInfo] = useState<Info | null>(null);
|
||||||
|
@ -40,6 +40,14 @@
|
|||||||
footer {
|
footer {
|
||||||
max-inline-size: none;
|
max-inline-size: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a,
|
||||||
|
a:hover,
|
||||||
|
a:focus,
|
||||||
|
a:active,
|
||||||
|
a:visited {
|
||||||
|
color: lime;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user