✅ 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.
42 lines
1.0 KiB
JavaScript
42 lines
1.0 KiB
JavaScript
import { WhiteSpace } from '../../tokenizer/index.js';
|
|
|
|
function getOffsetExcludeWS() {
|
|
if (this.tokenIndex > 0) {
|
|
if (this.lookupType(-1) === WhiteSpace) {
|
|
return this.tokenIndex > 1
|
|
? this.getTokenStart(this.tokenIndex - 1)
|
|
: this.firstCharOffset;
|
|
}
|
|
}
|
|
|
|
return this.tokenStart;
|
|
}
|
|
|
|
export const name = 'Raw';
|
|
export const structure = {
|
|
value: String
|
|
};
|
|
|
|
export function parse(consumeUntil, excludeWhiteSpace) {
|
|
const startOffset = this.getTokenStart(this.tokenIndex);
|
|
let endOffset;
|
|
|
|
this.skipUntilBalanced(this.tokenIndex, consumeUntil || this.consumeUntilBalanceEnd);
|
|
|
|
if (excludeWhiteSpace && this.tokenStart > startOffset) {
|
|
endOffset = getOffsetExcludeWS.call(this);
|
|
} else {
|
|
endOffset = this.tokenStart;
|
|
}
|
|
|
|
return {
|
|
type: 'Raw',
|
|
loc: this.getLocation(startOffset, endOffset),
|
|
value: this.substring(startOffset, endOffset)
|
|
};
|
|
}
|
|
|
|
export function generate(node) {
|
|
this.tokenize(node.value);
|
|
}
|