Move Vue into the vuejs directory
This commit is contained in:
parent
a4b018204d
commit
d7c864b63b
21 changed files with 13 additions and 15 deletions
vuejs/src/components
38
vuejs/src/components/AcceptedSessionsList.vue
Normal file
38
vuejs/src/components/AcceptedSessionsList.vue
Normal file
|
@ -0,0 +1,38 @@
|
|||
<template>
|
||||
<div>
|
||||
<h1 class="text-4xl mb-2">Sessions</h1>
|
||||
|
||||
<div v-if="acceptedSessions.length" class="bg-white p-6 rounded-lg border">
|
||||
<ul class="-mb-3">
|
||||
<li v-for="{ attributes } in acceptedSessions" :key="attributes.drupal_internal__nid" class="mb-3">
|
||||
{{ attributes.title }}
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
sessions: {
|
||||
type: Object,
|
||||
required: true
|
||||
}
|
||||
},
|
||||
|
||||
computed: {
|
||||
acceptedSessions: function () {
|
||||
return this.sessions
|
||||
.filter(session => this.isAccepted(session))
|
||||
.value()
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
isAccepted: function ({ attributes }) {
|
||||
return attributes.field_session_status === 'accepted'
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue