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
/** | |
* Unfortunately I didn't find a way to add it directly to createInertiaApp so | |
* currently I'm placing it in my BaseLayout which is called on any route anyway | |
*/ | |
import React from 'react'; | |
import { ModalProvider } from '../components/momentum-modal/ModalContext'; | |
const BaseLayout: React.FC = ({ children }) => { | |
/* Wrap your children with the provider */ | |
return <ModalProvider resolve={(name) => import(`../pages/${name}`)}>{children}</ModalProvider>; |
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 App\Http\Controllers; | |
use Exception; | |
use Illuminate\Http\Request; | |
use Illuminate\Support\Facades\File; | |
use Illuminate\Support\Facades\Storage; | |
use Illuminate\Support\Facades\Config; |
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
// ==UserScript== | |
// @name Show Twitter Count | |
// @namespace mxmtsk.twittercount | |
// @version 0.1 | |
// @description Show good old twitter count instead of the donut | |
// @author mxmtsk | |
// @match https://twitter.com/* | |
// @grant none | |
// @run-at document-idle | |
// ==/UserScript== |