Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions packages/apps/human-app/frontend/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ VITE_DAPP_META_NAME=Human App Local
VITE_DAPP_META_URL=http://localhost:3001

# hCapthca
VITE_H_CAPTCHA_EXCHANGE_URL=https://foundation-yellow-exchange.hmt.ai
VITE_H_CAPTCHA_LABELING_BASE_URL=https://foundation-yellow-accounts.hmt.ai
VITE_H_CAPTCHA_SITE_KEY=10000000-ffff-ffff-ffff-000000000001
VITE_DAILY_SOLVED_CAPTCHA_LIMIT=0
VITE_HMT_DAILY_SPENT_LIMIT=0
Expand Down
2 changes: 1 addition & 1 deletion packages/apps/human-app/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@faker-js/faker": "^9.7.0",
"@fontsource/inter": "^5.0.17",
"@fontsource/roboto": "^5.2.6",
"@hcaptcha/react-hcaptcha": "^0.3.6",
"@hcaptcha/react-hcaptcha": "^1.14.0",
"@hookform/resolvers": "^5.1.0",
"@human-protocol/sdk": "workspace:*",
"@mui/icons-material": "^7.0.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,14 +144,11 @@ export function HcaptchaLabelingPage() {
{canSolveCaptcha ? (
<Grid container sx={{ width: '100%', justifyContent: 'center' }}>
<HCaptcha
// @ts-expect-error -- this props are not defined by TS by are used for enterprise version: https://github.com/hCaptcha/react-hcaptcha?tab=readme-ov-file#references
custom
endpoint={env.VITE_H_CAPTCHA_EXCHANGE_URL}
sitekey={user.site_key || env.VITE_H_CAPTCHA_SITE_KEY}
theme={isDarkMode ? 'dark' : 'light'}
onVerify={hcaptchaOnSuccess}
ref={captchaRef}
reportapi={env.VITE_H_CAPTCHA_LABELING_BASE_URL}
sitekey={user.site_key ?? ''}
theme={isDarkMode ? 'dark' : 'light'}
/>
</Grid>
) : (
Expand Down
2 changes: 0 additions & 2 deletions packages/apps/human-app/frontend/src/shared/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ const envSchema = z.object({
.string()
.transform((value) => Number(value))
.pipe(z.number()),
VITE_H_CAPTCHA_EXCHANGE_URL: z.string(),
VITE_H_CAPTCHA_LABELING_BASE_URL: z.string(),
VITE_WALLET_CONNECT_PROJECT_ID: z.string(),
VITE_DAPP_META_NAME: z.string(),
VITE_DAPP_META_DESCRIPTION: z.string(),
Expand Down
2 changes: 1 addition & 1 deletion packages/apps/job-launcher/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"dependencies": {
"@emotion/react": "^11.10.5",
"@emotion/styled": "^11.10.5",
"@hcaptcha/react-hcaptcha": "^1.10.1",
"@hcaptcha/react-hcaptcha": "^1.14.0",
"@human-protocol/sdk": "workspace:*",
"@mui/icons-material": "^7.0.1",
"@mui/lab": "^5.0.0-alpha.141",
Expand Down
16 changes: 3 additions & 13 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ __metadata:
"@faker-js/faker": "npm:^9.7.0"
"@fontsource/inter": "npm:^5.0.17"
"@fontsource/roboto": "npm:^5.2.6"
"@hcaptcha/react-hcaptcha": "npm:^0.3.6"
"@hcaptcha/react-hcaptcha": "npm:^1.14.0"
"@hookform/resolvers": "npm:^5.1.0"
"@human-protocol/sdk": "workspace:*"
"@mui/icons-material": "npm:^7.0.1"
Expand Down Expand Up @@ -535,7 +535,7 @@ __metadata:
dependencies:
"@emotion/react": "npm:^11.10.5"
"@emotion/styled": "npm:^11.10.5"
"@hcaptcha/react-hcaptcha": "npm:^1.10.1"
"@hcaptcha/react-hcaptcha": "npm:^1.14.0"
"@human-protocol/sdk": "workspace:*"
"@mui/icons-material": "npm:^7.0.1"
"@mui/lab": "npm:^5.0.0-alpha.141"
Expand Down Expand Up @@ -4851,17 +4851,7 @@ __metadata:
languageName: node
linkType: hard

"@hcaptcha/react-hcaptcha@npm:^0.3.6":
version: 0.3.10
resolution: "@hcaptcha/react-hcaptcha@npm:0.3.10"
peerDependencies:
react: ">= 16.3.0"
react-dom: ">= 16.3.0"
checksum: 10c0/cb9af880be869baffc0088833b24b8ad2338db997f5a19d4c64f4fd9173d7d339639c2811802d6578d8b2f711a25417ef7f3923e23641cbc31e803d7ac732370
languageName: node
linkType: hard

"@hcaptcha/react-hcaptcha@npm:^1.10.1":
"@hcaptcha/react-hcaptcha@npm:^1.14.0":
version: 1.14.0
resolution: "@hcaptcha/react-hcaptcha@npm:1.14.0"
dependencies:
Expand Down