-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathApp.razor
35 lines (31 loc) · 1.15 KB
/
App.razor
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
@inject IConsoleHost ConsoleHost
@inject ICommandSet CommandSet
@inject CommandCompletion CommandCompletion
@inject HotKeys HotKeys
@inject IJSRuntime JS
<div class="main">
<div class="console-output">
<ConsoleComponent></ConsoleComponent>
</div>
<div class="@CssClass("command-line-input", new { CommandProcessing })">
<span class="prompt-user-name">jsakamoto</span>
<span class="prompt-separator">:</span>
<span class="prompt-current-dir">@this.PathUtility.GetCurrentDirectoryDisplayText()</span>
<span class="prompt">$</span>
<span class="input">
<input id="command-line-input"
@ref="CommandLineInput"
@bind="CommandLineInputText"
@bind:event="oninput"
@onkeydown="OnKeyDownCommandLineInput"
readonly="@(!_Initialized)"
autocomplete="off" type="url" spellcheck="false" />
</span>
</div>
</div>
<footer>
<a href="@GetTwitterShareButtonUrl()" target="_blank" class="twitter-share-button">
Tweet
</a>
</footer>
<PWAUpdater Align="PWAUpdater.Aligns.Bottom" />