diff --git a/src/assets/images/2025_lgce.jpg b/src/assets/images/2025_lgce.jpg new file mode 100644 index 0000000..0c58975 Binary files /dev/null and b/src/assets/images/2025_lgce.jpg differ diff --git a/src/assets/style/styles.css b/src/assets/style/styles.css index 0226765..196ca43 100644 --- a/src/assets/style/styles.css +++ b/src/assets/style/styles.css @@ -11,6 +11,10 @@ body, font-family: "Noto Sans HK", "Noto Sans SC"; } +.page-grey { + filter: grayscale(100%); +} + /* Chrome, Safari, Edge, Opera */ input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { diff --git a/src/index.js b/src/index.js index abf9204..9b7b3b4 100644 --- a/src/index.js +++ b/src/index.js @@ -1,4 +1,4 @@ -import { StrictMode } from 'react'; +import { StrictMode, useEffect, useContext } from 'react'; import { createRoot } from 'react-dom/client'; import { BrowserRouter } from 'react-router-dom'; import "./assets/style/styles.css" @@ -19,7 +19,31 @@ import reportWebVitals from './reportWebVitals'; import { I18nProvider } from "components/I18nProvider"; import { AutoLogoutProvider } from "components/AutoLogoutProvider"; import { RefreshTokenProvider } from "components/RefreshTokenProvider"; -import { SysSettingProvider } from "components/SysSettingProvider"; +import { SysSettingProvider, SysContext } from 'components/SysSettingProvider'; + +import { useLocation } from 'react-router-dom'; + +function GreyWrapper({ children }) { + const location = useLocation(); + const { sysSetting } = useContext(SysContext); + + useEffect(() => { + const isLoginPage = location.pathname === '/login'; + const enableGrey = sysSetting?.greyLogin === true; + + if (isLoginPage && enableGrey) { + document.body.classList.add('page-grey'); + } else { + document.body.classList.remove('page-grey'); + } + + return () => { + document.body.classList.remove('page-grey'); + }; + }, [location.pathname, sysSetting?.greyLogin]); + + return children; +} // ==============================|| MAIN - REACT DOM RENDER ||============================== // @@ -36,7 +60,9 @@ root.render( - + + + diff --git a/src/pages/DemandNote/Search/SearchForm.js b/src/pages/DemandNote/Search/SearchForm.js index debc2dd..8758ee7 100644 --- a/src/pages/DemandNote/Search/SearchForm.js +++ b/src/pages/DemandNote/Search/SearchForm.js @@ -436,6 +436,11 @@ const SearchDemandNoteForm = ({ applySearch, orgComboData, searchCriteria, issue '& .MuiOutlinedInput-root': { height: 40 } }} getOptionLabel={(option) => option.label} + sx={{ + '& .MuiInputBase-root': { alignItems: 'center' }, + '& .MuiAutocomplete-endAdornment': { top: '50%', transform: 'translateY(-50%)' }, + '& .MuiOutlinedInput-root': { height: 40 } + }} renderInput={(params) => ( { > Upload Files diff --git a/src/pages/Holiday/index.js b/src/pages/Holiday/index.js index e027b4e..9e3d501 100644 --- a/src/pages/Holiday/index.js +++ b/src/pages/Holiday/index.js @@ -172,11 +172,11 @@ const Index = () => { size="large" disabled={waitDownload} onClick={doExport} + aria-label="Export holiday template" > Export - {isGrantedAny(["MAINTAIN_GAZETTE_ISSUE"]) ? diff --git a/src/pages/Organization/SearchPage/OrganizationSearchForm.js b/src/pages/Organization/SearchPage/OrganizationSearchForm.js index 914354c..2173c1c 100644 --- a/src/pages/Organization/SearchPage/OrganizationSearchForm.js +++ b/src/pages/Organization/SearchPage/OrganizationSearchForm.js @@ -155,6 +155,11 @@ const OrganizationSearchForm = ({ applySearch, onGridReady, searchCriteria }) => '& .MuiOutlinedInput-root': { height: 40 } }} getOptionLabel={(option) => option.label} + sx={{ + '& .MuiInputBase-root': { alignItems: 'center' }, + '& .MuiAutocomplete-endAdornment': { top: '50%', transform: 'translateY(-50%)' }, + '& .MuiOutlinedInput-root': { height: 40 } + }} renderInput={(params) => ( { /> - - - { setColumnPrice(newValue) formik.values["fee"] = newValue.value * formik.values.length; }} + renderInput={(params) => ( { '& .MuiAutocomplete-endAdornment': { top: '50%', transform: 'translateY(-50%)' }, '& .MuiOutlinedInput-root': { height: 40 } }} - // sx={{"& .MuiInputBase-root": { height: "41px" },"#idDocType":{padding: "0px 0px 0px 0px"}, "& .MuiAutocomplete-endAdornment": { top: "auto" },}} renderInput={(params) => } /> diff --git a/src/pages/PublicNotice/Search_GLD/SearchForm.js b/src/pages/PublicNotice/Search_GLD/SearchForm.js index b0a49ee..eba29aa 100644 --- a/src/pages/PublicNotice/Search_GLD/SearchForm.js +++ b/src/pages/PublicNotice/Search_GLD/SearchForm.js @@ -279,11 +279,44 @@ const SearchPublicNoticeForm = ({ applySearch, orgComboData, searchCriteria, iss setSelectedStatus(newValue); } }} + getOptionLabel={(option) => option.label} sx={{ '& .MuiInputBase-root': { alignItems: 'center' }, '& .MuiAutocomplete-endAdornment': { top: '50%', transform: 'translateY(-50%)' }, '& .MuiOutlinedInput-root': { height: 40 } }} + renderInput={(params) => ( + + )} + /> + {/* { + const findAllIndex = newValue.findIndex((ele) => { + return ele.type === "all" + }) + + if (findAllIndex > -1) { + setSelectedStatus([newValue[findAllIndex]]); + setSelectedLabelsString('all') + } else { + const selectedLabels = newValue.map(option => option.type); + const selectedLabelsString = `${selectedLabels.join(',')}`; + setSelectedStatus(newValue); + setSelectedLabelsString(selectedLabelsString); + } + }} getOptionLabel={(option) => option.label} renderInput={(params) => ( option.label} sx={{ '& .MuiInputBase-root': { alignItems: 'center' }, '& .MuiAutocomplete-endAdornment': { top: '50%', transform: 'translateY(-50%)' }, '& .MuiOutlinedInput-root': { height: 40 } }} + renderInput={(params) => ( + + )} + /> + {/* { + const findAllIndex = newValue.findIndex((ele) => { + return ele.type === "all" + }) + + if (findAllIndex > -1) { + setSelectedStatus([newValue[findAllIndex]]); + setSelectedLabelsString('all') + } else { + const selectedLabels = newValue.map(option => option.type); + const selectedLabelsString = `${selectedLabels.join(',')}`; + setSelectedStatus(newValue); + setSelectedLabelsString(selectedLabelsString); + } + }} getOptionLabel={(option) => option.label} renderInput={(params) => ( import('./AuthCardCustom'))); @@ -18,26 +19,79 @@ const BackgroundHead = { }; const AuthWrapper = ({ children }) => { - // Move useIntl inside component const intl = useIntl(); + // --- Date control --- + const today = new Date(); + const showUntil = new Date("2025-11-27T00:00:00"); // 8 Dec 2025 and onwards = hide popup + const [openPopup, setOpenPopup] = useState(today < showUntil); + + const handleClosePopup = () => { + setOpenPopup(false); + }; + return ( + + + + + + + + + + + + {/* Page content */}
- - + @@ -47,15 +101,20 @@ const AuthWrapper = ({ children }) => { : -
+
} - @@ -67,28 +126,27 @@ const AuthWrapper = ({ children }) => { - { - checkSysEnv() !== '' ? - - User Acceptance Test Environment - - : "" - } + {checkSysEnv() !== '' ? ( + + User Acceptance Test Environment + + ) : ( + "" + )} - - - - - {children} - + + + + + {children} diff --git a/src/pages/authentication/auth-forms/IAmSmartFormWizard.js b/src/pages/authentication/auth-forms/IAmSmartFormWizard.js index 57e5e36..20ff7e9 100644 --- a/src/pages/authentication/auth-forms/IAmSmartFormWizard.js +++ b/src/pages/authentication/auth-forms/IAmSmartFormWizard.js @@ -644,12 +644,12 @@ const CustomFormWizard = (props) => { setCheckCountry(true) } }} - sx={{ - '& .MuiInputBase-root': { alignItems: 'center' }, - '& .MuiAutocomplete-endAdornment': { top: '50%', transform: 'translateY(-50%)' }, - '& .MuiOutlinedInput-root': { height: 40 } - }} - renderInput={(params) => } + sx={{ + '& .MuiInputBase-root': { alignItems: 'center' }, + '& .MuiAutocomplete-endAdornment': { top: '50%', transform: 'translateY(-50%)' }, + '& .MuiOutlinedInput-root': { height: 40 } + }} + renderInput={(params) => } /> {formik.touched.address1 && formik.errors.address1 && ( diff --git a/src/pages/extra-pages/PrivacyPolicyPage/PrivacyPolicy_cn.js b/src/pages/extra-pages/PrivacyPolicyPage/PrivacyPolicy_cn.js index 368c8e3..b06d57d 100644 --- a/src/pages/extra-pages/PrivacyPolicyPage/PrivacyPolicy_cn.js +++ b/src/pages/extra-pages/PrivacyPolicyPage/PrivacyPolicy_cn.js @@ -2,52 +2,112 @@ const AboutUs = () => { const content =` - -
-

私隐政策

-
    -
  1. - 申请人在本网站内所提供的个人资料会供申请刊登公共启事及为承担法律责任用途。 -
  2. -
  3. - 保障个人资料私隐是政府物流服务署每位成员所关注的事宜。我们尊重个人资料私隐,并承诺全面执行及遵从保障资料原则及《个人资料(私隐)条例》的所有相关条文。政府物流服务署建立及实施系统监控,以确保遵从以下六项保障资料原则 - – -
      -
    1. - 以合法和公平的方法收集足够但不超乎适度的个人资料,只供用于与政府物流服务署的职能或活动有关的合法目的 -
    2. -
    3. - 采取所有切实可行的步骤,以确保在顾及有关的个人资料会被使用于的目的下,所收集或保留的个人资料是准确的。删除就使用目的而言不再属有需要的个人资料; -
    4. -
    5. - 所收集的个人资料只可用作收集资料时资料会被使用于的目的或直接有关的目的,除非有关个人已就更改使用明示同意或法律准许有关使用; -
    6. -
    7. - 采取所有切实可行的步骤,以确保个人资料受保障而不受未获准许的或意外的查阅、处理、删除或使用所影响; -
    8. -
    9. - 采取所有切实可行的步骤,以确保任何人能获政府物流服务署告知所持有的个人资料的种类及资料将会为什么目的而使用的;以及 -
    10. -
    11. - 准许资料当事人查阅/改正其个人资料及以法律准许或规定的方式处理任何查阅/改正个人资料的要求。 -
    12. -
    -
  4. -
  5. - 如要查阅或改正本署所持有的个人资料,请向以下人士提出:

    - 香港北角渣华道333号
    - 北角政府合署10楼
    - 政府物流服务署
    - 保障资料主任
    -
    - ( 注:请以个人资料私隐专员指定的表格提出查阅资料的要求。) -
  6. -
-
+ + +
+ +

私隐政策

+ +

+ 保障个人资料私隐是政府物流服务署每位成员所关注的事宜。我们尊重个人资料私隐,并承诺全面执行及遵从保障资料原则及《个人资料(私隐)条例》的所有相关条文。政府物流服务署建立及实施系统监控,以确保遵从以下六项保障资料原则: +

+ +
    +
  1. 以合法和公平的方法收集足够但不过度的个人资料,只供用于与政府物流服务署职能或活动有关的合法目的;
  2. +
  3. 采取所有切实可行的步骤,以确保在顾及个人资料用途下所收集或保留的资料是准确的。删除不再需要的个人资料;
  4. +
  5. 所收集的个人资料只可用于收集时所说明或直接相关的目的,除非资料当事人明示同意或法律允许;
  6. +
  7. 采取所有切实可行的步骤,确保个人资料受到保障,不受未授权或意外查阅、处理、删除或使用的影响;
  8. +
  9. 采取所有切实可行的步骤,确保任何人可获知政府物流服务署所持有的个人资料种类及其用途;以及
  10. +
  11. 允许资料当事人查阅/更正其个人资料,并按法律许可或规定处理有关申请。
  12. +
+ +

收集个人资料声明

+ +

收集资料的目的

+

+ 申请人在本网站提供的个人资料将用于申请刊登公共启事及履行相关法律责任。提供资料属自愿性质;如资料不足,我们可能无法处理相关刊登申请。 +

+ +

披露个人资料

+

+ 政府物流服务署可能会向其他政策局/部门披露你在本网站提供的个人资料。 +

+ +

查阅个人资料

+

+ 如需查阅或更正本署持有的个人资料,请联络: +

+ +
+ 香港北角渣华道333号
+ 北角政府合署10楼
+ 政府物流服务署
+ 保障资料主任 +
+ +

+ 注:请以个人资料私隐专员指定的 + 表格 + 提出查阅资料申请。 +

+
` ; diff --git a/src/pages/extra-pages/PrivacyPolicyPage/PrivacyPolicy_en.js b/src/pages/extra-pages/PrivacyPolicyPage/PrivacyPolicy_en.js index 851ed5f..98a06f4 100644 --- a/src/pages/extra-pages/PrivacyPolicyPage/PrivacyPolicy_en.js +++ b/src/pages/extra-pages/PrivacyPolicyPage/PrivacyPolicy_en.js @@ -2,75 +2,142 @@ const Page = () => { const content = ` - -
-

Privacy Policy

-
    -
  1. - The personal data provided by the applicant in this website would be - used for application of public notice publication and for assumption - of liability. -
  2. -
  3. - The protection of personal data privacy is the concern of every member - of Government Logistics Department. We respect personal data privacy - and are committed to fully implementing and complying with the data - protection principles and all relevant provisions of the Personal Data - (Privacy) Ordinance. We develop and implement programme controls that - give effect to the six data protection principles below – -
      -
    1. - collect adequate, but not excessive, personal data by lawful and - fair means only for lawful purposes related to our functions or - activities; -
    2. -
    3. - take all reasonably practicable steps to ensure that the personal - data collected or retained are accurate, having regard to the - purposes for which they are to be used. Erase personal data no - longer than necessary for the purposes for which they are to be - used; -
    4. -
    5. - use the personal data collected only for purposes or directly - related purposes for which the data were to be used at the time of - collection, unless the individual concerned has given express - consent for a change of use or such use is permitted by law; -
    6. -
    7. - take all reasonably practicable steps to ensure that personal data - are protected against unauthorized or accidental access, - processing, erasure or other use; -
    8. -
    9. - take all reasonably practicable steps to ensure that a person can - be informed of the kinds of personal data that GLD holds and the - purposes for which the data are to be used; and -
    10. -
    11. - permit persons to access and correct personal data of which they - are the data subject and process any access/correction requests in - a manner permitted or required by law. -
    12. -
    -
  4. -
  5. - Requests for access to or correction of personal data held by us - should be addressed to –

    - Data Protection Officer
    - Government Logistics Department
    - 10/F, North Point Government Offices
    - 333 Java Road North Point
    - Hong Kong
    -
    - (Note: Data access requests should be made on a form specified by the Privacy Commissioner for Personal Data.) -
  6. -
-
+ + +
+

Privacy Policy

+ +

+ The protection of personal data privacy is the concern of every member of the Government Logistics + Department. We respect personal data privacy and are committed to fully implementing and complying + with the data protection principles and all relevant provisions of the Personal Data (Privacy) + Ordinance. We develop and implement programme controls that give effect to the six data protection + principles below: +

+ +
    +
  1. + collect adequate, but not excessive, personal data by lawful and fair means only for lawful + purposes related to our functions or activities; +
  2. +
  3. + take all reasonably practicable steps to ensure that the personal data collected or retained + are accurate, having regard to the purposes for which they are to be used. Erase personal data + no longer than necessary for the purposes for which they are to be used; +
  4. +
  5. + use the personal data collected only for purposes or directly related purposes for which the + data were to be used at the time of collection, unless the individual concerned has given express + consent for a change of use or such use is permitted by law; +
  6. +
  7. + take all reasonably practicable steps to ensure that personal data are protected against + unauthorized or accidental access, processing, erasure or other use; +
  8. +
  9. + take all reasonably practicable steps to ensure that a person can be informed of the kinds of + personal data that the Government Logistics Department holds and the purposes for which the + data are to be used; and +
  10. +
  11. + permit persons to access and correct personal data of which they are the data subject and + process any access/correction requests in a manner permitted or required by law. +
  12. +
+ +

Personal Information Collection Statement

+ +

Purpose of Collection

+

+ The personal data provided by the applicant in this website will be used for application of public + notice publication and for assumption of liability. The provision of the personal data is voluntary. + If the applicant does not provide sufficient information, we may not be able to process publication + of the relevant public notice. +

+ +

Disclosure of Personal Data

+

+ The personal data provided in this website may be disclosed to other bureaux / departments. +

+ +

Access to Personal Data

+

+ Requests for access to or correction of personal data held by us should be addressed to: +

+ +
+ Data Protection Officer
+ Government Logistics Department
+ 10/F, North Point Government Offices
+ 333 Java Road, North Point
+ Hong Kong +
+ +

+ Note: Data access requests should be made on a + + form + + specified by the Privacy Commissioner for Personal Data. +

+
` ; diff --git a/src/pages/extra-pages/PrivacyPolicyPage/PrivacyPolicy_zh.js b/src/pages/extra-pages/PrivacyPolicyPage/PrivacyPolicy_zh.js index 56037d7..39d9276 100644 --- a/src/pages/extra-pages/PrivacyPolicyPage/PrivacyPolicy_zh.js +++ b/src/pages/extra-pages/PrivacyPolicyPage/PrivacyPolicy_zh.js @@ -2,52 +2,112 @@ const AboutUs = () => { const content =` - -
-

私隱政策

-
    -
  1. - 申請人在本網站內所提供的個人資料會供申請刊登公共啟事及為承擔法律責任用途。 -
  2. -
  3. - 保障個人資料私隱是政府物流服務署每位成員所關注的事宜。我們尊重個人資料私隱,並承諾全面執行及遵從保障資料原則及《個人資料(私隱)條例》的所有相關條文。政府物流服務署建立及實施系統監控,以確保遵從以下六項保障資料原則 - – -
      -
    1. - 以合法和公平的方法收集足夠但不超乎適度的個人資料,只供用於與政府物流服務署的職能或活動有關的合法目的 -
    2. -
    3. - 採取所有切實可行的步驟,以確保在顧及有關的個人資料會被使用於的目的下,所收集或保留的個人資料是準確的。刪除就使用目的而言不再屬有需要的個人資料; -
    4. -
    5. - 所收集的個人資料只可用作收集資料時資料會被使用於的目的或直接有關的目的,除非有關個人已就更改使用明示同意或法律准許有關使用; -
    6. -
    7. - 採取所有切實可行的步驟,以確保個人資料受保障而不受未獲准許的或意外的查閱、處理、刪除或使用所影響; -
    8. -
    9. - 採取所有切實可行的步驟,以確保任何人能獲政府物流服務署告知所持有的個人資料的種類及資料將會為甚麼目的而使用的;以及 -
    10. -
    11. - 准許資料當事人查閱/改正其個人資料及以法律准許或規定的方式處理任何查閱/改正個人資料的要求。 -
    12. -
    -
  4. -
  5. - 如要查閱或改正本署所持有的個人資料,請向以下人士提出:

    - 香港北角渣華道333號
    - 北角政府合署10樓
    - 政府物流服務署
    - 保障資料主任
    -
    - ( 註:請以個人資料私隱專員指定的表格提出查閱資料的要求。) -
  6. -
-
+ + +
+ +

私隱政策

+ +

+ 保障個人資料私隱是政府物流服務署每位成員所關注的事宜。我們尊重個人資料私隱,並承諾全面執行及遵從保障資料原則及《個人資料(私隱)條例》的所有相關條文。政府物流服務署建立及實施系統監控,以確保遵從以下六項保障資料原則: +

+ +
    +
  1. 以合法和公平的方法收集足夠但不超乎適度的個人資料,只供用於與政府物流服務署的職能或活動有關的合法目的;
  2. +
  3. 採取所有切實可行的步驟,以確保在顧及有關的個人資料用途下,所收集或保留的個人資料是準確的。刪除就使用目的而言不再屬有需要的個人資料;
  4. +
  5. 所收集的個人資料只可用作收集時所指明或直接相關的目的,除非資料當事人明示同意作其他用途,或法律所准許;
  6. +
  7. 採取所有切實可行的步驟,以確保個人資料受保障而不受未獲准許或意外的查閱、處理、刪除或使用所影響;
  8. +
  9. 採取所有切實可行的步驟,以確保任何人能獲政府物流服務署告知所持有的個人資料種類及資料的使用目的;以及
  10. +
  11. 准許資料當事人查閱/改正其個人資料,並以法律准許或規定的方式處理有關查閱/改正要求。
  12. +
+ +

收集個人資料聲明

+ +

收集資料的目的

+

+ 申請人在本網站內提供的個人資料,會用於申請刊登公共啟事及履行相關法律責任。提供資料屬自願性質;如資料不足,我們可能無法處理相關公共啟事的刊登事宜。 +

+ +

披露個人資料

+

+ 政府物流服務署可能會向其他政策局/部門披露你在本網站提供的個人資料。 +

+ +

查閱個人資料

+

+ 如需查閱或改正本署所持有的個人資料,請聯絡: +

+ +
+ 香港北角渣華道333號
+ 北角政府合署10樓
+ 政府物流服務署
+ 保障資料主任 +
+ +

+ 註:請以個人資料私隱專員指定的 + 表格 + 提出查閱資料要求。 +

+
` ; diff --git a/src/translations/en.json b/src/translations/en.json index a327ba4..09c310d 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -598,5 +598,7 @@ "userGuidePub10":"10. Payment", "Dashboard": "Dashboard", - "event": "Event" + "event": "Event", + "lgce_alt": "2025 Legislative Council General Election", + "lgce_title": "2025 Legislative Council General Election" } \ No newline at end of file diff --git a/src/translations/zh-CN.json b/src/translations/zh-CN.json index 056364f..3861810 100644 --- a/src/translations/zh-CN.json +++ b/src/translations/zh-CN.json @@ -594,5 +594,7 @@ "userGuidePub10":"10. 付款", "Dashboard": "仪表板", - "event": "活动" + "event": "活动", + "lgce_alt": "2025年立法会换届选举", + "lgce_title": "2025年立法会换届选举" } \ No newline at end of file diff --git a/src/translations/zh-HK.json b/src/translations/zh-HK.json index 0c961b8..80f78c8 100644 --- a/src/translations/zh-HK.json +++ b/src/translations/zh-HK.json @@ -595,5 +595,7 @@ "userGuidePub10":"10. 付款", "Dashboard": "儀表板", - "event": "活動" + "event": "活動", + "lgce_alt": "2025年立法會換屆選舉", + "lgce_title": "2025年立法會換屆選舉" } \ No newline at end of file