42_npmjs: disable addLinks

git-svn-id: https://svn.fhem.de/fhem/trunk@18901 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
jpawlowski 2019-03-14 16:40:39 +00:00
parent 60653fc823
commit 4e28d945fd

View File

@ -39,7 +39,8 @@ use Data::Dumper;
BEGIN { BEGIN {
# Import from main:: # Import from main::
GP_Import( GP_Import(
qw(readingsSingleUpdate qw(
readingsSingleUpdate
readingsBulkUpdate readingsBulkUpdate
readingsBulkUpdateIfChanged readingsBulkUpdateIfChanged
readingsBeginUpdate readingsBeginUpdate
@ -60,7 +61,9 @@ BEGIN {
init_done init_done
gettimeofday gettimeofday
InternalTimer InternalTimer
RemoveInternalTimer) RemoveInternalTimer
FW_webArgs
)
); );
} }
@ -1274,6 +1277,9 @@ sub CreateWarningList($) {
my $warnings = $hash->{".fhem"}{npm}{'warnings'}; my $warnings = $hash->{".fhem"}{npm}{'warnings'};
# disable automatic links to FHEM devices
delete $FW_webArgs{addLinks};
my $ret = '<html><table><tr><td>'; my $ret = '<html><table><tr><td>';
$ret .= '<table class="block wide">'; $ret .= '<table class="block wide">';
$ret .= '<tr class="even">'; $ret .= '<tr class="even">';
@ -1309,6 +1315,9 @@ sub CreateErrorList($) {
my $hash = shift; my $hash = shift;
my $error = $hash->{".fhem"}{npm}{errors}; my $error = $hash->{".fhem"}{npm}{errors};
# disable automatic links to FHEM devices
delete $FW_webArgs{addLinks};
my $ret = '<html><table style="min-width: 450px;"><tr><td>'; my $ret = '<html><table style="min-width: 450px;"><tr><td>';
$ret .= '<table class="block wide">'; $ret .= '<table class="block wide">';
@ -1344,6 +1353,9 @@ sub CreateInstalledList($$) {
my $html = defined( $hash->{CL} ) && $hash->{CL}{TYPE} eq "FHEMWEB" ? 1 : 0; my $html = defined( $hash->{CL} ) && $hash->{CL}{TYPE} eq "FHEMWEB" ? 1 : 0;
$packages = $hash->{".fhem"}{npm}{listedpackages}{dependencies}; $packages = $hash->{".fhem"}{npm}{listedpackages}{dependencies};
# disable automatic links to FHEM devices
delete $FW_webArgs{addLinks};
my $header = ''; my $header = '';
my $footer = ''; my $footer = '';
if ($html) { if ($html) {
@ -1417,6 +1429,9 @@ sub CreateOutdatedList($$) {
$packages = $hash->{".fhem"}{npm}{outdatedpackages}; $packages = $hash->{".fhem"}{npm}{outdatedpackages};
my $npmglobal = ( AttrVal( $hash->{NAME}, 'npmglobal', 1 ) eq '1' ? 1 : 0 ); my $npmglobal = ( AttrVal( $hash->{NAME}, 'npmglobal', 1 ) eq '1' ? 1 : 0 );
# disable automatic links to FHEM devices
delete $FW_webArgs{addLinks};
my $header = ''; my $header = '';
my $footer = ''; my $footer = '';
if ($html) { if ($html) {
@ -1744,14 +1759,6 @@ sub ToDay() {
"abstract": "Modul zur Bedienung der Node.js Installation und Updates" "abstract": "Modul zur Bedienung der Node.js Installation und Updates"
} }
}, },
"keywords": [
"fhem-core",
"fhem-mod",
"fhem-mod-device",
"nodejs",
"node",
"npm"
],
"version": "v1.0.5", "version": "v1.0.5",
"release_status": "stable", "release_status": "stable",
"author": [ "author": [
@ -1818,32 +1825,6 @@ sub ToDay() {
"ALL=(ALL) NOPASSWD:SETENV: /usr/local/bin/npm uninstall *": 0 "ALL=(ALL) NOPASSWD:SETENV: /usr/local/bin/npm uninstall *": 0
} }
} }
},
"x_prereqs_permissions_fileown": {
"runtime": {
"requires": {
},
"recommends": {
},
"suggests": {
}
}
},
"x_prereqs_permissions_filemod": {
"runtime": {
"requires": {
},
"recommends": {
},
"suggests": {
}
}
},
"resources": {
"bugtracker": {
"web": "https://forum.fhem.de/index.php/board,29.0.html",
"x_web_title": "FHEM Forum: Sonstige Systeme"
}
} }
} }
=end :application/json;q=META.json =end :application/json;q=META.json