兼容mac;优化克隆
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 5.2 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 8.7 KiB |
BIN
icons/app.icns
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 59 KiB |
|
@ -1 +1,36 @@
|
|||
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1567136629282" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2211" width="512" height="512" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><style type="text/css"></style></defs><path d="M544.8762021 123.11097545c-136.98417543 0-263.00961683 71.23177122-328.76202103 186.2984786-5.47936702 10.95873403 0 21.91746807 5.47936701 27.39683508 10.95873403 5.47936702 21.91746807 5.47936702 27.39683509-5.47936701 60.27303719-104.10797332 175.33974455-169.86037754 295.88581893-169.86037753 191.7778456 0 345.20012208 153.42227648 345.20012209 345.20012208 0 115.06670737-60.27303719 219.17468069-147.94290946 279.44771788 0-43.83493614-32.8762021-76.71113825-76.71113825-76.71113824-43.83493614 0-76.71113825 32.8762021-76.71113823 76.71113824 0 21.91746807 10.95873403 43.83493614 27.39683507 54.79367017-21.91746807 5.47936702-43.83493614 5.47936702-71.23177122 5.47936702-98.62860631 0-191.7778456-43.83493614-257.53024979-115.06670738-5.47936702-10.95873403-21.91746807-10.95873403-27.39683511 0-10.95873403 5.47936702-10.95873403 21.91746807 0 27.39683511C331.18088843 840.90805472 435.28886175 890.22235789 544.8762021 890.22235789c213.69531367 0 383.55569122-169.86037754 383.55569122-383.55569122s-169.86037754-383.55569122-383.55569122-383.55569122z" fill="#7dc5eb" p-id="2212"></path><path d="M298.30468633 594.33653895c5.47936702-16.43810105 5.47936702-32.8762021 5.47936702-54.79367018s0-43.83493614-10.95873404-60.27303718c0-10.95873403-10.95873403-27.39683508-21.91746808-38.35556912-10.95873403-10.95873403-21.91746807-16.43810105-38.35556911-21.91746808-10.95873403-5.47936702-21.91746807-5.47936702-43.83493614-5.47936702H95.56810668v252.0508828h93.1492393c16.43810105 0 32.8762021 0 43.83493614-5.47936702 16.43810105-5.47936702 27.39683508-10.95873403 38.35556911-21.91746806 10.95873403-10.95873403 21.91746807-27.39683508 27.3968351-43.83493614z m-49.31430316-10.95873404c-5.47936702 10.95873403-10.95873403 21.91746807-16.43810105 27.39683508-5.47936702 5.47936702-10.95873403 5.47936702-16.43810105 10.95873405H144.88240984v-164.38101052H210.63481405c10.95873403 0 16.43810105 5.47936702 21.91746807 10.95873403 5.47936702 5.47936702 10.95873403 16.43810105 16.43810105 27.39683509 0 10.95873403 5.47936702 21.91746807 5.47936701 43.83493613s-5.47936702 32.8762021-5.47936701 43.83493614zM495.56189895 665.56831017h54.79367017V413.51742737h-49.31430315v169.86037755L396.93329263 413.51742737H347.61898949v252.0508828h49.31430314v-164.38101052zM692.81911157 627.21274105c-16.43810105 0-27.39683508-5.47936702-38.35556912-10.95873403s-16.43810105-21.91746807-16.43810105-38.35556913l-49.31430315 5.47936703c5.47936702 27.39683508 10.95873403 49.31430315 32.8762021 65.7524042 16.43810105 16.43810105 43.83493614 21.91746807 71.23177122 21.91746806 21.91746807 0 38.35556912-5.47936702 54.79367018-10.95873403s27.39683508-16.43810105 32.8762021-27.39683508c5.47936702-10.95873403 10.95873403-27.39683508 10.95873403-38.35556912 0-16.43810105-5.47936702-27.39683508-10.95873403-38.35556913-5.47936702-10.95873403-16.43810105-21.91746807-27.39683508-27.39683508-10.95873403-5.47936702-27.39683508-10.95873403-54.79367018-16.43810105s-38.35556912-10.95873403-49.31430316-16.43810105c-5.47936702-5.47936702-5.47936702-10.95873403-5.47936701-16.43810105 0-5.47936702 0-10.95873403 5.47936701-16.43810106 16.43810105-10.95873403 27.39683508-10.95873403 38.35556912-10.95873403 16.43810105 0 27.39683508 5.47936702 32.8762021 10.95873403 10.95873403 0 10.95873403 10.95873403 16.43810105 27.39683509h49.31430317c0-21.91746807-10.95873403-43.83493614-27.39683509-54.79367017-16.43810105-16.43810105-38.35556912-21.91746807-71.23177123-21.91746808-21.91746807 0-38.35556912 5.47936702-49.31430315 10.95873404-16.43810105 5.47936702-21.91746807 16.43810105-32.8762021 27.39683509-5.47936702 0-5.47936702 16.43810105-5.47936702 27.39683509 0 21.91746807 5.47936702 38.35556912 21.91746807 49.31430315 10.95873403 10.95873403 27.39683508 16.43810105 54.79367016 27.39683508 21.91746807 5.47936702 38.35556912 5.47936702 43.83493614 10.95873404 10.95873403 5.47936702 16.43810105 5.47936702 16.43810105 10.95873403 5.47936702 5.47936702 5.47936702 10.95873403 5.47936703 16.43810106 0 10.95873403-5.47936702 16.43810105-10.95873404 21.91746807-10.95873403 5.47936702-21.91746807 10.95873403-38.35556912 10.95873403z" fill="#7dc5eb" p-id="2213"></path></svg>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 21.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<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"
|
||||
viewBox="0 0 1000 1000" style="enable-background:new 0 0 1000 1000;" xml:space="preserve">
|
||||
<style type="text/css">
|
||||
.st0{fill:#00A0EF;}
|
||||
.st1{fill:#FFFFFF;}
|
||||
.st2{fill:#0195DE;}
|
||||
</style>
|
||||
<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"/>
|
||||
<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
|
||||
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
|
||||
c-11.9,4-25.7,5.9-43.5,5.9h-94.9V370.5H155z"/>
|
||||
<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
|
||||
453.5,457.5 453.5,619.6 "/>
|
||||
<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
|
||||
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
|
||||
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
|
||||
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
|
||||
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>
|
||||
|
|
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 3.0 KiB |
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "dns-host",
|
||||
"version": "1.1.3",
|
||||
"version": "1.1.4",
|
||||
"description": "伪域名解析",
|
||||
"main": "src/main.js",
|
||||
"scripts": {
|
||||
|
@ -26,7 +26,10 @@
|
|||
"buildResources": "icons",
|
||||
"output": "build"
|
||||
},
|
||||
"files": ["src/**/*", "node_modules/iofs/*"],
|
||||
"files": [
|
||||
"src/**/*",
|
||||
"node_modules/iofs/*"
|
||||
],
|
||||
"mac": {
|
||||
"category": "public.app-category.developer-tools",
|
||||
"target": "dmg",
|
||||
|
|
|
@ -1 +1 @@
|
|||
html{font-size:1vw;width:100%;height:100%}body{position:fixed;left:0;top:0;display:flex;width:100%;height:100%;line-height:1.5;font-size:1.4rem;color:#62778d}.layout-left{display:flex;flex-direction:column;width:18rem;height:64rem;background:#526273}.layout-left wc-scroll{flex:1}.layout-left .domain-list{width:100%}.layout-left .domain-list .item{display:flex;justify-content:flex-end;align-items:center;height:4rem;padding:0 2rem 0 1rem;color:#f3f5fb;cursor:pointer;transition:background .1s ease-in-out}.layout-left .domain-list .item wc-icon{--size:1.2rem;margin:auto -1.5rem auto .5rem;color:#7e909a}.layout-left .domain-list .item:hover,.layout-left .domain-list .item.active{background:#62778d}.layout-left .domain-list .item.active{border-left:0.3rem solid #ffb618;color:#ffb618;font-weight:bold}.layout-left .domain-list .item.blank{justify-content:center;cursor:default}.layout-left .domain-list .item.blank:hover{background:none}.layout-left .action{display:flex;align-items:center;height:5rem;padding:0 1rem}.layout-right{flex:1;display:flex;flex-direction:column;background:#f7f8fb}.layout-right .toolbar{display:flex;align-items:center;justify-content:space-between;height:4rem;padding:0 1.5rem;background:#e8ebf4;box-shadow:0 0.2rem 0.5rem rgba(0,0,0,0.1)}.layout-right .toolbar wc-input{width:20rem}.layout-right .main{overflow:hidden;flex:1;display:flex;flex-direction:column;margin:2rem 1rem;padding:0 .5rem;background:#fff}.layout-right .thead{display:flex;align-items:center;justify-content:center;height:4rem;margin-bottom:.8rem;border-bottom:0.1rem solid #e8ebf4;text-align:center}.layout-right .thead span{flex:1}.layout-right .thead .long{flex:1.5}.layout-right wc-scroll{flex:1}.layout-right .record-list{width:100%;line-height:4rem}.layout-right .record-list .item{display:flex;justify-content:center;align-items:center;height:4rem;padding:0 1rem;border-bottom:0.1rem solid #e8ebf4;text-align:center}.layout-right .record-list .item wc-input,.layout-right .record-list .item span,.layout-right .record-list .item section{flex:1}.layout-right .record-list .item .long{flex:1.5}.layout-right .record-list .item section{display:flex;align-items:center;justify-content:center}.layout-right .record-list .item wc-button{margin-left:.5rem}.layout-right .record-list .item:last-child{border-bottom:none}.permission-error{position:fixed;left:0;top:0;z-index:102401;display:flex;flex-direction:column;align-items:center;width:100%;height:100%;padding:5rem;background:rgba(255,233,233,0.95);-webkit-backdrop-filter:blur(0.5rem);backdrop-filter:blur(0.5rem)}.permission-error pre{font-family:'Courier New', Courier, monospace;font-size:1.6rem;color:#eb3b48}.permission-error fieldset{width:60rem;padding:0 3rem 3rem;border:0.1rem solid #ffb618;border-radius:.8rem}.permission-error fieldset legend{padding:0 1rem;font-size:1.6rem}.permission-error fieldset dt{margin-top:2rem;font-weight:bold}.permission-error fieldset code{display:block;padding:.8rem 1rem;margin-top:.8rem;border-left:0.3rem solid #dae1e9;background:rgba(255,255,255,0.3);font-family:'Courier New', Courier, monospace}.permission-error.show{display:flex}.context-menu{display:flex;flex-direction:column;width:10rem;padding:.5rem 0;background:#fff}.context-menu .item{height:3rem;line-height:3rem;padding:0 1.5rem;cursor:pointer}.context-menu .item:hover{background:#f2f5fc}
|
||||
html{font-size:1vw;width:100%;height:100vh}body{position:fixed;left:0;top:0;display:flex;width:100%;height:100%;line-height:1.5;font-size:1.4rem;color:#62778d}.layout-left{display:flex;flex-direction:column;width:18rem;height:100vh;background:#526273}.layout-left wc-scroll{flex:1}.layout-left .domain-list{width:100%}.layout-left .domain-list .item{display:flex;justify-content:flex-end;align-items:center;height:4rem;padding:0 2rem 0 1rem;color:#f3f5fb;cursor:pointer;transition:background .1s ease-in-out}.layout-left .domain-list .item wc-icon{--size:1.2rem;margin:auto -1.5rem auto .5rem;color:#7e909a}.layout-left .domain-list .item:hover,.layout-left .domain-list .item.active{background:#62778d}.layout-left .domain-list .item.active{border-left:0.3rem solid #ffb618;color:#ffb618;font-weight:bold}.layout-left .domain-list .item.blank{justify-content:center;cursor:default}.layout-left .domain-list .item.blank:hover{background:none}.layout-left .action{display:flex;align-items:center;height:5rem;padding:0 1rem}.layout-right{flex:1;display:flex;flex-direction:column;background:#f7f8fb}.layout-right .toolbar{display:flex;align-items:center;justify-content:space-between;height:4rem;padding:0 1.5rem;background:#e8ebf4;box-shadow:0 0.2rem 0.5rem rgba(0,0,0,0.1)}.layout-right .toolbar wc-input{width:20rem}.layout-right .main{overflow:hidden;flex:1;display:flex;flex-direction:column;margin:2rem 1rem;padding:0 .5rem;background:#fff}.layout-right .thead{display:flex;align-items:center;justify-content:center;height:4rem;margin-bottom:.8rem;border-bottom:0.1rem solid #e8ebf4;text-align:center}.layout-right .thead span{flex:1}.layout-right .thead .long{flex:1.5}.layout-right wc-scroll{flex:1}.layout-right .record-list{width:100%;line-height:4rem}.layout-right .record-list .item{display:flex;justify-content:center;align-items:center;height:4rem;padding:0 1rem;border-bottom:0.1rem solid #e8ebf4;text-align:center}.layout-right .record-list .item wc-input,.layout-right .record-list .item span,.layout-right .record-list .item section{flex:1}.layout-right .record-list .item .long{flex:1.5}.layout-right .record-list .item section{display:flex;align-items:center;justify-content:center}.layout-right .record-list .item wc-button{margin-left:.5rem}.layout-right .record-list .item:last-child{border-bottom:none}.permission-error{position:fixed;left:0;top:0;z-index:102401;display:flex;flex-direction:column;align-items:center;width:100%;height:100%;padding:5rem;background:rgba(255,233,233,0.95);-webkit-backdrop-filter:blur(0.5rem);backdrop-filter:blur(0.5rem)}.permission-error pre{font-family:'Courier New', Courier, monospace;font-size:1.6rem;color:#eb3b48}.permission-error fieldset{width:60rem;padding:0 3rem 3rem;border:0.1rem solid #ffb618;border-radius:.8rem}.permission-error fieldset legend{padding:0 1rem;font-size:1.6rem}.permission-error fieldset dt{margin-top:2rem;font-weight:bold}.permission-error fieldset code{display:block;padding:.8rem 1rem;margin-top:.8rem;border-left:0.3rem solid #dae1e9;background:rgba(255,255,255,0.3);font-family:'Courier New', Courier, monospace}.permission-error.show{display:flex}.context-menu{display:flex;flex-direction:column;width:10rem;padding:.5rem 0;background:#fff}.context-menu .item{height:3rem;line-height:3rem;padding:0 1.5rem;cursor:pointer}.context-menu .item:hover{background:#f2f5fc}
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
@import "./var.scss";
|
||||
|
||||
|
||||
html {font-size:1vw;width:100%;height:100%;}
|
||||
html {font-size:1vw;width:100%;height:100vh;}
|
||||
body {
|
||||
position:fixed;left:0;top:0;
|
||||
display:flex;
|
||||
|
@ -20,7 +20,7 @@ body {
|
|||
|
||||
.layout-left {
|
||||
display:flex;flex-direction:column;
|
||||
width:18rem;height:64rem;
|
||||
width:18rem;height:100vh;
|
||||
background:nth($cd, 2);
|
||||
|
||||
wc-scroll {flex:1;}
|
||||
|
|
|
@ -26,7 +26,7 @@ Anot({
|
|||
$id: 'app',
|
||||
state: {
|
||||
filter: '',
|
||||
activeDomain: '', //当前选中的域名
|
||||
activeDomain: Anot.ls('last_domain') || '', //当前选中的域名
|
||||
editDomain: '', // 当前临时要编辑的域名, 即右键菜单选择到的
|
||||
domains: [],
|
||||
records: [],
|
||||
|
@ -51,7 +51,7 @@ Anot({
|
|||
})
|
||||
this.$refs.records.scrollTop = 0
|
||||
} else {
|
||||
layer.toast('请先选择域名')
|
||||
layer.toast('请先选择域名', 'warn')
|
||||
}
|
||||
},
|
||||
addDomain() {
|
||||
|
@ -85,6 +85,7 @@ Anot({
|
|||
}
|
||||
}
|
||||
document.title = `伪域名解析 ${name} `
|
||||
Anot.ls('last_domain', name)
|
||||
setTimeout(() => {
|
||||
this.$refs.records.scrollTop = 0
|
||||
}, 50)
|
||||
|
@ -173,6 +174,8 @@ Anot({
|
|||
}
|
||||
}
|
||||
this.domains = tmp
|
||||
|
||||
this.toggleDomain(Anot.ls('last_domain') || '')
|
||||
} else {
|
||||
this.permissionShow = true
|
||||
}
|
||||
|
@ -195,6 +198,8 @@ Anot({
|
|||
params.enabled = false
|
||||
|
||||
this.records.unshift(params)
|
||||
tmp_records[params.record].push(this.records[0])
|
||||
|
||||
this.$refs.records.scrollTop = 0
|
||||
},
|
||||
// 同一个记录, 允许一条被激活
|
||||
|
|