Apply new eslint rules; default to prettier for styling
This commit is contained in:
parent
f22cce8881
commit
dc84af9937
218 changed files with 3876 additions and 3564 deletions
|
@ -16,15 +16,15 @@ import { ip } from '@/lib/formatters';
|
|||
import { Button } from '@/components/elements/button/index';
|
||||
|
||||
export default () => {
|
||||
const username = useStoreState(state => state.user.data!.username);
|
||||
const id = ServerContext.useStoreState(state => state.server.data!.id);
|
||||
const uuid = ServerContext.useStoreState(state => state.server.data!.uuid);
|
||||
const node = ServerContext.useStoreState(state => state.server.data!.node);
|
||||
const sftp = ServerContext.useStoreState(state => state.server.data!.sftpDetails, isEqual);
|
||||
const username = useStoreState((state) => state.user.data!.username);
|
||||
const id = ServerContext.useStoreState((state) => state.server.data!.id);
|
||||
const uuid = ServerContext.useStoreState((state) => state.server.data!.uuid);
|
||||
const node = ServerContext.useStoreState((state) => state.server.data!.node);
|
||||
const sftp = ServerContext.useStoreState((state) => state.server.data!.sftpDetails, isEqual);
|
||||
|
||||
return (
|
||||
<ServerContentBlock title={'Settings'}>
|
||||
<FlashMessageRender byKey={'settings'} css={tw`mb-4`}/>
|
||||
<FlashMessageRender byKey={'settings'} css={tw`mb-4`} />
|
||||
<div css={tw`md:flex`}>
|
||||
<div css={tw`w-full md:flex-1 md:mr-10`}>
|
||||
<Can action={'file.sftp'}>
|
||||
|
@ -32,21 +32,13 @@ export default () => {
|
|||
<div>
|
||||
<Label>Server Address</Label>
|
||||
<CopyOnClick text={`sftp://${ip(sftp.ip)}:${sftp.port}`}>
|
||||
<Input
|
||||
type={'text'}
|
||||
value={`sftp://${ip(sftp.ip)}:${sftp.port}`}
|
||||
readOnly
|
||||
/>
|
||||
<Input type={'text'} value={`sftp://${ip(sftp.ip)}:${sftp.port}`} readOnly />
|
||||
</CopyOnClick>
|
||||
</div>
|
||||
<div css={tw`mt-6`}>
|
||||
<Label>Username</Label>
|
||||
<CopyOnClick text={`${username}.${id}`}>
|
||||
<Input
|
||||
type={'text'}
|
||||
value={`${username}.${id}`}
|
||||
readOnly
|
||||
/>
|
||||
<Input type={'text'} value={`${username}.${id}`} readOnly />
|
||||
</CopyOnClick>
|
||||
</div>
|
||||
<div css={tw`mt-6 flex items-center`}>
|
||||
|
@ -81,11 +73,11 @@ export default () => {
|
|||
<div css={tw`w-full mt-6 md:flex-1 md:mt-0`}>
|
||||
<Can action={'settings.rename'}>
|
||||
<div css={tw`mb-6 md:mb-10`}>
|
||||
<RenameServerBox/>
|
||||
<RenameServerBox />
|
||||
</div>
|
||||
</Can>
|
||||
<Can action={'settings.reinstall'}>
|
||||
<ReinstallServerBox/>
|
||||
<ReinstallServerBox />
|
||||
</Can>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue