mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-13 00:02:37 +10:00
initial commit
This commit is contained in:
3
pages/index.vue
Normal file
3
pages/index.vue
Normal file
@ -0,0 +1,3 @@
|
||||
<template>
|
||||
|
||||
</template>
|
||||
23
pages/register.vue
Normal file
23
pages/register.vue
Normal file
@ -0,0 +1,23 @@
|
||||
<template>
|
||||
<form @submit.prevent="register">
|
||||
<input type="text" v-model="username" placeholder="username" />
|
||||
<input type="text" v-model="password" placeholder="password" />
|
||||
|
||||
<button type="submit">Submit</button>
|
||||
</form>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
const username = ref("");
|
||||
const password = ref("");
|
||||
|
||||
async function register() {
|
||||
await $fetch('/api/v1/signup/simple', {
|
||||
method: "POST",
|
||||
body: {
|
||||
username: username.value,
|
||||
password: password.value
|
||||
}
|
||||
})
|
||||
}
|
||||
</script>
|
||||
23
pages/signin.vue
Normal file
23
pages/signin.vue
Normal file
@ -0,0 +1,23 @@
|
||||
<template>
|
||||
<form @submit.prevent="register">
|
||||
<input type="text" v-model="username" placeholder="username" />
|
||||
<input type="text" v-model="password" placeholder="password" />
|
||||
|
||||
<button type="submit">Submit</button>
|
||||
</form>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
const username = ref("");
|
||||
const password = ref("");
|
||||
|
||||
async function register() {
|
||||
await $fetch('/api/v1/signin/simple', {
|
||||
method: "POST",
|
||||
body: {
|
||||
username: username.value,
|
||||
password: password.value
|
||||
}
|
||||
})
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user