This file contains hidden or 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
require("./bootstrap"); | |
// Import modules... | |
import Vue from "vue"; | |
import { | |
App as InertiaApp, | |
plugin as InertiaPlugin, | |
} from "@inertiajs/inertia-vue"; | |
import { InertiaProgress } from "@inertiajs/progress"; | |
import PortalVue from "portal-vue"; |
This file contains hidden or 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
import Vue from 'vue' | |
import VueTailwind from 'vue-tailwind' | |
import settings from '../themes/contra/vue-tailwind.js' | |
Vue.use(VueTailwind, settings) |
This file contains hidden or 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
const mix = require('laravel-mix'); | |
/* | |
|-------------------------------------------------------------------------- | |
| Mix Asset Management | |
|-------------------------------------------------------------------------- | |
| | |
| Mix provides a clean, fluent API for defining some Webpack build steps | |
| for your Laravel application. By default, we are compiling the Sass |
This file contains hidden or 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
mutation CreateOrderMutation { | |
createOrder(input: { | |
clientMutationId: "orderMutation", | |
lineItems: [ | |
{productId: 43, quantity: 2}, | |
{productId: 44, quantity: 3}, | |
]}) { | |
order { | |
id | |
} |
This file contains hidden or 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
'use strict'; | |
/** | |
* Read the documentation (https://strapi.io/documentation/v3.x/concepts/controllers.html#core-controllers) | |
* to customize this controller | |
*/ | |
module.exports = { | |
likeOne: async (ctx, next) => { | |
let user = ctx.state.user; |
This file contains hidden or 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
query MenusQuery { | |
menus { | |
nodes { | |
name | |
menuItems { | |
nodes { | |
label | |
path | |
cssClasses | |
menu_item_options { |
This file contains hidden or 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
mutation LoginUser ($clientMutationId:String!,$username:String!, $password:String!) { | |
login( input: { | |
clientMutationId: $clientMutationId, | |
username: $username, | |
password: $password | |
} ) { | |
authToken | |
user { | |
id | |
name |
This file contains hidden or 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
'use strict'; | |
/** | |
* Read the documentation (https://strapi.io/documentation/v3.x/concepts/controllers.html#core-controllers) | |
* to customize this controller | |
*/ | |
module.exports = { | |
likeOne: async (ctx, next) => { | |
let user = ctx.state.user; |
This file contains hidden or 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 class="player-container video-responsive"> | |
<vue-plyr class="plyr-outer plyr-outer--custom"> | |
<div class="plyr__video-embed"> | |
<iframe | |
src="https://www.youtube.com/embed/ennSXaDOOeA?iv_load_policy=3&modestbranding=1&playsinline=1&showinfo=0&rel=0&enablejsapi=1" | |
allowfullscreen | |
allowtransparency | |
> | |
</iframe> |
This file contains hidden or 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
// APIStoreProps are properties that need to be | |
// ignored when running APIStore.makeStore() | |
const APIStoreProps = ['use', 'classes', 'constructor', 'init', 'state'] | |
// getMethods returns methods defined | |
// in a given class' prototype, except init and constructor | |
const getMethods = (cls) => { | |
return Object.getOwnPropertyNames(cls.prototype) | |
.reduce((obj, prop) => { |