mirror of
https://github.com/shouptech/humulus.git
synced 2026-02-03 15:09:42 +00:00
Add design document for styles
This commit is contained in:
parent
6b918b3d90
commit
3005c6e44d
1 changed files with 15 additions and 0 deletions
15
src/humulus/designs/styles.json
Normal file
15
src/humulus/designs/styles.json
Normal 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": {}
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue