Compare commits

3 Commits

4 changed files with 1623 additions and 4 deletions

1585
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,10 +1,16 @@
{ {
"devDependencies": { "devDependencies": {
"@types/compression": "^1.8.1",
"@types/cors": "^2.8.19",
"@types/express": "^5.0.6",
"pm2": "^6.0.14",
"typescript": "^5.9.3" "typescript": "^5.9.3"
}, },
"scripts": { "scripts": {
"dev": "tsc --watch & tsc -b src/srv/ --watch & http-server src & node --watch src/srv/proxy.js", "dev": "tsc --watch & tsc -b src/srv/ --watch & node --watch src/srv/proxy.js",
"build": "tsc" "build": "tsc",
"serve": "pm2 start src/srv/proxy.js",
"stop": "pm2 stop proxy"
}, },
"dependencies": { "dependencies": {
"compression": "^1.8.1", "compression": "^1.8.1",

View File

@@ -109,8 +109,10 @@ input {
} }
#player > img { #player > img {
max-width: 512px; min-width: 256px;
max-height: 512px; min-height: 256px;;
max-width: 400px;
max-height: 400px;
margin-bottom: 20px; margin-bottom: 20px;
} }
@@ -160,3 +162,23 @@ input {
background: white; background: white;
} }
} }
@media (max-width: 400px) {
#player > img {
min-width: 256px;
min-height: 256px;
max-width: 300px;
max-height: 300px;
margin-bottom: 20px;
}
}
@media (max-width: 300px) {
#player > img {
min-width: 100px;
min-height: 100px;
max-width: 200px;
max-height: 200px;
margin-bottom: 20px;
}
}

View File

@@ -3,10 +3,16 @@
import express from "express" import express from "express"
import cors from "cors" import cors from "cors"
import compression from "compression" import compression from "compression"
import path from "path"
const app = express() const app = express()
app.use(cors()) app.use(cors())
app.use(compression()) app.use(compression())
app.use(express.static(path.resolve("src")))
app.get("/", (req, res) => {
res.sendFile("src/index.html", { root: "." })
})
app.get("/version", (req, res) => { app.get("/version", (req, res) => {
let host = req.query.host let host = req.query.host