nano launch_phpstorm.sh
#!/bin/sh
open -na "Phpstorm.app" --args "$@"
Inertia.js ships with a fantastic form helper but it falls short when also using API/Axios calls in your project.
Here's a composable, built on top of the Inertia's form helper that hooks into it to replace the API calls with Axios.
To use, just replace useForm
with useAPIForm
.
const form = useAPIForm({
title: '',
});
# This block redirects www to non-www | |
server { | |
listen %ip%:%proxy_ssl_port% ssl; | |
server_name www.%domain_idn%; | |
ssl on; | |
ssl_certificate %ssl_pem%; | |
ssl_certificate_key %ssl_key%; | |
location / { | |
rewrite ^(.*) https://%domain_idn%$1 permanent; | |
} |
ssh-keygen -R [hostname] -f ~/.ssh/known_hosts | |
Replace [hostname] with the hostname or IP address of the server. |
$blocks = collect($this->input('blocks', []))->mapWithKeys(function ($block, $index) { | |
return [ | |
$block => ['sort_order' => $index] | |
]; | |
})->toArray(); |
{ | |
"name": "inovector/<project-name>", | |
"repositories": [ | |
{ | |
"type": "vcs", | |
"url": "https://github.com/<vendor-name>/<repository-name>" | |
} | |
], | |
"require": { | |
"<vendor-name>/<package-name>": "dev-main" |
echo "deb https://debian.octopuce.fr/snapshots/sury-php/20220630/ stretch main" | sudo tee /etc/apt/sources.list.d/php.list | |
wget -qO - https://debian.octopuce.fr/sury-php/apt.gpg | sudo apt-key add - | |
apt update |
<script setup> | |
import {computed, onMounted, onUnmounted, ref} from 'vue'; | |
const props = defineProps({ | |
align: { | |
type: String, | |
default: 'right', | |
}, | |
widthClasses: { | |
type: String, |
import {usePage} from "@inertiajs/inertia-vue3"; | |
watch(() => usePage().props.value.flash, flash => { | |
if (flash.success) { | |
open('success', flash.success); | |
} | |
if (flash.warning) { | |
open('warning', flash.warning); | |
} |
const Close = ({ customClass }) => { | |
return ( | |
<svg | |
id="close-icon" | |
xmlns="http://www.w3.org/2000/svg" | |
viewBox="0 0 10 10" | |
pointerEvents="none" | |
width={8} | |
height={8} | |
> |