Files
spacedrive/interface/app/$libraryId/settings/node/p2p.tsx
Vítor Vasconcellos 50442ede3e [ENG-469] Make Prettier and ESLint work together (#706)
* Make Prettier and ESLint work together
- Resolve conflicts between Prettier and ESLint regarding indentation and Tailwind rules order
- Add `.editorconfig` to standardize basic formatting options across tools and editors
- Add `.gitattributes` to hide `pnpm-lock.yaml` in `git diff` output
- Include EditorConfig in the recommended extensions for VSCode
- Replace some instances of `pnpm exec <command>` with `pnpm <command>`
- Remove superfluous Tauri config for Linux

* Revert Prettier changes (it was working correctly before)
 - Update ESLint to read Tailwind config from absolute path
 - Remove redundant Prettier dependency from subprojects
 - Specify the source folder for the lint script in subprojects

* use mobile's tailwind config with eslint

* pnpm format + pnpm lint:fix

---------

Co-authored-by: Utku Bakir <74243531+utkubakir@users.noreply.github.com>
2023-04-14 21:21:21 +00:00

37 lines
1.0 KiB
TypeScript

import { Input, Switch } from '@sd/ui';
import { Heading } from '../Layout';
import Setting from '../Setting';
export const Component = () => {
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">
Change
</a>
</div>
</div>
</Setting>
</>
);
};