Commit 8632eb4a authored by les's avatar les
Browse files

rm nuxt compression, fix date picker width

parent 69a50fea
{
"done": [
{
"assignedTo": {
"name": "lesion"
},
"creation_time": "2019-05-27T15:45:39.093Z",
"id": "23",
"references": [],
"title": "colori te prego!"
},
{
"assignedTo": {
"name": "lesion"
},
"creation_time": "2019-05-27T20:42:22.581Z",
"id": "24",
"references": [],
"title": "copy to clipboard"
},
{
"assignedTo": {
"name": "lesion"
},
"creation_time": "2019-06-01T21:00:07.431Z",
"id": "27",
"references": [],
"title": "eventi ricorrenti"
},
{
"assignedTo": {
"name": "lesion"
},
"creation_time": "2019-04-29T10:01:01.632Z",
"id": "14",
"references": [],
"title": "gestione errori quando non c'e' un evento"
},
{
"assignedTo": {
"name": "lesion"
},
"creation_time": "2019-05-02T16:15:07.106Z",
"id": "19",
"references": [],
"title": "modifica eventi multigiorno"
},
{
"assignedTo": {
"name": "lesion"
},
"creation_time": "2019-05-02T11:50:28.476Z",
"id": "18",
"references": [],
"title": "notifiche email / iscrizione / evento da confermare"
},
{
"assignedTo": {
"name": "lesion"
},
"creation_time": "2019-06-01T21:15:42.190Z",
"id": "29",
"references": [],
"title": "settings di istanza (default filter, eg, eventi ricorrenti)"
}
],
"in-progress": [],
"testing": [],
"todo": [
{
"assignedTo": {
"name": "lesion"
},
"creation_time": "2019-06-01T21:00:22.155Z",
"id": "28",
"references": [],
"title": "activitypub stream"
},
{
"assignedTo": {
"name": "lesion"
},
"creation_time": "2019-05-27T15:42:35.467Z",
"id": "21",
"references": [],
"title": "all'admin deve mostrare un badge se ci sono pending operation"
},
{
"assignedTo": {
"name": "lesion"
},
"creation_time": "2019-05-29T13:08:20.887Z",
"id": "25",
"references": [],
"title": "creazione script di backup"
},
{
"assignedTo": {
"name": "lesion"
},
"category": "feature",
"creation_time": "2019-04-23T19:47:10.704Z",
"id": "4",
"prio": 0,
"references": [],
"title": "traduzione in inglese"
},
{
"assignedTo": {
"name": "lesion"
},
"category": "feature",
"creation_time": "2019-04-23T19:51:05.917Z",
"id": "9",
"prio": -1,
"references": [],
"title": "documentare sorgenti",
"type": "bug"
}
]
}
\ No newline at end of file
All notable changes to this project will be documented in this file.
### unreleased
- [model] migrations setup
- [feat] embeddable event widget/iframe
### 0.15.2
- [fix] delete event
- [fix] wrong html hierarchy
......
<template lang="pug">
nuxt-link.event(:to='`event/${link}`' :class='{ withImg: event.image_path }')
nuxt-link.event(:to='`/event/${link}`' target='_blank' :class='{ withImg: event.image_path }')
//- image
img(v-if='showImage && event.image_path' :src='`/media/thumb/${event.image_path}`')
//- image
img(v-if='showImage && event.image_path' :src='`/media/thumb/${event.image_path}`')
.event-info
.content-info
.event-info
.content-info
//- title
h2 {{event.title}}
//- title
h2 {{event.title}}
//- date / place
.date
div <v-icon name='clock'/> {{event|when('home')}}
div <v-icon name='map-marker-alt' /> {{event.place.name}}
//- date / place
.date
div <v-icon name='clock'/> {{event|when('home')}}
div <v-icon name='map-marker-alt' /> {{event.place.name}}
ul.tags(v-if='showTags && event.tags')
li(v-for='tag in event.tags' :key='tag') {{tag}}
li(v-if='settings.enable_federation && event.comments && event.comments.length') <u>{{$tc('common.comments', event.comments.length)}}</u>
ul.tags(v-if='showTags && event.tags')
li(v-for='tag in event.tags' :key='tag') {{tag}}
li(v-if='settings.enable_federation && event.comments && event.comments.length') <u>{{$tc('common.comments', event.comments.length)}}</u>
</template>
<script>
import { mapState, mapActions } from 'vuex'
......
......@@ -40,7 +40,7 @@ module.exports = {
{ src: '@/plugins/v-calendar', ssr: false }, // calendar, fix ssr
'@/plugins/i18n.js'
],
compression: false,
/*
** Nuxt.js modules
*/
......
......@@ -59,16 +59,17 @@
el-option(:label="$t('event.each_2w')" value='2w' key='2w')
//- el-option(:label="$t('event.each_month')" value='1m' key='1m')
v-date-picker.mb-2.mt-3(
:mode='event.type === "multidate" ? "range" : event.type === "recurrent" ? "multiple" : "single"'
:attributes='attributes'
v-model='date'
:locale='$i18n.locale'
:from-page.sync='page'
is-inline
is-expanded
:min-date='event.type !== "recurrent" && new Date()'
)
#picker.mx-auto
v-date-picker.mb-2.mt-3(
:mode='event.type === "multidate" ? "range" : event.type === "recurrent" ? "multiple" : "single"'
:attributes='attributes'
v-model='date'
:locale='$i18n.locale'
:from-page.sync='page'
is-inline
is-expanded
:min-date='event.type !== "recurrent" && new Date()'
)
div.text-center.mb-2(v-if='event.type === "recurrent"')
span(v-if='event.recurrent.frequency !== "1m" && event.recurrent.frequency !== "2m"') {{whenPatterns}}
......@@ -419,3 +420,8 @@ export default {
}
}
</script>
<style>
#picker {
max-width: 400px;
}
</style>
\ No newline at end of file
......@@ -127,15 +127,6 @@ export default {
error({ statusCode: 404, message: 'Event not found' })
}
},
// async fetch ({ $axios, store }) {
// try {
// // const now = new Date()
// // const events = await $axios.$get(`/event/${now.getMonth()}/${now.getFullYear()}`)
// // return store.commit('setEvents', events)
// } catch (e) {
// console.error(e)
// }
// },
computed: {
...mapGetters(['filteredEvents']),
...mapState(['settings']),
......@@ -199,6 +190,8 @@ export default {
#eventDetail {
background-color: white;
margin-bottom: 30px;
padding-top: 0px;
.head {
z-index: 1;
position: sticky;
......
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment