Skip to content
This repository has been archived by the owner on Dec 8, 2024. It is now read-only.

Commit

Permalink
Electric tutorial page layout matches existing deployed version
Browse files Browse the repository at this point in the history
  • Loading branch information
ggeoffrey committed Jan 23, 2024
1 parent c39c7f2 commit 6720d1e
Show file tree
Hide file tree
Showing 16 changed files with 17 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/electric_tutorial/demo_chat.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Chat — Electric tutorial
# Chat

A multiplayer chat app in 30 LOC, all one file. Try two tabs.

Expand Down
2 changes: 1 addition & 1 deletion src/electric_tutorial/demo_chat_extended.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Chat Extended — Electric tutorial
# Chat Extended

Extended chat demo with auth and presence. When multiple sessions are connected, you can see who else is present.

Expand Down
2 changes: 1 addition & 1 deletion src/electric_tutorial/demo_reagent_interop.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Reagent Interop — Electric tutorial
# Reagent Interop

Reagent (React.js) embedded inside Electric. The reactive mouse coordinates cross from Electric to Reagent via props.

Expand Down
2 changes: 1 addition & 1 deletion src/electric_tutorial/demo_svg.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Reagent Interop — Electric tutorial
# Reagent Interop

SVG support. Note the animation is reactive and driven by javascript cosine.

Expand Down
2 changes: 1 addition & 1 deletion src/electric_tutorial/demo_system_properties.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# System Properties — Electric tutorial
# System Properties

A larger example of a HTML table backed by a server-side query. Type into the input and see the query update live.

Expand Down
2 changes: 1 addition & 1 deletion src/electric_tutorial/demo_todos_simple.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Todos Simple — Electric tutorial
# Todos Simple

minimal todo list. it's multiplayer, try two tabs

Expand Down
2 changes: 1 addition & 1 deletion src/electric_tutorial/demo_toggle.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Toggle — Electric tutorial
# Toggle

This demo toggles between client and server with a button.

Expand Down
4 changes: 2 additions & 2 deletions src/electric_tutorial/demo_two_clocks.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Two Clocks — Electric tutorial
# Two Clocks

Streaming lexical scope. The server clock is streamed to the client.

Expand Down Expand Up @@ -62,4 +62,4 @@ Network is reactive at the granularity of individual scope values
* when server clock `s` updates, the new value is streamed over network, bound to `s` on the client, ...
* Everything is already async, so adding a 10ms websocket delay does not add impedance, complexity or code weight!

For a 10min video explainer, see [UIs are streaming DAGs](https://hyperfiddle.notion.site/UIs-are-streaming-DAGs-e181461681a8452bb9c7a9f10f507991).
For a 10min video explainer, see [UIs are streaming DAGs](https://hyperfiddle.notion.site/UIs-are-streaming-DAGs-e181461681a8452bb9c7a9f10f507991).
2 changes: 1 addition & 1 deletion src/electric_tutorial/demo_webview.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Webview — Electric tutorial
# Webview

A database backed webview with reactive updates.

Expand Down
1 change: 1 addition & 0 deletions src/electric_tutorial/tutorial.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@
(e/client
(let [[?tutorial] (ffirst r/route)
?tutorial (or ?tutorial `TwoClocks)]
(dom/h1 (dom/text "Electric Tutorial"))
(binding [hf/pages fiddles]
(Nav. ?tutorial false)
(if-some [essay-filename (get tutorials2 ?tutorial)]
Expand Down
2 changes: 1 addition & 1 deletion src/electric_tutorial/tutorial_7guis_1_counter.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 7 GUIs 1: Counter — Electric tutorial
# 7 GUIs 1: Counter

See <https://eugenkiss.github.io/7guis/tasks#counter>

Expand Down
2 changes: 1 addition & 1 deletion src/electric_tutorial/tutorial_7guis_2_temperature.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 7 GUIs 2: Temperature Converter — Electric tutorial
# 7 GUIs 2: Temperature Converter

See <https://eugenkiss.github.io/7guis/tasks#temp>

Expand Down
2 changes: 1 addition & 1 deletion src/electric_tutorial/tutorial_7guis_4_timer.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 7 GUIs 4: Timer — Electric tutorial
# 7 GUIs 4: Timer

See <https://eugenkiss.github.io/7guis/tasks#timer>

Expand Down
2 changes: 1 addition & 1 deletion src/electric_tutorial/tutorial_7guis_5_crud.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 7 GUIs 5: CRUD — Electric tutorial
# 7 GUIs 5: CRUD

See <https://eugenkiss.github.io/7guis/tasks#crud>

Expand Down
2 changes: 1 addition & 1 deletion src/electric_tutorial/tutorial_backpressure.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Backpressure — Electric tutorial
# Backpressure

This is just the Two Clocks demo with slight modifications, there is more to learn here.

Expand Down
2 changes: 1 addition & 1 deletion src/electric_tutorial/tutorial_lifecycle.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Component Lifecycle — Electric tutorial
# Component Lifecycle

mount/unmount component lifecycle

Expand Down

0 comments on commit 6720d1e

Please sign in to comment.