This commit is contained in:
Rizky 2023-10-16 12:33:57 +00:00
parent 7a307622d8
commit d4b30272c3
5 changed files with 37 additions and 55 deletions

View File

@ -1,17 +0,0 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/alpine
{
"name": "Prasi",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "oven/bun:alpine"
// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "uname -a",
// Configure tool-specific properties.
// "customizations": {},
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}

View File

@ -1 +0,0 @@
import { PrismaClient } from "@prisma/client";

View File

@ -5,33 +5,19 @@ export const npm_size = {
args: ["mode","id"], args: ["mode","id"],
handler: import("./api/npm-size") handler: import("./api/npm-size")
} }
export const login = {
name: "login",
url: "/_login",
path: "app/srv/api/auth/login.ts",
args: ["username","password"],
handler: import("./api/auth/login")
}
export const session = { export const session = {
name: "session", name: "session",
url: "/session", url: "/_session",
path: "app/srv/api/session.ts", path: "app/srv/api/auth/session.ts",
args: [], args: [],
handler: import("./api/session") handler: import("./api/auth/session")
} }
export const npm = { export const site_dts = {
name: "npm", name: "site_dts",
url: "/npm/:mode/:id/*", url: "/site-dts/:site_id",
path: "app/srv/api/npm.ts", path: "app/srv/api/site-dts.ts",
args: ["mode","id"], args: ["site_id"],
handler: import("./api/npm") handler: import("./api/site-dts")
}
export const local_ip = {
name: "local_ip",
url: "/local-ip",
path: "app/srv/api/local-ip.ts",
args: [],
handler: import("./api/local-ip")
} }
export const npm_bundle = { export const npm_bundle = {
name: "npm_bundle", name: "npm_bundle",
@ -40,12 +26,26 @@ export const npm_bundle = {
args: ["mode","id"], args: ["mode","id"],
handler: import("./api/npm-bundle") handler: import("./api/npm-bundle")
} }
export const site_dts = { export const npm = {
name: "site_dts", name: "npm",
url: "/site-dts/:site_id", url: "/npm/:mode/:id/*",
path: "app/srv/api/site-dts.ts", path: "app/srv/api/npm.ts",
args: ["site_id"], args: ["mode","id"],
handler: import("./api/site-dts") handler: import("./api/npm")
}
export const login = {
name: "login",
url: "/_login",
path: "app/srv/api/auth/login.ts",
args: ["username","password"],
handler: import("./api/auth/login")
}
export const local_ip = {
name: "local_ip",
url: "/local-ip",
path: "app/srv/api/local-ip.ts",
args: [],
handler: import("./api/local-ip")
} }
export const _upload = { export const _upload = {
name: "_upload", name: "_upload",
@ -61,13 +61,6 @@ export const _prasi = {
args: [], args: [],
handler: import("./api/_prasi") handler: import("./api/_prasi")
} }
export const _file = {
name: "_file",
url: "/_file/*",
path: "app/srv/api/_file.ts",
args: [],
handler: import("./api/_file")
}
export const _api_frm = { export const _api_frm = {
name: "_api_frm", name: "_api_frm",
url: "/_api_frm", url: "/_api_frm",
@ -81,4 +74,11 @@ export const _dbs = {
path: "app/srv/api/_dbs.ts", path: "app/srv/api/_dbs.ts",
args: ["dbName","action"], args: ["dbName","action"],
handler: import("./api/_dbs") handler: import("./api/_dbs")
}
export const _file = {
name: "_file",
url: "/_file/*",
path: "app/srv/api/_file.ts",
args: [],
handler: import("./api/_file")
} }

BIN
bun.lockb

Binary file not shown.

View File

@ -1,4 +1,4 @@
git reset --hard git reset --hard
git pull git pull
bun run build bun run build
bun run deploy bun run deploy