fix: icon8s 搜索

This commit is contained in:
fofolee
2021-03-02 11:40:56 +08:00
parent a713fb2072
commit 5d012b6238
10 changed files with 64 additions and 38 deletions

View File

@@ -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

View File

@@ -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>'
})
}

View File

@@ -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
}

View File

@@ -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>'
})
}

View File

@@ -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;
}