- Inserted Prerendering plugin('prerender-spa-plugin') to create HTML pages (for Google... crawler)

- Added Meta Tags (title, description and keywords)
This commit is contained in:
Paolo Arena
2019-11-08 23:43:00 +01:00
parent cd746e7ad3
commit 9c35b5d73a
8 changed files with 74 additions and 50 deletions

View File

@@ -40,10 +40,22 @@ import { CMySingleEvent } from '../CMySingleEvent'
@Component({
mixins: [MixinOperator, MixinUsers, MixinEvents],
name: 'CEventsCalendar',
components: { Logo, Footer, CTitle, CImgText, QDateTimeScroller, QDateScroller, CMySelect, CMyEditor, CDateTime, CMyAvatar, CMySingleEvent }
components: {
Logo,
Footer,
CTitle,
CImgText,
QDateTimeScroller,
QDateScroller,
CMySelect,
CMyEditor,
CDateTime,
CMyAvatar,
CMySingleEvent
}
})
export default class CEventsCalendar extends MixinEvents {
@Prop ({required: false, default: null}) public mysingleevent: IEvents
@Prop({ required: false, default: null }) public mysingleevent: IEvents
public $q
public $t: any
public calendarView = 'month'
@@ -524,14 +536,15 @@ export default class CEventsCalendar extends MixinEvents {
tools.CancelEvent(this, eventparam)
}
public duplicateEvent(eventparam, numgg, numev: number = 1 ) {
public duplicateEvent(eventparam, numgg, numev: number = 1) {
for (let i = 0; i < numev; ++i) {
GlobalStore.actions.DuplicateRec({ table: tools.TABEVENTS, id: eventparam._id }).then((rec) => {
rec.dateTimeStart = tools.addDays(new Date(rec.dateTimeStart), numgg * (i + 1))
rec.dateTimeEnd = tools.addDays(new Date(rec.dateTimeEnd), numgg * (i + 1))
CalendarStore.state.eventlist.push(rec)
this.editEvent(rec)
if (rec) {
rec.dateTimeStart = tools.addDays(new Date(rec.dateTimeStart), numgg * (i + 1))
rec.dateTimeEnd = tools.addDays(new Date(rec.dateTimeEnd), numgg * (i + 1))
CalendarStore.state.eventlist.push(rec)
this.editEvent(rec)
}
})
}
// tools.ActionRecTable(this, lists.MenuAction.DUPLICATE_RECTABLE, tools.TABEVENTS, eventparam._id, eventparam, 'db.duplicatedrecord')