Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Arthur Monney mckenziearts

🏠
Working from home
View GitHub Profile
@mckenziearts
mckenziearts / tailwind-payment-view.html
Created Jun 17, 2020
Vue de paiement fait avec Laravel, Livewire & AlpineJS
View tailwind-payment-view.html
<div class="mx-auto max-w-screen-xl px-4 py-4 sm:py-6 sm:px-6">
<div class="grid gap-6 lg:grid-cols-3 lg:gap-8">
<div class="sm:col-span-2">
<x:alert /> <!-- Alert component use for Laravel 7.0 -->
<h1 class="leading-7 text-gray-700 font-semibold text-xl">{{ __("Moyen de paiement") }}</h1>
<p class="mt-1 text-sm text-gray-500 leading-5">{{ __("Toutes vos transactions sont sécurisées et encryptées. Aucune carte de crédit n'est enregistrée dans notre site.") }}</p>
<div class="mt-4 bg-white rounded-md shadow-md py-1 divide-y divide-gray-100">
<div class="px-4 sm:px-6 py-2.5">
<label for="method_paypal" class="flex items-center justify-between cursor-pointer">
<span class="flex items-center">
@mckenziearts
mckenziearts / laravel.js
Created Feb 24, 2020 — forked from JeffreyWay/laravel.js
Want to send a DELETE request when outside of a form? This will handle the form-creation bits for you dynamically, similar to the Rails implementation. (Requires jQuery, but doesn't have to.) To use, import script, and create a link with the `data-method="DELETE"` attribute.
View laravel.js
/*
<a href="posts/2" data-method="delete"> <---- We want to send an HTTP DELETE request
- Or, request confirmation in the process -
<a href="posts/2" data-method="delete" data-confirm="Are you sure?">
*/
(function() {
@mckenziearts
mckenziearts / .eslintrc
Created Nov 23, 2019 — forked from 1natsu172/.eslintrc
My airbnb based ESLint config for "typescript-eslint" with React & prettier
View .eslintrc
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json",
"tsconfigRootDir": "."
},
"env": {
"browser": true,
"jest/globals": true
},
View gist:1a82edf7a0262d5a6770d9981eb19a1d
Name: Flash
Serial: eNrzzU/OLi0odswsqnHLSSzOqDGoca7JKCkpsNLXLy8v1ytJTczVLUotKNFLzs8FAJHYETc=
if anyone wants to thank ETH: 0x527c2aB55b744D6167dc981576318af96ed26676
Thank you!
You can’t perform that action at this time.