- ✅ Empty fields (3 required validation errors)
- ✅ One empty field (required validation error)
- ✅ Existing email (email taken validation error)
- ✅ Successfully signed up (redirects to step 2)
- ✅ Empty fields (2 required validation errors)
var qc=Object.defineProperty;var Hc=(t,e,n)=>e in t?qc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var zc=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Ms=(t,e,n)=>(Hc(t,typeof e!="symbol"?e+"":e,n),n);var zv=zc((Wv,Yu)=>{(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerpolicy&&(i.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?i.credentials="include":o.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var Qn=typeof globalThis<"u"?globalThis:typeof window<"u"? |
const wait = (delay, data) => ({ then(resolve) { setTimeout(resolve, delay, data) } }) | |
const fakeApi = async () => await wait(500, [1, 2, 3, 4]) |
<?php | |
require __DIR__ . '/kirby/bootstrap.php'; | |
// echo (new Kirby)->render(); | |
$items = page('blog')->children(); | |
foreach ($items as $item) { | |
if ($i = $item->cover()->toFile()) { |
<?php | |
class LocalValetDriver extends ValetDriver | |
{ | |
/** | |
* Determine if the driver serves the request. | |
* | |
* @param string $sitePath | |
* @param string $siteName | |
* @param string $uri |
<?php | |
function characterCodeAt(string $string, int $index) { | |
return ord(substr($string, $index, 1)); | |
} | |
function fuzzySearch(string $needle, string $haystack) { | |
$needleLength = strlen($needle); | |
$haystackLength = strlen($haystack); |
<?php | |
// site/controllers/faq.php | |
return function($site, $pages, $page) { | |
$questions = $page->questions(); | |
if ($query = get('q')) { | |
$questions = $questions->fuzzySearch($query)->toStructure(); | |
} |
<?php | |
// site/controllers/blog.php | |
return function($site, $pages, $page) { | |
$query = esc(get('q')); | |
$articles = $page->children()->visible()->flip(); | |
if ($query) { | |
$articles = $articles->fuzzySearch($query, 'title|text|authorName'); | |
} |