Skip to content

Commit 7368936

Browse files
committed
Merge branch 'fix-build' of https://github.com/CopyText/TextCopy into fix-build
2 parents 7849854 + 7353186 commit 7368936

2 files changed

Lines changed: 21 additions & 21 deletions

File tree

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ Ensure you have replicated the bug in a minimal solution with the fewest moving
3434

3535
#### Submit a PR that fixes the bug
3636

37-
Submit a [Pull Request (PR)](https://help.github.com/articles/about-pull-requests/) that fixes the bug. Include in this PR a test that verifies the fix. If you were not able to fix the bug, a PR that illustrates your partial progress will suffice.
37+
Submit a [Pull Request (PR)](https://help.github.com/articles/about-pull-requests/) that fixes the bug. Include in this PR a test that verifies the fix. If you were not able to fix the bug, a PR that illustrates your partial progress will suffice.

readme.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -17,63 +17,63 @@ https://nuget.org/packages/TextCopy/
1717
### SetTextAsync
1818

1919
<!-- snippet: SetTextAsync -->
20-
<a id='snippet-settextasync'></a>
20+
<a id='snippet-SetTextAsync'></a>
2121
```cs
2222
await ClipboardService.SetTextAsync("Text to place in clipboard");
2323
```
24-
<sup><a href='/src/Tests/Snippets.cs#L34-L38' title='Snippet source file'>snippet source</a> | <a href='#snippet-settextasync' title='Start of snippet'>anchor</a></sup>
24+
<sup><a href='/src/Tests/Snippets.cs#L34-L38' title='Snippet source file'>snippet source</a> | <a href='#snippet-SetTextAsync' title='Start of snippet'>anchor</a></sup>
2525
<!-- endSnippet -->
2626

2727

2828
### SetText
2929

3030
<!-- snippet: SetText -->
31-
<a id='snippet-settext'></a>
31+
<a id='snippet-SetText'></a>
3232
```cs
3333
ClipboardService.SetText("Text to place in clipboard");
3434
```
35-
<sup><a href='/src/Tests/Snippets.cs#L9-L13' title='Snippet source file'>snippet source</a> | <a href='#snippet-settext' title='Start of snippet'>anchor</a></sup>
35+
<sup><a href='/src/Tests/Snippets.cs#L9-L13' title='Snippet source file'>snippet source</a> | <a href='#snippet-SetText' title='Start of snippet'>anchor</a></sup>
3636
<!-- endSnippet -->
3737

3838

3939
### GetTextAsync
4040

4141
<!-- snippet: GetTextAsync -->
42-
<a id='snippet-gettextasync'></a>
42+
<a id='snippet-GetTextAsync'></a>
4343
```cs
4444
var text = await ClipboardService.GetTextAsync();
4545
```
46-
<sup><a href='/src/Tests/Snippets.cs#L43-L47' title='Snippet source file'>snippet source</a> | <a href='#snippet-gettextasync' title='Start of snippet'>anchor</a></sup>
46+
<sup><a href='/src/Tests/Snippets.cs#L43-L47' title='Snippet source file'>snippet source</a> | <a href='#snippet-GetTextAsync' title='Start of snippet'>anchor</a></sup>
4747
<!-- endSnippet -->
4848

4949

5050
### GetText
5151

5252
<!-- snippet: GetText -->
53-
<a id='snippet-gettext'></a>
53+
<a id='snippet-GetText'></a>
5454
```cs
5555
var text = ClipboardService.GetText();
5656
```
57-
<sup><a href='/src/Tests/Snippets.cs#L25-L29' title='Snippet source file'>snippet source</a> | <a href='#snippet-gettext' title='Start of snippet'>anchor</a></sup>
57+
<sup><a href='/src/Tests/Snippets.cs#L25-L29' title='Snippet source file'>snippet source</a> | <a href='#snippet-GetText' title='Start of snippet'>anchor</a></sup>
5858
<!-- endSnippet -->
5959

6060

6161
## Clearing The Clipboard
6262

6363
<!-- snippet: ClearClipboard -->
64-
<a id='snippet-clearclipboard'></a>
64+
<a id='snippet-ClearClipboard'></a>
6565
```cs
6666
ClipboardService.SetText("");
6767
```
68-
<sup><a href='/src/Tests/Snippets.cs#L52-L54' title='Snippet source file'>snippet source</a> | <a href='#snippet-clearclipboard' title='Start of snippet'>anchor</a></sup>
68+
<sup><a href='/src/Tests/Snippets.cs#L52-L54' title='Snippet source file'>snippet source</a> | <a href='#snippet-ClearClipboard' title='Start of snippet'>anchor</a></sup>
6969
<!-- endSnippet -->
7070

7171
<!-- snippet: ClearClipboardAsync -->
72-
<a id='snippet-clearclipboardasync'></a>
72+
<a id='snippet-ClearClipboardAsync'></a>
7373
```cs
7474
await ClipboardService.SetTextAsync("");
7575
```
76-
<sup><a href='/src/Tests/Snippets.cs#L59-L61' title='Snippet source file'>snippet source</a> | <a href='#snippet-clearclipboardasync' title='Start of snippet'>anchor</a></sup>
76+
<sup><a href='/src/Tests/Snippets.cs#L59-L61' title='Snippet source file'>snippet source</a> | <a href='#snippet-ClearClipboardAsync' title='Start of snippet'>anchor</a></sup>
7777
<!-- endSnippet -->
7878

7979

@@ -82,12 +82,12 @@ await ClipboardService.SetTextAsync("");
8282
In addition to the above static API, there is an instance API exposed:
8383

8484
<!-- snippet: SetTextInstance -->
85-
<a id='snippet-settextinstance'></a>
85+
<a id='snippet-SetTextInstance'></a>
8686
```cs
8787
Clipboard clipboard = new();
8888
clipboard.SetText("Text to place in clipboard");
8989
```
90-
<sup><a href='/src/Tests/Snippets.cs#L15-L20' title='Snippet source file'>snippet source</a> | <a href='#snippet-settextinstance' title='Start of snippet'>anchor</a></sup>
90+
<sup><a href='/src/Tests/Snippets.cs#L15-L20' title='Snippet source file'>snippet source</a> | <a href='#snippet-SetTextInstance' title='Start of snippet'>anchor</a></sup>
9191
<!-- endSnippet -->
9292

9393

@@ -96,11 +96,11 @@ clipboard.SetText("Text to place in clipboard");
9696
An instance of `Clipboard` can be injected into `IServiceCollection`:
9797

9898
<!-- snippet: InjectClipboard -->
99-
<a id='snippet-injectclipboard'></a>
99+
<a id='snippet-InjectClipboard'></a>
100100
```cs
101101
serviceCollection.InjectClipboard();
102102
```
103-
<sup><a href='/src/BlazorSample/Program.cs#L9-L11' title='Snippet source file'>snippet source</a> | <a href='#snippet-injectclipboard' title='Start of snippet'>anchor</a></sup>
103+
<sup><a href='/src/BlazorSample/Program.cs#L9-L11' title='Snippet source file'>snippet source</a> | <a href='#snippet-InjectClipboard' title='Start of snippet'>anchor</a></sup>
104104
<!-- endSnippet -->
105105

106106
The instance should be injected by using `IClipboard`.
@@ -129,20 +129,20 @@ Due to the dependency on `JSInterop` the static `ClipboardService` is not suppor
129129
Instead inject an `IClipboard`:
130130

131131
<!-- snippet: BlazorStartup -->
132-
<a id='snippet-blazorstartup'></a>
132+
<a id='snippet-BlazorStartup'></a>
133133
```cs
134134
var builder = WebAssemblyHostBuilder.CreateDefault();
135135
var serviceCollection = builder.Services;
136136
serviceCollection.InjectClipboard();
137137
builder.RootComponents.Add<App>("app");
138138
```
139-
<sup><a href='/src/BlazorSample/Program.cs#L6-L13' title='Snippet source file'>snippet source</a> | <a href='#snippet-blazorstartup' title='Start of snippet'>anchor</a></sup>
139+
<sup><a href='/src/BlazorSample/Program.cs#L6-L13' title='Snippet source file'>snippet source</a> | <a href='#snippet-BlazorStartup' title='Start of snippet'>anchor</a></sup>
140140
<!-- endSnippet -->
141141

142142
Then consume it:
143143

144144
<!-- snippet: Inject -->
145-
<a id='snippet-inject'></a>
145+
<a id='snippet-Inject'></a>
146146
```cs
147147
public partial class IndexModel :
148148
ComponentBase
@@ -163,7 +163,7 @@ public partial class IndexModel :
163163
}
164164
}
165165
```
166-
<sup><a href='/src/BlazorSample/Pages/IndexModel.cs#L9-L28' title='Snippet source file'>snippet source</a> | <a href='#snippet-inject' title='Start of snippet'>anchor</a></sup>
166+
<sup><a href='/src/BlazorSample/Pages/IndexModel.cs#L9-L28' title='Snippet source file'>snippet source</a> | <a href='#snippet-Inject' title='Start of snippet'>anchor</a></sup>
167167
<!-- endSnippet -->
168168

169169
Blazor support requires the browser APIs [clipboard.readText](https://caniuse.com/#feat=mdn-api_clipboard_readtext) and [clipboard.writeText](https://caniuse.com/#feat=mdn-api_clipboard_writetext).

0 commit comments

Comments
 (0)