Remove extraneous info
This commit is contained in:
parent
5230f8664b
commit
907b99bb65
|
@ -31,13 +31,11 @@ export class Edge {
|
||||||
getHtml() {
|
getHtml() {
|
||||||
const edges = this.getComorphicEdges();
|
const edges = this.getComorphicEdges();
|
||||||
let html = '';
|
let html = '';
|
||||||
html += `<span class=small>edge${edges.length > 1 ? 's' : ''}</span><br>`;
|
|
||||||
html += '<table>';
|
html += '<table>';
|
||||||
for (const { type, weight } of edges) {
|
for (const { type, weight } of edges) {
|
||||||
html += `<tr><td>${type}</td><td>${weight}</td></tr>`;
|
html += `<tr><td>${type}</td><td>${weight}</td></tr>`;
|
||||||
}
|
}
|
||||||
html += '</table>';
|
html += '</table>';
|
||||||
html += `<span class=small>${this.from.id} → ${this.to.id}</span><br>`;
|
|
||||||
|
|
||||||
return html;
|
return html;
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,7 +39,6 @@ export class Vertex {
|
||||||
}
|
}
|
||||||
|
|
||||||
let html = '';
|
let html = '';
|
||||||
html += '<span class=small>vertex</span><br>';
|
|
||||||
html += `${this.label}`;
|
html += `${this.label}`;
|
||||||
html += '<table>';
|
html += '<table>';
|
||||||
for (const [key, value] of this.properties.entries()) {
|
for (const [key, value] of this.properties.entries()) {
|
||||||
|
|
|
@ -18,10 +18,6 @@ const newExpert = async () => {
|
||||||
const index = experts.length;
|
const index = experts.length;
|
||||||
const name = `Expert${index + 1}`;
|
const name = `Expert${index + 1}`;
|
||||||
const expert = await new Expert(dao, name, scene).initialize();
|
const expert = await new Expert(dao, name, scene).initialize();
|
||||||
expert.setDisplayValue(
|
|
||||||
'rep',
|
|
||||||
() => dao.reputation.valueOwnedBy(expert.reputationPublicKey),
|
|
||||||
);
|
|
||||||
experts.push(expert);
|
experts.push(expert);
|
||||||
return expert;
|
return expert;
|
||||||
};
|
};
|
||||||
|
|
|
@ -17,7 +17,6 @@ async function newExpert() {
|
||||||
const index = experts.length;
|
const index = experts.length;
|
||||||
const name = `Expert${index + 1}`;
|
const name = `Expert${index + 1}`;
|
||||||
const expert = await new Expert(dao, name, scene).initialize();
|
const expert = await new Expert(dao, name, scene).initialize();
|
||||||
await expert.addComputedValue('rep', () => dao.reputation.valueOwnedBy(expert.reputationPublicKey));
|
|
||||||
experts.push(expert);
|
experts.push(expert);
|
||||||
return expert;
|
return expert;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue