mirror of
https://github.com/yuzu-emu/liftinstall.git
synced 2024-11-26 02:05:51 +01:00
feat(ui): add a mock to mock authentication ...
... also updates UI/JS dependencies
This commit is contained in:
parent
fbf7640657
commit
109322836b
@ -13,14 +13,14 @@ let darkMode = false
|
|||||||
|
|
||||||
function progressSimulation (res) {
|
function progressSimulation (res) {
|
||||||
if (showError) {
|
if (showError) {
|
||||||
var resp = JSON.stringify({ Error: 'Simulated error.' }) + '\n'
|
const resp = JSON.stringify({ Error: 'Simulated error.' }) + '\n'
|
||||||
res.write(resp)
|
res.write(resp)
|
||||||
res.status(200).end()
|
res.status(200).end()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
var progress = 0.0
|
let progress = 0.0
|
||||||
var timer = setInterval(() => {
|
const timer = setInterval(() => {
|
||||||
var resp = JSON.stringify({ Status: ['Processing...', progress] }) + '\n'
|
const resp = JSON.stringify({ Status: ['Processing...', progress] }) + '\n'
|
||||||
progress += 0.1
|
progress += 0.1
|
||||||
res.write(resp)
|
res.write(resp)
|
||||||
if (progress >= 1) {
|
if (progress >= 1) {
|
||||||
@ -121,6 +121,19 @@ app.post('/api/verify-path', (req, res) => {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
app.post('/api/check-auth', (req, res) => {
|
||||||
|
console.log('-- Check Authorization')
|
||||||
|
res.send({
|
||||||
|
username: 'test1',
|
||||||
|
token: 'token',
|
||||||
|
jwt_token: {
|
||||||
|
isPatreonAccountLinked: true,
|
||||||
|
isPatreonSubscriptionActive: true,
|
||||||
|
releaseChannels: ['early-access']
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
process.argv.forEach((val, index) => {
|
process.argv.forEach((val, index) => {
|
||||||
switch (val) {
|
switch (val) {
|
||||||
case 'maintenance':
|
case 'maintenance':
|
||||||
|
@ -9,28 +9,29 @@
|
|||||||
"postinstall": "node merge-strings.js"
|
"postinstall": "node merge-strings.js"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@mdi/font": "^5.9.55",
|
"@mdi/font": "^6.2.95",
|
||||||
"axios": "^0.21.1",
|
"axios": "^0.23.0",
|
||||||
"buefy": "^0.9.7",
|
"buefy": "^0.9.10",
|
||||||
|
"canvas-confetti": "^1.4.0",
|
||||||
"vue": "^2.6.14",
|
"vue": "^2.6.14",
|
||||||
"vue-axios": "^3.2.4",
|
"vue-axios": "^3.3.7",
|
||||||
"vue-i18n": "^8.24.4",
|
"vue-i18n": "^8.26.5",
|
||||||
"vue-router": "^3.5.1"
|
"vue-router": "^3.5.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@vue/cli-plugin-babel": "^4.5.13",
|
"@vue/cli-plugin-babel": "^4.5.14",
|
||||||
"@vue/cli-plugin-eslint": "^4.5.13",
|
"@vue/cli-plugin-eslint": "^4.5.14",
|
||||||
"@vue/cli-service": "^4.5.13",
|
"@vue/cli-service": "^4.5.14",
|
||||||
"@vue/eslint-config-standard": "^6.0.0",
|
"@vue/eslint-config-standard": "^6.1.0",
|
||||||
"babel-eslint": "^10.1.0",
|
"babel-eslint": "^10.1.0",
|
||||||
"eslint": "^7.28.0",
|
"eslint": "^7.28.0",
|
||||||
"eslint-plugin-import": "^2.23.4",
|
"eslint-plugin-import": "^2.25.2",
|
||||||
"eslint-plugin-node": "^11.1.0",
|
"eslint-plugin-node": "^11.1.0",
|
||||||
"eslint-plugin-promise": "^5.1.0",
|
"eslint-plugin-promise": "^5.1.0",
|
||||||
"eslint-plugin-standard": "^4.1.0",
|
"eslint-plugin-standard": "^4.1.0",
|
||||||
"eslint-plugin-vue": "^7.10.0",
|
"eslint-plugin-vue": "^7.19.1",
|
||||||
"express": "^4.17.1",
|
"express": "^4.17.1",
|
||||||
"http-proxy-middleware": "^2.0.0",
|
"http-proxy-middleware": "^2.0.1",
|
||||||
"vue-template-compiler": "^2.6.14"
|
"vue-template-compiler": "^2.6.14"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -69,7 +69,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
const confetti = require('canvas-confetti')
|
||||||
export default {
|
export default {
|
||||||
name: 'AuthenticationView',
|
name: 'AuthenticationView',
|
||||||
created: function () {
|
created: function () {
|
||||||
@ -149,8 +149,14 @@ export default {
|
|||||||
this.$root.check_authentication(this.success, this.error)
|
this.$root.check_authentication(this.success, this.error)
|
||||||
},
|
},
|
||||||
success: function () {
|
success: function () {
|
||||||
// if they are eligible, go back to the select package page
|
|
||||||
if (this.$root.has_reward_tier) {
|
if (this.$root.has_reward_tier) {
|
||||||
|
// show a success animation
|
||||||
|
confetti.default({
|
||||||
|
particleCount: 200,
|
||||||
|
spread: 90,
|
||||||
|
origin: { x: 0.6 }
|
||||||
|
})
|
||||||
|
// if they are eligible, go back to the select package page
|
||||||
this.$router.go(-1)
|
this.$router.go(-1)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
1440
ui/yarn.lock
1440
ui/yarn.lock
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user