Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-dev-os

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-dev-os - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

5

package.json
{
"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": {

4

src/components/DevOS/styles.js

@@ -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",
};
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc