-
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added additional demo example placeholders * #904 Translation in GRID "Does not contain" * Markdown - New component - updates
- Loading branch information
Showing
29 changed files
with
1,255 additions
and
128 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
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
15 changes: 0 additions & 15 deletions
15
BlazorBootstrap.Demo.RCL/Components/Pages/Markdown/Markdown_Demo_01_Examples.razor
This file was deleted.
Oops, something went wrong.
21 changes: 21 additions & 0 deletions
21
BlazorBootstrap.Demo.RCL/Components/Pages/Markdown/Markdown_Demo_01_Preview.razor
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,21 @@ | ||
<div class="row border-bottom mb-3"> | ||
<div class="col"><b>Markdown</b></div> | ||
<div class="col"><b>Preview</b></div> | ||
</div> | ||
<div class="row" style="max-height:486px;"> | ||
<div class="col"> | ||
<textarea class="form-control" | ||
rows="18" | ||
placeholder="Enter markdown here" | ||
@bind="markdown" | ||
@bind:event="oninput"> | ||
</textarea> | ||
</div> | ||
<div class="col"> | ||
<Markdown style="max-height: 437px;overflow-y:auto;">@markdown</Markdown> | ||
</div> | ||
</div> | ||
|
||
@code { | ||
private string markdown = "# Heading 1\n## Heading 2\n\n![BlazorBootstrap](https://demos.blazorbootstrap.com/images/logo/logo-color.svg =50)"; | ||
} |
11 changes: 6 additions & 5 deletions
11
BlazorBootstrap.Demo.RCL/Components/Pages/Markdown/Markdown_Demo_02_Headers.razor
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 |
---|---|---|
@@ -1,7 +1,8 @@ | ||
<Markdown> | ||
# This is a H1 header | ||
## This is a H2 header | ||
### This is a H3 header | ||
#### This is a H4 header | ||
##### This is a H5 header | ||
# This is a H1 header | ||
## This is a H2 header | ||
### This is a H3 header | ||
#### This is a H4 header | ||
##### This is a H5 header | ||
###### This is a H6 header | ||
</Markdown> |
8 changes: 4 additions & 4 deletions
8
...trap.Demo.RCL/Components/Pages/Markdown/Markdown_Demo_03_Paragraphs_and_Line_Breaks.razor
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<Markdown> | ||
Add lines between your text with the **Enter** key. | ||
Your text gets better spaced and makes it easier to read. | ||
Add lines between your text with the **Enter** key. | ||
Your text gets better spaced and makes it easier to read. | ||
|
||
|
||
Add lines between your text with the **Enter** key. | ||
Your text gets better spaced and makes it easier to read. | ||
Add lines between your text with the **Enter** key. | ||
Your text gets better spaced and makes it easier to read. | ||
</Markdown> |
12 changes: 8 additions & 4 deletions
12
BlazorBootstrap.Demo.RCL/Components/Pages/Markdown/Markdown_Demo_04_Blockquotes.razor
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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
<Markdown> | ||
> Single line quote | ||
>> Nested quote | ||
>> multiple line | ||
>> quote | ||
> A well-known quote, contained in a blockquote element. | ||
</Markdown> | ||
|
||
<Markdown> | ||
> Single line quote | ||
>> Nested quote | ||
>> multiple line | ||
>> quote | ||
</Markdown> |
7 changes: 3 additions & 4 deletions
7
BlazorBootstrap.Demo.RCL/Components/Pages/Markdown/Markdown_Demo_05_Horizontal_Rules.razor
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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
<Markdown> | ||
above | ||
|
||
---- | ||
below | ||
above | ||
--- | ||
below | ||
</Markdown> |
6 changes: 3 additions & 3 deletions
6
....RCL/Components/Pages/Markdown/Markdown_Demo_06_Emphasis_bold_italics_strikethrough.razor
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<Markdown> | ||
Use _emphasis_ in comments to express **strong** opinions and point out ~~corrections~~ | ||
**_Bold, italicized text_** | ||
**~~Bold, strike-through text~~** | ||
Use _emphasis_ in comments to express **strong** opinions and point out ~~corrections~~ | ||
**_Bold, italicized text_** | ||
**~~Bold, strike-through text~~** | ||
</Markdown> |
54 changes: 48 additions & 6 deletions
54
BlazorBootstrap.Demo.RCL/Components/Pages/Markdown/Markdown_Demo_07_Code_Highlighting.razor
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 |
---|---|---|
@@ -1,11 +1,53 @@ | ||
<Markdown> | ||
```js | ||
const count = records.length; | ||
``` | ||
```js | ||
const count = records.length; | ||
``` | ||
</Markdown> | ||
|
||
<Markdown> | ||
```csharp | ||
Console.WriteLine("Hello, World!"); | ||
``` | ||
```csharp | ||
Console.WriteLine("Hello, World!"); | ||
``` | ||
</Markdown> | ||
|
||
<Markdown> | ||
```csharp | ||
var countdown = new TimerRemaining() | ||
{ | ||
buffer = | ||
{ | ||
[^1] = 0, | ||
[^2] = 1, | ||
[^3] = 2, | ||
[^4] = 3, | ||
[^5] = 4, | ||
[^6] = 5, | ||
[^7] = 6, | ||
[^8] = 7, | ||
[^9] = 8, | ||
[^10] = 9 | ||
} | ||
}; | ||
``` | ||
</Markdown> | ||
|
||
<Markdown> | ||
```csharp | ||
public partial class C | ||
{ | ||
// Declaring declaration | ||
public partial string Name { get; set; } | ||
} | ||
|
||
public partial class C | ||
{ | ||
// implementation declaration: | ||
private string _name; | ||
public partial string Name | ||
{ | ||
get => _name; | ||
set => _name = value; | ||
} | ||
} | ||
``` | ||
</Markdown> |
6 changes: 6 additions & 0 deletions
6
BlazorBootstrap.Demo.RCL/Components/Pages/Markdown/Markdown_Demo_08_Tables_A_Example.razor
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,6 @@ | ||
<Markdown> | ||
| Heading 1 | Heading 2 | Heading 3 | | ||
|--|--|--| | ||
| Cell A1 | Cell A2 | Cell A3 | | ||
| Cell B1 | Cell B2 | Cell B3<br />second line of text | | ||
</Markdown> |
9 changes: 9 additions & 0 deletions
9
...tstrap.Demo.RCL/Components/Pages/Markdown/Markdown_Demo_08_Tables_B_Custom_CssClass.razor
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,9 @@ | ||
<Markdown TableCssClass="table table-striped table-hover table-bordered"> | ||
| Heading 1 | Heading 2 | Heading 3 | | ||
|--|--|--| | ||
| Cell A1 | Cell A2 | Cell A3 | | ||
| Cell B1 | Cell B2 | Cell B3 | | ||
| Cell C1 | Cell C2 | Cell C3 | | ||
| Cell D1 | Cell D2 | Cell D3 | | ||
| Cell E1 | Cell E2 | Cell E3 | | ||
</Markdown> |
5 changes: 5 additions & 0 deletions
5
BlazorBootstrap.Demo.RCL/Components/Pages/Markdown/Markdown_Demo_09_Lists_A_Ordered.razor
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,5 @@ | ||
<Markdown> | ||
1. First item | ||
1. Second item | ||
1. Third item | ||
</Markdown> |
5 changes: 5 additions & 0 deletions
5
BlazorBootstrap.Demo.RCL/Components/Pages/Markdown/Markdown_Demo_09_Lists_B_Unordered.razor
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,5 @@ | ||
<Markdown> | ||
- Item 1 | ||
- Item 2 | ||
- Item 3 | ||
</Markdown> |
14 changes: 14 additions & 0 deletions
14
BlazorBootstrap.Demo.RCL/Components/Pages/Markdown/Markdown_Demo_09_Lists_C_Nested.razor
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,14 @@ | ||
<Markdown> | ||
1. First item | ||
- Item 1 | ||
- Item 2 | ||
- Item 3 | ||
1. Second item | ||
- Nested item 1 | ||
- Further nested item 1 | ||
- Further nested item 2 | ||
- Further nested item 3 | ||
- Nested item 2 | ||
- Nested item 3 | ||
1. Third item | ||
</Markdown> |
14 changes: 14 additions & 0 deletions
14
BlazorBootstrap.Demo.RCL/Components/Pages/Markdown/Markdown_Demo_09_Lists_D_Nested.razor
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,14 @@ | ||
<Markdown> | ||
1. First item | ||
1. Item 1 | ||
1. Item 2 | ||
1. Item 3 | ||
1. Second item | ||
1. Nested item 1 | ||
1. Further nested item 1 | ||
1. Further nested item 2 | ||
1. Further nested item 3 | ||
1. Nested item 2 | ||
1. Nested item 3 | ||
1. Third item | ||
</Markdown> |
14 changes: 14 additions & 0 deletions
14
BlazorBootstrap.Demo.RCL/Components/Pages/Markdown/Markdown_Demo_09_Lists_E_Nested.razor
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,14 @@ | ||
<Markdown> | ||
- First item | ||
- Item 1 | ||
- Item 2 | ||
- Item 3 | ||
- Second item | ||
- Nested item 1 | ||
- Further nested item 1 | ||
- Further nested item 2 | ||
- Further nested item 3 | ||
- Nested item 2 | ||
- Nested item 3 | ||
- Third item | ||
</Markdown> |
Oops, something went wrong.