Skip to content

Instantly share code, notes, and snippets.

🤖
Building...

Dan Alvidrez bayareawebpro

🤖
Building...
  • Freedom, California
Block or report user

Report or block bayareawebpro

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View laravel-worker-websockets-supervisor.conf
[program:provisioner-worker]
process_name=%(program_name)s
command=php /Users/builder/Sites/provisioner/artisan horizon
stdout_logfile=/Users/builder/Sites/provisioner/storage/logs/worker.log
redirect_stderr=true
autorestart=true
autostart=true
user=builder
[program:provisioner-websockets]
View askBeforeLeaving.js
<script>
window.addEventListener('beforeunload', function (e) {
// Cancel the event
e.preventDefault();
// Chrome requires returnValue to be set
e.returnValue = '';
// This message may not be shown to the user / vendor specific message may be used...
window.confirm("Are you sure?");
});
</script>
View FormControl.md

Usage

<v-form-control
    type="text"
    name="name"
    label="Name"
    v-model="entity.name"
    @change="isInvalid = false"
    :invalid="isInvalid"
View ApiClient.php
<?php declare(strict_types=1);
namespace App\Services;
use GuzzleHttp\Client;
use GuzzleHttp\Psr7\Response;
use GuzzleHttp\RequestOptions;
use GuzzleHttp\Exception\RequestException;
class ApiClient
View Editor.vue
<script>
/**
* @property validator
**/
import Ace from "ace-builds/src-noconflict/ace";
import "ace-builds/webpack-resolver";
export default {
props: {
value: {
View Table.vue
## Usage:
```
<v-table
ref="tasks"
route="api/tasks/table">
<template slot="caption">
<i class="fa fa-tasks"></i> Tasks
</template>
<template slot="thead" slot-scope="table">
View Control.vue
<script>
/**
* @property validator
**/
export default {
name: "Control",
props: {
field: {
type: String,
},
View Form.vue
<script>
import {Validator} from 'laravel-micro.js'
export default {
name: "Form",
props:{
route: {
type: String,
required: true,
},
method: {
View Base.vue
<script>
import {mapGetters, mapState, mapMutations} from 'vuex'
export default {
name: "Base",
computed: {
...mapGetters('menus', {
leftItems: 'left',
rightItems: 'right',
}),
...mapState('menus', {
View MenuStore.js
return {
namespaced: true,
getters: {
left: (state, getters) => getters.evaluate(state.left.items),
right: (state, getters) => getters.evaluate(state.right.items),
evaluate: (state, getters, rootState, rootGetters) => (items) => {
return items.filter((item) => {
return !Object.keys(item.guard || {}).map((guard) => {
return (rootGetters[guard] === item.guard[guard])
}).includes(false)
You can’t perform that action at this time.