mirror of
https://github.com/rubickCenter/rubick
synced 2025-07-19 22:31:26 +08:00
24 lines
461 B
JavaScript
24 lines
461 B
JavaScript
import {shell, ipcRenderer} from 'electron';
|
|
export default {
|
|
'rubick-help': {
|
|
help() {
|
|
shell.openExternal('https://u.tools/docs/guide/about-uTools.html')
|
|
}
|
|
},
|
|
'rubick-color': {
|
|
pick() {
|
|
ipcRenderer.send('start-picker')
|
|
}
|
|
},
|
|
'rubick-screen-short-cut': {
|
|
shortCut() {
|
|
ipcRenderer.send('capture-screen', {type: 'start'})
|
|
}
|
|
},
|
|
'rubick-lock': {
|
|
lock() {
|
|
ipcRenderer.send('lock-screen');
|
|
}
|
|
}
|
|
}
|