main repo

This commit is contained in:
Basilosaurusrex
2025-11-24 18:09:40 +01:00
parent b636ee5e70
commit f027651f9b
34146 changed files with 4436636 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
export declare function preloadStyle(href: string): void;
export declare function preloadFont(href: string, type: string): void;
export declare function preconnect(href: string, crossOrigin?: string): void;

View File

@@ -0,0 +1,58 @@
/*
Files in the rsc directory are meant to be packaged as part of the RSC graph using next-app-loader.
*/ "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
0 && (module.exports = {
preloadStyle: null,
preloadFont: null,
preconnect: null
});
function _export(target, all) {
for(var name in all)Object.defineProperty(target, name, {
enumerable: true,
get: all[name]
});
}
_export(exports, {
preloadStyle: function() {
return preloadStyle;
},
preloadFont: function() {
return preloadFont;
},
preconnect: function() {
return preconnect;
}
});
const _reactdom = /*#__PURE__*/ _interop_require_default(require("react-dom"));
function _interop_require_default(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
function preloadStyle(href) {
_reactdom.default.preload(href, {
as: "style"
});
}
function preloadFont(href, type) {
_reactdom.default.preload(href, {
as: "font",
type
});
}
function preconnect(href, crossOrigin) {
if (typeof crossOrigin === "string") {
_reactdom.default.preconnect(href, {
crossOrigin
});
} else {
_reactdom.default.preconnect(href);
}
}
//# sourceMappingURL=preloads.js.map

View File

@@ -0,0 +1 @@
{"version":3,"sources":["../../../../src/server/app-render/rsc/preloads.ts"],"names":["preloadStyle","preloadFont","preconnect","href","ReactDOM","preload","as","type","crossOrigin"],"mappings":"AAAA;;;;AAIA;;;;;;;;;;;;;;;;IAIgBA,YAAY;eAAZA;;IAIAC,WAAW;eAAXA;;IAIAC,UAAU;eAAVA;;;iEAVK;;;;;;AAEd,SAASF,aAAaG,IAAY;IACvCC,iBAAQ,CAACC,OAAO,CAACF,MAAM;QAAEG,IAAI;IAAQ;AACvC;AAEO,SAASL,YAAYE,IAAY,EAAEI,IAAY;IAClDH,iBAAQ,CAASC,OAAO,CAACF,MAAM;QAAEG,IAAI;QAAQC;IAAK;AACtD;AAEO,SAASL,WAAWC,IAAY,EAAEK,WAAoB;IAC3D,IAAI,OAAOA,gBAAgB,UAAU;QACjCJ,iBAAQ,CAASF,UAAU,CAACC,MAAM;YAAEK;QAAY;IACpD,OAAO;QACHJ,iBAAQ,CAASF,UAAU,CAACC;IAChC;AACF"}