mirror of
https://github.com/mupen64plus-ae/acra-storage.git
synced 2024-11-26 23:10:41 +00:00
initial commit
This commit is contained in:
commit
8a10168d52
3
.couchapprc
Normal file
3
.couchapprc
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"env": {}
|
||||
}
|
5
validate_doc_upddate.js
Normal file
5
validate_doc_upddate.js
Normal file
@ -0,0 +1,5 @@
|
||||
function(newDoc, oldDoc, userCtx) {
|
||||
if(userCtx.roles.indexOf("reporter") < 0) {
|
||||
throw({"forbidden": "You may only update documents with reporter role "});
|
||||
}
|
||||
}
|
9
views/recent-items/map.js
Normal file
9
views/recent-items/map.js
Normal file
@ -0,0 +1,9 @@
|
||||
function(doc) {
|
||||
if (doc.USER_CRASH_DATE) {
|
||||
emit(new Date(doc.USER_CRASH_DATE), {
|
||||
user_crash_date: doc.USER_CRASH_DATE,
|
||||
stack_trace:doc.STACK_TRACE,
|
||||
android_version : doc.ANDROID_VERSION
|
||||
});
|
||||
}
|
||||
};
|
8
views/reports-per-day/map.js
Normal file
8
views/reports-per-day/map.js
Normal file
@ -0,0 +1,8 @@
|
||||
function(doc) {
|
||||
if(doc.USER_CRASH_DATE) {
|
||||
var crashDate = new Date(doc.USER_CRASH_DATE);
|
||||
if(crashDate.getFullYear() > 2000) {
|
||||
emit([crashDate.getFullYear(), crashDate.getMonth() , crashDate.getDate()], 1);
|
||||
}
|
||||
}
|
||||
}
|
3
views/reports-per-day/reduce.js
Normal file
3
views/reports-per-day/reduce.js
Normal file
@ -0,0 +1,3 @@
|
||||
function(keys, values, rereduce) {
|
||||
return sum(values);
|
||||
}
|
Loading…
Reference in New Issue
Block a user