command
and option
should be inverted as a simple modification in Karabiner
This file contains 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
<script setup lang="ts"> | |
import { useBackForward } from '@/scripts/use-back-forward' | |
const { reloadOnBackForward } = useBackForward() | |
// When the page component is loaded, if it's a visit made with the "back" or "forward" | |
// browser functionality, the page will reload. You can optionally pass options to Inertia. | |
reloadOnBackForward({ | |
only: ['quotations'], | |
}) |
This file contains 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 Tests; | |
/** @mixin TestCase */ | |
trait BenchmarksTests | |
{ | |
protected static array $tests = []; | |
protected function setUpBenchmark(): void |
This file contains 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
{ | |
"scripts": { | |
"dev": "npx esno server.ts", | |
"build": "vite build", | |
"build:ssr": "vite build --ssr", | |
"build:all": "npm run build && npm run build:ssr" | |
} | |
} |
This file contains 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\Console\Commands; | |
use Illuminate\Console\Command; | |
use Illuminate\Support\Facades\File; | |
use Illuminate\Support\Str; | |
/** | |
* Generates a JSON file with all translations. |
This file contains 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 { Plugin } from 'vite' | |
const PLUGIN_NAME = 'vite:inertia:layout' | |
const TEMPLATE_LAYOUT_REGEX = /<template +layout(?: *= *['"](?:(?:(\w+):)?(\w+))['"] *)?>/ | |
export default (layouts: string = '@/views/layouts/'): Plugin => ({ | |
name: PLUGIN_NAME, | |
transform: (code: string) => { | |
if (!TEMPLATE_LAYOUT_REGEX.test(code)) { | |
return |
package.json
:
{
"scripts": {
"dev": "vite",
"dev:server": "node public/build/server/server.js",
"build": "vite build",
"build:server": "vite build --outDir ./public/build/server --ssr ./resources/scripts/inertia/server.ts"
}
}
This file contains 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\Console\Commands; | |
use Illuminate\Console\Command; | |
use Illuminate\Support\Facades\File; | |
use Illuminate\Support\Str; | |
/** | |
* Generates a JSON file with all translations. |
This file contains 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 path from 'path' | |
import vue from '@vitejs/plugin-vue' | |
import icons from 'vite-plugin-svg-icons' | |
import inspect from 'vite-plugin-inspect' | |
import tailwindcss from 'tailwindcss' | |
import autoprefixer from 'autoprefixer' | |
import createDebugger from 'debug' | |
import { defineConfig } from 'laravel-vite' | |
export default defineConfig() |
This file contains 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 { defineConfig, Plugin } from 'vite' | |
import vue from '@vitejs/plugin-vue' | |
// TODO: should be taken from environment | |
const certificates = { | |
key: 'D:\\Programmes\\Laragon\\etc\\ssl\\laragon.key', | |
crt: 'D:\\Programmes\\Laragon\\etc\\ssl\\laragon.crt', | |
} | |
export default defineConfig(({ command }) => ({ |