chore: add senja to dashboard login + validate empty newsfeed comment
This commit is contained in:
@@ -31,6 +31,8 @@
|
||||
<meta name="twitter:description"
|
||||
content="ClassroomIO is a no-code tool that allows you build and scale your own teaching platform with ease." />
|
||||
|
||||
<script async type="text/javascript" src="https://static.senja.io/dist/platform.js"></script>
|
||||
|
||||
<!-- <link rel="stylesheet" href="global.css"> -->
|
||||
<link rel="manifest" href="/manifest.json" crossorigin="use-credentials" />
|
||||
<link rel="icon" type="image/png" href="/favicon.ico" />
|
||||
|
||||
@@ -55,6 +55,8 @@
|
||||
};
|
||||
|
||||
const handleAddNewComment = (event) => {
|
||||
if (!comment) return;
|
||||
|
||||
if (event.key === 'Enter' || event.type === 'click') {
|
||||
event.preventDefault();
|
||||
addNewComment(comment, feed.id, author.id);
|
||||
@@ -217,6 +219,7 @@
|
||||
on:keydown={handleAddNewComment}
|
||||
placeholder="Add class comment"
|
||||
class="w-full bg-transparent border border-gray-200 rounded-3xl"
|
||||
required
|
||||
/>
|
||||
</div>
|
||||
<button on:click={handleAddNewComment}>
|
||||
|
||||
@@ -51,6 +51,13 @@
|
||||
<title>Welcome back to {$currentOrg.name || 'ClassroomIO'}</title>
|
||||
</svelte:head>
|
||||
|
||||
<div
|
||||
class="senja-embed"
|
||||
data-id="aa054658-1e15-4d00-8920-91f424326c4e"
|
||||
data-lazyload="false"
|
||||
data-spinner="false"
|
||||
></div>
|
||||
|
||||
<AuthUI {supabase} isLogin={true} {handleSubmit} isLoading={loading} bind:formRef>
|
||||
<div class="mt-4 w-full">
|
||||
<p class="dark:text-white text-lg font-semibold mb-6">Welcome back</p>
|
||||
|
||||
@@ -131,6 +131,13 @@
|
||||
<title>Join ClassroomIO</title>
|
||||
</svelte:head>
|
||||
|
||||
<div
|
||||
class="senja-embed"
|
||||
data-id="aa054658-1e15-4d00-8920-91f424326c4e"
|
||||
data-lazyload="false"
|
||||
data-spinner="false"
|
||||
></div>
|
||||
|
||||
<AuthUI {supabase} isLogin={false} {handleSubmit} isLoading={loading} bind:formRef>
|
||||
<div class="mt-4 w-full">
|
||||
<p class="dark:text-white text-lg font-semibold mb-6">Create a free account</p>
|
||||
|
||||
Reference in New Issue
Block a user