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

@ -1,6 +1,6 @@
# 快捷命令 V2.3.0 # 快捷命令 V2.3.2
[![GitHub stars](https://img.shields.io/github/stars/fofolee/uTools-QuickerCommand?style=flat-square)](https://github.com/fofolee/uTools-QuickerCommand/stargazers) [![GitHub forks](https://img.shields.io/github/forks/fofolee/uTools-QuickerCommand?style=flat-square)](https://github.com/fofolee/uTools-QuickerCommand/network/members) [![GitHub license](https://img.shields.io/github/license/fofolee/uTools-QuickerCommand?style=flat-square)](https://github.com/fofolee/uTools-QuickerCommand/blob/master/LICENSE) [![version]( https://img.shields.io/badge/dynamic/json?color=f58142&label=version&query=%24.version&url=https%3A%2F%2Fraw.githubusercontent.com%2Ffofolee%2FuTools-QuickerCommand%2Fmaster%2Fsrc%2Fplugin.json&style=flat-square)](https://github.com/fofolee/uTools-QuickerCommand/blob/master/src/helps/CHANGELOG.md) [![猿料](https://img.shields.io/badge/%E7%8C%BF%E6%96%99-%2Fd%2F424-red?style=flat-square)](https://yuanliao.info/d/424) [![评论](https://img.shields.io/badge/dynamic/json?color=%2350e3c2&label=%E8%AF%84%E8%AE%BA&query=%24.data.attributes.commentCount&url=https%3A%2F%2Fyuanliao.info%2Fapi%2Fdiscussions%2F424&style=flat-square)](https://yuanliao.info/d/424) [![下载](https://img.shields.io/badge/dynamic/json?label=%E4%B8%8B%E8%BD%BD&query=quickcommand&url=https%3A%2F%2Ffofolee.cn1.utools.club%2Fapi%2Fqcdownloads&style=flat-square)](https://yuanliao.info/d/424) [![GitHub stars](https://img.shields.io/github/stars/fofolee/uTools-QuickerCommand?style=flat-square)](https://github.com/fofolee/uTools-QuickerCommand/stargazers) [![GitHub forks](https://img.shields.io/github/forks/fofolee/uTools-QuickerCommand?style=flat-square)](https://github.com/fofolee/uTools-QuickerCommand/network/members) [![GitHub license](https://img.shields.io/github/license/fofolee/uTools-QuickerCommand?style=flat-square)](https://github.com/fofolee/uTools-QuickerCommand/blob/master/LICENSE) [![version]( https://img.shields.io/badge/dynamic/json?color=f58142&label=version&query=%24.version&url=https%3A%2F%2Fraw.githubusercontent.com%2Ffofolee%2FuTools-QuickerCommand%2Fmaster%2Fsrc%2Fplugin.json&style=flat-square)](https://github.com/fofolee/uTools-QuickerCommand/blob/master/src/helps/CHANGELOG.md) [![猿料](https://img.shields.io/badge/%E7%8C%BF%E6%96%99-%2Fd%2F424-red?style=flat-square)](https://yuanliao.info/d/424) [![评论](https://img.shields.io/badge/dynamic/json?color=%2350e3c2&label=%E8%AF%84%E8%AE%BA&query=%24.data.attributes.commentCount&url=https%3A%2F%2Fyuanliao.info%2Fapi%2Fdiscussions%2F424&style=flat-square)](https://yuanliao.info/d/424) [![下载](https://img.shields.io/badge/dynamic/json?label=%E4%B8%8B%E8%BD%BD&query=quickcommand&url=https%3A%2F%2Ffofolee.cn1.utools.club%2Fapi%2Fqcdownloads&style=flat-square)](https://yuanliao.info/d/424)

View File

@ -1,6 +1,6 @@
# 快捷命令 V2.3.0 # 快捷命令 V2.3.2
[![GitHub stars](https://img.shields.io/github/stars/fofolee/uTools-QuickerCommand?style=flat-square)](https://github.com/fofolee/uTools-QuickerCommand/stargazers) [![GitHub forks](https://img.shields.io/github/forks/fofolee/uTools-QuickerCommand?style=flat-square)](https://github.com/fofolee/uTools-QuickerCommand/network/members) [![GitHub license](https://img.shields.io/github/license/fofolee/uTools-QuickerCommand?style=flat-square)](https://github.com/fofolee/uTools-QuickerCommand/blob/master/LICENSE) [![version]( https://img.shields.io/badge/dynamic/json?color=f58142&label=version&query=%24.version&url=https%3A%2F%2Fraw.githubusercontent.com%2Ffofolee%2FuTools-QuickerCommand%2Fmaster%2Fsrc%2Fplugin.json&style=flat-square)](https://github.com/fofolee/uTools-QuickerCommand/blob/master/src/helps/CHANGELOG.md) [![猿料](https://img.shields.io/badge/%E7%8C%BF%E6%96%99-%2Fd%2F424-red?style=flat-square)](https://yuanliao.info/d/424) [![评论](https://img.shields.io/badge/dynamic/json?color=%2350e3c2&label=%E8%AF%84%E8%AE%BA&query=%24.data.attributes.commentCount&url=https%3A%2F%2Fyuanliao.info%2Fapi%2Fdiscussions%2F424&style=flat-square)](https://yuanliao.info/d/424) [![下载](https://img.shields.io/badge/dynamic/json?label=%E4%B8%8B%E8%BD%BD&query=quickcommand&url=https%3A%2F%2Ffofolee.cn1.utools.club%2Fapi%2Fqcdownloads&style=flat-square)](https://yuanliao.info/d/424) [![GitHub stars](https://img.shields.io/github/stars/fofolee/uTools-QuickerCommand?style=flat-square)](https://github.com/fofolee/uTools-QuickerCommand/stargazers) [![GitHub forks](https://img.shields.io/github/forks/fofolee/uTools-QuickerCommand?style=flat-square)](https://github.com/fofolee/uTools-QuickerCommand/network/members) [![GitHub license](https://img.shields.io/github/license/fofolee/uTools-QuickerCommand?style=flat-square)](https://github.com/fofolee/uTools-QuickerCommand/blob/master/LICENSE) [![version]( https://img.shields.io/badge/dynamic/json?color=f58142&label=version&query=%24.version&url=https%3A%2F%2Fraw.githubusercontent.com%2Ffofolee%2FuTools-QuickerCommand%2Fmaster%2Fsrc%2Fplugin.json&style=flat-square)](https://github.com/fofolee/uTools-QuickerCommand/blob/master/src/helps/CHANGELOG.md) [![猿料](https://img.shields.io/badge/%E7%8C%BF%E6%96%99-%2Fd%2F424-red?style=flat-square)](https://yuanliao.info/d/424) [![评论](https://img.shields.io/badge/dynamic/json?color=%2350e3c2&label=%E8%AF%84%E8%AE%BA&query=%24.data.attributes.commentCount&url=https%3A%2F%2Fyuanliao.info%2Fapi%2Fdiscussions%2F424&style=flat-square)](https://yuanliao.info/d/424) [![下载](https://img.shields.io/badge/dynamic/json?label=%E4%B8%8B%E8%BD%BD&query=quickcommand&url=https%3A%2F%2Ffofolee.cn1.utools.club%2Fapi%2Fqcdownloads&style=flat-square)](https://yuanliao.info/d/424)

View File

@ -27,7 +27,7 @@ let getIcons8Icon = (selector, callback) => {
offset: (params.page - 1) * 10 || 0, offset: (params.page - 1) * 10 || 0,
platform: 'color', platform: 'color',
amount: 10, amount: 10,
token: 'JpOyWT5TW8yYThBIk1fCbsNDd3ISSChSD5vPgCON', // token: 'JpOyWT5TW8yYThBIk1fCbsNDd3ISSChSD5vPgCON',
language: /[\u4e00-\u9fa5]/.test(params.term) ? 'zh' : 'en' language: /[\u4e00-\u9fa5]/.test(params.term) ? 'zh' : 'en'
} }
}, },
@ -41,7 +41,7 @@ let getIcons8Icon = (selector, callback) => {
}, },
cache: true cache: true
}, },
placeholder: '搜索icons8图标', placeholder: '搜索网络图标',
minimumInputLength: 1, minimumInputLength: 1,
templateResult: showItems, templateResult: showItems,
templateSelection: showSelection templateSelection: showSelection

View File

@ -180,7 +180,8 @@ let showChangeIconWindow = () => {
$("#icon").attr('src', src) $("#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 importDefaultCommands = () => {
let defaultCommands = window.getDefaultCommands() let defaultCommands = window.getDefaultCommands()
Object.values(defaultCommands).forEach(async d => { 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 { export default {
showFeatureList, showFeatureList,
locateToFeature, locateToFeature,
importDefaultCommands
} }

View File

@ -143,7 +143,8 @@ let panelConf = tag => {
loadConf(tag) loadConf(tag)
}, },
html: qctemplates.panel.conf, 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; user-select: none;
} }
.switch-btn * {
box-sizing: border-box;
}
.switch-btn { .switch-btn {
position: relative; position: relative;
display: inline-block; display: inline-block;
vertical-align: top; vertical-align: top;
width: 65px; height: 24px;
height: 30px;
border-radius: 5px; border-radius: 5px;
cursor: pointer; cursor: pointer;
zoom: 0.7;
} }
.switch-btn:hover { .switch-btn:hover {
@ -53,7 +55,7 @@ body {
color: #fff; color: #fff;
display: block; display: block;
font-size: 12px; font-size: 12px;
width: 57px; width: 51px;
height: inherit; height: inherit;
position: relative; position: relative;
text-transform: uppercase; text-transform: uppercase;
@ -73,12 +75,12 @@ body {
.text-switch:before { .text-switch:before {
content: 'OF'; content: 'OF';
right: 6px; right: 5px;
} }
.text-switch:after { .text-switch:after {
content: 'ON'; content: 'ON';
left: 6px; left: 5px;
color: #FFFFFF; color: #FFFFFF;
opacity: 0; opacity: 0;
} }
@ -111,17 +113,16 @@ body {
.toggle-btn { .toggle-btn {
background: linear-gradient(#eee, #fafafa); background: linear-gradient(#eee, #fafafa);
border-radius: 5px; border-radius: 4px;
height: 30px; height: 22px;
left: 1px; left: 1px;
position: absolute; position: absolute;
top: 1px; top: 1px;
width: 28px; width: 22px;
margin: 1px;
} }
.checked-switch:checked~.toggle-btn { .checked-switch:checked~.toggle-btn {
left: 30px; left: 28px;
} }
.text-switch, .text-switch,
@ -293,6 +294,7 @@ body {
} }
#options .footBtn img { #options .footBtn img {
margin-top: 1px;
width: 15px; width: 15px;
vertical-align: middle; vertical-align: middle;
} }

File diff suppressed because one or more lines are too long

View File

@ -1,3 +1,9 @@
## V2.3.2
- 修复 icon8s 图标无法搜索的 bug
## v2.3.1
- win 下样式 bug 修复
## v2.3.0 ## v2.3.0
- 新增快捷面板 beta - 新增快捷面板 beta
- 将某一个标签下的命令以面板形式展现 - 将某一个标签下的命令以面板形式展现

View File

@ -4,7 +4,7 @@
"main": "index.html", "main": "index.html",
"homepage": "https://github.com/fofolee/uTools-QuickerCommand", "homepage": "https://github.com/fofolee/uTools-QuickerCommand",
"publishPage": "https://yuanliao.info/d/424", "publishPage": "https://yuanliao.info/d/424",
"version": "2.3.0", "version": "2.3.2",
"author": "云之轩", "author": "云之轩",
"unpack":"autopep8.py", "unpack":"autopep8.py",
"logo": "logo.png", "logo": "logo.png",