Skip to content

Commit

Permalink
spelling: github
Browse files Browse the repository at this point in the history
Signed-off-by: Josh Soref <[email protected]>
  • Loading branch information
jsoref committed Nov 11, 2022
1 parent 9c51b81 commit 29a6a32
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ To ensure consistency throughout the source code, please keep these rules in min

## Need help? Questions and suggestions

Questions, suggestions, and thoughts are most welcome. Feel free to open a [Github Discussion](https://github.com/novuhq/novu/discussions/new). We can also be reached in our [Discord Server](https://discord.novu.co).
Questions, suggestions, and thoughts are most welcome. Feel free to open a [GitHub Discussion](https://github.com/novuhq/novu/discussions/new). We can also be reached in our [Discord Server](https://discord.novu.co).

## Ways to contribute

Expand Down
2 changes: 1 addition & 1 deletion apps/api/src/app/auth/auth.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export class AuthController {
githubAuth() {
if (!process.env.GITHUB_OAUTH_CLIENT_ID || !process.env.GITHUB_OAUTH_CLIENT_SECRET) {
throw new ApiException(
'Github auth is not configured, please provide GITHUB_OAUTH_CLIENT_ID and GITHUB_OAUTH_CLIENT_SECRET as env variables'
'GitHub auth is not configured, please provide GITHUB_OAUTH_CLIENT_ID and GITHUB_OAUTH_CLIENT_SECRET as env variables'
);
}

Expand Down
4 changes: 2 additions & 2 deletions apps/api/src/app/auth/auth.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { UserModule } from '../user/user.module';
import { AuthService } from './services/auth.service';
import { USE_CASES } from './usecases';
import { SharedModule } from '../shared/shared.module';
import { GithubStrategy } from './services/passport/github.strategy';
import { GitHubStrategy } from './services/passport/github.strategy';
import { OrganizationModule } from '../organization/organization.module';
import { EnvironmentsModule } from '../environments/environments.module';
import { JwtSubscriberStrategy } from './services/passport/subscriber-jwt.strategy';
Expand All @@ -19,7 +19,7 @@ import { RootEnvironmentGuard } from './framework/root-environment-guard.service
const AUTH_STRATEGIES = [];

if (process.env.GITHUB_OAUTH_CLIENT_ID) {
AUTH_STRATEGIES.push(GithubStrategy);
AUTH_STRATEGIES.push(GitHubStrategy);
}

@Module({
Expand Down
2 changes: 1 addition & 1 deletion apps/api/src/app/auth/services/passport/github.strategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { AuthProviderEnum } from '@novu/shared';
import { AuthService } from '../auth.service';

@Injectable()
export class GithubStrategy extends PassportStrategy(githubPassport.Strategy, 'github') {
export class GitHubStrategy extends PassportStrategy(githubPassport.Strategy, 'github') {
constructor(private authService: AuthService) {
super({
clientID: process.env.GITHUB_OAUTH_CLIENT_ID,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class GenerateUniqueApiKey {
* Extracting the generation functionality so it can be stubbed for functional testing
*
* @requires hat
* @todo Dependency is no longer accessible to source code due of removal from Github. Consider look for an alternative.
* @todo Dependency is no longer accessible to source code due of removal from GitHub. Consider look for an alternative.
*/
private generateApiKey(): string {
return hat();
Expand Down
10 changes: 5 additions & 5 deletions apps/web/src/components/auth/LoginForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { Divider, Button as MantineButton, Center } from '@mantine/core';
import { AuthContext } from '../../store/authContext';
import { api } from '../../api/api.client';
import { PasswordInput, Button, colors, Input, Text } from '../../design-system';
import { Github } from '../../design-system/icons';
import { GitHub } from '../../design-system/icons';
import { API_ROOT, IS_DOCKER_HOSTED } from '../../config';
import { useVercelParams } from '../../hooks/use-vercelParams';

Expand Down Expand Up @@ -85,18 +85,18 @@ export function LoginForm({ email, token }: Props) {
<>
{!IS_DOCKER_HOSTED && (
<>
<GithubButton
<GitHubButton
component="a"
href={githubLink}
my={30}
variant="white"
fullWidth
radius="md"
leftIcon={<Github />}
leftIcon={<GitHub />}
sx={{ color: colors.B40, fontSize: '16px', fontWeight: 700, height: '50px' }}
>
Sign In with GitHub
</GithubButton>
</GitHubButton>
<Divider label={<Text color={colors.B40}>Or</Text>} color={colors.B30} labelPosition="center" my="md" />
</>
)}
Expand Down Expand Up @@ -153,7 +153,7 @@ export function LoginForm({ email, token }: Props) {
);
}

const GithubButton = styled(MantineButton)<{
const GitHubButton = styled(MantineButton)<{
component: 'a';
my: number;
href: string;
Expand Down
12 changes: 6 additions & 6 deletions apps/web/src/components/auth/SignUpForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { showNotification } from '@mantine/notifications';
import { AuthContext } from '../../store/authContext';
import { api } from '../../api/api.client';
import { PasswordInput, Button, colors, Input, Text, Checkbox } from '../../design-system';
import { Github } from '../../design-system/icons';
import { GitHub } from '../../design-system/icons';
import { API_ROOT, IS_DOCKER_HOSTED } from '../../config';
import { applyToken } from '../../store/use-auth-controller';
import { useAcceptInvite } from './use-accept-invite.hook';
Expand Down Expand Up @@ -118,18 +118,18 @@ export function SignUpForm({ token, email }: Props) {
<>
{!IS_DOCKER_HOSTED && !token && (
<>
<GithubButton
<GitHubButton
my={30}
component="a"
href={githubLink}
variant="white"
fullWidth
radius="md"
leftIcon={<Github />}
leftIcon={<GitHub />}
sx={{ color: colors.B40, fontSize: '16px', fontWeight: 700, height: '50px' }}
>
Sign Up with Github
</GithubButton>
Sign Up with GitHub
</GitHubButton>
<Divider label={<Text color={colors.B40}>Or</Text>} color={colors.B30} labelPosition="center" my="md" />
</>
)}
Expand Down Expand Up @@ -240,7 +240,7 @@ function Accept() {
);
}

const GithubButton = styled(MantineButton)<{
const GitHubButton = styled(MantineButton)<{
component: 'a';
my: number;
href: string;
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/design-system/icons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ export { ChatGradient } from './gradient/ChatGradient';
export { LevelsGradient } from './gradient/LevelsGradient';
export { TimerGradient } from './gradient/TimerGradient';

export { Github } from './social/Github';
export { GitHub } from './social/GitHub';
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
/* eslint-disable */
export function Github(props: React.ComponentPropsWithoutRef<'svg'>) {
export function GitHub(props: React.ComponentPropsWithoutRef<'svg'>) {
return (
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}>
<path
Expand Down
2 changes: 1 addition & 1 deletion docs/src/theme/Footer/Links/MultiColumn/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function SideColumn() {
target="_blank"
rel="noopener"
>
Star us on Github
Star us on GitHub
</a>
<div className="footer__copyright-mobile">© {new Date().getFullYear()} Novu</div>
</div>
Expand Down

0 comments on commit 29a6a32

Please sign in to comment.