homelab/services/parts-inventory/api/node_modules/ts-node-dev/lib/notify.js
Dan V deb6c38d7b chore: commit homelab setup — deployment, services, orchestration, skill
- Add .gitignore: exclude compiled binaries, build artifacts, and Helm
  values files containing real secrets (authentik, prometheus)
- Add all Kubernetes deployment manifests (deployment/)
- Add services source code: ha-sync, device-inventory, games-console,
  paperclip, parts-inventory
- Add Ansible orchestration: playbooks, roles, inventory, cloud-init
- Add hardware specs, execution plans, scripts, HOMELAB.md
- Add skills/homelab/SKILL.md + skills/install.sh to preserve Copilot skill
- Remove previously-tracked inventory-cli binary from git index

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-09 08:10:32 +02:00

33 lines
1,006 B
JavaScript

"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.makeNotify = void 0;
var path_1 = __importDefault(require("path"));
var notifier = null;
try {
notifier = require('node-notifier');
}
catch (error) {
notifier = null;
}
function icon(level) {
return path_1.default.resolve(__dirname, '../icons/node_' + level + '.png');
}
/**
* Displays a desktop notification and writes a message to the console.
*/
exports.makeNotify = function (cfg, log) {
return function (title, msg, level) {
level = level || 'info';
log([title, msg].filter(function (_) { return _; }).join(': '), level);
if (notifier !== null && cfg.notify) {
notifier.notify({
title: title || 'node.js',
icon: icon(level),
message: msg,
});
}
};
};