feat: ditch triplit, move to postgresql + drizzle orm
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { deriveKey } from '~/utils/crypto';
|
||||
import { initSettings } from '~/utils/settings';
|
||||
|
||||
const { client: authClient, signIn, session } = useAuth();
|
||||
|
||||
@@ -101,8 +100,6 @@ const submit = async () => {
|
||||
const key = await deriveKey(form.password, res.data.user.id);
|
||||
localStorage.setItem('encryptionKey', JSON.stringify(key));
|
||||
|
||||
initSettings(res.data.user.id);
|
||||
|
||||
return navigateTo(to ?? '/');
|
||||
};
|
||||
</script>
|
||||
@@ -152,7 +149,7 @@ const submit = async () => {
|
||||
<p v-if="!config.public.disableSignup" class="text-sm text-center mt-3 text-[var(--text-secondary)]">
|
||||
New to Veridian?
|
||||
<NuxtLink :to="to ? `/auth/register?to=${to}` : '/auth/register'"
|
||||
class="text-[var(--color-accent)] font-medium hover:underline">
|
||||
class="text-[var(--color-accent)] font-medium @hover:underline">
|
||||
Create an account
|
||||
</NuxtLink>
|
||||
</p>
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { deriveKey } from '~/utils/crypto';
|
||||
import { initSettings } from '~/utils/settings';
|
||||
|
||||
const { client: authClient, signUp, session } = useAuth();
|
||||
|
||||
@@ -134,8 +133,6 @@ const submit = async () => {
|
||||
const key = await deriveKey(form.password, res.data.user.id);
|
||||
localStorage.setItem('encryptionKey', JSON.stringify(key));
|
||||
|
||||
initSettings(res.data.user.id);
|
||||
|
||||
return navigateTo(to ?? '/');
|
||||
};
|
||||
</script>
|
||||
@@ -203,7 +200,7 @@ const submit = async () => {
|
||||
<p class="text-sm text-center mt-3 text-[var(--text-secondary)]">
|
||||
Already have an account?
|
||||
<NuxtLink :to="to ? `/auth/login?to=${to}` : '/auth/login'"
|
||||
class="text-[var(--color-accent)] font-medium hover:underline">
|
||||
class="text-[var(--color-accent)] font-medium @hover:underline">
|
||||
Log in here
|
||||
</NuxtLink>
|
||||
</p>
|
||||
|
||||
Reference in New Issue
Block a user