Giter Site home page Giter Site logo

hosts-switch's Introduction

HostsSwitch

HostsSwitch

介绍

这是一个为了练手做的小工具。看见aardio官方有一个修改版的hostsSwitchHelper,于是学习了一下实现。
自己重头设计实现了界面和逻辑,逻辑都在前端,只有涉及保存文件之类放到aardio里。
前端使用LuLu UI+LESS+TypeScript实现。

功能与SwitchHosts!类似,就是方便修改系统 Hosts 信息的小工具。与之不同的是,每个项都是一份独立的 Host 信息,可以自己手动输入,也可以设置url参数,方便网络Hosts更新(默认会走系统代理设置)。侧边Switch开关开启时会自动将所有开启的数据合并,然后存入系统的Hosts文件中。

目录

dist:存放一份编译后的exe应用程序
libaardio的用户库文件存放目录
web:前端编译后的文件,aardio打包使用的文件
web_source:前端项目源码。使用parcel工具

修改生成

  • web_source目录中执行 npm i 安装依赖
  • 安装完成后,执行 npm run dev 启动项目,然后在aardio中同时启动,此时aardio的页面会访问本地的前端项目,可以实时修改查看(不知道是aardio不兼容parcel还是本来就是如此,在浏览器直接访问aardio的依赖会报错导致无法正常显示程序)。要确保 6060 端口未被占用,否则需要修改响应代码
  • 修改完成后使用 npm run build 编译,程序会自动生成到父级的web目录下

hosts-switch's People

Contributors

lnncoco 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.