GithubHelp home page GithubHelp logo

wkhxi / electron-vue3 Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 331 KB

A project using Electron and Vue3

JavaScript 0.95% HTML 1.49% TypeScript 49.99% Vue 35.04% CSS 2.50% Python 1.77% C++ 7.36% Objective-C++ 0.91%

electron-vue3's Introduction

electron-vue-test

目录结构

electron-vue3
├─ dist                                       # 打包过程的临时产物
│  ├─ assets
│  ├─ favicon.ico
│  ├─ index.html
│  ├─ mainEntry.js
│  └─ package.json
├─ plugins                                    # 开发环境 Vite 插件和打包 Vite 插件
│  ├─ buildPlugin.ts
│  └─ devPlugin.ts
├─ public
│  └─ favicon.ico
├─ release                                    # 安装包
│  ├─ win-unpacked
│  ├─ builder-debug.yml
│  ├─ builder-effective-config.yaml
│  ├─ latest.yml
│  ├─ test2023 Setup 0.0.0.exe
│  └─ test2023 Setup 0.0.0.exe.blockmap
├─ resource                                   # 外部资源 应用程序图标、第三方类库
│
├─ src
│  ├─ common                                  # 主进程和渲染进程都会用到的公共代码,如一些公用方法
│  ├─ main                                    # 主进程
│  │  ├─ CustomScheme.ts
│  │  └─ mainEntry.ts
│  ├─ native                                  # addon
│  ├─ model                                   # 应用程序的模型文件,如消息类、会话类、用户设置类
│  └─ renderer                                # 渲染进程
│     ├─ assets                               # 字体图标、公共样式、图片
│     ├─ Component                            # 公共组件
│     ├─ store                                # 数据状态
│     ├─ Window                               # 不同窗口入口组件,通过 vue-router 导航,这个目录下的子目录存放对应窗口的子组件
│     ├─ App.vue                              # 渲染进程的入口组件
│     └─ main.ts                              # 渲染进程入口
│
├─ index.html                                 # 渲染进程的入口页面
├─ env.d.ts
├─ env.d.ts
├─ package.json
├─ pnpm-lock.yaml
├─ README.md
├─ tsconfig.json
├─ tsconfig.node.json
└─ vite.config.ts


项目要点


1. vite插件:
      - 构建electron开发环境
      - electron打包

2. 自定义标题栏
      - 最大化
      - 最小化
      - 还原
      - 鼠标拖动

3. 白屏优化

4. 窗口加载慢优化
      - 窗口池
      - window.open

5. SQLite

6. addon

7. electron-updater





electron-vue3's People

Contributors

wkhxi avatar

Watchers

 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.