Skip to content

Commit

Permalink
fix: deno error
Browse files Browse the repository at this point in the history
  • Loading branch information
ShivaBhattacharjee committed Jun 17, 2024
1 parent 3167864 commit 4a779c4
Show file tree
Hide file tree
Showing 50 changed files with 4 additions and 76 deletions.
2 changes: 1 addition & 1 deletion public/sw.js.map

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

2 changes: 0 additions & 2 deletions src/app/[userid]/loading.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from "react";

import SpinLoading from "@/components/loading/SpinLoading";

const loading = () => {
Expand Down
2 changes: 1 addition & 1 deletion src/app/[userid]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"use client";
import React from "react";

import { BadgeCheck, Quote, Share2 } from "lucide-react";
import { notFound } from "next/navigation";

Expand Down
2 changes: 0 additions & 2 deletions src/app/aniscan/loading.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from "react";

import SpinLoading from "@/components/loading/SpinLoading";

const loading = () => {
Expand Down
2 changes: 0 additions & 2 deletions src/app/bookmark/loading.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from "react";

import LoadingSkeleton from "@/components/loading/LoadingSkeleton";

const loading = () => {
Expand Down
2 changes: 0 additions & 2 deletions src/app/details/loading.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from "react";

import CharactersLoading from "@/components/loading/CharactersLoading";
import EpisodeLoading from "@/components/loading/EpisodeLoading";
import RecommendedLoading from "@/components/loading/RecommendedLoading";
Expand Down
2 changes: 0 additions & 2 deletions src/app/genres/[genreid]/loading.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from "react";

import LoadingSkeleton from "@/components/loading/LoadingSkeleton";

const loading = () => {
Expand Down
2 changes: 0 additions & 2 deletions src/app/genres/[genreid]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from "react";

import ServerError from "@/components/error/ServerError";
import VerticalCards from "@/components/shared/cards/VerticalCards";
import { getGenre } from "@/lib/AnimeFetch";
Expand Down
2 changes: 0 additions & 2 deletions src/app/genres/loading.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from "react";

import GenreLoading from "@/components/loading/GenreLoading";

const loading = () => {
Expand Down
1 change: 0 additions & 1 deletion src/app/genres/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import Link from "next/link";
const genres = [
{
Expand Down
2 changes: 0 additions & 2 deletions src/app/history/loading.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from "react";

import LoadingSkeleton from "@/components/loading/LoadingSkeleton";

const loading = () => {
Expand Down
1 change: 0 additions & 1 deletion src/app/loading.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { ChevronRight } from "lucide-react";
import Link from "next/link";

Expand Down
2 changes: 0 additions & 2 deletions src/app/movie/loading.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from "react";

import LoadingSkeleton from "@/components/loading/LoadingSkeleton";

const loading = () => {
Expand Down
2 changes: 0 additions & 2 deletions src/app/movie/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from "react";

import ServerError from "@/components/error/ServerError";
import VerticalCards from "@/components/shared/cards/VerticalCards";
import { getAnimeMovies } from "@/lib/AnimeFetch";
Expand Down
2 changes: 0 additions & 2 deletions src/app/popular/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from "react";

import ServerError from "@/components/error/ServerError";
import VerticalCards from "@/components/shared/cards/VerticalCards";
import { getPopularAnime } from "@/lib/AnimeFetch";
Expand Down
1 change: 0 additions & 1 deletion src/app/register/verify-email/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { MailOpen } from "lucide-react";

const page = () => {
Expand Down
2 changes: 0 additions & 2 deletions src/app/trending/loading.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from "react";

import LoadingSkeleton from "@/components/loading/LoadingSkeleton";

const loading = () => {
Expand Down
2 changes: 0 additions & 2 deletions src/app/trending/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from "react";

import ServerError from "@/components/error/ServerError";
import VerticalCards from "@/components/shared/cards/VerticalCards";
import { getTrendingAnime } from "@/lib/AnimeFetch";
Expand Down
2 changes: 0 additions & 2 deletions src/app/waifu/[waifuid]/[animename]/loading.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from "react";

import SpinLoading from "@/components/loading/SpinLoading";

const loading = () => {
Expand Down
2 changes: 0 additions & 2 deletions src/app/waifu/loading.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from "react";

import SpinLoading from "@/components/loading/SpinLoading";

const loading = () => {
Expand Down
1 change: 0 additions & 1 deletion src/app/waifu/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import Link from "next/link";
const waifus = [
{
Expand Down
1 change: 0 additions & 1 deletion src/app/watch/[streamid]/[animeid]/loading.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { Download, Flag, Share2 } from "lucide-react";

import CharactersLoading from "@/components/loading/CharactersLoading";
Expand Down
1 change: 0 additions & 1 deletion src/app/watch/loading.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { Download, Flag, Share2 } from "lucide-react";

import CharactersLoading from "@/components/loading/CharactersLoading";
Expand Down
1 change: 0 additions & 1 deletion src/components/Forbidden.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { Ghost, KeyRound, Lock } from "lucide-react";

const Forbidden = () => {
Expand Down
1 change: 0 additions & 1 deletion src/components/buttons/Share.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ declare global {
const globalThis: CustomGlobalThis;
}

import React from "react";
import { Share2 } from "lucide-react";

import Toast from "@/utils/toast";
Expand Down
1 change: 0 additions & 1 deletion src/components/error/Contentnotfound.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { Frown } from "lucide-react";

interface ContentNotFoundProps {
Expand Down
1 change: 0 additions & 1 deletion src/components/error/ServerError.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { ServerCrash } from "lucide-react";
const ServerError = () => {
return (
Expand Down
1 change: 0 additions & 1 deletion src/components/loading/AiringScheduleLoading.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"use client";
import React from "react";

import SpinLoading from "./SpinLoading";

Expand Down
2 changes: 0 additions & 2 deletions src/components/loading/CharactersLoading.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from "react";

const CharactersLoading = () => {
return (
<>
Expand Down
1 change: 0 additions & 1 deletion src/components/loading/EditProfileLoading.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { Camera, Check } from "lucide-react";

const EditProfileLoading = () => {
Expand Down
1 change: 0 additions & 1 deletion src/components/loading/EpisodeLoading.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { ArrowUpNarrowWide, RefreshCcw } from "lucide-react";

const EpisodeLoading = () => {
Expand Down
1 change: 0 additions & 1 deletion src/components/loading/GenreLoading.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
const genres = [
{
title: "Action",
Expand Down
1 change: 0 additions & 1 deletion src/components/loading/LoadingSkeleton.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
interface LoadingSkeletonProps {
title: string;
}
Expand Down
1 change: 0 additions & 1 deletion src/components/loading/ProfileLoading.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { LogOut } from "lucide-react";
import Link from "next/link";

Expand Down
2 changes: 0 additions & 2 deletions src/components/loading/RandomAnimeLoading.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from "react";

const RandomAnimeLoading = () => {
return (
<div className="flex flex-col mt-9">
Expand Down
2 changes: 0 additions & 2 deletions src/components/loading/RecommendedLoading.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from "react";

import CardSkeleton from "./CardSkeleton";

const RecommendedLoading = () => {
Expand Down
2 changes: 0 additions & 2 deletions src/components/loading/RelationLoading.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from "react";

const RelationLoading = () => {
return (
<section className=" sticky bottom-0 top-0">
Expand Down
3 changes: 0 additions & 3 deletions src/components/loading/SpinLoading.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
"use client";
import React from "react";

const SpinLoading = () => {
return (
<div role="status">
Expand Down
2 changes: 0 additions & 2 deletions src/components/loading/UpcomingSeasonLoading.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from "react";

import SpinLoading from "./SpinLoading";

export const UpcomingSeasonLoading = () => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/shared/AvatarModal.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"use client";
import React from "react";

import { ArrowLeft, UserRoundCog } from "lucide-react";

import { ProfiePicture } from "@/utils/ProfilePicture";
Expand Down
1 change: 0 additions & 1 deletion src/components/shared/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"use client";

import React from "react";
import { Github, Instagram } from "lucide-react";
import { usePathname } from "next/navigation";

Expand Down
2 changes: 0 additions & 2 deletions src/components/shared/RecommendedAnime.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from "react";

import ContentNotFound from "../error/Contentnotfound";

import Cards from "./cards/Cards";
Expand Down
2 changes: 0 additions & 2 deletions src/components/shared/SearchResults.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from "react";

import SearchCards from "./cards/SearchCards";

import { getSearchResults } from "@/lib/AnimeFetch";
Expand Down
1 change: 0 additions & 1 deletion src/components/shared/cards/RandomAnimeCard.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import Link from "next/link";

import ReloadFunc from "../../error/ReloadFunc";
Expand Down
1 change: 0 additions & 1 deletion src/components/shared/cards/RelationCard.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import Link from "next/link";

import { getAnimeDetails } from "@/lib/AnimeFetch";
Expand Down
1 change: 0 additions & 1 deletion src/components/shared/cards/SearchCards.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"use client";

import React from "react";
import { ArrowRight } from "lucide-react";
import Link from "next/link";

Expand Down
2 changes: 0 additions & 2 deletions src/components/shared/cards/characterCard.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from "react";

import ContentNotFound from "@/components/error/Contentnotfound";
import Anime from "@/types/animetypes";

Expand Down
1 change: 0 additions & 1 deletion src/components/shared/navigation/TopNavbar.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import Link from "next/link";

import SearchModal from "../SearchModal";
Expand Down
2 changes: 0 additions & 2 deletions src/components/shared/upcomingSeason/UpcomingSeason.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from "react";

import UpcomingSeasonCard from "./UpcomingSeasonCard";

import { getCurrentYear, getUpcomingData } from "@/lib/AnimeFetch";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"use client";
import React from "react";

import Link from "next/link";

import ReloadFunc from "../../error/ReloadFunc";
Expand Down

0 comments on commit 4a779c4

Please sign in to comment.