Commit 9bd77a9c authored by NGPixel's avatar NGPixel

feat: confetti during setup success

parent 6b561623
...@@ -104,6 +104,7 @@ ...@@ -104,6 +104,7 @@
import _ from 'lodash' import _ from 'lodash'
import validate from 'validate.js' import validate from 'validate.js'
import { BreedingRhombusSpinner } from 'epic-spinners' import { BreedingRhombusSpinner } from 'epic-spinners'
import confetti from 'canvas-confetti'
/* global siteConfig */ /* global siteConfig */
...@@ -206,6 +207,11 @@ export default { ...@@ -206,6 +207,11 @@ export default {
if (resp.ok === true) { if (resp.ok === true) {
_.delay(() => { _.delay(() => {
confetti({
particleCount: 100,
spread: 70,
zIndex: 100000
})
this.success = true this.success = true
_.delay(() => { _.delay(() => {
window.location.assign('/login') window.location.assign('/login')
......
...@@ -217,6 +217,7 @@ ...@@ -217,6 +217,7 @@
"babel-plugin-prismjs": "2.0.1", "babel-plugin-prismjs": "2.0.1",
"babel-plugin-transform-imports": "2.0.0", "babel-plugin-transform-imports": "2.0.0",
"cache-loader": "4.1.0", "cache-loader": "4.1.0",
"canvas-confetti": "1.2.0",
"chart.js": "2.9.3", "chart.js": "2.9.3",
"clean-webpack-plugin": "3.0.0", "clean-webpack-plugin": "3.0.0",
"clipboard": "2.0.6", "clipboard": "2.0.6",
......
This diff was suppressed by a .gitattributes entry.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment