Skip to content

uwjx/Open-IM-PC-Web-Demo

Repository files navigation

TypeScript + React + Electron template

Features

  • TypeScript + React

  • Electron

  • Preload Support

    • Also works on production build
    • Provides context sharing between main and renderer with the following two types:
      • APIKey : String Literal Type
      • API : Object Type
    • In renderer process, context objects can be accessed by window.{APIKey}.{keyof API}
    • In preload-side, objects can be exposed to the renderer process by calling contextBridge.exposeInMainWorld({APIKey}, {API})
    • Security issues
      • nodeIntegration is set to false
      • contextIsolation is set to true
  • DevTools Extensions

note: This template uses DevTools Extensions installed in the host's Google Chrome

  • It has been confirmed to work in the following environments: - [ ] Windows - [ ] Mac - [x] Linux

Scripts

  • yarn dev

    • Launch a development server and an electron window
    • Quit by Ctrl-C
  • yarn build

    • Pack the app into dist directory as an installer

Installation

  1. Clone this repository
  2. Run yarn install

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published