- Add di
routes/web.php
Route::get('locale/{locale}', [localeController::class, 'change']);App\Http\Controllers\LocaleController.php
<?php
namespace App\Http\Controllers;routes/web.phpRoute::get('locale/{locale}', [localeController::class, 'change']);App\Http\Controllers\LocaleController.php<?php
namespace App\Http\Controllers;| async function resolveUid(client, username) { | |
| const parsed_username = username.replace('@', ''); | |
| return (typeof username === 'undefined' || username === '') | |
| ? {resolved: false, uid: null} | |
| : ( | |
| (typeof await client.users.get(username).id === 'undefined') | |
| ? {resolved: false, uid: null} | |
| : {resolved: true, uid: await client.users.get(username).id} | |
| ); | |
| } |
This is a simple way to implement hCaptcha with Livewire component.
NOTE: please read this carefully, and adjust variable names, etc to your use case
Before using this implementation, add their JS library first on your page
<script src="https://js.hcaptcha.com/1/api.js?hl=en" async defer></script>This is the official color palletes of Tailwind CSS in colors.xml format for all of your Android color needs
Just copy the contents of colors.xml into your colors.xml file and you can instantly use all of the palletes provided by Tailwind CSS
| import androidx.compose.ui.graphics.Color | |
| //Tailwind Colors | |
| // Shade: slate | |
| val Slate50 = Color(0xFFF8FAFC) | |
| val Slate100 = Color(0xFFF1F5F9) | |
| val Slate200 = Color(0xFFE2E8F0) | |
| val Slate300 = Color(0xFFCBD5E1) | |
| val Slate400 = Color(0xFF94A3B8) |
| <?php | |
| /** | |
| * Class PolygonChecker | |
| * | |
| * Represents a polygon shape and checks whether a set of vertices are inside the polygon. | |
| */ | |
| class PolygonChecker | |
| { | |
| private array $vertices; |
| (function () { | |
| if(window.location.hostname !== "maimaidx-eng.com" || window.location.pathname !== "/maimai-mobile/home/userOption/favorite/updateMusic") { | |
| const go = confirm("This bookmarklet should be run on the music favorite list page, do you want to go there and rerun the script"); | |
| if(go) { | |
| window.location.href = "https://maimaidx-eng.com/maimai-mobile/home/userOption/favorite/updateMusic" | |
| } | |
| return | |
| } | |
| // basically you just need to tweak this for the correct gate |