Skip to content

Commit

Permalink
Merge pull request #4449 from szepeviktor/typos2
Browse files Browse the repository at this point in the history
fix: more typos in the code
  • Loading branch information
abuaboud committed Apr 12, 2024
2 parents 58a2410 + 85c526c commit 2788f13
Show file tree
Hide file tree
Showing 26 changed files with 60 additions and 33 deletions.
27 changes: 27 additions & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[files]
extend-exclude = [
".git/",
"**/database/**",
"packages/ui/core/src/locale/",
# French
"packages/pieces/community/wedof/src/",
]
ignore-hidden = false

[default]
extend-ignore-re = [
"[0-9A-Za-z]{34}",
"name: 'referal'",
"getRepository\\('referal'\\)",
"label: 'FO Language', value: 'fo'",
"649c83111c9cbe6ba1d4cabe",
"hYy9pRFVxpDsO1FB05SunFWUe9JZY",
"lod6JEdKyPlvrnErdnrGa",
]

[default.extend-identifiers]
"crazyTweek" = "crazyTweek"
"optin_ip" = "optin_ip"

# Typos
"Github" = "GitHub"
8 changes: 4 additions & 4 deletions docs/about/changelog.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ https://community.activepieces.com/t/action-required-breaking-changes-approval-p
**✨ Exciting New Features**

* feat: write code with AI (#3595) @MoShizzle
* feat(ee): Google & Github SSO / Enforce allowed domains / Disable email auth (#3584) @abuaboud
* feat(ee): Google & GitHub SSO / Enforce allowed domains / Disable email auth (#3584) @abuaboud
* feat(ee): support for git environments (#3564) @abuaboud

**🧩 Pieces**
Expand Down Expand Up @@ -1252,7 +1252,7 @@ please visit the [Full Changelog](https://github.com/activepieces/activepieces/c
- Monday: Get Column Values / Get Item By Column Values / Change Multiple Column Values by @haseebrehmanpc
- Slack: Support for multiple action buttons by @rita-gorokhod
- Tags section: Ability to add tags for the run and query them through API only at this moment by @abuaboud
- Github: Create Issue by @kishanprmr
- GitHub: Create Issue by @kishanprmr
- Clarfai: Call Audio Model / Call Image Model / Call Post Inputs / Call Text Model / Call Workflow Actions by @zeiler
- Kimai: Create timesheet Action by @facferreira
- Supabase: Upload file to Storage Action by @abuaboud
Expand Down Expand Up @@ -1900,7 +1900,7 @@ https://github.com/activepieces/activepieces/compare/0.3.6...0.3.7
- RSS: Includes a trigger for new items in the feed
- Clickup: Includes actions for getting lists, creating folderless lists, getting tasks, getting task comments, and getting spaces actions
- WordPress: Includes actions for creating WordPress posts and triggering new WordPress posts
- Github: Includes triggers for new pull requests and new issues
- GitHub: Includes triggers for new pull requests and new issues
- Posthog: Includes actions for capture events / creating project
- Google Tasks: Includes actions for creating task

Expand All @@ -1912,7 +1912,7 @@ https://github.com/activepieces/activepieces/compare/0.3.6...0.3.7
- Added full sample for Google Calendar

* **Contributors**
- @kanarelo: Enriched Github, created Posthog and Cal.Com pieces
- @kanarelo: Enriched GitHub, created Posthog and Cal.Com pieces
- @ShayPunter: Enriched Clickup piece
- @abaza738: Created RSS feed trigger and Google Tasks piece
- @jonaboe: Created Figma piece
Expand Down
2 changes: 1 addition & 1 deletion docs/developers/building-pieces/piece-definition.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ description: ''
This tutorial will guide you through the process of creating a Gelato piece with an action that fetches random icecream flavor and trigger that fetches new icecream flavor created. It assumes that you are familiar with the following:

- [Activepieces Repo Structure](../architecture/repo-structure)
- [Activepieces Local development](../development-setup/local) Or [Github Codespaces](../development-setup/codespaces).
- [Activepieces Local development](../development-setup/local) Or [GitHub Codespaces](../development-setup/codespaces).
- TypeScript syntax.

## Piece Definition
Expand Down
2 changes: 1 addition & 1 deletion docs/developers/development-setup/codespaces.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'Github Codespaces'
title: 'GitHub Codespaces'
description: ''
---

Expand Down
2 changes: 1 addition & 1 deletion docs/install/options/aws.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ The configuration options that are presented during stack configuration will all
* Fully qualified domain name with SSL. Note that the hosted zone must already be configured in Route 53.
Opting out of this will mean relying on using the application load balancer's url over standard HTTP to access your Activepieces deployment.

For a full list of all the currently available configuration options, take a look at the [Activepieces Pulumi template file on Github](https://github.com/activepieces/activepieces/tree/main/deploy/pulumi/Pulumi.yaml).
For a full list of all the currently available configuration options, take a look at the [Activepieces Pulumi template file on GitHub](https://github.com/activepieces/activepieces/tree/main/deploy/pulumi/Pulumi.yaml).

## Setting up Pulumi for the first time

Expand Down
2 changes: 1 addition & 1 deletion docs/mint.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
"topbarLinks": [
{
"name": "Github",
"name": "GitHub",
"url": "https://github.com/activepieces/activepieces"
}
],
Expand Down
2 changes: 1 addition & 1 deletion docs/operations/git-sync.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ You can trigger a pull from the Git Repository button in Activepieces. This acti

To manage your approval workflow, you can use Git by creating two branches: development and production. Then, you can use standard pull requests as the approval step.

#### Github action
#### GitHub action
This GitHub action can be used to automatically pull changes upon merging.

<Tip>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<div class="ap-flex ap-gap-2 ap-items-center ap-justify-center">
<svg-icon [svgStyle]="{ width: '15px', height: '15px' }" src="assets/img/custom/auth/github.svg">
</svg-icon>
{{isForSignup? signUpText:signInText }} Github
{{isForSignup? signUpText:signInText }} GitHub
</div>
</ap-button>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export class ConfigureConfederatedAuthnCardComponent

if (this.federatedAuthnProvider === 'Google') {
delete platform.federatedAuthProviders.google;
} else if (this.federatedAuthnProvider === 'Github') {
} else if (this.federatedAuthnProvider === 'GitHub') {
delete platform.federatedAuthProviders.github;
}
if (!doesPlatformHaveAtLeastOneLoginMethodEnabled(platform)) {
Expand Down Expand Up @@ -117,7 +117,7 @@ export class ConfigureConfederatedAuthnCardComponent
if (this.platform) {
$event.source.checked = this.toggleChecked;
const federatedAuthnProviderValue =
this.federatedAuthnProvider === FederatedAuthnProviderEnum.Github
this.federatedAuthnProvider === FederatedAuthnProviderEnum.GitHub
? this.platform.federatedAuthProviders.github
: this.platform.federatedAuthProviders.google;
if (federatedAuthnProviderValue === undefined) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class EnableFederatedAuthnProviderDialogComponent {
this.loading$.next(true);
const platform: Platform = JSON.parse(JSON.stringify(this.data.platform));
const formData = this.formGroup.getRawValue();
if (this.data.provider === 'Github') {
if (this.data.provider === 'GitHub') {
platform.federatedAuthProviders.github = formData;
}
if (this.data.provider === 'Google') {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export enum FederatedAuthnProviderEnum {
Google = 'Google',
Github = 'Github',
GitHub = 'GitHub',
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[federatedAuthnProvider]="FederatedAuthnProviderEnum.Google"></app-configure-confederated-authn-card>
<app-configure-confederated-authn-card [isDemo]="isDemo" [platform]="(platform$ | async) || undefined"
(platformUpdated)="platformUpdated($event)"
[federatedAuthnProvider]="FederatedAuthnProviderEnum.Github"></app-configure-confederated-authn-card>
[federatedAuthnProvider]="FederatedAuthnProviderEnum.GitHub"></app-configure-confederated-authn-card>
<app-configure-allowing-email-logins-card [isDemo]="isDemo" [platform]="(platform$ | async) || undefined"
(platformUpdated)="platformUpdated($event)"></app-configure-allowing-email-logins-card>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createAction, Property } from '@activepieces/pieces-framework';
import { httpClient, HttpMethod } from '@activepieces/pieces-common';
import { brilliantDirectoriesAuth } from '../..';
import { parseDirectoryURL } from '../common/brilliant-directores-common';
import { parseDirectoryURL } from '../common/brilliant-directories-common';

export const createNewUser = createAction({
name: 'create_new_user',
Expand Down
2 changes: 1 addition & 1 deletion packages/pieces/community/cartloom/src/lib/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const cartloomAPI = async (

const arrayTest = response.body['0'];
if (typeof arrayTest === 'undefined') {
// when respone is an object, it is wrapped in an array
// when response is an object, it is wrapped in an array
data = [response.body];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const filterClickupWorkspaceTasks = createAction({
include_closed: Property.Checkbox({
displayName: 'Include Closed',
description:
'Include or excluse closed tasks. By default, they are excluded.',
'Include or exclude closed tasks. By default, they are excluded.',
required: false,
defaultValue: false,
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const githubCreateIssueAction = createAction({
auth: githubAuth,
name: 'github_create_issue',
displayName: 'Create Issue',
description: 'Create Issue in Github Repository',
description: 'Create Issue in GitHub Repository',
props: {
repository: githubCommon.repositoryDropdown,
title: Property.ShortText({
Expand Down
6 changes: 3 additions & 3 deletions packages/pieces/community/kizeo-forms/src/lib/common/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,15 +245,15 @@ export const kizeoFormsCommon = {
const results: Record<string, any> = list.properties_definition;

for (let i = 0; i < Object.keys(results).length; i++) {
const propertieId = Object.keys(results)[i];
const propertyId = Object.keys(results)[i];

if (Object.values(results)[i].type === 'string') {
properties[propertieId] = Property.ShortText({
properties[propertyId] = Property.ShortText({
displayName: Object.values(results)[i].display_name,
required: false,
});
} else {
properties[propertieId] = Property.Number({
properties[propertyId] = Property.Number({
displayName: Object.values(results)[i].display_name,
required: false,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const sendMessage = createAction({
}),
},
async run(context) {
// Remove trailling slash from workspace URL
// Remove trailing slash from workspace URL
const baseUrl = context.auth.workspace_url.replace(/\/$/, '');
try {
return await httpClient.sendRequest({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export const createItemAction = createAction({
boardId: board_id,
groupId: group_id,
columnValues: JSON.stringify(mondayColumnValues),
craeteLabels: create_labels_if_missing ?? false,
createLabels: create_labels_if_missing ?? false,
});
},
});
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const htmlToMarkdown = createAction({
options: [
{ label: 'Default', value: 'vanilla' },
{ label: 'Original', value: 'original' },
{ label: 'Github', value: 'github' },
{ label: 'GitHub', value: 'github' },
],
},
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const markdownToHTML = createAction({
options: [
{ label: 'Default', value: 'vanilla' },
{ label: 'Original', value: 'original' },
{ label: 'Github', value: 'github' },
{ label: 'GitHub', value: 'github' },
],
},
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const webflowNewSubmission = createTrigger({
formName: Property.ShortText({
displayName: 'Form Name',
required: false,
description: 'Copy from the form settings, or from one of the respones',
description: 'Copy from the form settings, or from one of the responses',
}),
},
type: TriggerStrategy.WEBHOOK,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function getClientIdAndSecret(platform: Platform): {
const clientInformation = platform.federatedAuthProviders.github
assertNotNullOrUndefined(
clientInformation,
'Github information is not configured for this platform',
'GitHub information is not configured for this platform',
)
return {
clientId: clientInformation.clientId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { flagService } from '../../flags/flag.service'
import { FlagsServiceHooks } from '../../flags/flags.hooks'
import { resolvePlatformIdForRequest } from '../../platform/platform-utils'
import { platformService } from '../../platform/platform.service'
import { appearanceHelper } from '../helper/apperance-helper'
import { appearanceHelper } from '../helper/appearance-helper'
import { ApFlagId, isNil, ThirdPartyAuthnProviderEnum } from '@activepieces/shared'

export const enterpriseFlagsHooks: FlagsServiceHooks = {
Expand Down
8 changes: 4 additions & 4 deletions packages/server/api/src/app/websockets/websockets.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ const listener: Record<string, WebsocketListener<any>> = {}

export const websocketService = {
init(socket: Socket): void {
for (const [event, listner] of Object.entries(listener)) {
socket.on(event, listner(socket))
for (const [event, handler] of Object.entries(listener)) {
socket.on(event, handler(socket))
}
},
addListener<T>(event: WebsocketServerEvent, listner: WebsocketListener<T>): void {
listener[event] = listner
addListener<T>(event: WebsocketServerEvent, handler: WebsocketListener<T>): void {
listener[event] = handler
},
}

0 comments on commit 2788f13

Please sign in to comment.