Coder Social home page Coder Social logo

instant's Introduction

Instant - 一个可加密的实时通信软件

这是一个基于 Electron 和 React 编写的实时通信软件,作为 JavaScript 程序设计课程的课程设计。

用户界面上,使用了 Material Design 作为组件库。

项目接入了 Travis CI 作为持续集成的解决方案,最新版的发布可以在 github 的 release 中获取。

使用方法

安装和运行

在 Windows 上运行 Instant.Setup.*.*.*.exe 来安装,安装后,点击桌面上的 Instant 图标。或者,您也可以直接解压 Instant-*.*.*-win.zip 压缩包,运行 Instant.exe 来启动。但由于 Windows 系统的限制,直接运行可能会导致无法接收系统通知。

注:由于 Mac 的限制,Windows 平台上无法构建 OSX 版本,因此暂时不提供 Mac 版本。

注册

打开后点击“注册”,输入个人信息、设置头像和密码,点击注册。

登录

使用注册后自动填入的账号,并填入设置的密码,点击登录。

添加好友

在左上角输入好友的账号,按回车键并填写打招呼的信息,即可发送申请。等对方同意申请后,便可以发起聊天。

前端的靓号是 9 个 9,欢迎*扰~

发送图片和文件

除了发送文字消息和 Emoji 表情外,Instant 还支持发送文件和图片。只需要将要发送的文件和图片拖入聊天对话框即可。

您也可以直接向输入框内粘贴要发送的图片和文件。

加密聊天

与好友开始聊天后,点击聊天框上方的钥匙按钮(🔑),向对方发送自己的公钥。发送后,对方发来的消息将使用您的公钥进行加密,Instant 会自动使用本地保存的私钥解密。

若您想要向朋友发送加密消息,需要对方也发送公钥。

朋友昵称后方的绿色小锁(🔒)表明已经存储了对方的公钥,这时您向朋友发送的消息将被加密。点击小锁即可取消加密。

每次生成的密钥对将在退出登录后被销毁,因此加密的消息将不再可能再次解密。

删除好友

点击好友信息后方的垃圾桶按钮,即可删除好友。

自动更新

软件将实时检查是否有更新的版本,若有则会进行弹窗提醒。您也可以点击左边的“更新”按钮来手动触发检查。

消息提醒

将主窗口关闭后,Instant 将隐藏在系统托盘。若此时有新消息,则 Instant 图标会开始闪烁,并通过系统通知来进行提示。

开发和打包

开发

运行命令

yarn
yarn start

即可开始开发,Electron 支持热模块替换。

打包

运行命令

yarn package_new

可以进行打包和发布,但 Mac 版本只能在 Mac 平台上进行打包。

instant's People

Contributors

shanqiaosong avatar

Stargazers

Chiteng Ma avatar  avatar

Watchers

James Cloos avatar  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.