mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-08 22:51:25 +08:00
fix: icon8s 搜索
This commit is contained in:
parent
a713fb2072
commit
5d012b6238
@ -1,6 +1,6 @@
|
||||
|
||||
|
||||
# 快捷命令 V2.3.0
|
||||
# 快捷命令 V2.3.2
|
||||
|
||||
[](https://github.com/fofolee/uTools-QuickerCommand/stargazers) [](https://github.com/fofolee/uTools-QuickerCommand/network/members) [](https://github.com/fofolee/uTools-QuickerCommand/blob/master/LICENSE) [](https://github.com/fofolee/uTools-QuickerCommand/blob/master/src/helps/CHANGELOG.md) [](https://yuanliao.info/d/424) [](https://yuanliao.info/d/424) [](https://yuanliao.info/d/424)
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
|
||||
|
||||
# 快捷命令 V2.3.0
|
||||
# 快捷命令 V2.3.2
|
||||
|
||||
[](https://github.com/fofolee/uTools-QuickerCommand/stargazers) [](https://github.com/fofolee/uTools-QuickerCommand/network/members) [](https://github.com/fofolee/uTools-QuickerCommand/blob/master/LICENSE) [](https://github.com/fofolee/uTools-QuickerCommand/blob/master/src/helps/CHANGELOG.md) [](https://yuanliao.info/d/424) [](https://yuanliao.info/d/424) [](https://yuanliao.info/d/424)
|
||||
|
||||
|
@ -27,7 +27,7 @@ let getIcons8Icon = (selector, callback) => {
|
||||
offset: (params.page - 1) * 10 || 0,
|
||||
platform: 'color',
|
||||
amount: 10,
|
||||
token: 'JpOyWT5TW8yYThBIk1fCbsNDd3ISSChSD5vPgCON',
|
||||
// token: 'JpOyWT5TW8yYThBIk1fCbsNDd3ISSChSD5vPgCON',
|
||||
language: /[\u4e00-\u9fa5]/.test(params.term) ? 'zh' : 'en'
|
||||
}
|
||||
},
|
||||
@ -41,7 +41,7 @@ let getIcons8Icon = (selector, callback) => {
|
||||
},
|
||||
cache: true
|
||||
},
|
||||
placeholder: '搜索icons8图标',
|
||||
placeholder: '搜索网络图标',
|
||||
minimumInputLength: 1,
|
||||
templateResult: showItems,
|
||||
templateSelection: showSelection
|
||||
|
@ -180,7 +180,8 @@ let showChangeIconWindow = () => {
|
||||
$("#icon").attr('src', src)
|
||||
})
|
||||
},
|
||||
html: qctemplates.command.setIcon
|
||||
html: qctemplates.command.setIcon,
|
||||
footer: '图标搜索来自<a href="#" onclick=utools.shellOpenExternal("https://icons8.com/")>icon8s</a>'
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -371,7 +371,7 @@ let clearAll = () => {
|
||||
let importDefaultCommands = () => {
|
||||
let defaultCommands = window.getDefaultCommands()
|
||||
Object.values(defaultCommands).forEach(async d => {
|
||||
await qcfeatures.importCommand(d)
|
||||
await importCommand(d)
|
||||
})
|
||||
}
|
||||
|
||||
@ -452,4 +452,5 @@ $("#options").on('click', '.sidebar li', function() {
|
||||
export default {
|
||||
showFeatureList,
|
||||
locateToFeature,
|
||||
importDefaultCommands
|
||||
}
|
||||
|
@ -143,7 +143,8 @@ let panelConf = tag => {
|
||||
loadConf(tag)
|
||||
},
|
||||
html: qctemplates.panel.conf,
|
||||
showConfirmButton: false
|
||||
showConfirmButton: false,
|
||||
footer: '图标搜索来自<a href="#" onclick=utools.shellOpenExternal("https://icons8.com/")>icon8s</a>'
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -23,15 +23,17 @@ body {
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.switch-btn * {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.switch-btn {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
width: 65px;
|
||||
height: 30px;
|
||||
height: 24px;
|
||||
border-radius: 5px;
|
||||
cursor: pointer;
|
||||
zoom: 0.7;
|
||||
}
|
||||
|
||||
.switch-btn:hover {
|
||||
@ -53,7 +55,7 @@ body {
|
||||
color: #fff;
|
||||
display: block;
|
||||
font-size: 12px;
|
||||
width: 57px;
|
||||
width: 51px;
|
||||
height: inherit;
|
||||
position: relative;
|
||||
text-transform: uppercase;
|
||||
@ -73,12 +75,12 @@ body {
|
||||
|
||||
.text-switch:before {
|
||||
content: 'OF';
|
||||
right: 6px;
|
||||
right: 5px;
|
||||
}
|
||||
|
||||
.text-switch:after {
|
||||
content: 'ON';
|
||||
left: 6px;
|
||||
left: 5px;
|
||||
color: #FFFFFF;
|
||||
opacity: 0;
|
||||
}
|
||||
@ -111,17 +113,16 @@ body {
|
||||
|
||||
.toggle-btn {
|
||||
background: linear-gradient(#eee, #fafafa);
|
||||
border-radius: 5px;
|
||||
height: 30px;
|
||||
border-radius: 4px;
|
||||
height: 22px;
|
||||
left: 1px;
|
||||
position: absolute;
|
||||
top: 1px;
|
||||
width: 28px;
|
||||
margin: 1px;
|
||||
width: 22px;
|
||||
}
|
||||
|
||||
.checked-switch:checked~.toggle-btn {
|
||||
left: 30px;
|
||||
left: 28px;
|
||||
}
|
||||
|
||||
.text-switch,
|
||||
@ -293,6 +294,7 @@ body {
|
||||
}
|
||||
|
||||
#options .footBtn img {
|
||||
margin-top: 1px;
|
||||
width: 15px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
@ -1,3 +1,9 @@
|
||||
## V2.3.2
|
||||
- 修复 icon8s 图标无法搜索的 bug
|
||||
|
||||
## v2.3.1
|
||||
- win 下样式 bug 修复
|
||||
|
||||
## v2.3.0
|
||||
- 新增快捷面板 beta
|
||||
- 将某一个标签下的命令以面板形式展现
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "index.html",
|
||||
"homepage": "https://github.com/fofolee/uTools-QuickerCommand",
|
||||
"publishPage": "https://yuanliao.info/d/424",
|
||||
"version": "2.3.0",
|
||||
"version": "2.3.2",
|
||||
"author": "云之轩",
|
||||
"unpack":"autopep8.py",
|
||||
"logo": "logo.png",
|
||||
|
Loading…
x
Reference in New Issue
Block a user