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 Echo from 'laravel-echo'; | |
import Pusher from 'pusher-js'; | |
export const pusher = Pusher; | |
export const config = authToken => ({ | |
broadcaster: 'pusher', | |
key: 'myKey', | |
wsHost: location.hostname, | |
wsPort: 6001, |
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 HtmlWebpackPluginConfig = new HtmlWebpackPlugin({ | |
template: `!!raw-loader!${path.join(__dirname, 'client/index.ejs')}`, | |
filename: path.resolve(__dirname, './server/templates/index.ejs'), | |
inject: 'body', | |
}); |
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 React, { Component } from 'react' | |
import { menuSettings } from '../Navigation' | |
import map from 'lodash/map' | |
import jump from 'jump.js' | |
export default class StickyNavigation extends Component { | |
scroller(name, e) { | |
e.preventDefault() | |
jump(e.currentTarget.attributes.href.value) | |
} |
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' | |
/* | |
|-------------------------------------------------------------------------- | |
| SpaceCategorySeeder | |
|-------------------------------------------------------------------------- | |
| | |
| Make use of the Factory instance to seed database with dummy data or | |
| make use of Lucid models directly. | |
| |
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 React, { createContext, useReducer, useEffect, useCallback } from 'react' | |
import storage from '@react-native-community/async-storage' | |
import authReducer from 'resources/reducers/auth' | |
export const AuthContext = createContext({}) | |
const AuthProvider = ({ children }) => { | |
const [fields, dispatch] = useReducer(authReducer, { | |
name: { error: null }, | |
email: { error: null }, |
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 map from 'lodash/map' | |
import { useReducer } from 'react' | |
import { useNavigation, useRoute } from '@react-navigation/native' | |
const Izanami = (actions, reducer, initialState) => { | |
const [state, dispatch] = useReducer(reducer, initialState) | |
const navigation = useNavigation() | |
const route = useRoute() | |
const actionCreators = map(actions, value => value({ dispatch, state, route, navigation })) | |
return [state, ...actionCreators] |
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 map from 'lodash/map' | |
import groupBy from 'lodash/groupBy' | |
import reduce from 'lodash/reduce' | |
import omit from 'lodash/omit' | |
function hookie () { | |
document.addEventListener('livewire:load', (event) => { | |
window.livewire.hook('afterDomUpdate', (component) => { | |
nestedValidationErrors(component.errorBag, event, component.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
<template> | |
<ion-content fullscreen class="ion-padding"> | |
<ion-item class="ion-margin-bottom"> | |
<ion-label position="floating">Username</ion-label> | |
<ion-input v-model="username"></ion-input> | |
</ion-item> | |
<ion-item class="ion-margin-bottom"> | |
<ion-label position="floating">Password</ion-label> | |
<ion-input v-model="password" type="password"></ion-input> | |
</ion-item> |
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
<?php | |
namespace MarketDragon\LivewireExtra; | |
use Exception; | |
use ReflectionClass; | |
use Illuminate\Filesystem\Filesystem; | |
use Symfony\Component\Finder\SplFileInfo; | |
use Livewire\Component; |
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
@php | |
$logo = [ | |
'text-lg', | |
'flex-1', | |
'text-gray-700', | |
'items-center', | |
'font-bold', | |
'no-underline', | |
'text-red', | |
'block', |