mirror of
https://github.com/kaythomas0/noisedash.git
synced 2025-11-14 20:27:59 +00:00
Remove frontend console debug logs
This commit is contained in:
@@ -29,9 +29,6 @@ export default {
|
|||||||
this.users = response.data.users
|
this.users = response.data.users
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
|
||||||
console.error(error.response)
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
getCurrentUser () {
|
getCurrentUser () {
|
||||||
this.$http.get('/users/current')
|
this.$http.get('/users/current')
|
||||||
@@ -40,9 +37,6 @@ export default {
|
|||||||
this.currentUser = response.data.user
|
this.currentUser = response.data.user
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
|
||||||
console.error(error.response)
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
updateUserAdmin (id, isAdmin) {
|
updateUserAdmin (id, isAdmin) {
|
||||||
this.$http.patch('/users/admin/'.concat(id), {
|
this.$http.patch('/users/admin/'.concat(id), {
|
||||||
@@ -53,8 +47,7 @@ export default {
|
|||||||
this.updateText = 'User updated'
|
this.updateText = 'User updated'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(function (error) {
|
.catch(() => {
|
||||||
console.error(error.response)
|
|
||||||
this.updateText = 'Error updating user'
|
this.updateText = 'Error updating user'
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -67,8 +60,7 @@ export default {
|
|||||||
this.updateText = 'User updated'
|
this.updateText = 'User updated'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(function (error) {
|
.catch(() => {
|
||||||
console.error(error.response)
|
|
||||||
this.updateText = 'Error updating user'
|
this.updateText = 'Error updating user'
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -79,9 +71,6 @@ export default {
|
|||||||
this.getUsers()
|
this.getUsers()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
|
||||||
console.error(error.response)
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
registerUser () {
|
registerUser () {
|
||||||
this.$http.post('/users', {
|
this.$http.post('/users', {
|
||||||
@@ -100,9 +89,6 @@ export default {
|
|||||||
this.getUsers()
|
this.getUsers()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
|
||||||
console.error(error.response)
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,9 +20,6 @@ export default {
|
|||||||
this.$router.push('/login')
|
this.$router.push('/login')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
|
||||||
console.error(error.response)
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
getCurrentUser () {
|
getCurrentUser () {
|
||||||
this.loggedIn = false
|
this.loggedIn = false
|
||||||
@@ -35,8 +32,7 @@ export default {
|
|||||||
this.$vuetify.theme.dark = response.data.user.darkMode
|
this.$vuetify.theme.dark = response.data.user.darkMode
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch(() => {
|
||||||
console.error(error.response)
|
|
||||||
this.isAdmin = false
|
this.isAdmin = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -44,9 +40,6 @@ export default {
|
|||||||
this.$http.patch('/users/dark-mode', {
|
this.$http.patch('/users/dark-mode', {
|
||||||
darkMode: this.$vuetify.theme.dark
|
darkMode: this.$vuetify.theme.dark
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
|
||||||
console.error(error.response)
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,10 +25,11 @@ export default {
|
|||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
if (error.response.status === 401) {
|
if (error.response.status === 401) {
|
||||||
this.snackbar = true
|
|
||||||
this.snackbarText = 'Login Failed: Unauthorized'
|
this.snackbarText = 'Login Failed: Unauthorized'
|
||||||
|
} else {
|
||||||
|
this.snackbarText = 'Login Failed'
|
||||||
}
|
}
|
||||||
console.error(error.response)
|
this.snackbar = true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -216,9 +216,6 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
|
||||||
console.error(error.response)
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
addDefaultProfile () {
|
addDefaultProfile () {
|
||||||
this.$http.post('/profiles/default')
|
this.$http.post('/profiles/default')
|
||||||
@@ -229,9 +226,6 @@ export default {
|
|||||||
this.selectedProfile = defaultProfile
|
this.selectedProfile = defaultProfile
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
|
||||||
console.error(error.response)
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
saveProfile () {
|
saveProfile () {
|
||||||
this.$http.post('/profiles', {
|
this.$http.post('/profiles', {
|
||||||
@@ -259,8 +253,7 @@ export default {
|
|||||||
this.infoSnackbar = true
|
this.infoSnackbar = true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch(() => {
|
||||||
console.error(error.response)
|
|
||||||
this.errorSnackbarText = 'Error Saving Profile'
|
this.errorSnackbarText = 'Error Saving Profile'
|
||||||
this.errorSnackbar = true
|
this.errorSnackbar = true
|
||||||
})
|
})
|
||||||
@@ -288,8 +281,7 @@ export default {
|
|||||||
this.infoSnackbar = true
|
this.infoSnackbar = true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch(() => {
|
||||||
console.error(error.response)
|
|
||||||
this.errorSnackbarText = 'Error Saving Profile'
|
this.errorSnackbarText = 'Error Saving Profile'
|
||||||
this.errorSnackbar = true
|
this.errorSnackbar = true
|
||||||
})
|
})
|
||||||
@@ -318,9 +310,6 @@ export default {
|
|||||||
this.loadedSamples = profile.samples
|
this.loadedSamples = profile.samples
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
|
||||||
console.error(error.response)
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
deleteProfile () {
|
deleteProfile () {
|
||||||
this.$http.delete('/profiles/'.concat(this.selectedProfile.id))
|
this.$http.delete('/profiles/'.concat(this.selectedProfile.id))
|
||||||
@@ -331,8 +320,7 @@ export default {
|
|||||||
this.infoSnackbar = true
|
this.infoSnackbar = true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch(() => {
|
||||||
console.error(error.response)
|
|
||||||
this.errorSnackbarText = 'Error Deleting Profile'
|
this.errorSnackbarText = 'Error Deleting Profile'
|
||||||
this.errorSnackbar = true
|
this.errorSnackbar = true
|
||||||
})
|
})
|
||||||
@@ -349,9 +337,6 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
|
||||||
console.error(error)
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
uploadSample () {
|
uploadSample () {
|
||||||
const formData = new FormData()
|
const formData = new FormData()
|
||||||
@@ -374,9 +359,10 @@ export default {
|
|||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
if (error.response.status === 409) {
|
if (error.response.status === 409) {
|
||||||
this.errorSnackbarText = 'Error Uploading Sample: Duplicate Sample Name'
|
this.errorSnackbarText = 'Error Uploading Sample: Duplicate Sample Name'
|
||||||
this.errorSnackbar = true
|
} else {
|
||||||
|
this.errorSnackbarText = 'Error Uploading Sample'
|
||||||
}
|
}
|
||||||
console.error(error.response)
|
this.errorSnackbar = true
|
||||||
})
|
})
|
||||||
|
|
||||||
this.uploadSampleDialog = false
|
this.uploadSampleDialog = false
|
||||||
@@ -406,9 +392,6 @@ export default {
|
|||||||
this.$vuetify.theme.dark = response.data.user.darkMode
|
this.$vuetify.theme.dark = response.data.user.darkMode
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
|
||||||
console.error(error.response)
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,9 +23,6 @@ export default {
|
|||||||
this.$router.push('/login')
|
this.$router.push('/login')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
|
||||||
console.error(error.response)
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user