Skip to content

Commit

Permalink
clean up Signals UI and changes names
Browse files Browse the repository at this point in the history
  • Loading branch information
zippy committed Sep 4, 2024
1 parent d153f9f commit fbd8572
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 251 deletions.
2 changes: 1 addition & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ui",
"version": "0.0.5",
"version": "0.0.6",
"dnaVersion": "0.0.2",
"scripts": {
"start": "vite --clearScreen false --port $UI_PORT",
Expand Down
6 changes: 3 additions & 3 deletions ui/src/Bunch.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -110,18 +110,18 @@
runGraph()
createThings()
}}
>Create Things</sl-button>
>Start Test</sl-button>
{:else}
<sl-button
on:click={()=>{
initialFound = ""
runGraph()
}}
>Wait For Things</sl-button>
>Watch Test</sl-button>
{/if}
{:else}
{#if allFound}
All {expected} things found after {seconds} seconds.
All {expected} entries found after {seconds} seconds.
{:else}
{#if creatingThings}
<div>Create Count: {creatingCount}</div>
Expand Down
21 changes: 2 additions & 19 deletions ui/src/Controller.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -82,23 +82,6 @@
let currentStream: string | undefined = undefined;
$: liveStreams = store.streams;
$: timer = time;
let fileinput;
const onFileSelected = (e) => {
let file = e.target.files[0];
let reader = new FileReader();
reader.addEventListener(
"load",
async () => {
const b = JSON.parse(reader.result as string);
await store.makeThing(b);
},
false
);
reader.readAsText(file);
};
</script>

<div class="flex-scrollable-parent">
Expand All @@ -108,8 +91,8 @@
<AboutDialog bind:this={aboutDialog} />
<div style="display:flex; background-color: #eee;">
<SvgIcon icon="ziptest"></SvgIcon>
<div class="test-type" class:selected={currentStream=="_"} on:click={()=>currentStream="_"}><span style="font-weight:bold;font-size:110%">Things</span></div>
<div class="test-type" class:selected={currentStream!="_"} on:click={()=>currentStream=""}><span style="font-weight:bold;font-size:110%">Streams</span></div>
<div class="test-type" class:selected={currentStream=="_"} on:click={()=>currentStream="_"}><span style="font-weight:bold;font-size:110%">Entries</span></div>
<div class="test-type" class:selected={currentStream!="_"} on:click={()=>currentStream=""}><span style="font-weight:bold;font-size:110%">Signals</span></div>
</div>

<div class="main-pane">
Expand Down
Loading

0 comments on commit fbd8572

Please sign in to comment.