Skip to content

Commit 628e679

Browse files
committed
refactor: replace Idle.js to @hackmd/idle-js
Signed-off-by: BoHong Li <a60814billy@gmail.com>
1 parent ad9f29a commit 628e679

5 files changed

Lines changed: 177 additions & 189 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
"doctoc": "doctoc --title='# Table of Contents' README.md"
1717
},
1818
"dependencies": {
19+
"@hackmd/idle-js": "^1.0.1",
1920
"@hackmd/js-sequence-diagrams": "^0.0.1-alpha.2",
2021
"@passport-next/passport-openid": "^1.0.0",
21-
"Idle.Js": "git+https://github.com/shawnmclean/Idle.js",
2222
"archiver": "^2.1.1",
2323
"async": "^2.1.4",
2424
"aws-sdk": "^2.345.0",

public/.eslintrc.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ module.exports = {
1212
"ui": false,
1313
"Spinner": false,
1414
"modeType": false,
15-
"Idle": false,
1615
"serverurl": false,
1716
"key": false,
1817
"gapi": false,

public/js/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ import _ from 'lodash'
2222

2323
import List from 'list.js'
2424

25+
import Idle from '@hackmd/idle-js'
26+
2527
import {
2628
checkLoginStateChanged,
2729
setloginStateChangeEvent

webpack.common.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,6 @@ module.exports = {
202202
'babel-polyfill',
203203
'script-loader!jquery-ui-resizable',
204204
'script-loader!js-url',
205-
'script-loader!Idle.Js',
206205
'expose-loader?LZString!lz-string',
207206
'script-loader!codemirror',
208207
'script-loader!inlineAttachment',
@@ -252,7 +251,6 @@ module.exports = {
252251
'script-loader!handlebars',
253252
'expose-loader?hljs!highlight.js',
254253
'expose-loader?emojify!emojify.js',
255-
'script-loader!Idle.Js',
256254
'script-loader!gist-embed',
257255
'expose-loader?LZString!lz-string',
258256
'script-loader!codemirror',

0 commit comments

Comments
 (0)