Compare commits

...
2 Commits
Author SHA1 Message Date
pantonshire 3f3b9d0b9e only display table if it has a nonzero number of rows 2023-06-15 14:34:34 +01:00
pantonshire eb6dfea3db add utfdump as submodule 2023-06-15 14:34:23 +01:00
4 changed files with 18 additions and 4 deletions

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
[submodule "utfdump"]
path = utfdump
url = https://github.com/pantonshire/utfdump.git
+1 -1
View File
@@ -11,7 +11,7 @@ const nextConfig = {
loadedWasm = true;
nextConfig.plugins.push(
new WasmPackPlugin({
crateDirectory: path.resolve(__dirname, '..', 'utfdump', 'wasm'),
crateDirectory: path.resolve(__dirname, 'utfdump', 'wasm'),
outDir: path.resolve(__dirname, 'wasm', 'utfdump'),
forceMode: 'production',
extraArgs: '--target web',
+13 -3
View File
@@ -67,9 +67,10 @@ export function OutputTable(props: { currentString: string }) {
}
}
return (
<section className={styles.table_container}>
<div className={styles.overflow_scroll}>
let table;
if (rows.length > 0) {
table = (
<table id={styles.output_table}>
<thead>
<tr>
@@ -93,6 +94,15 @@ export function OutputTable(props: { currentString: string }) {
{rows}
</tbody>
</table>
);
} else {
table = (<></>);
}
return (
<section className={styles.table_container}>
<div className={styles.overflow_scroll}>
{table}
</div>
</section>
);
Submodule
+1
Submodule utfdump added at 0d1872b902.