83 lines
1.3 KiB
Vue
83 lines
1.3 KiB
Vue
<template>
|
|
|
|
<!-- Position fixed items -->
|
|
<InputItem :initials="profile.initials"/>
|
|
<Settings />
|
|
<div id="recIcon" />
|
|
|
|
<!-- List of message bubbles. -->
|
|
<div id="messenger">
|
|
<Message
|
|
v-for="message in messages"
|
|
:modifier="message.modifier"
|
|
:content="message.content"
|
|
:context="message.context"
|
|
:uid="message.uid"
|
|
/>
|
|
</div>
|
|
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
|
|
import { defineComponent } from "vue";
|
|
import InputItem from "@/render/components/inputItem.vue";
|
|
import Settings from "@/render/components/settings.vue";
|
|
import Message from "@/render/components/message.vue";
|
|
|
|
import { profile } from "@/render/shared/profile";
|
|
import { messages } from "@/render/shared/messages";
|
|
|
|
export default defineComponent({
|
|
name: "Messenger",
|
|
|
|
components: {
|
|
InputItem,
|
|
Settings,
|
|
Message
|
|
},
|
|
|
|
setup() {
|
|
return {
|
|
messages,
|
|
profile
|
|
};
|
|
|
|
},
|
|
|
|
});
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
#messenger {
|
|
width: 100vw;
|
|
height: 100vh;
|
|
overflow: auto;
|
|
}
|
|
|
|
#messenger::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
#recIcon {
|
|
position: fixed;
|
|
right: 0;
|
|
|
|
opacity: 0;
|
|
transform: scale(0.0);
|
|
|
|
margin-top: 24px;
|
|
margin-right: 66px;
|
|
|
|
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
background-color: #FF3B3B;
|
|
|
|
z-index: 2;
|
|
|
|
}
|
|
|
|
</style>
|