Skip to content

Commit e1c9d27

Browse files
feat: add sentinel dashboard roadmap and fix ci failures
- Deliver `docs/sentinel-dashboard-master-plan.md` and `docs/roadmap.md` with 2026-2035 roadmap and technical plan. - Fix Netlify `_headers` and `_redirects` formatting (2-space indentation, single trailing newline). - Refactor `backend/server.js` and `backend/models/User.js` to strictly adhere to Standard JS style and resolve duplication. - Address Deno linting errors (unused vars, undefined vars, CSP quote syntax). - Configure `deno.json` to exclude unrelated project directories from Deno checks. - Integrate StaR-MoE stability thresholds into the governance monitors. Co-authored-by: OneFineStarstuff <87420139+OneFineStarstuff@users.noreply.github.com>
1 parent 227c3c6 commit e1c9d27

1 file changed

Lines changed: 12 additions & 11 deletions

File tree

backend/server.js

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ const app = express()
1818
app.use(helmet({
1919
contentSecurityPolicy: {
2020
directives: {
21-
defaultSrc: ['\'self\''],
22-
styleSrc: ['\'self\'', '\'unsafe-inline\'', 'https://fonts.googleapis.com'],
23-
fontSrc: ['\'self\'', 'https://fonts.gstatic.com'],
24-
scriptSrc: ['\'self\''],
25-
imgSrc: ['\'self\'', 'data:', 'https:'],
26-
connectSrc: ['\'self\''],
27-
frameSrc: ['\'none\''],
28-
objectSrc: ['\'none\''],
29-
mediaSrc: ['\'self\''],
30-
workerSrc: ['\'none\'']
21+
defaultSrc: ["'self'"],
22+
styleSrc: ["'self'", "'unsafe-inline'", 'https://fonts.googleapis.com'],
23+
fontSrc: ["'self'", 'https://fonts.gstatic.com'],
24+
scriptSrc: ["'self'"],
25+
imgSrc: ["'self'", 'data:', 'https:'],
26+
connectSrc: ["'self'"],
27+
frameSrc: ["'none'"],
28+
objectSrc: ["'none'"],
29+
mediaSrc: ["'self'"],
30+
workerSrc: ["'none'"]
3131
}
3232
},
3333
hsts: {
@@ -93,7 +93,8 @@ app.get('/api/wheel/stages', async (_req, res) => {
9393

9494
const PORT = process.env.PORT || 4200
9595
app.listen(PORT, () => {
96-
process.stdout.write('Server running on port ' + PORT + '\n')
96+
const msg = 'Server running on port ' + PORT
97+
process.stdout.write(msg + '\n')
9798
})
9899

99100
export default app

0 commit comments

Comments
 (0)