more actions, new colors (very bad going to change)
This commit is contained in:
@@ -21,13 +21,12 @@ export default {
|
||||
useGlobalStore().addDM(server);
|
||||
if (typeof route.params.id !== 'string') throw new Error('route.params.id must be a string, but got an array presumably?')
|
||||
useGlobalStore().setActiveServer('dms', route.params.id);
|
||||
useGlobalStore().setActiveChannel(server)
|
||||
|
||||
server.messages?.forEach((e) => {
|
||||
e.body = parseMessageBody(e.body, useGlobalStore().activeChannel)
|
||||
})
|
||||
|
||||
useGlobalStore().setActiveChannel(server)
|
||||
|
||||
return {
|
||||
server
|
||||
}
|
||||
|
||||
@@ -48,13 +48,12 @@ export default {
|
||||
useGlobalStore().addServer(realServer);
|
||||
if (typeof route.params.id !== 'string') throw new Error('route.params.id must be a string, but got an array presumiably?')
|
||||
useGlobalStore().setActiveServer('servers', route.params.id)
|
||||
useGlobalStore().setActiveChannel(server)
|
||||
|
||||
server.messages?.forEach((e) => {
|
||||
e.body = parseMessageBody(e.body, useGlobalStore().activeChannel)
|
||||
})
|
||||
|
||||
useGlobalStore().setActiveChannel(server)
|
||||
|
||||
return {
|
||||
server,
|
||||
}
|
||||
|
||||
@@ -6,12 +6,12 @@
|
||||
<form class="flex flex-col gap-y-2 my-2"
|
||||
@submit.prevent="signup()">
|
||||
<input
|
||||
class="border border-[hsl(218,calc(1*7.9%),23.7%)] px-4 py-2 rounded w-full bg-[hsl(218,calc(1*7.9%),27.3%)] placeholder:text-[hsl(218,calc(1*4.6%),46.9%)] focus:outline-none"
|
||||
class="border border-[hsl(218,calc(1*7.9%),23.7%)] px-4 py-2 rounded w-full bg-[hsl(218,calc(1*7.9%),27.3%)] placeholder:text-[var(--primary-placeholder)] focus:outline-none"
|
||||
name="username"
|
||||
v-model="username"
|
||||
placeholder="username" />
|
||||
<input
|
||||
class="border border-[hsl(218,calc(1*7.9%),23.7%)] px-4 py-2 rounded w-full bg-[hsl(218,calc(1*7.9%),27.3%)] placeholder:text-[hsl(218,calc(1*4.6%),46.9%)] focus:outline-none"
|
||||
class="border border-[hsl(218,calc(1*7.9%),23.7%)] px-4 py-2 rounded w-full bg-[hsl(218,calc(1*7.9%),27.3%)] placeholder:text-[var(--primary-placeholder)] focus:outline-none"
|
||||
name="password"
|
||||
type="password"
|
||||
v-model="password"
|
||||
|
||||
@@ -6,22 +6,23 @@
|
||||
<form class="flex flex-col gap-y-2 my-2"
|
||||
@submit.prevent="signup()">
|
||||
<input
|
||||
class="border border-[hsl(218,calc(1*7.9%),23.7%)] px-4 py-2 rounded w-full bg-[hsl(218,calc(1*7.9%),27.3%)] placeholder:text-[hsl(218,calc(1*4.6%),46.9%)] focus:outline-none"
|
||||
class="border border-[hsl(218,calc(1*7.9%),23.7%)] px-4 py-2 rounded w-full bg-[hsl(218,calc(1*7.9%),27.3%)] placeholder:text-[var(--primary-placeholder)] focus:outline-none"
|
||||
name="username"
|
||||
v-model="username"
|
||||
placeholder="username" />
|
||||
<input
|
||||
class="border border-[hsl(218,calc(1*7.9%),23.7%)] px-4 py-2 rounded w-full bg-[hsl(218,calc(1*7.9%),27.3%)] placeholder:text-[hsl(218,calc(1*4.6%),46.9%)] focus:outline-none"
|
||||
class="border border-[hsl(218,calc(1*7.9%),23.7%)] px-4 py-2 rounded w-full bg-[hsl(218,calc(1*7.9%),27.3%)] placeholder:text-[var(--primary-placeholder)] focus:outline-none"
|
||||
name="email"
|
||||
v-model="email"
|
||||
placeholder="email" />
|
||||
<input
|
||||
class="border border-[hsl(218,calc(1*7.9%),23.7%)] px-4 py-2 rounded w-full bg-[hsl(218,calc(1*7.9%),27.3%)] placeholder:text-[hsl(218,calc(1*4.6%),46.9%)] focus:outline-none"
|
||||
class="border border-[hsl(218,calc(1*7.9%),23.7%)] px-4 py-2 rounded w-full bg-[hsl(218,calc(1*7.9%),27.3%)] placeholder:text-[var(--primary-placeholder)] focus:outline-none"
|
||||
name="password"
|
||||
type="password"
|
||||
v-model="password"
|
||||
placeholder="password" />
|
||||
<input type="submit" class="w-full bg-[#5865F2] py-2 px-4 rounded cursor-pointer" />
|
||||
<input type="submit"
|
||||
class="w-full bg-[#5865F2] py-2 px-4 rounded cursor-pointer" />
|
||||
</form>
|
||||
<div class="text-center">Or <nuxt-link class="hover:underline text-blue-500"
|
||||
to="/login">Login</nuxt-link></div>
|
||||
|
||||
Reference in New Issue
Block a user