chore: remove unnecessary code
This commit is contained in:
parent
0562127e4a
commit
4e2e61d4dc
5 changed files with 2 additions and 25 deletions
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div id="middle-left-column">
|
<div id="middle-left-column">
|
||||||
<div id="friend-sidebar">
|
<div id="friend-sidebar">
|
||||||
<div id="server-title">
|
<div>
|
||||||
<h3>Direct Messages</h3>
|
<h3>Direct Messages</h3>
|
||||||
</div>
|
</div>
|
||||||
<VerticalSpacer />
|
<VerticalSpacer />
|
||||||
|
@ -23,17 +23,9 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import VerticalSpacer from '~/components/UserInterface/VerticalSpacer.vue';
|
import VerticalSpacer from '~/components/UserInterface/VerticalSpacer.vue';
|
||||||
|
|
||||||
|
|
||||||
const { fetchFriends } = useApi();
|
const { fetchFriends } = useApi();
|
||||||
|
|
||||||
const friends = await fetchFriends()
|
const friends = await fetchFriends()
|
||||||
|
|
||||||
console.log(friends)
|
|
||||||
|
|
||||||
definePageMeta({
|
|
||||||
layout: "client"
|
|
||||||
});
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
|
@ -31,9 +31,6 @@ const friends = await fetchFriends()
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
variant: string
|
variant: string
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
console.log("props", props.variant)
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
|
@ -1,18 +1,13 @@
|
||||||
<template>
|
<template>
|
||||||
<NuxtLayout name="client">
|
<NuxtLayout name="client">
|
||||||
<DirectMessagesSidebar />
|
<DirectMessagesSidebar />
|
||||||
<MessageArea channel-url="channels/01970e8c-a09c-76a0-9c98-80a43364bea7"/>
|
<MessageArea channel-url="channels/01970e8c-a09c-76a0-9c98-80a43364bea7"/> <!-- currently just links to the default channel -->
|
||||||
|
|
||||||
</NuxtLayout>
|
</NuxtLayout>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import DirectMessagesSidebar from '~/components/Me/DirectMessagesSidebar.vue';
|
import DirectMessagesSidebar from '~/components/Me/DirectMessagesSidebar.vue';
|
||||||
|
|
||||||
definePageMeta({
|
|
||||||
layout: "client"
|
|
||||||
});
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
|
@ -25,7 +25,6 @@ import FriendsList from '~/components/Me/FriendsList.vue';
|
||||||
|
|
||||||
let windowHash = ref(window.location.hash)
|
let windowHash = ref(window.location.hash)
|
||||||
|
|
||||||
|
|
||||||
function updateHash(newHash: string) {
|
function updateHash(newHash: string) {
|
||||||
window.location.hash = newHash
|
window.location.hash = newHash
|
||||||
windowHash.value = `#${newHash}`;
|
windowHash.value = `#${newHash}`;
|
||||||
|
|
|
@ -6,12 +6,6 @@
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import DirectMessagesSidebar from '~/components/Me/DirectMessagesSidebar.vue';
|
import DirectMessagesSidebar from '~/components/Me/DirectMessagesSidebar.vue';
|
||||||
|
|
||||||
|
|
||||||
definePageMeta({
|
|
||||||
layout: "client"
|
|
||||||
});
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue