Initial boiler plate project

This commit is contained in:
2024-09-24 03:52:46 +00:00
parent 6120b2d6c3
commit 154b93e267
10034 changed files with 2079352 additions and 2 deletions

View File

@ -0,0 +1,8 @@
/*
Files in the rsc directory are meant to be packaged as part of the RSC graph using next-app-loader.
*/ // When postpone is available in canary React we can switch to importing it directly
export { Postpone } from "../dynamic-rendering";
//# sourceMappingURL=postpone.js.map

View File

@ -0,0 +1 @@
{"version":3,"sources":["../../../../src/server/app-render/rsc/postpone.ts"],"names":["Postpone"],"mappings":"AAAA;;;;AAIA,GAEA,oFAAoF;AACpF,SAASA,QAAQ,QAAQ,uBAAsB"}

View File

@ -0,0 +1,31 @@
/*
Files in the rsc directory are meant to be packaged as part of the RSC graph using next-app-loader.
*/ import ReactDOM from "react-dom";
export function preloadStyle(href, crossOrigin) {
const opts = {
as: "style"
};
if (typeof crossOrigin === "string") {
opts.crossOrigin = crossOrigin;
}
ReactDOM.preload(href, opts);
}
export function preloadFont(href, type, crossOrigin) {
const opts = {
as: "font",
type
};
if (typeof crossOrigin === "string") {
opts.crossOrigin = crossOrigin;
}
ReactDOM.preload(href, opts);
}
export function preconnect(href, crossOrigin) {
ReactDOM.preconnect(href, typeof crossOrigin === "string" ? {
crossOrigin
} : undefined);
}
//# sourceMappingURL=preloads.js.map

View File

@ -0,0 +1 @@
{"version":3,"sources":["../../../../src/server/app-render/rsc/preloads.ts"],"names":["ReactDOM","preloadStyle","href","crossOrigin","opts","as","preload","preloadFont","type","preconnect","undefined"],"mappings":"AAAA;;;;AAIA,GAEA,OAAOA,cAAc,YAAW;AAEhC,OAAO,SAASC,aAAaC,IAAY,EAAEC,WAAgC;IACzE,MAAMC,OAAY;QAAEC,IAAI;IAAQ;IAChC,IAAI,OAAOF,gBAAgB,UAAU;QACnCC,KAAKD,WAAW,GAAGA;IACrB;IACAH,SAASM,OAAO,CAACJ,MAAME;AACzB;AAEA,OAAO,SAASG,YACdL,IAAY,EACZM,IAAY,EACZL,WAAgC;IAEhC,MAAMC,OAAY;QAAEC,IAAI;QAAQG;IAAK;IACrC,IAAI,OAAOL,gBAAgB,UAAU;QACnCC,KAAKD,WAAW,GAAGA;IACrB;IACAH,SAASM,OAAO,CAACJ,MAAME;AACzB;AAEA,OAAO,SAASK,WAAWP,IAAY,EAAEC,WAAgC;IACrEH,SAAiBS,UAAU,CAC3BP,MACA,OAAOC,gBAAgB,WAAW;QAAEA;IAAY,IAAIO;AAExD"}

View File

@ -0,0 +1,12 @@
/*
Files in the rsc directory are meant to be packaged as part of the RSC graph using next-app-loader.
*/ import * as React from "react";
function notImplemented() {
throw new Error("Taint can only be used with the taint flag.");
}
export const taintObjectReference = process.env.__NEXT_EXPERIMENTAL_REACT ? React.experimental_taintObjectReference : notImplemented;
export const taintUniqueValue = process.env.__NEXT_EXPERIMENTAL_REACT ? React.experimental_taintUniqueValue : notImplemented;
//# sourceMappingURL=taint.js.map

View File

@ -0,0 +1 @@
{"version":3,"sources":["../../../../src/server/app-render/rsc/taint.ts"],"names":["React","notImplemented","Error","taintObjectReference","process","env","__NEXT_EXPERIMENTAL_REACT","experimental_taintObjectReference","taintUniqueValue","experimental_taintUniqueValue"],"mappings":"AAAA;;;;AAIA,GAEA,YAAYA,WAAW,QAAO;AAK9B,SAASC;IACP,MAAM,IAAIC,MAAM;AAClB;AAEA,OAAO,MAAMC,uBAGDC,QAAQC,GAAG,CAACC,yBAAyB,GAE7CN,MAAMO,iCAAiC,GACvCN,eAAc;AAClB,OAAO,MAAMO,mBAIDJ,QAAQC,GAAG,CAACC,yBAAyB,GAE7CN,MAAMS,6BAA6B,GACnCR,eAAc"}