fix: corrige erros de linter CSS e meta viewport para acessibilidade e compatibilidade Safari
This commit is contained in:
@@ -1,38 +0,0 @@
|
||||
const { Pool } = require('pg');
|
||||
require('dotenv').config();
|
||||
|
||||
const pool = new Pool({
|
||||
connectionString: process.env.DATABASE_URL
|
||||
});
|
||||
|
||||
async function main() {
|
||||
try {
|
||||
const tablesRes = await pool.query(`
|
||||
SELECT table_name
|
||||
FROM information_schema.tables
|
||||
WHERE table_schema = 'escola'
|
||||
ORDER BY table_name;
|
||||
`);
|
||||
|
||||
console.log('--- TABELAS NO ESQUEMA escola ---');
|
||||
for (const row of tablesRes.rows) {
|
||||
console.log(`\nTabela: ${row.table_name}`);
|
||||
const columnsRes = await pool.query(`
|
||||
SELECT column_name, data_type, is_nullable, column_default
|
||||
FROM information_schema.columns
|
||||
WHERE table_schema = 'escola' AND table_name = $1
|
||||
ORDER BY ordinal_position;
|
||||
`, [row.table_name]);
|
||||
|
||||
for (const col of columnsRes.rows) {
|
||||
console.log(` - ${col.column_name}: ${col.data_type} (null: ${col.is_nullable}, default: ${col.column_default})`);
|
||||
}
|
||||
}
|
||||
} catch (err) {
|
||||
console.error('Erro ao ler tabelas:', err);
|
||||
} finally {
|
||||
await pool.end();
|
||||
}
|
||||
}
|
||||
|
||||
main();
|
||||
@@ -1,36 +0,0 @@
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const { exec } = require('child_process');
|
||||
|
||||
const concatFilePath = path.join(__dirname, 'test_concat.txt');
|
||||
const bgMusicPath = path.join(__dirname, '..', 'public', 'assets', 'audio', 'alegre.mp3');
|
||||
const outputFilePath = path.join(__dirname, '..', 'public', 'generated-media', 'test_video.mp4');
|
||||
|
||||
const duration = 3;
|
||||
const totalDuration = 6;
|
||||
|
||||
// Cria pasta generated-media se não existir
|
||||
const mediaDir = path.dirname(outputFilePath);
|
||||
if (!fs.existsSync(mediaDir)) {
|
||||
fs.mkdirSync(mediaDir, { recursive: true });
|
||||
}
|
||||
|
||||
// Usar camila_prof.png duas vezes
|
||||
const testImg = path.join(__dirname, '..', 'public', 'assets', 'camila_prof.png');
|
||||
|
||||
let concatContent = `file '${testImg}'\nduration ${duration}\nfile '${testImg}'\nduration ${duration}\nfile '${testImg}'\n`;
|
||||
fs.writeFileSync(concatFilePath, concatContent);
|
||||
|
||||
const ffmpegCommand = `ffmpeg -y -f concat -safe 0 -i "${concatFilePath}" -i "${bgMusicPath}" -c:v libx264 -pix_fmt yuv420p -c:a aac -shortest -t ${totalDuration} "${outputFilePath}"`;
|
||||
console.log('Executando:', ffmpegCommand);
|
||||
|
||||
exec(ffmpegCommand, (error, stdout, stderr) => {
|
||||
console.log('STDOUT:', stdout);
|
||||
console.error('STDERR:', stderr);
|
||||
if (error) {
|
||||
console.error('Erro de execução:', error);
|
||||
process.exit(1);
|
||||
}
|
||||
console.log('Vídeo gerado com sucesso em:', outputFilePath);
|
||||
process.exit(0);
|
||||
});
|
||||
Reference in New Issue
Block a user