Giter VIP home page Giter VIP logo

go-chat-web's Issues

jjw

作者有试过单聊功能吗?
为什么我这里消息一直乱跑,是不是单聊的逻辑不太对呢O_O

看见你突然更新,特地提交一下

素材库

https://www.svgrepo.com/
https://api.dicebear.com/9.x/pixel-art/svg?seed=URSEED

Todo list

router 独立 checked ,升级成v6 checked

鉴权,已登录状态不能访问login checked

收到消息,滴滴提醒 checked 顺手加了发送音效

好友,群列表,可被重复点击,重复向后端发送请求 checked

switch组件,切换用户和群聊,都会向后端请求 本地缓存?但本地缓存又如何判断是否最新?

拆分上传头像组件 checked

添加好友(群),无法立即加载,必须 真·刷新 checked

前端间隔性检查jwt过期时间,示例代码

function decodeJWT(token) {
const base64Url = token.split('.')[1];
const base64 = base64Url.replace(/-/g, '+').replace(/_/g, '/');
const jsonPayload = decodeURIComponent(atob(base64).split('').map(function(c) {
return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
}).join(''));

return JSON.parse(jsonPayload);

}

// 使用函数
const decodedToken = decodeJWT(yourJWTToken);
console.log(decodedToken.exp); // 这里假设你的JWT中有exp claim

分页加载历史聊天记录,参考:https://ant-design.antgroup.com/components/list-cn#listitemmeta

聊天窗口,参考:https://daisyui.com/components/chat/

未读消息,必须点击其他人才能提示;并仅能提示一次

自己能添加自己
自己给自己发消息,会重复消息;
基本
尝试将自己改成"文件传输助手",消息记录存单独表,关闭socket推送机制
高级
接通通义千问API

check表示被我修复了,其他的是问题或者改进的想法,详情可查看我的GitHub项目

谢谢你写的基本模板,让我学习起来挺舒服的,就是这个类式写法让我挺痛苦的,能改的都改成函数,hook式写法了

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.