Update the /m ##webui

This commit is contained in:
pancake 2024-09-06 20:04:36 +02:00
parent 9929b46cfb
commit 8480ac87dd
20 changed files with 42 additions and 220 deletions

View File

@ -1 +1 @@
"use strict";const m_root=self.location.pathname.split("/").slice(0,-1).join("/");importScripts(m_root+"/r2.js");var LINES=80,MAXLINES=Math.round(1.2*LINES),TOOLONG=2*LINES*3;function appendTo(o,s){if(null!==s)for(var e=0;e<s.length;e++){var n=parseInt(s[e].offset);"0"==s[e].size||s[e].size>=TOOLONG||void 0!==o[n]&&s[e].size<=o[n]||(o[n]=parseInt(s[e].size))}}self.onmessage=function(){var s,e,o={};r2.cmdj("fj ",function(o){s=o}),r2.cmdj("aflj",function(o){e=o}),appendTo(o,s),appendTo(o,e),self.postMessage(o)};
let m_root=self.location.pathname.split("/").slice(0,-1).join("/");importScripts(m_root+"/r2.js");var LINES=80,MAXLINES=Math.round(1.2*LINES),TOOLONG=2*LINES*3;function appendTo(e,o){if(null!==o)for(var n=0;n<o.length;n++){var s=parseInt(o[n].offset);"0"==o[n].size||o[n].size>=TOOLONG||void 0!==e[s]&&o[n].size<=e[s]||(e[s]=parseInt(o[n].size))}}self.onmessage=function(){var o,n,e={};r2.cmdj("fj ",function(e){o=e}),r2.cmdj("aflj",function(e){n=e}),appendTo(e,o),appendTo(e,n),self.postMessage(e)};

View File

@ -1 +1 @@
"use strict";const m_root=self.location.pathname.split("/").slice(0,-1).join("/");function extractOffset(e){e=e.match(/(0x[a-fA-F0-9]+)/);return null===e?null:e[1]}function extractFct(e){e=e.replace(/<[^>]*>/g,"").match(/\(fcn\) ([\S^]+)/);return null===e?null:e[1]}function extractVar(e){e=e.replace(/<[^>]*>/g,"").match(/; var ([a-zA-Z0-9]+) ([\S^]+)/);return null===e?null:e[2]}function prepareClickableOffsets(e){return e=(e=(e=(e=e.replace(/0x([a-zA-Z0-9]*)/g,"<a class='r2seek'>0x$1</a>")).replace(/sym\.([\.a-zA-Z0-9_]*)/g,"<a class='r2seek'>sym.$1</a>")).replace(/fcn\.([\.a-zA-Z0-9_]*)/g,"<a class='r2seek'>fcn.$1</a>")).replace(/str\.([\.a-zA-Z0-9_]*)/g,"<a class='r2seek'>str.$1</a>")}function getChunk(e,a){r2.cmd("pD "+a+"@e:scr.color=3@"+e+"|H",function(e){t=e});for(var t,s=(t=prepareClickableOffsets(t)).split("\n"),r=0;r<s.length;r++){var n=extractFct(s[r]),n=(null!==n&&(s[r]="<span class='fcn' id='"+n+"'>"+s[r]+"</span>"),extractVar(s[r])),n=(null!==n&&(s[r]="<span class='var' id='"+n+"'>"+s[r]+"</span>"),extractOffset(s[r]));null!==n&&(s[r]="<span class='offset' id='"+parseInt(n,16)+"'>"+s[r]+"</span>")}return'<pre style="border-bottom:1px dashed white;" title="'+e+'" id="block'+e+'">'+s.join("\n")+"</pre>"}importScripts(m_root+"/r2.js"),self.onmessage=function(e){e.data.offset<0?self.postMessage({offset:0,data:"before 0x00"}):(e={offset:e.data.offset,size:e.data.size,data:getChunk(e.data.offset,e.data.size)},self.postMessage(e))};
let m_root=self.location.pathname.split("/").slice(0,-1).join("/");function extractOffset(e){e=e.match(/(0x[a-fA-F0-9]+)/);return null===e?null:e[1]}function extractFct(e){e=e.replace(/<[^>]*>/g,"").match(/\(fcn\) ([\S^]+)/);return null===e?null:e[1]}function extractVar(e){e=e.replace(/<[^>]*>/g,"").match(/; var ([a-zA-Z0-9]+) ([\S^]+)/);return null===e?null:e[2]}function prepareClickableOffsets(e){return e=(e=(e=(e=e.replace(/0x([a-zA-Z0-9]*)/g,"<a class='r2seek'>0x$1</a>")).replace(/sym\.([\.a-zA-Z0-9_]*)/g,"<a class='r2seek'>sym.$1</a>")).replace(/fcn\.([\.a-zA-Z0-9_]*)/g,"<a class='r2seek'>fcn.$1</a>")).replace(/str\.([\.a-zA-Z0-9_]*)/g,"<a class='r2seek'>str.$1</a>")}function getChunk(e,a){r2.cmd("pD "+a+"@e:scr.color=3@"+e+"|H",function(e){t=e});for(var t,s=(t=prepareClickableOffsets(t)).split("\n"),r=0;r<s.length;r++){var l=extractFct(s[r]),l=(null!==l&&(s[r]="<span class='fcn' id='"+l+"'>"+s[r]+"</span>"),extractVar(s[r])),l=(null!==l&&(s[r]="<span class='var' id='"+l+"'>"+s[r]+"</span>"),extractOffset(s[r]));null!==l&&(s[r]="<span class='offset' id='"+parseInt(l,16)+"'>"+s[r]+"</span>")}return'<pre style="border-bottom:1px dashed white;" title="'+e+'" id="block'+e+'">'+s.join("\n")+"</pre>"}importScripts(m_root+"/r2.js"),self.onmessage=function(e){e.data.offset<0?self.postMessage({offset:0,data:"before 0x00"}):(e={offset:e.data.offset,size:e.data.size,data:getChunk(e.data.offset,e.data.size)},self.postMessage(e))};

View File

@ -1 +1 @@
"use strict";const m_root=self.location.pathname.split("/").slice(0,-1).join("/");importScripts(m_root+"/r2.js");var howManyBytes,nbCols,configurationDone=!1;function hexPairToASCII(o){o=parseInt(o,16);return 33<=o&&o<=126?String.fromCharCode(o):"."}function getChunk(e,i,r){return i<0?{offset:0,hex:[],ascii:[],flags:[],modified:[]}:(r2.cmd("p8 "+e+" @"+i,function(o){f={offset:i,hex:[],ascii:[],flags:[],modified:[]};for(var s=[],a="",n=0;n<e;n++){var t=o[2*n]+o[2*n+1];s.push(t),a+=hexPairToASCII(t),n%r==r-1&&(f.hex.push(s),f.ascii.push(a),s=[],a="")}}),r2.cmdj("fij "+i+" "+(i+e),function(o){for(var s in f.flags=o,f.flags)f.flags[s].size=parseInt(f.flags[s].size)}),f);var f}self.onmessage=function(o){var s;!configurationDone||o.data.reset?(howManyBytes=o.data.howManyBytes,nbCols=o.data.nbCols,configurationDone=!0):((s=getChunk(howManyBytes,o.data.offset,nbCols)).dir=o.data.dir,self.postMessage(s))};
let m_root=self.location.pathname.split("/").slice(0,-1).join("/");importScripts(m_root+"/r2.js");var howManyBytes,nbCols,configurationDone=!1;function hexPairToASCII(o){o=parseInt(o,16);return 33<=o&&o<=126?String.fromCharCode(o):"."}function getChunk(t,i,r){var f;return i<0?{offset:0,hex:[],ascii:[],flags:[],modified:[]}:(r2.cmd("p8 "+t+" @"+i,function(o){f={offset:i,hex:[],ascii:[],flags:[],modified:[]};for(var a=[],s="",n=0;n<t;n++){var e=o[2*n]+o[2*n+1];a.push(e),s+=hexPairToASCII(e),n%r==r-1&&(f.hex.push(a),f.ascii.push(s),a=[],s="")}}),r2.cmdj("fij "+i+" "+(i+t),function(o){for(var a in f.flags=o,f.flags)f.flags[a].size=parseInt(f.flags[a].size)}),f)}self.onmessage=function(o){var a;!configurationDone||o.data.reset?(howManyBytes=o.data.howManyBytes,nbCols=o.data.nbCols,configurationDone=!0):((a=getChunk(howManyBytes,o.data.offset,nbCols)).dir=o.data.dir,self.postMessage(a))};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -43,7 +43,8 @@
.material-icons.add_business:before{content:"\e729"}.material-icons.add_call:before{content:"\e0e8"}
.material-icons.add_card:before{content:"\eb86"}.material-icons.add_chart:before{content:"\e97b"}
.material-icons.add_circle:before{content:"\e147"}.material-icons.add_circle_outline:before{content:"\e148"}
.material-icons.add_comment:before{content:"\e266"}.material-icons.add_ic_call:before{content:"\e97c"}
.material-icons.add_comment:before{content:"\e266"}.material-icons.add_home:before{content:"\f8eb"}
.material-icons.add_home_work:before{content:"\f8ed"}.material-icons.add_ic_call:before{content:"\e97c"}
.material-icons.add_link:before{content:"\e178"}.material-icons.add_location:before{content:"\e567"}
.material-icons.add_location_alt:before{content:"\ef3a"}.material-icons.add_moderator:before{content:"\e97d"}
.material-icons.add_photo_alternate:before{content:"\e43e"}.material-icons.add_reaction:before{content:"\e1d3"}
@ -266,7 +267,8 @@
.material-icons.data_array:before{content:"\ead1"}.material-icons.data_exploration:before{content:"\e76f"}
.material-icons.data_object:before{content:"\ead3"}.material-icons.data_saver_off:before{content:"\eff2"}
.material-icons.data_saver_on:before{content:"\eff3"}.material-icons.data_thresholding:before{content:"\eb9f"}
.material-icons.data_usage:before{content:"\e1af"}.material-icons.date_range:before{content:"\e916"}
.material-icons.data_usage:before{content:"\e1af"}.material-icons.dataset:before{content:"\f8ee"}
.material-icons.dataset_linked:before{content:"\f8ef"}.material-icons.date_range:before{content:"\e916"}
.material-icons.deblur:before{content:"\eb77"}.material-icons.deck:before{content:"\ea42"}
.material-icons.dehaze:before{content:"\e3c7"}.material-icons.delete:before{content:"\e872"}
.material-icons.delete_forever:before{content:"\e92b"}.material-icons.delete_outline:before{content:"\e92e"}
@ -396,6 +398,7 @@
.material-icons.filter_vintage:before{content:"\e3e3"}.material-icons.find_in_page:before{content:"\e880"}
.material-icons.find_replace:before{content:"\e881"}.material-icons.fingerprint:before{content:"\e90d"}
.material-icons.fire_extinguisher:before{content:"\f1d8"}.material-icons.fire_hydrant:before{content:"\f1a3"}
.material-icons.fire_hydrant_alt:before{content:"\f8f1"}.material-icons.fire_truck:before{content:"\f8f2"}
.material-icons.fireplace:before{content:"\ea43"}.material-icons.first_page:before{content:"\e5dc"}
.material-icons.fit_screen:before{content:"\ea10"}.material-icons.fitbit:before{content:"\e82b"}
.material-icons.fitness_center:before{content:"\eb43"}.material-icons.flag:before{content:"\e153"}
@ -783,9 +786,9 @@
.material-icons.privacy_tip:before{content:"\f0dc"}.material-icons.private_connectivity:before{content:"\e744"}
.material-icons.production_quantity_limits:before{content:"\e1d1"}
.material-icons.propane:before{content:"\ec14"}.material-icons.propane_tank:before{content:"\ec13"}
.material-icons.psychology:before{content:"\ea4a"}.material-icons.public:before{content:"\e80b"}
.material-icons.public_off:before{content:"\f1ca"}.material-icons.publish:before{content:"\e255"}
.material-icons.published_with_changes:before{content:"\f232"}
.material-icons.psychology:before{content:"\ea4a"}.material-icons.psychology_alt:before{content:"\f8ea"}
.material-icons.public:before{content:"\e80b"}.material-icons.public_off:before{content:"\f1ca"}
.material-icons.publish:before{content:"\e255"}.material-icons.published_with_changes:before{content:"\f232"}
.material-icons.punch_clock:before{content:"\eaa8"}.material-icons.push_pin:before{content:"\f10d"}
.material-icons.qr_code:before{content:"\ef6b"}.material-icons.qr_code_2:before{content:"\e00a"}
.material-icons.qr_code_scanner:before{content:"\f206"}.material-icons.query_builder:before{content:"\e8ae"}
@ -815,11 +818,12 @@
.material-icons.remove_done:before{content:"\e9d3"}.material-icons.remove_from_queue:before{content:"\e067"}
.material-icons.remove_moderator:before{content:"\e9d4"}.material-icons.remove_red_eye:before{content:"\e417"}
.material-icons.remove_road:before{content:"\ebfc"}.material-icons.remove_shopping_cart:before{content:"\e928"}
.material-icons.reorder:before{content:"\e8fe"}.material-icons.repeat:before{content:"\e040"}
.material-icons.repeat_on:before{content:"\e9d6"}.material-icons.repeat_one:before{content:"\e041"}
.material-icons.repeat_one_on:before{content:"\e9d7"}.material-icons.replay:before{content:"\e042"}
.material-icons.replay_10:before{content:"\e059"}.material-icons.replay_30:before{content:"\e05a"}
.material-icons.replay_5:before{content:"\e05b"}.material-icons.replay_circle_filled:before{content:"\e9d8"}
.material-icons.reorder:before{content:"\e8fe"}.material-icons.repartition:before{content:"\f8e8"}
.material-icons.repeat:before{content:"\e040"}.material-icons.repeat_on:before{content:"\e9d6"}
.material-icons.repeat_one:before{content:"\e041"}.material-icons.repeat_one_on:before{content:"\e9d7"}
.material-icons.replay:before{content:"\e042"}.material-icons.replay_10:before{content:"\e059"}
.material-icons.replay_30:before{content:"\e05a"}.material-icons.replay_5:before{content:"\e05b"}
.material-icons.replay_circle_filled:before{content:"\e9d8"}
.material-icons.reply:before{content:"\e15e"}.material-icons.reply_all:before{content:"\e15f"}
.material-icons.report:before{content:"\e160"}.material-icons.report_gmailerrorred:before{content:"\f052"}
.material-icons.report_off:before{content:"\e170"}.material-icons.report_problem:before{content:"\e8b2"}
@ -1045,7 +1049,7 @@
.material-icons.tour:before{content:"\ef75"}.material-icons.toys:before{content:"\e332"}
.material-icons.track_changes:before{content:"\e8e1"}.material-icons.traffic:before{content:"\e565"}
.material-icons.train:before{content:"\e570"}.material-icons.tram:before{content:"\e571"}
.material-icons.transfer_within_a_station:before{content:"\e572"}
.material-icons.transcribe:before{content:"\f8ec"}.material-icons.transfer_within_a_station:before{content:"\e572"}
.material-icons.transform:before{content:"\e428"}.material-icons.transgender:before{content:"\e58d"}
.material-icons.transit_enterexit:before{content:"\e579"}.material-icons.translate:before{content:"\e8e2"}
.material-icons.travel_explore:before{content:"\e2db"}.material-icons.trending_down:before{content:"\e8e3"}
@ -1059,18 +1063,19 @@
.material-icons.turn_slight_left:before{content:"\eba4"}.material-icons.turn_slight_right:before{content:"\eb9a"}
.material-icons.turned_in:before{content:"\e8e6"}.material-icons.turned_in_not:before{content:"\e8e7"}
.material-icons.tv:before{content:"\e333"}.material-icons.tv_off:before{content:"\e647"}
.material-icons.two_wheeler:before{content:"\e9f9"}.material-icons.u_turn_left:before{content:"\eba1"}
.material-icons.u_turn_right:before{content:"\eba2"}.material-icons.umbrella:before{content:"\f1ad"}
.material-icons.unarchive:before{content:"\e169"}.material-icons.undo:before{content:"\e166"}
.material-icons.unfold_less:before{content:"\e5d6"}.material-icons.unfold_more:before{content:"\e5d7"}
.material-icons.unpublished:before{content:"\f236"}.material-icons.unsubscribe:before{content:"\e0eb"}
.material-icons.upcoming:before{content:"\f07e"}.material-icons.update:before{content:"\e923"}
.material-icons.update_disabled:before{content:"\e075"}.material-icons.upgrade:before{content:"\f0fb"}
.material-icons.upload:before{content:"\f09b"}.material-icons.upload_file:before{content:"\e9fc"}
.material-icons.usb:before{content:"\e1e0"}.material-icons.usb_off:before{content:"\e4fa"}
.material-icons.vaccines:before{content:"\e138"}.material-icons.vape_free:before{content:"\ebc6"}
.material-icons.vaping_rooms:before{content:"\ebcf"}.material-icons.verified:before{content:"\ef76"}
.material-icons.verified_user:before{content:"\e8e8"}.material-icons.vertical_align_bottom:before{content:"\e258"}
.material-icons.two_wheeler:before{content:"\e9f9"}.material-icons.type_specimen:before{content:"\f8f0"}
.material-icons.u_turn_left:before{content:"\eba1"}.material-icons.u_turn_right:before{content:"\eba2"}
.material-icons.umbrella:before{content:"\f1ad"}.material-icons.unarchive:before{content:"\e169"}
.material-icons.undo:before{content:"\e166"}.material-icons.unfold_less:before{content:"\e5d6"}
.material-icons.unfold_more:before{content:"\e5d7"}.material-icons.unpublished:before{content:"\f236"}
.material-icons.unsubscribe:before{content:"\e0eb"}.material-icons.upcoming:before{content:"\f07e"}
.material-icons.update:before{content:"\e923"}.material-icons.update_disabled:before{content:"\e075"}
.material-icons.upgrade:before{content:"\f0fb"}.material-icons.upload:before{content:"\f09b"}
.material-icons.upload_file:before{content:"\e9fc"}.material-icons.usb:before{content:"\e1e0"}
.material-icons.usb_off:before{content:"\e4fa"}.material-icons.vaccines:before{content:"\e138"}
.material-icons.vape_free:before{content:"\ebc6"}.material-icons.vaping_rooms:before{content:"\ebcf"}
.material-icons.verified:before{content:"\ef76"}.material-icons.verified_user:before{content:"\e8e8"}
.material-icons.vertical_align_bottom:before{content:"\e258"}
.material-icons.vertical_align_center:before{content:"\e259"}
.material-icons.vertical_align_top:before{content:"\e25a"}.material-icons.vertical_distribute:before{content:"\e076"}
.material-icons.vertical_shades:before{content:"\ec0e"}.material-icons.vertical_shades_closed:before{content:"\ec0d"}