-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:nkowaokwu/igbo_api into ec/eng2igbo
- Loading branch information
Showing
8 changed files
with
81 additions
and
10 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
migrations/20241116014146-add-bit-rate-audio-pronunciation.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,23 @@ | ||
module.exports = { | ||
async up(db) { | ||
const collections = ['audiopronunciations']; | ||
return collections.map((collection) => | ||
db.collection(collection).updateMany({}, [ | ||
{ | ||
$addFields: { bitRate: 30000 }, | ||
}, | ||
]) | ||
); | ||
}, | ||
|
||
async down(db) { | ||
const collections = ['audiopronunciations']; | ||
return collections.map((collection) => | ||
db.collection(collection).updateMany({}, [ | ||
{ | ||
$unset: 'bitRate', | ||
}, | ||
]) | ||
); | ||
}, | ||
}; |
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,32 @@ | ||
import { Button, HStack, Link, Text } from '@chakra-ui/react'; | ||
import { LuArrowRight } from 'react-icons/lu'; | ||
import { VOLUNTEER_PAGE_URL } from 'src/siteConstants'; | ||
|
||
const CallToAction = () => ( | ||
<HStack | ||
width="full" | ||
justifyContent="center" | ||
gap={6} | ||
backgroundColor="blue.900" | ||
p={4} | ||
flexDirection={{ base: 'column', lg: 'row' }} | ||
> | ||
<Text color="white" fontWeight="medium" fontSize="md" textAlign="center"> | ||
Join our team of Igbo audio recorders and translators to help advance Igbo NLP technology 🎙️ | ||
</Text> | ||
<Link href={VOLUNTEER_PAGE_URL} target="_blank"> | ||
<Button | ||
backgroundColor="white" | ||
color="black" | ||
fontWeight="bold" | ||
fontFamily="heading" | ||
rightIcon={<LuArrowRight />} | ||
fontSize="md" | ||
> | ||
Join here | ||
</Button> | ||
</Link> | ||
</HStack> | ||
); | ||
|
||
export default CallToAction; |
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 @@ | ||
import CallToAction from './CallToAction'; | ||
|
||
export default CallToAction; |
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 |
---|---|---|
|
@@ -4,6 +4,7 @@ export const API_FROM_EMAIL = '[email protected]'; | |
export const APP_URL = 'https://igboapi.com'; | ||
export const API_ROUTE = APP_URL; | ||
export const DICTIONARY_APP_URL = 'https://nkowaokwu.com'; | ||
export const VOLUNTEER_PAGE_URL = 'https://nkowaokwu.com/volunteer'; | ||
export const SPEECH_TO_TEXT_APP_URL = 'https://speech.igboapi.com'; | ||
export const GITHUB_REPO = 'https://github.com/nkowaokwu/igbo_api'; | ||
export const GITHUB_CONTRIBUTORS = 'https://api.github.com/repos/nkowaokwu/igbo_api/contributors'; | ||
|