feat: confetti during setup success

This commit is contained in:
NGPixel
2020-05-21 00:34:24 -04:00
parent 6b561623ee
commit 9bd77a9ccd
3 changed files with 7 additions and 0 deletions

View File

@@ -104,6 +104,7 @@
import _ from 'lodash'
import validate from 'validate.js'
import { BreedingRhombusSpinner } from 'epic-spinners'
import confetti from 'canvas-confetti'
/* global siteConfig */
@@ -206,6 +207,11 @@ export default {
if (resp.ok === true) {
_.delay(() => {
confetti({
particleCount: 100,
spread: 70,
zIndex: 100000
})
this.success = true
_.delay(() => {
window.location.assign('/login')

View File

@@ -217,6 +217,7 @@
"babel-plugin-prismjs": "2.0.1",
"babel-plugin-transform-imports": "2.0.0",
"cache-loader": "4.1.0",
"canvas-confetti": "1.2.0",
"chart.js": "2.9.3",
"clean-webpack-plugin": "3.0.0",
"clipboard": "2.0.6",

BIN
yarn.lock

Binary file not shown.