Clean up src

This commit is contained in:
2023-11-01 17:15:29 -04:00
parent eba7e4b0b7
commit eb9cbd9f66
3 changed files with 0 additions and 81 deletions

View File

@@ -17,18 +17,8 @@ async function login(ev) {
}
}
console.log(user.value)
console.log(pass.value)
console.log(api_url)
console.log(payload)
console.log(fetch_options)
let resp = await fetch(api_url, fetch_options)
console.log(resp)
if (resp.ok) {
let ans = await resp.json()
console.log(ans)
window.location.hash = "/"
} else {
user.value = ''
@@ -38,7 +28,6 @@ async function login(ev) {
onMounted(async () => {
let resp = await fetch("/api/user")
console.log(resp)
if (resp.ok) {
window.location.hash = "/"
}
@@ -71,11 +60,6 @@ onMounted(async () => {
</template>
<style scoped>
/* html,
body {
height: 100%;
} */
.form-signin {
max-width: 330px;
padding: 1rem;

View File

@@ -10,7 +10,6 @@ const err = ref('')
async function signup(ev) {
ev.preventDefault()
console.log(ev)
const api_url = '/api/user'
const payload = { username: user.value, password: pass.value, referral: refe.value }
const fetch_options = {
@@ -21,19 +20,10 @@ async function signup(ev) {
}
}
console.log(user.value)
console.log(pass.value)
console.log(api_url)
console.log(payload)
console.log(fetch_options)
let resp = await fetch(api_url, fetch_options)
console.log(resp)
if (resp.ok) {
err.value = ''
let ans = await resp.json()
console.log(ans)
window.location.hash = "/"
}
else {