repo
stringlengths
7
64
file_url
stringlengths
81
338
file_path
stringlengths
5
257
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:25:31
2026-01-05 01:50:38
truncated
bool
2 classes
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/services/MovieService/MovieService.ts
src/services/MovieService/MovieService.ts
import { getNameFromShow, getSlug } from '@/lib/utils'; import type { CategorizedShows, ISeason, KeyWordResponse, MediaType, Show, ShowWithGenreAndVideo, } from '@/types'; import { type AxiosResponse } from 'axios'; import BaseService from '../BaseService/BaseService'; import { RequestType, type ShowReq...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/services/MovieService/tmdbService.ts
src/services/MovieService/tmdbService.ts
import { type Genre } from '@/enums/genre'; import { type TmdbPagingResponse } from '@/enums/request-type'; import tmdbClient from '@/lib/apiClient'; import { type MediaType } from '@/types'; export async function getTrendingMovies(mediaType: MediaType, page: number) { const { data } = await tmdbClient.get<TmdbPagin...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/services/MovieService/index.ts
src/services/MovieService/index.ts
export { default } from './MovieService';
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/services/BaseService/BaseService.ts
src/services/BaseService/BaseService.ts
import axios, { type AxiosRequestConfig, type AxiosError, type AxiosInstance, type InternalAxiosRequestConfig, } from 'axios'; import { env } from '@/env.mjs'; /** * @class BaseService */ class BaseService { constructor() { if (this.constructor === BaseService) { throw new Error("Classes can't be...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/services/BaseService/index.ts
src/services/BaseService/index.ts
export { default } from './BaseService';
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/app/layout.tsx
src/app/layout.tsx
import { TailwindIndicator } from '@/components/tailwind-indicator'; import { ThemeProvider } from '@/components/theme-provider'; import { cn } from '@/lib/utils'; import '@/styles/globals.css'; // import { TrpcProvider } from '@/client/trpc-provider'; import type { Metadata, Viewport } from 'next'; import { Inter as F...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/app/(front)/layout.tsx
src/app/(front)/layout.tsx
import SiteFooter from '@/components/main/site-footer'; import SiteHeader from '@/components/main/site-header'; const FrontLayout = ({ children }: { children: React.ReactNode }) => { return ( <div className="min-h-screen"> <SiteHeader /> <main>{children}</main> <SiteFooter /> </div> ); };...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/app/(front)/page.tsx
src/app/(front)/page.tsx
import { Icons } from "@/components/icons"; import { Badge } from "@/components/ui/badge"; import { buttonVariants } from "@/components/ui/button"; import { siteConfig } from "@/configs/site"; import { ArrowRight } from "lucide-react"; import Link from "next/link"; export default function Index() { return ( <> ...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/app/(front)/tv-shows/page.tsx
src/app/(front)/tv-shows/page.tsx
import Hero from '@/components/hero'; import ShowsContainer from '@/components/shows-container'; import { siteConfig } from '@/configs/site'; import { Genre } from '@/enums/genre'; import { RequestType, type ShowRequest } from '@/enums/request-type'; import { getRandomShow } from '@/lib/utils'; import MovieService from...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/app/(front)/tv-shows/[slug]/page.tsx
src/app/(front)/tv-shows/[slug]/page.tsx
import { type Metadata } from 'next'; import { handleMetadata } from '@/lib/utils'; import TvShowPage from '../page'; type Props = { params: { slug: string }; searchParams: Record<string, string | string[] | undefined>; }; export const revalidate = 3600; export async function generateMetadata({ params }: Props):...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/app/(front)/new-and-popular/page.tsx
src/app/(front)/new-and-popular/page.tsx
import Hero from '@/components/hero'; import ShowsContainer from '@/components/shows-container'; import { siteConfig } from '@/configs/site'; import { RequestType, type ShowRequest } from '@/enums/request-type'; import { getRandomShow } from '@/lib/utils'; import MovieService from '@/services/MovieService'; import { Me...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/app/(front)/home/page.tsx
src/app/(front)/home/page.tsx
import Hero from '@/components/hero'; import ShowsContainer from '@/components/shows-container'; import { MediaType, type Show } from '@/types'; import { siteConfig } from '@/configs/site'; import { RequestType, type ShowRequest } from '@/enums/request-type'; import MovieService from '@/services/MovieService'; import {...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/app/(front)/anime/page.tsx
src/app/(front)/anime/page.tsx
import Hero from '@/components/hero'; import ShowsContainer from '@/components/shows-container'; import { siteConfig } from '@/configs/site'; import { Genre } from '@/enums/genre'; import { RequestType, type ShowRequest } from '@/enums/request-type'; import { getRandomShow } from '@/lib/utils'; import MovieService from...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/app/(front)/movies/page.tsx
src/app/(front)/movies/page.tsx
import Hero from '@/components/hero'; import ShowsContainer from '@/components/shows-container'; import { siteConfig } from '@/configs/site'; import { Genre } from '@/enums/genre'; import { RequestType, type ShowRequest } from '@/enums/request-type'; import { getRandomShow } from '@/lib/utils'; import MovieService from...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/app/(front)/movies/[slug]/page.tsx
src/app/(front)/movies/[slug]/page.tsx
import { type Metadata } from 'next'; import { handleMetadata } from '@/lib/utils'; import MoviePage from '../page'; type Props = { params: { slug: string }; searchParams: Record<string, string | string[] | undefined>; }; export const revalidate = 3600; export async function generateMetadata({ params }: Props): ...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/app/(front)/search/page.tsx
src/app/(front)/search/page.tsx
import SearchContainer from '@/components/search-container'; import MovieService from '@/services/MovieService'; import { redirect } from 'next/navigation'; interface SearchProps { searchParams: { q?: string; }; } export const revalidate = 3600; export default async function SearchPage({ searchParams }: Sear...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/app/sitemap/[id]/route.ts
src/app/sitemap/[id]/route.ts
import { env } from '@/env.mjs'; import { buildMovieUrl } from '@/lib/utils'; import { getTrendingAll } from '@/services/MovieService/tmdbService'; export async function GET(request: Request, ctx: { params: { id: string } }) { if (!ctx.params.id) return new Response('Not found', { status: 404 }); const id = parseI...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/app/api/trpc/[trpc]/route.ts
src/app/api/trpc/[trpc]/route.ts
import { fetchRequestHandler } from "@trpc/server/adapters/fetch"; import { appRouter } from "@/server/index"; const handler = (req: Request) => fetchRequestHandler({ endpoint: "/api/trpc", req, router: appRouter, createContext: () => ({}), }); export { handler as GET, handler as POST };
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/app/watch/movie/[slug]/page.tsx
src/app/watch/movie/[slug]/page.tsx
import React from 'react'; import EmbedPlayer from '@/components/watch/embed-player'; export const revalidate = 3600; export default function Page({ params }: { params: { slug: string } }) { const id = params.slug.split('-').pop(); return <EmbedPlayer url={`https://vidsrc.cc/v2/embed/movie/${id}`} />; }
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/app/watch/anime/[slug]/page.tsx
src/app/watch/anime/[slug]/page.tsx
import React from 'react'; import EmbedPlayer from '@/components/watch/embed-player'; import { MediaType } from '@/types'; export const revalidate = 3600; export default function Page({ params }: { params: { slug: string } }) { const id = params.slug.split('-').pop(); const movieId: string | undefined = params.sl...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/app/watch/tv/[slug]/page.tsx
src/app/watch/tv/[slug]/page.tsx
import React from 'react'; import EmbedPlayer from '@/components/watch/embed-player'; export const revalidate = 3600; export default function Page({ params }: { params: { slug: string } }) { const id = params.slug.split('-').pop(); return <EmbedPlayer url={`https://vidsrc.cc/v2/embed/tv/${id}`} />; }
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/app/sitemap.xml/route.ts
src/app/sitemap.xml/route.ts
import { env } from '@/env.mjs'; export function GET() { const sitemapIndices: string[] = []; // tmdb has a limit of 500 pages for (let i = 0; i < 501; i++) { sitemapIndices.push( ` <sitemap> <loc>${env.NEXT_PUBLIC_APP_URL}/sitemap/${i}.xml</loc> <...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/hooks/use-lock-body.ts
src/hooks/use-lock-body.ts
import * as React from "react"; // @see https://usehooks.com/useLockBodyScroll. export function useLockBody() { React.useLayoutEffect((): (() => void) => { const originalStyle: string = window.getComputedStyle( document.body, ).overflow; document.body.style.overflow = "hidden"; return () => (do...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/hooks/use-mounted.ts
src/hooks/use-mounted.ts
import * as React from "react"; export function useMounted() { const [mounted, setMounted] = React.useState(false); React.useEffect(() => { setMounted(true); return () => setMounted(false); }, []); return mounted; }
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/hooks/use-on-click-outside.ts
src/hooks/use-on-click-outside.ts
import * as React from "react"; export function useOnClickOutside<T extends HTMLElement = HTMLElement>( ref: React.RefObject<T>, handler: (event: Event) => void, ) { React.useEffect(() => { const listener = (e: Event) => { // Do nothing if clicking ref's element or descendent elements if (!ref.cu...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/components/max-width-wrapper.tsx
src/components/max-width-wrapper.tsx
import React from "react"; import { cn } from "@/lib/utils"; export default function MaxWidthWrapper({ className, children, }: { className?: string; children: React.ReactNode; }) { return ( <div className={cn( "mx-auto w-full max-w-screen-xl px-2.5 md:px-20", className, )} ...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/components/search-container.tsx
src/components/search-container.tsx
'use client'; import React from 'react'; import type { Show } from '@/types'; import ShowsGrid from '@/components/shows-grid'; import { useSearchStore } from '@/stores/search'; import { handleDefaultSearchBtn, handleDefaultSearchInp } from '@/lib/utils'; interface SearchContainer { query: string; shows: Show[]; }...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/components/shows-grid.tsx
src/components/shows-grid.tsx
'use client'; import { useModalStore } from '@/stores/modal'; import type { Show } from '@/types'; import ShowModal from './shows-modal'; import { ShowCard } from './shows-carousel'; import { usePathname } from 'next/navigation'; import { useSearchStore } from '@/stores/search'; import ShowsSkeleton from './shows-skel...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/components/analytics.tsx
src/components/analytics.tsx
"use client"; import { Analytics as VercelAnalytics } from "@vercel/analytics/react"; export function Analytics() { return <VercelAnalytics />; }
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/components/tmdb-image.tsx
src/components/tmdb-image.tsx
// import { unstable_getImgProps as getImgProps } from "next/image"; // import React from "react"; // export default function Picture() { // const common = { alt: "Hero" }; // const { // props: { ...rest }, // } = getImgProps({ // ...common, // width: 600, // height: 587, // src: "https://ass...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/components/season.tsx
src/components/season.tsx
'use client'; import React from 'react'; import { type IEpisode, type ISeason } from '@/types'; import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger, } from './ui/dropdown-menu'; interface SeasonProps { seasons: ISeason[]; onChangeEpisode: (episode: IEpisode) => void; } export...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/components/tailwind-indicator.tsx
src/components/tailwind-indicator.tsx
export function TailwindIndicator() { if (process.env.NODE_ENV === "production") return null; return ( <div className="fixed bottom-1 right-1 z-50 flex h-6 w-6 items-center justify-center rounded-full bg-gray-800 p-3 font-mono text-xs text-white"> <div className="block sm:hidden">xs</div> <div clas...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/components/shows-skeleton.tsx
src/components/shows-skeleton.tsx
import { motion } from 'framer-motion'; import { Skeleton } from '@/components/ui/skeleton'; import { itemFade, itemsReveal } from '@/lib/constants'; import { cn } from '@/lib/utils'; import { useSearchStore } from '@/stores/search'; import CustomImage from './custom-image'; interface ShowsSkeletonProps { count?: n...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/components/shows-carousel.tsx
src/components/shows-carousel.tsx
'use client'; import { useModalStore } from '@/stores/modal'; import { MediaType, type Show } from '@/types'; import * as React from 'react'; import { Icons } from '@/components/icons'; import { Button } from '@/components/ui/button'; import { cn, getNameFromShow, getSlug } from '@/lib/utils'; import { usePathname } ...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/components/hero.tsx
src/components/hero.tsx
'use client'; import { Icons } from '@/components/icons'; import { Button } from '@/components/ui/button'; import { getIdFromSlug, getNameFromShow, getSlug } from '@/lib/utils'; import MovieService from '@/services/MovieService'; import { useModalStore } from '@/stores/modal'; import { useSearchStore } from '@/stores/s...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/components/debounced-input.tsx
src/components/debounced-input.tsx
import * as React from 'react'; import { cn, debounce } from '@/lib/utils'; import { Icons } from '@/components/icons'; import { Button } from '@/components/ui/button'; import { Input, type InputProps } from '@/components/ui/input'; import { useOnClickOutside } from '@/hooks/use-on-click-outside'; interface DebouncedI...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/components/shows-modal.tsx
src/components/shows-modal.tsx
'use client'; import { Icons } from '@/components/icons'; import { Button } from '@/components/ui/button'; import { Dialog, DialogContent, DialogDescription, DialogTitle, } from '@/components/ui/dialog'; import { getMobileDetect, getYear } from '@/lib/utils'; import MovieService from '@/services/MovieService';...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/components/icons.tsx
src/components/icons.tsx
import { ImageIcon, Instagram, type LucideProps, UserCircle, X, Youtube, Search, Info, ChevronRight, ChevronLeft, PlayIcon, Pause, VolumeX, Volume2, } from "lucide-react"; type IconProps = LucideProps; export const Icons = { chevronLeft: ChevronLeft, chevronRight: ChevronRight, info:...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/components/shows-container.tsx
src/components/shows-container.tsx
'use client'; import { usePathname } from 'next/navigation'; // import { useMounted } from '@/hooks/use-mounted'; // import { useModalStore } from "@/stores/modal" // import { useProfileStore } from "@/stores/profile" import { useSearchStore } from '@/stores/search'; import type { CategorizedShows } from '@/types'; /...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/components/search-input.tsx
src/components/search-input.tsx
import { Search } from "lucide-react"; import React from "react"; import { Input } from "@/components/ui/input"; export default function SearchInput() { return ( <div className="relative w-full"> <Search className="absolute left-3 top-3 h-4 w-4 text-slate-600" /> <Input className="rounded-full pl-9" ...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/components/theme-provider.tsx
src/components/theme-provider.tsx
"use client"; import * as React from "react"; import { ThemeProvider as NextThemesProvider } from "next-themes"; import { type ThemeProviderProps } from "next-themes/dist/types"; export function ThemeProvider({ children, ...props }: ThemeProviderProps) { return <NextThemesProvider {...props}>{children}</NextThemesP...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/components/dynamic-tooltip.tsx
src/components/dynamic-tooltip.tsx
import type { PropsWithChildren } from "react"; import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, } from "@/components/ui/tooltip"; interface DynamicTooltipProps extends PropsWithChildren { text: string; } const DynamicTooltip = ({ children, text }: DynamicTooltipProps) => { return ( ...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/components/custom-image.tsx
src/components/custom-image.tsx
import { type ImageProps, type ImageLoaderProps } from 'next/image'; import React, { forwardRef } from 'react'; import Image from 'next/image'; import { env } from '@/env.mjs'; const customLoader = ({ src, width, quality }: ImageLoaderProps) => { // local image if (src.startsWith('/')) { const params = [`w=${w...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/components/theme-toggle.tsx
src/components/theme-toggle.tsx
"use client"; import * as React from "react"; import { Moon, Sun } from "lucide-react"; import { useTheme } from "next-themes"; import { Button } from "@/components/ui/button"; import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger, } from "@/components/ui/dropdown-menu"; export fu...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/components/navigation/main-nav.tsx
src/components/navigation/main-nav.tsx
'use client'; import React from 'react'; import { type Show, type NavItem } from '@/types'; import Link from 'next/link'; import { cn, getSearchValue, handleDefaultSearchBtn, handleDefaultSearchInp, } from '@/lib/utils'; import { siteConfig } from '@/configs/site'; import { Icons } from '@/components/icons'; i...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/components/navigation/mobile-nav.tsx
src/components/navigation/mobile-nav.tsx
// "use client"; // // import * as React from "react"; // import Link from "next/link"; // import { useSelectedLayoutSegment } from "next/navigation"; // import type { MainNavItem, SidebarNavItem } from "@/types"; // // import { cn } from "@/lib/utils"; // import { // Accordion, // AccordionContent, // AccordionI...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/components/main/site-footer.tsx
src/components/main/site-footer.tsx
import React from "react"; import { siteConfig } from "@/configs/site"; import Link from "next/link"; import { buttonVariants } from "@/components/ui/button"; import { Icons } from "@/components/icons"; const SiteFooter = () => { return ( <footer aria-label="Footer" className="w-full"> <div className="cont...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/components/main/site-header.tsx
src/components/main/site-header.tsx
import { siteConfig } from "@/configs/site"; import React from "react"; import MainNav from "@/components/navigation/main-nav"; const SiteHeader = () => { return ( // <header className="sticky top-0 z-50 border-b bg-background"> <header className="sticky top-0 z-50"> <MainNav items={siteConfig.mainNav}...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/components/watch/embed-player.tsx
src/components/watch/embed-player.tsx
'use client'; import React from 'react'; import Loading from '../ui/loading'; import { useRouter } from 'next/navigation'; import { MediaType, type IEpisode, type ISeason, type Show } from '@/types'; import MovieService from '@/services/MovieService'; import { type AxiosResponse } from 'axios'; import Season from '../s...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/components/ui/navigation-menu.tsx
src/components/ui/navigation-menu.tsx
import * as React from "react"; import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu"; import { cva } from "class-variance-authority"; import { ChevronDown } from "lucide-react"; import { cn } from "@/lib/utils"; const NavigationMenu = React.forwardRef< React.ElementRef<typeof NavigationMenuPri...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/components/ui/dialog.tsx
src/components/ui/dialog.tsx
'use client'; import * as React from 'react'; import * as DialogPrimitive from '@radix-ui/react-dialog'; import { X } from 'lucide-react'; import { cn } from '@/lib/utils'; const Dialog = DialogPrimitive.Root; const DialogTrigger = DialogPrimitive.Trigger; const DialogPortal = DialogPrimitive.Portal; const Dialog...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/components/ui/button.tsx
src/components/ui/button.tsx
import * as React from 'react'; import { Slot } from '@radix-ui/react-slot'; import { cva, type VariantProps } from 'class-variance-authority'; import { cn } from '@/lib/utils'; const buttonVariants = cva( 'inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colo...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/components/ui/accordion.tsx
src/components/ui/accordion.tsx
"use client"; import * as React from "react"; import * as AccordionPrimitive from "@radix-ui/react-accordion"; import { ChevronDown } from "lucide-react"; import { cn } from "@/lib/utils"; const Accordion = AccordionPrimitive.Root; const AccordionItem = React.forwardRef< React.ElementRef<typeof AccordionPrimitive...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/components/ui/dropdown-menu.tsx
src/components/ui/dropdown-menu.tsx
"use client"; import * as React from "react"; import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu"; import { Check, ChevronRight, Circle } from "lucide-react"; import { cn } from "@/lib/utils"; const DropdownMenu = DropdownMenuPrimitive.Root; const DropdownMenuTrigger = DropdownMenuPrimitive.Trigg...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/components/ui/badge.tsx
src/components/ui/badge.tsx
import * as React from "react"; import { cva, type VariantProps } from "class-variance-authority"; import { cn } from "@/lib/utils"; const badgeVariants = cva( "inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ri...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/components/ui/skeleton.tsx
src/components/ui/skeleton.tsx
import { cn } from "@/lib/utils"; function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) { return ( <div className={cn("animate-pulse rounded-md bg-muted", className)} {...props} /> ); } export { Skeleton };
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/components/ui/tooltip.tsx
src/components/ui/tooltip.tsx
"use client"; import * as React from "react"; import * as TooltipPrimitive from "@radix-ui/react-tooltip"; import { cn } from "@/lib/utils"; const TooltipProvider = TooltipPrimitive.Provider; const Tooltip = TooltipPrimitive.Root; const TooltipTrigger = TooltipPrimitive.Trigger; const TooltipContent = React.forwa...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/components/ui/input.tsx
src/components/ui/input.tsx
import * as React from "react"; import { cn } from "@/lib/utils"; export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {} const Input = React.forwardRef<HTMLInputElement, InputProps>( ({ className, type, ...props }, ref) => { return ( <input type={type} classN...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/components/ui/loading.tsx
src/components/ui/loading.tsx
/* eslint-disable react/display-name */ import React from 'react'; type LoadingProps = React.HTMLProps<HTMLDivElement>; const Loading = React.forwardRef<HTMLDivElement, LoadingProps>((props, ref) => { return ( <div id="b-loading" className="b-loading" ref={ref}> <div></div> <div></div> </div> )...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/stores/modal.ts
src/stores/modal.ts
import type { Show } from '@/types'; import { create } from 'zustand'; interface ModalState { open: boolean; setOpen: (open: boolean) => void; firstLoad: boolean; show: Show | null; setShow: (show: Show | null) => void; play: boolean; setPlay: (play: boolean) => void; reset: () => void; } export const...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/stores/search.ts
src/stores/search.ts
import { clearSearch } from '@/lib/utils'; import type { Show } from '@/types'; import { create } from 'zustand'; interface SearchState { query: string; setQuery: (query: string) => void; shows: Show[]; setShows: (shows: Show[]) => void; isOpen: boolean; setOpen: (value: boolean) => void; loading: boolea...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/types/index.ts
src/types/index.ts
// import type { MEDIA_TYPE } from "@prisma/client"; export enum MediaType { ALL = 'all', TV = 'tv', MOVIE = 'movie', ANIME = 'anime', } export type CategorizedShows = { title: string; shows: Show[]; visible: boolean; }; export type NavItem = { title: string; href?: string; disabled?: boolean; ...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/lib/apiClient.ts
src/lib/apiClient.ts
import BaseService from '@/services/BaseService'; const tmdbClient = BaseService.axios(`https://api.themoviedb.org/3/`); export default tmdbClient;
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/lib/utils.ts
src/lib/utils.ts
import { siteConfig } from '@/configs/site'; import { env } from '@/env.mjs'; import MovieService from '@/services/MovieService'; import { MediaType, type CategorizedShows, type KeyWord, type KeyWordResponse, type Show, } from '@/types'; import { type AxiosResponse } from 'axios'; import { clsx, type ClassVal...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/lib/constants.ts
src/lib/constants.ts
import type { Variants } from 'framer-motion'; // framer motion export const itemsReveal: Variants = { hidden: { opacity: 0 }, visible: { opacity: 1, transition: { staggerChildren: 0.25, }, }, }; export const itemFade: Variants = { hidden: { opacity: 0 }, visible: { opacity: 1, }, };...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/lib/stack.ts
src/lib/stack.ts
import type { IStack } from '@/types'; class Stack<T> implements IStack<T> { private storage: T[] = []; constructor(private capacity = Infinity) {} push(item: T): void { this.storage.push(item); } pop(): T | undefined { return this.storage.pop(); } peek(): T | undefined { return this.stor...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/configs/site.ts
src/configs/site.ts
// import type { FooterItem, MainNavItem } from "@/types" // // import { productCategories } from "@/config/products" // import { slugify } from "@/lib/utils" import { Icons } from '@/components/icons'; import { env } from '@/env.mjs'; export type SiteConfig = typeof siteConfig; export const siteConfig = { name: e...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/server/trpc.ts
src/server/trpc.ts
import { initTRPC } from "@trpc/server"; import superjson from "superjson"; // Avoid exporting the entire t-object // since it's not very descriptive. // For instance, the use of a t variable // is common in i18n libraries. const t = initTRPC.create({ transformer: superjson, }); // Base router and procedure helpers...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/server/index.ts
src/server/index.ts
import { helloRouter } from "@/server/routers/hello"; import { router } from "@/server/trpc"; export const appRouter = router({ hello: helloRouter, }); export type AppRouter = typeof appRouter;
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/server/routers/hello.ts
src/server/routers/hello.ts
import { publicProcedure } from "@/server/trpc"; export const helloRouter = publicProcedure.query(() => { console.count("helloRouter called"); return new Date().toISOString(); });
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/client/trpc.ts
src/client/trpc.ts
/** * This is the client-side entrypoint for your tRPC API. It is used to create the `api` object which * contains the Next.js App-wrapper, as well as your type-safe React Query hooks. * * We also create a few inference helpers for input and output types. */ import { type AppRouter } from "@/server/index"; import...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/client/trpc-provider.tsx
src/client/trpc-provider.tsx
"use client"; import { QueryClient, QueryClientProvider } from "@tanstack/react-query"; import { httpBatchLink, loggerLink } from "@trpc/client"; import { useState } from "react"; import superjson from "superjson"; import { trpc } from "@/client/trpc"; import { ReactQueryDevtools } from "@tanstack/react-query-devtools...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/enums/genre.ts
src/enums/genre.ts
export enum Genre { ACTION = 28, ADVENTURE = 12, ANIMATION = 16, COMEDY = 35, CRIME = 80, DOCUMENTARY = 99, DRAMA = 18, FAMILY = 10751, FANTASY = 14, HISTORY = 36, HORROR = 27, MUSIC = 10402, MYSTERY = 9648, ROMANCE = 10749, SCIENCE_FICTION = 878, TV_MOVIE = 10770, THRILLER = 53, WAR...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
bitfreee/movie-web-kickstart
https://github.com/bitfreee/movie-web-kickstart/blob/c6bab73346867e72d399c45a6e73d007c9c462d8/src/enums/request-type.ts
src/enums/request-type.ts
import { type MediaType, type Show } from '@/types'; import { type Genre } from './genre'; export enum RequestType { TRENDING = 'trending', TOP_RATED = 'top_rated', NETFLIX = 'netflix', POPULAR = 'popular', GENRE = 'genre', ANIME_GENRE = 'anime_genre', KOREAN = 'korean', DEFAULT = 'default', ANIME_LA...
typescript
MIT
c6bab73346867e72d399c45a6e73d007c9c462d8
2026-01-05T05:01:28.652311Z
false
hazae41/foras
https://github.com/hazae41/foras/blob/306c6a5bb2ee481f1a9a60cf894b719a0189e450/src/node/index.test.ts
src/node/index.test.ts
export * from "./mods/index.test.js";
typescript
Unlicense
306c6a5bb2ee481f1a9a60cf894b719a0189e450
2026-01-05T05:01:28.970300Z
false
hazae41/foras
https://github.com/hazae41/foras/blob/306c6a5bb2ee481f1a9a60cf894b719a0189e450/src/node/index.ts
src/node/index.ts
export * from "./mods/index.js"; export * as Foras from "./mods/index.js";
typescript
Unlicense
306c6a5bb2ee481f1a9a60cf894b719a0189e450
2026-01-05T05:01:28.970300Z
false
hazae41/foras
https://github.com/hazae41/foras/blob/306c6a5bb2ee481f1a9a60cf894b719a0189e450/src/node/index.bench.ts
src/node/index.bench.ts
console.log("no bench")
typescript
Unlicense
306c6a5bb2ee481f1a9a60cf894b719a0189e450
2026-01-05T05:01:28.970300Z
false
hazae41/foras
https://github.com/hazae41/foras/blob/306c6a5bb2ee481f1a9a60cf894b719a0189e450/src/node/mods/index.test.ts
src/node/mods/index.test.ts
import { assert, test } from "@hazae41/phobos"; import { readFileSync } from "fs"; import { DeflateDecoder, DeflateEncoder, GzDecoder, GzEncoder, Memory, ZlibDecoder, ZlibEncoder, deflate, gunzip, gzip, inflate, initBundledOnce, unzlib, zlib } from "./index.js"; type Coder = (buffer: Memory, compression?: number) =>...
typescript
Unlicense
306c6a5bb2ee481f1a9a60cf894b719a0189e450
2026-01-05T05:01:28.970300Z
false
hazae41/foras
https://github.com/hazae41/foras/blob/306c6a5bb2ee481f1a9a60cf894b719a0189e450/src/node/mods/index.ts
src/node/mods/index.ts
export * from "../../../wasm/pkg/foras.js"; import { __wbg_init, InitOutput } from "../../../wasm/pkg/foras.js"; import { data } from "../../../wasm/pkg/foras.wasm.js"; let output: InitOutput | undefined = undefined export async function initBundledOnce() { return output ??= await __wbg_init(data) }
typescript
Unlicense
306c6a5bb2ee481f1a9a60cf894b719a0189e450
2026-01-05T05:01:28.970300Z
false
hazae41/foras
https://github.com/hazae41/foras/blob/306c6a5bb2ee481f1a9a60cf894b719a0189e450/src/deno/mod.test.ts
src/deno/mod.test.ts
export * from "./mods/mod.test.ts";
typescript
Unlicense
306c6a5bb2ee481f1a9a60cf894b719a0189e450
2026-01-05T05:01:28.970300Z
false
hazae41/foras
https://github.com/hazae41/foras/blob/306c6a5bb2ee481f1a9a60cf894b719a0189e450/src/deno/mod.ts
src/deno/mod.ts
export * from "./mods/mod.ts" export * as Foras from "./mods/mod.ts"
typescript
Unlicense
306c6a5bb2ee481f1a9a60cf894b719a0189e450
2026-01-05T05:01:28.970300Z
false
hazae41/foras
https://github.com/hazae41/foras/blob/306c6a5bb2ee481f1a9a60cf894b719a0189e450/src/deno/mods/mod.test.ts
src/deno/mods/mod.test.ts
import { Buffer } from "https://deno.land/std@0.170.0/node/buffer.ts"; import { assert, test } from "npm:@hazae41/phobos"; import { DeflateDecoder, DeflateEncoder, GzDecoder, GzEncoder, Memory, ZlibDecoder, ZlibEncoder, deflate, gunzip, gzip, inflate, initBundledOnce, unzlib, zlib } from "./mod.ts"; type Coder = (bu...
typescript
Unlicense
306c6a5bb2ee481f1a9a60cf894b719a0189e450
2026-01-05T05:01:28.970300Z
false
hazae41/foras
https://github.com/hazae41/foras/blob/306c6a5bb2ee481f1a9a60cf894b719a0189e450/src/deno/mods/mod.ts
src/deno/mods/mod.ts
export * from "../../../wasm/pkg/foras.js"; // @deno-types="../../../wasm/pkg/foras.d.ts" import { __wbg_init, InitOutput } from "../../../wasm/pkg/foras.js"; import { data } from "../../../wasm/pkg/foras.wasm.js"; let output: InitOutput | undefined = undefined export async function initBundledOnce() { return outp...
typescript
Unlicense
306c6a5bb2ee481f1a9a60cf894b719a0189e450
2026-01-05T05:01:28.970300Z
false
hazae41/foras
https://github.com/hazae41/foras/blob/306c6a5bb2ee481f1a9a60cf894b719a0189e450/wasm/pkg/foras.d.ts
wasm/pkg/foras.d.ts
/* tslint:disable */ /* eslint-disable */ /** * @param {Memory} input * @returns {Memory} */ export function gunzip(input: Memory): Memory; /** * @param {Memory} input * @param {number | undefined} compression * @returns {Memory} */ export function deflate(input: Memory, compression?: number): Memory; /** * @param {Mem...
typescript
Unlicense
306c6a5bb2ee481f1a9a60cf894b719a0189e450
2026-01-05T05:01:28.970300Z
false
hazae41/foras
https://github.com/hazae41/foras/blob/306c6a5bb2ee481f1a9a60cf894b719a0189e450/wasm/pkg/foras_bg.wasm.d.ts
wasm/pkg/foras_bg.wasm.d.ts
/* tslint:disable */ /* eslint-disable */ export const memory: WebAssembly.Memory; export function gunzip(a: number, b: number): void; export function __wbg_gzdecoder_free(a: number): void; export function gzdecoder_new(): number; export function gzdecoder_write(a: number, b: number, c: number): void; export function g...
typescript
Unlicense
306c6a5bb2ee481f1a9a60cf894b719a0189e450
2026-01-05T05:01:28.970300Z
false
hazae41/foras
https://github.com/hazae41/foras/blob/306c6a5bb2ee481f1a9a60cf894b719a0189e450/wasm/pkg/foras.wasm.d.ts
wasm/pkg/foras.wasm.d.ts
export const data: string;
typescript
Unlicense
306c6a5bb2ee481f1a9a60cf894b719a0189e450
2026-01-05T05:01:28.970300Z
false
uni-ku/root
https://github.com/uni-ku/root/blob/fd36fe7a471db83f32fd1e7590cb15d460f93f38/build.config.ts
build.config.ts
import { defineBuildConfig } from 'unbuild' export default defineBuildConfig({ entries: ['src/index'], declaration: true, clean: true, rollup: { emitCJS: true, inlineDependencies: false, }, failOnWarn: false, })
typescript
MIT
fd36fe7a471db83f32fd1e7590cb15d460f93f38
2026-01-05T05:01:30.482028Z
false
uni-ku/root
https://github.com/uni-ku/root/blob/fd36fe7a471db83f32fd1e7590cb15d460f93f38/src/page.ts
src/page.ts
import { MagicString } from '@vue/compiler-sfc' import { findNode, parseSFC } from './utils' export async function transformPage(code: string, enabledGlobalRef = false) { const sfc = await parseSFC(code) const ms = new MagicString(code) const pageTempStart = sfc.template?.loc.start.offset const pageTempEnd =...
typescript
MIT
fd36fe7a471db83f32fd1e7590cb15d460f93f38
2026-01-05T05:01:30.482028Z
false
uni-ku/root
https://github.com/uni-ku/root/blob/fd36fe7a471db83f32fd1e7590cb15d460f93f38/src/root.ts
src/root.ts
import { MagicString } from '@vue/compiler-sfc' import { parseSFC } from './utils' export async function registerKuApp(code: string, fileName: string = 'App.ku') { const ms = new MagicString(code) const importCode = `import GlobalKuRoot from "./${fileName}.vue";` const vueUseComponentCode = `app.component("glo...
typescript
MIT
fd36fe7a471db83f32fd1e7590cb15d460f93f38
2026-01-05T05:01:30.482028Z
false
uni-ku/root
https://github.com/uni-ku/root/blob/fd36fe7a471db83f32fd1e7590cb15d460f93f38/src/utils.ts
src/utils.ts
import type { SFCDescriptor } from '@vue/compiler-sfc' import { readFileSync } from 'node:fs' import { extname, join } from 'node:path' import process from 'node:process' import { parse as VueParser } from '@vue/compiler-sfc' import { parse as jsonParse } from 'jsonc-parser' import { normalizePath } from 'vite' expor...
typescript
MIT
fd36fe7a471db83f32fd1e7590cb15d460f93f38
2026-01-05T05:01:30.482028Z
false
uni-ku/root
https://github.com/uni-ku/root/blob/fd36fe7a471db83f32fd1e7590cb15d460f93f38/src/index.ts
src/index.ts
import type { MagicString } from '@vue/compiler-sfc' import type { FSWatcher } from 'chokidar' import type { Plugin } from 'vite' import { resolve } from 'node:path' import process from 'node:process' import chokidar from 'chokidar' import { createFilter } from 'vite' import { transformPage } from './page' import { ...
typescript
MIT
fd36fe7a471db83f32fd1e7590cb15d460f93f38
2026-01-05T05:01:30.482028Z
false
uni-ku/root
https://github.com/uni-ku/root/blob/fd36fe7a471db83f32fd1e7590cb15d460f93f38/test/transform.test.ts
test/transform.test.ts
typescript
MIT
fd36fe7a471db83f32fd1e7590cb15d460f93f38
2026-01-05T05:01:30.482028Z
false
uni-ku/root
https://github.com/uni-ku/root/blob/fd36fe7a471db83f32fd1e7590cb15d460f93f38/examples/vite.config.ts
examples/vite.config.ts
import { fileURLToPath, URL } from 'node:url' import Uni from '@dcloudio/vite-plugin-uni' import UniPlatform from '@uni-helper/vite-plugin-uni-platform' import UniKuRoot from '@uni-ku/root' import { defineConfig } from 'vite' export default defineConfig({ plugins: [ UniPlatform(), UniKuRoot({ enabled...
typescript
MIT
fd36fe7a471db83f32fd1e7590cb15d460f93f38
2026-01-05T05:01:30.482028Z
false
uni-ku/root
https://github.com/uni-ku/root/blob/fd36fe7a471db83f32fd1e7590cb15d460f93f38/examples/src/main.ts
examples/src/main.ts
import { createSSRApp } from 'vue' import App from './App.vue' export function createApp() { const app = createSSRApp(App) return { app, } }
typescript
MIT
fd36fe7a471db83f32fd1e7590cb15d460f93f38
2026-01-05T05:01:30.482028Z
false
uni-ku/root
https://github.com/uni-ku/root/blob/fd36fe7a471db83f32fd1e7590cb15d460f93f38/examples/src/composables/useToast.ts
examples/src/composables/useToast.ts
import { ref } from 'vue' const globalToastState = ref(false) export function useToast() { function showToast() { globalToastState.value = true } function hideToast() { globalToastState.value = false } return { globalToastState, showToast, hideToast, } }
typescript
MIT
fd36fe7a471db83f32fd1e7590cb15d460f93f38
2026-01-05T05:01:30.482028Z
false
lqsong/admin-antd-react
https://github.com/lqsong/admin-antd-react/blob/623f3ab581c639295a3cc7025bb47cd1613d90bf/vite.config.ts
vite.config.ts
import * as path from 'path'; import { defineConfig, loadEnv, PluginOption } from 'vite'; import react from '@vitejs/plugin-react'; import { createSvgIconsPlugin } from 'vite-plugin-svg-icons'; import { viteMockServe } from 'vite-plugin-mock'; // https://vitejs.dev/config/ export default defineConfig(({ command, mode ...
typescript
MIT
623f3ab581c639295a3cc7025bb47cd1613d90bf
2026-01-05T05:01:27.968222Z
false
lqsong/admin-antd-react
https://github.com/lqsong/admin-antd-react/blob/623f3ab581c639295a3cc7025bb47cd1613d90bf/mock/global.ts
mock/global.ts
import { MockMethod } from 'vite-plugin-mock'; const ajaxHeadersTokenKey = 'x-token'; export default [ { url: '/api/uploads', method: 'POST', response: () => { return { code: 0, data: { id: 1, url: 'http://uploads.liqingsong.cc/20200531/583057e8-8bab-4e...
typescript
MIT
623f3ab581c639295a3cc7025bb47cd1613d90bf
2026-01-05T05:01:27.968222Z
false
lqsong/admin-antd-react
https://github.com/lqsong/admin-antd-react/blob/623f3ab581c639295a3cc7025bb47cd1613d90bf/mock/home.ts
mock/home.ts
import mockjs from 'mockjs'; import { MockMethod } from 'vite-plugin-mock'; const ajaxHeadersTokenKey = 'x-token'; export default [ { url: '/api/home/articles/dailynew', method: 'get', response: ({ body }) => { return { code: 0, data: { total: mockjs.mock('@integer(1000,10...
typescript
MIT
623f3ab581c639295a3cc7025bb47cd1613d90bf
2026-01-05T05:01:27.968222Z
false
lqsong/admin-antd-react
https://github.com/lqsong/admin-antd-react/blob/623f3ab581c639295a3cc7025bb47cd1613d90bf/mock/pages.ts
mock/pages.ts
import mockjs from 'mockjs'; import { MockMethod } from 'vite-plugin-mock'; const ajaxHeadersTokenKey = 'x-token'; export default [ { url: '/api/pages/list/:id', method: 'get', response: ({ body }) => { return { code: 0, data: mockjs.mock({ id: '@integer(1)', 'na...
typescript
MIT
623f3ab581c639295a3cc7025bb47cd1613d90bf
2026-01-05T05:01:27.968222Z
false
lqsong/admin-antd-react
https://github.com/lqsong/admin-antd-react/blob/623f3ab581c639295a3cc7025bb47cd1613d90bf/mock/user.ts
mock/user.ts
import mockjs from 'mockjs'; import { MockMethod } from 'vite-plugin-mock'; const ajaxHeadersTokenKey = 'x-token'; export default [ { url: '/api/user/login', method: 'POST', response: ({ body }) => { const { password, username } = body; const send = { code: 0, data: {}, msg: '' }; if (u...
typescript
MIT
623f3ab581c639295a3cc7025bb47cd1613d90bf
2026-01-05T05:01:27.968222Z
false