From dc17328a8fb25275a8912ba6252552e89dbd9dce Mon Sep 17 00:00:00 2001 From: imsyy Date: Fri, 18 Aug 2023 18:25:48 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AE=8C=E5=96=84=E6=8D=B7=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 2 +- public/lib/iconfont.js | 2 +- src/App.vue | 25 ++- src/assets/defaultShortCut.json | 28 ++- src/components/AllFunc/AllSet.vue | 28 ++- src/components/AllFunc/Box/ShortCut.vue | 229 +++++++++++++++-------- src/components/SearchInput/SearchInp.vue | 10 +- src/stores/setData.js | 2 + src/style/global.scss | 7 + src/utils/timeTools.js | 8 +- 10 files changed, 236 insertions(+), 105 deletions(-) diff --git a/index.html b/index.html index b3cba6e..842728c 100644 --- a/index.html +++ b/index.html @@ -1,5 +1,5 @@ - + diff --git a/public/lib/iconfont.js b/public/lib/iconfont.js index 21097f5..aa5a06c 100644 --- a/public/lib/iconfont.js +++ b/public/lib/iconfont.js @@ -1 +1 @@ -window._iconfont_svg_string_4182315='',function(t){var c=(c=document.getElementsByTagName("script"))[c.length-1],l=c.getAttribute("data-injectcss"),c=c.getAttribute("data-disable-injectsvg");if(!c){var i,o,a,e,h,s=function(c,l){l.parentNode.insertBefore(c,l)};if(l&&!t.__iconfont__svg__cssinject__){t.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(c){console&&console.log(c)}}i=function(){var c,l=document.createElement("div");l.innerHTML=t._iconfont_svg_string_4182315,(l=l.getElementsByTagName("svg")[0])&&(l.setAttribute("aria-hidden","true"),l.style.position="absolute",l.style.width=0,l.style.height=0,l.style.overflow="hidden",l=l,(c=document.body).firstChild?s(l,c.firstChild):c.appendChild(l))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(i,0):(o=function(){document.removeEventListener("DOMContentLoaded",o,!1),i()},document.addEventListener("DOMContentLoaded",o,!1)):document.attachEvent&&(a=i,e=t.document,h=!1,d(),e.onreadystatechange=function(){"complete"==e.readyState&&(e.onreadystatechange=null,n())})}function n(){h||(h=!0,a())}function d(){try{e.documentElement.doScroll("left")}catch(c){return void setTimeout(d,50)}n()}}(window); \ No newline at end of file +window._iconfont_svg_string_4182315='',function(t){var c=(c=document.getElementsByTagName("script"))[c.length-1],l=c.getAttribute("data-injectcss"),c=c.getAttribute("data-disable-injectsvg");if(!c){var i,o,a,h,e,s=function(c,l){l.parentNode.insertBefore(c,l)};if(l&&!t.__iconfont__svg__cssinject__){t.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(c){console&&console.log(c)}}i=function(){var c,l=document.createElement("div");l.innerHTML=t._iconfont_svg_string_4182315,(l=l.getElementsByTagName("svg")[0])&&(l.setAttribute("aria-hidden","true"),l.style.position="absolute",l.style.width=0,l.style.height=0,l.style.overflow="hidden",l=l,(c=document.body).firstChild?s(l,c.firstChild):c.appendChild(l))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(i,0):(o=function(){document.removeEventListener("DOMContentLoaded",o,!1),i()},document.addEventListener("DOMContentLoaded",o,!1)):document.attachEvent&&(a=i,h=t.document,e=!1,n(),h.onreadystatechange=function(){"complete"==h.readyState&&(h.onreadystatechange=null,d())})}function d(){e||(e=!0,a())}function n(){try{h.documentElement.doScroll("left")}catch(c){return void setTimeout(n,50)}d()}}(window); \ No newline at end of file diff --git a/src/App.vue b/src/App.vue index 84c235d..87fb79e 100644 --- a/src/App.vue +++ b/src/App.vue @@ -9,6 +9,7 @@ tabindex="0" id="main" :class="`main-${status.siteStatus}`" + :style="{ pointerEvents: mainClickable ? 'auto' : 'none' }" @click="status.setSiteStatus('normal')" @contextmenu="mainContextmenu" @keydown="mainPressKeyboard" @@ -67,8 +68,8 @@