mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2026-03-01 11:31:03 -08:00
Merge branch 'master' into basic-tiddlywiki-desktop
This commit is contained in:
commit
a4fbf9dbcb
6 changed files with 25 additions and 7 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -2,6 +2,7 @@
|
|||
logs
|
||||
*.log
|
||||
npm-debug.log*
|
||||
yarn.lock
|
||||
|
||||
# Runtime data
|
||||
pids
|
||||
|
|
|
|||
|
|
@ -10,6 +10,8 @@
|
|||
|
||||
TiddlyGit is a cross-platform desktop app that make [nodejs-TiddlyWiki](https://github.com/Jermolene/TiddlyWiki5#installing-tiddlywiki-on-nodejs) easy to access.
|
||||
|
||||
The desktop app shell is based on [https://github.com/atomery/singlebox](atomery/singlebox) and [atomery/webcatalog](https://github.com/atomery/webcatalog), they provide lots of utils around website-generated-app, much powerful than generating app from website simply using Chrome.
|
||||
|
||||
### Why Github?
|
||||
|
||||
Because Github is one of the best free civil [BaaS](https://www.alibabacloud.com/blog/backend-as-a-service-baas-for-efficient-software-development_519851):
|
||||
|
|
|
|||
|
|
@ -311,8 +311,19 @@ function createMenu() {
|
|||
submenu: [
|
||||
{ role: 'minimize' },
|
||||
{ role: 'close' },
|
||||
{ role: 'minimize' },
|
||||
{ role: 'zoom' },
|
||||
// role: 'zoom' is only supported on macOS
|
||||
process.platform === 'darwin' ? {
|
||||
role: 'zoom',
|
||||
} : {
|
||||
label: 'Zoom',
|
||||
click: () => {
|
||||
const win = mainWindow.get();
|
||||
|
||||
if (win != null) {
|
||||
win.maximize();
|
||||
}
|
||||
},
|
||||
},
|
||||
{ type: 'separator' },
|
||||
{ role: 'front' },
|
||||
{ type: 'separator' },
|
||||
|
|
|
|||
|
|
@ -334,7 +334,6 @@ webFrame.executeJavaScript(`
|
|||
notif.addEventListener('click', () => {
|
||||
window.postMessage({ type: 'focus-workspace', workspaceId: "${workspaceId}" });
|
||||
});
|
||||
console.log(notif);
|
||||
return notif;
|
||||
}
|
||||
return null;
|
||||
|
|
|
|||
5
renovate.json
Normal file
5
renovate.json
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"extends": [
|
||||
"config:base"
|
||||
]
|
||||
}
|
||||
|
|
@ -48,16 +48,16 @@ const loadListeners = (store) => {
|
|||
store.dispatch(setWorkspace(id, value));
|
||||
});
|
||||
|
||||
ipcRenderer.on('set-workspaces', () => {
|
||||
store.dispatch(setWorkspaces());
|
||||
ipcRenderer.on('set-workspaces', (e, newWorkspaces) => {
|
||||
store.dispatch(setWorkspaces(newWorkspaces));
|
||||
});
|
||||
|
||||
ipcRenderer.on('set-workspace-meta', (e, id, value) => {
|
||||
store.dispatch(setWorkspaceMeta(id, value));
|
||||
});
|
||||
|
||||
ipcRenderer.on('set-workspace-metas', () => {
|
||||
store.dispatch(setWorkspaceMetas());
|
||||
ipcRenderer.on('set-workspace-metas', (newWorkspaceMetas) => {
|
||||
store.dispatch(setWorkspaceMetas(newWorkspaceMetas));
|
||||
});
|
||||
|
||||
ipcRenderer.on('update-can-go-back', (e, value) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue