Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
gitcode_dev
quicker
提交
2b3caaf1
quicker
项目概览
gitcode_dev
/
quicker
上一次同步 接近 2 年
通知
6
Star
2
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
quicker
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
2b3caaf1
编写于
1月 14, 2022
作者:
璃白.
🌻
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
release0.0.4
上级
fe646862
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
43 addition
and
18 deletion
+43
-18
package.json
package.json
+2
-2
src/main/browsers/main.js
src/main/browsers/main.js
+2
-2
src/main/common/config.js
src/main/common/config.js
+1
-1
src/main/common/listener.js
src/main/common/listener.js
+11
-3
src/main/index.js
src/main/index.js
+1
-0
src/renderer/App.vue
src/renderer/App.vue
+13
-2
src/renderer/pages/plugins/index.vue
src/renderer/pages/plugins/index.vue
+2
-1
src/renderer/pages/search/index.vue
src/renderer/pages/search/index.vue
+2
-1
src/renderer/pages/search/subpages/settings.vue
src/renderer/pages/search/subpages/settings.vue
+7
-4
src/renderer/store/modules/main.js
src/renderer/store/modules/main.js
+1
-1
static/plugins/demo/deep.html
static/plugins/demo/deep.html
+1
-1
未找到文件。
package.json
浏览文件 @
2b3caaf1
{
"name"
:
"Quicker"
,
"version"
:
"0.0.
3
"
,
"version"
:
"0.0.
4
"
,
"author"
:
"libai"
,
"description"
:
"An electron-vue project"
,
"license"
:
null
,
...
...
@@ -17,7 +17,7 @@
"build"
:
{
"asar"
:
true
,
"productName"
:
"Quicker"
,
"appId"
:
"com.
muwoo.rubick
"
,
"appId"
:
"com.
layyback.quicker
"
,
"compression"
:
"maximum"
,
"directories"
:
{
"output"
:
"build"
...
...
src/main/browsers/main.js
浏览文件 @
2b3caaf1
...
...
@@ -20,7 +20,7 @@ module.exports = () => {
resizable
:
true
,
width
:
920
,
frame
:
false
,
backgroundColor
:
"
#fff
"
,
//
backgroundColor: "#fff",
title
:
"
拉比克
"
,
show
:
true
,
skipTaskbar
:
true
,
...
...
@@ -57,7 +57,7 @@ module.exports = () => {
});
win
.
on
(
"
blur
"
,
()
=>
{
const
childWindows
=
win
.
getChildWindows
();
if
(
!
childWindows
.
length
)
win
.
hide
();
//
if (!childWindows.length) win.hide();
});
};
...
...
src/main/common/config.js
浏览文件 @
2b3caaf1
...
...
@@ -12,7 +12,7 @@ const defaultConfigForAnyPlatform = {
shortCut
:
{
showAndHidden
:
"
Option+R
"
,
separate
:
"
Ctrl+D
"
,
quit
:
"
Shift+Escape
"
quit
:
"
Shift+Escape
"
,
},
common
:
{
start
:
true
,
...
...
src/main/common/listener.js
浏览文件 @
2b3caaf1
...
...
@@ -62,6 +62,7 @@ class Listener {
registerShortCut
(
mainWindow
)
{
const
config
=
global
.
opConfig
.
get
();
globalShortcut
.
unregisterAll
();
this
.
registerQuitPluginShortCut
(
mainWindow
)
// 注册偏好快捷键
globalShortcut
.
register
(
config
.
perf
.
shortCut
.
showAndHidden
,
()
=>
{
const
{
x
,
y
}
=
screen
.
getCursorScreenPoint
();
...
...
@@ -124,7 +125,8 @@ class Listener {
this
.
setAutoLogin
();
this
.
colorPicker
();
this
.
initPlugin
();
this
.
initPlugin
(
mainWindow
);
this
.
registerQuitPluginShortCut
(
mainWindow
)
this
.
lockScreen
();
this
.
separate
();
this
.
initCapture
();
...
...
@@ -219,7 +221,7 @@ class Listener {
if
(
win
===
null
||
win
===
undefined
)
{
login
.
createWindow
(
mainWindow
);
}
else
{
win
.
show
()
win
.
show
()
;
}
});
}
...
...
@@ -305,12 +307,18 @@ class Listener {
});
}
initPlugin
()
{
initPlugin
(
mainWindow
)
{
ipcMain
.
on
(
"
optionPlugin
"
,
(
e
,
args
)
=>
{
this
.
optionPlugin
=
args
;
});
}
registerQuitPluginShortCut
(
mainWindow
)
{
globalShortcut
.
register
(
"
Esc
"
,
()
=>
{
mainWindow
.
webContents
.
send
(
"
quitPlugin
"
);
});
}
lockScreen
()
{
// 锁屏
ipcMain
.
on
(
"
lock-screen
"
,
()
=>
{
...
...
src/main/index.js
浏览文件 @
2b3caaf1
...
...
@@ -29,6 +29,7 @@ class initApp {
this
.
onReady
();
this
.
onRunning
();
this
.
onQuit
();
// main.registerQuitPluginShortCut()
}
}
...
...
src/renderer/App.vue
浏览文件 @
2b3caaf1
...
...
@@ -186,10 +186,18 @@ export default {
pluginInfo
:
pluginInfo
});
};
// document.addEventListener("keydown", e => {
// console.log(e);
// if (e.keyCode === 27) {
// this.closeTag();
// this.changeMode("view");
// }
// });
},
mounted
()
{
ipcRenderer
.
on
(
"
init-rubick
"
,
this
.
closeTag
);
ipcRenderer
.
on
(
"
new-window
"
,
this
.
newWindow
);
ipcRenderer
.
on
(
"
quitPlugin
"
,
this
.
quitPlugin
);
// 超级面板打开插件
ipcRenderer
.
on
(
"
superPanel-openPlugin
"
,
(
e
,
args
)
=>
{
this
.
closeTag
();
...
...
@@ -367,11 +375,14 @@ export default {
return
`<div>
${
result
[
0
]}
</div>`
;
}
},
quitPlugin
()
{
this
.
closeTag
();
this
.
changeMode
(
"
view
"
);
},
checkNeedInit
(
e
)
{
// 如果搜索栏无内容,且按了删除键,则清空 tag
if
(
this
.
searchValue
===
""
&&
e
.
keyCode
===
8
)
{
this
.
closeTag
();
this
.
changeMode
(
"
view
"
);
this
.
quitPlugin
();
}
},
changePath
({
key
})
{
...
...
src/renderer/pages/plugins/index.vue
浏览文件 @
2b3caaf1
...
...
@@ -39,7 +39,8 @@ export default {
};
},
mounted
()
{
this
.
setSubPlaceHolder
(
"
按 ⌫ 键退出插件
"
);
this
.
setSubPlaceHolder
(
"
按 Esc 键退出插件
"
);
// this.setSubPlaceHolder("按 ⌫ 键退出插件");
this
.
webview
=
document
.
querySelector
(
"
webview
"
);
// if (!this.webview) return;
this
.
webview
.
addEventListener
(
"
dom-ready
"
,
()
=>
{
...
...
src/renderer/pages/search/index.vue
浏览文件 @
2b3caaf1
...
...
@@ -49,7 +49,8 @@ export default {
}
},
mounted
()
{
this
.
setSubPlaceHolder
(
"
按 ⌫ 键退出
"
);
this
.
setSubPlaceHolder
(
"
按 Esc 键退出
"
);
// this.setSubPlaceHolder("按 ⌫ 键退出");
},
computed
:
{
...
mapState
(
"
main
"
,
[
...
...
src/renderer/pages/search/subpages/settings.vue
浏览文件 @
2b3caaf1
...
...
@@ -42,7 +42,7 @@
{{ config.perf.shortCut.showAndHidden }}
</div>
</div>
<div
class=
"settings-item-li"
>
<
!-- <
div class="settings-item-li">
<div class="label">插件分离快捷键</div>
<div
class="value"
...
...
@@ -51,8 +51,8 @@
>
{{ config.perf.shortCut.separate }}
</div>
</div>
<div
class=
"settings-item-li"
>
</div>
-->
<
!-- <
div class="settings-item-li">
<div class="label">返回主界面</div>
<div
class="value"
...
...
@@ -61,7 +61,7 @@
>
{{ config.perf.shortCut.quit }}
</div>
</div>
</div>
-->
</div>
<div
class=
"setting-item"
>
<div
class=
"title"
>
通用
</div>
...
...
@@ -260,6 +260,9 @@ export default {
this
.
config
.
perf
.
shortCut
[
key
]
=
compose
;
change
=
true
;
}
console
.
log
(
this
.
config
.
perf
.
shortCut
.
showAndHidden
);
this
.
saveConfig
();
},
addConfig
()
{
this
.
config
.
global
.
push
({
...
...
src/renderer/store/modules/main.js
浏览文件 @
2b3caaf1
...
...
@@ -290,7 +290,7 @@ const actions = {
/**
* @param {Object} payload payload.filePath为配置文件的绝对路径。payload.value为搜索栏文字值。
*/
async
onSearch
({
commit
},
payload
)
{
async
onSearch
({
commit
,
getters
},
payload
)
{
if
(
state
.
selected
&&
state
.
selected
.
key
!==
"
plugin-container
"
)
{
commit
(
"
commonUpdate
"
,
{
searchValue
:
""
});
return
;
...
...
static/plugins/demo/deep.html
浏览文件 @
2b3caaf1
...
...
@@ -62,7 +62,7 @@
text-decoration
:
none
;
cursor
:
pointer
;
position
:
relative
;
border-bottom
:
1px
dashed
;
border-bottom
:
1px
dashed
#fc5531
;
padding-bottom
:
2px
;
box-sizing
:
border-box
;
color
:
inherit
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录