Skip to content

Instantly share code, notes, and snippets.

View KatarinaT's full-sized avatar
🏠
Working from home

Zhukova Ekaterina KatarinaT

🏠
Working from home
View GitHub Profile
<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"
>>>>> 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;
@KatarinaT
KatarinaT / phpswitch.sh
Last active January 18, 2019 21:39
Shell script for switching php version
#!/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