Giter Club home page Giter Club logo

dokitstudio's Introduction

DoKitStudio诞生背景

旧版本一机多控使用的是手机与手机直接通信的方式进行一机多控,在使用过程中发现在链接多台设备时主机负载变高对性能有一定影响。同时因为网络连接断开等问题,在这种模式下,主机停止服务后全部从机也断开连接恢复过程需要逐一重新建立连接。为了解决在多台设备进行一机多控的稳定/体验问题。引入其他服务,开起了DoKit Studio的研发,DoKit Studio 是一款跨平台可运行的PC桌面程序。在一机多控中承担通信核心功能。

项目简介

DoKitStudio是一个基于electron-vite-vue架构的桌面端项目,目前主要服务于DoKit项目的一机多控功能

为了保证开发期间的快速构建我们使用electron-vite-vue架构 https://github.com/electron-vite/electron-vite-vue

UI框架使用了ArcoDesign https://arco.design/vue/docs/start

整体项目结构如下

packages
├── main
│   ├── autoTest
│   │   ├── dataService.ts
│   │   ├── dataStore.ts
│   │   ├── index.ts
│   │   ├── multiControl.ts
│   │   ├── requestPool.ts
│   │   └── userInterfaceAutomation.ts
│   ├── index.ts
│   ├── socketServer
│   │   ├── Client.ts
│   │   ├── ProxyServer.ts
│   │   ├── cli.ts
│   │   ├── index.ts
│   │   ├── start.ts
│   │   └── utils.ts
│   ├── util.ts
│   └── vite.config.ts
├── preload
│   ├── index.ts
│   ├── loading.ts
│   ├── utils.ts
│   └── vite.config.ts
└── renderer
    ├── index.html
    ├── public
    │   ├── dokit_pc_logo.ico
    │   ├── electron-vite-vue.gif
    │   ├── favicon.ico
    │   └── images
    │       ├── node.png
    │       └── quick-start.gif
    ├── src
    ├── tsconfig.json
    └── vite.config.ts

核心功能主要是socket中转服务 packages/main/socketServer 以及一机多控处理逻辑 /packages/main/autoTest/multiControl.ts

Quick Start

// 安装依赖
yarn

// dev构建
yarn dev

// 代码打包
yarn build

备注

为了确保打包成功 我们使用了yarnrc指定了npm源和一些electron的镜像地址

dokitstudio's People

Contributors

adamcaoqaq avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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