Upgrade node packages

This commit is contained in:
nemunaire 2020-04-17 17:04:11 +02:00
parent 7b9544b3db
commit 762966908c
5 changed files with 859 additions and 939 deletions

View File

@ -1,5 +1,5 @@
{
"name": "htdocs",
"name": "HappyDNS-Frontend",
"version": "0.1.0",
"private": true,
"scripts": {
@ -8,23 +8,27 @@
"lint": "vue-cli-service lint"
},
"dependencies": {
"axios": "^0.19.0",
"axios": "^0.19.2",
"bootstrap": "^4.4.1",
"bootstrap-vue": "^2.0.0-rc.28",
"vue": "^2.6.10",
"vue-router": "^3.0.6",
"vuex": "^3.1.2"
"bootstrap-vue": "^2.11.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"vue": "^2.6.11",
"vue-router": "^3.1.6",
"vuex": "^3.1.3"
},
"devDependencies": {
"@vue/cli-plugin-eslint": "^4.0.0-rc.0",
"@vue/cli-plugin-pwa": "^4.0.0-rc.0",
"@vue/cli-plugin-router": "^4.0.0-rc.0",
"@vue/cli-service": "^4.0.0-rc.0",
"@vue/eslint-config-standard": "^4.0.0",
"@vue/eslint-config-standard": "^5.1.2",
"babel-eslint": "^10.0.1",
"eslint": "^5.16.0",
"eslint-plugin-vue": "^5.0.0",
"lint-staged": "^8.1.5",
"eslint": "^6.8.0",
"eslint-plugin-vue": "^6.2.2",
"lint-staged": "^10.1.4",
"vue-template-compiler": "^2.6.10"
},
"eslintConfig": {

View File

@ -48,7 +48,7 @@ import axios from 'axios'
function updateSession (t) {
if (sessionStorage.token !== undefined) {
t.session = sessionStorage.token
axios.defaults.headers.common['Authorization'] = 'Bearer '.concat(sessionStorage.token)
axios.defaults.headers.common.Authorization = 'Bearer '.concat(sessionStorage.token)
axios.get('/api/users/auth')
.then(
(response) => {
@ -56,7 +56,7 @@ function updateSession (t) {
},
(error) => {
t.$bvToast.toast(
`Invalid session, your have been logged out: ` + error.response.data.errmsg + `. Please login again.`, {
'Invalid session, your have been logged out: ' + error.response.data.errmsg + '. Please login again.', {
title: 'Authentication timeout',
autoHideDelay: 5000,
variant: 'danger',
@ -103,8 +103,8 @@ export default {
login (email, password) {
axios
.post('/api/users/auth', {
'email': email,
'password': password
email: email,
password: password
})
.then(
(response) => {
@ -116,7 +116,7 @@ export default {
},
(error) => {
this.$bvToast.toast(
`An error occurs when trying to login: ` + error.response.data.errmsg, {
'An error occurs when trying to login: ' + error.response.data.errmsg, {
title: 'Login error',
autoHideDelay: 5000,
toaster: 'b-toaster-content-right'

View File

@ -96,13 +96,13 @@ export default {
} else if (valid) {
axios
.post('/api/users', {
'email': this.signupForm.email,
'password': this.signupForm.password
email: this.signupForm.email,
password: this.signupForm.password
})
.then(
(response) => {
this.$bvToast.toast(
`Login now`, {
'Login now', {
title: 'Registration successfully performed!',
autoHideDelay: 5000,
href: 'login',

View File

@ -120,7 +120,7 @@ export default {
newRR (idx) {
axios
.post('/api/zones/' + this.$route.params.zone + '/rr', {
'string': this.rrsFiltered[idx].string
string: this.rrsFiltered[idx].string
})
.then(
(response) => {
@ -136,9 +136,11 @@ export default {
deleteRR (idx) {
axios
.delete('/api/zones/' + this.$route.params.zone + '/rr', { data: {
'string': this.rrsFiltered[idx].string
} })
.delete('/api/zones/' + this.$route.params.zone + '/rr', {
data: {
string: this.rrsFiltered[idx].string
}
})
.then(
(response) => {
axios

File diff suppressed because it is too large Load Diff