1 Star 1 Fork 1

momoc/vue-protobuf-websocket-typescript

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
momoc-aurora-momoc momoc 接入MQ 5214a92 8个月前
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

aurora-chat-web-typescript

在线示例:https://server.668628.xyz

一键安装依赖启动

npm install -g vite yarn
# windows 需要进入
# cmd执行一下命令
cmd
yarn
yarn dev

Project setup

yarn install

Compiles and hot-reloads for development

yarn serve

Compiles and minifies for production

yarn build

Run your unit tests

yarn test:unit

Lints and fixes files

yarn lint

Customize configuration

See Configuration Reference.

关于vue的一些路由教程

https://blog.csdn.net/wulala_hei/article/details/80488727

无限滚动组件

https://github.com/keno-lee/vue-tiny-virtual-list/blob/master/README_cn.md

生成proto.js

npx pbjs -t json-module -w commonjs -o src/proto/proto.js src/proto/*.proto

解决long类型问题

const protobuf = require("protobufjs");
protobuf.util.Long = require("long"); // 需要依赖 "long"模块
protobuf.configure();
npx pbjs --ts src/proto/model/ChannelMessage.ts src/proto/ChannelMessage.proto
npx pbjs --ts src/proto/model/SystemMessage.ts src/proto/SystemMessage.proto
npx pbjs --ts src/proto/model/UserMessage.ts src/proto/UserMessage.proto

生成Ts代码

npx pbjs --ts src/proto/model/proto.d.ts src/proto/*.proto

环境变量的使用

https://juejin.cn/post/7094940781726826526#heading-3

表情包开源组件

https://github.com/serebrov/emoji-mart-vue

空文件

简介

配套AuroraChatRoom,前端页面,使用protobuf、vue3、ts、vite 展开 收起
TypeScript 等 4 种语言
取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/aurora-momoc/vue-protobuf-websocket-typescript.git
git@gitee.com:aurora-momoc/vue-protobuf-websocket-typescript.git
aurora-momoc
vue-protobuf-websocket-typescript
vue-protobuf-websocket-typescript
main

搜索帮助