This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div id="events-calendar-frontend-app"> | |
<v-calendar | |
:attributes="attributes" | |
:available-dates='{ start: new Date(), end: null }' | |
@update:to-page="onChangeMonth"> | |
<div slot="day-popover" slot-scope="{ day, dayTitle, attributes }"> | |
<popover-row | |
class="event-card" | |
v-for="attr in attributes" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>>>> actions.js | |
############################### | |
import Api from "@/helpers/api"; | |
export const actions = { | |
async loadEvents(context, payload) { | |
let result; | |
try { | |
result = (await Api.getEventsList(payload.page, payload.perPage))?.data; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## Switch php version | |
## Command line need only one argument, it's php version | |
exists() | |
{ | |
command -v "$1" >/dev/null 2>&1 | |
} | |
##< Allowed only for admin |