From 7544ae4380d52487011c8e5fa2a94b1f4d17eead Mon Sep 17 00:00:00 2001 From: kdxcxs Date: Tue, 13 Oct 2020 14:39:38 +0800 Subject: [PATCH] feat: add bullets and support exit by pressing `esc` --- src/js/dr.js | 11 ++++++++++- src/main.js | 3 +++ src/package.json | 2 +- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/js/dr.js b/src/js/dr.js index 6a42794..535d96d 100644 --- a/src/js/dr.js +++ b/src/js/dr.js @@ -4,7 +4,16 @@ console.log("version:1.2.5") var api = impress("impress") document.stepFunctions = [] -document.bullets = [{"e":"drone","c":"无人机"}] + +document.bullets = [{"e":"toolkit","c":"配备用品;装备"}, + {"e":"by-laws","c":"细则;章程,规章;附则"}, + {"e":"Finnish","c":"芬兰的"}, + {"e":"a great deal of","c":"很多"}, + {"e":"drone","c":"无人机"}, + {"e":"eat up","c":"吃光;吃完;耗费(大量金钱、时间或资源)"}, + {"e":"tariff","c":"关税"}, + {"e":"shift","c":"转移;挪动"}, + {"e":"alert","c":"使警觉;使警惕"}] function slideHandler() { if (document.currentStep <= document.totalStep) { diff --git a/src/main.js b/src/main.js index de7cb8e..cd74485 100644 --- a/src/main.js +++ b/src/main.js @@ -24,6 +24,9 @@ function init() { globalShortcut.register('x', () => { app.exit(0) }) + globalShortcut.register('esc', () => { + app.exit(0) + }) } app.whenReady().then(init) \ No newline at end of file diff --git a/src/package.json b/src/package.json index f2d022f..7ee863e 100644 --- a/src/package.json +++ b/src/package.json @@ -1,6 +1,6 @@ { "name": "nokia_5g_ppt", - "version": "1.3.0", + "version": "1.3.1", "description": "Nokia 5G PPT for duty report", "main": "main.js", "build": {