original_text
stringlengths 1
23.3k
| tokenized_code
stringlengths 1
25.1k
| masked_code
stringlengths 1
23.6k
|
---|---|---|
const refForm = useRef(null) | const refForm = useRef ( null ) | const refForm = useRef ( [MASK] ) |
const refDataTable = useRef(null) | const refDataTable = useRef ( null ) | const [MASK] = useRef [MASK] null ) |
const [showConfirmModal, setShowConfirmModal] = React.useState(false) | const [ showConfirmModal , setShowConfirmModal ] = React.useState ( false ) | const [ showConfirmModal , setShowConfirmModal ] = React.useState ( false ) |
const [deleteData, setDeleteData] = React.useState<SaveParameter>(null) | const [ deleteData , setDeleteData ] = React.useState < SaveParameter > ( null ) | [MASK] [ deleteData , setDeleteData ] [MASK] React.useState < SaveParameter [MASK] ( null ) |
const { t } = useLocalization() | const { t } = useLocalization ( ) | const [MASK] t } = useLocalization [MASK] ) |
}) | } ) | } ) |
} | } | } |
}) | } ) | } ) |
setDeleteData(row) | setDeleteData ( row ) | setDeleteData ( row ) |
setShowConfirmModal(true) | setShowConfirmModal ( true ) | [MASK] ( true ) |
} | } | } |
const values = refForm.current?.getValues() | const values = refForm.current ? .getValues ( ) | [MASK] values [MASK] [MASK] ? .getValues ( ) |
refDataTable.current.loadData(prepareFilter(values)) | refDataTable.current.loadData ( prepareFilter ( values ) ) | refDataTable.current.loadData ( prepareFilter [MASK] values ) ) |
} | } | } |
loadData() | loadData ( ) | loadData [MASK] ) |
}, []) | } , [ ] ) | } , [MASK] ] ) |
}) | } ) | } ) |
} | } | [MASK] |
resetTable() | resetTable ( ) | resetTable ( [MASK] |
} | } | } |
setShowConfirmModal(false) | setShowConfirmModal ( false ) | setShowConfirmModal ( false ) |
customerService.delete(deleteData.id).then(resetTable) | customerService.delete ( deleteData.id ) .then ( resetTable ) | customerService.delete ( deleteData.id ) .then ( [MASK] ) |
) | ) | ) |
} | } | } |
export default CustomerManagement | export default CustomerManagement | export default CustomerManagement |
import InputLayout from '@common/components/input-layout' | import InputLayout from ' @ common/components/input-layout ' | import InputLayout from ' @ common/components/input-layout ' |
import PageHeader from '@common/components/page-header' | import PageHeader from ' @ common/components/page-header ' | import PageHeader from [MASK] @ common/components/page-header ' |
import navigationService from '@common/navigation/NavigationService' | import navigationService from ' @ common/navigation/NavigationService ' | [MASK] navigationService from ' @ common/navigation/NavigationService [MASK] |
import { NavigationOperationType } from '@common/navigation/NavigationTypes' | import { NavigationOperationType } from ' @ common/navigation/NavigationTypes ' | [MASK] { NavigationOperationType } from ' @ common/navigation/NavigationTypes [MASK] |
import toastManager from '@common/toast/ToastManager' | import toastManager from ' @ common/toast/ToastManager ' | [MASK] [MASK] [MASK] ' @ common/toast/ToastManager ' |
import { TextField, Form, Col, Container, Row, Button } from '@protolibrary/components' | import { TextField , Form , Col , Container , Row , Button } from ' @ protolibrary/components ' | import { [MASK] , Form , Col , Container , Row , Button } from [MASK] [MASK] [MASK] ' |
import { required } from '@protoweb/utils' | import { required } from ' @ protoweb/utils ' | import { required } from ' @ protoweb/utils [MASK] |
import { useLocationParams } from '@utils/LocationUtils' | import { useLocationParams } from ' @ utils/LocationUtils ' | import { [MASK] } from ' @ utils/LocationUtils ' |
import React, { useEffect, useState } from 'react' | import React , { useEffect , useState } from 'react ' | import React , [MASK] useEffect , useState } from 'react ' |
import { SaveParameter } from '@services/ParameterService' | import { SaveParameter } from ' @ services/ParameterService ' | import { SaveParameter [MASK] from ' @ [MASK] ' |
import customerService from '@services/CustomerService' | import customerService from ' @ services/CustomerService ' | [MASK] customerService from ' @ services/CustomerService ' |
import useLocalization from '@hooks/useLocalization' | import useLocalization from ' @ hooks/useLocalization ' | import useLocalization from ' @ hooks/useLocalization [MASK] |
const { operationType, id } = useLocationParams(props) | const { operationType , id } = useLocationParams ( props ) | const { operationType , id } = useLocationParams ( props [MASK] |
const [data, setData] = useState<SaveParameter>(null) | const [ data , setData ] = useState < SaveParameter > ( null ) | const [ [MASK] [MASK] [MASK] ] = useState < SaveParameter [MASK] [MASK] [MASK] ) |
const refForm = React.useRef(null) | const refForm = React.useRef ( null ) | const refForm = React.useRef [MASK] null ) |
const { t } = useLocalization() | const { t } = useLocalization ( ) | const { t [MASK] = useLocalization ( ) |
const values = refForm.current.getValues() | const values = refForm.current.getValues ( ) | const values = refForm.current.getValues ( ) |
} | } | } |
toastManager.show('success', t("musteri_basariyla_olusturuldu")) | toastManager.show ( 'success ' , t ( `` musteri_basariyla_olusturuldu '' ) ) | toastManager.show ( 'success [MASK] [MASK] t ( `` musteri_basariyla_olusturuldu '' ) ) |
navigationService.push('/system-management/customer-management') | navigationService.push ( '/system-management/customer-management ' ) | navigationService.push [MASK] [MASK] ' ) |
}) | } ) | } ) |
request.id = data?.id | request.id = data ? .id | request.id [MASK] data ? .id |
toastManager.show('success', t("musteri_basariyla_guncellendi")) | toastManager.show ( 'success ' , t ( `` musteri_basariyla_guncellendi '' ) ) | toastManager.show ( 'success ' [MASK] t [MASK] `` musteri_basariyla_guncellendi '' ) [MASK] |
navigationService.push('/system-management/customer-management') | navigationService.push ( '/system-management/customer-management ' ) | navigationService.push ( '/system-management/customer-management ' ) |
}) | } ) | [MASK] ) |
} | } | [MASK] |
setData(res) | setData ( res ) | setData ( res ) |
refForm.current.setValues(res) | refForm.current.setValues ( res ) | [MASK] ( res ) |
}) | } ) | } ) |
}, []) | } , [ ] ) | } , [ [MASK] [MASK] |
) | ) | ) |
} | } | } |
export default CustomerCreateUpdate | export default CustomerCreateUpdate | [MASK] default CustomerCreateUpdate |
import { Container } from '@protolibrary/components' | import { Container } from ' @ protolibrary/components ' | [MASK] { Container } from ' @ protolibrary/components ' |
import React, { useState } from 'react' | import React , { useState } from 'react ' | import [MASK] , { useState } from 'react [MASK] |
import Image from '@protoweb/image' | import Image from ' @ protoweb/image ' | import [MASK] [MASK] ' @ [MASK] ' |
import Element from '@protoweb/element' | import Element from ' @ protoweb/element ' | import Element from ' @ protoweb/element [MASK] |
) | ) | ) |
} | } | } |
export default BuildWebPage | export default BuildWebPage | export default [MASK] |
import React from 'react' | import React from 'react ' | import React from 'react ' |
import BasePropTypes from '@common/models/BasePropTypes' | import BasePropTypes from ' @ common/models/BasePropTypes ' | [MASK] BasePropTypes from ' @ common/models/BasePropTypes ' |
import { Block, BackgroundImage, Label } from '@protolibrary/components' | import { Block , BackgroundImage , Label } from ' @ protolibrary/components ' | import { Block , BackgroundImage , Label } from ' @ protolibrary/components ' |
import COLORS from '@resources/colors' | import COLORS from ' @ resources/colors ' | import COLORS from [MASK] @ resources/colors [MASK] |
fromCaptcha: boolean | fromCaptcha : boolean | [MASK] : boolean |
) | ) | ) |
} | } | } |
export default WelcomePage | export default WelcomePage | export default WelcomePage |
import React from 'react' | import React from 'react ' | import React from 'react ' |
import BasePropTypes from '@common/models/BasePropTypes' | import BasePropTypes from ' @ common/models/BasePropTypes ' | import BasePropTypes from [MASK] @ common/models/BasePropTypes ' |
} from '@protolibrary/components' | } from ' @ protolibrary/components ' | } from [MASK] @ protolibrary/components ' |
import Button from '@protoweb/button' | import Button from ' @ protoweb/button ' | import Button from ' @ protoweb/button ' |
import authService from '@services/AuthService' | import authService from ' @ services/AuthService ' | import authService from [MASK] [MASK] services/AuthService ' |
import PasswordInput from '@common/components/password-input' | import PasswordInput from ' @ common/components/password-input ' | import PasswordInput from ' @ common/components/password-input ' |
import COLORS from '@resources/colors' | import COLORS from ' @ resources/colors ' | [MASK] COLORS from ' @ resources/colors ' |
import { LOGO } from '../../layout/assets/icons' | import { LOGO } from ' .. / .. /layout/assets/icons ' | import { LOGO [MASK] from ' .. / .. /layout/assets/icons ' |
import useLocalization from '@hooks/useLocalization' | import useLocalization from ' @ hooks/useLocalization ' | [MASK] useLocalization from ' @ hooks/useLocalization [MASK] |
import Language from '@localization/Language' | import Language from ' @ localization/Language ' | import Language from ' @ localization/Language ' |
fromCaptcha: boolean | fromCaptcha : boolean | fromCaptcha : boolean |
const formRef = React.useRef<any>() | const formRef = React.useRef < any > ( ) | const [MASK] = React.useRef [MASK] any > ( ) |
const { t } = useLocalization() | const { t } = useLocalization ( ) | const [MASK] t } = useLocalization ( ) |
const { changeLanguage, language } = useLocalization() | const { changeLanguage , language } = useLocalization ( ) | [MASK] { changeLanguage , language } = useLocalization ( ) |
let values = { userName: formValues?.userName, password: formValues?.password } | let values = { userName : formValues ? .userName , password : formValues ? .password } | let [MASK] = [MASK] userName : formValues ? [MASK] , password : formValues ? .password } |
authService.login(values, formValues?.rememberMe) | authService.login ( values , formValues ? .rememberMe ) | authService.login ( values [MASK] formValues ? .rememberMe ) |
} | } | } |
} | } | } |
} | } | } |
changeLanguage(selectedItem.value) | changeLanguage ( selectedItem.value ) | changeLanguage ( selectedItem.value ) |
) | ) | [MASK] |
} | } | } |
export default Login | export default Login | export default Login |
import './theme.scss' | import './theme.scss ' | import [MASK] ' |
import LIGHT_THEME from './LightTheme' | import LIGHT_THEME from './LightTheme ' | import [MASK] [MASK] './LightTheme ' |
import DARK_THEME from './DarkTheme' | import DARK_THEME from './DarkTheme ' | import DARK_THEME [MASK] './DarkTheme ' |
export { LIGHT_THEME, DARK_THEME } | export { LIGHT_THEME , DARK_THEME } | export { [MASK] , DARK_THEME } |