Нет описания

oldj ed2e29ced1 Merge pull request #981 from oldj/dependabot/npm_and_yarn/hono-4.12.12 4 дней назад
.github 8ac5e13b40 Update issue_template.md 1 год назад
.vscode 8a7a1875da refactor: migrate from Chakra UI to Mantine and update related components 1 месяц назад
alfred c0f4e652a4 feat: add search query to alfred workflow 3 лет назад
app b18401ca6f chore: update version to 4.3.0.6137 and refactor notarization handling 1 месяц назад
assets b069faf95f refactor: update app icons 1 месяц назад
screenshots ccb0173c8b update screenshots. 5 лет назад
scripts b18401ca6f chore: update version to 4.3.0.6137 and refactor notarization handling 1 месяц назад
src b18401ca6f chore: update version to 4.3.0.6137 and refactor notarization handling 1 месяц назад
test 0e226a923f refactor: implement upload diagnostics and progress tracking 1 месяц назад
.gitattributes 5efe903aeb Update .gitattributes 6 лет назад
.gitignore 3d561feec4 Update dependencies. 3 лет назад
.prettierignore d4989e27cb Add prettier formatter; update dependencies. 4 лет назад
.prettierrc.json 0bcc4803ab Use useRef for editor. 3 лет назад
LICENSE 60fd133655 Update LICENSE 10 месяцев назад
README.md 2535d2f159 refactor: remove CodeMirror reference from README files 1 месяц назад
README.pl.md 2535d2f159 refactor: remove CodeMirror reference from README files 1 месяц назад
README.zh_hans.md 2535d2f159 refactor: remove CodeMirror reference from README files 1 месяц назад
README.zh_hant.md 2535d2f159 refactor: remove CodeMirror reference from README files 1 месяц назад
package-lock.json 8bff428d2f chore(deps): bump hono from 4.12.7 to 4.12.12 4 дней назад
package.json 8bff428d2f chore(deps): bump hono from 4.12.7 to 4.12.12 4 дней назад
tsconfig.json 8a7a1875da refactor: migrate from Chakra UI to Mantine and update related components 1 месяц назад
typings.d.ts 45fe3f880e refactor: improve layout and state management in TrashcanItem component 1 месяц назад
vite.main.config.mts 8a7a1875da refactor: migrate from Chakra UI to Mantine and update related components 1 месяц назад
vite.render.config.mts 8a7a1875da refactor: migrate from Chakra UI to Mantine and update related components 1 месяц назад
vitest.config.mts ce950ff5d5 refactor: migrated from CodeMirror to CodeJar 1 месяц назад

README.md

Special thanks to:
Warp sponsorship ### [Warp, the intelligent terminal for developers](https://go.warp.dev/SwitchHosts) [Available for MacOS, Linux, & Windows](https://go.warp.dev/SwitchHosts)

SwitchHosts

Homepage: https://switchhosts.vercel.app

SwitchHosts is an App for managing hosts file, it is based on Electron, React, Jotai, Mantine, etc.

Screenshot

Capture

Features

  • Switch hosts quickly
  • Syntax highlight
  • Remote hosts
  • Switch from system tray

Install

Download

You can download the source code and build it yourself, or download the built version from following links:

You can also install the built version using the package manager Chocolatey:

choco install switchhosts

Backup

SwitchHosts stores data at ~/.SwitchHosts (Or folder .SwitchHosts under the current user's home path on Windows), the ~/.SwitchHosts/data folder contains data, while the ~/.SwitchHosts/config folder contains various configuration information.

Develop and build

Development

  • Install Node.js
  • Change to the folder ./, run npm install to install dependented libraries
  • Run npm run dev to start the development server
  • Then run npm run start to start the app for developing or debuging

Build and package

  • It is recommended to use electron-builder for packaging
  • Go to the ./ folder
  • Run npm run build
  • Run npm run make, if everything goes well, the packaged files will be in the ./dist folder.
  • This command may take several minutes to finish when you run it the first time, as it needs time to download dependent files. You can download the dependencies manually here, or Taobao mirror, then save the files to ~/.electron . You can check the Electron Docs for more infomation.

    # build
    npm run build
    
    # make
    npm run make # the packed files will be in ./dist
    

Copyright

SwitchHosts is a free and open source software, it is released under the Apache License.