2026-10-17 10:49:38 +00:00
< script setup lang = "ts" >
R Top bar like the parts bar, no left panel
The parts panel on the left is gone: pinned parts sit at the start of the
bottom bar, components open from the pencil in its Components list (or a
double-click), examples load from there too. The side panel moved to the
left. The top bar floats across the whole width: menu with the project,
Main and the way into the open component instead of the circuit
selector, Challenges in a drop-down, clock, search, undo, settings,
share and account. / and the bar's search open quick add.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 18:17:41 +00:00
// The bar along the top, floating like the parts bar below: menu and where
// you are on the left, the clock in the middle, the rest on the right.
import { CHALLENGES } from '~/lib/logic/challenges'
BF jumps always on top of what they cross; R circuit commands in a menu on its name, the side panel only says what it is
A jump is drawn once more over every line, so a cable that arches over
another is never hidden under it, whatever order they are drawn in. Cable
labels sit on the longest stretch no other line crosses.
The circuit's name in the top bar opens what can be done with it: tidy
its wires or every circuit's, design its box, duplicate, delete, print,
export SVG, publish as a puzzle. The This panel keeps what the circuit is:
its health, its numbers (the transistors tile opens their breakdown), its
truth table and how it looks as a part. Unused components are a tab of
the Components list in the parts bar, with a delete button on each.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-23 13:12:43 +00:00
import type { MenuEntry } from '~/composables/useMenu'
R Top bar like the parts bar, no left panel
The parts panel on the left is gone: pinned parts sit at the start of the
bottom bar, components open from the pencil in its Components list (or a
double-click), examples load from there too. The side panel moved to the
left. The top bar floats across the whole width: menu with the project,
Main and the way into the open component instead of the circuit
selector, Challenges in a drop-down, clock, search, undo, settings,
share and account. / and the bar's search open quick add.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 18:17:41 +00:00
2026-10-17 10:49:38 +00:00
const ed = useEditor ( )
const SPEEDS = [
{ value : 0.5 , label : '0.5 Hz' } ,
{ value : 1 , label : '1 Hz' } ,
{ value : 2 , label : '2 Hz' } ,
{ value : 5 , label : '5 Hz' } ,
{ value : 10 , label : '10 Hz' } ,
{ value : 30 , label : '30 Hz' } ,
{ value : 0 , label : 'Max' } ,
]
const hasClock = computed ( ( ) => ( ed . sim . value ? . nl . clocks . length ? ? 0 ) > 0 )
const statusText = computed ( ( ) => ( { stable : 'Stable' , busy : 'Settling' , oscillating : 'Oscillating' } ) [ ed . status . value ] )
R Top bar like the parts bar, no left panel
The parts panel on the left is gone: pinned parts sit at the start of the
bottom bar, components open from the pencil in its Components list (or a
double-click), examples load from there too. The side panel moved to the
left. The top bar floats across the whole width: menu with the project,
Main and the way into the open component instead of the circuit
selector, Challenges in a drop-down, clock, search, undo, settings,
share and account. / and the bar's search open quick add.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 18:17:41 +00:00
// The way into the open circuit: Main, then each component entered on the way.
const path = computed ( ( ) =>
[ ... ed . nav . value . map ( ( id , i ) => ( { id , i } ) ) , { id : ed . def . value . id , i : - 1 } ]
. filter ( p => p . id !== ed . mainId . value )
. map ( p => ( { ... p , name : ed . getDef . value ( p . id ) ? . name ? ? '?' } ) ) ,
)
const atMain = computed ( ( ) => ed . def . value . id === ed . mainId . value )
BF jumps always on top of what they cross; R circuit commands in a menu on its name, the side panel only says what it is
A jump is drawn once more over every line, so a cable that arches over
another is never hidden under it, whatever order they are drawn in. Cable
labels sit on the longest stretch no other line crosses.
The circuit's name in the top bar opens what can be done with it: tidy
its wires or every circuit's, design its box, duplicate, delete, print,
export SVG, publish as a puzzle. The This panel keeps what the circuit is:
its health, its numbers (the transistors tile opens their breakdown), its
truth table and how it looks as a part. Unused components are a tab of
the Components list in the parts bar, with a delete button on each.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-23 13:12:43 +00:00
// The circuit you are in: its name opens what can be done with all of it.
const circuitMenu = ref < { x : number ; y : number } | null > ( null )
function openCircuitMenu ( e : MouseEvent ) {
const r = ( e . currentTarget as HTMLElement ) . getBoundingClientRect ( )
circuitMenu . value = circuitMenu . value ? null : { x : r . left , y : r . bottom + 6 }
}
const circuitEntries = computed < MenuEntry [ ] > ( ( ) => {
const d = ed . def . value
const empty = ! d . nodes . length
return [
{ head : 'Wires' } ,
{ label : 'Tidy this circuit' , icon : 'lucide:wand-sparkles' , disabled : ! d . wires . length , run : ( ) => ed . tidyAll ( ) } ,
{ label : 'Tidy every circuit' , icon : 'lucide:sparkles' , run : ( ) => ed . tidyEverything ( ) } ,
'sep' ,
A memory that stays: circuits keep their bits across visits and saves; Power off and on
What latches, flip-flops, registers and RAM built from NANDs hold is no
longer lost when you go into a component and come back, reload the page or
open the project on another computer. Leaving a circuit puts its bits in
the project, and opening it starts from them.
Only the gates on feedback loops can hold a bit, so only those that are 1
are kept, plus the clocks that are high: each node id once, each gate as
the path levels it shares with the gate before plus the rest. 1,024
flip-flops take about 30 KB. Restoring runs the gates in the order signals
flow, so the gates in front of a latch are right before it reads them;
gates that no longer exist after an edit are ignored.
The bits go with every save, file, share link and account upload. Between
saves (a clock running, a button pressed) they are put in this browser's
copy every 30 seconds and when the page is left, without counting as a
change: no sync, savegame or undo step of their own, and never over a save
made in another tab. Projects without them start from all zeros as before.
"Power off and on" in the menu on the circuit's name, or with Space,
starts the open circuit again from all zeros.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 17:09:18 +00:00
{ head : 'Memory' } ,
{
label : 'Power off and on' ,
icon : 'lucide:power' ,
disabled : ! ed . circuitStats . value . sequential ,
note : ed . circuitStats . value . sequential ? 'every bit back to 0' : 'no memory here' ,
run : ( ) => ed . resetState ( ) ,
} ,
'sep' ,
BF jumps always on top of what they cross; R circuit commands in a menu on its name, the side panel only says what it is
A jump is drawn once more over every line, so a cable that arches over
another is never hidden under it, whatever order they are drawn in. Cable
labels sit on the longest stretch no other line crosses.
The circuit's name in the top bar opens what can be done with it: tidy
its wires or every circuit's, design its box, duplicate, delete, print,
export SVG, publish as a puzzle. The This panel keeps what the circuit is:
its health, its numbers (the transistors tile opens their breakdown), its
truth table and how it looks as a part. Unused components are a tab of
the Components list in the parts bar, with a delete button on each.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-23 13:12:43 +00:00
{ head : 'As a part' } ,
{ label : 'Design its box…' , icon : 'lucide:pen-tool' , run : ( ) => ed . designFace ( d . id ) } ,
{ label : 'Duplicate' , icon : 'lucide:copy' , run : ( ) => ed . copyComponent ( d . id ) } ,
{
label : 'Delete this circuit' ,
icon : 'lucide:trash-2' ,
danger : true ,
disabled : atMain . value ,
note : atMain . value ? 'the main circuit stays' : undefined ,
run : ( ) => {
const name = d . name
ed . removeComponent ( d . id )
ed . notify ( ` Deleted " ${ name } " (Ctrl+Z brings it back) ` )
} ,
} ,
'sep' ,
{ head : 'Share' } ,
{ label : 'Print or save as PDF' , icon : 'lucide:printer' , keys : 'Ctrl+P' , disabled : empty , run : ( ) => ed . exportSheet ( 'print' ) } ,
{ label : 'Export as SVG' , icon : 'lucide:file-image' , disabled : empty , run : ( ) => ed . exportSheet ( 'svg' ) } ,
{ label : 'Publish as a puzzle…' , icon : 'lucide:puzzle' , disabled : ! ! ed . task . value || empty , run : ( ) => ( ed . dialog . value = 'publish' ) } ,
A public library of components: publish yours, add everybody's
"Publish to the library…" in the menu on a circuit's name (or Space)
sends the component with every component it uses and their connector
types, under your leaderboard name. The server checks it like any
project, refuses what is missing, inside itself, nested too deep or too
big to run, and counts its transistors and pins itself. Publishing again
from the same browser makes the next version of the same entry; only that
browser holds the entry's key, so only it can update or remove it.
Challenge circuits and puzzle solutions stay private.
The Library (Components in the bottom bar, Space, the main menu) lists
every entry, newest first, searchable by name, description and author,
with a picture of its box, its transistors, pins and what comes along.
Add brings an entry into the open project and starts placing it: what the
project has in exactly that form already is used as it is, the rest comes
with new ids, a taken name gets a number, connector types join one with
the same lines. The This panel says where a component came from and
offers a newer version, which replaces it in place. A campaign only adds
what is built from parts it has earned, and its challenges take nothing
from the library.
Components keep an optional "from" mark; projects without it load and
compute as before.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 17:14:46 +00:00
{
label : ed . ownEntry ( d ) ? 'Update in the library…' : 'Publish to the library…' ,
icon : 'lucide:book-up' ,
disabled : ! ! ed . task . value || empty ,
note : ed . task . value ? 'challenges stay private' : undefined ,
run : ( ) => ( ed . dialog . value = 'library-publish' ) ,
} ,
BF jumps always on top of what they cross; R circuit commands in a menu on its name, the side panel only says what it is
A jump is drawn once more over every line, so a cable that arches over
another is never hidden under it, whatever order they are drawn in. Cable
labels sit on the longest stretch no other line crosses.
The circuit's name in the top bar opens what can be done with it: tidy
its wires or every circuit's, design its box, duplicate, delete, print,
export SVG, publish as a puzzle. The This panel keeps what the circuit is:
its health, its numbers (the transistors tile opens their breakdown), its
truth table and how it looks as a part. Unused components are a tab of
the Components list in the parts bar, with a delete button on each.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-23 13:12:43 +00:00
]
} )
R Top bar like the parts bar, no left panel
The parts panel on the left is gone: pinned parts sit at the start of the
bottom bar, components open from the pencil in its Components list (or a
double-click), examples load from there too. The side panel moved to the
left. The top bar floats across the whole width: menu with the project,
Main and the way into the open component instead of the circuit
selector, Challenges in a drop-down, clock, search, undo, settings,
share and account. / and the bar's search open quick add.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 18:17:41 +00:00
// Challenges and puzzles open below their button.
const showChallenges = ed . challengesOpen
const challengesEl = ref < HTMLElement > ( )
const solvedCount = computed ( ( ) => CHALLENGES . filter ( c => ed . project . value . solved . includes ( c . id ) ) . length )
function outside ( e : PointerEvent ) {
if ( showChallenges . value && ! challengesEl . value ? . contains ( e . target as Node ) ) showChallenges . value = false
}
onMounted ( ( ) => window . addEventListener ( 'pointerdown' , outside , true ) )
onBeforeUnmount ( ( ) => window . removeEventListener ( 'pointerdown' , outside , true ) )
A settings for every part, overlap-free wiring with crossing styles, accounts with sync
- Clicking anything opens its settings: swap parts in place (wires stay on
matching pins), clock frequency per clock, keyboard keys for switches and
buttons, lamp/display colours, note sizes, component names on the canvas,
position, unlink all wires, unpack a component, make an independent copy.
- Wires of different signals never share a line: auto routes pick free
columns or detours, remaining clashes go on separate lanes. Crossings drawn
as bow, triangle, bridge, gap or plain.
- Accounts (email + scrypt password, httpOnly session) with two-way project
sync and conflict copies; per-account limits; cross-site writes refused.
- Compatibility suite: a project and both browser-storage layouts from
release a241adc must load and compute identically.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-20 11:09:37 +00:00
const cloudText = computed ( ( ) => ( { off : '' , syncing : 'syncing' , synced : 'all saved' , offline : 'offline' , error : 'sync failed' } ) [ ed . cloudState . value ] )
A component faces, project library with share links, fine-grained wire editing
- Lamps and hex displays inside a component show on its box with their
labels, lit by that instance's state; Counter 4 example shows its count.
- Several projects per browser; share links at /p/<id> that the creator's
edits save to automatically, others get their own copy. Export, open a
file as project, or add a file's components to the open project.
- Wires: drag any segment or corner, Alt+drag for a new bend, Ctrl+drag to
branch, double-click selects the whole signal, multi-select, arrow keys,
colour tags.
- Share-link API (POST/GET/PUT /api/p) on Nitro fs storage in data/, mounted
as a volume on edgerealm.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-17 11:21:49 +00:00
const linkIcon = computed ( ( ) => {
switch ( ed . linkState . value ) {
case 'saved' :
return 'lucide:cloud-check'
case 'saving' :
case 'dirty' :
return 'lucide:cloud-upload'
case 'error' :
return 'lucide:cloud-alert'
default :
return 'lucide:share-2'
}
} )
2026-10-17 10:49:38 +00:00
< / script >
< template >
R Top bar like the parts bar, no left panel
The parts panel on the left is gone: pinned parts sit at the start of the
bottom bar, components open from the pencil in its Components list (or a
double-click), examples load from there too. The side panel moved to the
left. The top bar floats across the whole width: menu with the project,
Main and the way into the open component instead of the circuit
selector, Challenges in a drop-down, clock, search, undo, settings,
share and account. / and the bar's search open quick add.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 18:17:41 +00:00
< div class = "top-dock" >
< header class = "top-bar" >
< div class = "tb-group min-w-0" >
< button class = "bar-btn brand-btn" title = "Menu: save, load, settings, main menu (Esc)" @click ="ed.pause()" >
< svg viewBox = "0 0 32 32" class = "size-5" aria -hidden = " true " >
< path d = "M6 7h10a9 9 0 0 1 0 18H6Z" fill = "none" stroke = "currentColor" stroke -width = " 2.5 " / >
< circle cx = "27" cy = "16" r = "2.6" fill = "none" stroke = "currentColor" stroke -width = " 2.2 " / >
< / svg >
< span class = "project-name truncate" > { { ed . project . value . name } } < / span >
< / button >
< span class = "bar-sep" / >
< nav class = "crumbs" aria -label = " Where you are " >
BF jumps always on top of what they cross; R circuit commands in a menu on its name, the side panel only says what it is
A jump is drawn once more over every line, so a cable that arches over
another is never hidden under it, whatever order they are drawn in. Cable
labels sit on the longest stretch no other line crosses.
The circuit's name in the top bar opens what can be done with it: tidy
its wires or every circuit's, design its box, duplicate, delete, print,
export SVG, publish as a puzzle. The This panel keeps what the circuit is:
its health, its numbers (the transistors tile opens their breakdown), its
truth table and how it looks as a part. Unused components are a tab of
the Components list in the parts bar, with a delete button on each.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-23 13:12:43 +00:00
< button
class = "bar-btn"
: class = "{ here: atMain, open: atMain && !!circuitMenu }"
: title = "atMain ? 'This circuit: tidy its wires, print, publish, duplicate' : 'Go to Main (components open with a double-click)'"
@ click = "atMain ? openCircuitMenu($event) : ed.goMain()"
>
R Top bar like the parts bar, no left panel
The parts panel on the left is gone: pinned parts sit at the start of the
bottom bar, components open from the pencil in its Components list (or a
double-click), examples load from there too. The side panel moved to the
left. The top bar floats across the whole width: menu with the project,
Main and the way into the open component instead of the circuit
selector, Challenges in a drop-down, clock, search, undo, settings,
share and account. / and the bar's search open quick add.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 18:17:41 +00:00
< Icon name = "lucide:house" class = "size-4" / >
< span > Main < / span >
BF jumps always on top of what they cross; R circuit commands in a menu on its name, the side panel only says what it is
A jump is drawn once more over every line, so a cable that arches over
another is never hidden under it, whatever order they are drawn in. Cable
labels sit on the longest stretch no other line crosses.
The circuit's name in the top bar opens what can be done with it: tidy
its wires or every circuit's, design its box, duplicate, delete, print,
export SVG, publish as a puzzle. The This panel keeps what the circuit is:
its health, its numbers (the transistors tile opens their breakdown), its
truth table and how it looks as a part. Unused components are a tab of
the Components list in the parts bar, with a delete button on each.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-23 13:12:43 +00:00
< Icon v -if = " atMain " name = "lucide:chevron-down" class = "size-3.5 text-(--muted)" / >
R Top bar like the parts bar, no left panel
The parts panel on the left is gone: pinned parts sit at the start of the
bottom bar, components open from the pencil in its Components list (or a
double-click), examples load from there too. The side panel moved to the
left. The top bar floats across the whole width: menu with the project,
Main and the way into the open component instead of the circuit
selector, Challenges in a drop-down, clock, search, undo, settings,
share and account. / and the bar's search open quick add.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 18:17:41 +00:00
< / button >
< template v-for ="p in path" :key="`${p.id}-${p.i}`" >
< Icon name = "lucide:chevron-right" class = "crumb-sep size-3.5" / >
BF jumps always on top of what they cross; R circuit commands in a menu on its name, the side panel only says what it is
A jump is drawn once more over every line, so a cable that arches over
another is never hidden under it, whatever order they are drawn in. Cable
labels sit on the longest stretch no other line crosses.
The circuit's name in the top bar opens what can be done with it: tidy
its wires or every circuit's, design its box, duplicate, delete, print,
export SVG, publish as a puzzle. The This panel keeps what the circuit is:
its health, its numbers (the transistors tile opens their breakdown), its
truth table and how it looks as a part. Unused components are a tab of
the Components list in the parts bar, with a delete button on each.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-23 13:12:43 +00:00
< button
class = "bar-btn crumb"
: class = "{ here: p.i < 0, open: p.i < 0 && !!circuitMenu }"
: title = "p.i < 0 ? 'This circuit: tidy its wires, design its box, print, publish, duplicate, delete' : `Back to ${p.name}`"
@ click = "p.i < 0 ? openCircuitMenu($event) : ed.goTo(p.i)"
>
R Top bar like the parts bar, no left panel
The parts panel on the left is gone: pinned parts sit at the start of the
bottom bar, components open from the pencil in its Components list (or a
double-click), examples load from there too. The side panel moved to the
left. The top bar floats across the whole width: menu with the project,
Main and the way into the open component instead of the circuit
selector, Challenges in a drop-down, clock, search, undo, settings,
share and account. / and the bar's search open quick add.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 18:17:41 +00:00
< span class = "truncate" > { { p . name } } < / span >
BF jumps always on top of what they cross; R circuit commands in a menu on its name, the side panel only says what it is
A jump is drawn once more over every line, so a cable that arches over
another is never hidden under it, whatever order they are drawn in. Cable
labels sit on the longest stretch no other line crosses.
The circuit's name in the top bar opens what can be done with it: tidy
its wires or every circuit's, design its box, duplicate, delete, print,
export SVG, publish as a puzzle. The This panel keeps what the circuit is:
its health, its numbers (the transistors tile opens their breakdown), its
truth table and how it looks as a part. Unused components are a tab of
the Components list in the parts bar, with a delete button on each.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-23 13:12:43 +00:00
< Icon v -if = " p.i < 0 " name = "lucide:chevron-down" class = "size-3.5 shrink-0 text-(--muted)" / >
R Top bar like the parts bar, no left panel
The parts panel on the left is gone: pinned parts sit at the start of the
bottom bar, components open from the pencil in its Components list (or a
double-click), examples load from there too. The side panel moved to the
left. The top bar floats across the whole width: menu with the project,
Main and the way into the open component instead of the circuit
selector, Challenges in a drop-down, clock, search, undo, settings,
share and account. / and the bar's search open quick add.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 18:17:41 +00:00
< / button >
< / template >
< / nav >
BF jumps always on top of what they cross; R circuit commands in a menu on its name, the side panel only says what it is
A jump is drawn once more over every line, so a cable that arches over
another is never hidden under it, whatever order they are drawn in. Cable
labels sit on the longest stretch no other line crosses.
The circuit's name in the top bar opens what can be done with it: tidy
its wires or every circuit's, design its box, duplicate, delete, print,
export SVG, publish as a puzzle. The This panel keeps what the circuit is:
its health, its numbers (the transistors tile opens their breakdown), its
truth table and how it looks as a part. Unused components are a tab of
the Components list in the parts bar, with a delete button on each.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-23 13:12:43 +00:00
< EditorContextMenu v -if = " circuitMenu " :x ="circuitMenu.x" :y ="circuitMenu.y" :entries ="circuitEntries" @ close = "circuitMenu = null" / >
R Top bar like the parts bar, no left panel
The parts panel on the left is gone: pinned parts sit at the start of the
bottom bar, components open from the pencil in its Components list (or a
double-click), examples load from there too. The side panel moved to the
left. The top bar floats across the whole width: menu with the project,
Main and the way into the open component instead of the circuit
selector, Challenges in a drop-down, clock, search, undo, settings,
share and account. / and the bar's search open quick add.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 18:17:41 +00:00
< / div >
2026-10-17 10:49:38 +00:00
R Top bar like the parts bar, no left panel
The parts panel on the left is gone: pinned parts sit at the start of the
bottom bar, components open from the pencil in its Components list (or a
double-click), examples load from there too. The side panel moved to the
left. The top bar floats across the whole width: menu with the project,
Main and the way into the open component instead of the circuit
selector, Challenges in a drop-down, clock, search, undo, settings,
share and account. / and the bar's search open quick add.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 18:17:41 +00:00
< div class = "tb-group" >
< div ref = "challengesEl" class = "relative" >
< button class = "bar-btn" : class = "{ open: showChallenges }" title = "Challenges, puzzles and the puzzle of the week" @ click = "showChallenges = !showChallenges" >
< Icon name = "lucide:flag" class = "size-4" / >
R Panels: This and Pins on the left, the selection on the right
The left panel is about the circuit you are in: This (challenge and
Check on top, problems, name, statistics, truth table, as a component,
transistors, tools) and Pins. The selection gets its own panel on the
right, there only while something is selected, with its settings and
actions such as making a component out of it. The bars follow the
canvas width and drop labels when it gets narrow.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 18:38:17 +00:00
< span class = "bar-text" > Challenges < / span >
R Top bar like the parts bar, no left panel
The parts panel on the left is gone: pinned parts sit at the start of the
bottom bar, components open from the pencil in its Components list (or a
double-click), examples load from there too. The side panel moved to the
left. The top bar floats across the whole width: menu with the project,
Main and the way into the open component instead of the circuit
selector, Challenges in a drop-down, clock, search, undo, settings,
share and account. / and the bar's search open quick add.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 18:17:41 +00:00
< span class = "bar-count" > { { solvedCount } } / { { CHALLENGES . length } } < / span >
< / button >
< Transition name = "drop" >
< div v-if ="showChallenges" class="top-pop" >
< EditorChallengesPanel @ close = "showChallenges = false" / >
< / div >
< / Transition >
< / div >
< span class = "bar-sep" / >
< button
class = "bar-btn"
: class = "{ active: ed.running.value && hasClock }"
: title = "ed.running.value ? 'Pause the clock' : 'Run the clock'"
: disabled = "!hasClock"
@ click = "ed.running.value = !ed.running.value"
>
< Icon : name = "ed.running.value ? 'lucide:pause' : 'lucide:play'" class = "size-4" / >
< / button >
< button class = "bar-btn" title = "One clock cycle" :disabled ="!hasClock" @ click = "ed.running.value = false; ed.step()" >
< Icon name = "lucide:step-forward" class = "size-4" / >
< / button >
< select v -model .number = " ed.hz.value " class = "tb-select" title = "Clock speed" :disabled ="!hasClock" >
< option v-for ="s in SPEEDS" :key="s.value" :value="s.value" > {{ s.label }} < / option >
< / select >
< span v-if ="hasClock" class="cycles tabular-nums" title="Clock cycles since this circuit was opened" > {{ ed.cycles.value.toLocaleString ( ) }} ticks < / span >
< span class = "status" :class ="ed.status.value" : title = "ed.status.value === 'oscillating' ? 'A loop keeps flipping and never settles (e.g. a NOT feeding itself)' : 'Simulation state'" >
< span class = "dot" / > { { statusText } }
< / span >
< / div >
2026-10-17 10:49:38 +00:00
R Top bar like the parts bar, no left panel
The parts panel on the left is gone: pinned parts sit at the start of the
bottom bar, components open from the pencil in its Components list (or a
double-click), examples load from there too. The side panel moved to the
left. The top bar floats across the whole width: menu with the project,
Main and the way into the open component instead of the circuit
selector, Challenges in a drop-down, clock, search, undo, settings,
share and account. / and the bar's search open quick add.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 18:17:41 +00:00
< div class = "tb-group" >
< button class = "bar-btn" title = "Find anything in the project (Ctrl+F)" @ click = "ed.dialog.value = 'search'" > < Icon name = "lucide:search" class = "size-4" / > < / button >
< button class = "bar-btn" title = "Undo (Ctrl+Z)" :disabled ="!ed.canUndo.value" @click ="ed.undo()" > < Icon name = "lucide:undo-2" class = "size-4" / > < / button >
< button class = "bar-btn" title = "Redo (Ctrl+Shift+Z)" :disabled ="!ed.canRedo.value" @click ="ed.redo()" > < Icon name = "lucide:redo-2" class = "size-4" / > < / button >
< button class = "bar-btn" : title = "ed.sound.value.on ? 'Sound on (volume and clock ticks in Settings)' : 'Sound off'" @ click = "ed.setSound({ on: !ed.sound.value.on })" >
< Icon : name = "ed.sound.value.on ? 'lucide:volume-2' : 'lucide:volume-x'" class = "size-4" / >
< / button >
< button class = "bar-btn" title = "Settings: gate symbols, wire crossings, current flow, tidy wiring, sound" @ click = "ed.dialog.value = 'settings'" >
< Icon name = "lucide:settings" class = "size-4" / >
< / button >
< button class = "bar-btn" title = "Help (?)" @ click = "ed.showHelp.value = true" > < Icon name = "lucide:circle-help" class = "size-4" / > < / button >
< span class = "bar-sep" / >
< button class = "bar-btn share-btn" :class ="ed.linkState.value" title = "Save online, share a link, export or import a file" @ click = "ed.dialog.value = 'share'" >
< Icon :name ="linkIcon" class = "size-4" / >
R Panels: This and Pins on the left, the selection on the right
The left panel is about the circuit you are in: This (challenge and
Check on top, problems, name, statistics, truth table, as a component,
transistors, tools) and Pins. The selection gets its own panel on the
right, there only while something is selected, with its settings and
actions such as making a component out of it. The bars follow the
canvas width and drop labels when it gets narrow.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 18:38:17 +00:00
< span class = "bar-text" > Share < / span >
R Top bar like the parts bar, no left panel
The parts panel on the left is gone: pinned parts sit at the start of the
bottom bar, components open from the pencil in its Components list (or a
double-click), examples load from there too. The side panel moved to the
left. The top bar floats across the whole width: menu with the project,
Main and the way into the open component instead of the circuit
selector, Challenges in a drop-down, clock, search, undo, settings,
share and account. / and the bar's search open quick add.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 18:17:41 +00:00
< / button >
< button
class = "bar-btn account-btn"
: class = "ed.cloudState.value"
: title = "ed.account.value ? `${ed.account.value.email}: ${cloudText}` : 'Sign in to keep your projects on every computer'"
@ click = "ed.dialog.value = 'account'"
>
< template v-if ="ed.account.value" >
< span class = "avatar" > { { ed . account . value . email [ 0 ] ! . toUpperCase ( ) } } < / span >
< span class = "sync-dot" / >
< / template >
< template v-else >
< Icon name = "lucide:user" class = "size-4" / >
R Panels: This and Pins on the left, the selection on the right
The left panel is about the circuit you are in: This (challenge and
Check on top, problems, name, statistics, truth table, as a component,
transistors, tools) and Pins. The selection gets its own panel on the
right, there only while something is selected, with its settings and
actions such as making a component out of it. The bars follow the
canvas width and drop labels when it gets narrow.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 18:38:17 +00:00
< span class = "bar-text" > Sign in < / span >
R Top bar like the parts bar, no left panel
The parts panel on the left is gone: pinned parts sit at the start of the
bottom bar, components open from the pencil in its Components list (or a
double-click), examples load from there too. The side panel moved to the
left. The top bar floats across the whole width: menu with the project,
Main and the way into the open component instead of the circuit
selector, Challenges in a drop-down, clock, search, undo, settings,
share and account. / and the bar's search open quick add.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 18:17:41 +00:00
< / template >
< / button >
< / div >
< / header >
< / div >
2026-10-17 10:49:38 +00:00
< / template >