mirror of
https://github.com/kevin-DL/build-gmail-clone-with-vue-3.git
synced 2026-01-11 18:54:31 +00:00
From/sentAt byline
This commit is contained in:
@@ -87,6 +87,10 @@ input[type='checkbox']:checked {
|
||||
background: #679;
|
||||
}
|
||||
|
||||
.mb-0 {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
/* Modal */
|
||||
|
||||
.modal, .overlay {
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
<button @click="toggleRead(email)">Mark {{email.read ? 'Unread' : 'Read'}}</button>
|
||||
</div>
|
||||
|
||||
<div>From: {{email.from}}</div>
|
||||
<h2>Subject: <strong>{{email.subject}}</strong></h2>
|
||||
<h2 class="mb-0">Subject: <strong>{{email.subject}}</strong></h2>
|
||||
<div><em>From {{email.from}} on {{format(new Date(email.sentAt), 'MMM do yyyy')}}</em></div>
|
||||
<div v-html="emailMarkdown" />
|
||||
</div>
|
||||
</template>
|
||||
@@ -16,6 +16,7 @@
|
||||
<script>
|
||||
import marked from 'marked';
|
||||
import { useKeydown } from '../composition/useKeydown';
|
||||
import { format } from 'date-fns';
|
||||
|
||||
export default {
|
||||
setup({email}, {emit}) {
|
||||
@@ -40,7 +41,8 @@
|
||||
toggleArchive,
|
||||
goNewer,
|
||||
goOlder,
|
||||
toggleRead
|
||||
toggleRead,
|
||||
format
|
||||
}
|
||||
},
|
||||
props: {
|
||||
|
||||
Reference in New Issue
Block a user