-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
285 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
<div data-reactroot=""> | ||
<h1>SAFE Template</h1> | ||
<p>The initial counter is fetched from server</p> | ||
<p>Press buttons to manipulate counter:</p> | ||
<button>-</button> | ||
<div>42</div> | ||
<button>+</button> | ||
<p> | ||
<strong>SAFE Template</strong> powered by: | ||
<span> | ||
<a href="https://github.com/giraffe-fsharp/Giraffe">Giraffe</a>, | ||
<a href="http://fable.io">Fable</a>, | ||
<a href="https://fable-elmish.github.io/">Elmish</a> | ||
</span> | ||
</p> | ||
<div> | ||
<span>Test str:</span> | ||
<span>Some String</span> | ||
</div> | ||
<div> | ||
<span>Test ofFloat:</span> | ||
<span>11.11</span> | ||
</div> | ||
<div> | ||
<span>Test ofInt:</span> | ||
<span>22</span> | ||
</div> | ||
<div> | ||
<span>Test html attr:</span> | ||
<span id="someId" data-aa="bb" cc="dd">data-aa</span> | ||
</div> | ||
<div> | ||
<span>Test CSS prop:</span> | ||
<div style="display:block;color:red">Custom CSSProp</div> | ||
</div> | ||
<div> | ||
<span>Test checkbox:</span> | ||
<input type="checkbox" checked="" /> | ||
<input type="checkbox" /> | ||
<input type="checkbox" checked="" /> | ||
<input type="checkbox" /> | ||
</div> | ||
<div> | ||
<span>Test value:</span> | ||
<input type="text" value="true" /> | ||
<input type="text" value="false" /> | ||
<input type="text" value="true" /> | ||
<input type="text" value="false" /> | ||
</div> | ||
<div> | ||
<span>Test textarea:</span> | ||
<textarea>true</textarea> | ||
<textarea>false</textarea> | ||
<textarea>true</textarea> | ||
<textarea>false</textarea> | ||
</div> | ||
<div> | ||
<span>Test React.Fragment:</span> | ||
<span>child 1</span> | ||
<span>child 2</span> | ||
<span>child 3</span> | ||
<span>child 4</span> | ||
</div> | ||
<div> | ||
<span>Test escape:</span> | ||
<span data-value="<div>"'&</div>" style="display:<div>"'&</div>"><div>"'&</div></span> | ||
</div> | ||
<div> | ||
<span>Test js component:</span> | ||
<div>loading</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
<div data-reactroot=""> | ||
<h1>SAFE Template</h1> | ||
<p>The initial counter is fetched from server</p> | ||
<p>Press buttons to manipulate counter:</p> | ||
<button>-</button> | ||
<div>42</div> | ||
<button>+</button> | ||
<p> | ||
<strong>SAFE Template</strong> powered by: | ||
<span> | ||
<a href="https://github.com/giraffe-fsharp/Giraffe">Giraffe</a>, | ||
<a href="http://fable.io">Fable</a>, | ||
<a href="https://fable-elmish.github.io/">Elmish</a> | ||
</span> | ||
</p> | ||
<div> | ||
<span>Test str:</span> | ||
<span>Some String</span> | ||
</div> | ||
<div> | ||
<span>Test ofFloat:</span> | ||
<span>11.11</span> | ||
</div> | ||
<div> | ||
<span>Test ofInt:</span> | ||
<span>22</span> | ||
</div> | ||
<div> | ||
<span>Test html attr:</span> | ||
<span id="someId" data-aa="bb" cc="dd">data-aa</span> | ||
</div> | ||
<div> | ||
<span>Test CSS prop:</span> | ||
<div style="display:block;color:red">Custom CSSProp</div> | ||
</div> | ||
<div> | ||
<span>Test checkbox:</span> | ||
<input type="checkbox" checked></input> | ||
<input type="checkbox"></input> | ||
<input type="checkbox" checked></input> | ||
<input type="checkbox"></input> | ||
</div> | ||
<div> | ||
<span>Test value:</span> | ||
<input type="text" value="true"></input> | ||
<input type="text" value="false"></input> | ||
<input type="text" value="true"></input> | ||
<input type="text" value="false"></input> | ||
</div> | ||
<div> | ||
<span>Test textarea:</span> | ||
<textarea>true</textarea> | ||
<textarea>false</textarea> | ||
<textarea>true</textarea> | ||
<textarea>false</textarea> | ||
</div> | ||
<div> | ||
<span>Test React.Fragment:</span> | ||
<span>child 1</span> | ||
<span>child 2</span> | ||
<span>child 3</span> | ||
<span>child 4</span> | ||
</div> | ||
<div> | ||
<span>Test escape:</span> | ||
<span data-value="<div>"'&</div>" style="display:<div>"'&</div>"><div>"'&</div></span> | ||
</div> | ||
<div> | ||
<span>Test js component:</span> | ||
<div>loading</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.