Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change Edit Fields Color to be more accessible #742

Merged
merged 2 commits into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 51 additions & 17 deletions src/pages/hosts/HostDetailsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,9 @@ export default function HostDetailsPage(props: PageProps) {
data-nmui-intercom="host-details_id"
>
<Col xs={12}>
<Typography.Text disabled>ID</Typography.Text>
<Typography.Text disabled style={{ color: '#A6A6A6' }}>
ID
</Typography.Text>
</Col>
<Col xs={12}>
<Typography.Text>{host.id}</Typography.Text>
Expand All @@ -277,7 +279,9 @@ export default function HostDetailsPage(props: PageProps) {
data-nmui-intercom="host-details_endpoint"
>
<Col xs={12}>
<Typography.Text disabled>Endpoint (IPv4)</Typography.Text>
<Typography.Text disabled style={{ color: '#A6A6A6' }}>
Endpoint (IPv4)
</Typography.Text>
</Col>
<Col xs={12}>
<Typography.Text>{host.endpointip}</Typography.Text>
Expand All @@ -288,7 +292,9 @@ export default function HostDetailsPage(props: PageProps) {
data-nmui-intercom="host-details_endpointv6"
>
<Col xs={12}>
<Typography.Text disabled>Endpoint (IPv6)</Typography.Text>
<Typography.Text disabled style={{ color: '#A6A6A6' }}>
Endpoint (IPv6)
</Typography.Text>
</Col>
<Col xs={12}>
<Typography.Text>{host.endpointipv6}</Typography.Text>
Expand All @@ -299,7 +305,9 @@ export default function HostDetailsPage(props: PageProps) {
data-nmui-intercom="host-details_isstaticendpoint"
>
<Col xs={12}>
<Typography.Text disabled>Static Endpoint</Typography.Text>
<Typography.Text disabled style={{ color: '#A6A6A6' }}>
Static Endpoint
</Typography.Text>
</Col>
<Col xs={12}>
<Typography.Text>{host.isstatic ? 'Yes' : 'No'}</Typography.Text>
Expand All @@ -310,7 +318,9 @@ export default function HostDetailsPage(props: PageProps) {
data-nmui-intercom="host-details_listenport"
>
<Col xs={12}>
<Typography.Text disabled>Listen Port</Typography.Text>
<Typography.Text disabled style={{ color: '#A6A6A6' }}>
Listen Port
</Typography.Text>
</Col>
<Col xs={12}>
<Typography.Text>{host.listenport}</Typography.Text>
Expand All @@ -321,7 +331,9 @@ export default function HostDetailsPage(props: PageProps) {
data-nmui-intercom="host-details_isstaticport"
>
<Col xs={12}>
<Typography.Text disabled>Static Port</Typography.Text>
<Typography.Text disabled style={{ color: '#A6A6A6' }}>
Static Port
</Typography.Text>
</Col>
<Col xs={12}>
<Typography.Text>{host.isstaticport ? 'Yes' : 'No'}</Typography.Text>
Expand All @@ -332,7 +344,9 @@ export default function HostDetailsPage(props: PageProps) {
data-nmui-intercom="host-details_macaddress"
>
<Col xs={12}>
<Typography.Text disabled>MAC Address</Typography.Text>
<Typography.Text disabled style={{ color: '#A6A6A6' }}>
MAC Address
</Typography.Text>
</Col>
<Col xs={12}>
<Typography.Text>{host.macaddress}</Typography.Text>
Expand All @@ -343,7 +357,9 @@ export default function HostDetailsPage(props: PageProps) {
data-nmui-intercom="host-details_mtu"
>
<Col xs={12}>
<Typography.Text disabled>MTU</Typography.Text>
<Typography.Text disabled style={{ color: '#A6A6A6' }}>
MTU
</Typography.Text>
</Col>
<Col xs={12}>
<Typography.Text>{host.mtu}</Typography.Text>
Expand All @@ -354,7 +370,9 @@ export default function HostDetailsPage(props: PageProps) {
data-nmui-intercom="host-details_persistentkeepalive"
>
<Col xs={12}>
<Typography.Text disabled>Persistent Keepalive</Typography.Text>
<Typography.Text disabled style={{ color: '#A6A6A6' }}>
Persistent Keepalive
</Typography.Text>
</Col>
<Col xs={12}>
<Typography.Text>{host?.persistentkeepalive ?? ''}</Typography.Text>
Expand All @@ -365,7 +383,9 @@ export default function HostDetailsPage(props: PageProps) {
data-nmui-intercom="host-details_publickey"
>
<Col xs={12}>
<Typography.Text disabled>Public Key</Typography.Text>
<Typography.Text disabled style={{ color: '#A6A6A6' }}>
Public Key
</Typography.Text>
</Col>
<Col xs={12}>
<Typography.Text>{host.publickey}</Typography.Text>
Expand All @@ -376,7 +396,9 @@ export default function HostDetailsPage(props: PageProps) {
data-nmui-intercom="host-details_os"
>
<Col xs={12}>
<Typography.Text disabled>Operating System</Typography.Text>
<Typography.Text disabled style={{ color: '#A6A6A6' }}>
Operating System
</Typography.Text>
</Col>
<Col xs={12}>
<Typography.Text>{host.os}</Typography.Text>
Expand All @@ -387,7 +409,9 @@ export default function HostDetailsPage(props: PageProps) {
data-nmui-intercom="host-details_version"
>
<Col xs={12}>
<Typography.Text disabled>Version</Typography.Text>
<Typography.Text disabled style={{ color: '#A6A6A6' }}>
Version
</Typography.Text>
</Col>
<Col xs={12}>
<Typography.Text>{host.version}</Typography.Text>
Expand All @@ -398,7 +422,9 @@ export default function HostDetailsPage(props: PageProps) {
data-nmui-intercom="host-details_verbosity"
>
<Col xs={12}>
<Typography.Text disabled>Verbosity</Typography.Text>
<Typography.Text disabled style={{ color: '#A6A6A6' }}>
Verbosity
</Typography.Text>
</Col>
<Col xs={12}>
<Typography.Text>{host.verbosity}</Typography.Text>
Expand All @@ -409,7 +435,9 @@ export default function HostDetailsPage(props: PageProps) {
data-nmui-intercom="host-details_defaultinterface"
>
<Col xs={12}>
<Typography.Text disabled>Default Interface</Typography.Text>
<Typography.Text disabled style={{ color: '#A6A6A6' }}>
Default Interface
</Typography.Text>
</Col>
<Col xs={12}>
<Typography.Text>{host.defaultinterface}</Typography.Text>
Expand All @@ -420,7 +448,9 @@ export default function HostDetailsPage(props: PageProps) {
data-nmui-intercom="host-details_isdefault"
>
<Col xs={12}>
<Typography.Text disabled>Default Host</Typography.Text>
<Typography.Text disabled style={{ color: '#A6A6A6' }}>
Default Host
</Typography.Text>
</Col>
<Col xs={12}>
<Typography.Text>{host.isdefault ? 'Yes' : 'No'}</Typography.Text>
Expand All @@ -431,7 +461,9 @@ export default function HostDetailsPage(props: PageProps) {
data-nmui-intercom="host-details_debug"
>
<Col xs={12}>
<Typography.Text disabled>Debug</Typography.Text>
<Typography.Text disabled style={{ color: '#A6A6A6' }}>
Debug
</Typography.Text>
</Col>
<Col xs={12}>
<Typography.Text>{host.debug ? 'Yes' : 'No'}</Typography.Text>
Expand All @@ -442,7 +474,9 @@ export default function HostDetailsPage(props: PageProps) {
data-nmui-intercom="host-details_autoupdate"
>
<Col xs={12}>
<Typography.Text disabled>Auto Update</Typography.Text>
<Typography.Text disabled style={{ color: '#A6A6A6' }}>
Auto Update
</Typography.Text>
</Col>
<Col xs={12}>
<Typography.Text>{host.autoupdate ? 'Yes' : 'No'}</Typography.Text>
Expand Down
Loading
Loading