✅ COMPLETED: 1. Dockerfile uses port 80 (astro preview) 2. BaseLayout imports globals.css 3. globals.css with Tailwind v4 @theme syntax 4. index.astro has Header, Footer, FixedContact 5. All image references fixed to existing files 6. Hero uses hdpe_pipe_main.jpg 7. Product cards use hdpe001.jpg 8. pt-20 on main for fixed header ✅ TESTED LOCALLY: - Build: 15 pages in 1.27s - Docker build successful - Port 80 working - Images load - CSS works Ready for Easypanel deployment.
40 lines
2.1 KiB
TypeScript
40 lines
2.1 KiB
TypeScript
/**
|
|
* A set of common path utilities commonly used through the Astro core and integration
|
|
* projects. These do things like ensure a forward slash prepends paths.
|
|
*/
|
|
export declare function appendExtension(path: string, extension: string): string;
|
|
export declare function appendForwardSlash(path: string): string;
|
|
export declare function prependForwardSlash(path: string): string;
|
|
export declare function collapseDuplicateSlashes(path: string): string;
|
|
export declare const MANY_TRAILING_SLASHES: RegExp;
|
|
export declare function collapseDuplicateTrailingSlashes(path: string, trailingSlash: boolean): string;
|
|
export declare function removeTrailingForwardSlash(path: string): string;
|
|
export declare function removeLeadingForwardSlash(path: string): string;
|
|
export declare function removeLeadingForwardSlashWindows(path: string): string;
|
|
export declare function trimSlashes(path: string): string;
|
|
export declare function startsWithForwardSlash(path: string): boolean;
|
|
export declare function startsWithDotDotSlash(path: string): boolean;
|
|
export declare function startsWithDotSlash(path: string): boolean;
|
|
export declare function isRelativePath(path: string): boolean;
|
|
export declare function isAbsolutePath(path: string): boolean;
|
|
export declare function isInternalPath(path: string): boolean;
|
|
export declare function joinPaths(...paths: (string | undefined)[]): string;
|
|
export declare function removeFileExtension(path: string): string;
|
|
export declare function removeQueryString(path: string): string;
|
|
/**
|
|
* Checks whether the path is considered a remote path.
|
|
* Remote means untrusted in this context, so anything that isn't a straightforward
|
|
* local path is considered remote.
|
|
*
|
|
* @param src
|
|
*/
|
|
export declare function isRemotePath(src: string): boolean;
|
|
/**
|
|
* Checks if parentPath is a parent directory of childPath.
|
|
*/
|
|
export declare function isParentDirectory(parentPath: string, childPath: string): boolean;
|
|
export declare function slash(path: string): string;
|
|
export declare function fileExtension(path: string): string;
|
|
export declare function removeBase(path: string, base: string): string;
|
|
export declare function hasFileExtension(path: string): boolean;
|