├── .dockerignore ├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md └── dependabot.yml ├── .gitignore ├── CODE_OF_CONDUCT.md ├── Dockerfile ├── LICENSE ├── README.md ├── package-lock.json ├── package.json ├── public ├── images │ ├── animetrix192x192.png │ ├── animetrix256.png │ ├── animetrix384.png │ ├── animetrix512x512.png │ ├── apple-touch-icon.png │ ├── favicon-16x16.png │ ├── favicon-32x32.png │ ├── favicon.ico │ ├── favicon.png │ └── maskableicon.png ├── index.html ├── manifest.json └── robot.txt └── src ├── App.css ├── App.jsx ├── Components ├── AiringSchedule.jsx ├── AnimeImageSearchLayout.jsx ├── Bookmark.jsx ├── Card.jsx ├── ChatBody.jsx ├── ChatBotapi.js ├── ChatInput.jsx ├── Footer.jsx ├── ForYou.jsx ├── Header.jsx ├── History.jsx ├── ScrollToTop.jsx ├── Search.jsx ├── UpcomingSeason.jsx ├── UpcomingSeasonCard.jsx ├── constants.js ├── error404.jsx ├── index.js └── slider.jsx ├── Loading ├── DetailsLoader.jsx ├── GenreLoading.jsx ├── HomePageLoader.jsx ├── OtherPagesCard.jsx ├── ProfileLoader.jsx └── StreamLoader.jsx ├── Pages ├── AIChat.jsx ├── AnimeImageSearch.jsx ├── Details.jsx ├── DubAnime.jsx ├── ForgotPassword.jsx ├── Login.jsx ├── NewSeason.jsx ├── Popular.jsx ├── Profile.jsx ├── RecentAnime.jsx ├── Register.jsx ├── Stream.jsx ├── Terms.jsx ├── genre.jsx ├── index.js ├── movie.jsx └── topAiring.jsx ├── css ├── AiringSchedule.css ├── Chatbot.css ├── Details.css ├── Footer.css ├── ForYou.css ├── Header.css ├── ImageSearch.css ├── Login.css ├── Profile.css ├── Root.css ├── Search.css ├── UpcomingSeason.css ├── card.css ├── error404.css ├── lastwatch.css ├── slider.css ├── stream.css ├── terms.css ├── titleandfilterbar.css └── topScroll.css ├── img ├── loader.gif ├── loader.svg └── spinner.svg ├── index.js ├── service-worker.js ├── serviceWorkerRegistration.js └── utils ├── hooks.js └── toast.js /.dockerignore: -------------------------------------------------------------------------------- 1 | .gitignore 2 | node_modules -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Describe the bug** 11 | A clear and concise description of what the bug is. 12 | 13 | **To Reproduce** 14 | Steps to reproduce the behavior: 15 | 1. Go to '...' 16 | 2. Click on '....' 17 | 3. Scroll down to '....' 18 | 4. See error 19 | 20 | **Expected behavior** 21 | A clear and concise description of what you expected to happen. 22 | 23 | **Screenshots** 24 | If applicable, add screenshots to help explain your problem. 25 | 26 | **Desktop (please complete the following information):** 27 | - OS: [e.g. iOS] 28 | - Browser [e.g. chrome, safari] 29 | - Version [e.g. 22] 30 | 31 | **Smartphone (please complete the following information):** 32 | - Device: [e.g. iPhone6] 33 | - OS: [e.g. iOS8.1] 34 | - Browser [e.g. stock browser, safari] 35 | - Version [e.g. 22] 36 | 37 | **Additional context** 38 | Add any other context about the problem here. 39 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Is your feature request related to a problem? Please describe.** 11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 12 | 13 | **Describe the solution you'd like** 14 | A clear and concise description of what you want to happen. 15 | 16 | **Describe alternatives you've considered** 17 | A clear and concise description of any alternative solutions or features you've considered. 18 | 19 | **Additional context** 20 | Add any other context or screenshots about the feature request here. 21 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | # To get started with Dependabot version updates, you'll need to specify which 2 | # package ecosystems to update and where the package manifests are located. 3 | # Please see the documentation for all configuration options: 4 | # https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates 5 | 6 | version: 2 7 | updates: 8 | - package-ecosystem: "npm" # See documentation for possible values 9 | directory: "/" # Location of package manifests 10 | schedule: 11 | interval: "weekly" 12 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Contributor Covenant Code of Conduct 2 | 3 | ## Our Pledge 4 | 5 | We as members, contributors, and leaders pledge to make participation in our 6 | community a harassment-free experience for everyone, regardless of age, body 7 | size, visible or invisible disability, ethnicity, sex characteristics, gender 8 | identity and expression, level of experience, education, socio-economic status, 9 | nationality, personal appearance, race, religion, or sexual identity 10 | and orientation. 11 | 12 | We pledge to act and interact in ways that contribute to an open, welcoming, 13 | diverse, inclusive, and healthy community. 14 | 15 | ## Our Standards 16 | 17 | Examples of behavior that contributes to a positive environment for our 18 | community include: 19 | 20 | * Demonstrating empathy and kindness toward other people 21 | * Being respectful of differing opinions, viewpoints, and experiences 22 | * Giving and gracefully accepting constructive feedback 23 | * Accepting responsibility and apologizing to those affected by our mistakes, 24 | and learning from the experience 25 | * Focusing on what is best not just for us as individuals, but for the 26 | overall community 27 | 28 | Examples of unacceptable behavior include: 29 | 30 | * The use of sexualized language or imagery, and sexual attention or 31 | advances of any kind 32 | * Trolling, insulting or derogatory comments, and personal or political attacks 33 | * Public or private harassment 34 | * Publishing others' private information, such as a physical or email 35 | address, without their explicit permission 36 | * Other conduct which could reasonably be considered inappropriate in a 37 | professional setting 38 | 39 | ## Enforcement Responsibilities 40 | 41 | Community leaders are responsible for clarifying and enforcing our standards of 42 | acceptable behavior and will take appropriate and fair corrective action in 43 | response to any behavior that they deem inappropriate, threatening, offensive, 44 | or harmful. 45 | 46 | Community leaders have the right and responsibility to remove, edit, or reject 47 | comments, commits, code, wiki edits, issues, and other contributions that are 48 | not aligned to this Code of Conduct, and will communicate reasons for moderation 49 | decisions when appropriate. 50 | 51 | ## Scope 52 | 53 | This Code of Conduct applies within all community spaces, and also applies when 54 | an individual is officially representing the community in public spaces. 55 | Examples of representing our community include using an official e-mail address, 56 | posting via an official social media account, or acting as an appointed 57 | representative at an online or offline event. 58 | 59 | ## Enforcement 60 | 61 | Instances of abusive, harassing, or otherwise unacceptable behavior may be 62 | reported to the community leaders responsible for enforcement at 63 | heyitsshiva@protonmail.me. 64 | All complaints will be reviewed and investigated promptly and fairly. 65 | 66 | All community leaders are obligated to respect the privacy and security of the 67 | reporter of any incident. 68 | 69 | ## Enforcement Guidelines 70 | 71 | Community leaders will follow these Community Impact Guidelines in determining 72 | the consequences for any action they deem in violation of this Code of Conduct: 73 | 74 | ### 1. Correction 75 | 76 | **Community Impact**: Use of inappropriate language or other behavior deemed 77 | unprofessional or unwelcome in the community. 78 | 79 | **Consequence**: A private, written warning from community leaders, providing 80 | clarity around the nature of the violation and an explanation of why the 81 | behavior was inappropriate. A public apology may be requested. 82 | 83 | ### 2. Warning 84 | 85 | **Community Impact**: A violation through a single incident or series 86 | of actions. 87 | 88 | **Consequence**: A warning with consequences for continued behavior. No 89 | interaction with the people involved, including unsolicited interaction with 90 | those enforcing the Code of Conduct, for a specified period of time. This 91 | includes avoiding interactions in community spaces as well as external channels 92 | like social media. Violating these terms may lead to a temporary or 93 | permanent ban. 94 | 95 | ### 3. Temporary Ban 96 | 97 | **Community Impact**: A serious violation of community standards, including 98 | sustained inappropriate behavior. 99 | 100 | **Consequence**: A temporary ban from any sort of interaction or public 101 | communication with the community for a specified period of time. No public or 102 | private interaction with the people involved, including unsolicited interaction 103 | with those enforcing the Code of Conduct, is allowed during this period. 104 | Violating these terms may lead to a permanent ban. 105 | 106 | ### 4. Permanent Ban 107 | 108 | **Community Impact**: Demonstrating a pattern of violation of community 109 | standards, including sustained inappropriate behavior, harassment of an 110 | individual, or aggression toward or disparagement of classes of individuals. 111 | 112 | **Consequence**: A permanent ban from any sort of public interaction within 113 | the community. 114 | 115 | ## Attribution 116 | 117 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], 118 | version 2.0, available at 119 | https://www.contributor-covenant.org/version/2/0/code_of_conduct.html. 120 | 121 | Community Impact Guidelines were inspired by [Mozilla's code of conduct 122 | enforcement ladder](https://github.com/mozilla/diversity). 123 | 124 | [homepage]: https://www.contributor-covenant.org 125 | 126 | For answers to common questions about this code of conduct, see the FAQ at 127 | https://www.contributor-covenant.org/faq. Translations are available at 128 | https://www.contributor-covenant.org/translations. 129 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM node:14-alpine AS BUILDER 2 | ENV WEB_ROOT=/app/AnimeTrix 3 | RUN apk add --no-cache git curl 4 | RUN curl -sf https://gobinaries.com/tj/node-prune | sh 5 | WORKDIR /app 6 | RUN git clone https://github.com/ShivaBhattacharjee/AnimeTrix.git 7 | WORKDIR $WEB_ROOT 8 | RUN find . -type f -exec sed -i 's/\r$//' {} + 9 | RUN npm install --verbose 10 | RUN npm run build 11 | RUN rm -rf .git .github .gitignore .dockerignore .vscode LICENSE README.md 12 | RUN node-prune node_modules 13 | RUN chmod -R 777 . 14 | 15 | FROM node:14-alpine 16 | ENV WEB_ROOT=/app/AnimeTrix 17 | RUN mkdir /app 18 | RUN mkdir $WEB_ROOT 19 | WORKDIR $WEB_ROOT 20 | COPY --from=BUILDER $WEB_ROOT . 21 | EXPOSE 3000 22 | CMD npm start 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |

2 | 3 | Logo 4 | 5 |
6 |

AnimeTrix

7 | 8 |

9 | A go to platform to stream/download your favorite anime 10 |
11 |
12 |
13 | View Demo 14 | . 15 | Report Bug 16 | . 17 | Request Feature 18 |

19 |

20 | 21 | 22 | 23 | ## Table Of Contents 24 | 25 | * [About the Project](#about-the-project) 26 | * [Built With](#built-with) 27 | * [Getting Started](#getting-started) 28 | * [Prerequisites](#prerequisites) 29 | * [Installation](#installation) 30 | * [Hosting](#host-your-own) 31 | * [Contributing](#contributing) 32 | * [Issue Template](#raising-an-issue) 33 | * [Code of conduct](#code-of-conduct) 34 | * [License](#license) 35 | * [Authors](#authors) 36 | 37 | ## About The Project 38 | 39 | ![Screenshot from 2023-07-02 13-09-50](https://github.com/ShivaBhattacharjee/AnimeTrix/assets/95211406/86784c0d-96d6-41cb-87f2-81722f7172de) 40 | 41 | 42 | Anime Trix is an anime streaming / downloading site that offers a vast collection of anime shows for streaming and downloading. With a user-friendly interface, you can easily find your favorite anime shows and watch them in high-definition quality. Our platform is updated regularly with the latest anime episodes, so you can stay up-to-date with your favorite shows. Anime Trix is the go-to destination for anime lovers who want to watch their favorite shows anytime, anywhere. 43 | 44 | ## Built With 45 | 46 | AnimeTrix is built using ReactJs and vanilla Css 47 | 48 | * [ReactJs](https://reactjs.org/docs/getting-started.html) (CRA i.e Create React App) 49 | * [CSS](https://developer.mozilla.org/en-US/docs/Web/CSS) 50 | * [Express Js](http://expressjs.com/) 51 | * [Mongo DB](https://www.mongodb.com/) 52 | 53 | Disclaimer: Please note that the backend logic for comment, login, and validation is currently not available as an open source. However, you can still utilize the API provided in the "constant.js" file to access and use the functions for login and other login related stuff. We make no guarantees or warranties as to the performance or suitability of this API for your specific needs, and we are not responsible for any damages or issues that may arise from its use. Use of this API is entirely at your own risk. 54 | 55 | ## Getting Started 56 | 57 | 58 | ### Prerequisites 59 | 60 | Git is a distributed version control system used for software development. It allows multiple developers to work on the same codebase simultaneously, keeping track of changes and managing versions. It also enables users to revert changes and collaborate more effectively. 61 | 62 | 63 | 64 | NodeJs is a JavaScript runtime built on Chrome's V8 JavaScript engine. It allows developers to execute JavaScript code outside of a web browser, making it possible to create server-side applications with JavaScript. Node.js is fast, lightweight, and scalable, making it popular for building modern web applications. 65 | 66 | ### Installation 67 | ```bash 68 | git clone https://github.com/ShivaBhattacharjee/AnimeTrix.git 69 | ``` 70 | ``` 71 | cd AnimeTrix 72 | ``` 73 | ``` 74 | npm install 75 | ``` 76 | ``` 77 | npm start 78 | ``` 79 | Server will start at http://localhost:3000/ 80 | 81 | ## Host your own 82 | * ## Vercel 83 | 84 | [![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2FShivaBhattacharjee%2FAnimeTrix) 85 |
86 |
87 | 88 | * ## Netlify 89 | 90 | [![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/ShivaBhattacharjee/AnimeTrix) 91 |
92 |
93 | 94 | * ## Render 95 | 96 | [![Deploy to Render](https://render.com/images/deploy-to-render-button.svg)](https://render.com/deploy?repo=https://github.com/ShivaBhattacharjee/AnimeTrix) 97 | 98 | ## Contributing 99 | 100 | Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**. 101 | * If you have suggestions for adding or removing projects, feel free to [open an issue](https://github.com/ShivaBhattacharjee/AnimeTrix/issues) to discuss it 102 | 103 | * Please make sure you check your spelling and grammar. 104 | 105 | ### Creating A Pull Request 106 | 107 | Wanna contribute to AnimeTrix ? 108 | 109 | 1. Fork the Project 110 | 2. Create your Feature Branch (`git checkout -b feature/FeatureName`) 111 | 3. Commit your Changes (`git commit -m 'Add some FeatureName'`) 112 | 4. Push to the Branch (`git push origin feature/FeatureName`) 113 | 5. Open a Pull Request 114 | 115 | 116 | ## Raising an issue 117 | 118 | If you're experiencing any problems with Animetrix, please be sure to review our [issue template](https://github.com/ShivaBhattacharjee/AnimeTrix/tree/main/.github/ISSUE_TEMPLATE) before opening a new issue. The template includes a list of questions and prompts that will help us better understand the issue you're experiencing, and it will ensure that we have all of the necessary information to investigate the problem. 119 | 120 | We kindly ask that you provide as much detail as possible when submitting an issue, including steps to reproduce the problem, any error messages that you have seen, and any other relevant information. This will help us to identify and fix the issue more quickly. 121 | 122 | Thank you for your cooperation, and we look forward to hearing from you! 123 | 124 | ## Code of conduct 125 | 126 | Developers are requested to go through our code of conduct thoroughly to maintain a peaceful environment within our project. 127 | 128 | ## License 129 | 130 | Distributed under the Apache License 2.0 . See [LICENSE](https://github.com/ShivaBhattacharjee/AnimeTrix/blob/main/LICENSE) for more information. 131 | 132 | ## Authors 133 | 134 | * **Shiva Bhattacharjee** - [Shiva Bhattacharjee](https://github.com/ShivaBhattacharjee) - *AnimeTrix* 135 | * **Dark-Knight** - [Dark-Knight-16](https://github.com/Dark-Knight-16) - *AnimeTrix* 136 | 137 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "animeTrix", 3 | "version": "2.2.2", 4 | "description": "Anime Trix is an anime streaming / downloading site that offers a vast collection of anime shows for streaming and downloading. With a user-friendly interface, you can easily find your favorite anime shows and watch them in high-definition quality. Our platform is updated regularly with the latest anime episodes, so you can stay up-to-date with your favorite shows. Anime Trix is the go-to destination for anime lovers who want to watch their favorite shows anytime, anywhere", 5 | "private": false, 6 | "keywords": [ 7 | "react", 8 | "javascript", 9 | "web development", 10 | "frontend", 11 | "anime streaming", 12 | "anime downloading" 13 | ], 14 | "dependencies": { 15 | "@emotion/react": "^11.11.1", 16 | "@emotion/styled": "^11.11.0", 17 | "@formkit/auto-animate": "^1.0.0-pre-alpha.3", 18 | "@mui/icons-material": "^5.13.7", 19 | "@mui/material": "^5.13.7", 20 | "axios": "^1.4.0", 21 | "buffer": "^6.0.3", 22 | "js-cookie": "^3.0.5", 23 | "react": "^18.2.0", 24 | "react-copy-to-clipboard": "^5.1.0", 25 | "react-dom": "^18.2.0", 26 | "react-drag-drop-files": "^2.3.10", 27 | "react-helmet": "^6.1.0", 28 | "react-icons": "^4.10.1", 29 | "react-infinite-scroll-component": "^6.1.0", 30 | "react-lazy-load-image-component": "^1.6.0", 31 | "react-loading-skeleton": "^3.3.1", 32 | "react-query": "^3.39.3", 33 | "react-router-dom": "^6.14.1", 34 | "react-scripts": "5.0.1", 35 | "react-toastify": "^9.1.3", 36 | "react-top-loading-bar": "^2.3.1", 37 | "swiper": "^9.4.1", 38 | "web-vitals": "^3.3.2" 39 | }, 40 | "scripts": { 41 | "start": "react-scripts start", 42 | "build": "react-scripts build", 43 | "test": "react-scripts test", 44 | "eject": "react-scripts eject" 45 | }, 46 | "eslintConfig": { 47 | "extends": [ 48 | "react-app", 49 | "react-app/jest" 50 | ] 51 | }, 52 | "browserslist": { 53 | "production": [ 54 | ">0.2%", 55 | "not dead", 56 | "not op_mini all" 57 | ], 58 | "development": [ 59 | "last 1 chrome version", 60 | "last 1 firefox version", 61 | "last 1 safari version" 62 | ] 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /public/images/animetrix192x192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShivaBhattacharjee/AnimeTrix/b04acf3ba3fedbc56be6b6b8cc90bd9ab20763cb/public/images/animetrix192x192.png -------------------------------------------------------------------------------- /public/images/animetrix256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShivaBhattacharjee/AnimeTrix/b04acf3ba3fedbc56be6b6b8cc90bd9ab20763cb/public/images/animetrix256.png -------------------------------------------------------------------------------- /public/images/animetrix384.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShivaBhattacharjee/AnimeTrix/b04acf3ba3fedbc56be6b6b8cc90bd9ab20763cb/public/images/animetrix384.png -------------------------------------------------------------------------------- /public/images/animetrix512x512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShivaBhattacharjee/AnimeTrix/b04acf3ba3fedbc56be6b6b8cc90bd9ab20763cb/public/images/animetrix512x512.png -------------------------------------------------------------------------------- /public/images/apple-touch-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShivaBhattacharjee/AnimeTrix/b04acf3ba3fedbc56be6b6b8cc90bd9ab20763cb/public/images/apple-touch-icon.png -------------------------------------------------------------------------------- /public/images/favicon-16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShivaBhattacharjee/AnimeTrix/b04acf3ba3fedbc56be6b6b8cc90bd9ab20763cb/public/images/favicon-16x16.png -------------------------------------------------------------------------------- /public/images/favicon-32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShivaBhattacharjee/AnimeTrix/b04acf3ba3fedbc56be6b6b8cc90bd9ab20763cb/public/images/favicon-32x32.png -------------------------------------------------------------------------------- /public/images/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShivaBhattacharjee/AnimeTrix/b04acf3ba3fedbc56be6b6b8cc90bd9ab20763cb/public/images/favicon.ico -------------------------------------------------------------------------------- /public/images/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShivaBhattacharjee/AnimeTrix/b04acf3ba3fedbc56be6b6b8cc90bd9ab20763cb/public/images/favicon.png -------------------------------------------------------------------------------- /public/images/maskableicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShivaBhattacharjee/AnimeTrix/b04acf3ba3fedbc56be6b6b8cc90bd9ab20763cb/public/images/maskableicon.png -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 19 | 20 | 21 | 24 | 25 | 26 | 27 | 29 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 39 | 40 | 42 | 44 | 45 | Watch Download Anime For Free On AnimeTrix 46 | 47 | 48 | 49 |
50 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "AnimeTrix", 3 | "short_name": "AnimeTrix", 4 | "theme_color": "#296dea", 5 | "background_color": "#100d16", 6 | "display": "standalone", 7 | "scope": "/", 8 | "start_url": "/", 9 | "description": "Anime Trix is an anime streaming / downloading site that offers a vast collection of anime shows for streaming and downloading. With a user-friendly interface, you can easily find your favorite anime shows and watch them in high-definition quality. Our platform is updated regularly with the latest anime episodes, so you can stay up-to-date with your favorite shows. Anime Trix is the go-to destination for anime lovers who want to watch their favorite shows anytime, anywhere.", 10 | "icons": [ 11 | { 12 | "src":"images/maskableicon.png", 13 | "sizes":" 192x192", 14 | "type": "image/png", 15 | "purpose": "any maskable" 16 | }, 17 | { 18 | "src": "images/animetrix192x192.png", 19 | "sizes": " 192x192", 20 | "type": "image/png" 21 | }, 22 | { 23 | "src": "images/animetrix256.png", 24 | "sizes": " 256x256", 25 | "type": "image/png" 26 | }, 27 | { 28 | "src": "images/animetrix512x512.png", 29 | "sizes": " 512x512", 30 | "type": "image/png" 31 | } 32 | ] 33 | } -------------------------------------------------------------------------------- /public/robot.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: -------------------------------------------------------------------------------- /src/App.css: -------------------------------------------------------------------------------- 1 | * { 2 | margin: 0; 3 | padding: 0; 4 | text-decoration: none; 5 | font-family: poppins; 6 | list-style-type: none; 7 | -webkit-tap-highlight-color: transparent; 8 | } 9 | .art-setting-quality { 10 | display: block !important; 11 | } 12 | *, 13 | *::before, 14 | *::after { 15 | box-sizing: border-box; 16 | } 17 | 18 | /* scroll bar */ 19 | html { 20 | scroll-behavior: smooth; 21 | font-family: poppins; 22 | scrollbar-color: rgb(41, 109, 234); 23 | scrollbar-width: 0.5rem; 24 | } 25 | 26 | 27 | h1, 28 | h2, 29 | h3, 30 | h4, 31 | h5, 32 | h6 { 33 | color: #fff; 34 | } 35 | 36 | body{ 37 | background: var(--background-color); 38 | max-height: 100%; 39 | min-height: 100vh; 40 | width: 100%; 41 | color: var(--text-color); 42 | } 43 | 44 | img { 45 | display: block; 46 | width: 100%; 47 | height: 100%; 48 | object-fit: cover; 49 | pointer-events: none; 50 | } 51 | 52 | input, 53 | button, 54 | select { 55 | font: inherit; 56 | background-color: none; 57 | border: none; 58 | outline: none; 59 | } 60 | 61 | button { 62 | color: var(--text-color); 63 | cursor: pointer; 64 | } 65 | 66 | a { 67 | text-decoration: none; 68 | display: block; 69 | color: var(--text-color); 70 | } 71 | 72 | ::-webkit-scrollbar { 73 | background: transparent; 74 | width: 6px; 75 | } 76 | 77 | ::-webkit-scrollbar-thumb { 78 | background-color:var(--scroll-bar); 79 | border-radius: 14px; 80 | } 81 | 82 | 83 | 84 | .react-loading-skeleton { 85 | display: block; 86 | animation: pulse 1.8s ease-in-out 0.5s infinite; 87 | transform: translateZ(0); 88 | background: linear-gradient(-90deg, #000000 0%, #646161 50%, #646161 50%); 89 | background-size: 400% 400%; 90 | } 91 | 92 | @keyframes pulse { 93 | 0% { 94 | background-position: 0% 0%; 95 | } 96 | 100% { 97 | background-position: -100% 90%; 98 | } 99 | } 100 | 101 | -------------------------------------------------------------------------------- /src/Components/AiringSchedule.jsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import { Link } from "react-router-dom"; 3 | import { useState, useEffect } from "react"; 4 | function AiringSchedule(props) { 5 | const { airingList, ref } = props; 6 | const [dateTime, setDateTime] = useState(new Date().toLocaleString()); 7 | 8 | useEffect(() => { 9 | const intervalID = setInterval(() => { 10 | setDateTime(new Date().toLocaleString()); 11 | }, 1000); 12 | 13 | return () => { 14 | clearInterval(intervalID); 15 | }; 16 | }, []); 17 | return ( 18 |
19 |
20 |

Airing Schedule

21 |
Today is {dateTime}
22 |
23 |
24 | {airingList?.map((airingSchedule) => { 25 | const { id, title, episode, airingAt } = airingSchedule; 26 | 27 | return ( 28 |
29 |
30 |
31 | {new Date(airingAt * 1000).toLocaleString()} 32 |
33 |
{title.userPreferred}
34 |
35 | 36 |
Episode : {episode}
37 | 38 |
39 | ); 40 | })} 41 |
42 |
43 | ); 44 | } 45 | 46 | export default AiringSchedule; 47 | -------------------------------------------------------------------------------- /src/Components/AnimeImageSearchLayout.jsx: -------------------------------------------------------------------------------- 1 | import React, { useState, useEffect, useRef } from "react" 2 | import { Link } from "react-router-dom" 3 | import { HomeApi } from "./constants" 4 | import { showErrorToast } from "../utils/toast" 5 | function AnimeImageSearchLayout({ searchResult, setToggle }) { 6 | const [loading, setLoading] = useState(true) 7 | const [view, setView] = useState([]) 8 | const [select, setSelect] = useState(0) 9 | const prevAnilist = useRef() 10 | const getAnime = async (number) => { 11 | setLoading(true) 12 | try{ 13 | if (prevAnilist.current !== searchResult.result[number].anilist.id) { 14 | const url = await fetch( 15 | `${HomeApi}/meta/anilist/info/${searchResult.result[number].anilist.id}` 16 | ) 17 | const response = await url.json(); 18 | const responseArray = [response] 19 | setView(responseArray) 20 | } 21 | prevAnilist.current = searchResult.result[number].anilist.id 22 | setLoading(false) 23 | }catch(error){ 24 | showErrorToast('Cant find image!'); 25 | } 26 | } 27 | 28 | useEffect(() => { 29 | getAnime(select) 30 | }, [searchResult.result, select, getAnime]) 31 | 32 | return ( 33 | <> 34 | {view.map((imageSearch) => { 35 | return ( 36 | <> 37 | {!loading && ( 38 |
39 |
40 |
41 |

Match?

42 |
43 |
44 |
45 |
47 |
48 | 49 | {imageSearch.id} 55 | 56 |
57 |
58 | {(imageSearch.totalEpisodes)} 59 | {(imageSearch.rating / 10)} 60 |
61 |
{imageSearch.userPreferred || imageSearch.title.english || imageSearch.romaji}
62 |
63 |
64 |
65 |
66 |
67 | )} 68 | 69 | ) 70 | })} 71 |
72 |
73 |
74 |

Other Results

75 |
76 |
77 |
78 | {searchResult.result.map((item, i) => ( 79 |
{ 84 | setSelect(i) 85 | }} 86 | > 87 |
88 |
89 | { 98 |
99 |
100 |
{item?.anilist?.title?.english || 101 | item?.anilist?.title?.romaji || 102 | item?.anilist?.title?.native}
103 |
Episode - {item?.episode}
104 |
{Math.round(item?.similarity * 10000) / 100}% similarity
105 |
106 |
107 |
108 |
109 | ))} 110 |
111 |
112 |
113 | 119 |
120 | {/*
121 |
122 |

Expected Scene

123 |
124 |
*/} 133 |
134 |

135 |
136 | 137 | ) 138 | } 139 | 140 | export default AnimeImageSearchLayout -------------------------------------------------------------------------------- /src/Components/Bookmark.jsx: -------------------------------------------------------------------------------- 1 | import { Link } from 'react-router-dom' 2 | import { React, useEffect, useState } from 'react'; 3 | import axios from "axios"; 4 | import { ToastContainer } from 'react-toastify'; 5 | import 'react-toastify/dist/ReactToastify.css'; 6 | import Card from './Card'; 7 | import { ServerApi } from './constants'; 8 | import OtherPagesCard from '../Loading/OtherPagesCard'; 9 | import { showErrorToast } from '../utils/toast'; 10 | const Bookmark = () => { 11 | const [animeData, setAnimeData] = useState([]) 12 | const [userId, setUserId] = useState(""); 13 | const [loading, setLoading] = useState(true); 14 | const [bookmark, setBookmark] = useState([]); 15 | const [count, setCount] = useState(18); 16 | 17 | function getCookie(name) { 18 | const cookies = document.cookie.split(';'); 19 | for (let i = 0; i < cookies.length; i++) { 20 | const cookie = cookies[i].trim(); 21 | if (cookie.startsWith(name + '=')) { 22 | return cookie.substring(name.length + 1); 23 | } 24 | } 25 | return undefined; 26 | } 27 | const handleViewMoreClick = () => { 28 | setCount(count + 18); 29 | if (count >= 40) { 30 | 31 | } 32 | }; 33 | const removeBookmark = (animeId) => { 34 | const newArray = bookmark.filter(item => item != animeId); 35 | const newAnimeData = animeData.filter(data => data.id != animeId); 36 | setAnimeData(newAnimeData); 37 | setBookmark(newArray); 38 | } 39 | 40 | useEffect(() => { 41 | const id = getCookie("id"); 42 | setUserId(id); 43 | }); 44 | 45 | useEffect(() => { 46 | window.scrollTo(0, 0); 47 | getBookmarks(); 48 | }, [userId]); 49 | 50 | 51 | const getBookmarks = async () => { 52 | try { 53 | if (userId) { 54 | axios.interceptors.response.use(response => { 55 | return response; 56 | }, error => { 57 | showErrorToast(error.response.data.error); 58 | return; 59 | }); 60 | const res = await axios.get(`${ServerApi}/user/bookmark/${userId}`); 61 | const bookmark = res.data; 62 | setBookmark(bookmark); 63 | 64 | const animeDataArray = await Promise.all(bookmark.map(async (bookmarkItem) => { 65 | const animeRes = await axios.get(`https://animetrix-api.vercel.app/meta/anilist/info/${bookmarkItem}`); 66 | return animeRes.data; 67 | })); 68 | 69 | setAnimeData(animeDataArray); 70 | setLoading(false); 71 | } 72 | } catch (err) { 73 | console.log(err); 74 | showErrorToast('Error loading Bookmark!'); 75 | } 76 | } 77 | return ( 78 | <> 79 | 80 | {loading ? ( 81 | <> 82 |
83 |
84 | {/*

Hi, {user}

*/} 85 |

Bookmarks

86 |
87 |
88 |
    89 | 90 |
  • Profile
  • 91 | 92 |
  • History
  • 93 |
  • Bookmark
  • 94 |
95 |
96 |
97 | 98 | 99 | ) 100 | : (<> 101 |
102 |
103 | {/*

Hi, {user}

*/} 104 |

Bookmarks

105 |
106 |
107 |
    108 | 109 |
  • Profile
  • 110 | 111 |
  • History
  • 112 |
  • Bookmark
  • 113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 | {/*

Bookmarks

*/} 121 | {bookmark.length == 0 ?

No bookmark

: ""} 122 |
123 | {animeData?.slice(0, count).reverse().map((animeDataHis, index) => { 124 | return ( 125 | 126 | ) 127 | })} 128 |
129 | {bookmark.length > 18 ?
130 | 131 |
: null} 132 |
133 |
134 |
135 | 136 |
137 | )} 138 | 139 | ) 140 | } 141 | 142 | export default Bookmark -------------------------------------------------------------------------------- /src/Components/Card.jsx: -------------------------------------------------------------------------------- 1 | import React, { useEffect, useState } from "react"; 2 | import { Link } from "react-router-dom"; 3 | import { ToastContainer } from 'react-toastify'; 4 | import axios from "axios"; 5 | // import { ToastContainer, toast } from 'react-toastify'; 6 | import 'react-toastify/dist/ReactToastify.css'; 7 | import { ServerApi } from "./constants"; 8 | import { LazyLoadImage } from "react-lazy-load-image-component"; 9 | import { showErrorToast } from "../utils/toast"; 10 | export default function Card(props) { 11 | const [isBookmark, setIsBookmark] = useState(false); 12 | const [isLoading, setIsLoading] = useState(false); 13 | const [userId, setUserId] = useState(""); 14 | const goToBtn = () => { 15 | window.scrollTo({ top:0, left: 0, behavior: "smooth" }) 16 | } 17 | function getCookie(name) { 18 | const cookies = document.cookie.split(';'); 19 | for (let i = 0; i < cookies.length; i++) { 20 | const cookie = cookies[i].trim(); 21 | if (cookie.startsWith(name + '=')) { 22 | return cookie.substring(name.length + 1); 23 | } 24 | } 25 | return undefined; 26 | } 27 | 28 | const [bookmark, setBookmark] = useState([]); 29 | 30 | 31 | 32 | useEffect(() => { 33 | const id = getCookie("id"); 34 | setUserId(id); 35 | }); 36 | 37 | useEffect(() => { 38 | getBookmarks(); 39 | }, [userId]); 40 | 41 | 42 | const getBookmarks = async () => { 43 | try { 44 | if (userId) { 45 | axios.interceptors.response.use(response => { 46 | return response; 47 | }, error => { 48 | showErrorToast(error.response.data.error); 49 | return; 50 | }); 51 | const res = await axios.get(`${ServerApi}/user/bookmark/${userId}`) 52 | const bookmark = res.data; 53 | setBookmark(bookmark); 54 | bookmark.includes(props.rec.id) ? setIsBookmark(true) : setIsBookmark(false); 55 | } 56 | } catch (err) { 57 | console.log(err); 58 | } 59 | } 60 | 61 | const toggleBookmark = async () => { 62 | try { 63 | setIsLoading(true); 64 | if (props.removeBookmark) 65 | props.removeBookmark(props.rec.id); 66 | if (userId) { 67 | const response = await axios.post( 68 | `${ServerApi}/user/bookmark`, 69 | { 70 | _id: userId, 71 | animeId: props.rec.id, 72 | } 73 | ); 74 | setIsBookmark(!isBookmark); 75 | setIsLoading(false); 76 | } else { 77 | showErrorToast('Login first!'); 78 | } 79 | } catch (error) { 80 | setIsLoading(false); 81 | showErrorToast('Something went wrong'); 82 | } 83 | }; 84 | 85 | return ( 86 | 87 | <> 88 |
90 | 91 |
92 | 93 |
94 | 95 |
96 | { props.handelClick(); goToBtn(); }}> 97 | 102 | 103 |
104 |
105 | {(props.rec.type)} 106 | {(props.rec.rating / 10)} 107 |
108 | {props?.rec?.title?.english && props?.rec?.title?.english ? ( 109 |
{props?.rec?.title?.english }
110 | ) : ( 111 |

{props?.rec?.title?.romaji}

112 | )} 113 |
114 |
115 |
116 | 117 | ); 118 | } -------------------------------------------------------------------------------- /src/Components/ChatBody.jsx: -------------------------------------------------------------------------------- 1 | 2 | import React, { useRef, useState } from "react"; 3 | import autoAnimate from "@formkit/auto-animate"; 4 | import { useEffect } from "react"; 5 | import { CopyToClipboard } from 'react-copy-to-clipboard'; 6 | 7 | const ChatBody = ({ chat }) => { 8 | const [copy, setCopy] = useState(false) 9 | const aiStyle = 10 | "ai-style"; 11 | 12 | const parent = useRef(null); 13 | const bottomRef = useRef(null); 14 | 15 | 16 | useEffect(() => { 17 | parent.current && autoAnimate(parent.current); 18 | }, [parent]) 19 | 20 | 21 | useEffect(() => { 22 | bottomRef.current?.scrollIntoView({ behavior: "smooth" }) 23 | window.scrollTo(0, 0); 24 | }, [chat]) 25 | 26 | useEffect(() => { 27 | let copiedTimeout; 28 | 29 | if (copy) { 30 | copiedTimeout = setTimeout(() => { 31 | setCopy(false); 32 | }, 3500); 33 | } 34 | 35 | return () => { 36 | if (copiedTimeout) { 37 | clearTimeout(copiedTimeout); 38 | } 39 | }; 40 | }, [copy]); 41 | 42 | return ( 43 |
44 | {chat.map((message, i) => { 45 | return ( 46 |
51 | 52 | {message.message} 53 | 54 |
55 | {message.sender === "ai" && ( 56 |
57 | {copy ? ( 58 | 61 | ) : ( 62 | setCopy(true)}> 63 | 66 | 67 | )} 68 |
69 | )} 70 |
71 | ); 72 | })} 73 | 74 |
75 |
76 | ); 77 | }; 78 | 79 | export default ChatBody; -------------------------------------------------------------------------------- /src/Components/ChatBotapi.js: -------------------------------------------------------------------------------- 1 | 2 | export const fetchResponse = async(chat) => { 3 | try { 4 | const response = await fetch('https://chatbot-6hzt.onrender.com/', { 5 | method: 'POST', 6 | headers: { 7 | "Content-Type": "application/json" 8 | }, 9 | body: JSON.stringify({ 10 | message: chat.map((message)=> message.message).join(" \n ") 11 | }) 12 | }) 13 | 14 | const data = await response.json() 15 | return data 16 | } catch (error) { 17 | console.log(error); 18 | } 19 | } -------------------------------------------------------------------------------- /src/Components/ChatInput.jsx: -------------------------------------------------------------------------------- 1 | 2 | import React from "react"; 3 | import { useState } from "react"; 4 | import loader from '../img/loader.gif' 5 | import { AiOutlineSend } from "react-icons/ai" 6 | const ChatInput = ({ sendMessage, loading }) => { 7 | const [value, setValue] = useState("Hi, Can you help me?"); 8 | 9 | const handleSubmit = () => { 10 | if (value === "") return; 11 | sendMessage({ sender: "user", message: value }); 12 | setValue(""); 13 | }; 14 | return ( 15 |
18 | {loading ? ( 19 | loading 20 | ) : ( 21 | <> 22 |