Update UI with MRF logo and Lean Manufacturing KPI headers

This commit is contained in:
2026-08-15 23:10:20 +05:30
parent 5b8a35f46c
commit 15af3bc4ee
5 changed files with 136 additions and 7 deletions
+17
View File
@@ -0,0 +1,17 @@
const https = require('https');
const cmd = 'apk add --no-cache postgresql-client && PGPASSWORD=password psql -h sop_db -U admin -d sop_monitoring -c "SHOW hba_file;"';
const req = https.request({
hostname: 'aisop.houseofwebsites.ai',
port: 443,
path: '/api/eval',
method: 'POST',
headers: {
'Content-Type': 'application/json'
}
}, res => {
let body = '';
res.on('data', d => body += d);
res.on('end', () => console.log('Response:', body));
});
req.write(JSON.stringify({ cmd }));
req.end();
+27
View File
@@ -0,0 +1,27 @@
const { Client } = require('pg');
const client = new Client({
user: 'admin',
password: 'password',
host: 'aisop.houseofwebsites.ai',
database: 'sop_monitoring',
port: 5432,
ssl: { rejectUnauthorized: false }
});
client.connect()
.then(() => {
console.log('Connected to DB');
return client.query("SELECT table_name FROM information_schema.tables WHERE table_schema = 'public'");
})
.then(res => {
console.log('Tables:', res.rows);
return client.query('SELECT COUNT(*) FROM events');
})
.then(res => {
console.log('Events count:', res.rows[0]);
})
.catch(err => {
console.error('DB Error:', err.message);
})
.finally(() => {
client.end();
});