home-assistant-custom-lovelace-modules.zigbee2mqtt-networkmap: init at unstable-2023-12-06

This commit is contained in:
Zhong Jianxin 2023-12-07 19:29:43 +08:00 committed by Martin Weinelt
parent 02dab4ab5c
commit 42da68c40f
3 changed files with 86 additions and 0 deletions

View File

@ -7,4 +7,6 @@
mini-graph-card = callPackage ./mini-graph-card {};
mini-media-player = callPackage ./mini-media-player {};
zigbee2mqtt-networkmap = callPackage ./zigbee2mqtt-networkmap { };
}

View File

@ -0,0 +1,59 @@
{ lib
, fetchFromGitHub
, fetchYarnDeps
, mkYarnPackage
}:
mkYarnPackage rec {
pname = "zigbee2mqtt-networkmap";
version = "unstable-2023-12-06";
src = fetchFromGitHub {
owner = "azuwis";
repo = "zigbee2mqtt-networkmap";
rev = "d5f1002118ba5881c6bdc27cb0f67642575c414f";
hash = "sha256-ITqzMjom2XN7+ICDH0Z5YJWY5GNUXzaqSuEzXekhw9I=";
};
packageJSON = ./package.json;
offlineCache = fetchYarnDeps {
yarnLock = "${src}/yarn.lock";
hash = "sha256-uPhD6UQ1KI7y6bqqQF7InT9eKU9VWGf2D60Lo5Mwcf8=";
};
configurePhase = ''
cp -r $node_modules node_modules
chmod +w node_modules
'';
buildPhase = ''
runHook preBuild
yarn --offline build
runHook postBuild
'';
installPhase = ''
runHook preInstall
mkdir $out
cp -v dist/zigbee2mqtt-networkmap.js $out/
runHook postInstall
'';
dontFixup = true;
doDist = false;
passthru.entrypoint = "zigbee2mqtt-networkmap.js";
meta = with lib; {
description = "Home Assistant Custom Card to show Zigbee2mqtt network map";
homepage = "https://github.com/azuwis/zigbee2mqtt-networkmap";
maintainers = with maintainers; [ azuwis ];
license = licenses.mit;
};
}

View File

@ -0,0 +1,25 @@
{
"name": "zigbee2mqtt-networkmap",
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
"dependencies": {
"vue": "^3.3.4"
},
"devDependencies": {
"@material/mwc-button": "^0.27.0",
"@vue/cli-plugin-eslint": "^5.0.8",
"@vue/cli-service": "^5.0.8",
"@vue/eslint-config-standard": "^8.0.1",
"@babel/core": "^7.0.0",
"@babel/eslint-parser": "^7.0.0",
"eslint": "^8.42.0",
"eslint-plugin-vue": "^9.14.1",
"lodash.isequal": "^4.5.0",
"vue-d3-network": "^0.1.28"
}
}