-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1e82a2a
commit fcea282
Showing
78 changed files
with
1,487 additions
and
1,803 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
node_modules | ||
dist | ||
*.zip | ||
_build | ||
packets.mjs | ||
*.log | ||
test-context/ | ||
servers/ | ||
burgerpanel.sqlite3* | ||
.git | ||
burgerpanel-db-backup* | ||
connector.burgerpanelsock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,5 @@ Web/dist | |
Share/BuildInfo.ts | ||
Server/data.json | ||
testing/ | ||
/db/ | ||
/servers/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM node:23-alpine | ||
RUN corepack enable | ||
COPY . /panelbuild/ | ||
RUN rm -rf /panelbuild/Server/node_modules /panelbuild/Web/node_modules | ||
WORKDIR /panelbuild/Server | ||
ENV BURGERPANEL_DOCKER=1 | ||
RUN pnpm i | ||
RUN pnpm buildRelease | ||
FROM node:23-alpine | ||
RUN apk update | ||
RUN apk add openjdk21 | ||
WORKDIR /panel | ||
COPY --from=0 /panelbuild/Server/node_modules/better-sqlite3/build/Release/better_sqlite3.node /panel/better_sqlite3.node | ||
COPY --from=0 /panelbuild/Server/_build/ /panel | ||
CMD [ "node", "burgerpanel.mjs" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,5 @@ packets.mjs | |
*.log | ||
test-context/ | ||
servers/ | ||
burgerpanel.sqlite3* | ||
burgerpanel-db-backup-* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,21 @@ | ||
import fs from "node:fs"; | ||
import os from "node:os"; | ||
import { execSync } from "node:child_process"; | ||
let userInfo = os.userInfo(); | ||
let gitHash; | ||
let branch; | ||
try { | ||
gitHash = execSync("git rev-parse HEAD").toString().trim(); | ||
branch = execSync("git rev-parse --abbrev-ref HEAD").toString().trim(); | ||
} catch {} | ||
import packageJSON from "../package.json" with {type: "json"} | ||
fs.writeFileSync("../Share/BuildInfo.ts", "export let buildInfo = " + JSON.stringify({ | ||
date: Date.now(), | ||
version: packageJSON.version, | ||
compiledBy: userInfo.username, | ||
builtOn: process.platform, | ||
gitHash, | ||
branch | ||
})); | ||
if(process.env.BURGERPANEL_DOCKER != "1") { | ||
let userInfo = os.userInfo(); | ||
let gitHash; | ||
let branch; | ||
try { | ||
gitHash = execSync("git rev-parse HEAD").toString().trim(); | ||
branch = execSync("git rev-parse --abbrev-ref HEAD").toString().trim(); | ||
} catch {} | ||
fs.writeFileSync("../Share/BuildInfo.ts", "export let buildInfo = " + JSON.stringify({ | ||
date: Date.now(), | ||
version: packageJSON.version, | ||
compiledBy: userInfo.username, | ||
builtOn: process.platform, | ||
gitHash, | ||
branch | ||
})); | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,19 +22,19 @@ | |
"devDependencies": { | ||
"@types/express": "^4.17.21", | ||
"@types/mime-types": "^2.1.4", | ||
"@types/ws": "^8.5.12", | ||
"@vitest/ui": "^2.1.2", | ||
"@types/ws": "^8.5.13", | ||
"@vitest/ui": "^2.1.8", | ||
"esbuild": "^0.24.0", | ||
"gulp": "^5.0.0", | ||
"typescript": "^5.6.2", | ||
"vitest": "^2.1.2" | ||
"typescript": "^5.7.2", | ||
"vitest": "^2.1.8" | ||
}, | ||
"dependencies": { | ||
"@types/better-sqlite3": "^7.6.12", | ||
"better-sqlite3": "^11.7.0", | ||
"blueutilities": "^1.2.2", | ||
"chalk": "^5.3.0", | ||
"express": "^4.21.0", | ||
"mime-types": "^2.1.35", | ||
"mongoose": "^8.7.0", | ||
"express": "^4.21.2", | ||
"ws": "^8.18.0" | ||
}, | ||
"packageManager": "[email protected]+sha256.22e36fba7f4880ecf749a5ca128b8435da085ecd49575e7fb9e64d6bf4fad394" | ||
|
Oops, something went wrong.