-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from PeoplePlusAI/add-disclaimer-and-ga
chore: updates disclaimer and google analytics integration
- Loading branch information
Showing
12 changed files
with
269 additions
and
178 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
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 |
---|---|---|
@@ -1,14 +1,21 @@ | ||
export default function InputForm({prompt, setPrompt, submitPrompt, isResponseGenerating}) { | ||
return ( | ||
<form className="relative flex" onSubmit={e => submitPrompt(e)}> | ||
<input onChange={e => setPrompt(e.target.value)} | ||
value={prompt} type="text" disabled={isResponseGenerating} | ||
className="p-4 w-full border-l border-y rounded-l-full outline-none" | ||
placeholder="Hey there, how're you doing today?" /> | ||
<button type='submit' | ||
className="pr-4 rounded-r-full border-y border-r bg-white transition"> | ||
❯ | ||
</button> | ||
</form> | ||
<> | ||
<form className="relative flex" onSubmit={e => submitPrompt(e)}> | ||
<input onChange={e => setPrompt(e.target.value)} | ||
value={prompt} type="text" disabled={isResponseGenerating} | ||
className="p-4 w-full border-l-2 border-y-2 rounded-l-full outline-none" | ||
placeholder="Hey there, how're you doing today?" /> | ||
<button type='submit' | ||
className="pr-8 rounded-r-full border-y-2 border-r-2 bg-white transition"> | ||
❯ | ||
</button> | ||
</form> | ||
<div className="mt-1 md:mt-3"> | ||
<p className="text-center text-xs md:text-sm text-slate-400"> | ||
By using this, you give your consent that you have read the <a className="text-blue-500" href="https://peopleplusai.github.io/Sukoon/disclaimer.html" target='_blank' rel="noopener noreferrer">disclaimer</a>. | ||
</p> | ||
</div> | ||
</> | ||
); | ||
} |
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,7 @@ | ||
const env = await import.meta.env; | ||
|
||
const SUPABASE_API_KEY = (env.VITE_SUPABASE_API_KEY); | ||
const SUPABASE_AUTHORIZATION_TOKEN = (env.VITE_SUPABASE_AUTHORIZATION_TOKEN); | ||
const BACKEND_ENDPOINT = (env.VITE_BACKEND_ENDPOINT); | ||
|
||
export { SUPABASE_API_KEY, SUPABASE_AUTHORIZATION_TOKEN, BACKEND_ENDPOINT }; |
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,5 @@ | ||
const RemoveTrailingSlash = (url) => { | ||
return url.replace(/\/$/, ''); | ||
} | ||
|
||
export { RemoveTrailingSlash }; |
Oops, something went wrong.