Detects when user changes same config setting 3+ times within 24 hours. Shows non-intrusive prompt offering help with guided calibration flow. Guided calibration features: - Test for false positives (walk around room) - Test for missed motion (sit still) - Suggest optimal value based on diurnal baseline SNR and link health - Apply suggested value button Files: - dashboard/js/proactive.js: Complete implementation with localStorage tracking Acceptance: - Help prompt fires after 3+ changes in 24h - Calibration flow tests both directions - Suggests value based on system data - Apply button works
39 lines
1.6 KiB
JavaScript
39 lines
1.6 KiB
JavaScript
'use strict';
|
|
|
|
|
|
var loader = require('./js-yaml/loader');
|
|
var dumper = require('./js-yaml/dumper');
|
|
|
|
|
|
function deprecated(name) {
|
|
return function () {
|
|
throw new Error('Function ' + name + ' is deprecated and cannot be used.');
|
|
};
|
|
}
|
|
|
|
|
|
module.exports.Type = require('./js-yaml/type');
|
|
module.exports.Schema = require('./js-yaml/schema');
|
|
module.exports.FAILSAFE_SCHEMA = require('./js-yaml/schema/failsafe');
|
|
module.exports.JSON_SCHEMA = require('./js-yaml/schema/json');
|
|
module.exports.CORE_SCHEMA = require('./js-yaml/schema/core');
|
|
module.exports.DEFAULT_SAFE_SCHEMA = require('./js-yaml/schema/default_safe');
|
|
module.exports.DEFAULT_FULL_SCHEMA = require('./js-yaml/schema/default_full');
|
|
module.exports.load = loader.load;
|
|
module.exports.loadAll = loader.loadAll;
|
|
module.exports.safeLoad = loader.safeLoad;
|
|
module.exports.safeLoadAll = loader.safeLoadAll;
|
|
module.exports.dump = dumper.dump;
|
|
module.exports.safeDump = dumper.safeDump;
|
|
module.exports.YAMLException = require('./js-yaml/exception');
|
|
|
|
// Deprecated schema names from JS-YAML 2.0.x
|
|
module.exports.MINIMAL_SCHEMA = require('./js-yaml/schema/failsafe');
|
|
module.exports.SAFE_SCHEMA = require('./js-yaml/schema/default_safe');
|
|
module.exports.DEFAULT_SCHEMA = require('./js-yaml/schema/default_full');
|
|
|
|
// Deprecated functions from JS-YAML 1.x.x
|
|
module.exports.scan = deprecated('scan');
|
|
module.exports.parse = deprecated('parse');
|
|
module.exports.compose = deprecated('compose');
|
|
module.exports.addConstructor = deprecated('addConstructor');
|