Update Astro core and fix ViewTransitions import
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -0,0 +1,7 @@
|
||||
const serverIslandMap = new Map([
|
||||
|
||||
]);
|
||||
|
||||
const serverIslandNameMap = new Map([]);
|
||||
|
||||
export { serverIslandMap, serverIslandNameMap };
|
||||
@@ -0,0 +1,3 @@
|
||||
const _virtual_astro_sessionDriver = null;
|
||||
|
||||
export { _virtual_astro_sessionDriver as default };
|
||||
@@ -0,0 +1,21 @@
|
||||
import { c as createComponent } from './astro-component_Dg_tJ-jn.mjs';
|
||||
import { l as renderComponent, r as renderTemplate, m as maybeRenderHead } from './entrypoint_CZ7e8met.mjs';
|
||||
import { $ as $$Layout } from './Layout_CFTVjyCn.mjs';
|
||||
|
||||
const $$Apply = createComponent(($$result, $$props, $$slots) => {
|
||||
return renderTemplate`${renderComponent($$result, "Layout", $$Layout, { "title": "Registration | UP IECEP" }, { "default": ($$result2) => renderTemplate` ${maybeRenderHead()}<section class="registration-section"> <h1>Registration Portal</h1> <strong>Coming soon</strong> </section> ` })}`;
|
||||
}, "/Users/kntdgrtnnly/Documents/upiecep/upiecep-website/src/pages/apply.astro", void 0);
|
||||
|
||||
const $$file = "/Users/kntdgrtnnly/Documents/upiecep/upiecep-website/src/pages/apply.astro";
|
||||
const $$url = "/apply";
|
||||
|
||||
const _page = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
||||
__proto__: null,
|
||||
default: $$Apply,
|
||||
file: $$file,
|
||||
url: $$url
|
||||
}, Symbol.toStringTag, { value: 'Module' }));
|
||||
|
||||
const page = () => _page;
|
||||
|
||||
export { page };
|
||||
@@ -0,0 +1,37 @@
|
||||
import { A as AstroError, v as InvalidComponentArgs } from './entrypoint_CZ7e8met.mjs';
|
||||
|
||||
function validateArgs(args) {
|
||||
if (args.length !== 3) return false;
|
||||
if (!args[0] || typeof args[0] !== "object") return false;
|
||||
return true;
|
||||
}
|
||||
function baseCreateComponent(cb, moduleId, propagation) {
|
||||
const name = moduleId?.split("/").pop()?.replace(".astro", "") ?? "";
|
||||
const fn = (...args) => {
|
||||
if (!validateArgs(args)) {
|
||||
throw new AstroError({
|
||||
...InvalidComponentArgs,
|
||||
message: InvalidComponentArgs.message(name)
|
||||
});
|
||||
}
|
||||
return cb(...args);
|
||||
};
|
||||
Object.defineProperty(fn, "name", { value: name, writable: false });
|
||||
fn.isAstroComponentFactory = true;
|
||||
fn.moduleId = moduleId;
|
||||
fn.propagation = propagation;
|
||||
return fn;
|
||||
}
|
||||
function createComponentWithOptions(opts) {
|
||||
const cb = baseCreateComponent(opts.factory, opts.moduleId, opts.propagation);
|
||||
return cb;
|
||||
}
|
||||
function createComponent(arg1, moduleId, propagation) {
|
||||
if (typeof arg1 === "function") {
|
||||
return baseCreateComponent(arg1, moduleId, propagation);
|
||||
} else {
|
||||
return createComponentWithOptions(arg1);
|
||||
}
|
||||
}
|
||||
|
||||
export { createComponent as c };
|
||||
@@ -0,0 +1,21 @@
|
||||
import { c as createComponent } from './astro-component_Dg_tJ-jn.mjs';
|
||||
import { l as renderComponent, r as renderTemplate, m as maybeRenderHead } from './entrypoint_CZ7e8met.mjs';
|
||||
import { $ as $$Layout, a as $$ContactDetails } from './Layout_CFTVjyCn.mjs';
|
||||
|
||||
const $$Contact = createComponent(($$result, $$props, $$slots) => {
|
||||
return renderTemplate`${renderComponent($$result, "Layout", $$Layout, { "title": "Contact | UP IECEP" }, { "default": ($$result2) => renderTemplate` ${maybeRenderHead()}<section class="contact-section"> <h1>Contact Us</h1> ${renderComponent($$result2, "ContactDetails", $$ContactDetails, { "displayTitle": false })} </section> ` })}`;
|
||||
}, "/Users/kntdgrtnnly/Documents/upiecep/upiecep-website/src/pages/contact.astro", void 0);
|
||||
|
||||
const $$file = "/Users/kntdgrtnnly/Documents/upiecep/upiecep-website/src/pages/contact.astro";
|
||||
const $$url = "/contact";
|
||||
|
||||
const _page = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
||||
__proto__: null,
|
||||
default: $$Contact,
|
||||
file: $$file,
|
||||
url: $$url
|
||||
}, Symbol.toStringTag, { value: 'Module' }));
|
||||
|
||||
const page = () => _page;
|
||||
|
||||
export { page };
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,21 @@
|
||||
import { c as createComponent } from './astro-component_Dg_tJ-jn.mjs';
|
||||
import { l as renderComponent, r as renderTemplate, m as maybeRenderHead } from './entrypoint_CZ7e8met.mjs';
|
||||
import { $ as $$Layout } from './Layout_CFTVjyCn.mjs';
|
||||
|
||||
const $$GetLicensed = createComponent(($$result, $$props, $$slots) => {
|
||||
return renderTemplate`${renderComponent($$result, "Layout", $$Layout, { "title": "Get Licensed | UP IECEP" }, { "default": ($$result2) => renderTemplate` ${maybeRenderHead()}<section> <h1>Get Licensed</h1> </section> ` })}`;
|
||||
}, "/Users/kntdgrtnnly/Documents/upiecep/upiecep-website/src/pages/get-licensed.astro", void 0);
|
||||
|
||||
const $$file = "/Users/kntdgrtnnly/Documents/upiecep/upiecep-website/src/pages/get-licensed.astro";
|
||||
const $$url = "/get-licensed";
|
||||
|
||||
const _page = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
||||
__proto__: null,
|
||||
default: $$GetLicensed,
|
||||
file: $$file,
|
||||
url: $$url
|
||||
}, Symbol.toStringTag, { value: 'Module' }));
|
||||
|
||||
const page = () => _page;
|
||||
|
||||
export { page };
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,174 @@
|
||||
import { c as createComponent } from './astro-component_Dg_tJ-jn.mjs';
|
||||
import { m as maybeRenderHead, h as addAttribute, r as renderTemplate, l as renderComponent } from './entrypoint_CZ7e8met.mjs';
|
||||
import { jsx, jsxs } from 'react/jsx-runtime';
|
||||
import { Swiper, SwiperSlide } from 'swiper/react';
|
||||
import { Navigation, Pagination } from 'swiper/modules';
|
||||
import { $ as $$Layout } from './Layout_CFTVjyCn.mjs';
|
||||
|
||||
const getLicensedPicture = new Proxy({"src":"/_astro/projects_getlicensed.8OZUwnDw.jpg","width":1408,"height":886,"format":"jpg"}, {
|
||||
get(target, name, receiver) {
|
||||
if (name === 'clone') {
|
||||
return structuredClone(target);
|
||||
}
|
||||
if (name === 'fsPath') {
|
||||
return "/Users/kntdgrtnnly/Documents/upiecep/upiecep-website/src/assets/images/projects_getlicensed.jpg";
|
||||
}
|
||||
|
||||
return target[name];
|
||||
}
|
||||
});
|
||||
|
||||
const iecepDayPicture = new Proxy({"src":"/_astro/projects_iecepday.DnP904Zh.jpg","width":4032,"height":2541,"format":"jpg"}, {
|
||||
get(target, name, receiver) {
|
||||
if (name === 'clone') {
|
||||
return structuredClone(target);
|
||||
}
|
||||
if (name === 'fsPath') {
|
||||
return "/Users/kntdgrtnnly/Documents/upiecep/upiecep-website/src/assets/images/projects_iecepday.jpg";
|
||||
}
|
||||
|
||||
return target[name];
|
||||
}
|
||||
});
|
||||
|
||||
const $$ProjectsAndCampaigns = createComponent(($$result, $$props, $$slots) => {
|
||||
return renderTemplate`${maybeRenderHead()}<section class="projects-and-campaigns-section" id="projects-and-campaigns"> <h2>Projects & Campaigns</h2> <div class="get-licensed"> <div class="get-licensed-text"> <h3>Get Licensed</h3> <p>
|
||||
An event aimed towards preparing Electronics Engineering (ECE) students
|
||||
to <strong>jumpstart their careers as future professionals</strong> and serves
|
||||
as an avenue for the interaction between ECE students from different universities/colleges
|
||||
in Metro Manila, licensed engineers, and professionals who have established
|
||||
themselves in the field.
|
||||
</p> <a href="get-licensed" class="learn-more">Learn More →</a> </div> <div class="get-licensed-picture"> <img${addAttribute(getLicensedPicture.src, "src")} alt="Get Licensed"> </div> </div> <div class="iecep-day"> <div class="iecep-day-picture"> <img${addAttribute(iecepDayPicture.src, "src")} alt="IECEP Day"> </div> <div class="iecep-day-text"> <h3>UP IECEP Day</h3> <p>
|
||||
An org-exclusive special celebration organized as an internal event
|
||||
catered for UP IECEP members. This includes an amazing race and other
|
||||
exciting activities and sharing fun moments between the organization's
|
||||
members to <strong>tighten the bond shared as ECE students</strong>.
|
||||
</p> <a href="iecep-day" class="learn-more">Learn More →</a> </div> </div> </section>`;
|
||||
}, "/Users/kntdgrtnnly/Documents/upiecep/upiecep-website/src/components/ProjectsAndCampaigns/ProjectsAndCampaigns.astro", void 0);
|
||||
|
||||
const Slider = () => {
|
||||
return /* @__PURE__ */ jsx("section", { className: "landing-slider-section", children: /* @__PURE__ */ jsx("div", { className: "landing-slider-container", children: /* @__PURE__ */ jsxs(
|
||||
Swiper,
|
||||
{
|
||||
modules: [Navigation, Pagination],
|
||||
navigation: true,
|
||||
pagination: {
|
||||
dynamicBullets: true,
|
||||
clickable: true
|
||||
},
|
||||
loop: true,
|
||||
centeredSlides: true,
|
||||
autoHeight: true,
|
||||
className: "landing-slider",
|
||||
children: [
|
||||
/* @__PURE__ */ jsx(SwiperSlide, { className: "landing-slider-slide landing", children: /* @__PURE__ */ jsxs("div", { className: "landing-panel", children: [
|
||||
/* @__PURE__ */ jsx("h1", { children: "One IECEP " }),
|
||||
/* @__PURE__ */ jsxs("span", { children: [
|
||||
"One Organization.",
|
||||
`
|
||||
`,
|
||||
"One Profession.",
|
||||
`
|
||||
`,
|
||||
"One Family"
|
||||
] }),
|
||||
/* @__PURE__ */ jsx("p", { children: "Institute of Electronics Engineers of the Philippines University of the Philippines Student Chapter" })
|
||||
] }) }),
|
||||
/* @__PURE__ */ jsx(SwiperSlide, { className: "landing-slider-slide app-process", children: /* @__PURE__ */ jsxs("div", { className: "app-process-panel", children: [
|
||||
/* @__PURE__ */ jsxs("h1", { children: [
|
||||
"Come and ",
|
||||
/* @__PURE__ */ jsx("br", {}),
|
||||
"Roll With Us!"
|
||||
] }),
|
||||
/* @__PURE__ */ jsx("span", { children: "Application Process - 2324A" }),
|
||||
/* @__PURE__ */ jsx("a", { href: "apply", className: "apply", children: "Apply Now! →" })
|
||||
] }) }),
|
||||
/* @__PURE__ */ jsx(SwiperSlide, { className: "landing-slider-slide get-licensed", children: /* @__PURE__ */ jsxs("div", { className: "get-licensed-panel", children: [
|
||||
/* @__PURE__ */ jsx("h1", { children: "Get Licensed 2024" }),
|
||||
/* @__PURE__ */ jsx("span", { children: "Geared Up for the Future" }),
|
||||
/* @__PURE__ */ jsx("a", { href: "get-licensed", className: "learn-more", children: "Learn More →" })
|
||||
] }) })
|
||||
]
|
||||
}
|
||||
) }) });
|
||||
};
|
||||
|
||||
const family1 = new Proxy({"src":"/_astro/family_1.Cnn-5HiK.png","width":406,"height":290,"format":"png"}, {
|
||||
get(target, name, receiver) {
|
||||
if (name === 'clone') {
|
||||
return structuredClone(target);
|
||||
}
|
||||
if (name === 'fsPath') {
|
||||
return "/Users/kntdgrtnnly/Documents/upiecep/upiecep-website/src/assets/images/family/family_1.png";
|
||||
}
|
||||
|
||||
return target[name];
|
||||
}
|
||||
});
|
||||
|
||||
const family2 = new Proxy({"src":"/_astro/family_2.s6jV6d3A.png","width":406,"height":290,"format":"png"}, {
|
||||
get(target, name, receiver) {
|
||||
if (name === 'clone') {
|
||||
return structuredClone(target);
|
||||
}
|
||||
if (name === 'fsPath') {
|
||||
return "/Users/kntdgrtnnly/Documents/upiecep/upiecep-website/src/assets/images/family/family_2.png";
|
||||
}
|
||||
|
||||
return target[name];
|
||||
}
|
||||
});
|
||||
|
||||
const family3 = new Proxy({"src":"/_astro/family_3.CzxcB1Ir.png","width":406,"height":290,"format":"png"}, {
|
||||
get(target, name, receiver) {
|
||||
if (name === 'clone') {
|
||||
return structuredClone(target);
|
||||
}
|
||||
if (name === 'fsPath') {
|
||||
return "/Users/kntdgrtnnly/Documents/upiecep/upiecep-website/src/assets/images/family/family_3.png";
|
||||
}
|
||||
|
||||
return target[name];
|
||||
}
|
||||
});
|
||||
|
||||
const $$Family = createComponent(($$result, $$props, $$slots) => {
|
||||
return renderTemplate`${maybeRenderHead()}<section class="family-section" id="people"> <h2>UP IECEP Family</h2> <div class="members-panel"> <div class="image-panel"> <img${addAttribute(family1.src, "src")} alt=""> <div class="image-panel-popup"> <h3>Current Members →</h3> <p>A short list of all the current members of UP IECEP</p> </div> </div> <div class="text-panel"> <div class="cover"> <h3>Current Members</h3> </div> <div class="under"> <h3>Current Members</h3> <strong>A short list of all the current members of UP IECEP</strong> </div> </div> <div class="image-panel"> <img${addAttribute(family2.src, "src")} alt=""> <div class="image-panel-popup"> <h3>Notable Members →</h3> <p>
|
||||
Some of UP IECEP’s most well respected and accomplished individuals
|
||||
</p> </div> </div> <div class="text-panel"> <div class="cover"> <h3>Executive Commitee</h3> </div> <div class="under"> <h3>Executive Committee</h3> <strong>A bit information about the current heads of each committee</strong> </div> </div> <div class="image-panel"> <img${addAttribute(family3.src, "src")} alt=""> <div class="image-panel-popup"> <h3>Executive Commitee →</h3> <p>A bit information about the current heads of each committee</p> </div> </div> <div class="text-panel"> <div class="cover"> <h3>Current Members</h3> </div> <div class="under"> <h3>Current Members</h3> <strong>A short list of all the current members of UP IECEP</strong> </div> </div> </div> </section>`;
|
||||
}, "/Users/kntdgrtnnly/Documents/upiecep/upiecep-website/src/components/Family/Family.astro", void 0);
|
||||
|
||||
const $$AboutUs = createComponent(($$result, $$props, $$slots) => {
|
||||
return renderTemplate`${maybeRenderHead()}<section class="about-us-section" id="about"> <div class="about-us-panel"> <h2>About Us</h2> <p> <strong>UP IECEP</strong> is an academic, non-profit, non-political duly recognized
|
||||
organization of the UP College of Engineering aimed at improving the academic
|
||||
performance of its members and to establish a common ground for BS ECE students
|
||||
in the Electrical and Electronics Engineering Institute.
|
||||
</p> </div> <div class="mission-vision"> <div class="mission-statement"> <h3>our mission</h3> <p>
|
||||
To uphold academic excellence, foster camaraderie, and promote holistic
|
||||
development among its members.
|
||||
</p> <p>
|
||||
To develop the skills and abilities of the members as future
|
||||
professionals.
|
||||
</p> </div> <div class="vision-statement"> <h3>our vision</h3> <p>
|
||||
To be an organization of humane, proficient, competitive and virtuous
|
||||
professionals.
|
||||
</p> </div> </div> </section>`;
|
||||
}, "/Users/kntdgrtnnly/Documents/upiecep/upiecep-website/src/components/AboutUs/AboutUs.astro", void 0);
|
||||
|
||||
const $$Index = createComponent(($$result, $$props, $$slots) => {
|
||||
return renderTemplate`${renderComponent($$result, "Layout", $$Layout, { "title": "UP IECEP" }, { "default": ($$result2) => renderTemplate` ${renderComponent($$result2, "Slider", Slider, { "client:load": true, "client:component-hydration": "load", "client:component-path": "/Users/kntdgrtnnly/Documents/upiecep/upiecep-website/src/components/Slider/Slider", "client:component-export": "default" })} ${renderComponent($$result2, "AboutUs", $$AboutUs, {})} ${renderComponent($$result2, "ProjectsAndCampaigns", $$ProjectsAndCampaigns, {})} ${renderComponent($$result2, "Family", $$Family, {})} ` })}`;
|
||||
}, "/Users/kntdgrtnnly/Documents/upiecep/upiecep-website/src/pages/index.astro", void 0);
|
||||
|
||||
const $$file = "/Users/kntdgrtnnly/Documents/upiecep/upiecep-website/src/pages/index.astro";
|
||||
const $$url = "";
|
||||
|
||||
const _page = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
||||
__proto__: null,
|
||||
default: $$Index,
|
||||
file: $$file,
|
||||
url: $$url
|
||||
}, Symbol.toStringTag, { value: 'Module' }));
|
||||
|
||||
const page = () => _page;
|
||||
|
||||
export { page };
|
||||
@@ -0,0 +1,3 @@
|
||||
const server = {};
|
||||
|
||||
export { server };
|
||||
@@ -0,0 +1,25 @@
|
||||
import { c as createComponent } from './astro-component_Dg_tJ-jn.mjs';
|
||||
import { l as renderComponent, r as renderTemplate, m as maybeRenderHead } from './entrypoint_CZ7e8met.mjs';
|
||||
import { $ as $$Layout } from './Layout_CFTVjyCn.mjs';
|
||||
|
||||
var __freeze = Object.freeze;
|
||||
var __defProp = Object.defineProperty;
|
||||
var __template = (cooked, raw) => __freeze(__defProp(cooked, "raw", { value: __freeze(cooked.slice()) }));
|
||||
var _a;
|
||||
const $$Page = createComponent(($$result, $$props, $$slots) => {
|
||||
return renderTemplate`${renderComponent($$result, "Layout", $$Layout, { "title": "UP IECEP" }, { "default": ($$result2) => renderTemplate(_a || (_a = __template([" ", '<section> <a href="/">To Index</a> </section> <script>\n console.log("test")\n <\/script> '])), maybeRenderHead()) })}`;
|
||||
}, "/Users/kntdgrtnnly/Documents/upiecep/upiecep-website/src/pages/page.astro", void 0);
|
||||
|
||||
const $$file = "/Users/kntdgrtnnly/Documents/upiecep/upiecep-website/src/pages/page.astro";
|
||||
const $$url = "/page";
|
||||
|
||||
const _page = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
||||
__proto__: null,
|
||||
default: $$Page,
|
||||
file: $$file,
|
||||
url: $$url
|
||||
}, Symbol.toStringTag, { value: 'Module' }));
|
||||
|
||||
const page = () => _page;
|
||||
|
||||
export { page };
|
||||
@@ -0,0 +1,142 @@
|
||||
import { A as AstroError, w as MissingSharp } from './entrypoint_CZ7e8met.mjs';
|
||||
import { b as baseService, p as parseQuality } from './generic_DFmc8mZo.mjs';
|
||||
|
||||
let sharp;
|
||||
const qualityTable = {
|
||||
low: 25,
|
||||
mid: 50,
|
||||
high: 80,
|
||||
max: 100
|
||||
};
|
||||
function resolveSharpQuality(quality) {
|
||||
if (!quality) return void 0;
|
||||
const parsedQuality = parseQuality(quality);
|
||||
if (typeof parsedQuality === "number") {
|
||||
return parsedQuality;
|
||||
}
|
||||
return quality in qualityTable ? qualityTable[quality] : void 0;
|
||||
}
|
||||
function resolveSharpEncoderOptions(transform, inputFormat, serviceConfig = {}) {
|
||||
const quality = resolveSharpQuality(transform.quality);
|
||||
switch (transform.format) {
|
||||
case "jpg":
|
||||
case "jpeg":
|
||||
return {
|
||||
...serviceConfig.jpeg,
|
||||
...quality === void 0 ? {} : { quality }
|
||||
};
|
||||
case "png":
|
||||
return {
|
||||
...serviceConfig.png,
|
||||
...quality === void 0 ? {} : { quality }
|
||||
};
|
||||
case "webp": {
|
||||
const webpOptions = {
|
||||
...serviceConfig.webp,
|
||||
...quality === void 0 ? {} : { quality }
|
||||
};
|
||||
if (inputFormat === "gif") {
|
||||
webpOptions.loop ??= 0;
|
||||
}
|
||||
return webpOptions;
|
||||
}
|
||||
case "avif":
|
||||
return {
|
||||
...serviceConfig.avif,
|
||||
...quality === void 0 ? {} : { quality }
|
||||
};
|
||||
default:
|
||||
return quality === void 0 ? void 0 : { quality };
|
||||
}
|
||||
}
|
||||
async function loadSharp() {
|
||||
let sharpImport;
|
||||
try {
|
||||
sharpImport = (await import('./index_BMX6-2tC.mjs').then(n => n.i)).default;
|
||||
} catch {
|
||||
throw new AstroError(MissingSharp);
|
||||
}
|
||||
sharpImport.cache(false);
|
||||
return sharpImport;
|
||||
}
|
||||
const fitMap = {
|
||||
fill: "fill",
|
||||
contain: "inside",
|
||||
cover: "cover",
|
||||
none: "outside",
|
||||
"scale-down": "inside",
|
||||
outside: "outside",
|
||||
inside: "inside"
|
||||
};
|
||||
const sharpService = {
|
||||
validateOptions: baseService.validateOptions,
|
||||
getURL: baseService.getURL,
|
||||
parseURL: baseService.parseURL,
|
||||
getHTMLAttributes: baseService.getHTMLAttributes,
|
||||
getSrcSet: baseService.getSrcSet,
|
||||
getRemoteSize: baseService.getRemoteSize,
|
||||
async transform(inputBuffer, transformOptions, config) {
|
||||
if (!sharp) sharp = await loadSharp();
|
||||
const transform = transformOptions;
|
||||
const kernel = config.service.config.kernel;
|
||||
if (transform.format === "svg") return { data: inputBuffer, format: "svg" };
|
||||
const result = sharp(inputBuffer, {
|
||||
failOnError: false,
|
||||
pages: -1,
|
||||
limitInputPixels: config.service.config.limitInputPixels
|
||||
});
|
||||
result.rotate();
|
||||
const { format } = await result.metadata();
|
||||
if (transform.width && transform.height) {
|
||||
const fit = transform.fit ? fitMap[transform.fit] ?? "inside" : void 0;
|
||||
result.resize({
|
||||
width: Math.round(transform.width),
|
||||
height: Math.round(transform.height),
|
||||
kernel,
|
||||
fit,
|
||||
position: transform.position,
|
||||
withoutEnlargement: true
|
||||
});
|
||||
} else if (transform.height && !transform.width) {
|
||||
result.resize({
|
||||
height: Math.round(transform.height),
|
||||
withoutEnlargement: true,
|
||||
kernel
|
||||
});
|
||||
} else if (transform.width) {
|
||||
result.resize({
|
||||
width: Math.round(transform.width),
|
||||
withoutEnlargement: true,
|
||||
kernel
|
||||
});
|
||||
}
|
||||
if (transform.background) {
|
||||
result.flatten({ background: transform.background });
|
||||
}
|
||||
if (transform.format) {
|
||||
const encoderOptions = resolveSharpEncoderOptions(transform, format, config.service.config);
|
||||
if (transform.format === "webp" && format === "gif") {
|
||||
result.webp(encoderOptions);
|
||||
} else if (transform.format === "webp") {
|
||||
result.webp(encoderOptions);
|
||||
} else if (transform.format === "png") {
|
||||
result.png(encoderOptions);
|
||||
} else if (transform.format === "avif") {
|
||||
result.avif(encoderOptions);
|
||||
} else if (transform.format === "jpeg" || transform.format === "jpg") {
|
||||
result.jpeg(encoderOptions);
|
||||
} else {
|
||||
result.toFormat(transform.format, encoderOptions);
|
||||
}
|
||||
}
|
||||
const { data, info } = await result.toBuffer({ resolveWithObject: true });
|
||||
const needsCopy = "buffer" in data && data.buffer instanceof SharedArrayBuffer;
|
||||
return {
|
||||
data: needsCopy ? new Uint8Array(data) : data,
|
||||
format: info.format
|
||||
};
|
||||
}
|
||||
};
|
||||
var sharp_default = sharpService;
|
||||
|
||||
export { sharp_default as default, resolveSharpEncoderOptions };
|
||||
@@ -0,0 +1,21 @@
|
||||
import { c as createComponent } from './astro-component_Dg_tJ-jn.mjs';
|
||||
import { l as renderComponent, r as renderTemplate, m as maybeRenderHead } from './entrypoint_CZ7e8met.mjs';
|
||||
import { $ as $$Layout } from './Layout_CFTVjyCn.mjs';
|
||||
|
||||
const $$Shop = createComponent(($$result, $$props, $$slots) => {
|
||||
return renderTemplate`${renderComponent($$result, "Layout", $$Layout, { "title": "Shop | UP IECEP" }, { "default": ($$result2) => renderTemplate` ${maybeRenderHead()}<section class="shop-section"> <h1>Shop</h1> <strong>Coming soon</strong> </section> ` })}`;
|
||||
}, "/Users/kntdgrtnnly/Documents/upiecep/upiecep-website/src/pages/shop.astro", void 0);
|
||||
|
||||
const $$file = "/Users/kntdgrtnnly/Documents/upiecep/upiecep-website/src/pages/shop.astro";
|
||||
const $$url = "/shop";
|
||||
|
||||
const _page = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
||||
__proto__: null,
|
||||
default: $$Shop,
|
||||
file: $$file,
|
||||
url: $$url
|
||||
}, Symbol.toStringTag, { value: 'Module' }));
|
||||
|
||||
const page = () => _page;
|
||||
|
||||
export { page };
|
||||
@@ -0,0 +1 @@
|
||||
export { y as default } from './chunks/entrypoint_CZ7e8met.mjs';
|
||||
@@ -0,0 +1,3 @@
|
||||
const onRequest = (_, next) => next();
|
||||
|
||||
export { onRequest };
|
||||
Reference in New Issue
Block a user