checkpoint

This commit is contained in:
Rizky 2024-05-08 03:24:25 +07:00
parent 049cdca383
commit d807a82aa9
516 changed files with 41823 additions and 501 deletions

4
.gitignore vendored
View File

@ -176,10 +176,6 @@ dist
.parcel-cache .parcel-cache
app/web/.parcel-cache app/web/.parcel-cache
app/static
app/static/*
app/static-br
app/static-br/*
data data
data/* data/*
app/srv/exports.ts app/srv/exports.ts

View File

@ -17,7 +17,6 @@ RUN unzip -o dockerzip
RUN bun install RUN bun install
COPY . . COPY . .
RUN bun run build
EXPOSE 4550/tcp EXPOSE 4550/tcp

View File

@ -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.

BIN
app/static-br/favicon.ico Normal file

Binary file not shown.

BIN
app/static-br/img/empty.png Normal file

Binary file not shown.

Binary file not shown.

BIN
app/static-br/img/logo.png Normal file

Binary file not shown.

BIN
app/static-br/index.css Normal file

Binary file not shown.

1
app/static-br/index.html Normal file
View File

@ -0,0 +1 @@
Ï Œ“\Íy<C38D>zNëMa¯ºp+ø@õ¸ <ÆÐþ©ÇììðÉÜþBÃn»-Vb¬¿ çѳClZÑ5¢Á¿w =(Ø*±Ǩ|&[È®ËJ $|_HC0Æ>ÈW»<EFBFBD>~ýaù¬'†[F|“DÙŠ<>Äla…íu5á‰ÉYT,«^¯…®°Ù6Æ~ˆG9¸ŠÅÆÓ´n½R.׬d£¿}}Ê‘#êL1¸ÐoƒD¶<44>·u„TŒè€Í ´Æýá‰FãËL<C38B>YZõaf×É%ÚøÂ©Û×WÅ0†U±3GO®<4F>Û<EFBFBD>ÿÃpÆ€:bij†§¿Òjè¡ìåñL#Ö£‘¶ÒDjU„žƒK«·wØB‰žUÍxQQ-pëbº¡2a

BIN
app/static-br/index.js Normal file

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