/usr/share/radare2/0.9.6/www/enyo/js/settings.js is in libradare2-common 0.9.6-3.1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 | enyo.kind ({
name: "Settings",
classes: "panels-sample-sliding-content r2panel",
kind: "Scroller",
tag: "div",
style:"color:black !important;padding:0px;margin:0px;border:0px;overflow:hidden",
components: [
{kind: "FittableRows", fit: false, components: [
{tag: "h2", content: "General" },
{kind: "onyx.InputDecorator", components: [
{tag: "p", content: "Two panels", classes:"rowline" },
{kind: "onyx.ToggleButton", name: "twopanels"},
]},
{kind: "onyx.InputDecorator", components: [
{tag: "p", content: "Edit keybindings", classes:"rowline" },
{kind: "onyx.Button", content: '+'},
]}
]},
{kind: "FittableRows", fit: false, components: [
{tag: "h2", content: "Target" }
,{kind: "onyx.InputDecorator", components: [
{tag: "p", content: "Arch", classes:"rowline"},
{kind: "onyx.PickerDecorator", components: [
{},
{kind: "onyx.Picker", name: "arch", components: [
/* TODO: construct from code */
{content: "arc"},
{content: "arm"},
{content: "avr"},
{content: "ppc"},
{content: "bf"},
{content: "dalvik"},
{content: "dcpu16"},
{content: "i8080"},
{content: "java"},
{content: "m68k"},
{content: "mips"},
{content: "msil"},
{content: "rar"},
{content: "sh"},
{content: "sparc"},
{content: "x86", active: true},
{content: "z80"},
]}
]}
]}
,{kind: "onyx.InputDecorator", components: [
{tag: "p", content: "Bits", classes:"rowline"},
{kind: "onyx.PickerDecorator", components: [
{},
{kind: "onyx.Picker", name: "bits", components: [
{content: "8"},
{content: "16"},
{content: "32", active: true},
{content: "64"}
]}
]}
]}
,{kind: "onyx.InputDecorator", components: [
{tag: "p", content: "Endian", classes:"rowline"},
{kind: "onyx.PickerDecorator", components: [
{},
{kind: "onyx.Picker", components: [
{content: "little", active: true},
{content: "big"},
]}
]}
]}
,{kind: "onyx.InputDecorator", components: [
{tag: "p", content: "OS", classes:"rowline"},
{kind: "onyx.PickerDecorator", components: [
{},
{kind: "onyx.Picker", components: [
{content: "linux", active: true},
{content: "darwin"},
{content: "w32"},
{content: "dos"},
]}
]}
]}
,{tag: "h2", content: "Disassembly" },
{kind: "onyx.InputDecorator", components: [
{tag: "p", content: "Show bytes", classes:"rowline", ontap: "nextPanel"},
{kind: "onyx.ToggleButton", name: "toggle_bytes"},
]}
,{kind: "onyx.InputDecorator",components: [
{tag: "p", content: "Show offsets", classes:"rowline", ontap: "nextPanel"},
{kind: "onyx.ToggleButton", name: "toggle_offset" },
]}
,{kind: "onyx.InputDecorator",components: [
{tag: "p", content: "Show lines", classes:"rowline", ontap: "nextPanel"},
{kind: "onyx.ToggleButton", name: "toggle_lines" },
]}
,{kind: "onyx.InputDecorator",components: [
{tag: "p", content: "Pseudo", classes:"rowline", ontap: "nextPanel"},
{kind: "onyx.ToggleButton", name: "toggle_pseudo" },
]}
]}
,{tag: "h2", content: "Save changes?" }
,{tag: "div",style:"margin-left:50px", components: [
{ontap:"reset", kind: "onyx.Button", style: "position:relative;left:0px", content: "Reset"},
{ontap:"save", kind: "onyx.Button", style: "position:relative;left:50px", content: "Save", classes: "onyx-affirmative"}
]}
,{tag: "div", style: "height:64px"}
],
load: function() {
var self = this;
self.$.twopanels.setActive (document.referrer.indexOf ("/two") != -1);
r2.cmd ("e asm.bytes", function (x) {
self.$.toggle_bytes.setActive (x[0] == 't');
});
r2.cmd ("e asm.pseudo", function (x) {
self.$.toggle_pseudo.setActive (x[0] == 't');
});
r2.cmd ("e asm.offset", function (x) {
self.$.toggle_offset.setActive (x[0] == 't');
});
},
create: function () {
this.inherited (arguments);
this.load ();
},
save: function() {
var arch = this.$.arch.selected.content;
var bits = this.$.bits.selected.content;
var show_bytes = this.$.toggle_bytes.active;
var show_pseudo = this.$.toggle_pseudo.active;
var show_offset = this.$.toggle_offset.active;
var twopanels = this.$.twopanels.active;
r2.cmds ([
"e asm.arch="+arch,
"e asm.bits="+bits,
"e asm.bytes="+show_bytes,
"e asm.offset="+show_offset,
"e asm.pseudo="+show_pseudo
]);
if (twopanels) {
window.parent.location ="/enyo/two";
} else {
window.parent.location ="/enyo/";
}
r2ui.seek ("$$", true);
},
reset: function() {
this.load ();
}
});
|