mirror of
https://github.com/yuzu-emu/liftinstall.git
synced 2024-11-25 15:05:46 +01:00
ui: update NPM dependencies
This commit is contained in:
parent
01419e5da4
commit
cd7fb8de28
@ -7,6 +7,8 @@ const port = 3000
|
||||
let showError = false
|
||||
let maintenance = false
|
||||
let launcher = false
|
||||
let fileExists = false
|
||||
let darkMode = false
|
||||
|
||||
function progressSimulation (res) {
|
||||
if (showError) {
|
||||
@ -73,7 +75,7 @@ app.get('/api/attrs', (req, res) => {
|
||||
})
|
||||
|
||||
app.get('/api/dark-mode', (req, res) => {
|
||||
res.json(false)
|
||||
res.json(darkMode)
|
||||
})
|
||||
|
||||
app.get('/api/installation-status', (req, res) => {
|
||||
@ -116,5 +118,34 @@ app.get('/api/mock_error', (req, res) => {
|
||||
res.status(200).send(`Error emulation: ${showError}\n`)
|
||||
})
|
||||
|
||||
app.post('/api/verify-path', (req, res) => {
|
||||
console.log('-- Verify Path')
|
||||
res.send({
|
||||
exists: fileExists
|
||||
})
|
||||
})
|
||||
|
||||
process.argv.forEach((val, index) => {
|
||||
switch (val) {
|
||||
case 'maintenance':
|
||||
maintenance = true
|
||||
console.log('Simulating maintenance mode')
|
||||
break
|
||||
case 'launcher':
|
||||
maintenance = true
|
||||
launcher = true
|
||||
console.log('Simulating launcher mode')
|
||||
break
|
||||
case 'exists':
|
||||
fileExists = true
|
||||
console.log('Simulating file exists situation')
|
||||
break
|
||||
case 'dark':
|
||||
darkMode = true
|
||||
console.log('Simulating dark mode')
|
||||
break
|
||||
}
|
||||
})
|
||||
|
||||
console.log(`Listening on ${port}...`)
|
||||
app.listen(port)
|
||||
|
@ -9,29 +9,27 @@
|
||||
"postinstall": "node merge-strings.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"axios": "^0.19.0",
|
||||
"buefy": "^0.8.8",
|
||||
"vue": "^2.6.10",
|
||||
"axios": "^0.19.2",
|
||||
"buefy": "^0.8.20",
|
||||
"vue": "^2.6.11",
|
||||
"vue-axios": "^2.1.5",
|
||||
"vue-i18n": "^8.15.1",
|
||||
"vue-router": "^3.1.3"
|
||||
"vue-i18n": "^8.18.1",
|
||||
"vue-router": "^3.3.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/cli-plugin-babel": "^4.1.1",
|
||||
"@vue/cli-plugin-eslint": "^4.1.1",
|
||||
"@vue/cli-service": "^4.1.1",
|
||||
"@vue/eslint-config-standard": "^5.0.1",
|
||||
"babel-eslint": "^10.0.3",
|
||||
"deepmerge": "^4.2.2",
|
||||
"eslint": "^6.7.2",
|
||||
"eslint-plugin-import": "^2.18.2",
|
||||
"eslint-plugin-node": "^10.0.0",
|
||||
"@vue/cli-plugin-babel": "^4.4.1",
|
||||
"@vue/cli-plugin-eslint": "^4.4.1",
|
||||
"@vue/cli-service": "^4.4.1",
|
||||
"@vue/eslint-config-standard": "^5.1.2",
|
||||
"babel-eslint": "^10.1.0",
|
||||
"eslint": "^6.2.2",
|
||||
"eslint-plugin-import": "^2.20.2",
|
||||
"eslint-plugin-node": "^11.1.0",
|
||||
"eslint-plugin-promise": "^4.2.1",
|
||||
"eslint-plugin-standard": "^4.0.1",
|
||||
"eslint-plugin-vue": "^6.0.1",
|
||||
"eslint-plugin-vue": "^6.2.2",
|
||||
"express": "^4.17.1",
|
||||
"glob": "^7.1.6",
|
||||
"http-proxy-middleware": "^0.20.0",
|
||||
"vue-template-compiler": "^2.6.10"
|
||||
"http-proxy-middleware": "^1.0.4",
|
||||
"vue-template-compiler": "^2.6.11"
|
||||
}
|
||||
}
|
||||
|
@ -62,7 +62,7 @@ export function stream_ajax (path, callback, successCallback, failCallback, data
|
||||
var form = ''
|
||||
|
||||
for (var key in data) {
|
||||
if (!Object.prototype.hasOwnProperty.call(data, key)) {
|
||||
if (!data[key]) {
|
||||
continue
|
||||
}
|
||||
|
||||
|
@ -62,16 +62,16 @@ export default {
|
||||
this.$root.stream_ajax(targetUrl, function (line) {
|
||||
// On progress line received from server
|
||||
|
||||
if (Object.prototype.hasOwnProperty.call(line, 'Status')) {
|
||||
if (line.Status) {
|
||||
that.progress_message = line.Status[0]
|
||||
that.progress = line.Status[1] * 100
|
||||
}
|
||||
|
||||
if (Object.prototype.hasOwnProperty.call(line, 'PackageInstalled')) {
|
||||
if (line.PackageInstalled) {
|
||||
that.packages_installed += 1
|
||||
}
|
||||
|
||||
if (Object.prototype.hasOwnProperty.call(line, 'Error')) {
|
||||
if (line.Error) {
|
||||
that.failed_with_error = true
|
||||
that.$router.replace({ name: 'showerr', params: { msg: line.Error } })
|
||||
}
|
||||
|
3807
ui/yarn.lock
3807
ui/yarn.lock
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user