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,5 +1,5 @@
import type { DomainLocale, I18NConfig } from 'next/dist/server/config-shared';
import type { NextParsedUrlQuery } from 'next/dist/server/request-meta';
import type { DomainLocale, I18NConfig } from '../../config-shared';
import type { NextParsedUrlQuery } from '../../request-meta';
/**
* The result of matching a locale aware route.
*/

View File

@@ -1,5 +1,5 @@
import type { I18NProvider } from 'next/dist/server/future/helpers/i18n-provider';
import type { Normalizer } from 'next/dist/server/future/normalizers/normalizer';
import type { I18NProvider } from '../helpers/i18n-provider';
import type { Normalizer } from './normalizer';
/**
* Normalizes the pathname by removing the locale prefix if any.
*/

View File

@@ -1,5 +1,5 @@
import type { PathnameNormalizer } from 'next/dist/server/future/normalizers/request/pathname-normalizer';
import { SuffixPathnameNormalizer } from 'next/dist/server/future/normalizers/request/suffix';
import type { PathnameNormalizer } from './pathname-normalizer';
import { SuffixPathnameNormalizer } from './suffix';
export declare class ActionPathnameNormalizer extends SuffixPathnameNormalizer implements PathnameNormalizer {
constructor();
}

View File

@@ -1,4 +1,4 @@
import type { PathnameNormalizer } from 'next/dist/server/future/normalizers/request/pathname-normalizer';
import type { PathnameNormalizer } from './pathname-normalizer';
export declare class NextDataPathnameNormalizer implements PathnameNormalizer {
private readonly prefix;
private readonly suffix;

View File

@@ -1,4 +1,4 @@
import type { Normalizer } from 'next/dist/server/future/normalizers/normalizer';
import type { Normalizer } from '../normalizer';
export interface PathnameNormalizer extends Normalizer {
match(pathname: string): boolean;
normalize(pathname: string, matched?: boolean): string;

View File

@@ -1,5 +1,5 @@
import type { PathnameNormalizer } from 'next/dist/server/future/normalizers/request/pathname-normalizer';
import { PrefixPathnameNormalizer } from 'next/dist/server/future/normalizers/request/prefix';
import type { PathnameNormalizer } from './pathname-normalizer';
import { PrefixPathnameNormalizer } from './prefix';
export declare class PostponedPathnameNormalizer extends PrefixPathnameNormalizer implements PathnameNormalizer {
constructor();
normalize(pathname: string, matched?: boolean): string;

View File

@@ -1,5 +1,5 @@
import type { PathnameNormalizer } from 'next/dist/server/future/normalizers/request/pathname-normalizer';
import { SuffixPathnameNormalizer } from 'next/dist/server/future/normalizers/request/suffix';
import type { PathnameNormalizer } from './pathname-normalizer';
import { SuffixPathnameNormalizer } from './suffix';
export declare class PrefetchRSCPathnameNormalizer extends SuffixPathnameNormalizer implements PathnameNormalizer {
constructor();
}

View File

@@ -1,4 +1,4 @@
import type { Normalizer } from 'next/dist/server/future/normalizers/normalizer';
import type { Normalizer } from '../normalizer';
export declare class PrefixPathnameNormalizer implements Normalizer {
private readonly prefix;
constructor(prefix: string);

View File

@@ -1,5 +1,5 @@
import type { PathnameNormalizer } from 'next/dist/server/future/normalizers/request/pathname-normalizer';
import { SuffixPathnameNormalizer } from 'next/dist/server/future/normalizers/request/suffix';
import type { PathnameNormalizer } from './pathname-normalizer';
import { SuffixPathnameNormalizer } from './suffix';
export declare class RSCPathnameNormalizer extends SuffixPathnameNormalizer implements PathnameNormalizer {
constructor();
}

View File

@@ -1,4 +1,4 @@
import type { Normalizer } from 'next/dist/server/future/normalizers/normalizer';
import type { Normalizer } from '../normalizer';
export declare class SuffixPathnameNormalizer implements Normalizer {
private readonly suffix;
constructor(suffix: string);

View File

@@ -1,5 +1,5 @@
import type { RouteDefinition } from 'next/dist/server/future/route-definitions/route-definition';
import { RouteKind } from 'next/dist/server/future/route-kind';
import type { RouteDefinition } from './route-definition';
import { RouteKind } from '../route-kind';
export interface AppPageRouteDefinition extends RouteDefinition<RouteKind.APP_PAGE> {
readonly appPaths: ReadonlyArray<string>;
}

View File

@@ -1,5 +1,5 @@
import type { RouteDefinition } from 'next/dist/server/future/route-definitions/route-definition';
import type { RouteKind } from 'next/dist/server/future/route-kind';
import type { RouteDefinition } from './route-definition';
import type { RouteKind } from '../route-kind';
export interface LocaleRouteDefinition<K extends RouteKind = RouteKind> extends RouteDefinition<K> {
/**
* When defined it means that this route is locale aware. When undefined,

View File

@@ -1,4 +1,4 @@
import type { RouteKind } from 'next/dist/server/future/route-kind';
import type { LocaleRouteDefinition } from 'next/dist/server/future/route-definitions/locale-route-definition';
import type { RouteKind } from '../route-kind';
import type { LocaleRouteDefinition } from './locale-route-definition';
export interface PagesAPIRouteDefinition extends LocaleRouteDefinition<RouteKind.PAGES_API> {
}

View File

@@ -1,4 +1,4 @@
import type { LocaleRouteDefinition } from 'next/dist/server/future/route-definitions/locale-route-definition';
import type { RouteKind } from 'next/dist/server/future/route-kind';
import type { LocaleRouteDefinition } from './locale-route-definition';
import type { RouteKind } from '../route-kind';
export interface PagesRouteDefinition extends LocaleRouteDefinition<RouteKind.PAGES> {
}

View File

@@ -1,4 +1,4 @@
import type { RouteKind } from 'next/dist/server/future/route-kind';
import type { RouteKind } from '../route-kind';
export interface RouteDefinition<K extends RouteKind = RouteKind> {
readonly kind: K;
readonly bundlePath: string;

View File

@@ -1,6 +1,6 @@
import type { RouteMatch } from 'next/dist/server/future/route-matches/route-match';
import type { RouteMatcherProvider } from 'next/dist/server/future/route-matcher-providers/route-matcher-provider';
import type { LocaleAnalysisResult } from 'next/dist/server/future/helpers/i18n-provider';
import type { RouteMatch } from '../route-matches/route-match';
import type { RouteMatcherProvider } from '../route-matcher-providers/route-matcher-provider';
import type { LocaleAnalysisResult } from '../helpers/i18n-provider';
export type MatchOptions = {
skipDynamic?: boolean;
/**

View File

@@ -1,4 +1,4 @@
import type { RouteMatcher } from 'next/dist/server/future/route-matchers/route-matcher';
import type { RouteMatcher } from '../route-matchers/route-matcher';
export interface RouteMatcherProvider<M extends RouteMatcher = RouteMatcher> {
matchers(): Promise<ReadonlyArray<M>>;
}

View File

@@ -1,5 +1,5 @@
import type { RouteMatch } from 'next/dist/server/future/route-matches/route-match';
import type { RouteDefinition } from 'next/dist/server/future/route-definitions/route-definition';
import type { RouteMatch } from '../route-matches/route-match';
import type { RouteDefinition } from '../route-definitions/route-definition';
type RouteMatchResult = {
params?: Record<string, string | string[]>;
};

View File

@@ -1,5 +1,5 @@
import type { RouteMatch } from 'next/dist/server/future/route-matches/route-match';
import type { PagesAPIRouteDefinition } from 'next/dist/server/future/route-definitions/pages-api-route-definition';
import type { RouteMatch } from './route-match';
import type { PagesAPIRouteDefinition } from '../route-definitions/pages-api-route-definition';
export interface PagesAPIRouteMatch extends RouteMatch<PagesAPIRouteDefinition> {
}
/**

View File

@@ -1,4 +1,4 @@
import type { RouteDefinition } from 'next/dist/server/future/route-definitions/route-definition';
import type { RouteDefinition } from '../route-definitions/route-definition';
/**
* RouteMatch is the resolved match for a given request. This will contain all
* the dynamic parameters used for this route.

View File

@@ -1 +1 @@
export * from 'next/dist/server/future/route-modules/app-page/module'
export * from './module'

View File

@@ -1,18 +1,18 @@
/// <reference types="node" />
import type { IncomingMessage, ServerResponse } from 'http';
import type { AppPageRouteDefinition } from 'next/dist/server/future/route-definitions/app-page-route-definition';
import type RenderResult from 'next/dist/server/render-result';
import type { RenderOpts } from 'next/dist/server/app-render/types';
import type { NextParsedUrlQuery } from 'next/dist/server/request-meta';
import type { LoaderTree } from 'next/dist/server/lib/app-dir-module';
import { renderToHTMLOrFlight } from 'next/dist/server/app-render/app-render';
import { RouteModule, type RouteModuleOptions, type RouteModuleHandleContext } from 'next/dist/server/future/route-modules/route-module';
import * as vendoredContexts from 'next/dist/server/future/route-modules/app-page/vendored/contexts/entrypoints';
import type { AppPageRouteDefinition } from '../../route-definitions/app-page-route-definition';
import type RenderResult from '../../../render-result';
import type { RenderOpts } from '../../../app-render/types';
import type { NextParsedUrlQuery } from '../../../request-meta';
import type { LoaderTree } from '../../../lib/app-dir-module';
import { renderToHTMLOrFlight } from '../../../app-render/app-render';
import { RouteModule, type RouteModuleOptions, type RouteModuleHandleContext } from '../route-module';
import * as vendoredContexts from './vendored/contexts/entrypoints';
/**
* The AppPageModule is the type of the module exported by the bundled app page
* module.
*/
export type AppPageModule = typeof import('next/dist/build/templates/app-page');
export type AppPageModule = typeof import('../../../../build/templates/app-page');
type AppPageUserlandModule = {
/**
* The tree created in next-app-loader that holds component segments and modules

View File

@@ -1,10 +1,10 @@
export * as HeadManagerContext from 'next/dist/shared/lib/head-manager-context.shared-runtime';
export * as ServerInsertedHtml from 'next/dist/shared/lib/server-inserted-html.shared-runtime';
export * as AppRouterContext from 'next/dist/shared/lib/app-router-context.shared-runtime';
export * as HooksClientContext from 'next/dist/shared/lib/hooks-client-context.shared-runtime';
export * as RouterContext from 'next/dist/shared/lib/router-context.shared-runtime';
export * as HtmlContext from 'next/dist/shared/lib/html-context.shared-runtime';
export * as AmpContext from 'next/dist/shared/lib/amp-context.shared-runtime';
export * as LoadableContext from 'next/dist/shared/lib/loadable-context.shared-runtime';
export * as ImageConfigContext from 'next/dist/shared/lib/image-config-context.shared-runtime';
export * as Loadable from 'next/dist/shared/lib/loadable.shared-runtime';
export * as HeadManagerContext from '../../../../../../shared/lib/head-manager-context.shared-runtime';
export * as ServerInsertedHtml from '../../../../../../shared/lib/server-inserted-html.shared-runtime';
export * as AppRouterContext from '../../../../../../shared/lib/app-router-context.shared-runtime';
export * as HooksClientContext from '../../../../../../shared/lib/hooks-client-context.shared-runtime';
export * as RouterContext from '../../../../../../shared/lib/router-context.shared-runtime';
export * as HtmlContext from '../../../../../../shared/lib/html-context.shared-runtime';
export * as AmpContext from '../../../../../../shared/lib/amp-context.shared-runtime';
export * as LoadableContext from '../../../../../../shared/lib/loadable-context.shared-runtime';
export * as ImageConfigContext from '../../../../../../shared/lib/image-config-context.shared-runtime';
export * as Loadable from '../../../../../../shared/lib/loadable.shared-runtime';

View File

@@ -1 +1 @@
export * from 'next/dist/server/future/route-modules/pages/module'
export * from './module'

View File

@@ -1,19 +1,19 @@
/// <reference types="node" />
import type { IncomingMessage, ServerResponse } from 'http';
import type { GetServerSideProps, GetStaticPaths, GetStaticProps, NextComponentType, PageConfig } from 'next/types';
import type { PagesRouteDefinition } from 'next/dist/server/future/route-definitions/pages-route-definition';
import type { NextParsedUrlQuery } from 'next/dist/server/request-meta';
import type { RenderOpts } from 'next/dist/server/render';
import type RenderResult from 'next/dist/server/render-result';
import type { AppType, DocumentType } from 'next/dist/shared/lib/utils';
import { RouteModule, type RouteModuleHandleContext, type RouteModuleOptions } from 'next/dist/server/future/route-modules/route-module';
import { renderToHTML } from 'next/dist/server/render';
import * as vendoredContexts from 'next/dist/server/future/route-modules/pages/vendored/contexts/entrypoints';
import type { GetServerSideProps, GetStaticPaths, GetStaticProps, NextComponentType, PageConfig } from '../../../../../types';
import type { PagesRouteDefinition } from '../../route-definitions/pages-route-definition';
import type { NextParsedUrlQuery } from '../../../request-meta';
import type { RenderOpts } from '../../../render';
import type RenderResult from '../../../render-result';
import type { AppType, DocumentType } from '../../../../shared/lib/utils';
import { RouteModule, type RouteModuleHandleContext, type RouteModuleOptions } from '../route-module';
import { renderToHTML } from '../../../render';
import * as vendoredContexts from './vendored/contexts/entrypoints';
/**
* The PagesModule is the type of the module exported by the bundled pages
* module.
*/
export type PagesModule = typeof import('next/dist/build/templates/pages');
export type PagesModule = typeof import('../../../../build/templates/pages');
/**
* The userland module for a page. This is the module that is exported from the
* page file that contains the page component, page config, and any page data

View File

@@ -1,10 +1,10 @@
export * as RouterContext from 'next/dist/shared/lib/router-context.shared-runtime';
export * as LoadableContext from 'next/dist/shared/lib/loadable-context.shared-runtime';
export * as Loadable from 'next/dist/shared/lib/loadable.shared-runtime';
export * as ImageConfigContext from 'next/dist/shared/lib/image-config-context.shared-runtime';
export * as HtmlContext from 'next/dist/shared/lib/html-context.shared-runtime';
export * as HooksClientContext from 'next/dist/shared/lib/hooks-client-context.shared-runtime';
export * as HeadManagerContext from 'next/dist/shared/lib/head-manager-context.shared-runtime';
export * as AppRouterContext from 'next/dist/shared/lib/app-router-context.shared-runtime';
export * as AmpContext from 'next/dist/shared/lib/amp-context.shared-runtime';
export * as ServerInsertedHtml from 'next/dist/shared/lib/server-inserted-html.shared-runtime';
export * as RouterContext from '../../../../../../shared/lib/router-context.shared-runtime';
export * as LoadableContext from '../../../../../../shared/lib/loadable-context.shared-runtime';
export * as Loadable from '../../../../../../shared/lib/loadable.shared-runtime';
export * as ImageConfigContext from '../../../../../../shared/lib/image-config-context.shared-runtime';
export * as HtmlContext from '../../../../../../shared/lib/html-context.shared-runtime';
export * as HooksClientContext from '../../../../../../shared/lib/hooks-client-context.shared-runtime';
export * as HeadManagerContext from '../../../../../../shared/lib/head-manager-context.shared-runtime';
export * as AppRouterContext from '../../../../../../shared/lib/app-router-context.shared-runtime';
export * as AmpContext from '../../../../../../shared/lib/amp-context.shared-runtime';
export * as ServerInsertedHtml from '../../../../../../shared/lib/server-inserted-html.shared-runtime';

View File

@@ -1,4 +1,4 @@
import type { RouteDefinition } from 'next/dist/server/future/route-definitions/route-definition';
import type { RouteDefinition } from '../route-definitions/route-definition';
/**
* RouteModuleOptions is the options that are passed to the route module, other
* route modules should extend this class to add specific options for their