Giter Club home page Giter Club logo

integrity-archives's Introduction

🔥廉情档案补采录入

⭐Using vue-cli 3 and Electron 9 built a modular desktop application template. Convenient packaging and program language switching, with a custom borderless window, including vue-router, vue-i18n, axios, electron-builder and more common components, as well as some demo functions.

npm GitHub package.json version Build Status codebeat badge license GitHub code size in bytes GitHub last commit

⚡-Introduction-

🚀A lightweight, modular template. Added common plugins and demo features. You can happily use the svg icon in this project, use the i18n multi-language comfortably, switch the application language (including the native components and the browser page), make network requests more convenient.

Document

📘These:

  • 🍊Basic: vue-cli & electron-builder
  • 🌕Router: vue-router
  • 🍁Multilingual: vue-i18n
  • 🌝Network Requester: axios
  • 🚅Quick package: electron-builder
  • 💚css preprocessor: less

🔍And:

  • ⛅A custom window without native borders
  • 🎨Modular design with object-oriented writing (mainProcess)
  • 🍰Language switching for the entire program
  • 🐳An svg component based on svg-sprite-loader
  • 🏀Electron 8: Demo of some apis.
  • 🍉vue-i18n: Added demonstration of language switching, including language switching effect of electron native menu.
  • 🍩axios: Added request demo.
  • 🌼Use ESlint for code style specification.
  • 🌠and vuex, vue-router
  • 🍖I did not use any ui library, you can add as you like.

🏆-Start-

  • & = or
  1. 🍬Clone this repository

  2. 🍮Enter the directory

cd vue-cli-electron-template
  1. 🍙Install dependencies (yarn is recommended)
yarn & npm install
  1. 🌽Start application
yarn go & npm run go
  1. 🍭Packaging
yarn packapp & npm run packapp

🍌-Structure-

⚽files:

  • 🎰./vue.config.js: Contains vue path alias, electron-builder, i18n and other related configurations.
  • src/background.js: Main process entry file.
  • 🐐src/mainProcess/appManager.js: Management of the main process.
  • 🚧src/main.js: Vue entry file.
  • 🏨src/backend.js: network request interface and axios configuration.

🍀Directories:

  • 🌲src/locales: i18n language translation file directory.
  • 🐓src/mainProcess: Main process modular file directory.
  • 🙀src/mainProcess/events: ipc and app event manager.
  • 🌴src/mainProcess/menus: Menu manager.
  • 🐏src/mainProcess/plugins: Currently only translator.
  • 🙉src/mainProcess/windows: windows and windows manager.

🌹Thanks

integrity-archives's People

Watchers

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