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 './bootstrap'; | |
window.addEventListener('livewire:init', () => { | |
Livewire.hook('request', ({ options }) => { | |
options.headers["X-Timezone"] = Intl.DateTimeFormat().resolvedOptions().timeZone; | |
}) | |
}) |
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 | |
$updateTimezone = fn($timezone) => session()->put('timezone', $timezone); | |
?> | |
<div x-init="$wire.updateTimezone(Intl.DateTimeFormat().resolvedOptions().timeZone)"></div> |
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
poetry add django; | |
poetry add djangorestframework; | |
poetry add django-cors-headers; | |
poetry add drf-extensions; | |
poetry add django-environ; | |
poetry add django-extensions; | |
poetry add django-filter; | |
poetry add django-storages; | |
poetry add django-redis; | |
poetry add django-lifecycle; |
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\Middleware; | |
use Closure; | |
use Illuminate\Http\Request; | |
class EnableSsrMiddleware | |
{ | |
protected $expect = [ |
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
npm i -D tailwindcss; | |
npm i -D @tailwindcss/forms; | |
npm i -D @tailwindcss/typography; | |
npm i -D postcss; | |
npm i -D autoprefixer; | |
npm i -D alpinejs; | |
npm i -D @alpinejs/focus; | |
npm i -D tippy.js; |
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\Providers; | |
use Filament\Facades\Filament; | |
use Illuminate\Support\Facades\App; | |
use Illuminate\Support\Facades\Blade; | |
use Illuminate\Support\ServiceProvider; | |
class AppServiceProvider extends ServiceProvider |
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
npm install vue-router@4; | |
npm install @vueuse/core; | |
npm install @vueuse/head; | |
npm install vee-validate; | |
npm install zod; | |
npm install @vee-validate/zod; | |
npm install nprogress; | |
npm install axios; | |
npm install focus-trap; | |
npm install pinia; |
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
name: my_app | |
version: 1.0.0+1 | |
publish_to: none | |
description: A new Flutter project. | |
environment: | |
sdk: '>=2.12.0 <3.0.0' | |
dependencies: | |
cupertino_icons: ^1.0.2 | |
flutter_dotenv: ^5.0.2 |
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
npm init -y; | |
npm install --save-dev hardhat; | |
npm install @openzeppelin/contracts; | |
npx hardhat; |
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 { ethers } from "ethers"; | |
import Web3Modal from "web3modal"; | |
// import WalletConnectProvider from "@walletconnect/web3-provider"; | |
import axios from "axios"; | |
class Lightweb3 { | |
constructor( | |
web3ModalOptions = { | |
cacheProvider: true, | |
disableInjectedProvider: false, |