mirror of
https://github.com/rubickCenter/rubick
synced 2025-10-27 07:01:26 +08:00
Compare commits
12 Commits
feat/v3.0.
...
v3.2.3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0cbbe3525e | ||
|
|
c99a3eb74c | ||
|
|
978b48264f | ||
|
|
fe159427b8 | ||
|
|
8fe916020b | ||
|
|
9a3ca8403b | ||
|
|
9b303aa5c7 | ||
|
|
aa059b2596 | ||
|
|
b3c5d30bfb | ||
|
|
2255cb783f | ||
|
|
ecb6b6bc29 | ||
|
|
25dd314042 |
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@@ -23,7 +23,7 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [macos-11, windows-2019, ubuntu-latest]
|
||||
os: [macos-latest, windows-2019, ubuntu-latest]
|
||||
|
||||
# create steps
|
||||
steps:
|
||||
|
||||
@@ -88,7 +88,7 @@ If you need more features, please come here to give us suggestions:[issues](ht
|
||||
We will add valuable ideas to the later development. At the same time, welcome to join and build together。
|
||||
|
||||
## 贡献
|
||||
This project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)]. <a href="https://github.com/rubickCenter/rubick/graphs/contributors"><img src="https://opencollective.com/rubick/contributors.svg?width=890&button=false" /></a>
|
||||
This project exists thanks to all the people who contribute. [[Contribute](https://github.com/rubickCenter/rubick/graphs/contributors)]. <a href="https://github.com/rubickCenter/rubick/graphs/contributors"><img src="https://opencollective.com/rubick/contributors.svg?width=890&button=false" /></a>
|
||||
|
||||
## 反馈
|
||||
对本项目有兴趣或者想要交流学习的同学可以扫码加下面的微信,备注 rubick,帮助我们更好的成长:
|
||||
|
||||
@@ -88,7 +88,7 @@
|
||||
有价值的想法我们会加入到后期的开发当中。同时也欢迎一起加入共建。
|
||||
|
||||
## 贡献
|
||||
This project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)]. <a href="https://github.com/rubickCenter/rubick/graphs/contributors"><img src="https://opencollective.com/rubick/contributors.svg?width=890&button=false" /></a>
|
||||
This project exists thanks to all the people who contribute. [[Contribute](https://github.com/rubickCenter/rubick/graphs/contributors)]. <a href="https://github.com/rubickCenter/rubick/graphs/contributors"><img src="https://opencollective.com/rubick/contributors.svg?width=890&button=false" /></a>
|
||||
|
||||
## 反馈
|
||||
对本项目有兴趣或者想要交流学习的同学可以扫码加下面的微信,备注 rubick,帮助我们更好的成长:
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<div class="handle">
|
||||
<div class="devtool" @click="openDevTool" title="开发者工具"></div>
|
||||
</div>
|
||||
<div class="window-handle" v-if="process.platform !== 'darwin'">
|
||||
<div class="window-handle" v-if="platform !== 'darwin'">
|
||||
<div class="minimize" @click="minimize"></div>
|
||||
<div class="maximize" @click="maximize"></div>
|
||||
<div class="close" @click="close"></div>
|
||||
@@ -30,7 +30,7 @@ import { ref } from 'vue';
|
||||
|
||||
const { ipcRenderer } = window.require('electron');
|
||||
|
||||
const process = window.require('process');
|
||||
const platform = ref(window.process.platform);
|
||||
const showInput = ref(false);
|
||||
|
||||
const storeInfo = localStorage.getItem('rubick-system-detach') || '{}';
|
||||
|
||||
@@ -80,7 +80,7 @@ window.showNotification = function () {
|
||||
rubick.showNotification('HI, rubick')
|
||||
}
|
||||
```
|
||||
rubick 更多支持 API 能力参考:[rubick 全局API](https://github.com/rubickCenter/rubick/blob/master/static/preload.js#L49)
|
||||
rubick 更多支持 API 能力参考:[rubick 全局API](https://github.com/rubickCenter/rubick/blob/master/public/preload.js)
|
||||
|
||||
### 测试写好的插件
|
||||
由于 `rubick` 插件是基于 `npm` 的管理方式,所以开发者调试插件,也是基于 `npm` 的软连接的方式进行调试。
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "rubick",
|
||||
"version": "3.2.4-beta.1",
|
||||
"version": "3.2.3",
|
||||
"author": "muwoo <2424880409@qq.com>",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
|
||||
@@ -32,9 +32,7 @@ const getSearchFiles = (argv = process.argv, cwd = process.cwd()) => {
|
||||
};
|
||||
|
||||
const putFileToRubick = (webContents, files) => {
|
||||
webContents.executeJavaScript(
|
||||
`window.searchFocus(${JSON.stringify(files)}, false)`
|
||||
);
|
||||
webContents.executeJavaScript(`window.searchFocus(${JSON.stringify(files)})`);
|
||||
};
|
||||
|
||||
const copyFileOutsideOfElectronAsar = function (
|
||||
|
||||
@@ -8,10 +8,10 @@ import { ref } from 'vue';
|
||||
|
||||
export default ({ currentPlugin, optionsRef, openPlugin, setOptionsRef }) => {
|
||||
const clipboardFile: any = ref([]);
|
||||
const searchFocus = (files, strict = true) => {
|
||||
const searchFocus = (files) => {
|
||||
const config: any = localConfig.getConfig();
|
||||
// 未开启自动粘贴
|
||||
if (!config.perf.common.autoPast && strict) return;
|
||||
if (!config.perf.common.autoPast) return;
|
||||
|
||||
if (currentPlugin.value.name) return;
|
||||
const fileList = files || getCopyFiles();
|
||||
|
||||
@@ -176,14 +176,6 @@ const createPluginManager = (): any => {
|
||||
state.pluginLoading = false;
|
||||
};
|
||||
|
||||
window.searchFocus = (args, strict) => {
|
||||
ipcRenderer.send('msg-trigger', {
|
||||
type: 'removePlugin',
|
||||
});
|
||||
window.initRubick();
|
||||
searchFocus(args, strict);
|
||||
};
|
||||
|
||||
return {
|
||||
...toRefs(state),
|
||||
initPlugins,
|
||||
|
||||
@@ -156,6 +156,8 @@ const optionsManager = ({
|
||||
setOptionsRef,
|
||||
});
|
||||
|
||||
window.searchFocus = searchFocus;
|
||||
|
||||
return {
|
||||
options: optionsRef,
|
||||
searchFocus,
|
||||
|
||||
2
src/renderer/shims-vue.d.ts
vendored
2
src/renderer/shims-vue.d.ts
vendored
@@ -26,5 +26,5 @@ interface Window {
|
||||
setCurrentPlugin: (plugin: any) => void;
|
||||
pluginLoaded: () => void;
|
||||
getMainInputInfo: () => any;
|
||||
searchFocus: (args: any, strict?: boolean) => any;
|
||||
searchFocus: (args: any) => any;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user