Edit gitignore file

This commit is contained in:
ParkSuMin
2025-02-24 20:17:54 +03:00
parent 9b16274400
commit d7869378b8
349 changed files with 686 additions and 25860 deletions

View File

@@ -1,6 +1,6 @@
import type { FocusAndScrollRef, PrefetchKind, RouterChangeByServerResponse } from 'next/dist/client/components/router-reducer/router-reducer-types';
import type { FetchServerResponseResult } from 'next/dist/client/components/router-reducer/fetch-server-response';
import type { FlightRouterState } from 'next/dist/server/app-render/types';
import type { FocusAndScrollRef, PrefetchKind, RouterChangeByServerResponse } from '../../client/components/router-reducer/router-reducer-types';
import type { FetchServerResponseResult } from '../../client/components/router-reducer/fetch-server-response';
import type { FlightRouterState } from '../../server/app-render/types';
import React from 'react';
export type ChildSegmentMap = Map<string, CacheNode>;
/**

View File

@@ -1,4 +1,4 @@
import MODERN_BROWSERSLIST_TARGET from 'next/dist/shared/lib/modern-browserslist-target';
import MODERN_BROWSERSLIST_TARGET from './modern-browserslist-target';
export { MODERN_BROWSERSLIST_TARGET };
export type ValueOf<T> = Required<T>[keyof T];
export declare const COMPILER_NAMES: {

View File

@@ -1,5 +1,5 @@
/// <reference types="react" />
import type { ImageConfigComplete, ImageLoaderProps, ImageLoaderPropsWithConfig } from 'next/dist/shared/lib/image-config';
import type { ImageConfigComplete, ImageLoaderProps, ImageLoaderPropsWithConfig } from './image-config';
export interface StaticImageData {
src: string;
height: number;

View File

@@ -1,5 +1,5 @@
/// <reference types="react" />
import type { Params } from 'next/dist/shared/lib/router/utils/route-matcher';
import type { Params } from '../../shared/lib/router/utils/route-matcher';
export declare const SearchParamsContext: import("react").Context<URLSearchParams | null>;
export declare const PathnameContext: import("react").Context<string | null>;
export declare const PathParamsContext: import("react").Context<Params | null>;

View File

@@ -1,10 +1,10 @@
/// <reference types="react" />
import type { BuildManifest } from 'next/dist/server/get-page-files';
import type { BuildManifest } from '../../server/get-page-files';
import type { ServerRuntime } from 'next/types';
import type { NEXT_DATA } from 'next/dist/shared/lib/utils';
import type { FontConfig } from 'next/dist/server/font-utils';
import type { NextFontManifest } from 'next/dist/build/webpack/plugins/next-font-manifest-plugin';
import type { DeepReadonly } from 'next/dist/shared/lib/deep-readonly';
import type { NEXT_DATA } from './utils';
import type { FontConfig } from '../../server/font-utils';
import type { NextFontManifest } from '../../build/webpack/plugins/next-font-manifest-plugin';
import type { DeepReadonly } from './deep-readonly';
export type HtmlProps = {
__NEXT_DATA__: NEXT_DATA;
strictNextHead: boolean;

View File

@@ -1,3 +1,3 @@
import React from 'react';
import type { ImageConfigComplete } from 'next/dist/shared/lib/image-config';
import type { ImageConfigComplete } from './image-config';
export declare const ImageConfigContext: React.Context<ImageConfigComplete>;

View File

@@ -1,6 +1,6 @@
import type { ImageLoaderProps } from 'next/dist/shared/lib/image-config';
import type { ImageProps, ImageLoader, StaticImageData } from 'next/dist/shared/lib/get-img-props';
import { Image } from 'next/dist/client/image-component';
import type { ImageLoaderProps } from './image-config';
import type { ImageProps, ImageLoader, StaticImageData } from './get-img-props';
import { Image } from '../../client/image-component';
/**
* For more advanced use cases, you can call `getImageProps()`
* to get the props that would be passed to the underlying `<img>` element,
@@ -9,7 +9,7 @@ import { Image } from 'next/dist/client/image-component';
* Read more: [Next.js docs: `getImageProps`](https://nextjs.org/docs/app/api-reference/components/image#getimageprops)
*/
export declare function getImageProps(imgProps: ImageProps): {
props: import("next/dist/shared/lib/get-img-props").ImgProps;
props: import("./get-img-props").ImgProps;
};
export default Image;
export type { ImageProps, ImageLoaderProps, ImageLoader, StaticImageData };

View File

@@ -1,3 +1,3 @@
import React from 'react';
import type { NextRouter } from 'next/dist/shared/lib/router/router';
import type { NextRouter } from './router/router';
export declare const RouterContext: React.Context<NextRouter | null>;

View File

@@ -1,14 +1,14 @@
/// <reference types="node" />
/// <reference types="node" />
import type { ComponentType } from 'react';
import type { DomainLocale } from 'next/dist/server/config';
import type { MittEmitter } from 'next/dist/shared/lib/mitt';
import type { DomainLocale } from '../../../server/config';
import type { MittEmitter } from '../mitt';
import type { ParsedUrlQuery } from 'querystring';
import type { RouterEvent } from 'next/dist/client/router';
import type { StyleSheetTuple } from 'next/dist/client/page-loader';
import type { RouterEvent } from '../../../client/router';
import type { StyleSheetTuple } from '../../../client/page-loader';
import type { UrlObject } from 'url';
import type PageLoader from 'next/dist/client/page-loader';
import type { NextPageContext, NEXT_DATA } from 'next/dist/shared/lib/utils';
import type PageLoader from '../../../client/page-loader';
import type { NextPageContext, NEXT_DATA } from '../utils';
declare global {
interface Window {
__NEXT_DATA__: NEXT_DATA;
@@ -128,8 +128,8 @@ export default class Router implements BaseRouter {
isLocaleDomain: boolean;
isFirstPopStateEvent: boolean;
_initialMatchesMiddlewarePromise: Promise<boolean>;
_bfl_s?: import('next/dist/shared/lib/bloom-filter').BloomFilter;
_bfl_d?: import('next/dist/shared/lib/bloom-filter').BloomFilter;
_bfl_s?: import('../../lib/bloom-filter').BloomFilter;
_bfl_d?: import('../../lib/bloom-filter').BloomFilter;
private state;
private _key;
static events: MittEmitter<RouterEvent>;
@@ -217,7 +217,7 @@ export default class Router implements BaseRouter {
* @param asPath the as path of the prefetched page
*/
prefetch(url: string, asPath?: string, options?: PrefetchOptions): Promise<void>;
fetchComponent(route: string): Promise<import("next/dist/client/page-loader").GoodPageCache>;
fetchComponent(route: string): Promise<import("../../../client/page-loader").GoodPageCache>;
_getData<T>(fn: () => Promise<T>): Promise<T>;
_getFlightData(dataHref: string): Promise<{
data: string;

View File

@@ -1,6 +1,6 @@
import type { BaseNextRequest } from 'next/dist/server/base-http';
import type { MiddlewareMatcher } from 'next/dist/build/analysis/get-page-static-info';
import type { Params } from 'next/dist/shared/lib/router/utils/route-matcher';
import type { BaseNextRequest } from '../../../../server/base-http';
import type { MiddlewareMatcher } from '../../../../build/analysis/get-page-static-info';
import type { Params } from './route-matcher';
export interface MiddlewareRouteMatch {
(pathname: string | null | undefined, request: BaseNextRequest, query: Params): boolean;
}

View File

@@ -1,4 +1,4 @@
import type { RouteRegex } from 'next/dist/shared/lib/router/utils/route-regex';
import type { RouteRegex } from './route-regex';
export interface RouteMatchFn {
(pathname: string | null | undefined): false | Params;
}

View File

@@ -1,14 +1,14 @@
/// <reference types="node" />
/// <reference types="node" />
import type { HtmlProps } from 'next/dist/shared/lib/html-context.shared-runtime';
import type { HtmlProps } from './html-context.shared-runtime';
import type { ComponentType } from 'react';
import type { DomainLocale } from 'next/dist/server/config';
import type { DomainLocale } from '../../server/config';
import type { Env } from '@next/env';
import type { IncomingMessage, ServerResponse } from 'http';
import type { NextRouter } from 'next/dist/shared/lib/router/router';
import type { NextRouter } from './router/router';
import type { ParsedUrlQuery } from 'querystring';
import type { PreviewData } from 'next/types';
import type { COMPILER_NAMES } from 'next/dist/shared/lib/constants';
import type { COMPILER_NAMES } from './constants';
import type fs from 'fs';
export type NextComponentType<Context extends BaseContext = NextPageContext, InitialProps = {}, Props = {}> = ComponentType<Props> & {
/**