-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
270 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
backend/src/migrations/20240820093010_add_name_field_to_users_table.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { type Knex } from 'knex'; | ||
|
||
const TABLE_NAME = 'users'; | ||
|
||
async function up(knex: Knex): Promise<void> { | ||
await knex.schema.table(TABLE_NAME, (table) => { | ||
table.string('full_name').notNullable(); | ||
}); | ||
} | ||
|
||
async function down(knex: Knex): Promise<void> { | ||
await knex.schema.table(TABLE_NAME, (table) => { | ||
table.dropColumn('full_name'); | ||
}); | ||
} | ||
|
||
export { down, up }; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,11 +70,13 @@ const SignInForm: React.FC<Properties> = ({ onSubmit }) => { | |
label="Email" | ||
placeholder="[email protected]" | ||
name="email" | ||
required | ||
/> | ||
<PasswordInput | ||
label="Password" | ||
name="password" | ||
hasError={Boolean(errors.password)} | ||
required | ||
/> | ||
<FormError | ||
isVisible={dataStatus === DataStatus.REJECTED} | ||
|
2 changes: 1 addition & 1 deletion
2
frontend/src/bundles/auth/components/sign-up-form/constants/constants.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,23 +63,27 @@ const SignUpForm: React.FC<Properties> = ({ onSubmit }) => { | |
type="text" | ||
label="Full Name" | ||
placeholder="Name" | ||
name="name" | ||
name="fullName" | ||
required | ||
/> | ||
<Input | ||
type="email" | ||
label="Email" | ||
placeholder="[email protected]" | ||
name="email" | ||
required | ||
/> | ||
<PasswordInput | ||
label="Password" | ||
name="password" | ||
hasError={Boolean(errors.password)} | ||
required | ||
/> | ||
<PasswordInput | ||
label="Repeat password" | ||
name="confirmPassword" | ||
hasError={Boolean(errors.confirmPassword)} | ||
required | ||
/> | ||
<FormError | ||
isVisible={dataStatus === DataStatus.REJECTED} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { faEllipsisVertical, faPen } from '@fortawesome/free-solid-svg-icons'; | ||
|
||
const IconName = { | ||
OPTIONS_VERTICAL: faEllipsisVertical, | ||
PEN: faPen, | ||
} as const; | ||
|
||
export { IconName }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { IconName } from './icon-name.js'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export { MainContent } from './main-content/main-content.js'; | ||
export { VideoCard } from './video-card/video-card.js'; | ||
export { VideoSection } from './video-section/video-section.js'; |
14 changes: 14 additions & 0 deletions
14
frontend/src/bundles/home/components/main-content/main-content.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { Box } from '~/bundles/common/components/components.js'; | ||
|
||
import { VideoSection } from '../components.js'; | ||
|
||
const MainContent: React.FC = () => { | ||
return ( | ||
<Box bg="background.50" borderRadius="lg" margin="0 25px"> | ||
<VideoSection /> | ||
<VideoSection /> | ||
</Box> | ||
); | ||
}; | ||
|
||
export { MainContent }; |
Oops, something went wrong.