Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into idk
Browse files Browse the repository at this point in the history
ShivaBhattacharjee authored Oct 2, 2024
2 parents 415741f + 9021f02 commit 646ceee
Showing 7 changed files with 13 additions and 10 deletions.
3 changes: 2 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
MONGODB_URI =
MONGODB_URI =
# you can find token under inspect -> application -> cookies -> https://www.animetrix.xyz
JWT_TOKEN =
# gemini api key
NEXT_PUBLIC_GEMINI_API_KEY =
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -112,8 +112,8 @@ bun test

```bash
sudo docker run -p <your-port-number>:3000 \
-e NEXT_PUBLIC_MONGODB_URI=yourmongodburi \
-e NEXT_PUBLIC_JWT_TOKEN=yourjwttoken \
-e MONGODB_URI=yourmongodburi \
-e JWT_TOKEN=yourjwttoken \
-e NEXT_PUBLIC_EMAIL_SERVICE=gmail \
-e NEXT_PUBLIC_EMAIL=youremail \
-e NEXT_PUBLIC_ANIME_API_URL= self hosted url of https://github.com/consumet/api.consumet.org \
@@ -126,8 +126,8 @@ immashiva/animetrix

```bash
sudo docker run -p 8080:3000 \
-e NEXT_PUBLIC_MONGODB_URI=yourmongodburi \
-e NEXT_PUBLIC_JWT_TOKEN=yourjwttoken \
-e MONGODB_URI=yourmongodburi \
-e JWT_TOKEN=yourjwttoken \
-e NEXT_PUBLIC_ANIME_API_URL= self hosted url of https://github.com/consumet/api.consumet.org \
-e NEXT_PUBLIC_EMAIL_SERVICE=gmail \
-e NEXT_PUBLIC_EMAIL=youremail \
1 change: 1 addition & 0 deletions public/sw.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions src/app/register/page.tsx
Original file line number Diff line number Diff line change
@@ -105,9 +105,7 @@ const Page = () => {
<span>Registering...</span>
</button>
) : (
<button className={` p-3 ${userName && email && password && confirmPassword != "" && password === confirmPassword ? "bg-blue-600 cursor-pointer" : "bg-white/30 text-black cursor-not-allowed"} rounded-lg mt-3 font-semibold duration-200 ${userName && email && password && confirmPassword != "" && password && confirmPassword.length > 8 && password && "hover:bg-white"} hover:text-black`} disabled={userName && email && password && confirmPassword != "" && password && confirmPassword.length > 8 ? true : false}>
Register
</button>
<button className={` p-3 ${userName && email && password && confirmPassword != "" && password === confirmPassword ? "bg-blue-600 cursor-pointer" : "bg-white/30 text-black cursor-not-allowed"} rounded-lg mt-3 font-semibold duration-200 ${userName && email && password && confirmPassword != "" && password && confirmPassword.length > 8 && password && "hover:bg-white"} hover:text-black`}>Register</button>
)}

<span className=" text-center mt-2">
2 changes: 2 additions & 0 deletions src/app/waifu/[waifuid]/[animename]/page.tsx
Original file line number Diff line number Diff line change
@@ -68,6 +68,8 @@ const Page = ({ params }: { params: { waifuid: string; animename: string } }) =>
}, [focusTextarea]);
const handleSubmit = async (e: FormEvent<HTMLFormElement>) => {
e.preventDefault();
if (!token) return Toast.ErrorShowToast(`You need to login to chat with ${waifuid}`);

try {
const text = prompt;
setPrompt("");
1 change: 1 addition & 0 deletions src/components/AniScanSearchLayout.tsx
Original file line number Diff line number Diff line change
@@ -28,6 +28,7 @@ const AniScanSearchLayout: React.FC<AniScanSearchLayoutProps> = ({ searchResult
const response = await url.json();
const responseArray: Anime[] = [response];
setView(responseArray);
console.log(responseArray);
}
prevAnilist.current = searchResult?.result[number].anilist.id || null;
setLoading(false);
4 changes: 2 additions & 2 deletions src/components/shared/cards/EpisodeLists.tsx
Original file line number Diff line number Diff line change
@@ -184,11 +184,11 @@ const EpisodeLists: React.FC<EpisodeListsProps> = ({ animeId, isStream, currentl
<div className="flex flex-col items-center">
{currentlyPlaying == anime.number && <SyncLoader color="#fff" size={4} />}
{anime.title ? (
<h1 className=" p-3 truncate md:w-60 w-40 text-xs md:text-lg">
<h1 className=" p-3 truncate md:w-60 w-40 text-xs md:text-lg max-w-full">
{anime.number} . {anime?.title} {isFiller && "(🤓Fillter)"}
</h1>
) : (
<h1 className=" p-2 font-semibold py-3">
<h1 className=" p-2 font-semibold py-3 max-w-full">
{isFiller ? "Filler Episode" : "Episode"}: {anime.number}
</h1>
)}

0 comments on commit 646ceee

Please sign in to comment.