Skip to content
This repository has been archived by the owner on May 9, 2021. It is now read-only.
/ liandi Public archive

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Aug 25, 2020
2 parents c76b9e8 + fc3cddc commit dcd0321
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 10 deletions.
2 changes: 2 additions & 0 deletions app/electron/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ app.whenReady().then(() => {
app.on('window-all-closed', () => {
if (process.platform !== 'darwin') {
app.quit()
} else {
globalShortcut.unregisterAll()
}
})

Expand Down
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "liandi",
"version": "1.1.4",
"version": "1.1.5",
"description": "链滴笔记",
"main": "./electron/main.js",
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions app/src/editor/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export class Editor extends Model {
html = processRemoveDataRender1(this.vditore.vditor.ir.element, "innerHTML");
this.vditore.destroy();
}
let inputTimeout: number
let inputTimeout: number;
this.vditore = new Vditor(this.element, {
_lutePath: process.env.NODE_ENV === "development" ? `http://192.168.0.107:9090/lute.min.js?${new Date().getTime()}` : null,
debugger: process.env.NODE_ENV === "development",
Expand Down Expand Up @@ -277,7 +277,7 @@ export class Editor extends Model {
input: (content: string) => {
this.saved = false;
this.parent.headElement.classList.add("item--unsave");
clearTimeout(inputTimeout)
clearTimeout(inputTimeout);
inputTimeout = window.setTimeout(() => {
if (this.saved) {
return;
Expand All @@ -290,7 +290,7 @@ export class Editor extends Model {
});
this.saved = true;
this.parent.headElement.classList.remove("item--unsave");
}, 2000)
}, 2000);
}
});
}
Expand Down
8 changes: 4 additions & 4 deletions app/src/editor/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ export const getIconByType = (type: string) => {
export const openFile = (url: string, filePath: string, id?: string) => {
const editor = getAllModels().editor.find((item) => {
if (item.url === url && item.path == filePath) {
item.parent.parent.switchTab(item.parent.headElement)
return true
item.parent.parent.switchTab(item.parent.headElement);
return true;
}
})
});
if (editor) {
return
return;
}

let wnd: Wnd = undefined;
Expand Down
2 changes: 1 addition & 1 deletion app/src/menus/vditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const initVditorIconMenu = () => {
label: i18n[window.liandi.config.lang].copyId,
click: () => {
const itemData = window.liandi.menus.itemData;
clipboard.writeText(itemData.target.parentElement.getAttribute("data-node-id"))
clipboard.writeText(itemData.target.parentElement.getAttribute("data-node-id"));
}
}));
return menu;
Expand Down
2 changes: 1 addition & 1 deletion kernel/model/conf.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import (
var Mode = "dev"

const (
Ver = "1.1.4"
Ver = "1.1.5"
ServerPort = "6806"
UserAgent = "LianDi/v" + Ver
)
Expand Down

0 comments on commit dcd0321

Please sign in to comment.