react-dev-os
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "react-dev-os", | ||
"author": "Scotty Rogers", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "An interactive development environment for react apps.", | ||
@@ -23,3 +23,4 @@ "license": "ISC", | ||
"start": "webpack --watch --config webpack.config.js --mode development", | ||
"build": "webpack --config webpack.config.js --mode production" | ||
"build": "webpack --config webpack.config.js --mode production", | ||
"prepublishOnly": "webpack --config webpack.config.js --mode production" | ||
}, | ||
@@ -26,0 +27,0 @@ "dependencies": { |
@@ -17,3 +17,7 @@ export default { | ||
pointerEvents: "none", | ||
color: "#424242", | ||
fontSize: "14px", | ||
fontFamily: | ||
"-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji", | ||
}, | ||
}; |
@@ -20,2 +20,4 @@ import React from "react"; | ||
store.dispatch("toolBrowser.toggle"); | ||
event.preventDefault(); | ||
event.stopPropagation(); | ||
} | ||
@@ -22,0 +24,0 @@ }; |
@@ -31,4 +31,5 @@ import React, { useState } from "react"; | ||
const keyCode = event.keyCode; | ||
keyCode === ARROW_DOWN && updateSelectedIndex(selectedIndex + 1); | ||
keyCode === ARROW_UP && updateSelectedIndex(selectedIndex - 1); | ||
keyCode === ARROW_DOWN && updateSelectedIndex(selectedIndex + 1, event); | ||
keyCode === ARROW_UP && updateSelectedIndex(selectedIndex - 1, event); | ||
keyCode === ENTER && openWindow(tools[selectedIndex].window); | ||
@@ -38,3 +39,13 @@ keyCode === ESCAPE && store.dispatch("toolBrowser.close"); | ||
const handleKeyDown = (event) => { | ||
const keyCode = event.keyCode; | ||
if (keyCode === ARROW_DOWN || keyCode === ARROW_UP) { | ||
event.stopPropagation(); | ||
event.preventDefault(); | ||
} | ||
}; | ||
useOnWindowEvent("keyup", handleKeyUp); | ||
useOnWindowEvent("keydown", handleKeyDown); | ||
@@ -41,0 +52,0 @@ return ( |
@@ -12,3 +12,3 @@ import { colors } from "@library/styles"; | ||
width: "96px", | ||
marginBottom: "8px", | ||
marginBottom: "10px", | ||
}, | ||
@@ -15,0 +15,0 @@ label: { |
@@ -7,3 +7,3 @@ export default { | ||
main: { | ||
padding: "16px 0px 32px 0px", | ||
padding: "16px 0px 28px 0px", | ||
}, | ||
@@ -10,0 +10,0 @@ secondary: { |
@@ -47,2 +47,3 @@ module.exports = { | ||
}, | ||
// devtool: "inline-source-map", | ||
}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
1648
2
0
55414
115