Skip to content
This repository was archived by the owner on Aug 4, 2023. It is now read-only.

Commit ca43f54

Browse files
Add files via upload
1 parent ef23bc2 commit ca43f54

File tree

10 files changed

+33
-35
lines changed

10 files changed

+33
-35
lines changed

public/favicon.png

27.1 KB
Loading

src/App.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,8 @@ nav {
220220

221221
.navbar-nav {
222222
display: flex;
223+
position: relative;
224+
left: 50px;
223225
}
224226

225227
.navbar-nav li:not(:last-child) {
@@ -228,7 +230,7 @@ nav {
228230

229231
.navbar-brand {
230232
position: relative;
231-
right: 60px;
233+
right: 2 0px;
232234
font-size: 30px;
233235
font-weight: 600;
234236
}
@@ -240,6 +242,7 @@ nav {
240242
.navbar-nav li a {
241243
font-size: 16px;
242244
font-weight: 500;
245+
position: relative;
243246
}
244247

245248
.navbar-nav li a:hover {

src/App.js

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function App() {
4242
try {
4343
setLoading(true);
4444
const Data = await axios.get(
45-
`https://gogoanime.consumet.org/recent-release?page=${id}`
45+
`https://gogoanime.consumet.stream/recent-release?page=${id}`
4646
);
4747
setRecent((recent) => [...recent, ...Data.data]);
4848
setLoading(false);
@@ -55,7 +55,7 @@ function App() {
5555
try {
5656
setLoading(true);
5757
const propu = await axios.get(
58-
`https://gogoanime.consumet.org/popular?page=${id}`
58+
`https://gogoanime.consumet.stream/popular?page=${id}`
5959
);
6060
setPopular((popular) => [...popular, ...propu.data]);
6161
setLoading(false);
@@ -68,7 +68,7 @@ function App() {
6868
try {
6969
setLoading(true);
7070
const Data = await axios.get(
71-
`https://gogoanime.consumet.org/recent-release?type=2&page=${id}`
71+
`https://gogoanime.consumet.stream/recent-release?type=2&page=${id}`
7272
);
7373
setDub((dub) => [...dub, ...Data.data]);
7474
setLoading(false);
@@ -81,7 +81,7 @@ function App() {
8181
try {
8282
setLoading(true);
8383
const Data = await axios.get(
84-
`https://gogoanime.consumet.org/anime-movies?page=${id}`
84+
`https://gogoanime.consumet.stream/anime-movies?page=${id}`
8585
);
8686
setMovie((movie) => [...movie, ...Data.data]);
8787
setLoading(false);
@@ -93,7 +93,7 @@ function App() {
9393
const getTopAiring = async (id = 1) => {
9494
try {
9595
setLoading(true);
96-
const Data = await axios.get(`https://gogoanime.consumet.org/top-airing?page=${id}`
96+
const Data = await axios.get(`https://gogoanime.consumet.stream/top-airing?page=${id}`
9797
);
9898
setTop((topAiring) => [...topAiring, ...Data.data]);
9999
setLoading(false);
@@ -117,7 +117,7 @@ function App() {
117117
// Search Bar function
118118
const handelChanges = async (val) => {
119119
const searchRes = await axios
120-
.get(`https://gogoanime.consumet.org/search?keyw=${val}`)
120+
.get(`https://gogoanime.consumet.stream/search?keyw=${val}`)
121121
.catch((err) => "search Error");
122122
if (val === "") {
123123
setSearchResult(null);
@@ -240,30 +240,29 @@ function App() {
240240
path="/genre"
241241
element={
242242
<OptionFetcher
243-
loading={loading}
244243
/>
245244
}
246245
/>
247246
<Route
248-
exact
249-
path="/watch/:episodeId"
250-
element={
251-
<StreamTest
252-
loading={loading}/>
253-
}
247+
exact
248+
path="/watch/:episodes"
249+
element={
250+
<StreamTest
251+
loading={loading} />
252+
}
254253
/>
255254
<Route
256255

257256
exact
258-
path="/anime-detail/:animeId"
257+
path="/anime-details/:animeId"
259258
element={<Details handelClick={handelClick} />}
260259
/>
261260
<Route
262261
exact
263262
path="/vidcdn/watch/:episodeId"
264263
element={<Stream />}
265264
/>
266-
<Route path="/*" element={<Error404/>}/>
265+
<Route path="/*" element={<Error404 />} />
267266
</Routes>
268267
</Router>
269268
);

src/Components/Card.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default function Card(props) {
66
<>
77
<div
88
className="movie-card" onClick={() => props.handelClick()}>
9-
<Link to={`/anime-detail/${props.rec.animeId}`}>
9+
<Link to={`/anime-details/${props.rec.animeId}`}>
1010
<div className="card-head">
1111
<img
1212
src={props.rec.animeImg}

src/Components/SearchJSX.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@ export default function SearchJSX(props) {
1010
{Object.keys(props.searchResult).length === 0 ? (
1111
<div align="center">
1212
<br /><br /><br /><br /> <br /><br />
13-
<h4 className="no-results"
14-
>
15-
No Results found
16-
</h4>
13+
<h4 className="no-results">No Results found</h4>
1714
</div>
1815
) : (
1916
<div align="center">

src/Components/slider.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { Autoplay, Pagination, Navigation } from "swiper";
1717
export default function Slider() {
1818
const [sliderinfo, setSlider] = useState([]);
1919
const getSlider = async () => {
20-
const api = await fetch("https://gogoanime.consumet.org/top-airing?page=1");
20+
const api = await fetch("https://gogoanime.consumet.stream/top-airing?page=1");
2121
setSlider(await api.json());
2222
}
2323
useEffect(() => {
@@ -30,7 +30,7 @@ export default function Slider() {
3030
spaceBetween={30}
3131
centeredSlides={true}
3232
autoplay={{
33-
delay: 3000,
33+
delay: 3500,
3434
disableOnInteraction: false,
3535
}}
3636
pagination={{
@@ -46,7 +46,7 @@ export default function Slider() {
4646
<SwiperSlide key={swipe}>
4747
<img src={data.animeImg} alt={data.animeId} className="blur" />
4848
<div className="banner-text">
49-
<Link to={`/anime-detail/${data.animeId}`}>
49+
<Link to={`/anime-details/${data.animeId}`}>
5050
<h4>{data.animeTitle}</h4>
5151

5252
<button className="watch">Watch Now</button>

src/Pages/Details.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React, { useEffect, useState } from "react";
22
import { Link, useParams } from "react-router-dom";
3-
import { Helmet } from "react-helmet";
43
import axios from "axios";
54
import LoadingBar from 'react-top-loading-bar';
65
import Footer from "../Components/footer";
@@ -12,7 +11,7 @@ export default function Details(props) {
1211
useEffect(() => {
1312
const getDetail = async () => {
1413
const Detail = await axios
15-
.get(`https://gogoanime.consumet.org/anime-details/${animeId}`)
14+
.get(`https://gogoanime.consumet.stream/anime-details/${animeId}`)
1615
.catch((err) => console.log("Connection Error"));
1716
setDetail(Detail.data);
1817
let n = Detail.data.episodesList.length;
@@ -47,7 +46,7 @@ export default function Details(props) {
4746
</p>
4847
<div className="stream">
4948
<Link
50-
to={`/watch/${watch}`}
49+
to={`/vidcdn/watch/${watch}`}
5150
state={{ animeID: `${animeId}` }}
5251
onClick={() => {
5352
props.handelClick();

src/Pages/Stream.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default function Stream(props) {
1717
const getVideo = async () => {
1818
try {
1919
const Video = await axios.get(
20-
`https://gogoanime.consumet.org/vidcdn/watch/${episodeId}`
20+
`https://gogoanime.consumet.stream/vidcdn/watch/${episodeId}`
2121
);
2222
setData(Video.data.Referer);
2323
} catch (err) {
@@ -27,7 +27,7 @@ export default function Stream(props) {
2727
};
2828
const getDetail = async () => {
2929
const Detail = await axios
30-
.get(`https://gogoanime.consumet.org/anime-details/${animeId}`)
30+
.get(`https://gogoanime.consumet.stream/anime-details/${animeId}`)
3131
.catch((err) => console.log("Connection Error"));
3232
const temp = episodeId;
3333
const ep = Detail.data.episodesList.find(
@@ -67,7 +67,7 @@ export default function Stream(props) {
6767
charSet="utf-8"
6868
/>
6969
<title>{`Watching ${detail.animeTitle} on AnimeTrix`}</title>
70-
<link rel="canonical" href={`//vidcdn/watch/${episodeId}`} />
70+
<link rel="canonical" href={`/vidcdn/watch/${episodeId}`} />
7171
</Helmet>
7272
{Object.keys(data).length !== 0 ? (
7373
<>

src/Pages/genre.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function OptionFetcher() {
2727
try {
2828
setIsLoading(true);
2929
const response = await fetch(
30-
`https://gogoanime.consumet.org/genre/${selectedOption}?page=${page}`
30+
`https://gogoanime.consumet.stream/genre/${selectedOption}?page=${page}`
3131
);
3232
const responseData = await response.json();
3333
// Update the data state with the data from the API
@@ -50,7 +50,7 @@ function OptionFetcher() {
5050
// Increment the page number by 1
5151
setPage(page + 1);
5252
const response = await fetch(
53-
`https://gogoanime.consumet.org/genre/${selectedOption}?page=${page}`
53+
``
5454
);
5555
const responseData = await response.json();
5656
// Concatenate the new data with the existing data

src/Pages/streamtest.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@ export default function Stream(props) {
1818
const getVideo = async () => {
1919
try {
2020
const Video = await axios.get(
21-
`https://api.consumet.org/meta/anilist/watch/${episodeId}`
21+
`https://api.consumet.org/meta/anilist/watch/tomodachi-game-episode-1`
2222
);
23-
setData(Video.data.sources[0].url);
23+
setData(Video.Referer);
2424
} catch (err) {
2525
console.log("Connection Error");
2626
}
2727

2828
};
2929
const getDetail = async () => {
3030
const Detail = await axios
31-
.get(`https://gogoanime.consumet.org/anime-details/${animeId}`)
31+
.get(``)
3232
.catch((err) => console.log("Connection Error"));
3333
const temp = episodeId;
3434
const ep = Detail.data.episodesList.find(

0 commit comments

Comments
 (0)