-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
159 additions
and
71 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<script lang="ts"> | ||
import { enhance } from '$app/forms'; | ||
import { page } from '$app/state'; | ||
let myMessage = $state(''); | ||
function handleSubmit() { | ||
return async ({ result }) => { | ||
// Handle the form submission result | ||
if (result.type === 'success') { | ||
// You can add additional success handling here if needed | ||
console.log('success'); | ||
myMessage = 'Successfully requested SDK scan!'; | ||
} else { | ||
myMessage = 'Failed to request SDK scan.'; | ||
} | ||
}; | ||
} | ||
</script> | ||
|
||
<form | ||
class="mx-auto w-full max-w-md space-y-4" | ||
method="POST" | ||
action="?/requestSDKScan" | ||
use:enhance={handleSubmit} | ||
> | ||
<input type="hidden" name="appId" value={page.params.id} /> | ||
<button class="btn preset-tonal">Request New SDK Scan</button> | ||
{#if myMessage} | ||
<!-- this message is ephemeral; it exists because the page was rendered in | ||
response to a form submission. it will vanish if the user reloads --> | ||
<p class="text-green-500">{myMessage}</p> | ||
{/if} | ||
<p> | ||
This will request a new SDK scan for this app. Scanning may take several days, or require manual | ||
troubleshooting. Please reach out on Discord and we can help work on the scan. iOS is currently | ||
not working well due to changes in Apple APIs and may not be possible. | ||
</p> | ||
</form> |
This file contains 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
This file contains 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
This file contains 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