Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions _includes/head_custom.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<link rel="icon" href={{ '/logo.svg' | relative_url }} />
211 changes: 211 additions & 0 deletions logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 8 additions & 12 deletions playground/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ function buildErrorNote(diagnostics: GraphAlgDiagnostic[]): HTMLQuoteElement {
const quote = document.createElement("blockquote");
quote.setAttribute('class', 'error-title');
const title = document.createElement("p");
title.textContent = "Run failed";
title.textContent = "Compiler error";
quote.appendChild(title);

for (let diag of diagnostics) {
Expand All @@ -712,17 +712,13 @@ function buildErrorNote(diagnostics: GraphAlgDiagnostic[]): HTMLQuoteElement {
function buildCompileSuccessNote(): HTMLQuoteElement {
const quote = document.createElement("blockquote");
quote.setAttribute('class', 'success-title');
const messages = [
"Compiled successfully",
"Parser: OK, syntax is valid",
"Type checker: OK, types are valid",
];

for (let msg of messages) {
const pelem = document.createElement("p");
pelem.textContent = msg;
quote.appendChild(pelem);
}
quote.innerHTML = `
<p>Compiled successfully</p>
<p>
Parser: Syntax valid ✓
<br/>
Type checker: Types valid ✓
</p>`;

return quote;
}
Expand Down