master
yutent 2022-07-14 16:05:30 +08:00
parent 101a9c778b
commit 654ef90926
8 changed files with 24 additions and 55 deletions

16
.vscode/launch.json vendored
View File

@ -1,16 +0,0 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug Main Process",
"type": "node",
"request": "launch",
"cwd": "${workspaceRoot}",
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron",
"windows": {
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron.cmd"
},
"args": ["."]
}
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.7 KiB

After

Width:  |  Height:  |  Size: 24 KiB

View File

@ -1,36 +1,21 @@
<?xml version="1.0" encoding="utf-8"?> <svg version="1.1" id="图层_1" xmlns="http://www.w3.org/2000/svg" x="0" y="0"
<!-- Generator: Adobe Illustrator 21.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> viewBox="0 0 1000 1000" xml:space="preserve">
<svg version="1.1" id="图层_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" <style>
viewBox="0 0 1000 1000" style="enable-background:new 0 0 1000 1000;" xml:space="preserve"> .st1 {
<style type="text/css"> fill: #fff
.st0{fill:#00A0EF;} }
.st1{fill:#FFFFFF;}
.st2{fill:#0195DE;} .st2 {
</style> fill: #0195de
<path class="st0" d="M895.4,974.5H104.6c-43.6-0.1-79-35.5-79.1-79.1V104.6c0.1-43.6,35.5-79,79.1-79.1h790.8 }
c43.6,0.1,79,35.5,79.1,79.1v790.8C974.3,939,939,974.4,895.4,974.5L895.4,974.5z"/> </style>
<path class="st1" d="M155,370.5h90.9c19.8,0,35.6,2,47.4,4c14.6,4.1,27.6,12.3,37.6,23.7c10.2,11.7,18.2,25,23.7,39.5 <path
c5.9,15.8,7.9,35.6,7.9,59.3c0,19.8-2,37.6-7.9,53.4c-5.2,16.2-14,31.1-25.7,43.5c-9.9,9.7-22.2,16.5-35.6,19.8 d="M895.4 974.5H104.6c-43.6-.1-79-35.5-79.1-79.1V104.6c.1-43.6 35.5-79 79.1-79.1h790.8c43.6.1 79 35.5 79.1 79.1v790.8c-.2 43.6-35.5 79-79.1 79.1z"
c-11.9,4-25.7,5.9-43.5,5.9h-94.9V370.5H155z"/> fill="#00a0ef" />
<polygon class="st1" points="406.1,619.6 406.1,370.5 455.5,370.5 556.2,536.6 556.2,370.5 603.7,370.5 603.7,619.6 554.2,619.6 <path class="st1"
453.5,457.5 453.5,619.6 "/> d="M155 370.5h90.9c19.8 0 35.6 2 47.4 4 14.6 4.1 27.6 12.3 37.6 23.7 10.2 11.7 18.2 25 23.7 39.5 5.9 15.8 7.9 35.6 7.9 59.3 0 19.8-2 37.6-7.9 53.4-5.2 16.2-14 31.1-25.7 43.5-9.9 9.7-22.2 16.5-35.6 19.8-11.9 4-25.7 5.9-43.5 5.9h-94.9V370.5h.1zM406.1 619.6V370.5h49.4l100.7 166.1V370.5h47.5v249.1h-49.5L453.5 457.5v162.1zM643.2 538.6l49.4-4c2 15.8 7.9 27.7 17.8 35.6 10.1 8 22.7 12.2 35.6 11.9 12.6.6 25.1-2.9 35.6-9.9 7.3-5.7 11.7-14.4 11.9-23.7 0-5.9-2-9.9-5.9-15.8-4-4-9.9-7.9-17.8-9.9-5.9-2-19.8-5.9-39.5-9.9-20.5-4.1-39.9-12.1-57.3-23.7-15.1-12-23.8-30.2-23.7-49.4.5-12.5 3.9-24.7 9.9-35.6 7.6-11.6 18.7-20.6 31.6-25.7 15.8-6 32.6-8.7 49.4-7.9 31.6 0 55.4 5.9 71.2 19.8s23.7 31.6 25.7 55.4l-49.4 2c-2-11.9-5.9-21.7-13.8-27.7-7.9-5.9-17.8-7.9-31.6-7.9s-25.7 4-33.6 9.9c-5.9 4-7.9 9.9-7.9 15.8s2 11.9 7.9 15.8c5.9 5.9 21.7 9.9 45.5 15.8 23.7 5.9 41.5 11.9 53.4 17.8s21.7 13.8 27.7 25.7c6.7 12.1 10.2 25.7 9.9 39.5 0 13.8-4 27.7-11.9 39.5-8.3 12.3-20 21.9-33.6 27.7-17 6.9-35.1 10.2-53.4 9.9-31.6 0-57.1-5.9-73.2-21.7-18.1-17.9-25.8-41.7-29.9-69.3z" />
<path class="st1" d="M643.2,538.6l49.4-4c2,15.8,7.9,27.7,17.8,35.6c10.1,8,22.7,12.2,35.6,11.9c12.6,0.6,25.1-2.9,35.6-9.9 <path class="st2"
c7.3-5.7,11.7-14.4,11.9-23.7c0-5.9-2-9.9-5.9-15.8c-4-4-9.9-7.9-17.8-9.9c-5.9-2-19.8-5.9-39.5-9.9c-20.5-4.1-39.9-12.1-57.3-23.7 d="M273.6 576.1c7.9-2 15.8-5.9 19.8-9.9 5.9-4 9.9-13.8 13.8-23.7 4-11.9 5.9-25.7 5.9-45.5s-2-33.6-5.9-43.5c-3-8.7-7.7-16.8-13.8-23.7-6.5-6.2-14.8-10.4-23.7-11.9-7.9-2-19.8-2-41.5-2h-21.7V578h37.6c13.7.1 23.6.1 29.5-1.9z" />
c-15.1-12-23.8-30.2-23.7-49.4c0.5-12.5,3.9-24.7,9.9-35.6c7.6-11.6,18.7-20.6,31.6-25.7c15.8-6,32.6-8.7,49.4-7.9 <path class="st2"
c31.6,0,55.4,5.9,71.2,19.8s23.7,31.6,25.7,55.4l-49.4,2c-2-11.9-5.9-21.7-13.8-27.7c-7.9-5.9-17.8-7.9-31.6-7.9s-25.7,4-33.6,9.9 d="M502.1 974.5h393.4c43.6-.1 79-35.5 79.1-79.1V540.6l-156-143.1c11.3 13.5 17.8 30.5 18.5 48.1l-49.4 2c-2-11.9-5.9-21.7-13.8-27.7-7.9-5.9-17.8-7.9-31.6-7.9s-25.7 4-33.6 9.9c-5.9 4-7.9 9.9-7.9 15.8s2 11.9 7.9 15.8c5.9 5.9 21.7 9.9 45.5 15.8s41.5 11.9 53.4 17.8 21.7 13.8 27.7 25.7c6.7 12.1 10.2 25.7 9.9 39.5 0 13.8-4 27.7-11.9 39.5-8.3 12.3-20 21.9-33.6 27.7-17 6.9-35.1 10.2-53.4 9.9-31.6 0-57.1-5.9-73.2-21.7-18-17.8-25.7-41.5-29.7-69.2l49.4-4c2 15.8 7.9 27.7 17.8 35.6 10.1 8 22.7 12.2 35.6 11.9 12.6.6 25.1-2.9 35.6-9.9 7.3-5.7 11.7-14.4 11.9-23.7 0-5.9-2-9.9-5.9-15.8-4-4-9.9-7.9-17.8-9.9-5.9-2-19.8-5.9-39.5-9.9-20.5-4.1-39.9-12.1-57.3-23.7-21.6-17.2-29.5-46.5-19.3-72.2l-49.8-45.6v248.4h-49.4L453.5 457.5v162.1h-47.4V477.8l-51.4-40.1c5.9 15.8 7.9 35.6 7.9 59.3 0 19.8-2 37.6-7.9 53.4-5.2 16.2-14 31.1-25.7 43.5-9.9 9.7-22.2 16.5-35.6 19.8-11.9 4-25.7 5.9-43.5 5.9H155v-6.9l-.4 6.9 347.5 354.9z" />
c-5.9,4-7.9,9.9-7.9,15.8s2,11.9,7.9,15.8c5.9,5.9,21.7,9.9,45.5,15.8c23.7,5.9,41.5,11.9,53.4,17.8s21.7,13.8,27.7,25.7
c6.7,12.1,10.2,25.7,9.9,39.5c0,13.8-4,27.7-11.9,39.5c-8.3,12.3-20,21.9-33.6,27.7c-17,6.9-35.1,10.2-53.4,9.9
c-31.6,0-57.1-5.9-73.2-21.7C655,590,647.3,566.2,643.2,538.6L643.2,538.6z"/>
<path class="st2" d="M273.6,576.1c7.9-2,15.8-5.9,19.8-9.9c5.9-4,9.9-13.8,13.8-23.7c4-11.9,5.9-25.7,5.9-45.5s-2-33.6-5.9-43.5
c-3-8.7-7.7-16.8-13.8-23.7c-6.5-6.2-14.8-10.4-23.7-11.9c-7.9-2-19.8-2-41.5-2h-21.7V578h37.6C257.8,578.1,267.7,578.1,273.6,576.1
L273.6,576.1z"/>
<path class="st2" d="M502.1,974.5h393.4c43.6-0.1,79-35.5,79.1-79.1V540.6l-156-143.1c11.3,13.5,17.8,30.5,18.5,48.1l-49.4,2
c-2-11.9-5.9-21.7-13.8-27.7c-7.9-5.9-17.8-7.9-31.6-7.9s-25.7,4-33.6,9.9c-5.9,4-7.9,9.9-7.9,15.8s2,11.9,7.9,15.8
c5.9,5.9,21.7,9.9,45.5,15.8s41.5,11.9,53.4,17.8s21.7,13.8,27.7,25.7c6.7,12.1,10.2,25.7,9.9,39.5c0,13.8-4,27.7-11.9,39.5
c-8.3,12.3-20,21.9-33.6,27.7c-17,6.9-35.1,10.2-53.4,9.9c-31.6,0-57.1-5.9-73.2-21.7c-18-17.8-25.7-41.5-29.7-69.2l49.4-4
c2,15.8,7.9,27.7,17.8,35.6c10.1,8,22.7,12.2,35.6,11.9c12.6,0.6,25.1-2.9,35.6-9.9c7.3-5.7,11.7-14.4,11.9-23.7
c0-5.9-2-9.9-5.9-15.8c-4-4-9.9-7.9-17.8-9.9c-5.9-2-19.8-5.9-39.5-9.9c-20.5-4.1-39.9-12.1-57.3-23.7
c-21.6-17.2-29.5-46.5-19.3-72.2l-49.8-45.6v248.4h-49.4L453.5,457.5v162.1h-47.4V477.8l-51.4-40.1c5.9,15.8,7.9,35.6,7.9,59.3
c0,19.8-2,37.6-7.9,53.4c-5.2,16.2-14,31.1-25.7,43.5c-9.9,9.7-22.2,16.5-35.6,19.8c-11.9,4-25.7,5.9-43.5,5.9H155v-6.9l-0.4,6.9
L502.1,974.5z"/>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

@ -1,6 +1,6 @@
{ {
"name": "dns-host", "name": "hosts-switch",
"version": "1.2.2", "version": "2.0.0",
"description": "Hosts切换器", "description": "Hosts切换器",
"main": "src/main.js", "main": "src/main.js",
"scripts": { "scripts": {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.4 KiB

After

Width:  |  Height:  |  Size: 24 KiB

View File

@ -90,7 +90,7 @@ app.once('ready', () => {
win = null win = null
}) })
win.openDevTools() // win.openDevTools()
// 然后加载应用的 index.html // 然后加载应用的 index.html
win.loadURL('app://local/index.html') win.loadURL('app://local/index.html')