- {isRoomCreated ? '实时编辑,对方可以同步看到' : '输入要传输的文本内容'} -
- {connectedUsers > 1 && ( -房间码
-输入6位房间码来获取文字内容
-# 进入前端目录 +cd chuan-next + +# 安装依赖 +yarn install + +# 构建静态文件 +yarn build:ssg + +# 重新构建 Go 项目以嵌入前端文件 +cd .. +go build -o file-transfer-server ./cmd+
提示: 构建完成后刷新页面即可看到完整的前端界面。
+前端文件未嵌入,请先构建前端项目。
+运行以下命令构建前端:
+cd chuan-next && yarn build:ssg+ + + `)) +} diff --git a/internal/web/static/.gitkeep b/internal/web/static/.gitkeep new file mode 100644 index 0000000..ee68a30 --- /dev/null +++ b/internal/web/static/.gitkeep @@ -0,0 +1,3 @@ +# Static Files Directory + +This directory contains static files that will be embedded into the Go binary.