1
0
Fork 0
mirror of https://github.com/shouptech/humulus.git synced 2026-02-03 16:09:44 +00:00

Add design document for styles

This commit is contained in:
Emma 2019-07-07 17:04:32 -06:00
parent 6b918b3d90
commit 3005c6e44d
No known key found for this signature in database
GPG key ID: 68434BFE85360755

View file

@ -0,0 +1,15 @@
{
"_id": "_design/styles",
"language": "javascript",
"views": {
"by-category": {
"map": "function (doc) {\n if (doc.$type == \"style\") {\n category = doc.id.match(/[0-9]+|[a-zA-Z]+/g)\n category[0] = parseInt(category[0])\n emit(category, doc.name)\n }\n}"
},
"by-name": {
"map": "function (doc) {\n if (doc.$type == \"style\") {\n emit(doc.name, doc.name)\n }\n}"
}
},
"lists": {},
"indexes": {},
"shows": {}
}