style: 底部按钮调整
@ -1,12 +1,4 @@
|
||||
!function () {
|
||||
// 暗黑模式
|
||||
if (utools.isDarkColors()) {
|
||||
!$('#darkmode').length && $('head').append(`
|
||||
<link id="darkmode" rel="stylesheet" href="assets/style/darkmode.css">
|
||||
<link id="darkswal" rel="stylesheet" href="assets/plugins/sweetalert2/dark.min.css">`)
|
||||
} else {
|
||||
$('#darkmode').length && $('#darkmode, #darkswal').remove()
|
||||
}
|
||||
// 禁用危险函数
|
||||
let utoolsFull = utools
|
||||
if (!isDev()) utools = getuToolsLite()
|
||||
@ -41,6 +33,14 @@
|
||||
|
||||
// 进入插件
|
||||
utools.onPluginEnter(async ({ code, type, payload }) => {
|
||||
// 暗黑模式
|
||||
if (utools.isDarkColors()) {
|
||||
!$('#darkmode').length && $('head').append(`
|
||||
<link id="darkmode" rel="stylesheet" href="assets/style/darkmode.css">
|
||||
<link id="darkswal" rel="stylesheet" href="assets/plugins/sweetalert2/dark.min.css">`)
|
||||
} else {
|
||||
$('#darkmode').length && $('#darkmode, #darkswal').remove()
|
||||
}
|
||||
if (isRunningAtFirstTime()) {
|
||||
showChangeLog()
|
||||
importDefaultCommands()
|
||||
@ -623,14 +623,15 @@
|
||||
</div>`
|
||||
var footer = `
|
||||
<div class="foot">
|
||||
<div id="add" class="footBtn">新建命令</div>
|
||||
<div id="import" class="footBtn">导入命令</div>
|
||||
<div id="getShares" class="footBtn">分享中心<span class="circle"></span></div>
|
||||
<div id="viewHelps" class="footBtn">查看帮助</div>
|
||||
<div id="exportAll" class="footBtn">全部导出</div>
|
||||
<div id="enableAll" class="footBtn">启用本页</div>
|
||||
<div id="clear" class="footBtn danger">清空数据</div>
|
||||
<div id="disableAll" class="footBtn danger">禁用本页</div>
|
||||
<div id="add" class="footBtn"><img src="img/add.svg"><span>新建命令</span></div>
|
||||
<div id="import" class="footBtn"><img src="img/import.svg"><span>导入命令</span></div>
|
||||
<div id="panel" class="footBtn"><img src="img/panel.svg"><span>快捷面板</span></div>
|
||||
<div id="getShares" class="footBtn"><img src="img/share.svg"><span>分享中心</span><span class="circle"></span></div>
|
||||
<div id="viewHelps" class="footBtn"><img src="img/help.svg"><span>查看帮助</span></div>
|
||||
<div id="exportAll" class="footBtn"><img src="img/exportAll.svg"><span>全部导出</span></div>
|
||||
<div id="enableAll" class="footBtn"><img src="img/enable.svg"><span>启用本页</span></div>
|
||||
<div id="clear" class="footBtn danger"><img src="img/clear.svg"><span>清除数据</span></div>
|
||||
<div id="disableAll" class="footBtn danger"><img src="img/disable.svg"><span>禁用本页</span></div>
|
||||
</div>`
|
||||
$("#options").append(sidebar + featureList + footer)
|
||||
checkSharedQc()
|
||||
|
@ -248,6 +248,8 @@ body {
|
||||
padding: 0 10px;
|
||||
height: 28px;
|
||||
line-height: 28px;
|
||||
width: unset;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
#options #customize #charset.robot {
|
||||
@ -281,27 +283,42 @@ body {
|
||||
|
||||
#options .footBtn {
|
||||
float: right;
|
||||
background: #00af2c;
|
||||
border-radius: 4px;
|
||||
background: #02b340;
|
||||
color: white;
|
||||
padding: 2px 5px;
|
||||
margin: 0px 5px;
|
||||
height: 25px;
|
||||
width: 25px;
|
||||
border-radius: 50%;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
#options .footBtn img{
|
||||
width: 15px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
#options .footBtn.danger {
|
||||
float: left;
|
||||
background: #df3f54;
|
||||
background: #b80233;
|
||||
}
|
||||
|
||||
#options .footBtn:hover {
|
||||
background: #068506;
|
||||
transition: 0.5s;
|
||||
width: 78px;
|
||||
border-radius: 4px;
|
||||
transition: 0.2s;
|
||||
}
|
||||
|
||||
#options .footBtn span{
|
||||
vertical-align: middle;
|
||||
font-size: 12px;
|
||||
margin-left: 3px;
|
||||
}
|
||||
|
||||
#options .footBtn.danger:hover {
|
||||
background: #b32033;
|
||||
transition: 0.5s;
|
||||
transition: 0.2s;
|
||||
}
|
||||
|
||||
#options .foot {
|
||||
|
1
src/img/add.svg
Normal file
@ -0,0 +1 @@
|
||||
<?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="1610615699728" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2103" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M512.034996 0.129983c35.345513 0 63.991876 28.646363 63.991876 63.991877v383.951256h383.951256c35.345513 0 63.991876 28.646363 63.991876 63.991876s-28.646363 63.991876-63.991876 63.991876h-383.951256v383.951256c0 35.345513-28.646363 63.991876-63.991876 63.991876s-63.991876-28.646363-63.991876-63.991876v-383.951256h-383.951257c-35.345513 0-63.991876-28.646363-63.991876-63.991876s28.646363-63.991876 63.991876-63.991876h383.951257v-383.951256c0-35.345513 28.646363-63.991876 63.991876-63.991877z" p-id="2104" fill="#ffffff"></path></svg>
|
After Width: | Height: | Size: 915 B |
1
src/img/clear.svg
Normal file
@ -0,0 +1 @@
|
||||
<?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="1610623487804" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="13065" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M382.836364 309.341091l323.351272 323.258182a7.261091 7.261091 0 0 1 1.210182 8.936727c-17.501091 27.927273-105.658182 175.941818-129.256727 371.618909a2.327273 2.327273 0 0 1-3.351273 1.722182L464.989091 948.689455c-0.930909-0.651636-1.396364-1.861818-0.837818-2.932364 10.286545-21.643636 109.102545-228.584727 99.002182-218.484364-10.658909 10.705455-79.034182 83.269818-130.234182 157.509818l-29.463273 40.541091-1.675636-1.163636c-14.429091-9.774545-116.363636-80.011636-149.504-124.928-0.558545-0.744727-0.651636-1.396364 0-2.048 23.505455-28.485818 145.687273-187.298909 145.687272-187.298909L190.184727 734.487273c-0.977455 0.558545-2.094545 0.465455-2.839272-0.418909-10.100364-11.170909-79.453091-87.831273-99.467637-123.810909-0.465455-0.744727-0.465455-1.396364 0.325818-2.048 19.781818-16.011636 131.630545-110.778182 131.630546-110.778182L62.370909 553.146182a2.420364 2.420364 0 0 1-2.792727-1.070546L1.303273 442.647273c-0.744727-1.303273-0.232727-2.932364 1.303272-3.258182 27.741091-5.538909 259.025455-53.527273 371.293091-131.072a6.842182 6.842182 0 0 1 8.936728 0.977454z m337.92 492.497454a80.849455 80.849455 0 1 1 0 161.745455 80.849455 80.849455 0 0 1 0-161.745455z m143.266909-48.593454a44.032 44.032 0 1 1 0 88.064 44.032 44.032 0 0 1 0-88.064z m28.672-730.298182a75.543273 75.543273 0 0 1 106.589091 106.961455h0.046545l-204.567273 204.101818c-0.325818 2.839273-0.651636 4.654545-0.837818 7.493818 45.521455 78.708364 45.335273 169.797818-21.550545 240.034909a5.445818 5.445818 0 0 1-7.586909 0.093091L440.413091 257.303273a5.445818 5.445818 0 0 1 0.139636-7.633455c70.097455-66.932364 161.28-67.165091 239.988364-21.504l7.400727-0.884363zM313.390545 104.680727a64.558545 64.558545 0 1 1 0 129.117091 64.558545 64.558545 0 0 1 0-129.117091z" p-id="13066" fill="#ffffff"></path></svg>
|
After Width: | Height: | Size: 2.1 KiB |
1
src/img/disable.svg
Normal file
@ -0,0 +1 @@
|
||||
<?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="1610623449188" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="12249" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M512 0a512 512 0 1 0 512 512 512.576 512.576 0 0 0-512-512z m0 128a380.928 380.928 0 0 1 221.888 71.68L199.68 733.824A382.784 382.784 0 0 1 512 128z m0 768a380.928 380.928 0 0 1-221.888-71.68l534.272-534.08A382.784 382.784 0 0 1 512 896z" p-id="12250" fill="#ffffff"></path></svg>
|
After Width: | Height: | Size: 658 B |
1
src/img/enable.svg
Normal file
@ -0,0 +1 @@
|
||||
<?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="1610623420368" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="11451" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M431.46752 987.08992a44.21632 44.21632 0 0 1-30.592-12.28288l-235.4944-225.536a44.23168 44.23168 0 0 1 61.17888-63.88224l201.05728 192.55296 364.69248-443.17184a44.22656 44.22656 0 0 1 68.3008 56.20224l-394.98752 479.99488a44.25728 44.25728 0 0 1-34.15552 16.12288z" p-id="11452" fill="#ffffff"></path><path d="M426.34752 600.46848a44.22144 44.22144 0 0 1-30.592-12.288L160.26624 362.6496a44.22656 44.22656 0 0 1 61.17888-63.87712L422.5024 491.32032l364.69248-443.17184a44.22656 44.22656 0 0 1 68.3008 56.20224l-394.98752 480a44.23168 44.23168 0 0 1-34.16064 16.11776z" p-id="11453" fill="#ffffff"></path></svg>
|
After Width: | Height: | Size: 989 B |
1
src/img/exportAll.svg
Normal file
@ -0,0 +1 @@
|
||||
<?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="1610615595593" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1540" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M863.43 275.83c-1.99 0.12-1.99 0.12-3.98 0.12-15.56 0.58-57.08 2.2-59.19 2.2-199.9 6.48-361.55 163.55-368.45 359.94-1.05 29.49-26.32 52.51-56.38 51.47-30.18-1.04-53.69-25.79-52.64-55.17 8.89-252.61 216.74-454.55 473.83-462.88 1.05 0 16.49-0.58 32.17-1.16l-84.8-20.93c-28.89-7.17-46.55-36.09-39.3-64.66 7.25-28.57 36.49-45.92 65.38-38.86l213.14 52.5c28.89 7.17 46.44 36.09 39.3 64.66L970.34 370.1c-7.25 28.57-36.49 45.92-65.38 38.86l-1.29-0.35c-28.89-7.17-46.44-36.09-39.3-64.66l17.31-68.82c-5.73 0.24-11.81 0.47-18.25 0.7z m9.95 364.3c0-29.49 24.45-53.32 54.62-53.32 30.18 0 54.62 23.83 54.62 53.32v245.36c0 58.87-48.89 106.64-109.13 106.64H109.23C48.99 992.13 0.1 944.36 0.1 885.49V138.77C0.1 79.9 48.99 32.13 109.23 32.13h318.01c30.18 0 54.62 23.83 54.62 53.32 0 29.49-24.45 53.32-54.62 53.32H109.23v746.72h764.15V640.13z" p-id="1541" fill="#ffffff"></path></svg>
|
After Width: | Height: | Size: 1.2 KiB |
1
src/img/help.svg
Normal file
@ -0,0 +1 @@
|
||||
<?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="1610623202814" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1107" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M690.2 154.2C635.2 112.4 573.2 98 494.6 98c-59.6 0-110.6 12.2-151 39.4C284 178 256 246.2 256 354l153.6 0c0-28.8-2.8-59.8 14-86.4 16.8-26.6 40.2-47 80.4-47 40.8 0 61.8 11.8 81.6 36.2 16.8 20.8 23.2 45.6 23.2 72 0 22.8-11.6 43.8-25.4 62.8-7.6 11.2-17.6 21.2-30.2 30.8 0 0-83 49.4-112.2 96.2-21.8 34.8-29.6 78.4-31.4 130.6-0.2 3.8 1.2 11.6 14.4 11.6 13 0 112 0 123.6 0 11.6 0 14-8.8 14.2-12.4 0.8-19 3.2-48.2 6.6-59.2 6.6-20.8 19.4-39 39.4-54.6l41.4-28.6c37.4-29.2 67.2-53 80.4-71.8 22.6-30.8 38.4-68.8 38.4-113.8C768 247 741 192.8 690.2 154.2zM484 740.4c-51.8-1.6-94.6 34.4-96.4 90.6-1.6 56.4 39 93.4 91 95 54 1.6 95.8-33.2 97.4-89.4C577.6 780.4 538 742 484 740.4z" p-id="1108" fill="#ffffff"></path></svg>
|
After Width: | Height: | Size: 1.1 KiB |
1
src/img/import.svg
Normal file
@ -0,0 +1 @@
|
||||
<?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="1610615610400" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1729" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M483.44 458.08c1.99-0.12 1.99-0.12 3.98-0.12 15.56-0.58 57.08-2.2 59.19-2.2 199.9-6.48 361.55-163.55 368.45-359.94 1.05-29.49 26.32-52.51 56.38-51.47 30.18 1.04 53.69 25.79 52.64 55.17-8.89 252.61-216.74 454.55-473.83 462.88-1.05 0-16.49 0.58-32.17 1.16l84.8 20.93c28.89 7.17 46.55 36.09 39.3 64.66-7.25 28.57-36.49 45.92-65.38 38.86L363.67 635.5c-28.89-7.17-46.44-36.09-39.3-64.66l52.17-207.04c7.25-28.57 36.49-45.92 65.38-38.86l1.29 0.35c28.89 7.17 46.44 36.09 39.3 64.66l-17.31 68.82c5.73-0.23 11.81-0.46 18.24-0.69z m389.94 182.05c0-29.49 24.45-53.32 54.62-53.32 30.18 0 54.62 23.83 54.62 53.32v245.36c0 58.87-48.89 106.64-109.13 106.64H109.23C48.99 992.13 0.1 944.36 0.1 885.49V138.77C0.1 79.9 48.99 32.13 109.23 32.13h318.01c30.18 0 54.62 23.83 54.62 53.32 0 29.49-24.45 53.32-54.62 53.32H109.23v746.72h764.15V640.13z" p-id="1730" fill="#ffffff"></path></svg>
|
After Width: | Height: | Size: 1.2 KiB |
1
src/img/panel.svg
Normal file
@ -0,0 +1 @@
|
||||
<?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="1610615681622" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1918" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M250.48 240.69c36.53 0 66.13 29.6 66.13 66.12v423.57c0 36.52-29.61 66.12-66.13 66.12-36.53 0-66.13-29.6-66.13-66.12V306.81c0-36.52 29.6-66.12 66.13-66.12z m224.48 442.06h303.16c31.42 0 56.89 25.46 56.89 56.88 0 31.41-25.47 56.88-56.89 56.88H474.96c-31.42 0-56.89-25.46-56.89-56.88 0-31.41 25.47-56.88 56.89-56.88z m28.44-442.06h246.27c47.13 0 85.33 38.2 85.33 85.31v189.93c0 47.12-38.2 85.31-85.33 85.31H503.4c-47.13 0-85.33-38.2-85.33-85.31V326c0-47.11 38.2-85.31 85.33-85.31z m322.52-90.68H200.14c-62.84 0-113.78 50.93-113.78 113.75v503.75c0 62.82 50.94 113.75 113.78 113.75h625.78c62.84 0 113.78-50.93 113.78-113.75V263.76c0-62.82-50.94-113.75-113.78-113.75z m27.51-92.88c94.26 0 170.67 76.39 170.67 170.62V796.5c0 94.23-76.41 170.62-170.67 170.62H170.77C76.51 967.13 0.1 890.74 0.1 796.5V227.75c0-94.23 76.41-170.62 170.67-170.62h682.66z" p-id="1919" fill="#ffffff"></path></svg>
|
After Width: | Height: | Size: 1.2 KiB |
1
src/img/share.svg
Normal file
@ -0,0 +1 @@
|
||||
<?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="1610615099107" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1245" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M551.424 246.784l-253.44 253.44 72.192 72.192 253.44-253.44-72.192-72.192zM411.392 682.752a47.616 47.616 0 0 0-45.824 35.328l-2.048 7.168a47.36 47.36 0 0 0 33.536 58.112l254.464 68.096a40.704 40.704 0 0 0 12.288 1.792A47.616 47.616 0 0 0 709.632 819.2l2.048-7.168a47.36 47.36 0 0 0-33.536-58.112l-254.464-68.096a40.704 40.704 0 0 0-12.288-1.792z" p-id="1246" fill="#ffffff"></path><path d="M230.4 537.6a128 128 0 1 1-128 128 128 128 0 0 1 128-128m0-102.4a230.4 230.4 0 1 0 230.4 230.4 230.4 230.4 0 0 0-230.4-230.4zM665.6 102.4a76.8 76.8 0 1 1-76.8 76.8 76.8 76.8 0 0 1 76.8-76.8m0-102.4a179.2 179.2 0 1 0 179.2 179.2 179.2 179.2 0 0 0-179.2-179.2zM819.2 716.8a102.4 102.4 0 1 1-102.4 102.4 102.4 102.4 0 0 1 102.4-102.4m0-102.4a204.8 204.8 0 1 0 204.8 204.8 204.8 204.8 0 0 0-204.8-204.8z" p-id="1247" fill="#ffffff"></path></svg>
|
After Width: | Height: | Size: 1.2 KiB |