From 18e2b8a31391c657c6519aa6f811687c40700806 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 25 Nov 2022 01:14:43 -0500 Subject: [PATCH 01/22] spelling: account Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../notification/notification.component.scss | 12 ++++++------ .../notifications/notifications.component.scss | 6 +++--- src/app/services/mastodon-wrapper.service.ts | 8 ++++---- src/app/services/mastodon.service.ts | 8 ++++---- 4 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/app/components/floating-column/manage-account/notifications/notification/notification.component.scss b/src/app/components/floating-column/manage-account/notifications/notification/notification.component.scss index c928bf96..d4ed666f 100644 --- a/src/app/components/floating-column/manage-account/notifications/notification/notification.component.scss +++ b/src/app/components/floating-column/manage-account/notifications/notification/notification.component.scss @@ -46,7 +46,7 @@ color: $boost-color; } -$acccount-info-left: 70px; +$account-info-left: 70px; .follow-account { padding: 5px; height: 60px; @@ -67,7 +67,7 @@ $acccount-info-left: 70px; &__display-name { position: absolute; top: 7px; - left: $acccount-info-left; + left: $account-info-left; color: whitesmoke; } @@ -78,7 +78,7 @@ $acccount-info-left: 70px; &__acct { position: absolute; top: 27px; - left: $acccount-info-left; + left: $account-info-left; font-size: 13px; color: $status-links-color; @@ -86,13 +86,13 @@ $acccount-info-left: 70px; overflow: hidden; text-overflow: ellipsis; - width: calc(100% - #{$acccount-info-left}); + width: calc(100% - #{$account-info-left}); } } .follow_request { - width: calc(100% - #{$acccount-info-left}); - margin-left: $acccount-info-left; + width: calc(100% - #{$account-info-left}); + margin-left: $account-info-left; &__link { display: inline-block; diff --git a/src/app/components/floating-column/manage-account/notifications/notifications.component.scss b/src/app/components/floating-column/manage-account/notifications/notifications.component.scss index 3b0f7093..4d46d673 100644 --- a/src/app/components/floating-column/manage-account/notifications/notifications.component.scss +++ b/src/app/components/floating-column/manage-account/notifications/notifications.component.scss @@ -69,11 +69,11 @@ // border-radius: 2px; // } -// $acccount-info-left: 70px; +// $account-info-left: 70px; // &__display-name { // position: absolute; // top: 7px; -// left: $acccount-info-left; +// left: $account-info-left; // color: whitesmoke; // } @@ -84,7 +84,7 @@ // &__acct { // position: absolute; // top: 27px; -// left: $acccount-info-left; +// left: $account-info-left; // font-size: 13px; // color: $status-links-color; // } diff --git a/src/app/services/mastodon-wrapper.service.ts b/src/app/services/mastodon-wrapper.service.ts index 63e0b689..23b36d39 100644 --- a/src/app/services/mastodon-wrapper.service.ts +++ b/src/app/services/mastodon-wrapper.service.ts @@ -344,17 +344,17 @@ export class MastodonWrapperService { }); } - mute(account: AccountInfo, accounId: number): Promise { + mute(account: AccountInfo, accountId: number): Promise { return this.refreshAccountIfNeeded(account) .then((refreshedAccount: AccountInfo) => { - return this.mastodonService.mute(refreshedAccount, accounId); + return this.mastodonService.mute(refreshedAccount, accountId); }); } - block(account: AccountInfo, accounId: number): Promise { + block(account: AccountInfo, accountId: number): Promise { return this.refreshAccountIfNeeded(account) .then((refreshedAccount: AccountInfo) => { - return this.mastodonService.block(refreshedAccount, accounId); + return this.mastodonService.block(refreshedAccount, accountId); }); } diff --git a/src/app/services/mastodon.service.ts b/src/app/services/mastodon.service.ts index 4c5c7a3f..314a8938 100644 --- a/src/app/services/mastodon.service.ts +++ b/src/app/services/mastodon.service.ts @@ -414,14 +414,14 @@ export class MastodonService { return this.httpClient.get(route, { headers: headers }).toPromise(); } - mute(account: AccountInfo, accounId: number): Promise { - let route = `https://${account.instance}${this.apiRoutes.mute}`.replace('{0}', accounId.toString()); + mute(account: AccountInfo, accountId: number): Promise { + let route = `https://${account.instance}${this.apiRoutes.mute}`.replace('{0}', accountId.toString()); const headers = new HttpHeaders({ 'Authorization': `Bearer ${account.token.access_token}` }); return this.httpClient.post(route, null, { headers: headers }).toPromise(); } - block(account: AccountInfo, accounId: number): Promise { - let route = `https://${account.instance}${this.apiRoutes.block}`.replace('{0}', accounId.toString()); + block(account: AccountInfo, accountId: number): Promise { + let route = `https://${account.instance}${this.apiRoutes.block}`.replace('{0}', accountId.toString()); const headers = new HttpHeaders({ 'Authorization': `Bearer ${account.token.access_token}` }); return this.httpClient.post(route, null, { headers: headers }).toPromise(); } From 7994686b957cb5025da993c8c1919ba052dd3d19 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 25 Nov 2022 01:14:44 -0500 Subject: [PATCH 02/22] spelling: attachment Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- src/app/app.module.ts | 4 ++-- src/app/components/media-viewer/media-viewer.component.html | 2 +- src/app/components/media-viewer/media-viewer.component.scss | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 582e1230..119d98c0 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -35,7 +35,7 @@ import { StreamsState } from "./states/streams.state"; import { StatusComponent } from "./components/stream/status/status.component"; import { MastodonService } from "./services/mastodon.service"; import { MastodonWrapperService } from "./services/mastodon-wrapper.service"; -import { AttachementsComponent } from './components/stream/status/attachements/attachements.component'; +import { AttachementsComponent } from './components/stream/status/attachments/attachments.component'; import { SettingsComponent } from './components/floating-column/settings/settings.component'; import { AddNewAccountComponent } from './components/floating-column/add-new-account/add-new-account.component'; import { SearchComponent } from './components/floating-column/search/search.component'; @@ -82,7 +82,7 @@ import { NotificationComponent } from './components/floating-column/manage-accou import { ServiceWorkerModule } from '@angular/service-worker'; import { environment } from '../environments/environment'; import { BookmarksComponent } from './components/floating-column/manage-account/bookmarks/bookmarks.component'; -import { AttachementImageComponent } from './components/stream/status/attachements/attachement-image/attachement-image.component'; +import { AttachementImageComponent } from './components/stream/status/attachments/attachment-image/attachment-image.component'; import { EnsureHttpsPipe } from './pipes/ensure-https.pipe'; import { UserFollowsComponent } from './components/stream/user-follows/user-follows.component'; import { AccountComponent } from './components/common/account/account.component'; diff --git a/src/app/components/media-viewer/media-viewer.component.html b/src/app/components/media-viewer/media-viewer.component.html index 47210c4b..1f4685d6 100644 --- a/src/app/components/media-viewer/media-viewer.component.html +++ b/src/app/components/media-viewer/media-viewer.component.html @@ -15,7 +15,7 @@ -
diff --git a/src/app/components/media-viewer/media-viewer.component.scss b/src/app/components/media-viewer/media-viewer.component.scss index 7c866d39..077c8184 100644 --- a/src/app/components/media-viewer/media-viewer.component.scss +++ b/src/app/components/media-viewer/media-viewer.component.scss @@ -61,7 +61,7 @@ padding: 10px; } - &__attachement { + &__attachment { // max-width: 100%; // height: 100vh; } From 77805be17e5c8087605756f56cb350333fa281ee Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 25 Nov 2022 01:23:32 -0500 Subject: [PATCH 03/22] spelling: attachments Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../attachement-image/attachement-image.component.html | 0 .../attachement-image/attachement-image.component.scss | 0 .../attachement-image/attachement-image.component.spec.ts | 0 .../attachement-image/attachement-image.component.ts | 0 .../{attachements => attachments}/attachements.component.html | 0 .../{attachements => attachments}/attachements.component.scss | 0 .../{attachements => attachments}/attachements.component.spec.ts | 0 .../{attachements => attachments}/attachements.component.ts | 0 8 files changed, 0 insertions(+), 0 deletions(-) rename src/app/components/stream/status/{attachements => attachments}/attachement-image/attachement-image.component.html (100%) rename src/app/components/stream/status/{attachements => attachments}/attachement-image/attachement-image.component.scss (100%) rename src/app/components/stream/status/{attachements => attachments}/attachement-image/attachement-image.component.spec.ts (100%) rename src/app/components/stream/status/{attachements => attachments}/attachement-image/attachement-image.component.ts (100%) rename src/app/components/stream/status/{attachements => attachments}/attachements.component.html (100%) rename src/app/components/stream/status/{attachements => attachments}/attachements.component.scss (100%) rename src/app/components/stream/status/{attachements => attachments}/attachements.component.spec.ts (100%) rename src/app/components/stream/status/{attachements => attachments}/attachements.component.ts (100%) diff --git a/src/app/components/stream/status/attachements/attachement-image/attachement-image.component.html b/src/app/components/stream/status/attachments/attachement-image/attachement-image.component.html similarity index 100% rename from src/app/components/stream/status/attachements/attachement-image/attachement-image.component.html rename to src/app/components/stream/status/attachments/attachement-image/attachement-image.component.html diff --git a/src/app/components/stream/status/attachements/attachement-image/attachement-image.component.scss b/src/app/components/stream/status/attachments/attachement-image/attachement-image.component.scss similarity index 100% rename from src/app/components/stream/status/attachements/attachement-image/attachement-image.component.scss rename to src/app/components/stream/status/attachments/attachement-image/attachement-image.component.scss diff --git a/src/app/components/stream/status/attachements/attachement-image/attachement-image.component.spec.ts b/src/app/components/stream/status/attachments/attachement-image/attachement-image.component.spec.ts similarity index 100% rename from src/app/components/stream/status/attachements/attachement-image/attachement-image.component.spec.ts rename to src/app/components/stream/status/attachments/attachement-image/attachement-image.component.spec.ts diff --git a/src/app/components/stream/status/attachements/attachement-image/attachement-image.component.ts b/src/app/components/stream/status/attachments/attachement-image/attachement-image.component.ts similarity index 100% rename from src/app/components/stream/status/attachements/attachement-image/attachement-image.component.ts rename to src/app/components/stream/status/attachments/attachement-image/attachement-image.component.ts diff --git a/src/app/components/stream/status/attachements/attachements.component.html b/src/app/components/stream/status/attachments/attachements.component.html similarity index 100% rename from src/app/components/stream/status/attachements/attachements.component.html rename to src/app/components/stream/status/attachments/attachements.component.html diff --git a/src/app/components/stream/status/attachements/attachements.component.scss b/src/app/components/stream/status/attachments/attachements.component.scss similarity index 100% rename from src/app/components/stream/status/attachements/attachements.component.scss rename to src/app/components/stream/status/attachments/attachements.component.scss diff --git a/src/app/components/stream/status/attachements/attachements.component.spec.ts b/src/app/components/stream/status/attachments/attachements.component.spec.ts similarity index 100% rename from src/app/components/stream/status/attachements/attachements.component.spec.ts rename to src/app/components/stream/status/attachments/attachements.component.spec.ts diff --git a/src/app/components/stream/status/attachements/attachements.component.ts b/src/app/components/stream/status/attachments/attachements.component.ts similarity index 100% rename from src/app/components/stream/status/attachements/attachements.component.ts rename to src/app/components/stream/status/attachments/attachements.component.ts From a45acddf3f56da89c26f7331d28772c4a93a39ef Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 25 Nov 2022 01:14:44 -0500 Subject: [PATCH 04/22] spelling: cleaning Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../floating-column/settings/settings.component.html | 6 +++--- .../floating-column/settings/settings.component.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/app/components/floating-column/settings/settings.component.html b/src/app/components/floating-column/settings/settings.component.html index 16019697..8d79b2f0 100644 --- a/src/app/components/floating-column/settings/settings.component.html +++ b/src/app/components/floating-column/settings/settings.component.html @@ -190,15 +190,15 @@

RESET

If you run into bugs or want to clear all stored Sengi data, please procede:

-
+ Clear all local data - Confirm Clear All - Cancel diff --git a/src/app/components/floating-column/settings/settings.component.ts b/src/app/components/floating-column/settings/settings.component.ts index 7c364388..34f46c7a 100644 --- a/src/app/components/floating-column/settings/settings.component.ts +++ b/src/app/components/floating-column/settings/settings.component.ts @@ -269,9 +269,9 @@ export class SettingsComponent implements OnInit { this.settingsService.saveSettings(settings); } - isCleanningAll: boolean = false; + isCleaningAll: boolean = false; startClearAllLocalData(): boolean { - this.isCleanningAll = !this.isCleanningAll; + this.isCleaningAll = !this.isCleaningAll; return false; } @@ -282,7 +282,7 @@ export class SettingsComponent implements OnInit { } cancelClearAll(): boolean { - this.isCleanningAll = false; + this.isCleaningAll = false; return false; } From b9dfc7bc2614d559a712e1077bde39043b79445d Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 25 Nov 2022 01:14:44 -0500 Subject: [PATCH 05/22] spelling: completely Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../floating-column/settings/settings.component.ts | 6 +++--- src/app/services/tools.service.ts | 6 +++--- src/app/states/settings.state.ts | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/app/components/floating-column/settings/settings.component.ts b/src/app/components/floating-column/settings/settings.component.ts index 34f46c7a..96a616f6 100644 --- a/src/app/components/floating-column/settings/settings.component.ts +++ b/src/app/components/floating-column/settings/settings.component.ts @@ -110,7 +110,7 @@ export class SettingsComponent implements OnInit { this.contentWarningPolicy = settings.contentWarningPolicy.policy; this.addCwOnContent = settings.contentWarningPolicy.addCwOnContent.join(';'); this.removeCwOnContent = settings.contentWarningPolicy.removeCwOnContent.join(';'); - this.contentHidedCompletely = settings.contentWarningPolicy.hideCompletlyContent.join(';'); + this.contentHidedCompletely = settings.contentWarningPolicy.hideCompletelyContent.join(';'); this.timeLineHeader = settings.timelineHeader; this.timeLineMode = settings.timelineMode; @@ -189,9 +189,9 @@ export class SettingsComponent implements OnInit { } if(hide !== null){ - cwPolicySettings.hideCompletlyContent = this.splitCwValues(hide); + cwPolicySettings.hideCompletelyContent = this.splitCwValues(hide); } else { - cwPolicySettings.hideCompletlyContent = settings.contentWarningPolicy.hideCompletlyContent; + cwPolicySettings.hideCompletelyContent = settings.contentWarningPolicy.hideCompletelyContent; } this.settingsService.saveContentWarningPolicy(cwPolicySettings); diff --git a/src/app/services/tools.service.ts b/src/app/services/tools.service.ts index a6eaa891..2c46d7e4 100644 --- a/src/app/services/tools.service.ts +++ b/src/app/services/tools.service.ts @@ -33,7 +33,7 @@ export class ToolsService { let splittedContent = []; if ((cwPolicy.policy === ContentWarningPolicyEnum.HideAll && cwPolicy.addCwOnContent.length > 0) || (cwPolicy.policy === ContentWarningPolicyEnum.AddOnAllContent && cwPolicy.removeCwOnContent.length > 0) - || (cwPolicy.hideCompletlyContent && cwPolicy.hideCompletlyContent.length > 0)) { + || (cwPolicy.hideCompletelyContent && cwPolicy.hideCompletelyContent.length > 0)) { let parser = new DOMParser(); let dom = parser.parseFromString((status.content + ' ' + status.spoiler_text).replace("
", " ").replace("
", " ").replace(/\n/g, ' '), 'text/html') let contentToParse = dom.body.textContent; @@ -62,8 +62,8 @@ export class ToolsService { } } - if (cwPolicy.hideCompletlyContent && cwPolicy.hideCompletlyContent.length > 0) { - let detected = cwPolicy.hideCompletlyContent.filter(x => splittedContent.find(y => y == x || y == `#${x}`)); + if (cwPolicy.hideCompletelyContent && cwPolicy.hideCompletelyContent.length > 0) { + let detected = cwPolicy.hideCompletelyContent.filter(x => splittedContent.find(y => y == x || y == `#${x}`)); if (detected && detected.length > 0) { hideStatus = true; } diff --git a/src/app/states/settings.state.ts b/src/app/states/settings.state.ts index 89f41a88..f6199ff5 100644 --- a/src/app/states/settings.state.ts +++ b/src/app/states/settings.state.ts @@ -58,7 +58,7 @@ export class ContentWarningPolicy { policy: ContentWarningPolicyEnum = ContentWarningPolicyEnum.None; addCwOnContent: string[] = []; removeCwOnContent: string[] = []; - hideCompletlyContent: string[] = []; + hideCompletelyContent: string[] = []; } export class GlobalSettings { From 76a54ffb7077010c6e17021bac8b244a2f9d8456 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 25 Nov 2022 01:14:45 -0500 Subject: [PATCH 06/22] spelling: count Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../create-status/create-status.component.spec.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/components/create-status/create-status.component.spec.ts b/src/app/components/create-status/create-status.component.spec.ts index 3a438669..67e8e679 100644 --- a/src/app/components/create-status/create-status.component.spec.ts +++ b/src/app/components/create-status/create-status.component.spec.ts @@ -164,7 +164,7 @@ describe('CreateStatusComponent', () => { expect(result.length).toBe(1); }); - it('should cound URL correctly', () => { + it('should count URL correctly', () => { const newLine = String.fromCharCode(13, 10); const status = `qsddq sqd qsd qsdqs dqsd qsd qsd qsd qsd qsd qsd qsd qsd qs dqsd qsd qsd qsd qsd qsddq sqd qsd qsdqs dqsd qsd qsd qsd qsd qsd qsd https://google.com/testqsdqsdqsdqsdqsdqsdqsdqdqsdqsdqsdqsdqs dsqd qsd qsd dsqdqs dqs dqsd qsd qsd qsd qsd qsd qs dqsdsq qsd qsd qs dsqds qqs d dqs dqs dqs dqqsd qsd qsd qsd sqd qsd qsd sqd qds dsqd qsddq sqd qsd qsdqs dqsd qsd qsd qsd qsd qsd qsd qsd qsd qs dqsd qsd qsd qsd qsd qsddq sqd qsd qsdqs dqsd qsd qsd qsd qsd qsd qsd dsqd qsd qsd dsqdqs fqd dsq sq dsq qsd q qsd qsd qs dqs dqs qsd qsd qss sq ss s`; @@ -173,7 +173,7 @@ describe('CreateStatusComponent', () => { expect((component).charCountLeft).toBe(0); }); - it('should cound URL correctly - new lines', () => { + it('should count URL correctly - new lines', () => { const status = `qsddq sqd qsd qsdqs dqsd qsd qsd qsd qsd qsd qsd qsd qsd qs dqsd qsd qsd qsd qsd qsddq sqd qsd qsdqs dqsd qsd qsd qsd qsd qsd qsd\nhttps://google.com/testqsdqsdqsdqsdqsdqsdqsdqdqsdqsdqsdqsdqs\ndsqd qsd qsd dsqdqs dqs dqsd qsd qsd qsd qsd qsd qs dqsdsq qsd qsd qs dsqds qqs d dqs dqs dqs dqqsd qsd qsd qsd sqd qsd qsd sqd qds dsqd qsddq sqd qsd qsdqs dqsd qsd qsd qsd qsd qsd qsd qsd qsd qs dqsd qsd qsd qsd qsd qsddq sqd qsd qsdqs dqsd qsd qsd qsd qsd qsd qsd dsqd qsd qsd dsqdqs fqd dsq sq dsq qsd q qsd qsd qs dqs dqs qsd qsd qss sq ss s`; (component).maxCharLength = 500; @@ -181,7 +181,7 @@ describe('CreateStatusComponent', () => { expect((component).charCountLeft).toBe(0); }); - it('should cound URL correctly - dual post', () => { + it('should count URL correctly - dual post', () => { const status = `qsddq sqd qsd qsdqs dqsd qsd qsd qsd qsd qsd qsd qsd qsd qs dqsd qsd qsd qsd qsd qsddq sqd qsd qsdqs dqsd qsd qsd qsd qsd qsd qsd https://google.com/testqsdqsdqsdqsdqsdqsdqsdqdqsdqsdqsdqsdqs dsqd qsd qsd dsqdqs dqs dqsd qsd qsd qsd qsd qsd qs dqsdsq qsd qsd qs dsqds qqs d dqs dqs dqs dqqsd qsd qsd qsd sqd qsd qsd sqd qds dsqd qsddq sqd qsd qsdqs dqsd qsd qsd qsd qsd qsd qsd qsd qsd qs dqsd qsd qsd qsd qsd qsddq sqd qsd qsdqs dqsd qsd qsd qsd qsd qsd qsd dsqd qsd qsd dsqdqs fqd dsq sq dsq qsd q qsd qsd qs dqs dqs qsd qsd qss sq ss s dqsd qsd sqd qsqsd qsd qsd qsd qsddq sqd qsd qsdqs dqsd qsd qsd qsd qsd qsd qsd dsqd qsd qsd dsqdqs fqd dsq sq dsq qsd q qsd qsd qs dqs dqs qsd qsd qss sq ss s dqsd qsd sqd qsqsd qsd qsd qsd qsddq sqd qsd qsdqs dqsd qsd qsd qsd qsd qsd qsd dsqd qsd qsd dsqdqs fqd dsq sq dsq qsd q qsd qsd qs dqs dqs qsd qsd qss sq ss s dqsd qsd sqd qsqsd qsd qsd qsd qsddq sqd qsd qsdqs dqsd qsd qsd qsd qsd qsd qsd dsqd qsd qsd dsqdqs fqd dsq sq dsq qsd q qsd qsd qs dqs dqs qsd qsd qss sq ss s dqsd qsd sqd qsqsd qsd qsdd dqsd qs s`; (component).maxCharLength = 512; @@ -190,7 +190,7 @@ describe('CreateStatusComponent', () => { expect((component).postCounts).toBe(2); }); - it('should cound URL correctly - triple post', () => { + it('should count URL correctly - triple post', () => { const status = `qsddq sqd qsd qsdqs dqsd qsd qsd qsd qsd qsd qsd qsd qsd qs dqsd qsd qsd qsd qsd qsddq sqd qsd qsdqs dqsd qsd qsd qsd qsd qsd qsd https://google.com/testqsdqsdqsdqsdqsdqsdqsdqdqsdqsdqsdqsdqs dsqd qsd qsd dsqdqs dqs dqsd qsd qsd qsd qsd qsd qs dqsdsq qsd qsd qs dsqds qqs d dqs dqs dqs dqqsd qsd qsd qsd sqd qsd qsd sqd qds dsqd qsddq sqd qsd qsdqs dqsd qsd qsd qsd qsd qsd qsd qsd qsd qs dqsd qsd qsd qsd qsd qsddq sqd qsd qsdqs dqsd qsd qsd qsd qsd qsd qsd dsqd qsd qsd dsqdqs fqd dsq sq dsq qsd q qsd qsd qs dqs dqs qsd qsd qss sq ss s dqsd qsd sqd qsqsd qsd qsd qsd qsddq sqd qsd qsdqs dqsd qsd qsd qsd qsd qsd qsd dsqd qsd qsd dsqdqs fqd dsq sq dsq qsd q qsd qsd qs dqs dqs qsd qsd qss sq ss s dqsd qsd sqd qsqsd qsd qsd qsd qsddq sqd qsd qsdqs dqsd qsd qsd qsd qsd qsd qsd dsqd qsd qsd dsqdqs fqd dsq sq dsq qsd q qsd qsd qs dqs dqs qsd qsd qss sq ss s dqsd qsd sqd qsqsd qsd qsd qsd qsddq sqd qsd qsdqs dqsd qsd qsd qsd qsd qsd qsd dsqd qsd qsd dsqdqs fqd dsq sq dsq qsd q qsd qsd qs dqs dqs qsd qsd qss sq ss s dqsd qsd sqd qsqsd qsd qsdd dqsd qs s dsqs sd qsd qsd qsd qsd qsd qsd qsd qsd qsd qsd qsd qsd qsqs dqs qsd qsd qss sq ss s dqsd qsd sqd qsqsd qsd qsdd dqsd qs s dsqs sd qsd qsd qsd qsd qsd qsd qsd qsd qsd qsd qsd qsd qsqs dqs qsd qsd qss sq ss s dqsd qsd sqd qsqsd qsd qsdd dqsd qs s dsqs sd qsd qsd qsd qsd qsd qsd qsd qsd qsd qsd qsd qsd qsqs dqs qsd qsd qss sq ss s dqsd qsd sqd qsqsd qsd qsdd dqsd qs s dsqs sd qsd qsd qsd qsd qsd qsd qsd qsd qsd qsd qsd qsd qs qsd qsd qsd qsd sqd qsd qsd sqd qsd qsd qsd qsd qsd qsd qsd qsd qsd qsd sd`; (component).maxCharLength = 512; From 5fbd8a4f6880c110825089b48804f8947f8c466c Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 25 Nov 2022 01:14:45 -0500 Subject: [PATCH 07/22] spelling: customization Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- src/sass/_variables.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sass/_variables.scss b/src/sass/_variables.scss index 1e80c59d..89e55372 100644 --- a/src/sass/_variables.scss +++ b/src/sass/_variables.scss @@ -35,7 +35,7 @@ $avatar-column-space: 70px; $stream-header-height: 40px; -//Bootstrap cuistomization +//Bootstrap customization $enable-rounded: false; $separator-color:$color-primary; From 69e1b1bf803a336ce44f0bbd69ce46bde9dfb696 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 25 Nov 2022 01:14:46 -0500 Subject: [PATCH 08/22] spelling: deactivated Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- src/app/app.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 777a2efd..7504ceb4 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -160,8 +160,8 @@ export class AppComponent implements OnInit, OnDestroy { enhancedTutorialActive: boolean; enhancedTutorialVisible: boolean; private checkEnhancedTutorial() { - let enhancedTutorialDesactivated = JSON.parse(localStorage.getItem('tutorial')); - if (!this.floatingColumnActive && !this.tutorialActive && !enhancedTutorialDesactivated) { + let enhancedTutorialDeactivated = JSON.parse(localStorage.getItem('tutorial')); + if (!this.floatingColumnActive && !this.tutorialActive && !enhancedTutorialDeactivated) { setTimeout(() => { this.enhancedTutorialActive = true; setTimeout(() => { From d7a5cd177dccccfdb822e01d4e420f1634abd6bf Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 24 Nov 2022 23:00:20 -0500 Subject: [PATCH 09/22] spelling: github Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../thankyou-tutorial/thankyou-tutorial.component.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/tutorial-enhanced/thankyou-tutorial/thankyou-tutorial.component.html b/src/app/components/tutorial-enhanced/thankyou-tutorial/thankyou-tutorial.component.html index 1e014e8b..6c8ce64d 100644 --- a/src/app/components/tutorial-enhanced/thankyou-tutorial/thankyou-tutorial.component.html +++ b/src/app/components/tutorial-enhanced/thankyou-tutorial/thankyou-tutorial.component.html @@ -27,7 +27,7 @@

Other ressources

Official page
- Github + GitHub Repository
Maintainer's dev blog
From 4f8c0eef94660cc47e7cce165d0d07d6a74781fd Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 25 Nov 2022 01:14:46 -0500 Subject: [PATCH 10/22] spelling: hashtag Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../status/databinded-text/databinded-text.component.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/stream/status/databinded-text/databinded-text.component.spec.ts b/src/app/components/stream/status/databinded-text/databinded-text.component.spec.ts index f75252f9..1a5af83b 100644 --- a/src/app/components/stream/status/databinded-text/databinded-text.component.spec.ts +++ b/src/app/components/stream/status/databinded-text/databinded-text.component.spec.ts @@ -198,7 +198,7 @@ describe('DatabindedTextComponent', () => { expect(component.processedText).toContain('test '); }); - it('should parse hastag - Pleroma', () => { + it('should parse hashtag - Pleroma', () => { const sample = `

Bla Bla

`; component.text = sample; From 3e9c94f2261c203ff37439d3946038cf05c4b670 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 25 Nov 2022 01:14:46 -0500 Subject: [PATCH 11/22] spelling: notification Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../components/notification-hub/notification-hub.component.ts | 2 +- src/app/services/notification.service.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/components/notification-hub/notification-hub.component.ts b/src/app/components/notification-hub/notification-hub.component.ts index bc1d15c5..f7107ecd 100644 --- a/src/app/components/notification-hub/notification-hub.component.ts +++ b/src/app/components/notification-hub/notification-hub.component.ts @@ -12,7 +12,7 @@ export class NotificationHubComponent implements OnInit { constructor(private notificationService: NotificationService) { } ngOnInit() { - this.notificationService.notifactionStream.subscribe((notification: NotificationData) => { + this.notificationService.notificationStream.subscribe((notification: NotificationData) => { let alreadyExistingNotification = this.notifications.find(x => x.avatar === notification.avatar && x.message === notification.message); if(alreadyExistingNotification){ diff --git a/src/app/services/notification.service.ts b/src/app/services/notification.service.ts index 7ed28448..d2f9035c 100644 --- a/src/app/services/notification.service.ts +++ b/src/app/services/notification.service.ts @@ -10,7 +10,7 @@ import { ToolsService } from './tools.service'; @Injectable() export class NotificationService { public restartNotificationStream = new Subject(); - public notifactionStream = new Subject(); + public notificationStream = new Subject(); public newRespondPostedStream = new Subject(); public hideAccountUrlStream = new Subject(); public deletedStatusStream = new Subject(); @@ -20,7 +20,7 @@ export class NotificationService { public notify(avatar: string, errorCode: number, message: string, isError: boolean) { let newNotification = new NotificationData(avatar, errorCode, message, isError); - this.notifactionStream.next(newNotification); + this.notificationStream.next(newNotification); } public notifyHttpError(err: HttpErrorResponse, account: AccountInfo) { From b0b8b287bb0b6c8066c05b745faed19aa992fa77 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 25 Nov 2022 01:14:47 -0500 Subject: [PATCH 12/22] spelling: occurred Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- src/app/components/stream/status/poll/poll.component.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/stream/status/poll/poll.component.html b/src/app/components/stream/status/poll/poll.component.html index cb487a0f..c81c5787 100644 --- a/src/app/components/stream/status/poll/poll.component.html +++ b/src/app/components/stream/status/poll/poll.component.html @@ -28,6 +28,6 @@
·{{poll.votes_count}} votes·{{poll.voters_count}} people· {{ poll.expires_at | timeLeft | async }}
- Error occured when retrieving the poll + Error occurred when retrieving the poll
\ No newline at end of file From 8464ae2523619d2f22f8bca60c54b28a579c11ba Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 25 Nov 2022 01:14:48 -0500 Subject: [PATCH 13/22] spelling: positioned Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- src/app/components/common/timeline-base.ts | 4 ++-- .../stream/stream-statuses/stream-statuses.component.html | 2 +- .../stream/stream-statuses/stream-statuses.component.ts | 6 +++--- src/app/components/stream/thread/thread.component.ts | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/app/components/common/timeline-base.ts b/src/app/components/common/timeline-base.ts index a4f719ed..17bf5aa7 100644 --- a/src/app/components/common/timeline-base.ts +++ b/src/app/components/common/timeline-base.ts @@ -28,7 +28,7 @@ export abstract class TimelineBase extends BrowseBase { statuses: StatusWrapper[] = []; bufferStream: Status[] = []; protected bufferWasCleared: boolean; - streamPositionnedAtTop: boolean = true; + streamPositionedAtTop: boolean = true; protected isProcessingInfiniteScroll: boolean; protected hideBoosts: boolean; @@ -59,7 +59,7 @@ export abstract class TimelineBase extends BrowseBase { const atBottom = element.scrollHeight <= element.clientHeight + element.scrollTop + 1000; const atTop = element.scrollTop === 0; - this.streamPositionnedAtTop = false; + this.streamPositionedAtTop = false; if (atBottom && !this.isProcessingInfiniteScroll) { this.scrolledToBottom(); } else if (atTop) { diff --git a/src/app/components/stream/stream-statuses/stream-statuses.component.html b/src/app/components/stream/stream-statuses/stream-statuses.component.html index 1c7b949c..537cc3b2 100644 --- a/src/app/components/stream/stream-statuses/stream-statuses.component.html +++ b/src/app/components/stream/stream-statuses/stream-statuses.component.html @@ -6,7 +6,7 @@
+ [class.stream-toots__new-notification--display]="bufferStream && bufferStream.length > 0 && !streamPositionedAtTop">
{{displayError}}
diff --git a/src/app/components/stream/stream-statuses/stream-statuses.component.ts b/src/app/components/stream/stream-statuses/stream-statuses.component.ts index 64d01f45..9909d2e9 100644 --- a/src/app/components/stream/stream-statuses/stream-statuses.component.ts +++ b/src/app/components/stream/stream-statuses/stream-statuses.component.ts @@ -142,7 +142,7 @@ export class StreamStatusesComponent extends TimelineBase { if (update) { if (update.type === EventEnum.update) { if (!this.statuses.find(x => x.status.id == update.status.id)) { - if ((this.streamPositionnedAtTop || this.timelineLoadingMode === TimeLineModeEnum.Continuous) + if ((this.streamPositionedAtTop || this.timelineLoadingMode === TimeLineModeEnum.Continuous) && this.timelineLoadingMode !== TimeLineModeEnum.SlowMode) { if (this.isFiltered(update.status)) { @@ -177,7 +177,7 @@ export class StreamStatusesComponent extends TimelineBase { } protected scrolledToTop() { - this.streamPositionnedAtTop = true; + this.streamPositionedAtTop = true; if (this.timelineLoadingMode !== TimeLineModeEnum.SlowMode) { this.loadBuffer(); @@ -266,7 +266,7 @@ export class StreamStatusesComponent extends TimelineBase { } private checkAndCleanUpStream(): void { - if (this.streamPositionnedAtTop && this.statuses.length > 3 * this.streamingService.nbStatusPerIteration) { + if (this.streamPositionedAtTop && this.statuses.length > 3 * this.streamingService.nbStatusPerIteration) { this.statuses.length = 2 * this.streamingService.nbStatusPerIteration; this.maxReached = false; this.lastCallReachedMax = false; diff --git a/src/app/components/stream/thread/thread.component.ts b/src/app/components/stream/thread/thread.component.ts index 5bb89e22..3e256afc 100644 --- a/src/app/components/stream/thread/thread.component.ts +++ b/src/app/components/stream/thread/thread.component.ts @@ -29,7 +29,7 @@ export class ThreadComponent extends BrowseBase { private remoteStatusFetchingDisabled = false; bufferStream: Status[] = []; //html compatibility only - streamPositionnedAtTop: boolean = true; //html compatibility only + streamPositionedAtTop: boolean = true; //html compatibility only timelineLoadingMode: TimeLineModeEnum = TimeLineModeEnum.OnTop; //html compatibility only private lastThreadEvent: OpenThreadEvent; From 3e90b4ae7aed4bf44a0326ae40934faf7599748c Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 25 Nov 2022 01:14:49 -0500 Subject: [PATCH 14/22] spelling: representation Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../streams-selection-footer.component.html | 4 ++-- .../streams-selection-footer.component.scss | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/components/streams-selection-footer/streams-selection-footer.component.html b/src/app/components/streams-selection-footer/streams-selection-footer.component.html index bf3678a0..0e70e4e5 100644 --- a/src/app/components/streams-selection-footer/streams-selection-footer.component.html +++ b/src/app/components/streams-selection-footer/streams-selection-footer.component.html @@ -1,7 +1,7 @@ \ No newline at end of file diff --git a/src/app/components/streams-selection-footer/streams-selection-footer.component.scss b/src/app/components/streams-selection-footer/streams-selection-footer.component.scss index 3ec46689..066f192f 100644 --- a/src/app/components/streams-selection-footer/streams-selection-footer.component.scss +++ b/src/app/components/streams-selection-footer/streams-selection-footer.component.scss @@ -14,7 +14,7 @@ padding: 4px 5px 0 5px; height: $stream-selector-height; - &__column-reprensentation { + &__column-representation { transition: all .2s; display: inline-block; width: 5px; @@ -27,7 +27,7 @@ } } - &:hover &__column-reprensentation { + &:hover &__column-representation { background-color: $font-link-primary-hover; &--selected { From 6d62c22cbf03f7a71a2931ba76b9b72360489b2f Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 25 Nov 2022 01:14:48 -0500 Subject: [PATCH 15/22] spelling: responding Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- src/app/components/stream/thread/thread.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/components/stream/thread/thread.component.ts b/src/app/components/stream/thread/thread.component.ts index 3e256afc..c4580bf2 100644 --- a/src/app/components/stream/thread/thread.component.ts +++ b/src/app/components/stream/thread/thread.component.ts @@ -82,9 +82,9 @@ export class ThreadComponent extends BrowseBase { this.newPostSub = this.notificationService.newRespondPostedStream.subscribe((replyData: NewReplyData) => { if (replyData) { - const repondingStatus = this.statuses.find(x => x.status.id === replyData.uiStatusId); + const respondingStatus = this.statuses.find(x => x.status.id === replyData.uiStatusId); const responseStatus = replyData.response; - if (repondingStatus && this.statuses[0]) { + if (respondingStatus && this.statuses[0]) { this.statuses.push(responseStatus); } } From 7da1359be78ccf4eb8f8c58fd9673c85137be5f0 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 25 Nov 2022 01:14:49 -0500 Subject: [PATCH 16/22] spelling: sanitization Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../status/databinded-text/databinded-text.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/components/stream/status/databinded-text/databinded-text.component.ts b/src/app/components/stream/status/databinded-text/databinded-text.component.ts index f9fe2ec0..dd756262 100644 --- a/src/app/components/stream/status/databinded-text/databinded-text.component.ts +++ b/src/app/components/stream/status/databinded-text/databinded-text.component.ts @@ -37,15 +37,15 @@ export class DatabindedTextComponent implements OnInit { this.processedText = ''; do { - value = value.replace('@', ''); //Friendica sanitarization + value = value.replace('@', ''); //Friendica sanitization } while (value.includes('@')); do { - value = value.replace('class="mention" rel="nofollow noopener" target="_blank">@', 'class="mention" rel="nofollow noopener" target="_blank">'); //Misskey sanitarization + value = value.replace('class="mention" rel="nofollow noopener" target="_blank">@', 'class="mention" rel="nofollow noopener" target="_blank">'); //Misskey sanitization } while (value.includes('class="mention" rel="nofollow noopener" target="_blank">@')); do { - value = value.replace('@', ''); //Zap sanitarization + value = value.replace('@', ''); //Zap sanitization } while (value.includes('@')); let linksSections = value.split(' Date: Fri, 25 Nov 2022 01:15:57 -0500 Subject: [PATCH 17/22] spelling: split Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- src/app/components/create-status/create-status.component.ts | 4 ++-- .../stream/stream-statuses/stream-statuses.component.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/app/components/create-status/create-status.component.ts b/src/app/components/create-status/create-status.component.ts index 0f3430d5..cdbd78e5 100644 --- a/src/app/components/create-status/create-status.component.ts +++ b/src/app/components/create-status/create-status.component.ts @@ -294,10 +294,10 @@ export class CreateStatusComponent implements OnInit, OnDestroy { const lastChar = status.substr(caretPosition - 1, 1); const lastCharIsSpace = lastChar === ' '; - const splitedStatus = status.split(/(\r\n|\n|\r)/); + const splitStatus = status.split(/(\r\n|\n|\r)/); let offset = 0; let currentSection = ''; - for (let x of splitedStatus) { + for (let x of splitStatus) { const sectionLength = x.length; if (offset + sectionLength >= caretPosition) { currentSection = x; diff --git a/src/app/components/stream/stream-statuses/stream-statuses.component.ts b/src/app/components/stream/stream-statuses/stream-statuses.component.ts index 9909d2e9..a31ecbcd 100644 --- a/src/app/components/stream/stream-statuses/stream-statuses.component.ts +++ b/src/app/components/stream/stream-statuses/stream-statuses.component.ts @@ -118,9 +118,9 @@ export class StreamStatusesComponent extends TimelineBase { this.resetStream(); if (this.userLocked) { - const splitedUserName = streamElement.accountId.split('@'); - const user = splitedUserName[0]; - const instance = splitedUserName[1]; + const splitUserName = streamElement.accountId.split('@'); + const user = splitUserName[0]; + const instance = splitUserName[1]; this.account = this.getRegisteredAccounts().find(x => x.username == user && x.instance == instance); } else { this.account = this.toolsService.getSelectedAccounts()[0]; From 24792f1dcc760f30e78c8caa9da5c523d1058775 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 25 Nov 2022 01:14:50 -0500 Subject: [PATCH 18/22] spelling: subject Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../stream-notifications.component.ts | 2 +- .../stream/stream-statuses/stream-statuses.component.ts | 2 +- src/app/services/streaming.service.ts | 8 ++++---- src/app/services/user-notification.service.ts | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/app/components/stream/stream-notifications/stream-notifications.component.ts b/src/app/components/stream/stream-notifications/stream-notifications.component.ts index 2429eee7..227cfd8c 100644 --- a/src/app/components/stream/stream-notifications/stream-notifications.component.ts +++ b/src/app/components/stream/stream-notifications/stream-notifications.component.ts @@ -143,7 +143,7 @@ export class StreamNotificationsComponent extends BrowseBase { let streamElement = new StreamElement(StreamTypeEnum.personnal, 'activity', this.account.id, null, null, null, this.account.instance); let streaming = this.streamingService.getStreaming(this.account, streamElement); - this.notificationSubscription = streaming.statusUpdateSubjet.subscribe((notification: StatusUpdate) => { + this.notificationSubscription = streaming.statusUpdateSubject.subscribe((notification: StatusUpdate) => { if (notification && notification.type === EventEnum.notification) { let cwPolicy = this.toolsService.checkContentWarning(notification.status); const n = new NotificationWrapper(notification.notification, this.account, cwPolicy.applyCw, cwPolicy.hide); diff --git a/src/app/components/stream/stream-statuses/stream-statuses.component.ts b/src/app/components/stream/stream-statuses/stream-statuses.component.ts index a31ecbcd..b4b52630 100644 --- a/src/app/components/stream/stream-statuses/stream-statuses.component.ts +++ b/src/app/components/stream/stream-statuses/stream-statuses.component.ts @@ -138,7 +138,7 @@ export class StreamStatusesComponent extends TimelineBase { private launchWebsocket(): void { this.websocketStreaming = this.streamingService.getStreaming(this.account, this._streamElement); - this.websocketStreaming.statusUpdateSubjet.subscribe((update: StatusUpdate) => { + this.websocketStreaming.statusUpdateSubject.subscribe((update: StatusUpdate) => { if (update) { if (update.type === EventEnum.update) { if (!this.statuses.find(x => x.status.id == update.status.id)) { diff --git a/src/app/services/streaming.service.ts b/src/app/services/streaming.service.ts index 7076bb1c..e4c89e01 100644 --- a/src/app/services/streaming.service.ts +++ b/src/app/services/streaming.service.ts @@ -23,7 +23,7 @@ export class StreamingService { } export class StreamingWrapper { - statusUpdateSubjet = new BehaviorSubject(null); + statusUpdateSubject = new BehaviorSubject(null); eventSource: WebSocket; private apiRoutes = new ApiRoutes(); private errorClosing: boolean; @@ -101,7 +101,7 @@ export class StreamingWrapper { update.muteSound = soundMuted; this.since_id_notifications = n.id; - this.statusUpdateSubjet.next(update); + this.statusUpdateSubject.next(update); } }) .catch(err => { @@ -124,7 +124,7 @@ export class StreamingWrapper { update.status = s; update.type = EventEnum.update; this.since_id = update.status.id; - this.statusUpdateSubjet.next(update); + this.statusUpdateSubject.next(update); } }) .catch(err => { @@ -159,7 +159,7 @@ export class StreamingWrapper { newUpdate.type = EventEnum.unknow; } - this.statusUpdateSubjet.next(newUpdate); + this.statusUpdateSubject.next(newUpdate); } private getRoute(account: AccountInfo, stream: StreamElement): string { diff --git a/src/app/services/user-notification.service.ts b/src/app/services/user-notification.service.ts index 1c5b3a9a..14ac97c5 100644 --- a/src/app/services/user-notification.service.ts +++ b/src/app/services/user-notification.service.ts @@ -79,7 +79,7 @@ export class UserNotificationService { let streamElement = new StreamElement(StreamTypeEnum.personnal, 'activity', account.id, null, null, null, account.instance); let streaming = this.streamingService.getStreaming(account, streamElement); - streaming.statusUpdateSubjet.subscribe((notification: StatusUpdate) => { + streaming.statusUpdateSubject.subscribe((notification: StatusUpdate) => { if (notification && notification.type === EventEnum.notification) { this.processNewUpdate(account, notification); } From 01ebb7ccf7a396d6407f804ddba76e20f66780d7 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 25 Nov 2022 01:14:51 -0500 Subject: [PATCH 19/22] spelling: toggle Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../create-status/poll-editor/poll-editor.component.html | 2 +- .../create-status/poll-editor/poll-editor.component.ts | 2 +- .../poll-editor/poll-entry/poll-entry.component.html | 2 +- .../poll-editor/poll-entry/poll-entry.component.ts | 6 +++--- .../left-side-bar/account-icon/account-icon.component.html | 2 +- .../left-side-bar/account-icon/account-icon.component.ts | 6 +++--- .../components/left-side-bar/left-side-bar.component.html | 2 +- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/app/components/create-status/poll-editor/poll-editor.component.html b/src/app/components/create-status/poll-editor/poll-editor.component.html index 88e83855..799f9a36 100644 --- a/src/app/components/create-status/poll-editor/poll-editor.component.html +++ b/src/app/components/create-status/poll-editor/poll-editor.component.html @@ -2,7 +2,7 @@
+ (toggleMultiEvent)="toggleMulti()">
diff --git a/src/app/components/create-status/poll-editor/poll-editor.component.ts b/src/app/components/create-status/poll-editor/poll-editor.component.ts index 36f230bf..f107129d 100644 --- a/src/app/components/create-status/poll-editor/poll-editor.component.ts +++ b/src/app/components/create-status/poll-editor/poll-editor.component.ts @@ -54,7 +54,7 @@ export class PollEditorComponent implements OnInit { this.entries = this.entries.filter(x => x.id != entry.id); } - toogleMulti() { + toggleMulti() { this.multiSelected = !this.multiSelected; this.entries.forEach((e: PollEntry) => { e.isMulti = this.multiSelected; diff --git a/src/app/components/create-status/poll-editor/poll-entry/poll-entry.component.html b/src/app/components/create-status/poll-editor/poll-entry/poll-entry.component.html index 8ffeb4c1..686ee0ec 100644 --- a/src/app/components/create-status/poll-editor/poll-entry/poll-entry.component.html +++ b/src/app/components/create-status/poll-editor/poll-entry/poll-entry.component.html @@ -5,7 +5,7 @@
- + diff --git a/src/app/components/create-status/poll-editor/poll-entry/poll-entry.component.ts b/src/app/components/create-status/poll-editor/poll-entry/poll-entry.component.ts index d39d5708..f53503d4 100644 --- a/src/app/components/create-status/poll-editor/poll-entry/poll-entry.component.ts +++ b/src/app/components/create-status/poll-editor/poll-entry/poll-entry.component.ts @@ -12,7 +12,7 @@ export class PollEntryComponent implements OnInit { @Input() entry: PollEntry; @Output() removeEvent = new EventEmitter(); - @Output() toogleMultiEvent = new EventEmitter(); + @Output() toggleMultiEvent = new EventEmitter(); constructor() { } @@ -24,8 +24,8 @@ export class PollEntryComponent implements OnInit { return false; } - toogleMulti(): boolean { - this.toogleMultiEvent.next(); + toggleMulti(): boolean { + this.toggleMultiEvent.next(); return false; } diff --git a/src/app/components/left-side-bar/account-icon/account-icon.component.html b/src/app/components/left-side-bar/account-icon/account-icon.component.html index b0f78ef5..e7afa5ce 100644 --- a/src/app/components/left-side-bar/account-icon/account-icon.component.html +++ b/src/app/components/left-side-bar/account-icon/account-icon.component.html @@ -1,5 +1,5 @@ diff --git a/src/app/components/left-side-bar/account-icon/account-icon.component.ts b/src/app/components/left-side-bar/account-icon/account-icon.component.ts index c1f5c597..72bf15a6 100644 --- a/src/app/components/left-side-bar/account-icon/account-icon.component.ts +++ b/src/app/components/left-side-bar/account-icon/account-icon.component.ts @@ -13,7 +13,7 @@ import { NotificationService } from '../../../services/notification.service'; }) export class AccountIconComponent implements OnInit { @Input() account: AccountWithNotificationWrapper; - @Output() toogleAccountNotify = new EventEmitter(); + @Output() toggleAccountNotify = new EventEmitter(); @Output() openMenuNotify = new EventEmitter(); private promiseGetUser: Promise; @@ -26,8 +26,8 @@ export class AccountIconComponent implements OnInit { this.promiseGetUser = this.mastodonTools.findAccount(this.account.info, `@${this.account.info.username}@${this.account.info.instance}`); } - toogleAccount(): boolean { - this.toogleAccountNotify.emit(this.account); + toggleAccount(): boolean { + this.toggleAccountNotify.emit(this.account); return false; } diff --git a/src/app/components/left-side-bar/left-side-bar.component.html b/src/app/components/left-side-bar/left-side-bar.component.html index 5b0b0361..1a6a87f6 100644 --- a/src/app/components/left-side-bar/left-side-bar.component.html +++ b/src/app/components/left-side-bar/left-side-bar.component.html @@ -9,7 +9,7 @@
-
From 8a57dc52e56ee99478fdff9adf0c2be44b541d03 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 25 Nov 2022 01:14:51 -0500 Subject: [PATCH 20/22] spelling: transform Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../create-status.component.spec.ts | 16 ++++++++-------- .../create-status/create-status.component.ts | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/app/components/create-status/create-status.component.spec.ts b/src/app/components/create-status/create-status.component.spec.ts index 67e8e679..7277ea10 100644 --- a/src/app/components/create-status/create-status.component.spec.ts +++ b/src/app/components/create-status/create-status.component.spec.ts @@ -231,31 +231,31 @@ describe('CreateStatusComponent', () => { expect(result[1]).toBe('http://www.joelonsoftware.com/2003/10/08/the-absolute-minimum-every-software-developer-absolutely-positively-must-know-about-unicode-and-character-sets-no-excuses/'); }); - it('should tranform external mentions properly - mastodon', () => { + it('should transform external mentions properly - mastodon', () => { let mastodonMention = '

test @sengi_app qsdqds qsd qsd qsd q @test @no

'; - const result = (component).tranformHtmlRepliesToReplies(mastodonMention); + const result = (component).transformHtmlRepliesToReplies(mastodonMention); expect(result).toBe('

test @sengi_app@mastodon.social qsdqds qsd qsd qsd q @test@mastodon.social @no

'); }); - it('should tranform external mentions properly - mastodon 2', () => { + it('should transform external mentions properly - mastodon 2', () => { let mastodonMention = '

test @sengi_app qsdqds qsd qsd qsd q @test @no

'; - const result = (component).tranformHtmlRepliesToReplies(mastodonMention); + const result = (component).transformHtmlRepliesToReplies(mastodonMention); expect(result).toBe('

test @sengi_app@pleroma.site qsdqds qsd qsd qsd q @test@pleroma.site @no

'); }); - it('should tranform external mentions properly - pleroma', () => { + it('should transform external mentions properly - pleroma', () => { let pleromaMention = '

test @sengi_app qsdqds qsd qsd qsd q @test @no

'; - const result = (component).tranformHtmlRepliesToReplies(pleromaMention); + const result = (component).transformHtmlRepliesToReplies(pleromaMention); expect(result).toBe('

test @sengi_app@mastodon.social qsdqds qsd qsd qsd q @test@mastodon.social @no

'); }); - it('should tranform external mentions properly - pleroma 2', () => { + it('should transform external mentions properly - pleroma 2', () => { let pleromaMention = '

test @sengi_app qsdqds qsd qsd qsd q @test @no

'; - const result = (component).tranformHtmlRepliesToReplies(pleromaMention); + const result = (component).transformHtmlRepliesToReplies(pleromaMention); expect(result).toBe('

test @sengi_app@pleroma.site qsdqds qsd qsd qsd q @test@pleroma.site @no

'); }); diff --git a/src/app/components/create-status/create-status.component.ts b/src/app/components/create-status/create-status.component.ts index cdbd78e5..e02ed85b 100644 --- a/src/app/components/create-status/create-status.component.ts +++ b/src/app/components/create-status/create-status.component.ts @@ -98,7 +98,7 @@ export class CreateStatusComponent implements OnInit, OnDestroy { const newLine = String.fromCharCode(13, 10); let content = value.status.content; - content = this.tranformHtmlRepliesToReplies(content); + content = this.transformHtmlRepliesToReplies(content); while (content.includes('

') || content.includes('

') || content.includes('
') || content.includes('
') || content.includes('
')) { content = content.replace('

', '').replace('

', newLine + newLine).replace('
', newLine).replace('
', newLine).replace('
', newLine); @@ -930,7 +930,7 @@ export class CreateStatusComponent implements OnInit, OnDestroy { return false; } - private tranformHtmlRepliesToReplies(data: string): string { + private transformHtmlRepliesToReplies(data: string): string { const mastodonMentionRegex = /@([a-zA-Z0-9_-]{0,255})<\/span><\/a><\/span>/gmi; const pleromaMentionRegex = /@([a-zA-Z0-9_-]{0,255})<\/span><\/a><\/span>/gmi; From 9ef30878811954de7b17672f4efedd110e624fa7 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 25 Nov 2022 01:14:51 -0500 Subject: [PATCH 21/22] spelling: truncated Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../create-status/create-status.component.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/app/components/create-status/create-status.component.ts b/src/app/components/create-status/create-status.component.ts index e02ed85b..674b0393 100644 --- a/src/app/components/create-status/create-status.component.ts +++ b/src/app/components/create-status/create-status.component.ts @@ -640,7 +640,7 @@ export class CreateStatusComponent implements OnInit, OnDestroy { let mentionExtraChars = this.getMentionExtraChars(status); let urlExtraChar = this.getLinksExtraChars(status); - let trucatedStatus = `${status}`; + let truncatedStatus = `${status}`; let results = []; let aggregateMention = ''; @@ -652,23 +652,23 @@ export class CreateStatusComponent implements OnInit, OnDestroy { let currentMaxCharLength = this.maxCharLength + mentionExtraChars + urlExtraChar - this.getCwLength(); let maxChars = currentMaxCharLength - 6; - while (trucatedStatus.length > currentMaxCharLength) { - const nextIndex = trucatedStatus.lastIndexOf(' ', maxChars); + while (truncatedStatus.length > currentMaxCharLength) { + const nextIndex = truncatedStatus.lastIndexOf(' ', maxChars); if(nextIndex === -1){ break; } - results.push(trucatedStatus.substr(0, nextIndex) + ' (...)'); - trucatedStatus = aggregateMention + trucatedStatus.substr(nextIndex + 1); + results.push(truncatedStatus.substr(0, nextIndex) + ' (...)'); + truncatedStatus = aggregateMention + truncatedStatus.substr(nextIndex + 1); // Refresh max - let mentionExtraChars = this.getMentionExtraChars(trucatedStatus); - let urlExtraChar = this.getLinksExtraChars(trucatedStatus); + let mentionExtraChars = this.getMentionExtraChars(truncatedStatus); + let urlExtraChar = this.getLinksExtraChars(truncatedStatus); currentMaxCharLength = this.maxCharLength + mentionExtraChars + urlExtraChar - this.getCwLength(); maxChars = currentMaxCharLength - 6; } - results.push(trucatedStatus); + results.push(truncatedStatus); return results; } From 8373b1d529ac8dbd35d4f762b47e02058647f562 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 25 Nov 2022 01:14:52 -0500 Subject: [PATCH 22/22] spelling: unknown Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../add-new-account/add-new-account.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/floating-column/add-new-account/add-new-account.component.ts b/src/app/components/floating-column/add-new-account/add-new-account.component.ts index 4d5ef91e..1d1cd475 100644 --- a/src/app/components/floating-column/add-new-account/add-new-account.component.ts +++ b/src/app/components/floating-column/add-new-account/add-new-account.component.ts @@ -74,7 +74,7 @@ export class AddNewAccountComponent implements OnInit { } else if ((err).message === 'CORS') { this.notificationService.notify(null, null, 'Connection Error. It\'s usually a CORS issue with the server you\'re connecting to. Please check in the console and if so, contact your administrator with those informations.', true); } else { - this.notificationService.notify(null, null, 'Unkown error', true); + this.notificationService.notify(null, null, 'Unknown error', true); } });