diff --git a/astro.config.mjs b/astro.config.mjs index 983fe62..5c186e5 100755 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -1,11 +1,7 @@ import { defineConfig } from 'astro/config'; -import mdx from '@astrojs/mdx'; - -import sitemap from '@astrojs/sitemap'; // https://astro.build/config export default defineConfig({ server: { port: 8001 }, - site: "https://limepot.xyz", - integrations: [mdx(), sitemap()], + site: "https://limepot.xyz" }); diff --git a/dist/404.html b/dist/404.html new file mode 100644 index 0000000..6063153 --- /dev/null +++ b/dist/404.html @@ -0,0 +1,3 @@ + Error 404
\ No newline at end of file diff --git a/dist/_astro/404.3900936b.css b/dist/_astro/404.3900936b.css deleted file mode 100644 index c0b3148..0000000 --- a/dist/_astro/404.3900936b.css +++ /dev/null @@ -1 +0,0 @@ -:where(.astro-ZETDM5MD){margin:0;padding:0;box-sizing:border-box;-webkit-filter:grayscale(100%);filter:grayscale(100%)}body{width:100%;height:100vh;background-image:url(/assets/404/crt.gif);-webkit-filter:grayscale(100%);filter:grayscale(100%)}marquee:where(.astro-ZETDM5MD){height:100vh} diff --git a/dist/_astro/404.9b1be79b.css b/dist/_astro/404.9b1be79b.css deleted file mode 100644 index 773c9b6..0000000 --- a/dist/_astro/404.9b1be79b.css +++ /dev/null @@ -1 +0,0 @@ -:root{--accent: 136, 58, 234;--accent-light: 224, 204, 250;--accent-dark: 49, 10, 101;--accent-gradient: linear-gradient( 45deg, rgb(var(--accent)), rgb(var(--accent-light)) 30%, white 60% )}html{font-family:system-ui,sans-serif;background:#13151a;background-size:224px} diff --git a/dist/_astro/about.28f07a25.css b/dist/_astro/about.28f07a25.css deleted file mode 100644 index 9d3eb25..0000000 --- a/dist/_astro/about.28f07a25.css +++ /dev/null @@ -1 +0,0 @@ -:root{--accent: 136, 58, 234;--accent-light: 224, 204, 250;--accent-dark: 49, 10, 101;--accent-gradient: linear-gradient(45deg, rgb(var(--accent)), rgb(var(--accent-light)) 30%, white 60%);font-family:system-ui,sans-serif;background:#13151A;background-size:224px}main{https://git.ouroboros.group/limepotato/kotRemote color: white;font-size:20px;line-height:1.6}body{background:repeat url(/assets/background.gif)}:root{--accent: 136, 58, 234;--accent-light: 224, 204, 250;--accent-dark: 49, 10, 101;--accent-gradient: linear-gradient( 45deg, rgb(var(--accent)), rgb(var(--accent-light)) 30%, white 60% )}html{font-family:system-ui,sans-serif;background:#13151a;background-size:224px}main{margin:auto;padding:1rem;width:800px;max-width:calc(100% - 2rem);color:#fff;font-size:20px;line-height:1.6}.astro-a{position:absolute;top:-32px;left:50%;transform:translate(-50%);width:220px;height:auto;z-index:-1}h1{font-size:4rem;font-weight:700;line-height:1;text-align:center;margin-bottom:1em}.text-gradient{background-image:var(--accent-gradient);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-size:400%;background-position:0%}.instructions{margin-bottom:2rem;border:1px solid rgba(var(--accent-light),25%);background:linear-gradient(rgba(var(--accent-dark),66%),rgba(var(--accent-dark),33%));padding:1.5rem;border-radius:8px}.instructions code{font-size:.8em;font-weight:700;background:rgba(var(--accent-light),12%);color:rgb(var(--accent-light));border-radius:4px;padding:.3em .4em}.instructions strong{color:rgb(var(--accent-light))}.link-card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(24ch,1fr));gap:2rem;padding:0} diff --git a/dist/_astro/about.a75b474c.css b/dist/_astro/about.a75b474c.css deleted file mode 100644 index 4033a9b..0000000 --- a/dist/_astro/about.a75b474c.css +++ /dev/null @@ -1 +0,0 @@ -.link-card:where(.astro-DOHJNAO5){list-style:none;display:flex;padding:1px;background-color:#23262d;background-image:none;background-size:400%;border-radius:7px;background-position:100%;transition:background-position .6s cubic-bezier(.22,1,.36,1);box-shadow:inset 0 0 0 1px #ffffff1a}.link-card:where(.astro-DOHJNAO5)>a:where(.astro-DOHJNAO5){width:100%;text-decoration:none;line-height:1.4;padding:calc(1.5rem - 1px);border-radius:8px;color:#fff;background-color:#23262d;opacity:.8}h2:where(.astro-DOHJNAO5){margin:0;font-size:1.25rem;transition:color .6s cubic-bezier(.22,1,.36,1)}p:where(.astro-DOHJNAO5){margin-top:.5rem;margin-bottom:0}.link-card:where(.astro-DOHJNAO5):is(:hover,:focus-within){background-position:0;background-image:var(--accent-gradient)}.link-card:where(.astro-DOHJNAO5):is(:hover,:focus-within) h2:where(.astro-DOHJNAO5){color:rgb(var(--accent-light))} diff --git a/dist/_astro/blog.dd03d41d.css b/dist/_astro/blog.dd03d41d.css deleted file mode 100644 index 516bc86..0000000 --- a/dist/_astro/blog.dd03d41d.css +++ /dev/null @@ -1 +0,0 @@ -.link-card:where(.astro-3ZWAQ7YM){list-style:none;display:flex;padding:1px;background-color:#23262d;background-image:none;background-size:400%;border-radius:7px;background-position:100%;transition:background-position .6s cubic-bezier(.22,1,.36,1);box-shadow:inset 0 0 0 1px #ffffff1a}.link-card:where(.astro-3ZWAQ7YM)>a:where(.astro-3ZWAQ7YM){width:100%;text-decoration:none;line-height:1.4;padding:calc(1.5rem - 1px);border-radius:8px;color:#fff;background-color:#23262d;opacity:.8}h2:where(.astro-3ZWAQ7YM){margin:0;font-size:1.25rem;transition:color .6s cubic-bezier(.22,1,.36,1)}p:where(.astro-3ZWAQ7YM){margin-top:.5rem;margin-bottom:0}.link-card:where(.astro-3ZWAQ7YM):is(:hover,:focus-within){background-position:0;background-image:var(--accent-gradient)}.link-card:where(.astro-3ZWAQ7YM):is(:hover,:focus-within) h2:where(.astro-3ZWAQ7YM){color:rgb(var(--accent-light))} diff --git a/dist/_astro/gmod_loading.b6a62e23.css b/dist/_astro/gmod_loading.b6a62e23.css deleted file mode 100644 index 73765d3..0000000 --- a/dist/_astro/gmod_loading.b6a62e23.css +++ /dev/null @@ -1 +0,0 @@ -:where(.astro-W5LHOOVP){margin:0;padding:0;box-sizing:border-box}body{width:100%;height:100vh;background-image:url(/assets/404/crt.gif)}marquee:where(.astro-W5LHOOVP){height:100vh} diff --git a/dist/_empty-middleware.mjs b/dist/_empty-middleware.mjs deleted file mode 100644 index 0dc1231..0000000 --- a/dist/_empty-middleware.mjs +++ /dev/null @@ -1,3 +0,0 @@ -const onRequest = undefined; - -export { onRequest }; diff --git a/dist/_noop-middleware.mjs b/dist/_noop-middleware.mjs new file mode 100644 index 0000000..84424b0 --- /dev/null +++ b/dist/_noop-middleware.mjs @@ -0,0 +1,3 @@ +const onRequest = (_, next) => next(); + +export { onRequest }; diff --git a/dist/about/index.html b/dist/about/index.html index 3267427..51b59b9 100644 --- a/dist/about/index.html +++ b/dist/about/index.html @@ -1,145 +1,28 @@ - - - - - - - - - - - - - - LimePot - About - - - - - - - - - -
-
- -
-
-
- -

Howdy Traveller!

-
-

Howdy Traveller!


-

- I do a lot of tinkering with various things, hardware and software. + -->

+I do a lot of tinkering with various things, hardware and software. Currently messing around with Web Development, Minecraft mods, 3D Printing, Linux, and Game Design. Checkout my Projects to see what I'm currently working on. -

-
- -

-

- Where to find/contact me: -


-
-
- -
-
-
- -
- - \ No newline at end of file + -->
\ No newline at end of file diff --git a/dist/boilerplate/index.html b/dist/boilerplate/index.html deleted file mode 100644 index 825ae14..0000000 --- a/dist/boilerplate/index.html +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - LimePot - - - - - - - - - -
-
- -
- -
-
-
- -
- - \ No newline at end of file diff --git a/dist/chunks/404_CUh0Bkcz.mjs b/dist/chunks/404_CUh0Bkcz.mjs new file mode 100644 index 0000000..3d7bd50 --- /dev/null +++ b/dist/chunks/404_CUh0Bkcz.mjs @@ -0,0 +1,16 @@ +import { c as createAstro, a as createComponent, r as renderTemplate, b as renderComponent, m as maybeRenderHead } from './astro/server_hicMsD5u.mjs'; +import 'kleur/colors'; +import { $ as $$Err404 } from './err404_CpHm5bGr.mjs'; +/* empty css */ + +const $$Astro = createAstro("https://limepot.xyz"); +const $$404 = createComponent(async ($$result, $$props, $$slots) => { + const Astro2 = $$result.createAstro($$Astro, $$props, $$slots); + Astro2.self = $$404; + return renderTemplate`${renderComponent($$result, "Layout", $$Err404, { "title": "Error 404", "data-astro-cid-zetdm5md": true }, { "default": ($$result2) => renderTemplate` ${maybeRenderHead()}
` })} `; +}, "/var/www/limepot-xyz/src/pages/404.astro", void 0); + +const $$file = "/var/www/limepot-xyz/src/pages/404.astro"; +const $$url = "/404"; + +export { $$404 as default, $$file as file, $$url as url }; diff --git a/dist/chunks/Card_pRdOXvZu.mjs b/dist/chunks/Card_pRdOXvZu.mjs new file mode 100644 index 0000000..d38cfff --- /dev/null +++ b/dist/chunks/Card_pRdOXvZu.mjs @@ -0,0 +1,14 @@ +import { c as createAstro, a as createComponent, r as renderTemplate, m as maybeRenderHead, f as addAttribute } from './astro/server_hicMsD5u.mjs'; +import 'kleur/colors'; +import 'clsx'; +/* empty css */ + +const $$Astro = createAstro("https://limepot.xyz"); +const $$Card = createComponent(async ($$result, $$props, $$slots) => { + const Astro2 = $$result.createAstro($$Astro, $$props, $$slots); + Astro2.self = $$Card; + const { href, title, body, source } = Astro2.props; + return renderTemplate`${maybeRenderHead()} `; +}, "/var/www/limepot-xyz/src/components/Card.astro", void 0); + +export { $$Card as $ }; diff --git a/dist/chunks/Footer_CghiVcD1.mjs b/dist/chunks/Footer_CghiVcD1.mjs new file mode 100644 index 0000000..8bee829 --- /dev/null +++ b/dist/chunks/Footer_CghiVcD1.mjs @@ -0,0 +1,32 @@ +import { c as createAstro, a as createComponent, r as renderTemplate, m as maybeRenderHead } from './astro/server_hicMsD5u.mjs'; +import 'kleur/colors'; +import 'clsx'; + +const $$Astro$1 = createAstro("https://limepot.xyz"); +const $$Header = createComponent(async ($$result, $$props, $$slots) => { + const Astro2 = $$result.createAstro($$Astro$1, $$props, $$slots); + Astro2.self = $$Header; + return renderTemplate`${maybeRenderHead()} `; +}, "/var/www/limepot-xyz/src/components/Header.astro", void 0); + +const $$Astro = createAstro("https://limepot.xyz"); +const $$Footer = createComponent(async ($$result, $$props, $$slots) => { + const Astro2 = $$result.createAstro($$Astro, $$props, $$slots); + Astro2.self = $$Footer; + return renderTemplate`${maybeRenderHead()}
`; +}, "/var/www/limepot-xyz/src/components/Footer.astro", void 0); + +export { $$Header as $, $$Footer as a }; diff --git a/dist/chunks/Layout_CawrnC6E.mjs b/dist/chunks/Layout_CawrnC6E.mjs new file mode 100644 index 0000000..cfa3822 --- /dev/null +++ b/dist/chunks/Layout_CawrnC6E.mjs @@ -0,0 +1,22 @@ +import { c as createAstro, a as createComponent, r as renderTemplate, f as addAttribute, b as renderComponent, d as renderHead, e as renderSlot } from './astro/server_hicMsD5u.mjs'; +import 'kleur/colors'; +import { $ as $$Header, a as $$Footer } from './Footer_CghiVcD1.mjs'; +import 'clsx'; +/* empty css */ + +const $$Astro$1 = createAstro("https://limepot.xyz"); +const $$Head = createComponent(async ($$result, $$props, $$slots) => { + const Astro2 = $$result.createAstro($$Astro$1, $$props, $$slots); + Astro2.self = $$Head; + return renderTemplate``; +}, "/var/www/limepot-xyz/src/components/Head.astro", void 0); + +const $$Astro = createAstro("https://limepot.xyz"); +const $$Layout = createComponent(async ($$result, $$props, $$slots) => { + const Astro2 = $$result.createAstro($$Astro, $$props, $$slots); + Astro2.self = $$Layout; + const { title } = Astro2.props; + return renderTemplate` ${renderComponent($$result, "Head", $$Head, {})}${title}${renderHead()} ${renderComponent($$result, "Header", $$Header, {})}
${renderSlot($$result, $$slots["default"])}
${renderComponent($$result, "Footer", $$Footer, {})} `; +}, "/var/www/limepot-xyz/src/layouts/Layout.astro", void 0); + +export { $$Layout as $ }; diff --git a/dist/chunks/about_BaRd3lnA.mjs b/dist/chunks/about_BaRd3lnA.mjs new file mode 100644 index 0000000..7e67a49 --- /dev/null +++ b/dist/chunks/about_BaRd3lnA.mjs @@ -0,0 +1,35 @@ +import { c as createAstro, a as createComponent, r as renderTemplate, b as renderComponent, m as maybeRenderHead } from './astro/server_hicMsD5u.mjs'; +import 'kleur/colors'; +import { $ as $$Layout } from './Layout_CawrnC6E.mjs'; +import { $ as $$Card } from './Card_pRdOXvZu.mjs'; + +const $$Astro = createAstro("https://limepot.xyz"); +const $$About = createComponent(async ($$result, $$props, $$slots) => { + const Astro2 = $$result.createAstro($$Astro, $$props, $$slots); + Astro2.self = $$About; + return renderTemplate`${renderComponent($$result, "Layout", $$Layout, { "title": "LimePot - About" }, { "default": ($$result2) => renderTemplate` ${maybeRenderHead()}

Howdy Traveller!


+I do a lot of tinkering with various things, hardware and software. + Currently messing around with Web Development, Minecraft mods, 3D + Printing, Linux, and Game Design. Checkout my Projects to see what I'm currently working on. +




Where to find/contact me:


` })}`; +}, "/var/www/limepot-xyz/src/pages/about.astro", void 0); + +const $$file = "/var/www/limepot-xyz/src/pages/about.astro"; +const $$url = "/about"; + +export { $$About as default, $$file as file, $$url as url }; diff --git a/dist/chunks/astro.d5504d79.mjs b/dist/chunks/astro/server_hicMsD5u.mjs similarity index 61% rename from dist/chunks/astro.d5504d79.mjs rename to dist/chunks/astro/server_hicMsD5u.mjs index 8c956e8..383103b 100644 --- a/dist/chunks/astro.d5504d79.mjs +++ b/dist/chunks/astro/server_hicMsD5u.mjs @@ -1,11 +1,10 @@ +import 'kleur/colors'; +import { clsx } from 'clsx'; import { escape } from 'html-escaper'; +import 'cssesc'; + +const ASTRO_VERSION = "4.6.2"; -const OnlyResponseCanBeReturned = { - name: "OnlyResponseCanBeReturned", - title: "Invalid type returned by Astro page.", - message: (route, returnedValue) => `Route \`${route ? route : ""}\` returned a \`${returnedValue}\`. Only a [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) can be returned from Astro files.`, - hint: "See https://docs.astro.build/en/guides/server-side-rendering/#response for more information." -}; const MissingMediaQueryDirective = { name: "MissingMediaQueryDirective", title: "Missing value for `client:media` directive.", @@ -20,7 +19,7 @@ ${validRenderersCount > 0 ? `There ${plural ? "are" : "is"} ${validRenderersCoun but ${plural ? "none were" : "it was not"} able to server-side render \`${componentName}\`.` : `No valid renderer was found ${componentExtension ? `for the \`.${componentExtension}\` file extension.` : `for this file extension.`}`}`, hint: (probableRenderers) => `Did you mean to enable the ${probableRenderers} integration? -See https://docs.astro.build/en/core-concepts/framework-components/ for more information on how to install and configure integrations.` +See https://docs.astro.build/en/guides/framework-components/ for more information on how to install and configure integrations.` }; const NoClientEntrypoint = { name: "NoClientEntrypoint", @@ -34,6 +33,12 @@ const NoClientOnlyHint = { message: (componentName) => `Unable to render \`${componentName}\`. When using the \`client:only\` hydration strategy, Astro needs a hint to use the correct renderer.`, hint: (probableRenderers) => `Did you mean to pass \`client:only="${probableRenderers}"\`? See https://docs.astro.build/en/reference/directives-reference/#clientonly for more information on client:only` }; +const NoMatchingImport = { + name: "NoMatchingImport", + title: "No import found for component.", + message: (componentName) => `Could not render \`${componentName}\`. No matching import has been found for \`${componentName}\`.`, + hint: "Please make sure the component is properly imported." +}; const InvalidComponentArgs = { name: "InvalidComponentArgs", title: "Invalid component arguments.", @@ -49,7 +54,8 @@ const AstroGlobUsedOutside = { const AstroGlobNoMatch = { name: "AstroGlobNoMatch", title: "Astro.glob() did not match any files.", - message: (globStr) => `\`Astro.glob(${globStr})\` did not return any matching files. Check the pattern for typos.` + message: (globStr) => `\`Astro.glob(${globStr})\` did not return any matching files.`, + hint: "Check the pattern for typos." }; function normalizeLF(code) { @@ -88,10 +94,14 @@ function codeFrame(src, loc) { } class AstroError extends Error { - constructor(props, ...params) { - super(...params); - this.type = "AstroError"; + loc; + title; + hint; + frame; + type = "AstroError"; + constructor(props, options) { const { name, title, message, stack, location, hint, frame } = props; + super(message, options); this.title = title; this.name = name; if (message) @@ -129,8 +139,7 @@ function validateArgs(args) { return true; } function baseCreateComponent(cb, moduleId, propagation) { - var _a; - const name = ((_a = moduleId == null ? void 0 : moduleId.split("/").pop()) == null ? void 0 : _a.replace(".astro", "")) ?? ""; + const name = moduleId?.split("/").pop()?.replace(".astro", "") ?? ""; const fn = (...args) => { if (!validateArgs(args)) { throw new AstroError({ @@ -158,8 +167,6 @@ function createComponent(arg1, moduleId, propagation) { } } -const ASTRO_VERSION = "2.10.7"; - function createAstroGlobFn() { const globHandler = (importMetaGlobResult) => { if (typeof importMetaGlobResult === "string") { @@ -181,39 +188,39 @@ function createAstroGlobFn() { } function createAstro(site) { return { + // TODO: this is no longer neccessary for `Astro.site` + // but it somehow allows working around caching issues in content collections for some tests site: site ? new URL(site) : void 0, generator: `Astro v${ASTRO_VERSION}`, glob: createAstroGlobFn() }; } -function serializeListValue(value) { - const hash = {}; - push(value); - return Object.keys(hash).join(" "); - function push(item) { - if (item && typeof item.forEach === "function") - item.forEach(push); - else if (item === Object(item)) - Object.keys(item).forEach((name) => { - if (item[name]) - push(name); - }); - else { - item = item === false || item == null ? "" : String(item).trim(); - if (item) { - item.split(/\s+/).forEach((name) => { - hash[name] = true; - }); - } - } - } -} function isPromise(value) { return !!value && typeof value === "object" && typeof value.then === "function"; } +async function* streamAsyncIterator(stream) { + const reader = stream.getReader(); + try { + while (true) { + const { done, value } = await reader.read(); + if (done) + return; + yield value; + } + } finally { + reader.releaseLock(); + } +} const escapeHTML = escape; +class HTMLBytes extends Uint8Array { +} +Object.defineProperty(HTMLBytes.prototype, Symbol.toStringTag, { + get() { + return "HTMLBytes"; + } +}); class HTMLString extends String { get [Symbol.toStringTag]() { return "HTMLString"; @@ -231,6 +238,59 @@ const markHTMLString = (value) => { function isHTMLString(value) { return Object.prototype.toString.call(value) === "[object HTMLString]"; } +function markHTMLBytes(bytes) { + return new HTMLBytes(bytes); +} +function hasGetReader(obj) { + return typeof obj.getReader === "function"; +} +async function* unescapeChunksAsync(iterable) { + if (hasGetReader(iterable)) { + for await (const chunk of streamAsyncIterator(iterable)) { + yield unescapeHTML(chunk); + } + } else { + for await (const chunk of iterable) { + yield unescapeHTML(chunk); + } + } +} +function* unescapeChunks(iterable) { + for (const chunk of iterable) { + yield unescapeHTML(chunk); + } +} +function unescapeHTML(str) { + if (!!str && typeof str === "object") { + if (str instanceof Uint8Array) { + return markHTMLBytes(str); + } else if (str instanceof Response && str.body) { + const body = str.body; + return unescapeChunksAsync(body); + } else if (typeof str.then === "function") { + return Promise.resolve(str).then((value) => { + return unescapeHTML(value); + }); + } else if (str[Symbol.for("astro:slot-string")]) { + return str; + } else if (Symbol.iterator in str) { + return unescapeChunks(str); + } else if (Symbol.asyncIterator in str || hasGetReader(str)) { + return unescapeChunksAsync(str); + } + } + return markHTMLString(str); +} + +const RenderInstructionSymbol = Symbol.for("astro:render"); +function createRenderInstruction(instruction) { + return Object.defineProperty(instruction, RenderInstructionSymbol, { + value: true + }); +} +function isRenderInstruction(chunk) { + return chunk && typeof chunk === "object" && chunk[RenderInstructionSymbol]; +} const PROP_TYPE = { Value: 0, @@ -325,13 +385,15 @@ function serializeProps(props, metadata) { const transitionDirectivesToCopyOnIsland = Object.freeze([ "data-astro-transition-scope", - "data-astro-transition-persist" + "data-astro-transition-persist", + "data-astro-transition-persist-props" ]); function extractDirectives(inputProps, clientDirectives) { let extracted = { isPage: false, hydration: null, - props: {} + props: {}, + propsWithoutTransitionAttributes: {} }; for (const [key, value] of Object.entries(inputProps)) { if (key.startsWith("server:")) { @@ -378,16 +440,16 @@ function extractDirectives(inputProps, clientDirectives) { break; } } - } else if (key === "class:list") { - if (value) { - extracted.props[key.slice(0, -5)] = serializeListValue(value); - } } else { extracted.props[key] = value; + if (!transitionDirectivesToCopyOnIsland.includes(key)) { + extracted.propsWithoutTransitionAttributes[key] = value; + } } } for (const sym of Object.getOwnPropertySymbols(inputProps)) { extracted.props[sym] = inputProps[sym]; + extracted.propsWithoutTransitionAttributes[sym] = inputProps[sym]; } return extracted; } @@ -395,9 +457,10 @@ async function generateHydrateScript(scriptOptions, metadata) { const { renderer, result, astroId, props, attrs } = scriptOptions; const { hydrate, componentUrl, componentExport } = metadata; if (!componentExport.value) { - throw new Error( - `Unable to resolve a valid export for "${metadata.displayName}"! Please open an issue at https://astro.build/issues!` - ); + throw new AstroError({ + ...NoMatchingImport, + message: NoMatchingImport.message(metadata.displayName) + }); } const island = { children: "", @@ -430,7 +493,7 @@ async function generateHydrateScript(scriptOptions, metadata) { }) ); transitionDirectivesToCopyOnIsland.forEach((name) => { - if (props[name]) { + if (typeof props[name] !== "undefined") { island.props[name] = props[name]; } }); @@ -513,7 +576,9 @@ function isHeadAndContent(obj) { return typeof obj === "object" && !!obj[headAndContentSym]; } -var astro_island_prebuilt_default = `(()=>{var d;{let p={0:t=>u(t),1:t=>l(t),2:t=>new RegExp(t),3:t=>new Date(t),4:t=>new Map(l(t)),5:t=>new Set(l(t)),6:t=>BigInt(t),7:t=>new URL(t),8:t=>new Uint8Array(t),9:t=>new Uint16Array(t),10:t=>new Uint32Array(t)},h=t=>{let[e,n]=t;return e in p?p[e](n):void 0},l=t=>t.map(h),u=t=>typeof t!="object"||t===null?t:Object.fromEntries(Object.entries(t).map(([e,n])=>[e,h(n)]));customElements.get("astro-island")||customElements.define("astro-island",(d=class extends HTMLElement{constructor(){super(...arguments);this.hydrate=async()=>{var i;if(!this.hydrator||!this.isConnected)return;let e=(i=this.parentElement)==null?void 0:i.closest("astro-island[ssr]");if(e){e.addEventListener("astro:hydrate",this.hydrate,{once:!0});return}let n=this.querySelectorAll("astro-slot"),o={},a=this.querySelectorAll("template[data-astro-template]");for(let r of a){let s=r.closest(this.tagName);s!=null&&s.isSameNode(this)&&(o[r.getAttribute("data-astro-template")||"default"]=r.innerHTML,r.remove())}for(let r of n){let s=r.closest(this.tagName);s!=null&&s.isSameNode(this)&&(o[r.getAttribute("name")||"default"]=r.innerHTML)}let c;try{c=this.hasAttribute("props")?u(JSON.parse(this.getAttribute("props"))):{}}catch(r){let s=this.getAttribute("component-url")||"",y=this.getAttribute("component-export");throw y&&(s+=\` (export \${y})\`),console.error(\`[hydrate] Error parsing props for component \${s}\`,this.getAttribute("props"),r),r}await this.hydrator(this)(this.Component,c,o,{client:this.getAttribute("client")}),this.removeAttribute("ssr"),this.dispatchEvent(new CustomEvent("astro:hydrate"))}}connectedCallback(){!this.hasAttribute("await-children")||this.firstChild?this.childrenConnectedCallback():new MutationObserver((e,n)=>{n.disconnect(),setTimeout(()=>this.childrenConnectedCallback(),0)}).observe(this,{childList:!0})}async childrenConnectedCallback(){let e=this.getAttribute("before-hydration-url");e&&await import(e),this.start()}start(){let e=JSON.parse(this.getAttribute("opts")),n=this.getAttribute("client");if(Astro[n]===void 0){window.addEventListener(\`astro:\${n}\`,()=>this.start(),{once:!0});return}Astro[n](async()=>{let o=this.getAttribute("renderer-url"),[a,{default:c}]=await Promise.all([import(this.getAttribute("component-url")),o?import(o):()=>()=>{}]),i=this.getAttribute("component-export")||"default";if(!i.includes("."))this.Component=a[i];else{this.Component=a;for(let r of i.split("."))this.Component=this.Component[r]}return this.hydrator=c,this.hydrate},e,this)}attributeChangedCallback(){this.hydrate()}},d.observedAttributes=["props"],d))}})();`; +var astro_island_prebuilt_dev_default = `(()=>{var v=Object.defineProperty;var A=(c,s,a)=>s in c?v(c,s,{enumerable:!0,configurable:!0,writable:!0,value:a}):c[s]=a;var l=(c,s,a)=>(A(c,typeof s!="symbol"?s+"":s,a),a);var m;{let c={0:t=>y(t),1:t=>a(t),2:t=>new RegExp(t),3:t=>new Date(t),4:t=>new Map(a(t)),5:t=>new Set(a(t)),6:t=>BigInt(t),7:t=>new URL(t),8:t=>new Uint8Array(t),9:t=>new Uint16Array(t),10:t=>new Uint32Array(t)},s=t=>{let[e,n]=t;return e in c?c[e](n):void 0},a=t=>t.map(s),y=t=>typeof t!="object"||t===null?t:Object.fromEntries(Object.entries(t).map(([e,n])=>[e,s(n)]));customElements.get("astro-island")||customElements.define("astro-island",(m=class extends HTMLElement{constructor(){super(...arguments);l(this,"Component");l(this,"hydrator");l(this,"hydrate",async()=>{var f;if(!this.hydrator||!this.isConnected)return;let e=(f=this.parentElement)==null?void 0:f.closest("astro-island[ssr]");if(e){e.addEventListener("astro:hydrate",this.hydrate,{once:!0});return}let n=this.querySelectorAll("astro-slot"),r={},h=this.querySelectorAll("template[data-astro-template]");for(let o of h){let i=o.closest(this.tagName);i!=null&&i.isSameNode(this)&&(r[o.getAttribute("data-astro-template")||"default"]=o.innerHTML,o.remove())}for(let o of n){let i=o.closest(this.tagName);i!=null&&i.isSameNode(this)&&(r[o.getAttribute("name")||"default"]=o.innerHTML)}let p;try{p=this.hasAttribute("props")?y(JSON.parse(this.getAttribute("props"))):{}}catch(o){let i=this.getAttribute("component-url")||"",b=this.getAttribute("component-export");throw b&&(i+=\` (export \${b})\`),console.error(\`[hydrate] Error parsing props for component \${i}\`,this.getAttribute("props"),o),o}let d,u=this.hydrator(this);d=performance.now(),await u(this.Component,p,r,{client:this.getAttribute("client")}),d&&this.setAttribute("client-render-time",(performance.now()-d).toString()),this.removeAttribute("ssr"),this.dispatchEvent(new CustomEvent("astro:hydrate"))});l(this,"unmount",()=>{this.isConnected||this.dispatchEvent(new CustomEvent("astro:unmount"))})}disconnectedCallback(){document.removeEventListener("astro:after-swap",this.unmount),document.addEventListener("astro:after-swap",this.unmount,{once:!0})}connectedCallback(){if(!this.hasAttribute("await-children")||document.readyState==="interactive"||document.readyState==="complete")this.childrenConnectedCallback();else{let e=()=>{document.removeEventListener("DOMContentLoaded",e),n.disconnect(),this.childrenConnectedCallback()},n=new MutationObserver(()=>{var r;((r=this.lastChild)==null?void 0:r.nodeType)===Node.COMMENT_NODE&&this.lastChild.nodeValue==="astro:end"&&(this.lastChild.remove(),e())});n.observe(this,{childList:!0}),document.addEventListener("DOMContentLoaded",e)}}async childrenConnectedCallback(){let e=this.getAttribute("before-hydration-url");e&&await import(e),this.start()}async start(){let e=JSON.parse(this.getAttribute("opts")),n=this.getAttribute("client");if(Astro[n]===void 0){window.addEventListener(\`astro:\${n}\`,()=>this.start(),{once:!0});return}try{await Astro[n](async()=>{let r=this.getAttribute("renderer-url"),[h,{default:p}]=await Promise.all([import(this.getAttribute("component-url")),r?import(r):()=>()=>{}]),d=this.getAttribute("component-export")||"default";if(!d.includes("."))this.Component=h[d];else{this.Component=h;for(let u of d.split("."))this.Component=this.Component[u]}return this.hydrator=p,this.hydrate},e,this)}catch(r){console.error(\`[astro-island] Error hydrating \${this.getAttribute("component-url")}\`,r)}}attributeChangedCallback(){this.hydrate()}},l(m,"observedAttributes",["props"]),m))}})();`; + +var astro_island_prebuilt_default = `(()=>{var v=Object.defineProperty;var A=(c,s,a)=>s in c?v(c,s,{enumerable:!0,configurable:!0,writable:!0,value:a}):c[s]=a;var d=(c,s,a)=>(A(c,typeof s!="symbol"?s+"":s,a),a);var u;{let c={0:t=>m(t),1:t=>a(t),2:t=>new RegExp(t),3:t=>new Date(t),4:t=>new Map(a(t)),5:t=>new Set(a(t)),6:t=>BigInt(t),7:t=>new URL(t),8:t=>new Uint8Array(t),9:t=>new Uint16Array(t),10:t=>new Uint32Array(t)},s=t=>{let[e,n]=t;return e in c?c[e](n):void 0},a=t=>t.map(s),m=t=>typeof t!="object"||t===null?t:Object.fromEntries(Object.entries(t).map(([e,n])=>[e,s(n)]));customElements.get("astro-island")||customElements.define("astro-island",(u=class extends HTMLElement{constructor(){super(...arguments);d(this,"Component");d(this,"hydrator");d(this,"hydrate",async()=>{var f;if(!this.hydrator||!this.isConnected)return;let e=(f=this.parentElement)==null?void 0:f.closest("astro-island[ssr]");if(e){e.addEventListener("astro:hydrate",this.hydrate,{once:!0});return}let n=this.querySelectorAll("astro-slot"),r={},l=this.querySelectorAll("template[data-astro-template]");for(let o of l){let i=o.closest(this.tagName);i!=null&&i.isSameNode(this)&&(r[o.getAttribute("data-astro-template")||"default"]=o.innerHTML,o.remove())}for(let o of n){let i=o.closest(this.tagName);i!=null&&i.isSameNode(this)&&(r[o.getAttribute("name")||"default"]=o.innerHTML)}let h;try{h=this.hasAttribute("props")?m(JSON.parse(this.getAttribute("props"))):{}}catch(o){let i=this.getAttribute("component-url")||"",b=this.getAttribute("component-export");throw b&&(i+=\` (export \${b})\`),console.error(\`[hydrate] Error parsing props for component \${i}\`,this.getAttribute("props"),o),o}let p;await this.hydrator(this)(this.Component,h,r,{client:this.getAttribute("client")}),this.removeAttribute("ssr"),this.dispatchEvent(new CustomEvent("astro:hydrate"))});d(this,"unmount",()=>{this.isConnected||this.dispatchEvent(new CustomEvent("astro:unmount"))})}disconnectedCallback(){document.removeEventListener("astro:after-swap",this.unmount),document.addEventListener("astro:after-swap",this.unmount,{once:!0})}connectedCallback(){if(!this.hasAttribute("await-children")||document.readyState==="interactive"||document.readyState==="complete")this.childrenConnectedCallback();else{let e=()=>{document.removeEventListener("DOMContentLoaded",e),n.disconnect(),this.childrenConnectedCallback()},n=new MutationObserver(()=>{var r;((r=this.lastChild)==null?void 0:r.nodeType)===Node.COMMENT_NODE&&this.lastChild.nodeValue==="astro:end"&&(this.lastChild.remove(),e())});n.observe(this,{childList:!0}),document.addEventListener("DOMContentLoaded",e)}}async childrenConnectedCallback(){let e=this.getAttribute("before-hydration-url");e&&await import(e),this.start()}async start(){let e=JSON.parse(this.getAttribute("opts")),n=this.getAttribute("client");if(Astro[n]===void 0){window.addEventListener(\`astro:\${n}\`,()=>this.start(),{once:!0});return}try{await Astro[n](async()=>{let r=this.getAttribute("renderer-url"),[l,{default:h}]=await Promise.all([import(this.getAttribute("component-url")),r?import(r):()=>()=>{}]),p=this.getAttribute("component-export")||"default";if(!p.includes("."))this.Component=l[p];else{this.Component=l;for(let y of p.split("."))this.Component=this.Component[y]}return this.hydrator=h,this.hydrate},e,this)}catch(r){console.error(\`[astro-island] Error hydrating \${this.getAttribute("component-url")}\`,r)}}attributeChangedCallback(){this.hydrate()}},d(u,"observedAttributes",["props"]),u))}})();`; const ISLAND_STYLES = ``; function determineIfNeedsHydrationScript(result) { @@ -540,10 +605,7 @@ function getDirectiveScriptText(result, directive) { function getPrescripts(result, type, directive) { switch (type) { case "both": - return `${ISLAND_STYLES}`; + return `${ISLAND_STYLES}`; case "directive": return ``; } @@ -551,29 +613,26 @@ function getPrescripts(result, type, directive) { } const voidElementNames = /^(area|base|br|col|command|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)$/i; -const htmlBooleanAttributes = /^(allowfullscreen|async|autofocus|autoplay|controls|default|defer|disabled|disablepictureinpicture|disableremoteplayback|formnovalidate|hidden|loop|nomodule|novalidate|open|playsinline|readonly|required|reversed|scoped|seamless|itemscope)$/i; -const htmlEnumAttributes = /^(contenteditable|draggable|spellcheck|value)$/i; -const svgEnumAttributes = /^(autoReverse|externalResourcesRequired|focusable|preserveAlpha)$/i; +const htmlBooleanAttributes = /^(?:allowfullscreen|async|autofocus|autoplay|controls|default|defer|disabled|disablepictureinpicture|disableremoteplayback|formnovalidate|hidden|loop|nomodule|novalidate|open|playsinline|readonly|required|reversed|scoped|seamless|itemscope)$/i; +const htmlEnumAttributes = /^(?:contenteditable|draggable|spellcheck|value)$/i; +const svgEnumAttributes = /^(?:autoReverse|externalResourcesRequired|focusable|preserveAlpha)$/i; const STATIC_DIRECTIVES = /* @__PURE__ */ new Set(["set:html", "set:text"]); -const toIdent = (k) => k.trim().replace(/(?:(?!^)\b\w|\s+|[^\w]+)/g, (match, index) => { - if (/[^\w]|\s/.test(match)) +const toIdent = (k) => k.trim().replace(/(?!^)\b\w|\s+|\W+/g, (match, index) => { + if (/\W/.test(match)) return ""; return index === 0 ? match : match.toUpperCase(); }); const toAttributeString = (value, shouldEscape = true) => shouldEscape ? String(value).replace(/&/g, "&").replace(/"/g, """) : value; const kebab = (k) => k.toLowerCase() === k ? k : k.replace(/[A-Z]/g, (match) => `-${match.toLowerCase()}`); -const toStyleString = (obj) => Object.entries(obj).map(([k, v]) => { +const toStyleString = (obj) => Object.entries(obj).filter(([_, v]) => typeof v === "string" && v.trim() || typeof v === "number").map(([k, v]) => { if (k[0] !== "-" && k[1] !== "-") return `${kebab(k)}:${v}`; - if (kebab(k) !== k) - return `${kebab(k)}:var(${k});${k}:${v}`; return `${k}:${v}`; }).join(";"); function defineScriptVars(vars) { - var _a; let output = ""; for (const [key, value] of Object.entries(vars)) { - output += `const ${toIdent(key)} = ${(_a = JSON.stringify(value)) == null ? void 0 : _a.replace( + output += `const ${toIdent(key)} = ${JSON.stringify(value)?.replace( /<\/script>/g, "\\x3C/script>" )}; @@ -604,7 +663,7 @@ Make sure to use the static attribute syntax (\`${key}={value}\`) instead of the return ""; } if (key === "class:list") { - const listValue = toAttributeString(serializeListValue(value), shouldEscape); + const listValue = toAttributeString(clsx(value), shouldEscape); if (listValue === "") { return ""; } @@ -623,6 +682,9 @@ Make sure to use the static attribute syntax (\`${key}={value}\`) instead of the if (key === "className") { return markHTMLString(` class="${toAttributeString(value, shouldEscape)}"`); } + if (typeof value === "string" && value.includes("&") && isHttpUrl(value)) { + return markHTMLString(` ${key}="${toAttributeString(value, false)}"`); + } if (value === true && (key.startsWith("data-") || htmlBooleanAttributes.test(key))) { return markHTMLString(` ${key}`); } else { @@ -636,7 +698,7 @@ function internalSpreadAttributes(values, shouldEscape = true) { } return markHTMLString(output); } -function renderElement$1(name, { props: _props, children = "" }, shouldEscape = true) { +function renderElement(name, { props: _props, children = "" }, shouldEscape = true) { const { lang: _, "data-astro-id": astroId, "define:vars": defineVars, ...props } = _props; if (defineVars) { if (name === "style") { @@ -649,10 +711,49 @@ function renderElement$1(name, { props: _props, children = "" }, shouldEscape = } } if ((children == null || children == "") && voidElementNames.test(name)) { - return `<${name}${internalSpreadAttributes(props, shouldEscape)} />`; + return `<${name}${internalSpreadAttributes(props, shouldEscape)}>`; } return `<${name}${internalSpreadAttributes(props, shouldEscape)}>${children}`; } +const noop = () => { +}; +class BufferedRenderer { + chunks = []; + renderPromise; + destination; + constructor(bufferRenderFunction) { + this.renderPromise = bufferRenderFunction(this); + Promise.resolve(this.renderPromise).catch(noop); + } + write(chunk) { + if (this.destination) { + this.destination.write(chunk); + } else { + this.chunks.push(chunk); + } + } + async renderToFinalDestination(destination) { + for (const chunk of this.chunks) { + destination.write(chunk); + } + this.destination = destination; + await this.renderPromise; + } +} +function renderToBufferDestination(bufferRenderFunction) { + const renderer = new BufferedRenderer(bufferRenderFunction); + return renderer; +} +typeof process !== "undefined" && Object.prototype.toString.call(process) === "[object process]"; +const VALID_PROTOCOLS = ["http:", "https:"]; +function isHttpUrl(url) { + try { + const parsedUrl = new URL(url); + return VALID_PROTOCOLS.includes(parsedUrl.protocol); + } catch { + return false; + } +} const uniqueElements = (item, index, all) => { const props = JSON.stringify(item.props); @@ -662,14 +763,14 @@ const uniqueElements = (item, index, all) => { function renderAllHeadContent(result) { result._metadata.hasRenderedHead = true; const styles = Array.from(result.styles).filter(uniqueElements).map( - (style) => style.props.rel === "stylesheet" ? renderElement$1("link", style) : renderElement$1("style", style) + (style) => style.props.rel === "stylesheet" ? renderElement("link", style) : renderElement("style", style) ); result.styles.clear(); const scripts = Array.from(result.scripts).filter(uniqueElements).map((script) => { - return renderElement$1("script", script, false); + return renderElement("script", script, false); }); - const links = Array.from(result.links).filter(uniqueElements).map((link) => renderElement$1("link", link, false)); - let content = links.join("\n") + styles.join("\n") + scripts.join("\n"); + const links = Array.from(result.links).filter(uniqueElements).map((link) => renderElement("link", link, false)); + let content = styles.join("\n") + links.join("\n") + scripts.join("\n"); if (result._metadata.extraHead.length > 0) { for (const part of result._metadata.extraHead) { content += part; @@ -677,15 +778,17 @@ function renderAllHeadContent(result) { } return markHTMLString(content); } -function* renderHead() { - yield { type: "head" }; +function renderHead() { + return createRenderInstruction({ type: "head" }); } -function* maybeRenderHead() { - yield { type: "maybe-head" }; +function maybeRenderHead() { + return createRenderInstruction({ type: "maybe-head" }); } const slotString = Symbol.for("astro:slot-string"); class SlotString extends HTMLString { + instructions; + [slotString]; constructor(content, instructions) { super(content); this.instructions = instructions; @@ -710,9 +813,15 @@ async function renderSlotToString(result, slotted, fallback) { let instructions = null; const temporaryDestination = { write(chunk) { - if (chunk instanceof Response) + if (chunk instanceof SlotString) { + content += chunk; + if (chunk.instructions) { + instructions ??= []; + instructions.push(...chunk.instructions); + } + } else if (chunk instanceof Response) return; - if (typeof chunk === "object" && "type" in chunk && typeof chunk.type === "string") { + else if (typeof chunk === "object" && "type" in chunk && typeof chunk.type === "string") { if (instructions === null) { instructions = []; } @@ -752,7 +861,7 @@ const Renderer = Symbol.for("astro:renderer"); new TextEncoder(); const decoder = new TextDecoder(); function stringifyChunk(result, chunk) { - if (typeof chunk.type === "string") { + if (isRenderInstruction(chunk)) { const instruction = chunk; switch (instruction.type) { case "directive": { @@ -768,38 +877,44 @@ function stringifyChunk(result, chunk) { } } case "head": { - if (result._metadata.hasRenderedHead) { + if (result._metadata.hasRenderedHead || result.partial) { return ""; } return renderAllHeadContent(result); } case "maybe-head": { - if (result._metadata.hasRenderedHead || result._metadata.headInTree) { + if (result._metadata.hasRenderedHead || result._metadata.headInTree || result.partial) { return ""; } return renderAllHeadContent(result); } - default: { - if (chunk instanceof Response) { - return ""; + case "renderer-hydration-script": { + const { rendererSpecificHydrationScripts } = result._metadata; + const { rendererName } = instruction; + if (!rendererSpecificHydrationScripts.has(rendererName)) { + rendererSpecificHydrationScripts.add(rendererName); + return instruction.render(); } + return ""; + } + default: { throw new Error(`Unknown chunk type: ${chunk.type}`); } } - } else { - if (isSlotString(chunk)) { - let out = ""; - const c = chunk; - if (c.instructions) { - for (const instr of c.instructions) { - out += stringifyChunk(result, instr); - } + } else if (chunk instanceof Response) { + return ""; + } else if (isSlotString(chunk)) { + let out = ""; + const c = chunk; + if (c.instructions) { + for (const instr of c.instructions) { + out += stringifyChunk(result, instr); } - out += chunk.toString(); - return out; } - return chunk.toString(); + out += chunk.toString(); + return out; } + return chunk.toString(); } function chunkToString(result, chunk) { if (ArrayBuffer.isView(chunk)) { @@ -813,14 +928,23 @@ function isRenderInstance(obj) { } async function renderChild(destination, child) { - child = await child; + if (isPromise(child)) { + child = await child; + } if (child instanceof SlotString) { destination.write(child); } else if (isHTMLString(child)) { destination.write(child); } else if (Array.isArray(child)) { - for (const c of child) { - await renderChild(destination, c); + const childRenders = child.map((c) => { + return renderToBufferDestination((bufferDestination) => { + return renderChild(bufferDestination, c); + }); + }); + for (const childRender of childRenders) { + if (!childRender) + continue; + await childRender.renderToFinalDestination(destination); } } else if (typeof child === "function") { await renderChild(destination, child()); @@ -843,18 +967,29 @@ async function renderChild(destination, child) { } } -var _a$1; const astroComponentInstanceSym = Symbol.for("astro.componentInstance"); class AstroComponentInstance { + [astroComponentInstanceSym] = true; + result; + props; + slotValues; + factory; + returnValue; constructor(result, props, slots, factory) { - this[_a$1] = true; this.result = result; this.props = props; this.factory = factory; this.slotValues = {}; for (const name in slots) { - const value = slots[name](result); - this.slotValues[name] = () => value; + let didRender = false; + let value = slots[name](result); + this.slotValues[name] = () => { + if (!didRender) { + didRender = true; + return value; + } + return slots[name](result); + }; } } async init(result) { @@ -878,7 +1013,6 @@ class AstroComponentInstance { } } } -_a$1 = astroComponentInstanceSym; function validateComponentProps(props, displayName) { if (props != null) { for (const prop of Object.keys(props)) { @@ -893,8 +1027,8 @@ function validateComponentProps(props, displayName) { function createAstroComponentInstance(result, displayName, factory, props, slots = {}) { validateComponentProps(props, displayName); const instance = new AstroComponentInstance(result, props, slots, factory); - if (isAPropagatingComponent(result, factory) && !result._metadata.propagators.has(factory)) { - result._metadata.propagators.set(factory, instance); + if (isAPropagatingComponent(result, factory)) { + result._metadata.propagators.add(instance); } return instance; } @@ -902,11 +1036,13 @@ function isAstroComponentInstance(obj) { return typeof obj === "object" && !!obj[astroComponentInstanceSym]; } -var _a; const renderTemplateResultSym = Symbol.for("astro.renderTemplateResult"); class RenderTemplateResult { + [renderTemplateResultSym] = true; + htmlParts; + expressions; + error; constructor(htmlParts, expressions) { - this[_a] = true; this.htmlParts = htmlParts; this.error = void 0; this.expressions = expressions.map((expression) => { @@ -922,17 +1058,23 @@ class RenderTemplateResult { }); } async render(destination) { + const expRenders = this.expressions.map((exp) => { + return renderToBufferDestination((bufferDestination) => { + if (exp || exp === 0) { + return renderChild(bufferDestination, exp); + } + }); + }); for (let i = 0; i < this.htmlParts.length; i++) { const html = this.htmlParts[i]; - const exp = this.expressions[i]; + const expRender = expRenders[i]; destination.write(markHTMLString(html)); - if (exp || exp === 0) { - await renderChild(destination, exp); + if (expRender) { + await expRender.renderToFinalDestination(destination); } } } } -_a = renderTemplateResultSym; function isRenderTemplateResult(obj) { return typeof obj === "object" && !!obj[renderTemplateResultSym]; } @@ -940,51 +1082,6 @@ function renderTemplate(htmlParts, ...expressions) { return new RenderTemplateResult(htmlParts, expressions); } -async function renderToString(result, componentFactory, props, children, isPage = false, route) { - const templateResult = await callComponentAsTemplateResultOrResponse( - result, - componentFactory, - props, - children, - route - ); - if (templateResult instanceof Response) - return templateResult; - let str = ""; - let renderedFirstPageChunk = false; - const destination = { - write(chunk) { - if (isPage && !renderedFirstPageChunk) { - renderedFirstPageChunk = true; - if (!/" : "\n"; - str += doctype; - } - } - if (chunk instanceof Response) - return; - str += chunkToString(result, chunk); - } - }; - await templateResult.render(destination); - return str; -} -async function callComponentAsTemplateResultOrResponse(result, componentFactory, props, children, route) { - const factoryResult = await componentFactory(result, props, children); - if (factoryResult instanceof Response) { - return factoryResult; - } else if (!isRenderTemplateResult(factoryResult)) { - throw new AstroError({ - ...OnlyResponseCanBeReturned, - message: OnlyResponseCanBeReturned.message(route == null ? void 0 : route.route, typeof factoryResult), - location: { - file: route == null ? void 0 : route.component - } - }); - } - return isHeadAndContent(factoryResult) ? factoryResult.content : factoryResult; -} - function componentIsHTMLElement(Component) { return typeof HTMLElement !== "undefined" && HTMLElement.isPrototypeOf(Component); } @@ -995,7 +1092,7 @@ async function renderHTMLElement(result, constructor, props, slots) { attrHTML += ` ${attr}="${toAttributeString(await props[attr])}"`; } return markHTMLString( - `<${name}${attrHTML}>${await renderSlotToString(result, slots == null ? void 0 : slots.default)}` + `<${name}${attrHTML}>${await renderSlotToString(result, slots?.default)}` ); } function getHTMLElementName(constructor) { @@ -1006,10 +1103,10 @@ function getHTMLElementName(constructor) { return assignedName; } -const needsHeadRenderingSymbol = Symbol.for("astro.needsHeadRendering"); const rendererAliases = /* @__PURE__ */ new Map([["solid", "solid-js"]]); +const clientOnlyValues = /* @__PURE__ */ new Set(["solid-js", "react", "preact", "vue", "svelte", "lit"]); function guessRenderers(componentUrl) { - const extname = componentUrl == null ? void 0 : componentUrl.split(".").pop(); + const extname = componentUrl?.split(".").pop(); switch (extname) { case "svelte": return ["@astrojs/svelte"]; @@ -1035,15 +1132,14 @@ function isFragmentComponent(Component) { function isHTMLComponent(Component) { return Component && Component["astro:html"] === true; } -const ASTRO_SLOT_EXP = /\<\/?astro-slot\b[^>]*>/g; -const ASTRO_STATIC_SLOT_EXP = /\<\/?astro-static-slot\b[^>]*>/g; -function removeStaticAstroSlot(html, supportsAstroStaticSlot) { +const ASTRO_SLOT_EXP = /<\/?astro-slot\b[^>]*>/g; +const ASTRO_STATIC_SLOT_EXP = /<\/?astro-static-slot\b[^>]*>/g; +function removeStaticAstroSlot(html, supportsAstroStaticSlot = true) { const exp = supportsAstroStaticSlot ? ASTRO_STATIC_SLOT_EXP : ASTRO_SLOT_EXP; return html.replace(exp, ""); } async function renderFrameworkComponent(result, displayName, Component, _props, slots = {}) { - var _a, _b, _c; - if (!Component && !_props["client:only"]) { + if (!Component && "client:only" in _props === false) { throw new Error( `Unable to render ${displayName} because it is ${Component}! Did you forget to import the component or is it possible there is a typo?` @@ -1054,7 +1150,10 @@ Did you forget to import the component or is it possible there is a typo?` astroStaticSlot: true, displayName }; - const { hydration, isPage, props } = extractDirectives(_props, clientDirectives); + const { hydration, isPage, props, propsWithoutTransitionAttributes } = extractDirectives( + _props, + clientDirectives + ); let html = ""; let attrs = void 0; if (hydration) { @@ -1108,31 +1207,50 @@ Did you forget to import the component or is it possible there is a typo?` } } else { if (metadata.hydrateArgs) { - const passedName = metadata.hydrateArgs; - const rendererName = rendererAliases.has(passedName) ? rendererAliases.get(passedName) : passedName; - renderer = renderers.find( - ({ name }) => name === `@astrojs/${rendererName}` || name === rendererName - ); + const rendererName = rendererAliases.has(metadata.hydrateArgs) ? rendererAliases.get(metadata.hydrateArgs) : metadata.hydrateArgs; + if (clientOnlyValues.has(rendererName)) { + renderer = renderers.find( + ({ name }) => name === `@astrojs/${rendererName}` || name === rendererName + ); + } } if (!renderer && validRenderers.length === 1) { renderer = validRenderers[0]; } if (!renderer) { - const extname = (_a = metadata.componentUrl) == null ? void 0 : _a.split(".").pop(); + const extname = metadata.componentUrl?.split(".").pop(); renderer = renderers.filter( ({ name }) => name === `@astrojs/${extname}` || name === extname )[0]; } } + let componentServerRenderEndTime; if (!renderer) { if (metadata.hydrate === "only") { - throw new AstroError({ - ...NoClientOnlyHint, - message: NoClientOnlyHint.message(metadata.displayName), - hint: NoClientOnlyHint.hint( - probableRendererNames.map((r) => r.replace("@astrojs/", "")).join("|") - ) - }); + const rendererName = rendererAliases.has(metadata.hydrateArgs) ? rendererAliases.get(metadata.hydrateArgs) : metadata.hydrateArgs; + if (clientOnlyValues.has(rendererName)) { + const plural = validRenderers.length > 1; + throw new AstroError({ + ...NoMatchingRenderer, + message: NoMatchingRenderer.message( + metadata.displayName, + metadata?.componentUrl?.split(".").pop(), + plural, + validRenderers.length + ), + hint: NoMatchingRenderer.hint( + formatList(probableRendererNames.map((r) => "`" + r + "`")) + ) + }); + } else { + throw new AstroError({ + ...NoClientOnlyHint, + message: NoClientOnlyHint.message(metadata.displayName), + hint: NoClientOnlyHint.hint( + probableRendererNames.map((r) => r.replace("@astrojs/", "")).join("|") + ) + }); + } } else if (typeof Component !== "string") { const matchingRenderers = validRenderers.filter( (r) => probableRendererNames.includes(r.name) @@ -1143,7 +1261,7 @@ Did you forget to import the component or is it possible there is a typo?` ...NoMatchingRenderer, message: NoMatchingRenderer.message( metadata.displayName, - (_b = metadata == null ? void 0 : metadata.componentUrl) == null ? void 0 : _b.split(".").pop(), + metadata?.componentUrl?.split(".").pop(), plural, validRenderers.length ), @@ -1156,7 +1274,7 @@ Did you forget to import the component or is it possible there is a typo?` ({ html, attrs } = await renderer.ssr.renderToStaticMarkup.call( { result }, Component, - props, + propsWithoutTransitionAttributes, children, metadata )); @@ -1176,15 +1294,24 @@ If you're still stuck, please open an issue on GitHub or join us at https://astr } } else { if (metadata.hydrate === "only") { - html = await renderSlotToString(result, slots == null ? void 0 : slots.fallback); + const rendererName = rendererAliases.has(metadata.hydrateArgs) ? rendererAliases.get(metadata.hydrateArgs) : metadata.hydrateArgs; + if (!clientOnlyValues.has(rendererName)) { + console.warn( + `The client:only directive for ${metadata.displayName} is not recognized. The renderer ${renderer.name} will be used. If you intended to use a different renderer, please provide a valid client:only directive.` + ); + } + html = await renderSlotToString(result, slots?.fallback); } else { + const componentRenderStartTime = performance.now(); ({ html, attrs } = await renderer.ssr.renderToStaticMarkup.call( { result }, Component, - props, + propsWithoutTransitionAttributes, children, metadata )); + if (process.env.NODE_ENV === "development") + componentServerRenderEndTime = performance.now() - componentRenderStartTime; } } if (renderer && !renderer.clientEntrypoint && renderer.name !== "@astrojs/lit" && metadata.hydrate) { @@ -1218,19 +1345,16 @@ If you're still stuck, please open an issue on GitHub or join us at https://astr if (!hydration) { return { render(destination) { - var _a2; if (slotInstructions) { for (const instruction of slotInstructions) { destination.write(instruction); } } - if (isPage || (renderer == null ? void 0 : renderer.name) === "astro:jsx") { + if (isPage || renderer?.name === "astro:jsx") { destination.write(html); } else if (html && html.length > 0) { destination.write( - markHTMLString( - removeStaticAstroSlot(html, ((_a2 = renderer == null ? void 0 : renderer.ssr) == null ? void 0 : _a2.supportsAstroStaticSlot) ?? false) - ) + markHTMLString(removeStaticAstroSlot(html, renderer?.ssr?.supportsAstroStaticSlot)) ); } } @@ -1248,11 +1372,13 @@ ${serializeProps( { renderer, result, astroId, props, attrs }, metadata ); + if (componentServerRenderEndTime && process.env.NODE_ENV === "development") + island.props["server-render-time"] = componentServerRenderEndTime; let unrenderedSlots = []; if (html) { if (Object.keys(children).length > 0) { for (const key of Object.keys(children)) { - let tagName = ((_c = renderer == null ? void 0 : renderer.ssr) == null ? void 0 : _c.supportsAstroStaticSlot) ? !!metadata.hydrate ? "astro-slot" : "astro-static-slot" : "astro-slot"; + let tagName = renderer?.ssr?.supportsAstroStaticSlot ? !!metadata.hydrate ? "astro-slot" : "astro-static-slot" : "astro-slot"; let expectedHTML = key === "default" ? `<${tagName}>` : `<${tagName} name="${key}">`; if (!html.includes(expectedHTML)) { unrenderedSlots.push(key); @@ -1268,6 +1394,7 @@ ${serializeProps( island.children = `${html ?? ""}${template}`; if (island.children) { island.props["await-children"] = ""; + island.children += ``; } return { render(destination) { @@ -1276,19 +1403,29 @@ ${serializeProps( destination.write(instruction); } } - destination.write({ type: "directive", hydration }); - destination.write(markHTMLString(renderElement$1("astro-island", island, false))); + destination.write(createRenderInstruction({ type: "directive", hydration })); + if (hydration.directive !== "only" && renderer?.ssr.renderHydrationScript) { + destination.write( + createRenderInstruction({ + type: "renderer-hydration-script", + rendererName: renderer.name, + render: renderer.ssr.renderHydrationScript + }) + ); + } + const renderedElement = renderElement("astro-island", island, false); + destination.write(markHTMLString(renderedElement)); } }; } function sanitizeElementName(tag) { - const unsafe = /[&<>'"\s]+/g; + const unsafe = /[&<>'"\s]+/; if (!unsafe.test(tag)) return tag; return tag.trim().split(unsafe)[0].trim(); } async function renderFragmentComponent(result, slots = {}) { - const children = await renderSlotToString(result, slots == null ? void 0 : slots.default); + const children = await renderSlotToString(result, slots?.default); return { render(destination) { if (children == null) @@ -1309,429 +1446,49 @@ async function renderHTMLComponent(result, Component, _props, slots = {}) { } function renderAstroComponent(result, displayName, Component, props, slots = {}) { const instance = createAstroComponentInstance(result, displayName, Component, props, slots); - const bufferChunks = []; - const bufferDestination = { - write: (chunk) => bufferChunks.push(chunk) - }; - const renderPromise = instance.render(bufferDestination); return { async render(destination) { - for (const chunk of bufferChunks) { - destination.write(chunk); - } - bufferChunks.length = 0; - bufferDestination.write = (chunk) => destination.write(chunk); - await renderPromise; + await instance.render(destination); } }; } async function renderComponent(result, displayName, Component, props, slots = {}) { if (isPromise(Component)) { - Component = await Component; + Component = await Component.catch(handleCancellation); } if (isFragmentComponent(Component)) { - return await renderFragmentComponent(result, slots); + return await renderFragmentComponent(result, slots).catch(handleCancellation); } + props = normalizeProps(props); if (isHTMLComponent(Component)) { - return await renderHTMLComponent(result, Component, props, slots); + return await renderHTMLComponent(result, Component, props, slots).catch(handleCancellation); } if (isAstroComponentFactory(Component)) { return renderAstroComponent(result, displayName, Component, props, slots); } - return await renderFrameworkComponent(result, displayName, Component, props, slots); -} -async function renderComponentToString(result, displayName, Component, props, slots = {}, isPage = false, route) { - let str = ""; - let renderedFirstPageChunk = false; - let head = ""; - if (nonAstroPageNeedsHeadInjection(Component)) { - for (const headChunk of maybeRenderHead()) { - head += chunkToString(result, headChunk); - } - } - try { - const destination = { - write(chunk) { - if (isPage && !renderedFirstPageChunk) { - renderedFirstPageChunk = true; - if (!/" : "\n"; - str += doctype + head; - } - } - if (chunk instanceof Response) - return; - str += chunkToString(result, chunk); - } - }; - const renderInstance = await renderComponent(result, displayName, Component, props, slots); - await renderInstance.render(destination); - } catch (e) { - if (AstroError.is(e) && !e.loc) { - e.setLocation({ - file: route == null ? void 0 : route.component - }); - } + return await renderFrameworkComponent(result, displayName, Component, props, slots).catch( + handleCancellation + ); + function handleCancellation(e) { + if (result.cancelled) + return { render() { + } }; throw e; } - return str; } -function nonAstroPageNeedsHeadInjection(pageComponent) { - return !!(pageComponent == null ? void 0 : pageComponent[needsHeadRenderingSymbol]); -} - -const ClientOnlyPlaceholder = "astro-client-only"; -class Skip { - constructor(vnode) { - this.vnode = vnode; - this.count = 0; - } - increment() { - this.count++; - } - haveNoTried() { - return this.count === 0; - } - isCompleted() { - return this.count > 2; - } -} -Skip.symbol = Symbol("astro:jsx:skip"); -let originalConsoleError; -let consoleFilterRefs = 0; -async function renderJSX(result, vnode) { - switch (true) { - case vnode instanceof HTMLString: - if (vnode.toString().trim() === "") { - return ""; - } - return vnode; - case typeof vnode === "string": - return markHTMLString(escapeHTML(vnode)); - case typeof vnode === "function": - return vnode; - case (!vnode && vnode !== 0): - return ""; - case Array.isArray(vnode): - return markHTMLString( - (await Promise.all(vnode.map((v) => renderJSX(result, v)))).join("") - ); - } - let skip; - if (vnode.props) { - if (vnode.props[Skip.symbol]) { - skip = vnode.props[Skip.symbol]; - } else { - skip = new Skip(vnode); - } - } else { - skip = new Skip(vnode); - } - return renderJSXVNode(result, vnode, skip); -} -async function renderJSXVNode(result, vnode, skip) { - if (isVNode(vnode)) { - switch (true) { - case !vnode.type: { - throw new Error(`Unable to render ${result.pathname} because it contains an undefined Component! -Did you forget to import the component or is it possible there is a typo?`); - } - case vnode.type === Symbol.for("astro:fragment"): - return renderJSX(result, vnode.props.children); - case vnode.type.isAstroComponentFactory: { - let props = {}; - let slots = {}; - for (const [key, value] of Object.entries(vnode.props ?? {})) { - if (key === "children" || value && typeof value === "object" && value["$$slot"]) { - slots[key === "children" ? "default" : key] = () => renderJSX(result, value); - } else { - props[key] = value; - } - } - const str = await renderToString(result, vnode.type, props, slots); - if (str instanceof Response) { - throw str; - } - const html = markHTMLString(str); - return html; - } - case (!vnode.type && vnode.type !== 0): - return ""; - case (typeof vnode.type === "string" && vnode.type !== ClientOnlyPlaceholder): - return markHTMLString(await renderElement(result, vnode.type, vnode.props ?? {})); - } - if (vnode.type) { - let extractSlots2 = function(child) { - if (Array.isArray(child)) { - return child.map((c) => extractSlots2(c)); - } - if (!isVNode(child)) { - _slots.default.push(child); - return; - } - if ("slot" in child.props) { - _slots[child.props.slot] = [..._slots[child.props.slot] ?? [], child]; - delete child.props.slot; - return; - } - _slots.default.push(child); - }; - if (typeof vnode.type === "function" && vnode.type["astro:renderer"]) { - skip.increment(); - } - if (typeof vnode.type === "function" && vnode.props["server:root"]) { - const output2 = await vnode.type(vnode.props ?? {}); - return await renderJSX(result, output2); - } - if (typeof vnode.type === "function") { - if (skip.haveNoTried() || skip.isCompleted()) { - useConsoleFilter(); - try { - const output2 = await vnode.type(vnode.props ?? {}); - let renderResult; - if (output2 == null ? void 0 : output2[AstroJSX]) { - renderResult = await renderJSXVNode(result, output2, skip); - return renderResult; - } else if (!output2) { - renderResult = await renderJSXVNode(result, output2, skip); - return renderResult; - } - } catch (e) { - if (skip.isCompleted()) { - throw e; - } - skip.increment(); - } finally { - finishUsingConsoleFilter(); - } - } else { - skip.increment(); - } - } - const { children = null, ...props } = vnode.props ?? {}; - const _slots = { - default: [] - }; - extractSlots2(children); - for (const [key, value] of Object.entries(props)) { - if (value["$$slot"]) { - _slots[key] = value; - delete props[key]; - } - } - const slotPromises = []; - const slots = {}; - for (const [key, value] of Object.entries(_slots)) { - slotPromises.push( - renderJSX(result, value).then((output2) => { - if (output2.toString().trim().length === 0) - return; - slots[key] = () => output2; - }) - ); - } - await Promise.all(slotPromises); - props[Skip.symbol] = skip; - let output; - if (vnode.type === ClientOnlyPlaceholder && vnode.props["client:only"]) { - output = await renderComponentToString( - result, - vnode.props["client:display-name"] ?? "", - null, - props, - slots - ); - } else { - output = await renderComponentToString( - result, - typeof vnode.type === "function" ? vnode.type.name : vnode.type, - vnode.type, - props, - slots - ); - } - return markHTMLString(output); +function normalizeProps(props) { + if (props["class:list"] !== void 0) { + const value = props["class:list"]; + delete props["class:list"]; + props["class"] = clsx(props["class"], value); + if (props["class"] === "") { + delete props["class"]; } } - return markHTMLString(`${vnode}`); -} -async function renderElement(result, tag, { children, ...props }) { - return markHTMLString( - `<${tag}${spreadAttributes(props)}${markHTMLString( - (children == null || children == "") && voidElementNames.test(tag) ? `/>` : `>${children == null ? "" : await renderJSX(result, prerenderElementChildren(tag, children))}` - )}` - ); -} -function prerenderElementChildren(tag, children) { - if (typeof children === "string" && (tag === "style" || tag === "script")) { - return markHTMLString(children); - } else { - return children; - } -} -function useConsoleFilter() { - consoleFilterRefs++; - if (!originalConsoleError) { - originalConsoleError = console.error; - try { - console.error = filteredConsoleError; - } catch (error) { - } - } -} -function finishUsingConsoleFilter() { - consoleFilterRefs--; -} -function filteredConsoleError(msg, ...rest) { - if (consoleFilterRefs > 0 && typeof msg === "string") { - const isKnownReactHookError = msg.includes("Warning: Invalid hook call.") && msg.includes("https://reactjs.org/link/invalid-hook-call"); - if (isKnownReactHookError) - return; - } - originalConsoleError(msg, ...rest); + return props; } -typeof process === "object" && Object.prototype.toString.call(process) === "[object process]"; +"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_".split("").reduce((v, c) => (v[c.charCodeAt(0)] = c, v), []); +"-0123456789_".split("").reduce((v, c) => (v[c.charCodeAt(0)] = c, v), []); -function spreadAttributes(values = {}, _name, { class: scopedClassName } = {}) { - let output = ""; - if (scopedClassName) { - if (typeof values.class !== "undefined") { - values.class += ` ${scopedClassName}`; - } else if (typeof values["class:list"] !== "undefined") { - values["class:list"] = [values["class:list"], scopedClassName]; - } else { - values.class = scopedClassName; - } - } - for (const [key, value] of Object.entries(values)) { - output += addAttribute(value, key, true); - } - return markHTMLString(output); -} - -const AstroJSX = "astro:jsx"; -const Empty = Symbol("empty"); -const toSlotName = (slotAttr) => slotAttr; -function isVNode(vnode) { - return vnode && typeof vnode === "object" && vnode[AstroJSX]; -} -function transformSlots(vnode) { - if (typeof vnode.type === "string") - return vnode; - const slots = {}; - if (isVNode(vnode.props.children)) { - const child = vnode.props.children; - if (!isVNode(child)) - return; - if (!("slot" in child.props)) - return; - const name = toSlotName(child.props.slot); - slots[name] = [child]; - slots[name]["$$slot"] = true; - delete child.props.slot; - delete vnode.props.children; - } - if (Array.isArray(vnode.props.children)) { - vnode.props.children = vnode.props.children.map((child) => { - if (!isVNode(child)) - return child; - if (!("slot" in child.props)) - return child; - const name = toSlotName(child.props.slot); - if (Array.isArray(slots[name])) { - slots[name].push(child); - } else { - slots[name] = [child]; - slots[name]["$$slot"] = true; - } - delete child.props.slot; - return Empty; - }).filter((v) => v !== Empty); - } - Object.assign(vnode.props, slots); -} -function markRawChildren(child) { - if (typeof child === "string") - return markHTMLString(child); - if (Array.isArray(child)) - return child.map((c) => markRawChildren(c)); - return child; -} -function transformSetDirectives(vnode) { - if (!("set:html" in vnode.props || "set:text" in vnode.props)) - return; - if ("set:html" in vnode.props) { - const children = markRawChildren(vnode.props["set:html"]); - delete vnode.props["set:html"]; - Object.assign(vnode.props, { children }); - return; - } - if ("set:text" in vnode.props) { - const children = vnode.props["set:text"]; - delete vnode.props["set:text"]; - Object.assign(vnode.props, { children }); - return; - } -} -function createVNode(type, props) { - const vnode = { - [Renderer]: "astro:jsx", - [AstroJSX]: true, - type, - props: props ?? {} - }; - transformSetDirectives(vnode); - transformSlots(vnode); - return vnode; -} - -const slotName = (str) => str.trim().replace(/[-_]([a-z])/g, (_, w) => w.toUpperCase()); -async function check(Component, props, { default: children = null, ...slotted } = {}) { - if (typeof Component !== "function") - return false; - const slots = {}; - for (const [key, value] of Object.entries(slotted)) { - const name = slotName(key); - slots[name] = value; - } - try { - const result = await Component({ ...props, ...slots, children }); - return result[AstroJSX]; - } catch (e) { - const error = e; - if (Component[Symbol.for("mdx-component")]) { - throw createFormattedError({ - message: error.message, - title: error.name, - hint: `This issue often occurs when your MDX component encounters runtime errors.`, - name: error.name, - stack: error.stack - }); - } - } - return false; -} -async function renderToStaticMarkup(Component, props = {}, { default: children = null, ...slotted } = {}) { - const slots = {}; - for (const [key, value] of Object.entries(slotted)) { - const name = slotName(key); - slots[name] = value; - } - const { result } = this; - const html = await renderJSX(result, createVNode(Component, { ...props, ...slots, children })); - return { html }; -} -function createFormattedError({ message, name, stack, hint }) { - const error = new Error(message); - error.name = name; - error.stack = stack; - error.hint = hint; - return error; -} -var server_default = { - check, - renderToStaticMarkup -}; - -export { Fragment as F, createComponent as a, addAttribute as b, createAstro as c, renderHead as d, renderSlot as e, renderComponent as f, createVNode as g, server_default as h, maybeRenderHead as m, renderTemplate as r, spreadAttributes as s }; +export { createComponent as a, renderComponent as b, createAstro as c, renderHead as d, renderSlot as e, addAttribute as f, maybeRenderHead as m, renderTemplate as r, unescapeHTML as u }; diff --git a/dist/chunks/pages/blog.astro.9ddd7656.mjs b/dist/chunks/blog_BYIjjOIS.mjs similarity index 51% rename from dist/chunks/pages/blog.astro.9ddd7656.mjs rename to dist/chunks/blog_BYIjjOIS.mjs index 1328d58..7fb16fe 100644 --- a/dist/chunks/pages/blog.astro.9ddd7656.mjs +++ b/dist/chunks/blog_BYIjjOIS.mjs @@ -1,39 +1,23 @@ -import { c as createAstro, a as createComponent, r as renderTemplate, m as maybeRenderHead, b as addAttribute, f as renderComponent } from '../astro.d5504d79.mjs'; -import 'html-escaper'; -import { $ as $$Layout } from './about.astro.9508f4d0.mjs'; -/* empty css *//* empty css *//* empty css */ +import { c as createAstro, a as createComponent, r as renderTemplate, m as maybeRenderHead, f as addAttribute, b as renderComponent } from './astro/server_hicMsD5u.mjs'; +import 'kleur/colors'; +import { $ as $$Layout } from './Layout_CawrnC6E.mjs'; +import 'clsx'; +/* empty css */ + const $$Astro$1 = createAstro("https://limepot.xyz"); const $$CardNoimg = createComponent(async ($$result, $$props, $$slots) => { const Astro2 = $$result.createAstro($$Astro$1, $$props, $$slots); Astro2.self = $$CardNoimg; const { href, title, body } = Astro2.props; - return renderTemplate`${maybeRenderHead()}`; + return renderTemplate`${maybeRenderHead()} `; }, "/var/www/limepot-xyz/src/components/Card-noimg.astro", void 0); const $$Astro = createAstro("https://limepot.xyz"); const $$Blog = createComponent(async ($$result, $$props, $$slots) => { const Astro2 = $$result.createAstro($$Astro, $$props, $$slots); Astro2.self = $$Blog; - const allPosts = await Astro2.glob(/* #__PURE__ */ Object.assign({"./posts/post-1.md": () => import('./post-1.md.3cc22013.mjs')}), () => "../pages/posts/*.md"); - return renderTemplate`${renderComponent($$result, "Layout", $$Layout, { "title": "LimePot - Blog" }, { "default": ($$result2) => renderTemplate` - ${maybeRenderHead()}
-
- ${allPosts.map((post) => renderTemplate``)} -
-
-` })}`; + const allPosts = await Astro2.glob(/* #__PURE__ */ Object.assign({}), () => "../pages/posts/*.md"); + return renderTemplate`${renderComponent($$result, "Layout", $$Layout, { "title": "LimePot - Blog" }, { "default": ($$result2) => renderTemplate` ${maybeRenderHead()}
${allPosts.map((post) => renderTemplate``)}
` })}`; }, "/var/www/limepot-xyz/src/pages/blog.astro", void 0); const $$file = "/var/www/limepot-xyz/src/pages/blog.astro"; diff --git a/dist/chunks/pages/boilerplate.astro.01a3c183.mjs b/dist/chunks/boilerplate_LZJuf9-u.mjs similarity index 67% rename from dist/chunks/pages/boilerplate.astro.01a3c183.mjs rename to dist/chunks/boilerplate_LZJuf9-u.mjs index c65cdfd..a366eff 100644 --- a/dist/chunks/pages/boilerplate.astro.01a3c183.mjs +++ b/dist/chunks/boilerplate_LZJuf9-u.mjs @@ -1,14 +1,12 @@ -import { c as createAstro, a as createComponent, r as renderTemplate, f as renderComponent, m as maybeRenderHead } from '../astro.d5504d79.mjs'; -import 'html-escaper'; -import { $ as $$Layout } from './about.astro.9508f4d0.mjs'; -/* empty css *//* empty css */ +import { c as createAstro, a as createComponent, r as renderTemplate, b as renderComponent, m as maybeRenderHead } from './astro/server_hicMsD5u.mjs'; +import 'kleur/colors'; +import { $ as $$Layout } from './Layout_CawrnC6E.mjs'; + const $$Astro = createAstro("https://limepot.xyz"); const $$Boilerplate = createComponent(async ($$result, $$props, $$slots) => { const Astro2 = $$result.createAstro($$Astro, $$props, $$slots); Astro2.self = $$Boilerplate; - return renderTemplate`${renderComponent($$result, "Layout", $$Layout, { "title": "LimePot - " }, { "default": ($$result2) => renderTemplate` - ${maybeRenderHead()}
-` })}`; + return renderTemplate`${renderComponent($$result, "Layout", $$Layout, { "title": "LimePot - " }, { "default": ($$result2) => renderTemplate` ${maybeRenderHead()}
` })}`; }, "/var/www/limepot-xyz/src/pages/boilerplate.astro", void 0); const $$file = "/var/www/limepot-xyz/src/pages/boilerplate.astro"; diff --git a/dist/chunks/err404_CpHm5bGr.mjs b/dist/chunks/err404_CpHm5bGr.mjs new file mode 100644 index 0000000..583a2f3 --- /dev/null +++ b/dist/chunks/err404_CpHm5bGr.mjs @@ -0,0 +1,14 @@ +import { c as createAstro, a as createComponent, r as renderTemplate, f as addAttribute, d as renderHead, e as renderSlot } from './astro/server_hicMsD5u.mjs'; +import 'kleur/colors'; +import 'clsx'; +/* empty css */ + +const $$Astro = createAstro("https://limepot.xyz"); +const $$Err404 = createComponent(async ($$result, $$props, $$slots) => { + const Astro2 = $$result.createAstro($$Astro, $$props, $$slots); + Astro2.self = $$Err404; + const { title } = Astro2.props; + return renderTemplate` ${title}${renderHead()} ${renderSlot($$result, $$slots["default"])} `; +}, "/var/www/limepot-xyz/src/layouts/err404.astro", void 0); + +export { $$Err404 as $ }; diff --git a/dist/chunks/gmod_loading_jKr7b-lF.mjs b/dist/chunks/gmod_loading_jKr7b-lF.mjs new file mode 100644 index 0000000..8b09510 --- /dev/null +++ b/dist/chunks/gmod_loading_jKr7b-lF.mjs @@ -0,0 +1,16 @@ +import { c as createAstro, a as createComponent, r as renderTemplate, b as renderComponent, m as maybeRenderHead } from './astro/server_hicMsD5u.mjs'; +import 'kleur/colors'; +import { $ as $$Err404 } from './err404_CpHm5bGr.mjs'; +/* empty css */ + +const $$Astro = createAstro("https://limepot.xyz"); +const $$GmodLoading = createComponent(async ($$result, $$props, $$slots) => { + const Astro2 = $$result.createAstro($$Astro, $$props, $$slots); + Astro2.self = $$GmodLoading; + return renderTemplate`${renderComponent($$result, "Layout", $$Err404, { "title": "Loading...", "data-astro-cid-w5lhoovp": true }, { "default": ($$result2) => renderTemplate` ${maybeRenderHead()}
` })} `; +}, "/var/www/limepot-xyz/src/pages/export/gmod_loading.astro", void 0); + +const $$file = "/var/www/limepot-xyz/src/pages/export/gmod_loading.astro"; +const $$url = "/export/gmod_loading"; + +export { $$GmodLoading as default, $$file as file, $$url as url }; diff --git a/dist/chunks/index_KtCmHE6Q.mjs b/dist/chunks/index_KtCmHE6Q.mjs new file mode 100644 index 0000000..4581e7d --- /dev/null +++ b/dist/chunks/index_KtCmHE6Q.mjs @@ -0,0 +1,15 @@ +import { c as createAstro, a as createComponent, r as renderTemplate, b as renderComponent, m as maybeRenderHead } from './astro/server_hicMsD5u.mjs'; +import 'kleur/colors'; +import { $ as $$Layout } from './Layout_CawrnC6E.mjs'; + +const $$Astro = createAstro("https://limepot.xyz"); +const $$Index = createComponent(async ($$result, $$props, $$slots) => { + const Astro2 = $$result.createAstro($$Astro, $$props, $$slots); + Astro2.self = $$Index; + return renderTemplate`${renderComponent($$result, "Layout", $$Layout, { "title": "LimePot - Home" }, { "default": ($$result2) => renderTemplate` ${maybeRenderHead()}

Hello World


0 Days since last incident.

"Forever - is composed of Nows

\`Tis not a different time -

Except for Infiniteness -

And Latitude of Home -


From this - experienced Here -

Remove the Dates - to These -

Let Months dissolve in further Months -

And Years - exhale in Years ."

- Emily Dickinson
` })}`; +}, "/var/www/limepot-xyz/src/pages/index.astro", void 0); + +const $$file = "/var/www/limepot-xyz/src/pages/index.astro"; +const $$url = ""; + +export { $$Index as default, $$file as file, $$url as url }; diff --git a/dist/chunks/pages/404.astro.ac492b66.mjs b/dist/chunks/pages/404.astro.ac492b66.mjs deleted file mode 100644 index 408898f..0000000 --- a/dist/chunks/pages/404.astro.ac492b66.mjs +++ /dev/null @@ -1,48 +0,0 @@ -import { c as createAstro, a as createComponent, r as renderTemplate, b as addAttribute, d as renderHead, e as renderSlot, f as renderComponent, m as maybeRenderHead } from '../astro.d5504d79.mjs'; -import 'html-escaper'; -/* empty css *//* empty css */ -const $$Astro$1 = createAstro("https://limepot.xyz"); -const $$Err404 = createComponent(async ($$result, $$props, $$slots) => { - const Astro2 = $$result.createAstro($$Astro$1, $$props, $$slots); - Astro2.self = $$Err404; - const { title } = Astro2.props; - return renderTemplate` - - - - - - - ${title} - ${renderHead()} - - ${renderSlot($$result, $$slots["default"])} - `; -}, "/var/www/limepot-xyz/src/layouts/err404.astro", void 0); - -const $$Astro = createAstro("https://limepot.xyz"); -const $$404 = createComponent(async ($$result, $$props, $$slots) => { - const Astro2 = $$result.createAstro($$Astro, $$props, $$slots); - Astro2.self = $$404; - return renderTemplate`${renderComponent($$result, "Layout", $$Err404, { "title": "Error 404", "class": "astro-ZETDM5MD" }, { "default": ($$result2) => renderTemplate` - ${maybeRenderHead()}
- - - - - -
-` })}`; -}, "/var/www/limepot-xyz/src/pages/404.astro", void 0); - -const $$file = "/var/www/limepot-xyz/src/pages/404.astro"; -const $$url = "/404"; - -const _404 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({ - __proto__: null, - default: $$404, - file: $$file, - url: $$url -}, Symbol.toStringTag, { value: 'Module' })); - -export { $$Err404 as $, _404 as _ }; diff --git a/dist/chunks/pages/about.astro.9508f4d0.mjs b/dist/chunks/pages/about.astro.9508f4d0.mjs deleted file mode 100644 index e3d3716..0000000 --- a/dist/chunks/pages/about.astro.9508f4d0.mjs +++ /dev/null @@ -1,227 +0,0 @@ -import { c as createAstro, a as createComponent, r as renderTemplate, m as maybeRenderHead, b as addAttribute, f as renderComponent, d as renderHead, e as renderSlot } from '../astro.d5504d79.mjs'; -import 'html-escaper'; -/* empty css *//* empty css */ -const $$Astro$5 = createAstro("https://limepot.xyz"); -const $$Header = createComponent(async ($$result, $$props, $$slots) => { - const Astro2 = $$result.createAstro($$Astro$5, $$props, $$slots); - Astro2.self = $$Header; - return renderTemplate`${maybeRenderHead()} - - - - -`; -}, "/var/www/limepot-xyz/src/components/Header.astro", void 0); - -const $$Astro$4 = createAstro("https://limepot.xyz"); -const $$Head = createComponent(async ($$result, $$props, $$slots) => { - const Astro2 = $$result.createAstro($$Astro$4, $$props, $$slots); - Astro2.self = $$Head; - return renderTemplate` - - - - - - - - -`; -}, "/var/www/limepot-xyz/src/components/Head.astro", void 0); - -const $$Astro$3 = createAstro("https://limepot.xyz"); -const $$Footer = createComponent(async ($$result, $$props, $$slots) => { - const Astro2 = $$result.createAstro($$Astro$3, $$props, $$slots); - Astro2.self = $$Footer; - return renderTemplate`${maybeRenderHead()}
- -
`; -}, "/var/www/limepot-xyz/src/components/Footer.astro", void 0); - -const $$Astro$2 = createAstro("https://limepot.xyz"); -const $$Layout = createComponent(async ($$result, $$props, $$slots) => { - const Astro2 = $$result.createAstro($$Astro$2, $$props, $$slots); - Astro2.self = $$Layout; - const { title } = Astro2.props; - return renderTemplate` - - ${renderComponent($$result, "Head", $$Head, {})} - ${title} - ${renderHead()} - - ${renderComponent($$result, "Header", $$Header, {})} -
-
- ${renderSlot($$result, $$slots["default"])} -
-
- ${renderComponent($$result, "Footer", $$Footer, {})} - -`; -}, "/var/www/limepot-xyz/src/layouts/Layout.astro", void 0); - -const $$Astro$1 = createAstro("https://limepot.xyz"); -const $$Card = createComponent(async ($$result, $$props, $$slots) => { - const Astro2 = $$result.createAstro($$Astro$1, $$props, $$slots); - Astro2.self = $$Card; - const { href, title, body, source } = Astro2.props; - return renderTemplate`${maybeRenderHead()}`; -}, "/var/www/limepot-xyz/src/components/Card.astro", void 0); - -const $$Astro = createAstro("https://limepot.xyz"); -const $$About = createComponent(async ($$result, $$props, $$slots) => { - const Astro2 = $$result.createAstro($$Astro, $$props, $$slots); - Astro2.self = $$About; - return renderTemplate`${renderComponent($$result, "Layout", $$Layout, { "title": "LimePot - About" }, { "default": ($$result2) => renderTemplate` - ${maybeRenderHead()}
-
-
- -

Howdy Traveller!

-
- -

- I do a lot of tinkering with various things, hardware and software. - Currently messing around with Web Development, Minecraft mods, 3D - Printing, Linux, and Game Design. Checkout my Projects to see what I'm currently working on. -

-
- -

-

- Where to find/contact me: -


- -
-
-` })}`; -}, "/var/www/limepot-xyz/src/pages/about.astro", void 0); - -const $$file = "/var/www/limepot-xyz/src/pages/about.astro"; -const $$url = "/about"; - -const about = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({ - __proto__: null, - default: $$About, - file: $$file, - url: $$url -}, Symbol.toStringTag, { value: 'Module' })); - -export { $$Layout as $, $$Header as a, $$Footer as b, $$Card as c, about as d }; diff --git a/dist/chunks/pages/gmod_loading.astro.3a5a83d3.mjs b/dist/chunks/pages/gmod_loading.astro.3a5a83d3.mjs deleted file mode 100644 index 5e35364..0000000 --- a/dist/chunks/pages/gmod_loading.astro.3a5a83d3.mjs +++ /dev/null @@ -1,23 +0,0 @@ -import { c as createAstro, a as createComponent, r as renderTemplate, f as renderComponent, m as maybeRenderHead } from '../astro.d5504d79.mjs'; -import 'html-escaper'; -import { $ as $$Err404 } from './404.astro.ac492b66.mjs'; -/* empty css *//* empty css *//* empty css */ -const $$Astro = createAstro("https://limepot.xyz"); -const $$GmodLoading = createComponent(async ($$result, $$props, $$slots) => { - const Astro2 = $$result.createAstro($$Astro, $$props, $$slots); - Astro2.self = $$GmodLoading; - return renderTemplate`${renderComponent($$result, "Layout", $$Err404, { "title": "Loading...", "class": "astro-W5LHOOVP" }, { "default": ($$result2) => renderTemplate` - ${maybeRenderHead()}
- - - - - -
-` })}`; -}, "/var/www/limepot-xyz/src/pages/export/gmod_loading.astro", void 0); - -const $$file = "/var/www/limepot-xyz/src/pages/export/gmod_loading.astro"; -const $$url = "/export/gmod_loading"; - -export { $$GmodLoading as default, $$file as file, $$url as url }; diff --git a/dist/chunks/pages/index.astro.168b8b91.mjs b/dist/chunks/pages/index.astro.168b8b91.mjs deleted file mode 100644 index ceeaed7..0000000 --- a/dist/chunks/pages/index.astro.168b8b91.mjs +++ /dev/null @@ -1,38 +0,0 @@ -import { c as createAstro, a as createComponent, r as renderTemplate, f as renderComponent, m as maybeRenderHead } from '../astro.d5504d79.mjs'; -import 'html-escaper'; -import { $ as $$Layout } from './about.astro.9508f4d0.mjs'; -/* empty css *//* empty css */ -const $$Astro = createAstro("https://limepot.xyz"); -const $$Index = createComponent(async ($$result, $$props, $$slots) => { - const Astro2 = $$result.createAstro($$Astro, $$props, $$slots); - Astro2.self = $$Index; - return renderTemplate`${renderComponent($$result, "Layout", $$Layout, { "title": "LimePot - Home" }, { "default": ($$result2) => renderTemplate` - ${maybeRenderHead()}
-
-

- Hello World -

-
-
- 0 Days since last incident. -
-

"Forever - is composed of Nows

-

\`Tis not a different time -

-

Except for Infiniteness -

-

And Latitude of Home -

-
-

From this - experienced Here -

-

Remove the Dates - to These -

-

Let Months dissolve in further Months -

-

And Years - exhale in Years ."

-

- Emily Dickinson -
-
-
-` })}`; -}, "/var/www/limepot-xyz/src/pages/index.astro", void 0); - -const $$file = "/var/www/limepot-xyz/src/pages/index.astro"; -const $$url = ""; - -export { $$Index as default, $$file as file, $$url as url }; diff --git a/dist/chunks/pages/policy.astro.fe650f57.mjs b/dist/chunks/pages/policy.astro.fe650f57.mjs deleted file mode 100644 index 5e9ba3a..0000000 --- a/dist/chunks/pages/policy.astro.fe650f57.mjs +++ /dev/null @@ -1,70 +0,0 @@ -import { c as createAstro, a as createComponent, r as renderTemplate, f as renderComponent, m as maybeRenderHead } from '../astro.d5504d79.mjs'; -import 'html-escaper'; -import { $ as $$Layout } from './about.astro.9508f4d0.mjs'; -/* empty css *//* empty css */ -const $$Astro = createAstro("https://limepot.xyz"); -const $$Policy = createComponent(async ($$result, $$props, $$slots) => { - const Astro2 = $$result.createAstro($$Astro, $$props, $$slots); - Astro2.self = $$Policy; - return renderTemplate`${renderComponent($$result, "Layout", $$Layout, { "title": "Privacy Policy and Philosophy" }, { "default": ($$result2) => renderTemplate` - ${maybeRenderHead()}
-
-
-

Privacy & Security

-

- I try to use as little javascript as possible int he front-end of this - site, I use Bulma Which doesn't require JS in the frontend, I've used a little JS for the - mobile version, specifically the menu burger opening and closing). I do - however use Astro in the backend for server-side rendering (on the Staging Site), i mostly use this as a boilerplate solution, as i got tired of - entering the same copy-paste fields over and over again. but this site - will function if you turn JS off. -

-
-

I do not collect or store information.

-
-
-

Credits

- Or, at least, what I can credit -
- - - Made by me for this website! -
-
- I forgor πŸ’€ -
-
- I forgor πŸ’€ -
-
- I forgor πŸ’€ -
-
- I forgor πŸ’€ -
- - I forgor πŸ’€ -
-
- Chjara! -
- - easrng -
- - Volted Rina -
- - - - - -
-
-` })}`; -}, "/var/www/limepot-xyz/src/pages/policy.astro", void 0); - -const $$file = "/var/www/limepot-xyz/src/pages/policy.astro"; -const $$url = "/policy"; - -export { $$Policy as default, $$file as file, $$url as url }; diff --git a/dist/chunks/pages/post-1.md.3cc22013.mjs b/dist/chunks/pages/post-1.md.3cc22013.mjs deleted file mode 100644 index 0d8826c..0000000 --- a/dist/chunks/pages/post-1.md.3cc22013.mjs +++ /dev/null @@ -1,69 +0,0 @@ -import { c as createAstro, a as createComponent, r as renderTemplate, f as renderComponent, d as renderHead, e as renderSlot, g as createVNode, s as spreadAttributes, F as Fragment } from '../astro.d5504d79.mjs'; -import 'html-escaper'; -import { a as $$Header, b as $$Footer } from './about.astro.9508f4d0.mjs'; -/* empty css *//* empty css */ -const $$Astro = createAstro("https://limepot.xyz"); -const $$MDPost = createComponent(async ($$result, $$props, $$slots) => { - const Astro2 = $$result.createAstro($$Astro, $$props, $$slots); - Astro2.self = $$MDPost; - const { title } = Astro2.props; - const { frontmatter } = Astro2.props; - return renderTemplate` -${renderComponent($$result, "Head", Head, {})} -${title} -${renderHead()} -${renderComponent($$result, "Header", $$Header, {})} -
-

${frontmatter.title}

-

Summary: ${frontmatter.description} - Written by ${frontmatter.author} on ${frontmatter.pubDate.slice(0, 10)}

-
-
-${renderSlot($$result, $$slots["default"])} -${renderComponent($$result, "Footer", $$Footer, {})}`; -}, "/var/www/limepot-xyz/src/layouts/MDPost.astro", void 0); - -const images = { - - }; - - function updateImageReferences(html) { - return html.replaceAll( - /__ASTRO_IMAGE_="([^"]+)"/gm, - (full, imagePath) => spreadAttributes({src: images[imagePath].src, ...images[imagePath].attributes}) - ); - } - - const html = updateImageReferences("

β€œWhats your setup like?” I hear nobody asking, I’m glad you asked!

\n

My personal machine currently has:

\n

AMD Ryzen 5 2700, 32 GiB DDR4 3200 RAM, 2TB Internal Storage, and 1TB External Storage, I’m running Arch Linux installed with some custom scripts I’m making, I use KDE Plasma (6 broke wayland aaaaa!).

\n\n

My Server setup, was more frankensteined together from old parts I had or bought or were given:

\n

Intel i5-3470, 8 GiB RAM, 2 TB External drive, 2 500 GiB HDD’s running in parallel in a software RAID, a 200GiB HDD for the OS, and one more 200GiB for other storage.

\n

Its running Ubuntu Jammy(boooooo, itd be debian or arch but i’m too lazy to redo my entire setup right now). I plan to heavily upgrade this bad boy when I have the time and money, it runs pretty much everything, the git repo, the fediverse, matrix, game servers, its definitely choking on that memory though.

\n\n

I also have a Raspberry Pi 4B

\n

8GiB Model, running, you guessed it, raspbian, it uses 64 GiB External drive as its os drive, i dont trust microSD in the SLIGHTEST. This thing actually holds up the entire infra with its chadlike beefy little arms. So proud of her.

\n"); - - const frontmatter = {"layout":"../../layouts/MDPost.astro","title":"My Setup(s)!","pubDate":"2024-04-17T00:00:00.000Z","description":"Ever wonder what Im running?","author":"LimePotato","image":{"url":"/assets/branding/obo.svg","alt":"Website Icon"},"tags":["first","blogging","computer","setup","neofetch"]}; - const file = "/var/www/limepot-xyz/src/pages/posts/post-1.md"; - const url = "/posts/post-1"; - function rawContent() { - return "# \"Whats your setup like?\" I hear nobody asking, I'm glad you asked!\n\n### My personal machine currently has: \nAMD Ryzen 5 2700, 32 GiB DDR4 3200 RAM, 2TB Internal Storage, and 1TB External Storage, I'm running Arch Linux installed with some custom scripts I'm making, I use KDE Plasma (6 broke wayland aaaaa!).\n\n\n\n\n### My Server setup, was more frankensteined together from old parts I had or bought or were given: \nIntel i5-3470, 8 GiB RAM, 2 TB External drive, 2 500 GiB HDD's running in parallel in a software RAID, a 200GiB HDD for the OS, and one more 200GiB for other storage. \n\nIts running Ubuntu Jammy(boooooo, itd be debian or arch but i'm too lazy to redo my entire setup right now). I plan to heavily upgrade this bad boy when I have the time and money, it runs pretty much everything, the git repo, the fediverse, matrix, game servers, its definitely choking on that memory though.\n\n\n\n### I also have a Raspberry Pi 4B\n8GiB Model, running, you guessed it, raspbian, it uses 64 GiB External drive as its os drive, i dont trust microSD in the SLIGHTEST. This thing actually holds up the entire infra with its chadlike beefy little arms. So proud of her.\n\n"; - } - function compiledContent() { - return html; - } - function getHeadings() { - return [{"depth":1,"slug":"whats-your-setup-like-i-hear-nobody-asking-im-glad-you-asked","text":"β€œWhats your setup like?” I hear nobody asking, I’m glad you asked!"},{"depth":3,"slug":"my-personal-machine-currently-has","text":"My personal machine currently has:"},{"depth":3,"slug":"my-server-setup-was-more-frankensteined-together-from-old-parts-i-had-or-bought-or-were-given","text":"My Server setup, was more frankensteined together from old parts I had or bought or were given:"},{"depth":3,"slug":"i-also-have-a-raspberry-pi-4b","text":"I also have a Raspberry Pi 4B"}]; - } - async function Content() { - const { layout, ...content } = frontmatter; - content.file = file; - content.url = url; - const contentFragment = createVNode(Fragment, { 'set:html': html }); - return createVNode($$MDPost, { - file, - url, - content, - frontmatter: content, - headings: getHeadings(), - rawContent, - compiledContent, - 'server:root': true, - children: contentFragment - }); - } - Content[Symbol.for('astro.needsHeadRendering')] = false; - -export { Content, compiledContent, Content as default, file, frontmatter, getHeadings, images, rawContent, url }; diff --git a/dist/chunks/policy_iQ5HQ9Hx.mjs b/dist/chunks/policy_iQ5HQ9Hx.mjs new file mode 100644 index 0000000..7db352c --- /dev/null +++ b/dist/chunks/policy_iQ5HQ9Hx.mjs @@ -0,0 +1,22 @@ +import { c as createAstro, a as createComponent, r as renderTemplate, b as renderComponent, m as maybeRenderHead } from './astro/server_hicMsD5u.mjs'; +import 'kleur/colors'; +import { $ as $$Layout } from './Layout_CawrnC6E.mjs'; + +const $$Astro = createAstro("https://limepot.xyz"); +const $$Policy = createComponent(async ($$result, $$props, $$slots) => { + const Astro2 = $$result.createAstro($$Astro, $$props, $$slots); + Astro2.self = $$Policy; + return renderTemplate`${renderComponent($$result, "Layout", $$Layout, { "title": "Privacy Policy and Philosophy" }, { "default": ($$result2) => renderTemplate` ${maybeRenderHead()}

Privacy & Security

+I try to use as little javascript as possible int he front-end of this + site, I use Bulma Which doesn't require JS in the frontend, I've used a little JS for the + mobile version, specifically the menu burger opening and closing). I do + however use Astro in the backend for server-side rendering (on the Staging Site), i mostly use this as a boilerplate solution, as i got tired of + entering the same copy-paste fields over and over again. but this site + will function if you turn JS off. +


I do not collect or store information.


Credits

Or, at least, what I can credit
Made by me for this website!
I forgor πŸ’€
I forgor πŸ’€
I forgor πŸ’€
I forgor πŸ’€
I forgor πŸ’€
Chjara!
easrng
Volted Rina
` })}`; +}, "/var/www/limepot-xyz/src/pages/policy.astro", void 0); + +const $$file = "/var/www/limepot-xyz/src/pages/policy.astro"; +const $$url = "/policy"; + +export { $$Policy as default, $$file as file, $$url as url }; diff --git a/dist/chunks/post-1_wnSHKF64.mjs b/dist/chunks/post-1_wnSHKF64.mjs new file mode 100644 index 0000000..86ed740 --- /dev/null +++ b/dist/chunks/post-1_wnSHKF64.mjs @@ -0,0 +1,48 @@ +import { c as createAstro, a as createComponent, r as renderTemplate, b as renderComponent, d as renderHead, e as renderSlot, u as unescapeHTML } from './astro/server_hicMsD5u.mjs'; +import 'kleur/colors'; +import { $ as $$Header, a as $$Footer } from './Footer_CghiVcD1.mjs'; + +const $$Astro = createAstro("https://limepot.xyz"); +const $$MDPost = createComponent(async ($$result, $$props, $$slots) => { + const Astro2 = $$result.createAstro($$Astro, $$props, $$slots); + Astro2.self = $$MDPost; + const { title } = Astro2.props; + const { frontmatter } = Astro2.props; + return renderTemplate`${renderComponent($$result, "Head", Head, {})}${title}${renderHead()} ${renderComponent($$result, "Header", $$Header, {})}

${frontmatter.title}

Summary: ${frontmatter.description} - Written by ${frontmatter.author} on ${frontmatter.pubDate.slice(0, 10)}


${renderSlot($$result, $$slots["default"])} ${renderComponent($$result, "Footer", $$Footer, {})}`; +}, "/var/www/limepot-xyz/src/layouts/MDPost.astro", void 0); + +const html = "

β€œWhats your setup like?” I hear nobody asking, I’m glad you asked!

\n

My personal machine currently has:

\n

AMD Ryzen 5 2700, 32 GiB DDR4 3200 RAM, 2TB Internal Storage, and 1TB External Storage, I’m running Arch Linux installed with some custom scripts I’m making, I use KDE Plasma (6 broke wayland aaaaa!).

\n\n

My Server setup, was more frankensteined together from old parts I had or bought or were given:

\n

Intel i5-3470, 8 GiB RAM, 2 TB External drive, 2 500 GiB HDD’s running in parallel in a software RAID, a 200GiB HDD for the OS, and one more 200GiB for other storage.

\n

Its running Ubuntu Jammy(boooooo, itd be debian or arch but i’m too lazy to redo my entire setup right now). I plan to heavily upgrade this bad boy when I have the time and money, it runs pretty much everything, the git repo, the fediverse, matrix, game servers, its definitely choking on that memory though.

\n\n

I also have a Raspberry Pi 4B

\n

8GiB Model, running, you guessed it, raspbian, it uses 64 GiB External drive as its os drive, i dont trust microSD in the SLIGHTEST. This thing actually holds up the entire infra with its chadlike beefy little arms. So proud of her.

\n"; + + const frontmatter = {"layout":"../../layouts/MDPost.astro","title":"My Setup(s)!","pubDate":"2024-04-17T00:00:00.000Z","description":"Ever wonder what Im running?","author":"LimePotato","image":{"url":"/assets/branding/obo.svg","alt":"Website Icon"},"tags":["first","blogging","computer","setup","neofetch"]}; + const file = "/var/www/limepot-xyz/src/pages/blog/post-1.md"; + const url = "/blog/post-1"; + function rawContent() { + return "# \"Whats your setup like?\" I hear nobody asking, I'm glad you asked!\n\n### My personal machine currently has: \nAMD Ryzen 5 2700, 32 GiB DDR4 3200 RAM, 2TB Internal Storage, and 1TB External Storage, I'm running Arch Linux installed with some custom scripts I'm making, I use KDE Plasma (6 broke wayland aaaaa!).\n\n\n\n\n### My Server setup, was more frankensteined together from old parts I had or bought or were given: \nIntel i5-3470, 8 GiB RAM, 2 TB External drive, 2 500 GiB HDD's running in parallel in a software RAID, a 200GiB HDD for the OS, and one more 200GiB for other storage. \n\nIts running Ubuntu Jammy(boooooo, itd be debian or arch but i'm too lazy to redo my entire setup right now). I plan to heavily upgrade this bad boy when I have the time and money, it runs pretty much everything, the git repo, the fediverse, matrix, game servers, its definitely choking on that memory though.\n\n\n\n### I also have a Raspberry Pi 4B\n8GiB Model, running, you guessed it, raspbian, it uses 64 GiB External drive as its os drive, i dont trust microSD in the SLIGHTEST. This thing actually holds up the entire infra with its chadlike beefy little arms. So proud of her.\n\n"; + } + function compiledContent() { + return html; + } + function getHeadings() { + return [{"depth":1,"slug":"whats-your-setup-like-i-hear-nobody-asking-im-glad-you-asked","text":"β€œWhats your setup like?” I hear nobody asking, I’m glad you asked!"},{"depth":3,"slug":"my-personal-machine-currently-has","text":"My personal machine currently has:"},{"depth":3,"slug":"my-server-setup-was-more-frankensteined-together-from-old-parts-i-had-or-bought-or-were-given","text":"My Server setup, was more frankensteined together from old parts I had or bought or were given:"},{"depth":3,"slug":"i-also-have-a-raspberry-pi-4b","text":"I also have a Raspberry Pi 4B"}]; + } + + const Content = createComponent((result, _props, slots) => { + const { layout, ...content } = frontmatter; + content.file = file; + content.url = url; + + return renderTemplate`${renderComponent(result, 'Layout', $$MDPost, { + file, + url, + content, + frontmatter: content, + headings: getHeadings(), + rawContent, + compiledContent, + 'server:root': true, + }, { + 'default': () => renderTemplate`${unescapeHTML(html)}` + })}`; + }); + +export { Content, compiledContent, Content as default, file, frontmatter, getHeadings, rawContent, url }; diff --git a/dist/chunks/pages/projects.astro.39c213ab.mjs b/dist/chunks/projects_BICtSZQk.mjs similarity index 60% rename from dist/chunks/pages/projects.astro.39c213ab.mjs rename to dist/chunks/projects_BICtSZQk.mjs index b095e77..f84dfc7 100644 --- a/dist/chunks/pages/projects.astro.39c213ab.mjs +++ b/dist/chunks/projects_BICtSZQk.mjs @@ -1,20 +1,13 @@ -import { c as createAstro, a as createComponent, r as renderTemplate, f as renderComponent, m as maybeRenderHead } from '../astro.d5504d79.mjs'; -import 'html-escaper'; -import { c as $$Card, $ as $$Layout } from './about.astro.9508f4d0.mjs'; -/* empty css *//* empty css */ +import { c as createAstro, a as createComponent, r as renderTemplate, b as renderComponent, m as maybeRenderHead } from './astro/server_hicMsD5u.mjs'; +import 'kleur/colors'; +import { $ as $$Layout } from './Layout_CawrnC6E.mjs'; +import { $ as $$Card } from './Card_pRdOXvZu.mjs'; + const $$Astro = createAstro("https://limepot.xyz"); const $$Projects = createComponent(async ($$result, $$props, $$slots) => { const Astro2 = $$result.createAstro($$Astro, $$props, $$slots); Astro2.self = $$Projects; - return renderTemplate`${renderComponent($$result, "Layout", $$Layout, { "title": "LimePot - Projects " }, { "default": ($$result2) => renderTemplate` - ${maybeRenderHead()}
-
-

- Profiles/Portfolios -


- -


-

- Individual Projects -

-


Individual Projects

-
-
-` })}`; + --> ` })}`; }, "/var/www/limepot-xyz/src/pages/projects.astro", void 0); const $$file = "/var/www/limepot-xyz/src/pages/projects.astro"; diff --git a/dist/chunks/pages/rss.xml.js.d214252b.mjs b/dist/chunks/rss.xml_CRCPXvq7.mjs similarity index 83% rename from dist/chunks/pages/rss.xml.js.d214252b.mjs rename to dist/chunks/rss.xml_CRCPXvq7.mjs index 3e3f48e..5df1f86 100644 --- a/dist/chunks/pages/rss.xml.js.d214252b.mjs +++ b/dist/chunks/rss.xml_CRCPXvq7.mjs @@ -5,7 +5,7 @@ async function GET(context) { title: 'LimePot - Blog', description: 'Tis a blog maybe or something IG', site: context.site, - items: await pagesGlobToRssItems(/* #__PURE__ */ Object.assign({"./posts/post-1.md": () => import('./post-1.md.3cc22013.mjs')})), + items: await pagesGlobToRssItems(/* #__PURE__ */ Object.assign({"./blog/post-1.md": () => import('./post-1_wnSHKF64.mjs')})), customData: `en-us`, }); } diff --git a/dist/export/gmod_loading/index.html b/dist/export/gmod_loading/index.html deleted file mode 100644 index ff4d581..0000000 --- a/dist/export/gmod_loading/index.html +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - Loading... - - - - -
- - - - - -
- - \ No newline at end of file diff --git a/dist/index.html b/dist/index.html deleted file mode 100644 index ddf196b..0000000 --- a/dist/index.html +++ /dev/null @@ -1,141 +0,0 @@ - - - - - - - - - - - - - - LimePot - Home - - - - - - - - -
-
- -
-
-

- Hello World -

-
-
- 0 Days since last incident. -
-

"Forever - is composed of Nows

-

`Tis not a different time -

-

Except for Infiniteness -

-

And Latitude of Home -

-
-

From this - experienced Here -

-

Remove the Dates - to These -

-

Let Months dissolve in further Months -

-

And Years - exhale in Years ."

-

- Emily Dickinson -
-
-
- -
-
-
- -
- - \ No newline at end of file diff --git a/dist/manifest_C_FXowUQ.mjs b/dist/manifest_C_FXowUQ.mjs new file mode 100644 index 0000000..9af38e9 --- /dev/null +++ b/dist/manifest_C_FXowUQ.mjs @@ -0,0 +1,88 @@ +import '@astrojs/internal-helpers/path'; +import 'cookie'; +import 'kleur/colors'; +import './chunks/astro/server_hicMsD5u.mjs'; +import 'clsx'; +import { compile } from 'path-to-regexp'; + +if (typeof process !== "undefined") { + let proc = process; + if ("argv" in proc && Array.isArray(proc.argv)) { + if (proc.argv.includes("--verbose")) ; else if (proc.argv.includes("--silent")) ; else ; + } +} + +function getRouteGenerator(segments, addTrailingSlash) { + const template = segments.map((segment) => { + return "/" + segment.map((part) => { + if (part.spread) { + return `:${part.content.slice(3)}(.*)?`; + } else if (part.dynamic) { + return `:${part.content}`; + } else { + return part.content.normalize().replace(/\?/g, "%3F").replace(/#/g, "%23").replace(/%5B/g, "[").replace(/%5D/g, "]").replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); + } + }).join(""); + }).join(""); + let trailing = ""; + if (addTrailingSlash === "always" && segments.length) { + trailing = "/"; + } + const toPath = compile(template + trailing); + return (params) => { + const path = toPath(params); + return path || "/"; + }; +} + +function deserializeRouteData(rawRouteData) { + return { + route: rawRouteData.route, + type: rawRouteData.type, + pattern: new RegExp(rawRouteData.pattern), + params: rawRouteData.params, + component: rawRouteData.component, + generate: getRouteGenerator(rawRouteData.segments, rawRouteData._meta.trailingSlash), + pathname: rawRouteData.pathname || void 0, + segments: rawRouteData.segments, + prerender: rawRouteData.prerender, + redirect: rawRouteData.redirect, + redirectRoute: rawRouteData.redirectRoute ? deserializeRouteData(rawRouteData.redirectRoute) : void 0, + fallbackRoutes: rawRouteData.fallbackRoutes.map((fallback) => { + return deserializeRouteData(fallback); + }), + isIndex: rawRouteData.isIndex + }; +} + +function deserializeManifest(serializedManifest) { + const routes = []; + for (const serializedRoute of serializedManifest.routes) { + routes.push({ + ...serializedRoute, + routeData: deserializeRouteData(serializedRoute.routeData) + }); + const route = serializedRoute; + route.routeData = deserializeRouteData(serializedRoute.routeData); + } + const assets = new Set(serializedManifest.assets); + const componentMetadata = new Map(serializedManifest.componentMetadata); + const inlinedScripts = new Map(serializedManifest.inlinedScripts); + const clientDirectives = new Map(serializedManifest.clientDirectives); + return { + // in case user middleware exists, this no-op middleware will be reassigned (see plugin-ssr.ts) + middleware(_, next) { + return next(); + }, + ...serializedManifest, + assets, + componentMetadata, + inlinedScripts, + clientDirectives, + routes + }; +} + +const manifest = deserializeManifest({"adapterName":"","routes":[{"file":"file:///var/www/limepot-xyz/dist/404.html","links":[],"scripts":[],"styles":[],"routeData":{"route":"/404","isIndex":false,"type":"page","pattern":"^\\/404\\/?$","segments":[[{"content":"404","dynamic":false,"spread":false}]],"params":[],"component":"src/pages/404.astro","pathname":"/404","prerender":true,"fallbackRoutes":[],"_meta":{"trailingSlash":"ignore"}}},{"file":"file:///var/www/limepot-xyz/dist/about/index.html","links":[],"scripts":[],"styles":[],"routeData":{"route":"/about","isIndex":false,"type":"page","pattern":"^\\/about\\/?$","segments":[[{"content":"about","dynamic":false,"spread":false}]],"params":[],"component":"src/pages/about.astro","pathname":"/about","prerender":true,"fallbackRoutes":[],"_meta":{"trailingSlash":"ignore"}}},{"file":"file:///var/www/limepot-xyz/dist/blog/post-1/index.html","links":[],"scripts":[],"styles":[],"routeData":{"route":"/blog/post-1","isIndex":false,"type":"page","pattern":"^\\/blog\\/post-1\\/?$","segments":[[{"content":"blog","dynamic":false,"spread":false}],[{"content":"post-1","dynamic":false,"spread":false}]],"params":[],"component":"src/pages/blog/post-1.md","pathname":"/blog/post-1","prerender":true,"fallbackRoutes":[],"_meta":{"trailingSlash":"ignore"}}},{"file":"file:///var/www/limepot-xyz/dist/blog/index.html","links":[],"scripts":[],"styles":[],"routeData":{"route":"/blog","isIndex":false,"type":"page","pattern":"^\\/blog\\/?$","segments":[[{"content":"blog","dynamic":false,"spread":false}]],"params":[],"component":"src/pages/blog.astro","pathname":"/blog","prerender":true,"fallbackRoutes":[],"_meta":{"trailingSlash":"ignore"}}},{"file":"file:///var/www/limepot-xyz/dist/boilerplate/index.html","links":[],"scripts":[],"styles":[],"routeData":{"route":"/boilerplate","isIndex":false,"type":"page","pattern":"^\\/boilerplate\\/?$","segments":[[{"content":"boilerplate","dynamic":false,"spread":false}]],"params":[],"component":"src/pages/boilerplate.astro","pathname":"/boilerplate","prerender":true,"fallbackRoutes":[],"_meta":{"trailingSlash":"ignore"}}},{"file":"file:///var/www/limepot-xyz/dist/export/gmod_loading/index.html","links":[],"scripts":[],"styles":[],"routeData":{"route":"/export/gmod_loading","isIndex":false,"type":"page","pattern":"^\\/export\\/gmod_loading\\/?$","segments":[[{"content":"export","dynamic":false,"spread":false}],[{"content":"gmod_loading","dynamic":false,"spread":false}]],"params":[],"component":"src/pages/export/gmod_loading.astro","pathname":"/export/gmod_loading","prerender":true,"fallbackRoutes":[],"_meta":{"trailingSlash":"ignore"}}},{"file":"file:///var/www/limepot-xyz/dist/policy/index.html","links":[],"scripts":[],"styles":[],"routeData":{"route":"/policy","isIndex":false,"type":"page","pattern":"^\\/policy\\/?$","segments":[[{"content":"policy","dynamic":false,"spread":false}]],"params":[],"component":"src/pages/policy.astro","pathname":"/policy","prerender":true,"fallbackRoutes":[],"_meta":{"trailingSlash":"ignore"}}},{"file":"file:///var/www/limepot-xyz/dist/projects/index.html","links":[],"scripts":[],"styles":[],"routeData":{"route":"/projects","isIndex":false,"type":"page","pattern":"^\\/projects\\/?$","segments":[[{"content":"projects","dynamic":false,"spread":false}]],"params":[],"component":"src/pages/projects.astro","pathname":"/projects","prerender":true,"fallbackRoutes":[],"_meta":{"trailingSlash":"ignore"}}},{"file":"file:///var/www/limepot-xyz/dist/rss.xml","links":[],"scripts":[],"styles":[],"routeData":{"route":"/rss.xml","isIndex":false,"type":"endpoint","pattern":"^\\/rss\\.xml\\/?$","segments":[[{"content":"rss.xml","dynamic":false,"spread":false}]],"params":[],"component":"src/pages/rss.xml.js","pathname":"/rss.xml","prerender":true,"fallbackRoutes":[],"_meta":{"trailingSlash":"ignore"}}},{"file":"file:///var/www/limepot-xyz/dist/index.html","links":[],"scripts":[],"styles":[],"routeData":{"route":"/","isIndex":true,"type":"page","pattern":"^\\/$","segments":[],"params":[],"component":"src/pages/index.astro","pathname":"/","prerender":true,"fallbackRoutes":[],"_meta":{"trailingSlash":"ignore"}}}],"site":"https://limepot.xyz","base":"/","trailingSlash":"ignore","compressHTML":true,"componentMetadata":[["/var/www/limepot-xyz/src/pages/blog/post-1.md",{"propagation":"none","containsHead":true}],["/var/www/limepot-xyz/src/pages/rss.xml.js",{"propagation":"none","containsHead":true}],["/var/www/limepot-xyz/src/pages/404.astro",{"propagation":"none","containsHead":true}],["/var/www/limepot-xyz/src/pages/export/gmod_loading.astro",{"propagation":"none","containsHead":true}],["/var/www/limepot-xyz/src/pages/about.astro",{"propagation":"none","containsHead":true}],["/var/www/limepot-xyz/src/pages/blog.astro",{"propagation":"none","containsHead":true}],["/var/www/limepot-xyz/src/pages/boilerplate.astro",{"propagation":"none","containsHead":true}],["/var/www/limepot-xyz/src/pages/index.astro",{"propagation":"none","containsHead":true}],["/var/www/limepot-xyz/src/pages/policy.astro",{"propagation":"none","containsHead":true}],["/var/www/limepot-xyz/src/pages/projects.astro",{"propagation":"none","containsHead":true}]],"renderers":[],"clientDirectives":[["idle","(()=>{var i=t=>{let e=async()=>{await(await t())()};\"requestIdleCallback\"in window?window.requestIdleCallback(e):setTimeout(e,200)};(self.Astro||(self.Astro={})).idle=i;window.dispatchEvent(new Event(\"astro:idle\"));})();"],["load","(()=>{var e=async t=>{await(await t())()};(self.Astro||(self.Astro={})).load=e;window.dispatchEvent(new Event(\"astro:load\"));})();"],["media","(()=>{var s=(i,t)=>{let a=async()=>{await(await i())()};if(t.value){let e=matchMedia(t.value);e.matches?a():e.addEventListener(\"change\",a,{once:!0})}};(self.Astro||(self.Astro={})).media=s;window.dispatchEvent(new Event(\"astro:media\"));})();"],["only","(()=>{var e=async t=>{await(await t())()};(self.Astro||(self.Astro={})).only=e;window.dispatchEvent(new Event(\"astro:only\"));})();"],["visible","(()=>{var l=(s,i,o)=>{let r=async()=>{await(await s())()},t=typeof i.value==\"object\"?i.value:void 0,c={rootMargin:t==null?void 0:t.rootMargin},n=new IntersectionObserver(e=>{for(let a of e)if(a.isIntersecting){n.disconnect(),r();break}},c);for(let e of o.children)n.observe(e)};(self.Astro||(self.Astro={})).visible=l;window.dispatchEvent(new Event(\"astro:visible\"));})();"]],"entryModules":{"\u0000noop-middleware":"_noop-middleware.mjs","\u0000@astro-page:src/pages/404@_@astro":"pages/404.astro.mjs","\u0000@astro-page:src/pages/about@_@astro":"pages/about.astro.mjs","\u0000@astro-page:src/pages/blog/post-1@_@md":"pages/blog/post-1.astro.mjs","\u0000@astro-page:src/pages/blog@_@astro":"pages/blog.astro.mjs","\u0000@astro-page:src/pages/boilerplate@_@astro":"pages/boilerplate.astro.mjs","\u0000@astro-page:src/pages/export/gmod_loading@_@astro":"pages/export/gmod_loading.astro.mjs","\u0000@astro-page:src/pages/policy@_@astro":"pages/policy.astro.mjs","\u0000@astro-page:src/pages/projects@_@astro":"pages/projects.astro.mjs","\u0000@astro-page:src/pages/rss.xml@_@js":"pages/rss.xml.astro.mjs","\u0000@astro-page:src/pages/index@_@astro":"pages/index.astro.mjs","\u0000@astro-renderers":"renderers.mjs","\u0000@astrojs-manifest":"manifest_C_FXowUQ.mjs","/src/pages/404.astro":"chunks/404_CUh0Bkcz.mjs","/src/pages/about.astro":"chunks/about_BaRd3lnA.mjs","/src/pages/blog/post-1.md":"chunks/post-1_wnSHKF64.mjs","/src/pages/blog.astro":"chunks/blog_BYIjjOIS.mjs","/src/pages/boilerplate.astro":"chunks/boilerplate_LZJuf9-u.mjs","/src/pages/export/gmod_loading.astro":"chunks/gmod_loading_jKr7b-lF.mjs","/src/pages/policy.astro":"chunks/policy_iQ5HQ9Hx.mjs","/src/pages/projects.astro":"chunks/projects_BICtSZQk.mjs","/src/pages/rss.xml.js":"chunks/rss.xml_CRCPXvq7.mjs","/src/pages/index.astro":"chunks/index_KtCmHE6Q.mjs","/astro/hoisted.js?q=0":"_astro/hoisted.CWPXpkFr.js","astro:scripts/before-hydration.js":""},"inlinedScripts":[],"assets":["/file:///var/www/limepot-xyz/dist/404.html","/file:///var/www/limepot-xyz/dist/about/index.html","/file:///var/www/limepot-xyz/dist/blog/post-1/index.html","/file:///var/www/limepot-xyz/dist/blog/index.html","/file:///var/www/limepot-xyz/dist/boilerplate/index.html","/file:///var/www/limepot-xyz/dist/export/gmod_loading/index.html","/file:///var/www/limepot-xyz/dist/policy/index.html","/file:///var/www/limepot-xyz/dist/projects/index.html","/file:///var/www/limepot-xyz/dist/rss.xml","/file:///var/www/limepot-xyz/dist/index.html"],"buildFormat":"directory","checkOrigin":false}); + +export { manifest }; diff --git a/dist/pages/404.astro.mjs b/dist/pages/404.astro.mjs index 3b6fea6..6388869 100644 --- a/dist/pages/404.astro.mjs +++ b/dist/pages/404.astro.mjs @@ -1,8 +1,5 @@ export { renderers } from '../renderers.mjs'; -export { onRequest } from '../_empty-middleware.mjs'; -import '../chunks/astro.d5504d79.mjs'; -import 'html-escaper'; -const page = () => import('../chunks/pages/404.astro.ac492b66.mjs').then(n => n._); +const page = () => import('../chunks/404_CUh0Bkcz.mjs'); export { page }; diff --git a/dist/pages/about.astro.mjs b/dist/pages/about.astro.mjs index 17ba72e..36ebbe2 100644 --- a/dist/pages/about.astro.mjs +++ b/dist/pages/about.astro.mjs @@ -1,8 +1,5 @@ export { renderers } from '../renderers.mjs'; -export { onRequest } from '../_empty-middleware.mjs'; -import '../chunks/astro.d5504d79.mjs'; -import 'html-escaper'; -const page = () => import('../chunks/pages/about.astro.9508f4d0.mjs').then(n => n.d); +const page = () => import('../chunks/about_BaRd3lnA.mjs'); export { page }; diff --git a/dist/pages/blog.astro.mjs b/dist/pages/blog.astro.mjs index d1c7750..7481776 100644 --- a/dist/pages/blog.astro.mjs +++ b/dist/pages/blog.astro.mjs @@ -1,8 +1,5 @@ export { renderers } from '../renderers.mjs'; -export { onRequest } from '../_empty-middleware.mjs'; -import '../chunks/astro.d5504d79.mjs'; -import 'html-escaper'; -const page = () => import('../chunks/pages/blog.astro.9ddd7656.mjs'); +const page = () => import('../chunks/blog_BYIjjOIS.mjs'); export { page }; diff --git a/dist/pages/blog/post-1.astro.mjs b/dist/pages/blog/post-1.astro.mjs new file mode 100644 index 0000000..3efc71f --- /dev/null +++ b/dist/pages/blog/post-1.astro.mjs @@ -0,0 +1,5 @@ +export { renderers } from '../../renderers.mjs'; + +const page = () => import('../../chunks/post-1_wnSHKF64.mjs'); + +export { page }; diff --git a/dist/pages/boilerplate.astro.mjs b/dist/pages/boilerplate.astro.mjs index 626922c..8ac6cfe 100644 --- a/dist/pages/boilerplate.astro.mjs +++ b/dist/pages/boilerplate.astro.mjs @@ -1,8 +1,5 @@ export { renderers } from '../renderers.mjs'; -export { onRequest } from '../_empty-middleware.mjs'; -import '../chunks/astro.d5504d79.mjs'; -import 'html-escaper'; -const page = () => import('../chunks/pages/boilerplate.astro.01a3c183.mjs'); +const page = () => import('../chunks/boilerplate_LZJuf9-u.mjs'); export { page }; diff --git a/dist/pages/export/gmod_loading.astro.mjs b/dist/pages/export/gmod_loading.astro.mjs index 4560c5c..5f18404 100644 --- a/dist/pages/export/gmod_loading.astro.mjs +++ b/dist/pages/export/gmod_loading.astro.mjs @@ -1,8 +1,5 @@ export { renderers } from '../../renderers.mjs'; -export { onRequest } from '../../_empty-middleware.mjs'; -import '../../chunks/astro.d5504d79.mjs'; -import 'html-escaper'; -const page = () => import('../../chunks/pages/gmod_loading.astro.3a5a83d3.mjs'); +const page = () => import('../../chunks/gmod_loading_jKr7b-lF.mjs'); export { page }; diff --git a/dist/pages/index.astro.mjs b/dist/pages/index.astro.mjs index 0c0cd4c..03dfeb0 100644 --- a/dist/pages/index.astro.mjs +++ b/dist/pages/index.astro.mjs @@ -1,8 +1,5 @@ export { renderers } from '../renderers.mjs'; -export { onRequest } from '../_empty-middleware.mjs'; -import '../chunks/astro.d5504d79.mjs'; -import 'html-escaper'; -const page = () => import('../chunks/pages/index.astro.168b8b91.mjs'); +const page = () => import('../chunks/index_KtCmHE6Q.mjs'); export { page }; diff --git a/dist/pages/policy.astro.mjs b/dist/pages/policy.astro.mjs index b8194b2..d2ce31c 100644 --- a/dist/pages/policy.astro.mjs +++ b/dist/pages/policy.astro.mjs @@ -1,8 +1,5 @@ export { renderers } from '../renderers.mjs'; -export { onRequest } from '../_empty-middleware.mjs'; -import '../chunks/astro.d5504d79.mjs'; -import 'html-escaper'; -const page = () => import('../chunks/pages/policy.astro.fe650f57.mjs'); +const page = () => import('../chunks/policy_iQ5HQ9Hx.mjs'); export { page }; diff --git a/dist/pages/posts/post-1.astro.mjs b/dist/pages/posts/post-1.astro.mjs deleted file mode 100644 index b35a971..0000000 --- a/dist/pages/posts/post-1.astro.mjs +++ /dev/null @@ -1,8 +0,0 @@ -export { renderers } from '../../renderers.mjs'; -export { onRequest } from '../../_empty-middleware.mjs'; -import '../../chunks/astro.d5504d79.mjs'; -import 'html-escaper'; - -const page = () => import('../../chunks/pages/post-1.md.3cc22013.mjs'); - -export { page }; diff --git a/dist/pages/projects.astro.mjs b/dist/pages/projects.astro.mjs index 2f56022..8c335b9 100644 --- a/dist/pages/projects.astro.mjs +++ b/dist/pages/projects.astro.mjs @@ -1,8 +1,5 @@ export { renderers } from '../renderers.mjs'; -export { onRequest } from '../_empty-middleware.mjs'; -import '../chunks/astro.d5504d79.mjs'; -import 'html-escaper'; -const page = () => import('../chunks/pages/projects.astro.39c213ab.mjs'); +const page = () => import('../chunks/projects_BICtSZQk.mjs'); export { page }; diff --git a/dist/pages/rss.xml.astro.mjs b/dist/pages/rss.xml.astro.mjs index 33320da..5e07265 100644 --- a/dist/pages/rss.xml.astro.mjs +++ b/dist/pages/rss.xml.astro.mjs @@ -1,8 +1,5 @@ export { renderers } from '../renderers.mjs'; -export { onRequest } from '../_empty-middleware.mjs'; -import '../chunks/astro.d5504d79.mjs'; -import 'html-escaper'; -const page = () => import('../chunks/pages/rss.xml.js.d214252b.mjs'); +const page = () => import('../chunks/rss.xml_CRCPXvq7.mjs'); export { page }; diff --git a/dist/policy/index.html b/dist/policy/index.html deleted file mode 100644 index f8d2a65..0000000 --- a/dist/policy/index.html +++ /dev/null @@ -1,173 +0,0 @@ - - - - - - - - - - - - - - Privacy Policy and Philosophy - - - - - - - - -
-
- -
-
-
-

Privacy & Security

-

- I try to use as little javascript as possible int he front-end of this - site, I use Bulma Which doesn't require JS in the frontend, I've used a little JS for the - mobile version, specifically the menu burger opening and closing). I do - however use Astro in the backend for server-side rendering (on the Staging Site), i mostly use this as a boilerplate solution, as i got tired of - entering the same copy-paste fields over and over again. but this site - will function if you turn JS off. -

-
-

I do not collect or store information.

-
-
-

Credits

- Or, at least, what I can credit -
- - - Made by me for this website! -
-
- I forgor πŸ’€ -
-
- I forgor πŸ’€ -
-
- I forgor πŸ’€ -
-
- I forgor πŸ’€ -
- - I forgor πŸ’€ -
-
- Chjara! -
- - easrng -
- - Volted Rina -
- - - - - -
-
- -
-
-
- -
- - \ No newline at end of file diff --git a/dist/projects/index.html b/dist/projects/index.html deleted file mode 100644 index 2f9c47f..0000000 --- a/dist/projects/index.html +++ /dev/null @@ -1,246 +0,0 @@ - - - - - - - - - - - - - - LimePot - Projects - - - - - - - - - -
- -
-
- -
- - \ No newline at end of file diff --git a/dist/renderers.mjs b/dist/renderers.mjs index eab4e95..a97849f 100644 --- a/dist/renderers.mjs +++ b/dist/renderers.mjs @@ -1,6 +1,3 @@ -import { h as server_default } from './chunks/astro.d5504d79.mjs'; -import 'html-escaper'; - -const renderers = [Object.assign({"name":"astro:jsx","serverEntrypoint":"astro/jsx/server.js","jsxImportSource":"astro"}, { ssr: server_default }),]; +const renderers = []; export { renderers }; diff --git a/src/pages/blog/ [...slug].astro b/src/pages/blog/ [...slug].astro deleted file mode 100644 index 07dbce2..0000000 --- a/src/pages/blog/ [...slug].astro +++ /dev/null @@ -1,20 +0,0 @@ ---- -import { type CollectionEntry, getCollection } from 'astro:content'; -import BlogPost from '../../layouts/BlogPost.astro'; - -export async function getStaticPaths() { - const posts = await getCollection('blog'); - return posts.map((post) => ({ - params: { slug: post.slug }, - props: post, - })); -} -type Props = CollectionEntry<'blog'>; - -const post = Astro.props; -const { Content } = await post.render(); ---- - - - - diff --git a/src/content/blog/post-1.md b/src/pages/blog/post-1.md similarity index 100% rename from src/content/blog/post-1.md rename to src/pages/blog/post-1.md