Anna Ho vor 1 Jahr
Ursprung
Commit
6e7f38527b
9 geänderte Dateien mit 30 neuen und 17 gelöschten Zeilen
  1. +2
    -0
      src/auth/utils.js
  2. +1
    -1
      src/pages/DemandNote/Create/SearchForm.js
  3. +8
    -1
      src/pages/PublicNotice/Details_GLD/ApplicationDetailCard.js
  4. +2
    -2
      src/pages/authentication/IAmSmartRegister.js
  5. +1
    -1
      src/pages/authentication/auth-forms/IAmSmartFormWizard.js
  6. +1
    -0
      src/pages/iAmSmart/DirectLoginCallback/index.js
  7. +1
    -0
      src/translations/en.json
  8. +13
    -12
      src/translations/zh-CN.json
  9. +1
    -0
      src/translations/zh-HK.json

+ 2
- 0
src/auth/utils.js Datei anzeigen

@@ -12,6 +12,8 @@ export const hostPath = `http://${hostname}:${hostPort}`;
export const apiPath = window.location.href.match("localhost:3000")?`${hostPath}/api`:(window.location.href.match(":3000")? "http://"+window.location.hostname+":8090/api":`/api`);
export const paymentPath = window.location.href.match("localhost:3000")?`${hostPath}/payment`:`/payment`;

export const delBugMode = true;

/**
* Testing:
* Domain: apigw-isit.staging-eid.gov.hk


+ 1
- 1
src/pages/DemandNote/Create/SearchForm.js Datei anzeigen

@@ -243,7 +243,7 @@ const SearchPublicNoticeForm = ({ applySearch, issueComboData, _paymentCount, _p
defaultValue={dueDate}
InputProps={{ inputProps: { min: DateUtils.dateStr(new Date()) } }}
onChange={(newValue) => {
setDueDate(DateUtils.dateStr(newValue))
setDueDate(newValue.currentTarget.value)
}}
InputLabelProps={{
shrink: true


+ 8
- 1
src/pages/PublicNotice/Details_GLD/ApplicationDetailCard.js Datei anzeigen

@@ -8,6 +8,7 @@ import {
Stack,
Dialog, DialogTitle, DialogContent, DialogActions, InputAdornment,
} from '@mui/material';
import {delBugMode} from "auth/utils";
const MainCard = Loadable(lazy(() => import('components/MainCard')));
import { useForm } from "react-hook-form";
import {
@@ -93,6 +94,11 @@ const ApplicationDetailCard = (
setStatus("notAccepted")
};

const setCompleteDisable=()=>{
if(delBugMode) return false;
return (new Date()).getTime() < DateUtils.convertToDate(applicationDetailData.gazetteIssueDetail.issueDate).getTime();
}

const complatedClick = () => () => {
let issueDate = DateUtils.convertToDate(applicationDetailData.gazetteIssueDetail.issueDate);
let current = new Date();
@@ -214,6 +220,7 @@ const ApplicationDetailCard = (
// size="large"
variant="contained"
onClick={doPublish()}
disabled={setCompleteDisable()}
sx={{
textTransform: 'capitalize',
alignItems: 'end',
@@ -230,7 +237,7 @@ const ApplicationDetailCard = (
// size="large"
variant="contained"
onClick={complatedClick()}
disabled={(new Date()).getTime() < DateUtils.convertToDate(applicationDetailData.gazetteIssueDetail.issueDate).getTime()}
disabled={setCompleteDisable()}
sx={{
textTransform: 'capitalize',
alignItems: 'end',


+ 2
- 2
src/pages/authentication/IAmSmartRegister.js Datei anzeigen

@@ -100,7 +100,7 @@ const Register = () => {

const handleNext = async () => {
if (!idNo) {
notifyActionError("資料,請返回注冊頁面。")
notifyActionError(intl.formatMessage({id: 'iAmSmartNoIdNoMsg'}))
return;
}
const captchaTest = await handleCaptcha();
@@ -169,7 +169,7 @@ const Register = () => {
</Typography>
<Stack direction="row" sx={{ pt: 2 }}>
<Stack sx={{ flex: '1 1 auto' }} />
<Button onClick={handleReset}><Typography variant="h5">Reset</Typography></Button>
<Button onClick={handleReset}><Typography variant="h5"> <FormattedMessage id="reset"/></Typography></Button>
</Stack>
</React.Fragment>
) : (


+ 1
- 1
src/pages/authentication/auth-forms/IAmSmartFormWizard.js Datei anzeigen

@@ -436,7 +436,7 @@ const CustomFormWizard = (props) => {
<Stack spacing={1}>
<InputLabel htmlFor="idDocType-signup">
<Typography variant="h5">
香港身份證: {iAmSmartData.idNo + "(" + iAmSmartData.checkDigit + ")"}
<FormattedMessage id="HKIDcard" />: {iAmSmartData.idNo + "(" + iAmSmartData.checkDigit + ")"}
</Typography>
</InputLabel>
</Stack>


+ 1
- 0
src/pages/iAmSmart/DirectLoginCallback/index.js Datei anzeigen

@@ -58,6 +58,7 @@ const Index = () => {
},
onError:(error)=>{
console.log(error);
window.location.assign("/iamsmart/loginFail");
}
});
}else{


+ 1
- 0
src/translations/en.json Datei anzeigen

@@ -80,6 +80,7 @@
"backToLogin": "Return to login page",
"registerSubmitted": "Account application submitted successfully.",
"registerFail": "Application failed, please try again later",
"iAmSmartNoIdNoMsg": "Invalid information, please return to the registration page.",

"mainPage": "Main Page",
"myPublicNotice": "My Public Notices",


+ 13
- 12
src/translations/zh-CN.json Datei anzeigen

@@ -63,7 +63,7 @@
"MSG.payMsg2_2": " 前 完成缴费,我们将于收到缴费确认后处理刊出事宜。" ,
"MSG.payMsg3": "如你在宪报期数{issueYear} 年{issueVolume} 卷, 第{issueNo} 期内有多于一个公共启事的申请,你可选择完成所有此期所有稿件校对确定后,于缴费期限前在「我的公共启事」内合并付款。 ",

"MSG.proofOutOfTime": "回逾时,请重新申请。",
"MSG.proofOutOfTime": "回逾时,请重新申请。",
"MSG.plzSelectApp": "请选择公共启事。",
"MSG.actionFail": "行动失败",
"MSG.paymentHolded": "申请编号 {appNo} 已正在付款的流程中,如相关付款没有成功,请于20分钟后再尝试付款,不便之处,请见谅!",
@@ -79,6 +79,7 @@
"backToLogin": "返回登入页面",
"registerSubmitted": "帐户申请已成功提交。",
"registerFail": "申请失败,请稍后尝试",
"iAmSmartNoIdNoMsg": "无效资料,请返回注册页面。",

"mainPage": "主页",
"publicNotice": "公共启事",
@@ -90,7 +91,7 @@
"publicNoticePaymentFPSPay": "公共启事:FPS付款",
"publicNoticePaymentProofDone": "公共启事:校对完成",
"publicNoticePaymentProofDoneAndPaid": "公共启事:校对完成及付款",
"publicNoticePaymentProofComment": "公共启事:校对回",
"publicNoticePaymentProofComment": "公共启事:校对回",
"publicNoticePaymentProofInfo": "公共启事:校对资料",
"proofRecord": "校对记录",
"onlinePaymentHistory": "网上付款记录",
@@ -300,8 +301,8 @@
"reject": "拒绝",
"cancelledStatus": "取消",
"inProgress": "进行中",
"replied": "已回",
"pendingReply": "未回",
"replied": "已回",
"pendingReply": "未回",
"processing": "处理中",
"pendingPayment": "待付款",
"pendingPublish": "待发布",
@@ -365,12 +366,12 @@
"proofId": "校对编号",
"proofDate": "校对日期",
"proofDateFrom": "校对日期(从)",
"replyDate": "回日期",
"replyDate": "回日期",
"fee": "费用",
"payFeeFor": "应缴费用",
"payFor": "支付",
"payFee": "支付金額",
"replyBefore": "此日期前回",
"replyBefore": "此日期前回",
"applicationPublishDate": "刊出日期",
"pleaseCheckReminder": "请下载下列印刷稿档案,并仔细校对",
"payAnd": "缴费及",
@@ -378,17 +379,17 @@
"paymentDeadline": "确定付印及缴费最后限期",
"before": "前",
"page": "页",
"proofReplyDate": "校对回日期",
"proofReply": "校对回",
"proofReplyDate": "校对回日期",
"proofReply": "校对回",
"proofErrorFree": "可以付印(稿件正确)",
"proofWithError": "未能付印(需要修改)",
"proofExpired": "回逾时,请重新申请。",
"proofExpired": "回逾时,请重新申请。",
"sign": "签署",
"requireLoginPassword": "请输入你的登入密码",
"submitReply": "提交回",
"submitReply": "提交回",
"requiredUploadFix": "请上载稿件修改的档案",
"upload": "上载",
"actionFail": "行动失败: 请检查内容并再次提交回",
"actionFail": "行动失败: 请检查内容并再次提交回",
"issueInvalidMsg": "行动失败: 无效宪报期数,请重新申请",
"singleCol":"一格位",
"doubleCol":"二格位",
@@ -434,7 +435,7 @@
"idNo": "身份证号码",
"country": "国家",
"district": "区",
"noRecordFound": "找不到記錄",
"noRecordFound": "找不到记录",
"rowsPerPage": "每页项数",
"date" : "日期",
"keyword": "关键字",


+ 1
- 0
src/translations/zh-HK.json Datei anzeigen

@@ -79,6 +79,7 @@
"backToLogin": "返回登入頁面",
"registerSubmitted": "帳戶申請已成功提交。",
"registerFail": "申請失敗,請稍後嘗試",
"iAmSmartNoIdNoMsg": "無效資料,請返回注冊頁面。",

"mainPage": "主頁",
"publicNotice": "公共啟事",


Laden…
Abbrechen
Speichern