Giter Site home page Giter Site logo

scriptsboy / hostsdock Goto Github PK

View Code? Open in Web Editor NEW

This project forked from eshengsky/hostsdock

0.0 2.0 0.0 2.59 MB

:tada: Store, manage and switch your hosts quickly. 存储、管理、快速切换你的hosts。

Home Page: http://eshengsky.github.io/HostsDock/

License: MIT License

HTML 2.64% Inno Setup 1.01% JavaScript 95.68% CSS 0.67%

hostsdock's Introduction

HostsDock

中文文档

🎉 Store, manage and switch your hosts quickly. Especially suitable for developers who need to switch frequently between development, test and production environment. Based on Node.js and Electron.

https://eshengsky.github.io/HostsDock/

UI review

image

Features

  • Support for both local and remote scheme.
  • Support for hosts syntax highlighting.
  • Provide search and replace functions.
  • Click on the line number can quickly select the entire line.
  • Click on the the '#' button before line number can quickly comment/uncomment.
  • Original folding syntax, using #region and #endregion can create a folding hosts block.
  • Support for testing ips in hosts with ping command.
  • The program will automatically call CMD (or terminal) to refresh the hosts so that the changes will take effect immediately.
  • Support system tray to quickly switch hosts.
  • Multi-language support (English, Simplified Chinese, traditional Chinese).

Compatibility

Support OS X, Windows and Linux platform, see more details in Supported Platforms.

🎁 Download

Quick start

Firstly be sure you have installed Node.js and NPM successfully.

Install bower global

$ npm install -g bower

Install dependency

$ npm install
$ bower install

Start app

$ npm start

To start app with debug model, use:

$ npm run dev

Enjoy it! 😄

How to package

We use electron-packager package the application to facilitate the distribution of it.

Install electron-packager global

$ npm install -g electron-packager

Package app

After finished all operations in Quick start, go into the app folder, execute:

$ npm run package

Attentions

  • During packing electron-packager will download all required files and cache them in ~/.electron folder(user/your_user_name/.electron in Windows), it may be very slow, I suggest you to manually download them into the folder through some download tool (the required files see Electron Release).
  • Packing Darwin app in Windows may fail (even if there is no error, packaged application may also be unable to run in OS X), there seems no nice solution now, I suggest you to package Darwin app on non-Windows platform. See more details in Issue 164.

License

The MIT License (MIT)

Copyright (c) 2017 Sky

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

hostsdock's People

Contributors

edmael avatar eshengsky avatar

Watchers

 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.