Compare commits

..

12 Commits

Author SHA1 Message Date
木偶
0cbbe3525e Merge pull request #244 from rubickCenter/feat/v3.0.0
Feat/v3.0.0
2023-09-22 17:46:28 +08:00
木偶
c99a3eb74c Merge pull request #243 from rubickCenter/feat/v3.0.0
 支持 mac M1 arm 64:#207,#134; 支持右击菜单
2023-09-22 14:50:07 +08:00
木偶
978b48264f Merge pull request #242 from rubickCenter/feat/v3.0.0
🐛 #215,#237
2023-09-22 10:10:25 +08:00
木偶
fe159427b8 Merge pull request #235 from rubickCenter/feat/v3.0.0
 支持 webdav 数据多端同步
2023-09-20 11:19:41 +08:00
木偶
8fe916020b Merge pull request #232 from rubickCenter/feat/v3.0.0
🐛 修复 windows 本地启动呼起问题
2023-09-18 10:37:16 +08:00
木偶
9a3ca8403b Merge pull request #230 from rubickCenter/feat/v3.0.0
Feat/v3.0.0
2023-09-16 11:35:18 +08:00
木偶
9b303aa5c7 Merge pull request #225 from cc01cc/docs-url-fix-01
修复 404 链接 /rubick/blob/master/static/preload.js#L49
2023-09-16 09:52:34 +08:00
木偶
aa059b2596 Merge pull request #226 from cc01cc/docs-fix-url-02
更新 contributing 链接
2023-09-16 09:52:00 +08:00
cc01cc
b3c5d30bfb fix-url 2023-09-13 21:59:09 +08:00
cc01cc
2255cb783f 修复 404 链接 2023-09-13 21:43:26 +08:00
木偶
ecb6b6bc29 Merge pull request #222 from rubickCenter/feat/v3.0.0
🐛 修复 #221 & 性能优化,支持插件窗口池
2023-09-13 14:31:28 +08:00
木偶
25dd314042 Merge pull request #218 from rubickCenter/feat/v3.0.0
Feat/v3.0.0
2023-09-01 18:00:22 +08:00
11 changed files with 13 additions and 21 deletions

View File

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

View File

@@ -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帮助我们更好的成长

View File

@@ -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帮助我们更好的成长

View File

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

View File

@@ -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` 的软连接的方式进行调试。

View File

@@ -1,6 +1,6 @@
{
"name": "rubick",
"version": "3.2.4-beta.1",
"version": "3.2.3",
"author": "muwoo <2424880409@qq.com>",
"private": true,
"scripts": {

View File

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

View File

@@ -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();

View File

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

View File

@@ -156,6 +156,8 @@ const optionsManager = ({
setOptionsRef,
});
window.searchFocus = searchFocus;
return {
options: optionsRef,
searchFocus,

View File

@@ -26,5 +26,5 @@ interface Window {
setCurrentPlugin: (plugin: any) => void;
pluginLoaded: () => void;
getMainInputInfo: () => any;
searchFocus: (args: any, strict?: boolean) => any;
searchFocus: (args: any) => any;
}