Skip to content

Commit

Permalink
github-deploy-action-polymorphic-equal-test
Browse files Browse the repository at this point in the history
  • Loading branch information
github-deploy-action committed Nov 27, 2024
1 parent fb910f3 commit de93f9e
Show file tree
Hide file tree
Showing 35 changed files with 35,672 additions and 32,019 deletions.
Binary file removed polymorphic-equal-test/fonts/FiraCode-Bold.woff2
Binary file not shown.
Binary file removed polymorphic-equal-test/fonts/FiraCode-Regular.woff2
Binary file not shown.
42,665 changes: 23,461 additions & 19,204 deletions polymorphic-equal-test/hazel.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions polymorphic-equal-test/img/noun-brochure-16464.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions polymorphic-equal-test/img/noun-brochure-26888.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions polymorphic-equal-test/img/noun-fold-1593402.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions polymorphic-equal-test/img/noun-fold-1593409.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions polymorphic-equal-test/img/noun-map-24173.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions polymorphic-equal-test/img/noun-map-6188938.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions polymorphic-equal-test/img/noun-pa-5383544.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions polymorphic-equal-test/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,22 @@
<title>hazel</title>
<link rel="stylesheet" href="style.css">
<link rel="icon" type="image/svg" href = "img/hazelnut.svg">
<link rel="preconnect" href="https://fonts.gstatic.com/" crossorigin />
<link
href="https://fonts.googleapis.com/css?family=Material+Icons&display=swap"
rel="stylesheet"
/>

<!-- The current version of lit-html is broken so this overwrites it for the ninja-keys import. -->
<script type="importmap">
{
"imports": {
"https://unpkg.com/lit-html@latest/directives/ref.js?module": "https://unpkg.com/[email protected]/directives/ref.js?module"
}
}
</script>
<script type="module" src="ninja_module.js"></script>

</head>

<body spellcheck="false">
Expand All @@ -22,6 +38,7 @@
</div>
</div>
</body>
<ninja-keys id="ninja-keys" placeholder="Find Action" hideBreadcrumbs></ninja-keys>

<script src="hazel.js"></script>
</html>
25 changes: 25 additions & 0 deletions polymorphic-equal-test/ninja_module.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import {NinjaKeys} from 'https://unpkg.com/ninja-keys?module';
import hotkeys from "https://unpkg.com/[email protected]?module"


// This is the default behavior for the hotkeys module but I'm overriding it for the clipboard-shim
hotkeys.filter = event => {
const target = event.target || event.srcElement;
const { tagName, id } = target;

// Override happening here
if(id == "clipboard-shim") {
return true;
}

let flag = true;
const isInput = tagName === 'INPUT' && !['checkbox', 'radio', 'range', 'button', 'file', 'reset', 'submit', 'color'].includes(target.type);
// ignore: isContentEditable === 'true', <input> and <textarea> when readOnly state is false, <select>
if (
target.isContentEditable
|| ((isInput || tagName === 'TEXTAREA' || tagName === 'SELECT') && !target.readOnly)
) {
flag = false;
}
return flag;
};
Loading

0 comments on commit de93f9e

Please sign in to comment.