-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
too many changes, I got tired to commit it properly
- Loading branch information
Showing
343 changed files
with
3,916 additions
and
3,453 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
NEXT_PUBLIC_API_URL=https://api.hikka.io | ||
API_URL=https://api.hikka.io | ||
API_URL=https://api.hikka.io | ||
SITE_URL=http://localhost:3000 | ||
NEXT_PUBLIC_SITE_URL=http://localhost:3000 |
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,2 +1,4 @@ | ||
NEXT_PUBLIC_API_URL=https://api.hikka.io | ||
API_URL=http://127.0.0.1:8888 | ||
API_URL=http://127.0.0.1:8888 | ||
SITE_URL=https://hikka.io | ||
NEXT_PUBLIC_SITE_URL=https://hikka.io |
This file was deleted.
Oops, something went wrong.
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
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
26 changes: 14 additions & 12 deletions
26
app/(pages)/(content)/anime/[slug]/components/actions/actions.tsx
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
38 changes: 38 additions & 0 deletions
38
app/(pages)/(content)/anime/[slug]/components/actions/components/comments-button.tsx
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,38 @@ | ||
'use client'; | ||
|
||
import React from 'react'; | ||
import IconamoonCommentFill from '~icons/iconamoon/comment-fill'; | ||
|
||
import Link from 'next/link'; | ||
import { useParams } from 'next/navigation'; | ||
|
||
import { Button } from '@/components/ui/button'; | ||
import useAnimeInfo from '@/services/hooks/anime/useAnimeInfo'; | ||
import getDeclensionWord from '@/utils/getDeclensionWord'; | ||
|
||
|
||
const COMMENT_DECLENSIONS: [string, string, string] = [ | ||
'коментар', | ||
'коментарі', | ||
'коментарів', | ||
]; | ||
|
||
const CommentsButton = () => { | ||
const params = useParams(); | ||
const { data: anime } = useAnimeInfo({ slug: String(params.slug) }); | ||
|
||
return ( | ||
<Button variant="outline" asChild> | ||
<Link href={`/anime/${params.slug}/comments`}> | ||
<IconamoonCommentFill /> | ||
{anime?.comments_count || 0}{' '} | ||
{getDeclensionWord( | ||
anime?.comments_count || 0, | ||
COMMENT_DECLENSIONS, | ||
)} | ||
</Link> | ||
</Button> | ||
); | ||
}; | ||
|
||
export default CommentsButton; |
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
Oops, something went wrong.