chore: fix 'Deamon' typo

---
Reviewed-by: schowdhuri
This commit is contained in:
Ahmed Bouhuolia 2022-05-17 22:08:17 +02:00 committed by GitHub
parent 71bbc7e3f5
commit 7ada7f17db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 40 additions and 40 deletions

View File

@ -35,14 +35,14 @@ export enum LangKeys {
AccountNodeSettingsLocal = "account.nodeSecurity.local.title",
AccountNodeSettingsRemote = "account.nodeSecurity.remote.title",
AccountNodeFieldBlockchainLocation = "account.nodeSecurity.blockchainLocation",
AccountNodeFieldDeamonAddress = "account.nodeSecurity.deamonAddress",
AccountNodeFieldDeamonFlags = "account.nodeSecurity.deamonFlags",
AccountNodeFieldDaemonAddress = "account.nodeSecurity.daemonAddress",
AccountNodeFieldDaemonFlags = "account.nodeSecurity.daemonFlags",
AccountNodeFieldPort = "account.nodeSecurity.port",
AccountNodeStopDeamon = "account.nodeSecurity.stopDeamon",
AccountNodeStartDeamon = "account.nodeSecurity.startDeamon",
AccountNodeStopDaemon = "account.nodeSecurity.stopDaemon",
AccountNodeStartDaemon = "account.nodeSecurity.startDaemon",
AccountNodeLocalSaveNotification = "account.nodeSecurity.saveNotification",
AccountNodeDeamonStoppedNotif = "account.nodeSecurity.stoppedNotification",
AccountNodeDeamonStartedNotif = "account.nodeSecurity.startedNotification",
AccountNodeDaemonStoppedNotif = "account.nodeSecurity.stoppedNotification",
AccountNodeDaemonStartedNotif = "account.nodeSecurity.startedNotification",
AccountSettingsAddNode = "account.settings.addNewNode",
AccountSettingsCurrent = "account.settings.current",
AccountSecurityFieldPassword = "account.security.field.password",

View File

@ -39,15 +39,15 @@ const LangPackEN: { [key in LangKeys]: string } = {
[LangKeys.AccountNodeSettingsLocal]: "Local Node",
[LangKeys.AccountNodeSettingsRemote]: "Remote Node",
[LangKeys.AccountNodeFieldBlockchainLocation]: "Blockchain location",
[LangKeys.AccountNodeFieldDeamonAddress]: "Deamon Address",
[LangKeys.AccountNodeFieldDaemonAddress]: "Daemon Address",
[LangKeys.AccountNodeFieldPort]: "Port",
[LangKeys.AccountNodeFieldDeamonFlags]: "Deamon startup flags",
[LangKeys.AccountNodeStopDeamon]: "Stop deamon",
[LangKeys.AccountNodeStartDeamon]: "Start deamon",
[LangKeys.AccountNodeFieldDaemonFlags]: "Daemon startup flags",
[LangKeys.AccountNodeStopDaemon]: "Stop daemon",
[LangKeys.AccountNodeStartDaemon]: "Start daemon",
[LangKeys.AccountNodeLocalSaveNotification]:
"Local node settings updated successfully",
[LangKeys.AccountNodeDeamonStoppedNotif]: "Deamon stopped successfully",
[LangKeys.AccountNodeDeamonStartedNotif]: "Deamon started successfully",
[LangKeys.AccountNodeDaemonStoppedNotif]: "Daemon stopped successfully",
[LangKeys.AccountNodeDaemonStartedNotif]: "Daemon started successfully",
[LangKeys.AccountSettingsAddNode]: "Add a new node",
[LangKeys.AccountSettingsCurrent]: "Current",
[LangKeys.AccountSecurityFieldPassword]: "Update account password",

View File

@ -40,15 +40,15 @@ const LangPackES: { [key in LangKeys]: string } = {
[LangKeys.AccountNodeSettingsRemote]: "Nodo Remoto",
[LangKeys.AccountNodeFieldBlockchainLocation]:
"Ubicación de cadena de bloques",
[LangKeys.AccountNodeFieldDeamonAddress]: "Dirección del demonio",
[LangKeys.AccountNodeFieldDaemonAddress]: "Dirección del demonio",
[LangKeys.AccountNodeFieldPort]: "Puerto",
[LangKeys.AccountNodeFieldDeamonFlags]: "Indicadores de inicio de daemon",
[LangKeys.AccountNodeStopDeamon]: "Detener demonio",
[LangKeys.AccountNodeStartDeamon]: "Comienzo demonio",
[LangKeys.AccountNodeFieldDaemonFlags]: "Indicadores de inicio de daemon",
[LangKeys.AccountNodeStopDaemon]: "Detener demonio",
[LangKeys.AccountNodeStartDaemon]: "Comienzo demonio",
[LangKeys.AccountNodeLocalSaveNotification]:
"La configuración del nodo local se actualizó correctamente.",
[LangKeys.AccountNodeDeamonStoppedNotif]: "Daemon se detuvo con éxito",
[LangKeys.AccountNodeDeamonStartedNotif]: "Daemon se inició con éxito",
[LangKeys.AccountNodeDaemonStoppedNotif]: "Daemon se detuvo con éxito",
[LangKeys.AccountNodeDaemonStartedNotif]: "Daemon se inició con éxito",
[LangKeys.AccountSettingsAddNode]: "Agregar un nuevo nodo",
[LangKeys.AccountSettingsCurrent]: "Actual",
[LangKeys.AccountSecurityFieldPassword]: "Clave",

View File

@ -23,7 +23,7 @@ import { LangKeys } from "@constants/lang";
import { TextInput } from "@atoms/TextInput";
import { useMoneroNodeSettings } from "@hooks/haveno/useMoneroNodeSettings";
import { useSetMoneroNodeSettings } from "@hooks/haveno/useSetMoneroNodeSettings";
import { NodeLocalStopDeamon } from "./NodeLocalStopDeamon";
import { NodeLocalStopDaemon } from "./NodeLocalStopDaemon";
import type { NodeLocalFormValues } from "./_hooks";
import { useNodeLocalFormValidation } from "./_hooks";
import { transformSettingsRequestToForm } from "./_utils";
@ -39,7 +39,7 @@ export function NodeLocalForm() {
initialValues: {
blockchainLocation: "",
startupFlags: "",
deamonAddress: "",
daemonAddress: "",
port: "",
...(nodeSettings
? transformSettingsRequestToForm(nodeSettings.toObject())
@ -52,7 +52,7 @@ export function NodeLocalForm() {
updateNodeSettings({
blockchainPath: values.blockchainLocation,
startupFlags: values.startupFlags.split(", "),
bootstrapUrl: `${values.deamonAddress}:${values.port}`,
bootstrapUrl: `${values.daemonAddress}:${values.port}`,
})
.then(() => {
showNotification({
@ -75,7 +75,7 @@ export function NodeLocalForm() {
return (
<Box>
<NodeLocalStopDeamon />
<NodeLocalStopDaemon />
<form onSubmit={form.onSubmit(handleFormSubmit)}>
<Stack spacing="lg">
@ -93,8 +93,8 @@ export function NodeLocalForm() {
id="startupFlags"
label={
<FormattedMessage
id={LangKeys.AccountNodeFieldDeamonFlags}
defaultMessage="Deamon startup flags"
id={LangKeys.AccountNodeFieldDaemonFlags}
defaultMessage="Daemon startup flags"
/>
}
{...form.getInputProps("startupFlags")}
@ -102,15 +102,15 @@ export function NodeLocalForm() {
<Grid>
<Grid.Col span={9}>
<TextInput
id="deamonAddress"
id="daemonAddress"
label={
<FormattedMessage
id={LangKeys.AccountNodeFieldDeamonAddress}
defaultMessage="Deamon Address"
id={LangKeys.AccountNodeFieldDaemonAddress}
defaultMessage="Daemon Address"
/>
}
required
{...form.getInputProps("deamonAddress")}
{...form.getInputProps("daemonAddress")}
/>
</Grid.Col>
<Grid.Col span={3}>

View File

@ -24,7 +24,7 @@ import { useStopMoneroNode } from "@hooks/haveno/useStopMoneroNode";
import { useIsMoneroNodeRunning } from "@hooks/haveno/useIsMoneroNodeRunning";
import { useStartMoneroNode } from "@hooks/haveno/useStartMoneroNode";
export function NodeLocalStopDeamon() {
export function NodeLocalStopDaemon() {
const { classes } = useStyles();
const intl = useIntl();
@ -41,8 +41,8 @@ export function NodeLocalStopDeamon() {
showNotification({
color: "green",
message: intl.formatMessage({
id: LangKeys.AccountNodeDeamonStoppedNotif,
defaultMessage: "Deamon stopped successfully",
id: LangKeys.AccountNodeDaemonStoppedNotif,
defaultMessage: "Daemon stopped successfully",
}),
});
})
@ -65,8 +65,8 @@ export function NodeLocalStopDeamon() {
showNotification({
color: "green",
message: intl.formatMessage({
id: LangKeys.AccountNodeDeamonStartedNotif,
defaultMessage: "Deamon started successfully",
id: LangKeys.AccountNodeDaemonStartedNotif,
defaultMessage: "Daemon started successfully",
}),
});
})
@ -85,8 +85,8 @@ export function NodeLocalStopDeamon() {
{isMoneroNodeRunning ? (
<Button flavor="neutral" onClick={handleStopBtnClick}>
<FormattedMessage
id={LangKeys.AccountNodeStopDeamon}
defaultMessage="Stop deamon"
id={LangKeys.AccountNodeStopDaemon}
defaultMessage="Stop daemon"
/>
</Button>
) : (
@ -96,8 +96,8 @@ export function NodeLocalStopDeamon() {
disabled={Boolean(isNodeSettingsLoading || !nodeSettings)}
>
<FormattedMessage
id={LangKeys.AccountNodeStopDeamon}
defaultMessage="Start deamon"
id={LangKeys.AccountNodeStopDaemon}
defaultMessage="Start daemon"
/>
</Button>
)}

View File

@ -19,7 +19,7 @@ import * as Joi from "joi";
export interface NodeLocalFormValues {
blockchainLocation: string;
startupFlags: string;
deamonAddress: string;
daemonAddress: string;
port: string;
}
@ -27,7 +27,7 @@ export function useNodeLocalFormValidation() {
return Joi.object<NodeLocalFormValues>({
blockchainLocation: Joi.string().empty("").uri({ relativeOnly: true }),
startupFlags: Joi.string().empty(""),
deamonAddress: Joi.string().uri({ allowRelative: false }),
daemonAddress: Joi.string().uri({ allowRelative: false }),
port: Joi.number().port(),
});
}

View File

@ -28,7 +28,7 @@ export function transformSettingsRequestToForm(
return {
blockchainLocation: nodeSettings?.blockchainPath || "",
startupFlags: nodeSettings?.startupFlagsList.join(", ") || "",
deamonAddress: transfromBootstrapUrl(nodeSettings?.bootstrapUrl || ""),
daemonAddress: transfromBootstrapUrl(nodeSettings?.bootstrapUrl || ""),
port: transformPort(nodeSettings?.bootstrapUrl || ""),
};
}