File tree Expand file tree Collapse file tree
packages/apps/human-app/frontend
modules/worker/hcaptcha-labeling Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ VITE_DAILY_SOLVED_CAPTCHA_LIMIT=0
1515VITE_HMT_DAILY_SPENT_LIMIT = 0
1616
1717# hCaptcha annotation tool
18+ VITE_H_CAPTCHA_EXCHANGE_URL = replace_me
19+ VITE_H_CAPTCHA_LABELING_BASE_URL = replace_me
1820VITE_H_CAPTCHA_ORACLE_ADDRESS = replace_me
1921VITE_H_CAPTCHA_ORACLE_ANNOTATION_TOOL = hcaptcha
2022VITE_H_CAPTCHA_ORACLE_ROLE = hcaptcha
Original file line number Diff line number Diff line change @@ -145,10 +145,13 @@ export function HcaptchaLabelingPage() {
145145 < Grid container sx = { { width : '100%' , justifyContent : 'center' } } >
146146 < HCaptcha
147147 custom
148- sitekey = { user . site_key || env . VITE_H_CAPTCHA_SITE_KEY }
149- theme = { isDarkMode ? 'dark' : 'light' }
148+ // @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
149+ endpoint = { env . VITE_H_CAPTCHA_EXCHANGE_URL }
150150 onVerify = { hcaptchaOnSuccess }
151151 ref = { captchaRef }
152+ reportapi = { env . VITE_H_CAPTCHA_LABELING_BASE_URL }
153+ sitekey = { user . site_key ?? '' }
154+ theme = { isDarkMode ? 'dark' : 'light' }
152155 />
153156 </ Grid >
154157 ) : (
Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ const envSchema = z.object({
1818 . string ( )
1919 . transform ( ( value ) => Number ( value ) )
2020 . pipe ( z . number ( ) ) ,
21+ VITE_H_CAPTCHA_EXCHANGE_URL : z . string ( ) ,
22+ VITE_H_CAPTCHA_LABELING_BASE_URL : z . string ( ) ,
2123 VITE_WALLET_CONNECT_PROJECT_ID : z . string ( ) ,
2224 VITE_DAPP_META_NAME : z . string ( ) ,
2325 VITE_DAPP_META_DESCRIPTION : z . string ( ) ,
You can’t perform that action at this time.
0 commit comments