Skip to content

Commit

Permalink
Merge pull request #144 from tecimovic/silabs
Browse files Browse the repository at this point in the history
Silabs
  • Loading branch information
tecimovic authored May 7, 2021
2 parents e3a60c2 + aa6d481 commit f035d8d
Show file tree
Hide file tree
Showing 77 changed files with 3,563 additions and 2,232 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ module.exports = {
'no-implicit-globals': 'error',
'block-scoped-var': 'error',
'vars-on-top': 'error',
'guard-for-in': 'error',

'import/first': 'off',
'import/named': 'error',
Expand Down
3 changes: 2 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,8 @@ pipeline
remoteJenkinsName: 'jnkaus016',
shouldNotFailBuild: true,
useCrumbCache: true,
useJobInfoCache: true
useJobInfoCache: true,
disabled: true
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion apack.info
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ label=Zigbee Cluster Configurator
description=Graphical configuration tool for application and libraries based on Zigbee Cluster Library.
path=.,node_modules/.bin/,ZAP.app/Contents/MacOS
requiredFeatureLevel=apack.core:8
featureLevel=30
featureLevel=35

id=zclConfigurator

Expand Down
2 changes: 1 addition & 1 deletion apack.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Graphical configuration tool for application and libraries based on Zigbee Cluster Library.",
"path": [".", "node_modules/.bin/", "ZAP.app/Contents/MacOS"],
"requiredFeatureLevel": "apack.core:8",
"featureLevel": 30,
"featureLevel": 35,
"uc.triggerExtension": "zap",
"executable": {
"zap:win32.x86_64": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "zap",
"version": "0.99.6",
"featureLevel": 30,
"description": "Configuration tool for the Zigbee Cluster Library",
"productName": "zap",
"cordovaId": "",
Expand All @@ -28,6 +27,7 @@
"test:unit:watchAll": "jest --watchAll",
"postinstall": "electron-builder install-app-deps && husky install",
"zap": "node src-script/zap-start.js --logToStdout --gen ./test/gen-template/zigbee/gen-templates.json",
"zap-dev": "npm run build-spa && quasar dev -m electron",
"zap-devserver": "node src-script/zap-start.js server --allowCors --logToStdout --gen ./test/gen-template/zigbee/gen-templates.json --reuseZapInstance",
"server": "node src-script/zap-start.js server --logToStdout --gen ./test/gen-template/zigbee/gen-templates.json --reuseZapInstance",
"stop": "node src-script/zap-start.js stop --reuseZapInstance",
Expand Down
4 changes: 2 additions & 2 deletions src-electron/db/db-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ async function dbRemove(db, query, args) {
* @param {*} db
* @param {*} query
* @param {*} args
* @returns A promise that resolves without an argument, or rejects with an error from the query.
* @returns A promise that resolves with a number of changed rows, or rejects with an error from the query.
*/
async function dbUpdate(db, query, args) {
return new Promise((resolve, reject) => {
Expand All @@ -167,7 +167,7 @@ async function dbUpdate(db, query, args) {
reject(err)
} else {
env.logSql(`Executed update: ${query}: ${args}`)
resolve()
resolve(this.changes)
}
})
})
Expand Down
3 changes: 3 additions & 0 deletions src-electron/db/db-mapping.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ exports.map = {
if (x == null) return undefined
return {
id: x.CLUSTER_ID,
packageRef: x.PACKAGE_REF,
code: x.CODE,
manufacturerCode: x.MANUFACTURER_CODE,
label: x.NAME,
Expand All @@ -80,6 +81,7 @@ exports.map = {
return {
id: x.ATTRIBUTE_ID,
clusterRef: x.CLUSTER_REF,
packageRef: x.PACKAGE_REF,
code: x.CODE,
clusterCode: x.CLUSTER_CODE,
manufacturerCode: x.MANUFACTURER_CODE,
Expand All @@ -104,6 +106,7 @@ exports.map = {
return {
id: x.COMMAND_ID,
clusterRef: x.CLUSTER_REF,
packageRef: x.PACKAGE_REF,
code: x.CODE,
manufacturerCode: x.MANUFACTURER_CODE,
label: x.NAME,
Expand Down
Loading

0 comments on commit f035d8d

Please sign in to comment.