Fix: book id length & check duplicate ids, Change: library to lazy load book cards

This commit is contained in:
advplyr 2021-11-15 20:09:42 -06:00
parent ca6f2c01f6
commit 72f9732b67
18 changed files with 466 additions and 86 deletions

View file

@ -58,3 +58,9 @@ const xmlToJSON = (xml) => {
})
}
module.exports.xmlToJSON = xmlToJSON
module.exports.getId = (prepend = '') => {
var _id = Math.random().toString(36).substring(2, 8) + Math.random().toString(36).substring(2, 8) + Math.random().toString(36).substring(2, 8)
if (prepend) return prepend + '_' + _id
return _id
}