Add sample support, re-organize repo

This commit is contained in:
Kevin Thomas
2021-09-24 00:35:18 -07:00
parent b9e340c26a
commit f2d1b80673
23 changed files with 703 additions and 524 deletions

View File

@@ -0,0 +1,31 @@
export default {
data: () => ({
valid: false,
name: '',
username: '',
password: '',
rules: {
required: v => !!v || 'Required'
}
}),
methods: {
register () {
this.$http.post('/users', {
name: this.name,
username: this.username,
password: this.password,
isAdmin: 1,
darkMode: 0,
canUpload: 1
})
.then(response => {
if (response.status === 200) {
this.$router.push('/login')
}
})
.catch((error) => {
console.error(error.response)
})
}
}
}