chore: upgrade spin.js to 4.0.0

Signed-off-by: BoHong Li <raccoon@hackmd.io>
This commit is contained in:
BoHong Li 2019-08-01 23:56:26 +08:00
parent bccf4583a7
commit ab1a3b663e
No known key found for this signature in database
GPG Key ID: 06770355DC9ECD38
5 changed files with 10 additions and 11 deletions

View File

@ -130,7 +130,7 @@
"shortid": "~2.2.8",
"socket.io": "~2.1.1",
"socket.io-client": "~2.1.1",
"spin.js": "~2.3.2",
"spin.js": "~4.0.0",
"sqlite3": "~4.0.1",
"store": "~2.0.12",
"tedious": "~6.1.0",

View File

@ -10,7 +10,6 @@ module.exports = {
"moment": false,
"editor": false,
"ui": false,
"Spinner": false,
"modeType": false,
"serverurl": false,
"key": false,

View File

@ -1,5 +1,5 @@
/* eslint-env browser, jquery */
/* global CodeMirror, Cookies, moment, Spinner, serverurl,
/* global CodeMirror, Cookies, moment, serverurl,
key, Dropbox, ot, hex2rgb, Visibility, inlineAttachment */
import TurndownService from 'turndown'
@ -17,6 +17,8 @@ import List from 'list.js'
import Idle from '@hackmd/idle-js'
import { Spinner } from 'spin.js';
import {
checkLoginStateChanged,
setloginStateChangeEvent
@ -83,6 +85,7 @@ require('../css/index.css')
require('../css/extra.css')
require('../css/slide-preview.css')
require('../css/site.css')
require('spin.js/spin.css')
require('highlight.js/styles/github-gist.css')
@ -334,9 +337,7 @@ var opts = {
left: '50%' // Left position relative to parent
}
/* eslint-disable no-unused-vars */
var spinner = new Spinner(opts).spin(ui.spinner[0])
/* eslint-enable no-unused-vars */
new Spinner(opts).spin(ui.spinner[0])
// idle
var idle = new Idle({

View File

@ -238,7 +238,6 @@ module.exports = {
],
'index-pack': [
'babel-polyfill',
'expose-loader?Spinner!spin.js',
'script-loader!jquery-ui-resizable',
'bootstrap-validator',
'expose-loader?jsyaml!js-yaml',

View File

@ -11570,10 +11570,10 @@ spdx-license-ids@^3.0.0:
resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-3.0.4.tgz#75ecd1a88de8c184ef015eafb51b5b48bfd11bb1"
integrity sha512-7j8LYJLeY/Yb6ACbQ7F76qy5jHkp0U6jgBfJsk97bwWlVUnUWsAgpyaCvo17h0/RQGnQ036tVDomiwoI4pDkQA==
spin.js@~2.3.2:
version "2.3.2"
resolved "https://registry.yarnpkg.com/spin.js/-/spin.js-2.3.2.tgz#6caa56d520673450fd5cfbc6971e6d0772c37a1a"
integrity sha1-bKpW1SBnNFD9XPvGlx5tB3LDeho=
spin.js@~4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/spin.js/-/spin.js-4.0.0.tgz#d6643232cc20b8d2c1b3ab6f0661178145b4dde8"
integrity sha512-uJN9Q4/I4I7PRZAp1c5reoY89thAfvFB5thbJncAwkPjPhqCfUrCooJc8GMN8q8WKFGIMy+JMf477RW7deCInA==
split-string@^3.0.1, split-string@^3.0.2:
version "3.1.0"