Pārlūkot izejas kodu

update wordings and userprofile

CR003
Alex Cheung pirms 1 gada
vecāks
revīzija
bd313899b5
13 mainītis faili ar 33 papildinājumiem un 15 dzēšanām
  1. +1
    -0
      src/pages/DemandNote/Search_Public/SearchForm.js
  2. +1
    -0
      src/pages/Payment/Search_Public/SearchForm.js
  3. +1
    -0
      src/pages/Proof/Search_Public/SearchForm.js
  4. +1
    -0
      src/pages/PublicNotice/ListPanel/SearchPublicNoticeForm.js
  5. +1
    -1
      src/pages/User/ManagePage_OrgPublic/index.js
  6. +2
    -2
      src/pages/authentication/ForgotPassword/AuthCallback/index.js
  7. +2
    -2
      src/pages/authentication/ForgotUsername/AuthCallback/index.js
  8. +16
    -5
      src/pages/authentication/auth-forms/CustomFormWizard.js
  9. +4
    -4
      src/pages/dashboard/Public/Notice.js
  10. +1
    -1
      src/translations/en.json
  11. +1
    -0
      src/translations/zh-CN.json
  12. +1
    -0
      src/translations/zh-HK.json
  13. +1
    -0
      src/utils/Combo.js

+ 1
- 0
src/pages/DemandNote/Search_Public/SearchForm.js Parādīt failu

@@ -246,6 +246,7 @@ const SearchDemandNoteForm = ({ applySearch, searchCriteria, issueComboData
{...register("status")}
id="status"
size="small"
disableClearable
options={ComboData.denmandNoteStatus_Public}
getOptionLabel={(option) => option?.i18nLabel ? intl.formatMessage({ id: option.i18nLabel }) : ""}
inputValue={selectedStatus?.i18nLabel ? intl.formatMessage({ id: selectedStatus.i18nLabel }) : ""}


+ 1
- 0
src/pages/Payment/Search_Public/SearchForm.js Parādīt failu

@@ -181,6 +181,7 @@ const SearchPublicNoticeForm = ({ applySearch, searchCriteria }) => {
disablePortal={false}
id="status"
size="small"
disableClearable
filterOptions={(options) => options}
options={ComboData.paymentStatus}
value={status}


+ 1
- 0
src/pages/Proof/Search_Public/SearchForm.js Parādīt failu

@@ -314,6 +314,7 @@ const SearchPublicNoticeForm = ({ applySearch, searchCriteria, issueComboData
disablePortal={false}
size="small"
id="status"
disableClearable
filterOptions={(options) => options}
options={ComboData.proofStatusFull}
value={status}


+ 1
- 0
src/pages/PublicNotice/ListPanel/SearchPublicNoticeForm.js Parādīt failu

@@ -196,6 +196,7 @@ const SearchPublicNoticeForm = ({ applySearch, searchCriteria }) => {
{...register("status")}
id="status"
size="small"
disableClearable
// filterOptions={(options)=>options}
options={
localStorage.getItem('userData').creditor ?


+ 1
- 1
src/pages/User/ManagePage_OrgPublic/index.js Parādīt failu

@@ -191,7 +191,7 @@ const ManageOrgUserPage = () => {
width: isMdOrLg ? 'auto' : 160,
flex: isMdOrLg ? 1 : undefined,
renderCell: (params) => {
console.log(params);
// console.log(params);
return (
<>
{params.row.id == userId ?


+ 2
- 2
src/pages/authentication/ForgotPassword/AuthCallback/index.js Parādīt failu

@@ -52,7 +52,7 @@ const Index = () => {
const intl = useIntl();
React.useEffect(() => {
console.log(params);
// console.log(params);
setEnterUseEffect(true)
}, []);

@@ -63,7 +63,7 @@ const Index = () => {
}, [enterUseEffect])

const handleVerify = async () => {
console.log(params);
// console.log(params);
await axios.get(UrlUtils.GET_FORGOT_PASSWORD_VERIFY_USER_ACCOUNT, {
params: {
email: decodeURIComponent(params.email),


+ 2
- 2
src/pages/authentication/ForgotUsername/AuthCallback/index.js Parādīt failu

@@ -55,7 +55,7 @@ const Index = () => {
const intl = useIntl();
React.useEffect(() => {
console.log(params);
// console.log(params);
setEnterUseEffect(true)
}, []);

@@ -67,7 +67,7 @@ const Index = () => {
}, [enterUseEffect])

const handleVerify = async () => {
console.log(params);
// console.log(params);
await axios.get(UrlUtils.GET_FORGOT_PASSWORD_VERIFY_USER_ACCOUNT, {
params: {
email: decodeURIComponent(params.email),


+ 16
- 5
src/pages/authentication/auth-forms/CustomFormWizard.js Parādīt failu

@@ -113,6 +113,7 @@ const CustomFormWizard = (props) => {
const [checkIdDocHKIDNumberBlur, setCheckIdDocHKIDNumberBlur] = useState(false)
const [checkDigit, setCheckDigit] = useState(document.getElementById("checkDigit-login"))
const [checkCheckDigitBlur, setCheckCheckDigitBlur] = useState(false)
const [checkHKIdDocWithCheckDigit, setCheckHKIdDocWithCheckDigit] = useState(false)
const email = document.getElementById("email-login")
const [checkEmail, setCheckEmail] = useState(false)
const [checkEmailBlur, setCheckEmailBlur] = useState(false)
@@ -553,7 +554,12 @@ const CustomFormWizard = (props) => {
// }
switch (selectedIdDocType) {
case "HKID":
if (checkDigit === "") return false
if (checkDigit === ""){
setCheckHKIdDocWithCheckDigit(true)
return false
} else{
setCheckHKIdDocWithCheckDigit(false)
}
if (idNo.match(pattern_HKIDv1)) {
return true
} else if (idNo.match(pattern_HKIDv2)) {
@@ -701,7 +707,7 @@ const CustomFormWizard = (props) => {
idNo: yup.string().required(getRequiredErrStr('number'))
.matches(/^[aA-zZ0-9\s]+$/, { message: displayErrorMsg(`${selectedIdDocInputType}${intl.formatMessage({ id: 'noSpecialCharacter' })}`) })
.matches(/^\S*$/, { message: displayErrorMsg(`${selectedIdDocInputType}${intl.formatMessage({ id: 'noSpace' })}`) })
.test('checkIDCardFormat', displayErrorMsg(`${intl.formatMessage({ id: 'requiredValid' })}${selectedIdDocInputType}${intl.formatMessage({ id: 'number' })}`), function (value) {
.test('checkIDCardFormat', displayErrorMsg(`${intl.formatMessage({ id: 'requiredValid' })}${selectedIdDocInputType==undefined?"":selectedIdDocInputType}${intl.formatMessage({ id: 'number' })}`), function (value) {
const idDocType = selectedIdDocType.type;
var pattern_HKIDv1 = /^[A-Z]{1}[0-9]{6}$/;
var pattern_HKIDv2 = /^[A-Z]{2}[0-9]{6}$/;
@@ -1085,7 +1091,7 @@ const CustomFormWizard = (props) => {
placeholder={intl.formatMessage({ id: 'idDocNumber' })}
fullWidth
sx={{ mr: 1 }}
error={Boolean(formik.touched.idNo && formik.errors.idNo && checkIdDocNumber)}
error={Boolean(formik.touched.idNo && formik.errors.idNo && checkIdDocNumber && checkHKIdDocWithCheckDigit)}
onBlur={formik.handleBlur}
inputProps={{
maxLength: selectedIdDocType.type === 'HKID' ? 8 : 18,
@@ -1109,7 +1115,12 @@ const CustomFormWizard = (props) => {
)}
{checkIdDocNumber && (
<FormHelperText error id="helper-text-idNo-signup">
<FormattedMessage id="usernameTaken" />
<FormattedMessage id="idNoTaken" />
</FormHelperText>
)}
{checkHKIdDocWithCheckDigit && (
<FormHelperText error id="helper-text-idNo-checkdigit-signup">
<FormattedMessage id="requiredNumberInQuote" />
</FormHelperText>
)}
</Stack>
@@ -1188,7 +1199,7 @@ const CustomFormWizard = (props) => {
)}
{checkIdDocNumber && (
<FormHelperText error id="helper-text-idNo-signup">
<FormattedMessage id="usernameTaken" />
<FormattedMessage id="idNoTaken" />
</FormHelperText>
)}
</Stack>


+ 4
- 4
src/pages/dashboard/Public/Notice.js Parādīt failu

@@ -31,10 +31,10 @@ const SearchDemandNoteForm = (props) => {
if(listData == []) return;
listData.map((item) => {
list.push(
<Stack direction="column" >
<Stack direction="column">
<Typography variant='h4' align="justify"><b>{locale === 'en' ?item.subjectEng:locale === 'zh-HK' ?item.subjectCht:item.subjectChs}</b></Typography>
<Typography align="justify">{DateUtils.dateValue(item.announceDate)}</Typography>
<Typography align="justify"sx={{ pt: 1 }}>{locale === 'en' ?item.contentEng:locale === 'zh-HK' ?item.contentCht:item.contentChs}</Typography>
<Typography sx={{pt: 1}} align="justify">{locale === 'en' ?item.contentEng:locale === 'zh-HK' ?item.contentCht:item.contentChs}</Typography>
<Divider fullWidth sx={{ pt: 1 }}></Divider>
</Stack>
)
@@ -51,10 +51,10 @@ const SearchDemandNoteForm = (props) => {


return (
<MainCard xs={12} md={12} lg={12}
<MainCard
border={false}
content={false}
sx={{ backgroundColor: '#fff' }}
sx={{ backgroundColor: '#fff', }}
>
<Stack direction="column" spacing={4}>
{itemList}


+ 1
- 1
src/translations/en.json Parādīt failu

@@ -198,7 +198,7 @@
"createOrReActivate": "Create account",
"usernameTaken": "This user login name has been registered, please use another user login name",
"userRegistered": "This user has already registered. Please return to the login page and log in.",
"idNoTaken": "This user login name has been registered, please use another user login name",
"idNoTaken": "This identification number has been registered",

"user": "User",
"personalUser": "Personal User",


+ 1
- 0
src/translations/zh-CN.json Parādīt failu

@@ -233,6 +233,7 @@
"createOrReActivate": "建立帐户",
"usernameTaken": "此用户登入名称已被注册,请使用其他用户登入名称。",
"userRegistered": "此用户已注册,请返回登入页面登入。",
"idNoTaken": "此证件已被注册。",

"user": "用戶",
"personalUser": "個人用戶",


+ 1
- 0
src/translations/zh-HK.json Parādīt failu

@@ -234,6 +234,7 @@
"createOrReActivate": "建立帳戶",
"usernameTaken": "此用戶登入名稱已被註冊,請使用其他用戶登入名稱",
"userRegistered": "此用戶已註冊,請返回登入頁面登入。",
"idNoTaken": "此證件已被註冊。",

"user": "用戶",
"personalUser": "個人用戶",


+ 1
- 0
src/utils/Combo.js Parādīt failu

@@ -15,6 +15,7 @@ export default function Combo ({valueName, disabled, form, dataList, filterOptio
id={valueName}
name={valueName}
disabled={disabled}
disableClearable
value={value}
inputValue={inputValue}
filterOptions={filterOptions}


Notiek ielāde…
Atcelt
Saglabāt