init enumerate

Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
This commit is contained in:
Hadi
2026-04-11 20:43:30 +02:00
parent f53380fbd9
commit a0fceb36df
8 changed files with 793 additions and 7 deletions

View File

@@ -3,7 +3,7 @@
import Select from "./comps/Select.svelte";
import { INPUT_TYPES } from "@src/lib/vars";
let { onSearch = async () => {}, demo = false } = $props();
let { onSearch = async () => {}, demo = false, initialTarget = "", initialType = "" } = $props();
const DETECTORS = {
email: (_raw, v) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(v),
@@ -21,8 +21,8 @@
domain: { test: (v) => /^(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/.test(v), msg: "Invalid domain name" },
};
let target = $state("");
let inputType = $state("email");
let target = $state(initialTarget);
let inputType = $state(initialType || "email");
let profile = $state("default");
let profiles = $state([]);
let loading = $state(false);