chore: run prettier

This commit is contained in:
Matthew Penner 2023-01-12 12:31:47 -07:00
parent 9cdbbc3a00
commit 155d7bb876
No known key found for this signature in database
76 changed files with 788 additions and 550 deletions

View file

@ -197,8 +197,6 @@ export default function EggSettingsContainer() {
dockerImages[alias] = image;
}
console.log(dockerImages);
updateEgg(egg.id, {
...values,
dockerImages,

View file

@ -16,7 +16,6 @@ export default ({ selected }: { selected?: User }) => {
};
const onSelect = (user: User | null) => {
console.log(user);
setUser(user);
setFieldValue('ownerId', user?.id || null);
};

View file

@ -27,8 +27,6 @@ export default () => {
// OOM Killer is enabled, rather than when disabled.
values.limits.oomDisabled = !values.limits.oomDisabled;
console.log(values);
updateServer(server.id, values)
.then(() => {
// setServer({ ...server, ...s });

View file

@ -33,7 +33,6 @@ function ServerStartupLineContainer({ egg, server }: { egg: Egg | null; server:
}
if (server.eggId === egg.id) {
console.log(server.container);
setFieldValue('image', server.container.image);
setFieldValue('startup', server.container.startup || '');
return;

View file

@ -30,14 +30,14 @@ const UserTableRow = ({ user, selected, onRowChange }: Props) => {
<tr>
<td className={'whitespace-nowrap'}>
<div className={'flex justify-end items-center w-8'}>
<div className={'flex w-8 items-center justify-end'}>
<Checkbox checked={selected} onChange={e => onRowChange(user, e.currentTarget.checked)} />
</div>
</td>
<td className={'pl-6 py-4 whitespace-nowrap'}>
<td className={'whitespace-nowrap py-4 pl-6'}>
<div className={'flex items-center'}>
<div className={'w-10 h-10'}>
<img src={user.avatarUrl} className={'w-10 h-10 rounded-full'} alt={'User avatar'} />
<div className={'h-10 w-10'}>
<img src={user.avatarUrl} className={'h-10 w-10 rounded-full'} alt={'User avatar'} />
</div>
<div className={'ml-4'}>
<p className={'font-medium'}>{user.email}</p>
@ -45,18 +45,18 @@ const UserTableRow = ({ user, selected, onRowChange }: Props) => {
</div>
</div>
</td>
<td className={'pl-2 py-4 whitespace-nowrap'}>
<td className={'whitespace-nowrap py-4 pl-2'}>
{user.isUsingTwoFactor && (
<span
className={
'bg-green-100 uppercase text-green-700 font-semibold text-xs px-2 py-0.5 rounded'
'rounded bg-green-100 px-2 py-0.5 text-xs font-semibold uppercase text-green-700'
}
>
2-FA Enabled
</span>
)}
</td>
<td className={'px-6 py-4 whitespace-nowrap'}>
<td className={'whitespace-nowrap px-6 py-4'}>
<Dropdown>
<Dropdown.Button className={'px-2'}>
<DotsVerticalIcon />

View file

@ -42,9 +42,9 @@ const UsersContainer = () => {
return (
<div>
<div className={'flex justify-end mb-4'}>
<div className={'mb-4 flex justify-end'}>
<Button className={'shadow focus:ring-offset-2 focus:ring-offset-neutral-800'}>
Add User <PlusIcon className={'ml-2 w-5 h-5'} />
Add User <PlusIcon className={'ml-2 h-5 w-5'} />
</Button>
</div>
<div className={'relative flex items-center rounded-t bg-neutral-700 px-4 py-2'}>
@ -68,7 +68,7 @@ const UsersContainer = () => {
<Transition.Fade as={Fragment} show={selected.length > 0} duration={'duration-75'}>
<div
className={
'absolute rounded-t bg-neutral-700 w-full h-full top-0 left-0 flex items-center justify-end space-x-4 px-4'
'absolute top-0 left-0 flex h-full w-full items-center justify-end space-x-4 rounded-t bg-neutral-700 px-4'
}
>
<div className={'flex-1'}>
@ -79,13 +79,13 @@ const UsersContainer = () => {
/>
</div>
<Button.Text shape={Shape.IconSquare}>
<SupportIcon className={'w-4 h-4'} />
<SupportIcon className={'h-4 w-4'} />
</Button.Text>
<Button.Text shape={Shape.IconSquare}>
<LockOpenIcon className={'w-4 h-4'} />
<LockOpenIcon className={'h-4 w-4'} />
</Button.Text>
<Button.Text shape={Shape.IconSquare}>
<TrashIcon className={'w-4 h-4'} />
<TrashIcon className={'h-4 w-4'} />
</Button.Text>
</div>
</Transition.Fade>
@ -94,7 +94,7 @@ const UsersContainer = () => {
<thead className={'bg-neutral-900'}>
<tr>
<th scope={'col'} className={'w-8'} />
<th scope={'col'} className={'text-left px-6 py-2 w-full'}>
<th scope={'col'} className={'w-full px-6 py-2 text-left'}>
Email
</th>
<th scope={'col'} />