#5237 Fix eslint error

This commit is contained in:
Ashish Jain
2024-06-13 14:10:58 +02:00
parent a6dc1eaa40
commit a5281e0464
3 changed files with 805 additions and 703 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1,181 +1,191 @@
<html> <html>
<head>
<link href="https://fonts.googleapis.com/css?family=Montserrat&display=swap" rel="stylesheet" />
<link href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css" rel="stylesheet" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"
/>
<link
href="https://cdn.jsdelivr.net/npm/@mdi/font@6.9.96/css/materialdesignicons.min.css"
rel="stylesheet"
/>
<link
href="https://fonts.googleapis.com/css?family=Noto+Sans+SC&display=swap"
rel="stylesheet"
/>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Kalam:wght@300;400;700&display=swap"
rel="stylesheet"
/>
<link
href="https://fonts.googleapis.com/css2?family=Caveat:wght@400..700&family=Kalam:wght@300;400;700&family=Rubik+Mono+One&display=swap"
rel="stylesheet"
/>
<link
href="https://fonts.googleapis.com/css2?family=Kalam:wght@300;400;700&family=Rubik+Mono+One&display=swap"
rel="stylesheet"
/>
<head> <style>
<link href="https://fonts.googleapis.com/css?family=Montserrat&display=swap" rel="stylesheet" /> body {
<link href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css" rel="stylesheet" /> font-family: 'Arial';
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" /> }
<link href="https://cdn.jsdelivr.net/npm/@mdi/font@6.9.96/css/materialdesignicons.min.css" rel="stylesheet" />
<link href="https://fonts.googleapis.com/css?family=Noto+Sans+SC&display=swap" rel="stylesheet" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Kalam:wght@300;400;700&display=swap" rel="stylesheet" />
<link
href="https://fonts.googleapis.com/css2?family=Caveat:wght@400..700&family=Kalam:wght@300;400;700&family=Rubik+Mono+One&display=swap"
rel="stylesheet" />
<link href="https://fonts.googleapis.com/css2?family=Kalam:wght@300;400;700&family=Rubik+Mono+One&display=swap"
rel="stylesheet" />
<style> table {
body { width: 100%;
font-family: 'Arial'; border-collapse: collapse;
} table-layout: fixed;
}
table { th,
width: 100%; td {
border-collapse: collapse; border: 1px solid black;
table-layout: fixed; padding: 10px;
} text-align: center;
vertical-align: middle;
}
th, .separator {
td { height: 20px;
border: 1px solid black; background-color: #f0f0f0;
padding: 10px; }
text-align: center;
vertical-align: middle;
}
.separator { .vertical-header {
height: 20px; text-align: center;
background-color: #f0f0f0; }
}
.vertical-header { .collapsible {
text-align: center; background-color: #f9f9f9;
} color: #444;
cursor: pointer;
padding: 18px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
}
.collapsible { .active,
background-color: #f9f9f9; .collapsible:hover {
color: #444; background-color: #ccc;
cursor: pointer; }
padding: 18px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
}
.active, .collapsible:after {
.collapsible:hover { content: '\002B';
background-color: #ccc; color: #777;
} font-weight: bold;
float: right;
margin-left: 2px;
}
.collapsible:after { .active:after {
content: '\002B'; content: '\2212';
color: #777; }
font-weight: bold;
float: right;
margin-left: 2px;
}
.active:after { .content {
content: "\2212"; padding: 0 5px;
} max-height: 0;
overflow: hidden;
transition: max-height 0.2s ease-out;
background-color: #f1f1f1;
}
.content { .content .pre-scrollable {
padding: 0 5px; max-height: 200px;
max-height: 0; overflow-y: scroll;
overflow: hidden; }
transition: max-height 0.2s ease-out; </style>
background-color: #f1f1f1; </head>
}
.content .pre-scrollable { <body>
max-height: 200px; <table>
overflow-y: scroll; <tr>
} <th></th>
</style> <!-- Placeholder for the top left corner -->
</head> <th>State rough</th>
<th>Flowchart rough</th>
<body> </tr>
<table> <tr>
<tr> <th class="vertical-header">
<th></th> <!-- Placeholder for the top left corner --> <button class="collapsible">Stadium shape</button>
<th>State rough</th> <div class="content">
<th>Flowchart rough</th> <div class="pre-scrollable">
</tr> <pre>
<tr>
<th class="vertical-header">
<button class="collapsible">Stadium shape</button>
<div class="content">
<div class="pre-scrollable">
<pre>
flowchart LR flowchart LR
id1([This is the text in the box]) id1([This is the text in the box])
</pre> </pre
>
</div>
</div> </div>
</th> </th>
<td> <td>
<pre id="diagram1" class="mermaid"> <pre id="diagram1" class="mermaid">
%%{init: {"look": "handdrawn"} }%% %%{init: {"look": "handdrawn"} }%%
stateDiagram-v2 stateDiagram-v2
stateA stateA
</pre> </pre
</td> >
<td> </td>
<pre id="diagram2" class="mermaid"> <td>
<pre id="diagram2" class="mermaid">
%%{init: {"look": "handdrawn"} }%% %%{init: {"look": "handdrawn"} }%%
flowchart LR flowchart LR
id1[[This is the text in the box]] id1[[This is the text in the box]]
</pre> </pre
</td> >
</td>
</tr>
</table>
</tr> <script type="module">
import mermaid from './mermaid.esm.mjs';
import { layouts } from './mermaid-layout-elk.esm.mjs';
mermaid.registerLayoutLoaders(layouts);
mermaid.parseError = function (err, hash) {};
mermaid.initialize({
</table> handdrawn: false,
mergeEdges: true,
layout: 'dagre',
<script type="module"> flowchart: { titleTopMargin: 10 },
import mermaid from './mermaid.esm.mjs'; // fontFamily: 'Caveat',
import { layouts } from './mermaid-layout-elk.esm.mjs'; fontFamily: 'Kalam',
mermaid.registerLayoutLoaders(layouts); sequence: {
mermaid.parseError = function (err, hash) { actorFontFamily: 'courier',
noteFontFamily: 'courier',
}; messageFontFamily: 'courier',
},
mermaid.initialize({ fontSize: 16,
handdrawn: false, logLevel: 0,
mergeEdges: true,
layout: 'dagre',
flowchart: { titleTopMargin: 10 },
// fontFamily: 'Caveat',
fontFamily: 'Kalam',
sequence: {
actorFontFamily: 'courier',
noteFontFamily: 'courier',
messageFontFamily: 'courier',
},
fontSize: 16,
logLevel: 0,
});
function callback() {
alert('It worked');
}
mermaid.parseError = function (err, hash) {
console.error('In parse error:');
console.error(err);
};
let coll = document.getElementsByClassName("collapsible");
for (const element of coll) {
element.addEventListener("click", function () {
this.classList.toggle("active");
let content = this.nextElementSibling;
if (content.style.maxHeight) {
content.style.maxHeight = null;
} else {
content.style.maxHeight = content.scrollHeight + "px";
}
}); });
} function callback() {
alert('It worked');
}
mermaid.parseError = function (err, hash) {
console.error('In parse error:');
console.error(err);
};
</script> let coll = document.getElementsByClassName('collapsible');
</body> for (const element of coll) {
element.addEventListener('click', function () {
</html> this.classList.toggle('active');
let content = this.nextElementSibling;
if (content.style.maxHeight) {
content.style.maxHeight = null;
} else {
content.style.maxHeight = content.scrollHeight + 'px';
}
});
}
</script>
</body>
</html>

View File

@@ -105,6 +105,7 @@
stateId stateId
</pre> </pre>
</div> </div>
</div>
</th> </th>
<td> <td>
<pre id="diagram1" class="mermaid"> <pre id="diagram1" class="mermaid">