35 lines
602 B
Svelte
35 lines
602 B
Svelte
|
<script>
|
||
|
import {locals} from "../ts/stores.js";
|
||
|
import LocalsTest from "./LocalsTest.svelte";
|
||
|
</script>
|
||
|
|
||
|
<style lang="scss">
|
||
|
:global(body) {
|
||
|
margin: 0;
|
||
|
font-family: sans-serif;
|
||
|
}
|
||
|
|
||
|
.render-mode {
|
||
|
text-align: center;
|
||
|
background: gray;
|
||
|
padding: 8px;
|
||
|
margin-bottom: 8px;
|
||
|
}
|
||
|
</style>
|
||
|
|
||
|
<div class="render-mode">{$locals.isPreRender ? 'SSR' : 'CSR'}</div>
|
||
|
|
||
|
<table>
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th>Name</th>
|
||
|
<th>Expected value</th>
|
||
|
<th>Actual value</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
|
||
|
<tbody>
|
||
|
<LocalsTest/>
|
||
|
</tbody>
|
||
|
</table>
|