checkpoint
This commit is contained in:
parent
049cdca383
commit
d807a82aa9
|
|
@ -176,10 +176,6 @@ dist
|
|||
|
||||
.parcel-cache
|
||||
app/web/.parcel-cache
|
||||
app/static
|
||||
app/static/*
|
||||
app/static-br
|
||||
app/static-br/*
|
||||
data
|
||||
data/*
|
||||
app/srv/exports.ts
|
||||
|
|
|
|||
|
|
@ -17,7 +17,6 @@ RUN unzip -o dockerzip
|
|||
RUN bun install
|
||||
|
||||
COPY . .
|
||||
RUN bun run build
|
||||
|
||||
EXPOSE 4550/tcp
|
||||
|
||||
|
|
|
|||
|
|
@ -1,29 +0,0 @@
|
|||
import { createHash } from "crypto";
|
||||
import { dir } from "dir";
|
||||
import { readAsync } from "fs-jetpack";
|
||||
import { apiContext } from "../../../pkgs/core/server/api/api-ctx";
|
||||
const cache = {
|
||||
md5: "",
|
||||
content: null as any,
|
||||
};
|
||||
|
||||
export const _ = {
|
||||
url: "/site-bundle/:mode",
|
||||
async api(mode: "md5" | "download") {
|
||||
const { req, res } = apiContext(this);
|
||||
|
||||
const content = await readAsync(dir.path("app/srv/site.zip"), "buffer");
|
||||
|
||||
if (content) {
|
||||
cache.md5 = createHash("md5").update(content).digest("hex");
|
||||
cache.content = content;
|
||||
}
|
||||
if (mode === "md5") {
|
||||
res.setHeader("Content-Type", "text/plain");
|
||||
return cache.md5;
|
||||
}
|
||||
|
||||
res.setHeader("Content-Type", "application/zip");
|
||||
res.send(cache.content);
|
||||
},
|
||||
};
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -0,0 +1 @@
|
|||
Ï Œ“\Íy<C38D>zNëMa¯ºp+ø@õ¸
<ÆÐþ©ÇììðÉÜþBÃn»-…Vb‹¬¿ çѳClZÑ5¢Á¿w =(Ø*±‡Ç¨†Cí|&—[È®ËJ €$|‘_HC0Æ>–ÈW»<EFBFBD>~ýaù¬'†[F|“DÙŠ<>Äla…íu5á‰ÉY‚T,«^¯…®°Ù6Æ~ˆG9¸ŠÅÆÓ´n½R.׬d£¿}}Ê‘#êL1¸ÐoƒD¶<44>·u„TŒè€Í ´1íÆýá‰FãËL<C38B>YZõa‘f×É%ÚøÂ©Û×WÅ0†U±3GO®<4F>Û<EFBFBD>ÿÃpÆ€:bij’†§¿Òjè¡ìåñL#Ö£‘¶ÒDjU„žƒK«·wØB‰žUÍxQQ-pëbº¡2‚a
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue