Web based mental database manager
npm run dev
npm run build
- About grouping same widget versions (expandable, preview) in a folder, that wasn't possible due to limitations on dynamic imports. https://vitejs.dev/guide/features#dynamic-import
// Database.js constructor()
this.connection.allDocs({ include_docs: true }).then((result) => {
console.log(result)
const migratedDocs = result.rows.filter(row => {
return !row.id.includes('_design')
})
.map(row => {
row.doc.content = row.doc.value
return row.doc
})
this.connection.bulkDocs(migratedDocs).then(() => {
console.log('Database migration complete')
})
})