上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 20 下一页
摘要: md-editor-rt是一个react markdown编辑框架。 import { useState } from "react"; import { MdEditor } from "md-editor-rt"; import "md-editor-rt/lib/style.css"; exp 阅读全文
posted @ 2024-08-04 15:52 卓能文 阅读(162) 评论(0) 推荐(0)
摘要: import { useForm } from "react-hook-form"; import { zodResolver } from "@hookform/resolvers/zod"; import i18next from "i18next"; import { z } from "zo 阅读全文
posted @ 2024-08-03 15:18 卓能文 阅读(58) 评论(0) 推荐(0)
摘要: 地址:Just-validate package.json: { "name": "vanilla-template", "version": "1.0.0", "type": "module", "scripts": { "dev": "farm", "start": "farm", "build 阅读全文
posted @ 2024-07-31 11:16 卓能文 阅读(22) 评论(0) 推荐(0)
摘要: formvalidation是一个比较好用的浏览器端验证框架。下面是简单示例。 安装依赖: pnpm i @form-validation/bundle pnpm i @form-validation/styles pnpm i @form-validation/plugin-tachyons in 阅读全文
posted @ 2024-07-29 10:35 卓能文 阅读(26) 评论(0) 推荐(0)
摘要: Cargo.toml: [package] name = "wasmdemo" version = "0.1.0" edition = "2021" [dependencies] sycamore = "0.9.0-beta.2" src/main.rs: use sycamore::prelude 阅读全文
posted @ 2024-07-26 20:51 卓能文 阅读(18) 评论(0) 推荐(0)
摘要: sudo fuser -k 8080/tcp 阅读全文
posted @ 2024-07-26 17:56 卓能文 阅读(11) 评论(0) 推荐(0)
摘要: main.go: package main import ( "fmt" "net/http" "time" ) var indexHtml = `<!DOCTYPE html> <html> <body> <h1>SSE Messages</h1> <button id="stop">Stop</ 阅读全文
posted @ 2024-07-25 03:08 卓能文 阅读(56) 评论(0) 推荐(0)
摘要: Cargo.toml: [package] name = "sse" version = "0.1.0" edition = "2021" [dependencies] futures-util = "0.3.30" poem = { version = "3.0.3", features = [" 阅读全文
posted @ 2024-07-24 12:05 卓能文 阅读(47) 评论(0) 推荐(0)
摘要: Cargo.toml: [package] name = "sse" version = "0.1.0" edition = "2021" [dependencies] axum = "0.7.5" axum-extra = { version = "0.9.3", features = ["typ 阅读全文
posted @ 2024-07-24 09:05 卓能文 阅读(130) 评论(0) 推荐(0)
摘要: package main import ( "bufio" "fmt" "log" "time" "github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2/middleware/cors" "github.com/valyala/fasth 阅读全文
posted @ 2024-07-23 12:11 卓能文 阅读(116) 评论(0) 推荐(0)
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 20 下一页