- Remove BMAD framework, IDE configs, dev screenshots, test files, internal docs, and backup files - Rename keep-notes/ to memento-note/ - Update all references from keep-notes to memento-note - Add Apache 2.0 license with Commons Clause (non-commercial restriction) - Add clean .gitignore and .env.docker.example
44 lines
1000 B
JavaScript
44 lines
1000 B
JavaScript
#!/usr/bin/env node
|
|
/**
|
|
* Vérifier les propriétés des notes
|
|
*/
|
|
|
|
import { PrismaClient } from '../memento-note/prisma/client-generated/index.js';
|
|
|
|
const prisma = new PrismaClient({
|
|
datasources: {
|
|
db: { url: 'file:/Users/sepehr/dev/Keep/memento-note/prisma/dev.db' },
|
|
},
|
|
});
|
|
|
|
async function checkNotes() {
|
|
const notes = await prisma.note.findMany({
|
|
where: {
|
|
title: { startsWith: '📘' },
|
|
},
|
|
select: {
|
|
id: true,
|
|
title: true,
|
|
isMarkdown: true,
|
|
type: true,
|
|
color: true,
|
|
labels: true,
|
|
},
|
|
});
|
|
|
|
console.log('📋 Notes trouvées:\n');
|
|
for (const note of notes) {
|
|
console.log(`Titre: ${note.title}`);
|
|
console.log(` isMarkdown: ${note.isMarkdown}`);
|
|
console.log(` type: ${note.type}`);
|
|
console.log(` color: ${note.color}`);
|
|
console.log(` labels: ${note.labels}`);
|
|
console.log(` id: ${note.id}`);
|
|
console.log('');
|
|
}
|
|
}
|
|
|
|
checkNotes()
|
|
.catch(console.error)
|
|
.finally(() => prisma.$disconnect());
|