ip a
iwctl
iwctl device list
iwctl station stationname scan
iwctl station stationname get-networks
iwctl station stationname connect networkname
// resource route component | |
import React from "react"; | |
import { PassThrough } from "node:stream" | |
import fs from "node:fs" | |
import {createReadableStreamFromReadable} from "@remix-run/node" | |
import { defaultQuality,widths,mainImageReadStream,generatedImageReadstream, isThereImage,BadImageResponse } from "../../util/image.server" | |
export const loader = async ({ request }) => { | |
const url = new URL(request.url); | |
const src = url.searchParams.get("src"); |
'use client' | |
import { test } from './server' | |
import { useServerAction } from './hook' | |
export default function Home() { | |
const { data, loading, error, execute: testAction } = useServerAction(test) | |
if (loading) return <div>Loading...</div> | |
if (error) return <div>Error: {error.message}</div> |