diff --git a/CHANGELOG b/CHANGELOG index 68b45f36..e3784819 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,33 @@ All notable changes to this project will be documented in this file. +### 1.6.8 + - use new $time in admins table, fix #252 + - fix some WPGancio issues + - new custom color feature! + - update locales (durch, spanish, galician) + - improve index, tag, place page layout + - use luxon instead of dayjs server side, fix #254 + +### 1.6.7 - 22 mar '23 + - node is not Intl ready, fix #250 + - fix old smultidate events without an end_datetime! + - fix a small issue during setup + +### 1.6.5 - 21 mar '23 + - optimize home page using lazy loading + - add support for server side http proxy (thanks @sedum) + - add Duch (nl) locale (thanks @jeoenepraat) + - fix #244, dark theme user / admin preference merge issue + - fix some issues with recurrent events, #247 + - improve search flow (order by, press enter or icon...) + - filters / helpers refactoring + - tag and place pages list all events (past too) + - show boosts/bookmarks, fix #241 + - go to event on save/update + - use luxon instead of dayjs, new $time plugin + - fix event import from URL + - remove an annoying warning from logs + ### 1.6.4 - 22 feb '23 - add missing i18n during setup - really fix #232 diff --git a/assets/helper.js b/assets/helper.js deleted file mode 100644 index 78b2b3d2..00000000 --- a/assets/helper.js +++ /dev/null @@ -1,51 +0,0 @@ -import dayjs from 'dayjs' - -export function attributesFromEvents(_events) { - // merge events with same date - let attributes = [] - const now = dayjs().unix() - for (let e of _events) { - const key = dayjs.unix(e.start_datetime).tz().format('MMDD') // Math.floor(e.start_datetime/(3600*24)) // dayjs.unix(e.start_datetime).tz().format('YYYYMMDD') - const c = (e.end_datetime || e.start_datetime) < now ? 'vc-past' : '' - - if (e.multidate === true) { - attributes.push({ - dates: { start: new Date(e.start_datetime * 1000), end: new Date(e.end_datetime * 1000) }, - highlight: { - start: { fillMode: 'outline' }, - base: { fillMode: 'light' }, - end: { fillMode: 'outline' }, - } - }) - continue - } - - const i = attributes.find(a => a.day === key) - if (!i) { - attributes.push({ - day: key, key: e.id, n: 1, dates: new Date(e.start_datetime * 1000), - dot: { color: 'teal', class: c } - }) - continue - } - - i.n++ - if (i.n >= 20) { - i.dot = { color: 'purple', class: c } - } else if (i.n >= 10) { - i.dot = { color: 'red', class: c } - } else if (i.n >= 5) { - i.dot = { color: 'orange', class: c } - } else if (i.n >= 3) { - i.dot = { color: 'yellow', class: c } - } else { - i.dot = { color: 'teal', class: c } - } - - } - - // add a bar to highlight today - attributes.push({ key: 'today', dates: new Date(), highlight: { color: 'green', fillMode: 'outline' } }) - - return attributes -} diff --git a/assets/style.css b/assets/style.css index 7e9cba0a..d0efa757 100644 --- a/assets/style.css +++ b/assets/style.css @@ -108,7 +108,11 @@ li { /* margin-top: 16px; margin-right: 16px; */ transition: all .5s; + min-height: 288px; overflow: hidden; + box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12); + border-radius: 4px; + } .event .title { @@ -127,11 +131,10 @@ li { flex: 1 1 auto; } -.event .place span { - white-space: nowrap; +/* .event .place span { overflow: hidden; text-overflow: ellipsis; -} +} */ .event a { text-decoration: none; @@ -148,6 +151,7 @@ li { #event { max-width: 1200px; + overflow-wrap: break-word; } /* .tags .v-chip .v-chip__content { diff --git a/components/Calendar.vue b/components/Calendar.vue index a0de2f25..87c4531e 100644 --- a/components/Calendar.vue +++ b/components/Calendar.vue @@ -9,29 +9,26 @@ @input='click' @update:from-page='updatePage' :locale='$i18n.locale' - :popover="{ visibility: 'click' }" :attributes='attributes' transition='fade' aria-label='Calendar' is-expanded is-inline) - .calh.d-flex.justify-center.align-center(slot='placeholder') - v-progress-circular(indeterminate) + .calh.text-center(slot='placeholder') + v-progress-circular.mt-5(indeterminate color='primary')