File tree Expand file tree Collapse file tree
routes/dashboard/apps/new Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 22 import { goto } from ' $app/navigation' ;
33 import { api , ApiError } from ' $lib/api.js' ;
44 import { JIOBASE_DOMAIN } from ' @jiobase/shared' ;
5- import DonationGate from ' $lib/components/DonationGate.svelte' ;
65
76 let name = $state (' ' );
87 let slug = $state (' ' );
1110 let submitting = $state (false );
1211 let slugManuallyEdited = $state (false );
1312 let urlTouched = $state (false );
14- let showDonationGate = $state (false );
1513
1614 const supabaseUrlRegex = / ^ https:\/\/ [a-z0-9 ] + \. supabase\. co$ / ;
1715 let urlError = $derived (
3836 slugManuallyEdited = true ;
3937 }
4038
41- function handleSubmit(e : Event ) {
39+ async function handleSubmit(e : Event ) {
4240 e .preventDefault ();
4341 error = ' ' ;
44- // Show donation gate before creating
45- showDonationGate = true ;
46- }
47-
48- async function createApp() {
4942 submitting = true ;
5043 try {
5144 const res = await api .apps .create ({
7366 }
7467 </script >
7568
76- <DonationGate bind:open ={showDonationGate } onproceed ={createApp } />
77-
7869<div class =" mx-auto max-w-lg" >
7970 <h1 class =" text-2xl font-bold text-white" >Create New App</h1 >
8071 <p class =" mt-1 text-sm text-gray-400" >Connect your Supabase project through JioBase's proxy.</p >
You can’t perform that action at this time.
0 commit comments