mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-04-28 10:28:09 -04:00
* you know, you could just work on first try * fix extension * configure plugin and fix few translation issues * more * more keys * and more * more keys and sort * commit msg * we like keys here * end my suffering * jk i just love keys * key fix * add turkish * add german * Entendido * Demnächst * Mettre une étoile sur GitHub * 成功 * pnpm-lock * vite plugin * remove i18next backends --------- Co-authored-by: Brendan Allan <brendonovich@outlook.com>
40 lines
1.1 KiB
TypeScript
40 lines
1.1 KiB
TypeScript
import { Input, Switch } from '@sd/ui';
|
|
import { useLocale } from '~/hooks';
|
|
|
|
import { Heading } from '../Layout';
|
|
import Setting from '../Setting';
|
|
|
|
export const Component = () => {
|
|
const { t } = useLocale();
|
|
return (
|
|
<>
|
|
<Heading
|
|
title="P2P Settings"
|
|
description="Manage how this node communicates with other nodes."
|
|
/>
|
|
|
|
<Setting
|
|
mini
|
|
title="Enable Node Discovery"
|
|
description="Allow or block this node from calling an external server to assist in forming a peer-to-peer connection. "
|
|
>
|
|
<Switch checked />
|
|
</Setting>
|
|
|
|
<Setting
|
|
title="Discovery Server"
|
|
description="Configuration server to aid with establishing peer-to-peer to connections between nodes over the internet. Disabling will result in nodes only being accessible over LAN and direct IP connections."
|
|
>
|
|
<div className="mt-1 flex flex-col">
|
|
<Input className="grow" disabled defaultValue="https://p2p.spacedrive.com" />
|
|
<div className="mt-1 flex justify-end">
|
|
<a className="p-1 text-sm font-bold text-accent hover:text-accent">
|
|
{t('change')}
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</Setting>
|
|
</>
|
|
);
|
|
};
|