Skip to content

Commit f41548a

Browse files
authored
Merge pull request #2915 from input-output-hk/chore/ddw-1009-fix-spelling-and-typos
2 parents 3e28234 + acb0edc commit f41548a

File tree

80 files changed

+173
-163
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+173
-163
lines changed

BESTPRACTICES.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,7 +1108,7 @@ type Props = {
11081108
};
11091109
```
11101110

1111-
For preventing syntax errors, leave a comma after the last key/value pair incase the type definition's properties are rearranged or expanded upon in the future.
1111+
For preventing syntax errors, leave a comma after the last key/value pair in case the type definition's properties are rearranged or expanded upon in the future.
11121112

11131113
:white_check_mark: ***Do***
11141114

@@ -1204,7 +1204,7 @@ const Names = () => (<div>
12041204
## Formatting Selectors
12051205

12061206
* Use class selectors instead of ID selectors.
1207-
* Use camelCase or dashed-case instead of PascelCase or names_with_underscores.
1207+
* Use camel case or dashed-case instead of pascal case or names_with_underscores.
12081208
* Give each selector its own line.
12091209
* Put a space before the opening brace `{` in rule declarations.
12101210
* Put closing braces `}` of rule declarations on a new line.

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
### Chores
1111

12+
- Fixed spelling issues and typos ([PR 2915](https://github.com/input-output-hk/daedalus/pull/2915))
1213
- Removed SASS ts-lint ignore comments ([PR 2870](https://github.com/input-output-hk/daedalus/pull/2870))
1314
- Enabled debugging of the main process ([PR 2893](https://github.com/input-output-hk/daedalus/pull/2893))
1415

default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ let
4040
inherit (pkgs.lib) optionalString optional concatStringsSep;
4141
inherit (pkgs) writeTextFile;
4242
crossSystem = lib: (crossSystemTable lib).${target} or null;
43-
# TODO, nsis cant cross-compile with the nixpkgs daedalus currently uses
43+
# TODO, nsis can't cross-compile with the nixpkgs daedalus currently uses
4444
nsisNixPkgs = import localLib.sources.nixpkgs-nsis {};
4545
installPath = ".daedalus";
4646
needSignedBinaries = (signingKeys != null) || (HSMServer != null);

nix/nsis-inner.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ in stdenv.mkDerivation {
4343
'';
4444

4545
meta = with lib; {
46-
descripition = "System to create Windows installers";
46+
description = "System to create Windows installers";
4747
homepage = "https://nsis.sourceforge.io/";
4848
};
4949
}

source/common/config/downloadManagerConfig.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
// https://www.npmjs.com/package/node-downloader-helper
22
import type {
3-
AllowedDownloadDirectories,
3+
AllowedDownloadDirectoriesValues,
4+
AllowedDownloadDirectoriesKeys,
5+
AllowedDownloadDirectoriesMap,
46
DownloadState,
57
DownloadEventType,
68
} from '../types/downloadManager.types';
79

8-
export const ALLOWED_DOWNLOAD_DIRECTORIES: Record<
9-
string,
10-
AllowedDownloadDirectories
11-
> = {
10+
export const ALLOWED_DOWNLOAD_DIRECTORIES: AllowedDownloadDirectoriesMap = {
1211
DOWNLOADS: 'downloads',
1312
DESKTOP: 'desktop',
1413
STATE_DIRECTORY: 'stateDirectory',

source/common/ipc/api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,8 +478,8 @@ export type getCardanoAdaAppRendererRequest = {
478478
export type getCardanoAdaAppMainResponse = HardwareWalletCardanoAdaAppResponse;
479479
export const GET_HARDWARE_WALLET_CONNECTION_CHANNEL =
480480
'GET_HARDWARE_WALLET_CONNECTION_CHANNEL';
481-
export type getHardwareWalletConnectiontMainRequest = HardwareWalletConnectionRequest;
482-
export type getHardwareWalletConnectiontRendererResponse = Record<string, any>;
481+
export type getHardwareWalletConnectionMainRequest = HardwareWalletConnectionRequest;
482+
export type getHardwareWalletConnectionRendererResponse = Record<string, any>;
483483
export const SIGN_TRANSACTION_LEDGER_CHANNEL =
484484
'SIGN_TRANSACTION_LEDGER_CHANNEL';
485485
export type signTransactionLedgerRendererRequest = LedgerSignTransactionRequest;

source/common/types/downloadManager.types.ts

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
1-
export type AllowedDownloadDirectories =
1+
export type AllowedDownloadDirectoriesValues =
22
| 'stateDirectory'
33
| 'downloads'
44
| 'desktop';
5+
6+
export type AllowedDownloadDirectoriesKeys =
7+
| 'DOWNLOADS'
8+
| 'DESKTOP'
9+
| 'STATE_DIRECTORY';
10+
11+
export type AllowedDownloadDirectoriesMap = {
12+
[day in AllowedDownloadDirectoriesKeys]: AllowedDownloadDirectoriesValues;
13+
};
14+
515
// https://www.npmjs.com/package/node-downloader-helper
616
export type DownloadRequest = {
717
/**
@@ -12,7 +22,7 @@ export type DownloadRequest = {
1222
*/
1323
id?: string;
1424
fileUrl: string;
15-
destinationDirectoryName?: AllowedDownloadDirectories;
25+
destinationDirectoryName?: AllowedDownloadDirectoriesValues;
1626
options?: DownloadRequestOptions | null | undefined;
1727
resumeDownload?: {
1828
temporaryFilename: string;
@@ -47,7 +57,7 @@ export type DownloadRequestOptions = {
4757
httpsRequestOptions?: Record<string, any>;
4858
// Override the https request options, ex: to add SSL Certs
4959
progressIsThrottled?: boolean;
50-
// by default, the progress is sent every second. if `false` it will be sent every milisecond
60+
// by default, the progress is sent every second. if `false` it will be sent every millisecond
5161
persistLocalData?: boolean; // by default, the localdata information is deleted after the end of the download
5262
};
5363
// https://www.npmjs.com/package/node-downloader-helper
@@ -82,7 +92,7 @@ export type DownloadInfo = {
8292
fileUrl: string;
8393
originalFilename: string;
8494
temporaryFilename: string;
85-
destinationDirectoryName: AllowedDownloadDirectories;
95+
destinationDirectoryName: AllowedDownloadDirectoriesValues;
8696
destinationPath: string;
8797
options: DownloadRequestOptions;
8898
};
@@ -138,7 +148,7 @@ export type DownloadInfoProgress = {
138148
downloaded: number;
139149
// downloaded size in bytes
140150
progress: number;
141-
// progress porcentage 0-100%
151+
// progress percentage 0-100%
142152
speed: number; // download speed in bytes
143153
};
144154
export type DownloadInfoEnd = {
@@ -147,7 +157,7 @@ export type DownloadInfoEnd = {
147157
totalSize: number;
148158
// total file size got from the server
149159
incomplete: boolean;
150-
// true/false if the download endend but still incomplete
160+
// true/false if the download ended but still incomplete
151161
onDiskSize: number;
152162
// total size of file on the disk
153163
downloadedSize: number; // the total size downloaded

source/main/cardano/CardanoNode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ export class CardanoNode {
522522
}
523523

524524
/**
525-
* Kills cardano-node and waitsup to `killTimeout` for the node to
525+
* Kills cardano-node and waits up to `killTimeout` for the node to
526526
* report the exit message.
527527
*
528528
* @returns {Promise<void>} resolves if the node could be killed, rejects with error otherwise.

source/main/ipc/getHardwareWalletChannel.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ import type {
2222
getCardanoAdaAppRendererRequest,
2323
getExtendedPublicKeyMainResponse,
2424
getExtendedPublicKeyRendererRequest,
25-
getHardwareWalletConnectiontMainRequest,
26-
getHardwareWalletConnectiontRendererResponse,
25+
getHardwareWalletConnectionMainRequest,
26+
getHardwareWalletConnectionRendererResponse,
2727
getHardwareWalletTransportMainResponse,
2828
getHardwareWalletTransportRendererRequest,
2929
handleInitLedgerConnectMainResponse,
@@ -80,8 +80,8 @@ const getCardanoAdaAppChannel: MainIpcChannel<
8080
getCardanoAdaAppMainResponse
8181
> = new MainIpcChannel(GET_CARDANO_ADA_APP_CHANNEL);
8282
const getHardwareWalletConnectionChannel: MainIpcChannel<
83-
getHardwareWalletConnectiontMainRequest,
84-
getHardwareWalletConnectiontRendererResponse
83+
getHardwareWalletConnectionMainRequest,
84+
getHardwareWalletConnectionRendererResponse
8585
> = new MainIpcChannel(GET_HARDWARE_WALLET_CONNECTION_CHANNEL);
8686
const signTransactionLedgerChannel: MainIpcChannel<
8787
signTransactionLedgerRendererRequest,

source/main/utils/downloadManager.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import type {
1717
DownloadMainResponse,
1818
} from '../../common/ipc/api';
1919
import type {
20-
AllowedDownloadDirectories,
20+
AllowedDownloadDirectoriesValues,
2121
DownloadInfoInit,
2222
DownloadInfoProgress,
2323
DownloadInfoEnd,
@@ -31,15 +31,15 @@ export const downloads = {};
3131
export const getIdFromFileName = (fileName: string): string =>
3232
fileName.replace(/\./g, '-');
3333
export const getPathFromDirectoryName = (
34-
directoryName: AllowedDownloadDirectories
34+
directoryName: AllowedDownloadDirectoriesValues
3535
) => {
3636
const downloadsDirectory = `${stateDirectoryPath}/Downloads`;
3737

3838
switch (directoryName) {
3939
case ALLOWED_DOWNLOAD_DIRECTORIES.DESKTOP:
4040
return app.getPath('desktop');
4141

42-
case ALLOWED_DOWNLOAD_DIRECTORIES.DOWLOADS:
42+
case ALLOWED_DOWNLOAD_DIRECTORIES.DOWNLOADS:
4343
return app.getPath('downloads');
4444

4545
default:

0 commit comments

Comments
 (0)