v3.3 push 7 (added autoclose)

This commit is contained in:
DJj123dj
2023-03-19 12:29:24 +01:00
parent 1159af9fa9
commit 4dced819a3
21 changed files with 179 additions and 41 deletions
@@ -47,6 +47,17 @@ exports.get = (category,key) => {
const result = tempresult ? tempresult.value : false
return result
}
/**
* @param {String} category
* @returns {[{key:String,value:String}]|false}
*/
exports.getCategory = (category) => {
const currentData = getData()
const result = currentData.filter((v) => v.category == category)
return result
}
/**
* @param {String} category
* @param {String} key