mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-10 09:28:36 +00:00
fix:quotes - prettier
This commit is contained in:
@@ -45,7 +45,7 @@ import getWorkspaces from '../api/workspace/getWorkspaces';
|
|||||||
/**
|
/**
|
||||||
* This component represent a single row for an environemnt variable on the dashboard
|
* This component represent a single row for an environemnt variable on the dashboard
|
||||||
* @param {object} obj
|
* @param {object} obj
|
||||||
* @param {String[]} obj.keyPair - data related to the environment variable (id, key, value, public/private)
|
* @param {String[]} obj.keyPair - data related to the environment variable (id, pos, key, value, public/private)
|
||||||
* @param {function} obj.deleteRow - a function to delete a certain keyPair
|
* @param {function} obj.deleteRow - a function to delete a certain keyPair
|
||||||
* @param {function} obj.modifyKey - modify the key of a certain environment variable
|
* @param {function} obj.modifyKey - modify the key of a certain environment variable
|
||||||
* @param {function} obj.modifyValue - modify the value of a certain environment variable
|
* @param {function} obj.modifyValue - modify the value of a certain environment variable
|
||||||
@@ -114,7 +114,7 @@ const KeyPair = ({
|
|||||||
<div
|
<div
|
||||||
onClick={() =>
|
onClick={() =>
|
||||||
modifyVisibility(
|
modifyVisibility(
|
||||||
keyPair.type == "personal" ? "shared" : "personal",
|
keyPair.type == 'personal' ? 'shared' : 'personal',
|
||||||
keyPair.pos
|
keyPair.pos
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@@ -122,10 +122,10 @@ const KeyPair = ({
|
|||||||
>
|
>
|
||||||
<FontAwesomeIcon
|
<FontAwesomeIcon
|
||||||
className="text-lg pl-1.5 pr-3"
|
className="text-lg pl-1.5 pr-3"
|
||||||
icon={keyPair.type == "personal" ? faPeopleGroup : faPerson}
|
icon={keyPair.type == 'personal' ? faPeopleGroup : faPerson}
|
||||||
/>
|
/>
|
||||||
<div className="text-sm">
|
<div className="text-sm">
|
||||||
{keyPair.type == "personal" ? "Make Shared" : "Make Personal"}
|
{keyPair.type == 'personal' ? 'Make Shared' : 'Make Personal'}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
@@ -138,7 +138,7 @@ const KeyPair = ({
|
|||||||
modifyValue(
|
modifyValue(
|
||||||
[...Array(randomStringLength)]
|
[...Array(randomStringLength)]
|
||||||
.map(() => Math.floor(Math.random() * 16).toString(16))
|
.map(() => Math.floor(Math.random() * 16).toString(16))
|
||||||
.join(""),
|
.join(''),
|
||||||
keyPair.pos
|
keyPair.pos
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -147,7 +147,7 @@ const KeyPair = ({
|
|||||||
>
|
>
|
||||||
<FontAwesomeIcon
|
<FontAwesomeIcon
|
||||||
className="text-lg pl-1.5 pr-3"
|
className="text-lg pl-1.5 pr-3"
|
||||||
icon={keyPair.value == "" ? faPlus : faShuffle}
|
icon={keyPair.value == '' ? faPlus : faShuffle}
|
||||||
/>
|
/>
|
||||||
<div className="text-sm justify-between flex flex-row w-full">
|
<div className="text-sm justify-between flex flex-row w-full">
|
||||||
<p>Generate Random Hex</p>
|
<p>Generate Random Hex</p>
|
||||||
@@ -267,9 +267,9 @@ export default function Dashboard() {
|
|||||||
*/
|
*/
|
||||||
const reorderRows = () => {
|
const reorderRows = () => {
|
||||||
setSortMethod(prevSort =>
|
setSortMethod(prevSort =>
|
||||||
prevSort == "alphabetical"
|
prevSort == 'alphabetical'
|
||||||
? "-alphabetical"
|
? '-alphabetical'
|
||||||
: "alphabetical"
|
: 'alphabetical'
|
||||||
);
|
);
|
||||||
|
|
||||||
sortValuesHandler()
|
sortValuesHandler()
|
||||||
@@ -324,9 +324,9 @@ export default function Dashboard() {
|
|||||||
setData([...data, {
|
setData([...data, {
|
||||||
id:guidGenerator(),
|
id:guidGenerator(),
|
||||||
pos:data.length,
|
pos:data.length,
|
||||||
key:"",
|
key:'',
|
||||||
value:"",
|
value:'',
|
||||||
type:"shared"
|
type:'shared'
|
||||||
}]);
|
}]);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user