Coder Social home page Coder Social logo

purofle / chatrecord-viewer-frontend Goto Github PK

View Code? Open in Web Editor NEW

This project forked from clansty/chatrecord-viewer

0.0 0.0 0.0 1 MB

聊天记录查看器

License: GNU Affero General Public License v3.0

TypeScript 86.14% CSS 1.05% HTML 2.02% SCSS 10.53% Sass 0.27%

chatrecord-viewer-frontend's Introduction

Chat Record Viewer

聊天记录查看器

本项目是为 Q2TG 所生,设计上的作用是用于查看合并转发的消息记录。可以根据 ResID 获取并展示转发的聊天记录。

使用 Next.JS + React,用了 Antd 的图片放大查看组件。为了防止滥用搭建好的实例,可以设置 secretKey 用于签名校验。

搭建方法

  1. config.example.yaml 复制到 config.yaml,填写相关信息

    cp config.example.yaml config.yaml
    host:
      account: # 用于获取记录的帐号
      password: # 密码
    token: # 随便生成一个密钥,用来校验参数的签名
  2. 安装依赖

    yarn install
  3. 编译 Next.JS

    yarn build
  4. 运行服务

    yarn start
    
  5. 3000 端口暴露出来,建议使用类似 caddy 的软件反代并提供 HTTPS 连接

签名生成

在需要生成访问链接的应用中,使用以下方式生成访问地址的 sign 参数

md5(md5(resId) + token)

该生成算法位于 index.tsx 的第 45 行附近

如果实例部署在 https://example.com,则访问地址为 https://example.com/?res=ResID&sign=签名

chatrecord-viewer-frontend's People

Contributors

clansty avatar

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.