Initial commit: New MoreminiMore website with fresh design

This commit is contained in:
MoreminiMore
2026-04-22 01:59:05 +07:00
commit 76409638cc
14010 changed files with 2052041 additions and 0 deletions

11
node_modules/astro/dist/prerender/routing.d.ts generated vendored Normal file
View File

@@ -0,0 +1,11 @@
import type { RouteData, SSRManifest } from '../types/public/internal.js';
type GetSortedPreloadedMatchesParams = {
matches: RouteData[];
manifest: SSRManifest;
};
export declare function getSortedPreloadedMatches({ matches, manifest }: GetSortedPreloadedMatchesParams): PreloadAndSetPrerenderStatusResult[];
type PreloadAndSetPrerenderStatusResult = {
filePath: URL;
route: RouteData;
};
export {};

41
node_modules/astro/dist/prerender/routing.js generated vendored Normal file
View File

@@ -0,0 +1,41 @@
import { routeIsRedirect } from "../core/routing/helpers.js";
import { routeComparator } from "../core/routing/priority.js";
function getSortedPreloadedMatches({ matches, manifest }) {
return preloadAndSetPrerenderStatus({
matches,
manifest
}).sort((a, b) => routeComparator(a.route, b.route)).sort((a, b) => prioritizePrerenderedMatchesComparator(a.route, b.route));
}
function preloadAndSetPrerenderStatus({
matches,
manifest
}) {
const preloaded = new Array();
for (const route of matches) {
const filePath = new URL(`./${route.component}`, manifest.rootDir);
if (routeIsRedirect(route)) {
preloaded.push({
route,
filePath
});
continue;
}
preloaded.push({ route, filePath });
}
return preloaded;
}
function prioritizePrerenderedMatchesComparator(a, b) {
if (areRegexesEqual(a.pattern, b.pattern)) {
if (a.prerender !== b.prerender) {
return a.prerender ? -1 : 1;
}
return a.component < b.component ? -1 : 1;
}
return 0;
}
function areRegexesEqual(regexp1, regexp2) {
return regexp1.source === regexp2.source && regexp1.global === regexp2.global;
}
export {
getSortedPreloadedMatches
};

15
node_modules/astro/dist/prerender/utils.d.ts generated vendored Normal file
View File

@@ -0,0 +1,15 @@
import type { AstroSettings } from '../types/astro.js';
import type { AstroConfig } from '../types/public/config.js';
export declare function getPrerenderDefault(config: AstroConfig): boolean;
/**
* Returns the correct output directory of the SSR build based on the configuration
*/
export declare function getServerOutputDirectory(settings: AstroSettings): URL;
/**
* Returns the output directory used by the prerender environment.
*/
export declare function getPrerenderOutputDirectory(settings: AstroSettings): URL;
/**
* Returns the correct output directory of the client build based on the configuration
*/
export declare function getClientOutputDirectory(settings: AstroSettings): URL;

23
node_modules/astro/dist/prerender/utils.js generated vendored Normal file
View File

@@ -0,0 +1,23 @@
import { getOutDirWithinCwd } from "../core/build/common.js";
function getPrerenderDefault(config) {
return config.output !== "server";
}
function getServerOutputDirectory(settings) {
return settings.buildOutput === "server" ? settings.config.build.server : getOutDirWithinCwd(settings.config.outDir);
}
function getPrerenderOutputDirectory(settings) {
return new URL("./.prerender/", getServerOutputDirectory(settings));
}
function getClientOutputDirectory(settings) {
const preserveStructure = settings.adapter?.adapterFeatures?.preserveBuildClientDir;
if (settings.buildOutput === "server" || preserveStructure) {
return settings.config.build.client;
}
return settings.config.outDir;
}
export {
getClientOutputDirectory,
getPrerenderDefault,
getPrerenderOutputDirectory,
getServerOutputDirectory
};