Merge branch 'master' into feat/mediaFocalAlt
This commit is contained in:
@@ -1,5 +1,13 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
|
### 1.0.2 (alpha)
|
||||||
|
- improve oauth flow UI
|
||||||
|
- [WordPress plugin](https://wordpress.org/plugins/wpgancio/)
|
||||||
|
- fix h-event import
|
||||||
|
- improve error logging (add stack trace to exception)
|
||||||
|
- choose start date for recurreing events (#120)
|
||||||
|
- fix user delete from admin
|
||||||
|
|
||||||
### 1.0.1 (alpha)
|
### 1.0.1 (alpha)
|
||||||
|
|
||||||
- fix AP resource removal
|
- fix AP resource removal
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
:locale='$i18n.locale'
|
:locale='$i18n.locale'
|
||||||
:attributes='attributes'
|
:attributes='attributes'
|
||||||
transition='fade'
|
transition='fade'
|
||||||
|
aria-label='Calendar'
|
||||||
is-expanded
|
is-expanded
|
||||||
is-inline
|
is-inline
|
||||||
@dayclick='click')
|
@dayclick='click')
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template lang="pug">
|
<template lang="pug">
|
||||||
v-footer(color='secondary')
|
v-footer(color='secondary' aria-label='Footer')
|
||||||
|
|
||||||
v-dialog(v-model='showFollowMe' destroy-on-close max-width='700px')
|
v-dialog(v-model='showFollowMe' destroy-on-close max-width='700px')
|
||||||
FollowMe(@close='showFollowMe=false' is-dialog)
|
FollowMe(@close='showFollowMe=false' is-dialog)
|
||||||
|
|||||||
@@ -14,23 +14,23 @@
|
|||||||
|
|
||||||
v-tooltip(bottom) {{$t('common.add_event')}}
|
v-tooltip(bottom) {{$t('common.add_event')}}
|
||||||
template(v-slot:activator='{ on }')
|
template(v-slot:activator='{ on }')
|
||||||
v-btn(v-if='could_add' icon nuxt to='/add' v-on='on')
|
v-btn(v-if='could_add' icon nuxt to='/add' v-on='on' :aria-label='$t("common.add_event")')
|
||||||
v-icon(large color='primary') mdi-plus
|
v-icon(large color='primary') mdi-plus
|
||||||
|
|
||||||
v-tooltip(bottom) {{$t('common.share')}}
|
v-tooltip(bottom) {{$t('common.share')}}
|
||||||
template(v-slot:activator='{ on }')
|
template(v-slot:activator='{ on }')
|
||||||
v-btn(icon nuxt to='/export' v-on='on')
|
v-btn(icon nuxt to='/export' v-on='on' :aria-label='$t("common.share")')
|
||||||
v-icon mdi-share-variant
|
v-icon mdi-share-variant
|
||||||
|
|
||||||
v-tooltip(v-if='!$auth.loggedIn' bottom) {{$t('common.login')}}
|
v-tooltip(v-if='!$auth.loggedIn' bottom) {{$t('common.login')}}
|
||||||
template(v-slot:activator='{ on }')
|
template(v-slot:activator='{ on }')
|
||||||
v-btn(icon nuxt to='/login' v-on='on')
|
v-btn(icon nuxt to='/login' v-on='on' :aria-label='$t("common.login")')
|
||||||
v-icon mdi-login
|
v-icon mdi-login
|
||||||
|
|
||||||
v-menu(v-else
|
v-menu(v-else
|
||||||
offset-y bottom open-on-hover transition="slide-y-transition")
|
offset-y bottom open-on-hover transition="slide-y-transition")
|
||||||
template(v-slot:activator="{ on, attrs }")
|
template(v-slot:activator="{ on, attrs }")
|
||||||
v-btn(icon v-bind='attrs' v-on='on')
|
v-btn(icon v-bind='attrs' v-on='on' aria-label='Menu')
|
||||||
v-icon mdi-dots-vertical
|
v-icon mdi-dots-vertical
|
||||||
v-list
|
v-list
|
||||||
v-list-item(nuxt to='/settings')
|
v-list-item(nuxt to='/settings')
|
||||||
@@ -51,7 +51,7 @@
|
|||||||
v-list-item-content
|
v-list-item-content
|
||||||
v-list-item-title {{$t('common.logout')}}
|
v-list-item-title {{$t('common.logout')}}
|
||||||
|
|
||||||
v-btn(icon v-clipboard:copy='feedLink' v-clipboard:success='copyLink')
|
v-btn(icon v-clipboard:copy='feedLink' v-clipboard:success='copyLink' aria-label='RSS')
|
||||||
v-icon(color='orange') mdi-rss
|
v-icon(color='orange') mdi-rss
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -8,6 +8,15 @@ nav_order: 10
|
|||||||
|
|
||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
|
|
||||||
|
### 1.0.2 (alpha)
|
||||||
|
- improve oauth flow UI
|
||||||
|
- [WordPress plugin](https://wordpress.org/plugins/wpgancio/)
|
||||||
|
- fix h-event import
|
||||||
|
- improve error logging (add stack trace to exception)
|
||||||
|
- choose start date for recurreing events (#120)
|
||||||
|
- fix user delete from admin
|
||||||
|
|
||||||
### 1.0.1 (alpha)
|
### 1.0.1 (alpha)
|
||||||
|
|
||||||
- fix AP resource removal
|
- fix AP resource removal
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
FROM node:buster
|
FROM node:buster
|
||||||
RUN yarn global add --silent https://gancio.org/latest.tgz 2> /dev/null
|
RUN yarn cache clean gancio
|
||||||
|
RUN yarn global add --latest --silent https://gancio.org/latest.tgz 2> /dev/null
|
||||||
|
|
||||||
ADD entrypoint.sh /
|
ADD entrypoint.sh /
|
||||||
RUN chmod 755 /entrypoint.sh
|
RUN chmod 755 /entrypoint.sh
|
||||||
|
|||||||
@@ -64,6 +64,7 @@ sudo pm2 startup -u gancio
|
|||||||
|
|
||||||
## Upgrade
|
## Upgrade
|
||||||
```bash
|
```bash
|
||||||
|
sudo yarn cache clean gancio
|
||||||
sudo yarn global add --silent {{site.url}}/latest.tgz 2> /dev/null
|
sudo yarn global add --silent {{site.url}}/latest.tgz 2> /dev/null
|
||||||
sudo service pm2 restart
|
sudo service pm2 restart
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ nav_order: 7
|
|||||||
|
|
||||||
- [gancio.cisti.org](https://gancio.cisti.org) (Turin, Italy)
|
- [gancio.cisti.org](https://gancio.cisti.org) (Turin, Italy)
|
||||||
- [lapunta.org](https://lapunta.org) (Florence, Italy)
|
- [lapunta.org](https://lapunta.org) (Florence, Italy)
|
||||||
- [chesefa.org](https://chesefa.org) (Naples, Italy)
|
- [termine.161.social](https://termine.161.social) (Germany)
|
||||||
|
|
||||||
|
|
||||||
<small>Do you want your instance to appear here? [Write us]({% link contact.md %}).</small>
|
<small>Do you want your instance to appear here? [Write us]({% link contact.md %}).</small>
|
||||||
|
|||||||
@@ -197,7 +197,7 @@
|
|||||||
"resources": "Resources",
|
"resources": "Resources",
|
||||||
"user_blocked": "User {user} blocked",
|
"user_blocked": "User {user} blocked",
|
||||||
"favicon": "Logo",
|
"favicon": "Logo",
|
||||||
"user_block_confirm": "Are you sure you want block user {user}?",
|
"user_block_confirm": "Are you sure you want to block user {user}?",
|
||||||
"instance_block_confirm": "Are you sure you want block instance {instance}?",
|
"instance_block_confirm": "Are you sure you want block instance {instance}?",
|
||||||
"delete_announcement_confirm": "Are you sure you want to remove the announcement?",
|
"delete_announcement_confirm": "Are you sure you want to remove the announcement?",
|
||||||
"announcement_remove_ok": "Announce removed",
|
"announcement_remove_ok": "Announce removed",
|
||||||
|
|||||||
@@ -200,7 +200,7 @@
|
|||||||
"favicon": "Logo",
|
"favicon": "Logo",
|
||||||
"user_block_confirm": "Confermi di voler bloccare l'utente {user}?",
|
"user_block_confirm": "Confermi di voler bloccare l'utente {user}?",
|
||||||
"instance_block_confirm": "Confermi di voler bloccare l'istanza {instance}?",
|
"instance_block_confirm": "Confermi di voler bloccare l'istanza {instance}?",
|
||||||
"delete_announcement_confirm": " Vuoieliminare questo l'annuncio?",
|
"delete_announcement_confirm": "Vuoi eliminare questo l'annuncio?",
|
||||||
"announcement_remove_ok": "Annuncio rimosso",
|
"announcement_remove_ok": "Annuncio rimosso",
|
||||||
"announcement_description": "In questa sezione puoi inserire annunci che rimarranno in homepage",
|
"announcement_description": "In questa sezione puoi inserire annunci che rimarranno in homepage",
|
||||||
"instance_locale": "Lingua predefinita",
|
"instance_locale": "Lingua predefinita",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "gancio",
|
"name": "gancio",
|
||||||
"version": "1.0.1-alpha",
|
"version": "1.0.2-alpha",
|
||||||
"description": "A shared agenda for local communities",
|
"description": "A shared agenda for local communities",
|
||||||
"author": "lesion",
|
"author": "lesion",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -7,8 +7,10 @@ v-col(cols=12)
|
|||||||
v-btn(v-if='settings.allow_recurrent_event' value='recurrent' label="recurrent") {{$t('event.recurrent')}}
|
v-btn(v-if='settings.allow_recurrent_event' value='recurrent' label="recurrent") {{$t('event.recurrent')}}
|
||||||
|
|
||||||
p {{$t(`event.${type}_description`)}}
|
p {{$t(`event.${type}_description`)}}
|
||||||
|
|
||||||
v-btn-toggle.v-col-6.flex-column.flex-sm-row(v-if='type === "recurrent"' color='primary' :value='value.recurrent.frequency' @change='fq => change("frequency", fq)')
|
v-btn-toggle.v-col-6.flex-column.flex-sm-row(v-if='type === "recurrent"' color='primary' :value='value.recurrent.frequency' @change='fq => change("frequency", fq)')
|
||||||
v-btn(v-for='f in frequencies' :key='f.value' :value='f.value') {{f.text}}
|
v-btn(v-for='f in frequencies' :key='f.value' :value='f.value') {{f.text}}
|
||||||
|
|
||||||
client-only
|
client-only
|
||||||
.datePicker.mt-3
|
.datePicker.mt-3
|
||||||
v-input(:value='fromDate'
|
v-input(:value='fromDate'
|
||||||
@@ -43,11 +45,6 @@ v-col(cols=12)
|
|||||||
:value='dueHour' clearable
|
:value='dueHour' clearable
|
||||||
:items='hourList' @change='hr => change("dueHour", hr)')
|
:items='hourList' @change='hr => change("dueHour", hr)')
|
||||||
|
|
||||||
//- div.col-md-12(v-if='isRecurrent')
|
|
||||||
//- p(v-if='value.recurrent.frequency !== "1m" && value.recurrent.frequency !== "2m"') 🡲 {{whenPatterns}}
|
|
||||||
//- v-btn-toggle(v-else dense group v-model='value.recurrent.type' color='primary')
|
|
||||||
//- v-btn(text link v-for='whenPattern in whenPatterns' :value='whenPattern.key' :key='whenPatterns.key') {{whenPattern.label}}
|
|
||||||
|
|
||||||
List(v-if='type==="normal" && todayEvents.length' :events='todayEvents' :title='$t("event.same_day")')
|
List(v-if='type==="normal" && todayEvents.length' :events='todayEvents' :title='$t("event.same_day")')
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
@@ -66,12 +63,7 @@ export default {
|
|||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
type: 'normal',
|
type: 'normal',
|
||||||
time: { start: null, end: null },
|
|
||||||
fromDateMenu: null,
|
|
||||||
dueDateMenu: null,
|
|
||||||
date: null,
|
|
||||||
page: null,
|
page: null,
|
||||||
frequency: '',
|
|
||||||
events: [],
|
events: [],
|
||||||
frequencies: [
|
frequencies: [
|
||||||
{ value: '1w', text: this.$t('event.each_week') },
|
{ value: '1w', text: this.$t('event.each_week') },
|
||||||
@@ -106,16 +98,15 @@ export default {
|
|||||||
},
|
},
|
||||||
hourList () {
|
hourList () {
|
||||||
const hourList = []
|
const hourList = []
|
||||||
const pad = '00'
|
const leftPad = h => ('00' + h).slice(-2)
|
||||||
for (let h = 0; h < 24; h++) {
|
for (let h = 0; h < 24; h++) {
|
||||||
hourList.push(`${(pad + h).slice(-pad.length)}:00`)
|
const textHour = leftPad(h < 13 ? h : h - 12)
|
||||||
hourList.push(`${(pad + h).slice(-pad.length)}:30`)
|
hourList.push({ text: textHour + ':00 ' + (h <= 12 ? 'AM' : 'PM'), value: leftPad(h) + ':00' })
|
||||||
|
hourList.push({ text: textHour + ':30 ' + (h <= 12 ? 'AM' : 'PM'), value: leftPad(h) + ':30' })
|
||||||
}
|
}
|
||||||
|
|
||||||
return hourList
|
return hourList
|
||||||
},
|
},
|
||||||
isRecurrent () {
|
|
||||||
return !!this.value.recurrent
|
|
||||||
},
|
|
||||||
whenPatterns () {
|
whenPatterns () {
|
||||||
if (!this.value.from) { return }
|
if (!this.value.from) { return }
|
||||||
const date = dayjs(this.value.from)
|
const date = dayjs(this.value.from)
|
||||||
@@ -181,7 +172,7 @@ export default {
|
|||||||
if (what === 'type') {
|
if (what === 'type') {
|
||||||
if (typeof value === 'undefined') { this.type = 'normal' }
|
if (typeof value === 'undefined') { this.type = 'normal' }
|
||||||
if (value === 'recurrent') {
|
if (value === 'recurrent') {
|
||||||
this.$emit('input', { ...this.value, recurrent: {}, multidate: false })
|
this.$emit('input', { ...this.value, recurrent: { frequency: '1w' }, multidate: false })
|
||||||
} else if (value === 'multidate') {
|
} else if (value === 'multidate') {
|
||||||
this.$emit('input', { ...this.value, recurrent: null, multidate: true })
|
this.$emit('input', { ...this.value, recurrent: null, multidate: true })
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user