Files
spacedrive/interface/app/$libraryId/settings/node/p2p.tsx
Utku a94832c1ee [ENG-1502] I18n (#1897)
* 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>
2024-01-08 20:26:46 +00:00

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>
</>
);
};