-
Notifications
You must be signed in to change notification settings - Fork 8
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
0 parents
commit de60900
Showing
150 changed files
with
1,291 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* -text |
Empty file.
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,93 @@ | ||
<!DOCTYPE html><html><head> | ||
<meta charset="utf-8"/> | ||
<meta name="viewport" content="width=device-width"/> | ||
<title>Sample Site</title> | ||
<base href="/Toolbelt.Blazor.HotKeys2/"/> | ||
<link rel="icon" type="image/png" href="favicon.png"/> | ||
<link href="_content/SampleSite.Components/css/bootstrap/bootstrap.min.css" rel="stylesheet"/> | ||
<link href="_content/SampleSite.Components/css/site.css" rel="stylesheet"/> | ||
<link href="_content/SampleSite.Components/css/site-custom.css" rel="stylesheet"/> | ||
<link href="_content/SampleSite.Components/css/hot-keys-cheat-sheet.css" rel="stylesheet"/> | ||
<link href="SampleSite.Client.styles.css" rel="stylesheet"/> | ||
<!-- <meta http-equiv="content-security-policy" content="base-uri 'self'; default-src 'self'; font-src *; connect-src *; script-src 'self' 'unsafe-eval'; style-src 'self' 'unsafe-inline' fonts.googleapis.com data:" /> --> | ||
|
||
<!-- %%-PRERENDERING-HEADOUTLET-BEGIN-%% --> | ||
|
||
<!-- %%-PRERENDERING-HEADOUTLET-END-%% --> | ||
</head> | ||
|
||
<body> | ||
<div id="app"> | ||
<div class="loading">Loading...</div> | ||
<link rel="stylesheet" href="data:text/css,.loading%7Bfont-family%3A'Franklin%20Gothic%20Medium'%2C'Arial%20Narrow'%2CArial%2Csans-serif%3Bcolor%3A%2388a%3Bfont-size%3A18px%3Btext-align%3Acenter%3Bwidth%3A150px%3Bheight%3A150px%3Bposition%3Afixed%3Btop%3A0%3Bbottom%3A0%3Bleft%3A0%3Bright%3A0%3Bmargin%3Aauto%7D.loading%3A%3Aafter%7Bcontent%3A''%3Bborder%3Asolid%2010px%3Bborder-color%3A%2388a%20%23eee%20%23eee%3Bborder-radius%3A60px%3Bposition%3Aabsolute%3Bwidth%3A60px%3Bheight%3A60px%3Btop%3A0%3Bbottom%3A0%3Bleft%3A0%3Bright%3A0%3Bmargin%3Aauto%3Banimation%3Arotation%201.5s%20linear%200s%20infinite%7D%40keyframes%20rotation%7B0%25%7Btransform%3Arotate(45deg)%7D100%25%7Btransform%3Arotate(405deg)%7D%7D"/> | ||
|
||
<!-- %%-PRERENDERING-BEGIN-%% --> | ||
<div style="opacity: 0; position: fixed; z-index: -1; top: 0; left: 0; bottom: 0; right: 0;"> | ||
<div class="page"><div class="sidebar"><div class="top-row pl-4 navbar navbar-dark"><a class="navbar-brand" href><div class="site-title">Blazor Hotkeys2 Demo</div> | ||
<div class="framework-description">.NET 8.0.0-rc.2.23479.6 / X64</div></a> | ||
<button class="navbar-toggler"><span class="navbar-toggler-icon"></span></button></div> | ||
|
||
<div class="collapse"><ul class="nav flex-column"><li class="nav-item px-3"><a href="" class="nav-link active" aria-current="page"><span class="material-icons" aria-hidden="true">home</span> Home | ||
</a></li> | ||
<li class="nav-item px-3"><a href="counter" class="nav-link"><span class="material-icons" aria-hidden="true">add_circle_outline</span> Counter | ||
</a></li> | ||
<li class="nav-item px-3"><a href="fetchdata" class="nav-link"><span class="material-icons" aria-hidden="true">view_list</span> Fetch data | ||
</a></li> | ||
<li class="nav-item px-3"><a href="save-text" class="nav-link"><span class="material-icons" aria-hidden="true">download</span> Save text | ||
</a></li> | ||
<li class="nav-item px-3"><a href="test/bykeyname" class="nav-link"><span class="material-icons" aria-hidden="true">keyboard</span> Test by Key Name | ||
</a></li> | ||
<li class="nav-item px-3"><a href="test/bycode" class="nav-link"><span class="material-icons" aria-hidden="true">keyboard</span> Test by Code | ||
</a></li> | ||
<li class="nav-item px-3"><a href="test/onkeydown" class="nav-link"><span class="material-icons" aria-hidden="true">keyboard</span> Test OnKeyDown | ||
</a></li> | ||
<li class="nav-item px-3"><a href="test/exclude-contenteditable" class="nav-link"><span class="material-icons md-36" aria-hidden="true">keyboard</span> Test Exclude Content Editable | ||
</a></li></ul></div></div> | ||
|
||
<div class="main"><div class="top-row px-4"><a href="https://github.com/jsakamoto/Toolbelt.Blazor.HotKeys2" target="_blank" class="ml-md-auto about-link">About Blazor HotKeys2</a></div> | ||
|
||
<div class="content px-4"><div><h1>Hello, world!</h1> | ||
|
||
Welcome to your new app. | ||
|
||
<div class="alert alert-secondary mt-4" role="alert"><span class="oi oi-pencil mr-2" aria-hidden="true"></span> | ||
<strong>How is Blazor working for you?</strong> | ||
|
||
<span class="text-nowrap"> | ||
Please take our | ||
<a target="_blank" class="font-weight-bold" href="https://go.microsoft.com/fwlink/?linkid=2137916">brief survey</a></span> | ||
and tell us what you think. | ||
</div> | ||
|
||
<p><button class="btn btn-secondary"> | ||
Remove the hot key "G" | ||
</button></p></div> | ||
|
||
<div class="hot-keys-cheat-sheet alert alert-secondary mt-4"><span class="key">?</span> ... <span class="description">Open the Hot keys cheat sheet.</span></div> | ||
|
||
<div class="popup-container "><div class="pop-item hot-keys-cheat-sheet alert alert-secondary mt-4" __internal_stopPropagation_onclick><div><strong>Hot keys cheat sheet</strong></div> | ||
<ul><li><span class="key">H</span> ... <span class="description">Go to Home page.</span></li><li><span class="key">C</span> ... <span class="description">Go to Counter page.</span></li><li><span class="key">F</span> ... <span class="description">Go to Fetch data page.</span></li><li><span class="key">Ctrl</span> ... <span class="description">Double tap to go to Home.</span></li><li><span class="key">@</span> ... <span class="description">(only "Home") change greeting message.</span></li> | ||
<li><span class="key">U</span> ... <span class="description">(only "Counter") Increment counter.</span></li></ul> | ||
<p>The hot key <span class="key">H</span> will work even if input element has focus.</p> | ||
<p> | ||
* Input element for the hot key <span class="key">H</span>: <input type="text" value class="form-control-sm"></p> | ||
<p>The hot key <span class="key">C</span> will work when a non-text input element, like a checkbox or radio, has focus.</p> | ||
<p> | ||
* Input element for the hot key <span class="key">C</span>: <input type="checkbox" value class="form-control-sm"></p></div></div></div></div></div> | ||
|
||
</div> | ||
<!-- %%-PRERENDERING-END-%% --> | ||
</div> | ||
|
||
<div id="blazor-error-ui"> | ||
An unhandled error has occurred. | ||
<a href="" class="reload">Reload</a> | ||
<a class="dismiss">🗙</a> | ||
</div> | ||
<script src="_framework/blazor.webassembly.js" autostart="false"></script> | ||
<script src="_content/SampleSite.Components/helper.js"></script> | ||
|
||
|
||
|
||
<script src="brotliloader.min.js" type="module"></script> | ||
</body></html> |
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,2 @@ | ||
@import '_content/SampleSite.Components/SampleSite.Components.bundle.scp.css'; | ||
|
1 change: 1 addition & 0 deletions
1
_content/BlazorWasmPreRendering.Build/BlazorWasmPreRendering.Build.lib.module.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
_content/SampleSite.Components/SampleSite.Components.bundle.scp.css
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 @@ | ||
/* _content/SampleSite.Components/Shared/EnteredKeyList.razor.rz.scp.css */ | ||
.entered-keys th[b-1re0doem26], | ||
.entered-keys td[b-1re0doem26] { | ||
padding: 4px 8px; | ||
} | ||
|
||
.entered-keys td[b-1re0doem26] { | ||
font-family: monospace; | ||
} |
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,59 @@ | ||
@import url('open-iconic/font/css/open-iconic-bootstrap.min.css'); | ||
|
||
html, body { | ||
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; | ||
} | ||
|
||
a, .btn-link { | ||
color: #0366d6; | ||
} | ||
|
||
.btn-primary { | ||
color: #fff; | ||
background-color: #1b6ec2; | ||
border-color: #1861ac; | ||
} | ||
|
||
.content { | ||
padding-top: 1.1rem; | ||
} | ||
|
||
.valid.modified:not([type=checkbox]) { | ||
outline: 1px solid #26b050; | ||
} | ||
|
||
.invalid { | ||
outline: 1px solid red; | ||
} | ||
|
||
.validation-message { | ||
color: red; | ||
} | ||
|
||
#blazor-error-ui { | ||
background: lightyellow; | ||
bottom: 0; | ||
box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2); | ||
display: none; | ||
left: 0; | ||
padding: 0.6rem 1.25rem 0.7rem 1.25rem; | ||
position: fixed; | ||
width: 100%; | ||
z-index: 1000; | ||
} | ||
|
||
#blazor-error-ui .dismiss { | ||
cursor: pointer; | ||
position: absolute; | ||
right: 0.75rem; | ||
top: 0.5rem; | ||
} | ||
|
||
.about-link { | ||
background-image: url(favicon.png); | ||
background-size: 32px 32px; | ||
background-repeat: no-repeat; | ||
display: inline-block; | ||
padding-left: 40px; | ||
line-height: 32px; | ||
} |
7 changes: 7 additions & 0 deletions
7
_content/SampleSite.Components/css/bootstrap/bootstrap.min.css
Large diffs are not rendered by default.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
_content/SampleSite.Components/css/bootstrap/bootstrap.min.css.map
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
54 changes: 54 additions & 0 deletions
54
_content/SampleSite.Components/css/hot-keys-cheat-sheet.css
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,54 @@ | ||
.hot-keys-cheat-sheet p { | ||
margin: 0; | ||
display: flex; | ||
align-items: center; | ||
} | ||
|
||
.hot-keys-cheat-sheet ul { | ||
margin: 0; | ||
} | ||
|
||
.hot-keys-cheat-sheet .key { | ||
border: solid 1px #fff; | ||
border-radius: 4px; | ||
font-size: 12px; | ||
display: inline-block; | ||
text-align: center; | ||
min-width: 28px; | ||
height: 28px; | ||
line-height: 28px; | ||
margin: 4px; | ||
padding: 0 6px; | ||
color: #fff; | ||
background-color: #888; | ||
} | ||
|
||
.popup-container { | ||
background-color: rgba(0,0,0,0.3); | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
bottom: 0; | ||
right: 0; | ||
z-index: 1; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
opacity: 0; | ||
visibility: hidden; | ||
transition: visibility linear 0.2s, opacity linear 0.2s; | ||
} | ||
|
||
.popup-container.visible { | ||
visibility: visible; | ||
opacity: 1; | ||
} | ||
|
||
.popup-container .hot-keys-cheat-sheet { | ||
display: inline-block; | ||
box-shadow: rgba(0,0,0,0.5) 0 0 10px; | ||
} | ||
|
||
.hot-keys-cheat-sheet input { | ||
font-family: consolas, monospace; | ||
} |
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,29 @@ | ||
.page { | ||
position: relative; | ||
display: flex; | ||
flex-direction: column; | ||
flex: 1; | ||
} | ||
|
||
@media (min-width: 768px) { | ||
.page { | ||
flex-direction: row; | ||
} | ||
} | ||
|
||
.about-link { | ||
background-image: url(favicon.png); | ||
background-size: 32px 32px; | ||
background-repeat: no-repeat; | ||
display: inline-block; | ||
padding-left: 40px; | ||
line-height: 32px; | ||
} | ||
|
||
.navbar-brand { | ||
padding: 0; | ||
} | ||
|
||
.framework-description { | ||
font-size: 11px; | ||
} |
Oops, something went wrong.