Skip to content

Commit 0d6ff4d

Browse files
committed
formatting
1 parent 8081b62 commit 0d6ff4d

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

docs/recipes/client-server/fable.forms.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ First off, you need to create a SAFE app, [install the relevant dependencies](ht
77
dotnet new SAFE
88
dotnet tool restore
99
```
10-
1.Add bulma to your project:
10+
1. Add bulma to your project:
1111
follow [this recipe](../ui/add-bulma.md)
1212

1313
1. Install Fable.Form.Simple.Bulma using Paket:
@@ -25,21 +25,21 @@ npm add bulma
2525

2626
1. Rename `src/Client/Index.css` to `Index.scss`
2727

28-
2. Update the import in `App.fs`
28+
2. Update the import in `App.fs`
2929

30-
=== "Code"
31-
```.fs title="App.fs"
32-
...
33-
importSideEffects "./index.scss"
34-
...
35-
```
36-
=== "Diff"
37-
```.diff title="App.fs"
38-
...
39-
- importSideEffects "./index.css"
40-
+ importSideEffects "./index.scss"
41-
...
42-
```
30+
=== "Code"
31+
```.fs title="App.fs"
32+
...
33+
importSideEffects "./index.scss"
34+
...
35+
```
36+
=== "Diff"
37+
```.diff title="App.fs"
38+
...
39+
- importSideEffects "./index.css"
40+
+ importSideEffects "./index.scss"
41+
...
42+
```
4343

4444
3. Import bulma and fable-form-simple in `Index.scss`
4545

@@ -53,12 +53,12 @@ npm add bulma
5353
``` .diff title="Index.scss"
5454
+ @import "~bulma";
5555
+ @import "~fable-form-simple-bulma";
56-
...
56+
...
5757
```
5858

5959
2. Remove the Bulma stylesheet link from `./src/Client/index.html`, as it is no longer needed:
6060

61-
``` { .diff title="index.html (diff)" }
61+
``` { .diff title="index.html" }
6262
<link rel="icon" type="image/png" href="/favicon.png"/>
6363
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css">
6464
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/all.min.css">
@@ -78,8 +78,8 @@ With the above preparation done, you can use Fable.Form.Simple.Bulma in your `./
7878

7979
=== "Diff"
8080
``` { .diff title="Index.fs" }
81-
+open Fable.Form.Simple
82-
+open Fable.Form.Simple.Bulma
81+
+ open Fable.Form.Simple
82+
+ open Fable.Form.Simple.Bulma
8383
```
8484

8585
1. Create type `Values` to represent each input field on the form (a single textbox), and create a type `Form` which is an alias for `Form.View.Model<Values>`:

0 commit comments

Comments
 (0)