-
+ {
+ const conf = await alertConfirm('Report this character?')
+ if(conf){
+ const report = await alertInput('Write a report text that would be sent to the admin')
+ const da = await fetch(hubURL + '/hub/report', {
+ method: "POST",
+ body: JSON.stringify({
+ id: openedData.id,
+ report: report
+ })
+ })
+ alertNormal(await da.text())
+ }
+ }}>
{
diff --git a/src/lib/UI/HubUpload.svelte b/src/lib/UI/HubUpload.svelte
new file mode 100644
index 00000000..45c456b1
--- /dev/null
+++ b/src/lib/UI/HubUpload.svelte
@@ -0,0 +1,62 @@
+
+
+
+
+
+ Share {char.name} to {language.hub}
+
+
+
+
+
+
+ {language.creatorNotes}
+ A description that displays when you search and when you first open a bot.
+ More than 20 characters.
+
+ {language.tags}
+ Tags to search your character easily. latin alphabets only. seperate by comma.
+ {
+ tags = tags.replace(/[^a-zA-Z,]/g, '').toLocaleLowerCase()
+ }}>
+