feat(ui): Silicon Valley-grade DevOps logistics workbench on /simulator, official high-res logo and zero marketing clutter
This commit is contained in:
+2
-1
@@ -6,8 +6,9 @@ WORKDIR /app
|
|||||||
COPY package*.json tsconfig.json ./
|
COPY package*.json tsconfig.json ./
|
||||||
RUN npm install --no-audit --no-fund
|
RUN npm install --no-audit --no-fund
|
||||||
|
|
||||||
# Source + web and simulator assets
|
# Source + web, static assets and simulator
|
||||||
COPY src ./src
|
COPY src ./src
|
||||||
|
COPY assets ./assets
|
||||||
COPY README.md index.html guide.html health.html privacy.html mcp_explorer.html simulator.html ./
|
COPY README.md index.html guide.html health.html privacy.html mcp_explorer.html simulator.html ./
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 72 KiB |
Vendored
+9
@@ -49,6 +49,7 @@ const HEALTH_HTML = path.join(APP_DIR, "health.html");
|
|||||||
const MCP_EXPLORER_HTML = path.join(APP_DIR, "mcp_explorer.html");
|
const MCP_EXPLORER_HTML = path.join(APP_DIR, "mcp_explorer.html");
|
||||||
const GUIDE_HTML = path.join(APP_DIR, "guide.html");
|
const GUIDE_HTML = path.join(APP_DIR, "guide.html");
|
||||||
const SIMULATOR_HTML = path.join(APP_DIR, "simulator.html");
|
const SIMULATOR_HTML = path.join(APP_DIR, "simulator.html");
|
||||||
|
const ASSETS_DIR = path.join(APP_DIR, "assets");
|
||||||
/**
|
/**
|
||||||
* F04 Helper: HTML entity escaping to prevent stored/reflected XSS.
|
* F04 Helper: HTML entity escaping to prevent stored/reflected XSS.
|
||||||
*/
|
*/
|
||||||
@@ -140,6 +141,14 @@ app.use((req, res, next) => {
|
|||||||
}
|
}
|
||||||
next();
|
next();
|
||||||
});
|
});
|
||||||
|
// Static assets (official logo, favicons, branding)
|
||||||
|
app.use("/assets", express.static(ASSETS_DIR, { maxAge: "7d" }));
|
||||||
|
app.get("/favicon.ico", (_req, res) => {
|
||||||
|
res.sendFile(path.join(ASSETS_DIR, "courier-logo.jpg"), (err) => {
|
||||||
|
if (err && !res.headersSent)
|
||||||
|
res.status(204).end();
|
||||||
|
});
|
||||||
|
});
|
||||||
app.use(optionalAuthMiddleware);
|
app.use(optionalAuthMiddleware);
|
||||||
const mcpLimiter = createRateLimiter({ windowMs: 60 * 1000, max: 60, name: "MCP Protocol Gateway" });
|
const mcpLimiter = createRateLimiter({ windowMs: 60 * 1000, max: 60, name: "MCP Protocol Gateway" });
|
||||||
const trackingLimiter = createRateLimiter({ windowMs: 60 * 1000, max: 120, name: "Tracking Gateway" });
|
const trackingLimiter = createRateLimiter({ windowMs: 60 * 1000, max: 120, name: "Tracking Gateway" });
|
||||||
|
|||||||
+1
-1
@@ -450,7 +450,7 @@
|
|||||||
<!-- Topbar -->
|
<!-- Topbar -->
|
||||||
<header class="topbar">
|
<header class="topbar">
|
||||||
<div class="topbar-brand">
|
<div class="topbar-brand">
|
||||||
<img src="/assets/courier-logo.jpg" alt="Aura Logo" class="topbar-logo" />
|
<img src="/assets/courier-logo.jpg" alt="Aura Courier MCP Logo" class="topbar-logo" onerror="this.onerror=null; this.src='/assets/courier-logo.png';" />
|
||||||
<span class="topbar-title">
|
<span class="topbar-title">
|
||||||
Aura Courier MCP
|
Aura Courier MCP
|
||||||
<span class="badge-ver">v2.6.0</span>
|
<span class="badge-ver">v2.6.0</span>
|
||||||
|
|||||||
+939
-2469
File diff suppressed because it is too large
Load Diff
@@ -60,6 +60,7 @@ const HEALTH_HTML = path.join(APP_DIR, "health.html");
|
|||||||
const MCP_EXPLORER_HTML = path.join(APP_DIR, "mcp_explorer.html");
|
const MCP_EXPLORER_HTML = path.join(APP_DIR, "mcp_explorer.html");
|
||||||
const GUIDE_HTML = path.join(APP_DIR, "guide.html");
|
const GUIDE_HTML = path.join(APP_DIR, "guide.html");
|
||||||
const SIMULATOR_HTML = path.join(APP_DIR, "simulator.html");
|
const SIMULATOR_HTML = path.join(APP_DIR, "simulator.html");
|
||||||
|
const ASSETS_DIR = path.join(APP_DIR, "assets");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* F04 Helper: HTML entity escaping to prevent stored/reflected XSS.
|
* F04 Helper: HTML entity escaping to prevent stored/reflected XSS.
|
||||||
@@ -168,6 +169,14 @@ app.use((req, res, next) => {
|
|||||||
next();
|
next();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Static assets (official logo, favicons, branding)
|
||||||
|
app.use("/assets", express.static(ASSETS_DIR, { maxAge: "7d" }));
|
||||||
|
app.get("/favicon.ico", (_req, res) => {
|
||||||
|
res.sendFile(path.join(ASSETS_DIR, "courier-logo.jpg"), (err) => {
|
||||||
|
if (err && !res.headersSent) res.status(204).end();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
app.use(optionalAuthMiddleware);
|
app.use(optionalAuthMiddleware);
|
||||||
|
|
||||||
const mcpLimiter = createRateLimiter({ windowMs: 60 * 1000, max: 60, name: "MCP Protocol Gateway" });
|
const mcpLimiter = createRateLimiter({ windowMs: 60 * 1000, max: 60, name: "MCP Protocol Gateway" });
|
||||||
|
|||||||
Reference in New Issue
Block a user