2023-06-19 15:52:21 -04:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>Decompilation Status</title>
|
|
|
|
<style>
|
|
|
|
body {
|
|
|
|
background: #202020;
|
|
|
|
color: #f0f0f0;
|
|
|
|
font-family: sans-serif;
|
|
|
|
}
|
|
|
|
|
|
|
|
h1 {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.main {
|
|
|
|
width: 800px;
|
|
|
|
max-width: 100%;
|
|
|
|
margin: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
#search {
|
|
|
|
width: 100%;
|
|
|
|
box-sizing: border-box;
|
|
|
|
background: #303030;
|
|
|
|
color: #f0f0f0;
|
|
|
|
border: 1px #f0f0f0 solid;
|
|
|
|
padding: 0.5em;
|
|
|
|
border-radius: 0.5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
#search::placeholder {
|
|
|
|
color: #b0b0b0;
|
|
|
|
}
|
|
|
|
|
|
|
|
#listing {
|
|
|
|
width: 100%;
|
|
|
|
border-collapse: collapse;
|
|
|
|
font-family: monospace;
|
|
|
|
}
|
|
|
|
|
2024-02-21 18:04:38 -05:00
|
|
|
func-row:hover {
|
2023-06-19 15:52:21 -04:00
|
|
|
background: #404040 !important;
|
|
|
|
}
|
|
|
|
|
2024-02-21 18:04:38 -05:00
|
|
|
func-row:nth-child(odd of :not([hidden])), #listing > thead th {
|
2023-06-19 15:52:21 -04:00
|
|
|
background: #282828;
|
|
|
|
}
|
|
|
|
|
2024-02-21 18:04:38 -05:00
|
|
|
func-row:nth-child(even of :not([hidden])) {
|
2023-06-19 15:52:21 -04:00
|
|
|
background: #383838;
|
|
|
|
}
|
|
|
|
|
2024-03-22 13:40:51 -04:00
|
|
|
table#listing {
|
2023-06-19 15:52:21 -04:00
|
|
|
border: 1px #f0f0f0 solid;
|
2024-03-22 13:40:51 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
#listing > thead th {
|
2023-06-19 15:52:21 -04:00
|
|
|
padding: 0.5em;
|
2024-03-22 13:40:51 -04:00
|
|
|
user-select: none;
|
|
|
|
width: 10%;
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
#listing:not([show-recomp]) > thead th[data-col="recomp"] {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
#listing > thead th > div {
|
|
|
|
display: flex;
|
|
|
|
column-gap: 0.5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
#listing > thead th > div > span {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
#listing > thead th > div > span:hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
text-decoration-style: dotted;
|
|
|
|
}
|
|
|
|
|
|
|
|
#listing > thead th:last-child > div {
|
|
|
|
justify-content: right;
|
|
|
|
}
|
|
|
|
|
|
|
|
#listing > thead th[data-col="name"] {
|
|
|
|
width: 60%;
|
2023-06-19 15:52:21 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.diffneg {
|
|
|
|
color: #FF8080;
|
|
|
|
}
|
|
|
|
|
|
|
|
.diffpos {
|
|
|
|
color: #80FF80;
|
|
|
|
}
|
|
|
|
|
2024-02-20 02:56:33 -05:00
|
|
|
.diffslug {
|
|
|
|
color: #8080FF;
|
|
|
|
}
|
|
|
|
|
2023-11-22 02:52:57 -05:00
|
|
|
.identical {
|
|
|
|
font-style: italic;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
2024-02-20 02:56:33 -05:00
|
|
|
sort-indicator {
|
2024-03-22 13:40:51 -04:00
|
|
|
user-select: none;
|
2023-06-19 15:52:21 -04:00
|
|
|
}
|
2023-06-21 17:43:01 -04:00
|
|
|
|
|
|
|
.filters {
|
2024-02-20 02:56:33 -05:00
|
|
|
align-items: top;
|
|
|
|
display: flex;
|
2023-06-21 17:43:01 -04:00
|
|
|
font-size: 10pt;
|
2024-02-20 02:56:33 -05:00
|
|
|
justify-content: space-between;
|
2023-06-21 17:43:01 -04:00
|
|
|
margin: 0.5em 0 1em 0;
|
|
|
|
}
|
2023-06-19 15:52:21 -04:00
|
|
|
|
2024-02-20 02:56:33 -05:00
|
|
|
.filters > fieldset {
|
|
|
|
/* checkbox and radio buttons v-aligned with text */
|
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
2023-11-22 02:52:57 -05:00
|
|
|
}
|
2023-06-19 15:52:21 -04:00
|
|
|
|
2024-03-22 13:40:51 -04:00
|
|
|
.filters > fieldset > input, .filters > fieldset > label {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2024-02-20 02:56:33 -05:00
|
|
|
.filters > fieldset > label {
|
|
|
|
margin-right: 10px;
|
2023-11-22 02:52:57 -05:00
|
|
|
}
|
2023-06-19 15:52:21 -04:00
|
|
|
|
2024-02-20 02:56:33 -05:00
|
|
|
table.diffTable {
|
|
|
|
border-collapse: collapse;
|
2023-06-19 15:52:21 -04:00
|
|
|
}
|
|
|
|
|
2024-02-20 02:56:33 -05:00
|
|
|
table.diffTable:not(:last-child) {
|
|
|
|
/* visual gap *between* diff context groups */
|
|
|
|
margin-bottom: 40px;
|
2023-06-19 15:52:21 -04:00
|
|
|
}
|
|
|
|
|
2024-02-20 02:56:33 -05:00
|
|
|
table.diffTable td, table.diffTable th {
|
|
|
|
border: 0 none;
|
|
|
|
padding: 0 10px 0 0;
|
2023-06-19 15:52:21 -04:00
|
|
|
}
|
|
|
|
|
2024-02-20 02:56:33 -05:00
|
|
|
table.diffTable th {
|
|
|
|
/* don't break address if asm line is long */
|
|
|
|
word-break: keep-all;
|
2023-06-19 15:52:21 -04:00
|
|
|
}
|
|
|
|
|
2024-02-20 02:56:33 -05:00
|
|
|
diff-display[data-option="0"] th:nth-child(1) {
|
|
|
|
display: none;
|
2023-06-19 15:52:21 -04:00
|
|
|
}
|
|
|
|
|
2024-02-20 02:56:33 -05:00
|
|
|
diff-display[data-option="0"] th:nth-child(2),
|
|
|
|
diff-display[data-option="1"] th:nth-child(2) {
|
|
|
|
display: none;
|
|
|
|
}
|
2024-02-13 20:25:51 -05:00
|
|
|
|
2024-02-20 02:56:33 -05:00
|
|
|
label {
|
|
|
|
user-select: none;
|
|
|
|
}
|
2024-03-22 13:40:51 -04:00
|
|
|
|
|
|
|
#pageDisplay > button {
|
|
|
|
cursor: pointer;
|
|
|
|
padding: 0.25em 0.5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
#pageDisplay select {
|
|
|
|
cursor: pointer;
|
|
|
|
padding: 0.25em;
|
|
|
|
margin: 0 0.5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
p.rowcount {
|
|
|
|
align-self: flex-end;
|
|
|
|
font-size: 1.2em;
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2024-02-20 02:56:33 -05:00
|
|
|
</style>
|
|
|
|
<script>var data = {{{data}}};</script>
|
|
|
|
<script>{{{reccmp_js}}}</script>
|
2023-06-19 15:52:21 -04:00
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="main">
|
|
|
|
<h1>Decompilation Status</h1>
|
2024-03-22 13:40:51 -04:00
|
|
|
<listing-options>
|
2024-02-20 02:56:33 -05:00
|
|
|
<input id="search" type="search" placeholder="Search for offset or function name...">
|
|
|
|
<div class="filters">
|
|
|
|
<fieldset>
|
|
|
|
<legend>Options:</legend>
|
|
|
|
<input type="checkbox" id="cbHidePerfect" />
|
|
|
|
<label for="cbHidePerfect">Hide 100% match</label>
|
|
|
|
<input type="checkbox" id="cbHideStub" />
|
|
|
|
<label for="cbHideStub">Hide stubs</label>
|
2024-03-22 13:40:51 -04:00
|
|
|
<input type="checkbox" id="cbShowRecomp" />
|
|
|
|
<label for="cbShowRecomp">Show recomp address</label>
|
2024-02-20 02:56:33 -05:00
|
|
|
</fieldset>
|
|
|
|
<fieldset>
|
|
|
|
<legend>Search filters on:</legend>
|
|
|
|
<input type="radio" name="filterType" id="filterName" value=1 checked />
|
|
|
|
<label for="filterName">Name/address</label>
|
|
|
|
<input type="radio" name="filterType" id="filterAsm" value=2 />
|
|
|
|
<label for="filterAsm">Asm output</label>
|
|
|
|
<input type="radio" name="filterType" id="filterDiff" value=3 />
|
|
|
|
<label for="filterDiff">Asm diffs only</label>
|
|
|
|
</fieldset>
|
|
|
|
</div>
|
2024-03-22 13:40:51 -04:00
|
|
|
<div class="filters">
|
|
|
|
<p class="rowcount">Results: <span id="rowcount"></span></p>
|
|
|
|
<fieldset id="pageDisplay">
|
|
|
|
<legend>Page</legend>
|
|
|
|
<button id="pagePrev">prev</button>
|
|
|
|
<select id="pageSelect">
|
|
|
|
</select>
|
|
|
|
<button id="pageNext">next</button>
|
|
|
|
</fieldset>
|
|
|
|
</div>
|
|
|
|
</listing-options>
|
|
|
|
<listing-table>
|
2024-02-20 02:56:33 -05:00
|
|
|
<table id="listing">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2024-03-22 13:40:51 -04:00
|
|
|
<th data-col="address">
|
|
|
|
<div>
|
|
|
|
<span>Address</span>
|
|
|
|
<sort-indicator/>
|
|
|
|
</div>
|
|
|
|
</th>
|
|
|
|
<th data-col="recomp">
|
|
|
|
<div>
|
|
|
|
<span>Recomp</span>
|
|
|
|
<sort-indicator/>
|
|
|
|
</div>
|
|
|
|
</th>
|
|
|
|
<th data-col="name">
|
|
|
|
<div>
|
|
|
|
<span>Name</span>
|
|
|
|
<sort-indicator/>
|
|
|
|
</div>
|
|
|
|
</th>
|
|
|
|
<th data-col="diffs" data-no-sort></th>
|
|
|
|
<th data-col="matching">
|
|
|
|
<div>
|
|
|
|
<sort-indicator></sort-indicator>
|
|
|
|
<span>Matching</span>
|
|
|
|
</div>
|
|
|
|
</th>
|
2024-02-20 02:56:33 -05:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</listing-table>
|
2023-06-19 15:52:21 -04:00
|
|
|
</div>
|
2024-02-21 18:04:38 -05:00
|
|
|
<template id="funcrow-template">
|
|
|
|
<style>
|
|
|
|
:host(:not([hidden])) {
|
|
|
|
display: table-row;
|
|
|
|
}
|
|
|
|
|
2024-03-22 13:40:51 -04:00
|
|
|
:host(:not([show-recomp])) > div[data-col="recomp"] {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
div[data-col="name"]:hover {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
div[data-col="name"]:hover > ::slotted(*) {
|
|
|
|
text-decoration: underline;
|
|
|
|
text-decoration-style: dotted;
|
|
|
|
}
|
|
|
|
|
|
|
|
::slotted(*:not([slot="name"])) {
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
:host > div {
|
|
|
|
border-top: 1px #f0f0f0 solid;
|
2024-02-21 18:04:38 -05:00
|
|
|
display: table-cell;
|
|
|
|
padding: 0.5em;
|
|
|
|
word-break: break-all !important;
|
|
|
|
}
|
2024-03-22 13:40:51 -04:00
|
|
|
|
|
|
|
:host > div:last-child {
|
|
|
|
text-align: right;
|
|
|
|
}
|
2024-02-21 18:04:38 -05:00
|
|
|
</style>
|
2024-03-22 13:40:51 -04:00
|
|
|
<div data-col="address"><can-copy><slot name="address"></slot></can-copy></div>
|
|
|
|
<div data-col="recomp"><can-copy><slot name="recomp"></slot></can-copy></div>
|
|
|
|
<div data-col="name"><slot name="name"></slot></div>
|
|
|
|
<div data-col="diffs"><slot name="diffs"></slot></div>
|
|
|
|
<div data-col="matching"><slot name="matching"></slot></div>
|
2024-02-21 18:04:38 -05:00
|
|
|
</template>
|
|
|
|
<template id="diffrow-template">
|
|
|
|
<style>
|
|
|
|
:host(:not([hidden])) {
|
|
|
|
display: table-row;
|
|
|
|
contain: paint;
|
|
|
|
}
|
|
|
|
|
|
|
|
td.singleCell {
|
|
|
|
border: 1px #f0f0f0 solid;
|
2024-03-22 13:40:51 -04:00
|
|
|
border-bottom: 0px none;
|
2024-02-21 18:04:38 -05:00
|
|
|
display: table-cell;
|
|
|
|
padding: 0.5em;
|
|
|
|
word-break: break-all !important;
|
|
|
|
}
|
|
|
|
</style>
|
2024-03-22 13:40:51 -04:00
|
|
|
<td class="singleCell" colspan="5">
|
2024-02-21 18:04:38 -05:00
|
|
|
<slot></slot>
|
|
|
|
</td>
|
|
|
|
</template>
|
|
|
|
<template id="nodiff-template">
|
|
|
|
<style>
|
|
|
|
::slotted(*) {
|
|
|
|
font-style: italic;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
<slot></slot>
|
|
|
|
</template>
|
2024-03-22 13:40:51 -04:00
|
|
|
<template id="can-copy-template">
|
|
|
|
<style>
|
|
|
|
:host {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
::slotted(*) {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
slot::after {
|
|
|
|
background-color: #fff;
|
|
|
|
color: #222;
|
|
|
|
display: none;
|
|
|
|
font-size: 12px;
|
|
|
|
padding: 1px 2px;
|
|
|
|
width: fit-content;
|
|
|
|
border-radius: 1px;
|
|
|
|
text-align: center;
|
|
|
|
bottom: 120%;
|
|
|
|
box-shadow: 0 4px 14px 0 rgba(0,0,0,.2), 0 0 0 1px rgba(0,0,0,.05);
|
|
|
|
position: absolute;
|
|
|
|
white-space: nowrap;
|
|
|
|
transition: .1s;
|
|
|
|
content: 'Copy to clipboard';
|
|
|
|
}
|
|
|
|
::slotted(*:hover) {
|
|
|
|
text-decoration: underline;
|
|
|
|
text-decoration-style: dotted;
|
|
|
|
}
|
|
|
|
slot:hover::after {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
:host([copied]) > slot:hover::after {
|
|
|
|
content: 'Copied!';
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
<slot></slot>
|
|
|
|
</template>
|
2023-06-19 15:52:21 -04:00
|
|
|
</body>
|
|
|
|
</html>
|