Skip to content

Commit

Permalink
Merge pull request #1854 from rern/UPDATE
Browse files Browse the repository at this point in the history
Update
  • Loading branch information
rern authored Dec 28, 2024
2 parents 0a5ec10 + 5183dca commit 9b4774e
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 45 deletions.
46 changes: 23 additions & 23 deletions srv/http/assets/js/camilla.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
ps.volume = data => {
if ( V.local ) {
V.local = false;
return
}
var vol = data.val;
if ( data.type === 'mute' ) {
common.volumeAnimate( 0, S.volume );
S.volume = 0;
S.volumemute = vol;
} else if ( data.type === 'unmute' ) {
common.volumeAnimate( S.volumemute, 0 );
S.volume = vol;
S.volumemute = 0;
} else {
if ( data.type === 'drag' ) {
V.drag = true;
setTimeout( () => V.drag = false, 300 );
}
common.volumeAnimate( vol, S.volume );
S.volume = vol;
}
}
// variables //////////////////////////////////////////////////////////////////////////////
V = {
clipped : false
Expand Down Expand Up @@ -482,29 +505,6 @@ function renderPage() { // common from settings.js - render with 'GetConfigJson'
function onPageInactive() {
if ( wscamilla ) wscamilla.close();
}
ps.volume = data => {
if ( V.local ) {
V.local = false;
return
}
var vol = data.val;
if ( data.type === 'mute' ) {
common.volumeAnimate( 0, S.volume );
S.volume = 0;
S.volumemute = vol;
} else if ( data.type === 'unmute' ) {
common.volumeAnimate( S.volumemute, 0 );
S.volume = vol;
S.volumemute = 0;
} else {
if ( data.type === 'drag' ) {
V.drag = true;
setTimeout( () => V.drag = false, 300 );
}
common.volumeAnimate( vol, S.volume );
S.volume = vol;
}
}

var config = {
configuration : () => {
Expand Down
18 changes: 9 additions & 9 deletions srv/http/assets/js/system.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
ps.storage = data => {
clearTimeout( V.debounce );
V.debounce = setTimeout( () => {
S.liststorage = data.list;
util.renderStorage();
if ( $( '#data' ).length ) $( '#data' ).html( highlightJSON( S ) );
}, 1000 );
}
var config = {
_disable : {
shareddata : () => {
Expand Down Expand Up @@ -372,7 +380,7 @@ var util = {
, beforeshow : () => {
$( '#infoList label' ).parents( 'td' ).prop( 'colspan', 3 );
$( '.infofooter i' )
.toggleClass( 'disabled', ! S.lcdchar || data.reboot )
.toggleClass( 'disabled', ! S.lcdchar )
.on( 'click', function() {
bash( [ 'lcdcharset', $( this ).index() ? 'off' : 'logo', 'CMD ACTION' ] );
} );
Expand Down Expand Up @@ -897,14 +905,6 @@ function renderPage() {
$( 'a[ href ]' ).prop( 'tabindex', -1 );
showContent();
}
ps.storage = data => {
clearTimeout( V.debounce );
V.debounce = setTimeout( () => {
S.liststorage = data.list;
util.renderStorage();
if ( $( '#data' ).length ) $( '#data' ).html( highlightJSON( S ) );
}, 1000 );
}

$( function() { // document ready start >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Expand Down
23 changes: 11 additions & 12 deletions srv/http/bash/settings/data-status.sh
Original file line number Diff line number Diff line change
Expand Up @@ -145,33 +145,32 @@ $( sed -E -e '1,3 d' -e '/^ATA device|Media.*:|Serial.*:|Transport:/ d' <<< $par
fi
;;
system )
firmware="pacman -Qs 'firmware|bootloader' | grep -Ev '^\s|whence' | cut -d/ -f2"
config="\
<bll># cat /boot/cmdline.txt</bll>
$( < /boot/cmdline.txt )
<bll># cat /boot/config.txt</bll>
$( grep -Ev '^#|^\s*$' /boot/config.txt )
<bll># $firmware</bll>
$( eval $firmware )"
raspberrypiconf=$( cat $filemodule 2> /dev/null )
if [[ $raspberrypiconf ]]; then
<bll># firmware, bootloader</bll>
$( pacman -Qs 'firmware|bootloader' | grep -Ev '^\s|whence' | cut -d/ -f2 )"
ignorepkg=$( grep ^IgnorePkg /etc/pacman.conf )
[[ $ignorepkg ]] && config+="
<bll># grep ^IgnorePkg /etc/pacman.conf</bll>
$ignorepkg"
file_module=/etc/modules-load.d/raspberrypi.conf
if [[ -e $file_module ]]; then
config+="
<bll># $filemodule</bll>
$raspberrypiconf"
<bll># cat $file_module</bll>
$( < $file_module )"
dev=$( ls /dev/i2c* 2> /dev/null | cut -d- -f2 )
[[ $dev ]] && config+="
<bll># i2cdetect -y $dev</bll>
$( i2cdetect -y $dev )"
fi
ignorepkg=$( grep ^IgnorePkg /etc/pacman.conf )
[[ $ignorepkg ]] && config+="
<bll># grep ^IgnorePkg /etc/pacman.conf</bll>
$ignorepkg"
echo "$config"
;;
timezone )
Expand Down
2 changes: 1 addition & 1 deletion srv/http/bash/settings/system.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ i2c-dev'
i2c-dev
snd-soc-wm8960'
fi
[[ -e $module ]] && sort -u <<< $module > $file_module || rm -f $file_module
[[ $module ]] && sort -u <<< $module | awk NF > $file_module || rm -f $file_module
fi
if [[ $poweraudiophonic ]]; then
config+="
Expand Down

0 comments on commit 9b4774e

Please sign in to comment.