Skip to content

Commit

Permalink
Correct spelling mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwardBetts committed Jan 24, 2021
1 parent 436ca1c commit 13d44a2
Show file tree
Hide file tree
Showing 29 changed files with 52 additions and 52 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

strategy:
matrix:
os: [macos-10.15, windows-2019, ubuntu-18.04] # IMPORTANT!!! here ubuntu-18.04 should be same as in codecov and release workflows, this is for making shure cahes used in most efficient way
os: [macos-10.15, windows-2019, ubuntu-18.04] # IMPORTANT!!! here ubuntu-18.04 should be same as in codecov and release workflows, this is for making sure caches are used in most efficient way

steps:
- name: Check out Git repository
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
run:
runs-on: ubuntu-18.04 # IMPORTANT!!! this LINUX os should be the same as in build-and-test and release workflows! this is for making shure cahes used in most efficient way
runs-on: ubuntu-18.04 # IMPORTANT!!! this LINUX os should be the same as in build-and-test and release workflows! this is for making sure caches are used in most efficient way

steps:
- name: Check out Git repository
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
strategy:
matrix:
include:
- os: ubuntu-18.04 # IMPORTANT!!! this LINUX os should be the same as in build-and-test and covecov workflows! this is for making shure cahes used in most efficient way
- os: ubuntu-18.04 # IMPORTANT!!! this LINUX os should be the same as in build-and-test and covecov workflows! this is for making sure caches are used in most efficient way
artifact_name: 'release/{*.AppImage,*.rpm,*.deb,*.yml}'
- os: windows-2019
artifact_name: 'release/{*.msi,*.exe,*.blockmap,*.yml}'
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ Why this was made? Because a client served with `http` without SSL, which makes
## NOTE: We are looking for a solution to get rid from Dummy Display Plugs while using Deskreen as a second screen. Your code support is highly valuable and welcome in Deskreen!

Display Dummy Plugs are good temporary solution, but it is not that good for everyone.
If you are a seasoned Windows or Linux or MacOS hacker with a knowledge of low level tweaks and triks, you can help us to make Deskreen better!
If you are a seasoned Windows or Linux or MacOS hacker with a knowledge of low level tweaks and tricks, you can help us to make Deskreen better!
On a long run Deskreen seeks for getting rid of Display Dummy Plugs, because most people don't like using them. Sometimes they can't use them because all available display ports are already taken.
**So we need to have native drivers for Win / Mac / Linux that will help to enable virtual display wihtout Dummy Display Plugs.**
**So we need to have native drivers for Win / Mac / Linux that will help to enable virtual display without Dummy Display Plugs.**
There are already working commercial solutions out there with their own drivers which they don't disclose, but this task is doable with a help of entire community.
The goal of Deskreen is to enable community power and knowledge to overcome these technical challenges and make it a go-to second screen solution that everyone will benefit from!

Expand Down
2 changes: 1 addition & 1 deletion app/client/public/locales/en/translation.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"Waiting for user to click ALLOW button on screen sharing device...": "Waiting for user to click ALLOW button on screen sharing device...",
"Wating for user to select source to share from screen sharing device...": "Wating for user to select source to share from screen sharing device..."
"Waiting for user to select source to share from screen sharing device...": "Waiting for user to select source to share from screen sharing device..."
}
2 changes: 1 addition & 1 deletion app/client/public/locales/ru/translation.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"Waiting for user to click ALLOW button on screen sharing device...": "Жду когда пользователь нажмет кнопку РАЗРЕШИТЬ доступ к экрану компьютера...",
"Wating for user to select source to share from screen sharing device...": "Жду когда пользователь выберет весь экран или окно приложения для демонстрации..."
"Waiting for user to select source to share from screen sharing device...": "Жду когда пользователь выберет весь экран или окно приложения для демонстрации..."
}
2 changes: 1 addition & 1 deletion app/client/public/locales/ua/translation.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"Waiting for user to click ALLOW button on screen sharing device...": "Чекаэмо коли користувач натисне кнопку ДОЗВОЛИТИ доступ до екрану комп'ютера...",
"Wating for user to select source to share from screen sharing device...": "Чекаю коли користувач вибере весь екран або вікно програми для демонстрації..."
"Waiting for user to select source to share from screen sharing device...": "Чекаю коли користувач вибере весь екран або вікно програми для демонстрації..."
}
2 changes: 1 addition & 1 deletion app/client/src/components/ConnectingIndicator/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function getConnectingStepContent(
/>
);
default:
return <Text>Error occured :(</Text>;
return <Text>Error occurred :(</Text>;
}
}

Expand Down
2 changes: 1 addition & 1 deletion app/client/src/components/ErrorDialog/ErrorMessageEnum.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export enum ErrorMessage {
UNKNOWN_ERROR = 'An unknonw error uccured.',
UNKNOWN_ERROR = 'An unknown error uccured.',
DENY_TO_CONNECT = 'You were not allowed to connect.',
DISCONNECTED = 'You were disconnected.',
NOT_ALLOWED = 'You were not allowed to connect.',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ exports[`when getPromptContent is called should match exact snapshot on each ste
<h3
className="bp3-heading"
>
Error occured :(
Error occurred :(
</h3>
</div>
</div>
Expand All @@ -175,7 +175,7 @@ exports[`when getPromptContent is called should match exact snapshot on each ste
<div
className=""
>
Error occured :(
Error occurred :(
</div>
</div>
</div>
Expand Down Expand Up @@ -820,7 +820,7 @@ exports[`when getPromptContent is called should match exact snapshot on each ste
<h3
className="bp3-heading"
>
Wating for user to select source to share from screen sharing device...
Waiting for user to select source to share from screen sharing device...
</h3>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions app/client/src/containers/ConnectionPrompts/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ function getPromptContent(step: number, t: TFunction) {
return (
<H3>
{t(
'Wating for user to select source to share from screen sharing device...'
'Waiting for user to select source to share from screen sharing device...'
)}
</H3>
);
default:
return <H3>Error occured :(</H3>;
return <H3>Error occurred :(</H3>;
}
}

Expand Down
4 changes: 2 additions & 2 deletions app/client/src/features/PeerConnection/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ describe('PeerConnection class', () => {
jest.restoreAllMocks();
});

describe('when new PeerConnection is created with not corrent roomId', () => {
it('should change UI accordingly and notify user that error occured', () => {
describe('when new PeerConnection is created with incorrect roomId', () => {
it('should change UI accordingly and notify user that error occurred', () => {
peerConnection = new PeerConnection(
'',
jest.fn(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ describe('peerConnectionHandlePeer callback', () => {
);
});

describe('when quality is AUTO and when video quality optimizer requiests GOOD quality', () => {
describe('when quality is AUTO and when video quality optimizer requests GOOD quality', () => {
it('should call .send with proper data message', () => {
peerConnectionHandlePeer(peerConnection);
peerConnection.peer?.emit('stream');
Expand All @@ -191,7 +191,7 @@ describe('peerConnectionHandlePeer callback', () => {
});
});

describe('when quality is NOT AUTO and when video quality optimizer requiests GOOD quality', () => {
describe('when quality is NOT AUTO and when video quality optimizer requests GOOD quality', () => {
it('should call NOT .send with proper data message', () => {
peerConnection.videoQuality = VideoQuality.Q_25_PERCENT;
peerConnectionHandlePeer(peerConnection);
Expand All @@ -203,7 +203,7 @@ describe('peerConnectionHandlePeer callback', () => {
});
});

describe('when quality is AUTO and when video quality optimizer requiests HALF quality', () => {
describe('when quality is AUTO and when video quality optimizer requests HALF quality', () => {
it('should call .send with proper data message', () => {
peerConnectionHandlePeer(peerConnection);
peerConnection.peer?.emit('stream');
Expand All @@ -219,7 +219,7 @@ describe('peerConnectionHandlePeer callback', () => {
});
});

describe('when quality is NOT AUTO and when video quality optimizer requiests GOOD quality', () => {
describe('when quality is NOT AUTO and when video quality optimizer requests GOOD quality', () => {
it('should call NOT .send with proper data message', () => {
peerConnection.videoQuality = VideoQuality.Q_25_PERCENT;
peerConnectionHandlePeer(peerConnection);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export default class CanvasNotDefinedError extends Error {
constructor() {
super('internal variable of canvas DOM elemenent should be defined!');
super('internal variable of canvas DOM element should be defined!');
// Set the prototype explicitly.
Object.setPrototypeOf(this, CanvasNotDefinedError.prototype);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export default class ImageDataIsUndefinedError extends Error {
constructor() {
super('imageData retreived is undefined!');
super('imageData retrieved is undefined!');
// Set the prototype explicitly.
Object.setPrototypeOf(this, ImageDataIsUndefinedError.prototype);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export default class VideoNotDefinedError extends Error {
constructor() {
super('internal variable of video DOM elemenent should be defined!');
super('internal variable of video DOM element should be defined!');
// Set the prototype explicitly.
Object.setPrototypeOf(this, VideoNotDefinedError.prototype);
}
Expand Down
2 changes: 1 addition & 1 deletion app/client/src/utils/crypto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default class Crypto {
const input = forge.util.createBuffer(data);
const decipher = forge.cipher.createDecipher('AES-CBC', secretKey);
decipher.start({ iv });
decipher.update(input); // input should be a strng here
decipher.update(input); // input should be a string here
decipher.finish();
const decryptedPayload = decipher.output.toString();
resolve(decryptedPayload);
Expand Down
2 changes: 1 addition & 1 deletion app/components/StepsOfStepper/ScanQRStep.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ const ScanQRStep: React.FC = () => {
</div>
<div style={{ marginBottom: '10px' }}>
<Text className="bp3-text-muted">
or type the following address manualy in browser address bar on any
or type the following address manually in browser address bar on any
device:
</Text>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ exports[`should match exact snapshot on each step 1`] = `
<div
className="bp3-text-muted"
>
or type the following address manualy in browser address bar on any device:
or type the following address manually in browser address bar on any device:
</div>
</Blueprint3.Text>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ exports[`<ScanQRStep /> when rendered should match exact snapshot 1`] = `
ellipsize={false}
tagName="div"
>
or type the following address manualy in browser address bar on any device:
or type the following address manually in browser address bar on any device:
</Blueprint3.Text>
</div>
<Blueprint3.Tooltip
Expand Down
2 changes: 1 addition & 1 deletion app/containers/__snapshots__/DeskreenStepper.spec.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1199,7 +1199,7 @@ exports[`should match exact snapshot 1`] = `
<div
className="bp3-text-muted"
>
or type the following address manualy in browser address bar on any device:
or type the following address manually in browser address bar on any device:
</div>
</Blueprint3.Text>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/containers/__snapshots__/HomePage.spec.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2121,7 +2121,7 @@ exports[`should match exact snapshot 1`] = `
<div
className="bp3-text-muted"
>
or type the following address manualy in browser address bar on any device:
or type the following address manually in browser address bar on any device:
</div>
</Blueprint3.Text>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/features/ConnectedDevicesService/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ describe('ConnectedDevicesService tests', () => {
});

describe('when .setPendingConnectionDevice() was called', () => {
it('should set passed device as pendingConnectionDevice adn call .emitPendingConnectionDeviceConnected', () => {
it('should set passed device as pendingConnectionDevice and call .emitPendingConnectionDeviceConnected', () => {
service.emitPendingConnectionDeviceConnected = jest.fn();

service.setPendingConnectionDevice(testDevice);
Expand Down
2 changes: 1 addition & 1 deletion app/features/PeerConnection/createDesktopCapturerStream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default async function createDesktopCapturerStream(
);
peerConnection.localStream = stream;
} else {
// when souce is app window
// when source is app window
const stream = await getDesktopSourceStreamBySourceID(sourceID);
peerConnection.localStream = stream;
}
Expand Down
6 changes: 3 additions & 3 deletions app/features/SharingSessionService/SharingSession.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ describe('SharingSession unit tests', () => {
expect(sharingSession.statusChangeListeners.length).toBe(1);
});

describe('when .peerConnectionHelperRenderer.webContents.on(did-finish-load event occured', () => {
describe('when .peerConnectionHelperRenderer.webContents.on(did-finish-load event occurred', () => {
it('should call .peerConnectionHelperRenderer?.webContents.send( with proper parameters', () => {
const callback =
// @ts-ignore
Expand All @@ -105,7 +105,7 @@ describe('SharingSession unit tests', () => {
});
});

describe('when .peerConnectionHelperRenderer.webContents.on("ipc-message" event occured on "peer-connected" channel and when onDeviceConnectedCallback is defined', () => {
describe('when .peerConnectionHelperRenderer.webContents.on("ipc-message" event occurred on "peer-connected" channel and when onDeviceConnectedCallback is defined', () => {
it('should call .onDeviceConnectedCallback(data) with proper data', () => {
const testData = 'alsi33i223';
const testCallback = jest.fn();
Expand All @@ -121,7 +121,7 @@ describe('SharingSession unit tests', () => {
});
});

describe('when .peerConnectionHelperRenderer.webContents.on("ipc-message" event occured NOT on "peer-connected" channel or when .onDeviceConnectedCallback is UNdefined', () => {
describe('when .peerConnectionHelperRenderer.webContents.on("ipc-message" event occurred NOT on "peer-connected" channel or when .onDeviceConnectedCallback is UNdefined', () => {
it('should call .onDeviceConnectedCallback()', () => {
const testData = 'alsi33i223';
const testCallback = jest.fn();
Expand Down
4 changes: 2 additions & 2 deletions app/features/SharingSessionService/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import ConnectedDevicesService from '../ConnectedDevicesService';
import PeerConnectionHelperRendererService from '../PeerConnectionHelperRendererService';

// this may look as an ugly mock, but hey, this works! and don't forget that it is a unit test
// why do we make it like that ? bacuse jest doesnt allow ex.
// duplicated __mock__/electron in different subfolders of the project, so.. better do mainual mock in a test file itself
// why do we make it like that ? because jest doesn't allow ex.
// duplicated __mock__/electron in different subfolders of the project, so.. better do manual mock in a test file itself
// jest bug reference on duplicated mocks found: https://github.com/facebook/jest/issues/2070
// it is a bad design of jest itself by default, so this is the best workaround, simply by making manual mock in this way:
jest.mock('../PeerConnectionHelperRendererService', () => {
Expand Down
Loading

0 comments on commit 13d44a2

Please sign in to comment.