Skip to content

Commit

Permalink
Merge pull request #247 from srikanth716/injiver-794-online-sharing-c…
Browse files Browse the repository at this point in the history
…ar-portal

Injiver 794 online sharing ovp and custome theme
  • Loading branch information
sree96 authored Dec 3, 2024
2 parents 10db593 + c026c13 commit c609b74
Show file tree
Hide file tree
Showing 170 changed files with 3,340 additions and 829 deletions.
4 changes: 2 additions & 2 deletions ui/.env
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
DEFAULT_TITLE=Inji Verify
DEFAULT_TITLE=Inji Verify CAR
DEFAULT_THEME=default_theme
DEFAULT_LANG=en
DEFAULT_LANG=pt
DEFAULT_FONT_URL=https://fonts.googleapis.com/css?family=Inter
OVP_QR_HEADER=INJI_OVP://
DEFAULT_FAVICON=favicon.ico
Expand Down
434 changes: 230 additions & 204 deletions ui/package-lock.json

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"i18next": "^23.11.2",
"patch-package": "^8.0.0",
"pdfjs-dist": "^4.5.136",
"qrcode.react": "^4.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-i18next": "^14.1.0",
Expand All @@ -35,6 +36,7 @@
"redux-saga": "^1.3.0",
"redux-saga-test-plan": "^4.0.6",
"typescript": "^4.9.5",
"uuid": "^11.0.3",
"web-did-resolver": "^2.0.27",
"web-vitals": "^2.1.4"
},
Expand Down
6 changes: 3 additions & 3 deletions ui/public/env.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
window._env_ = {
DEFAULT_TITLE: "Inji Verify",
DEFAULT_THEME: "default_theme",
DEFAULT_LANG: "en",
DEFAULT_TITLE: "Inji Verify CAR",
DEFAULT_THEME: "car_theme",
DEFAULT_LANG: "pt",
DEFAULT_FONT_URL: "https://fonts.googleapis.com/css?family=Inter",
OVP_QR_HEADER: "INJI_OVP://",
DEFAULT_FAVICON: "favicon.ico",
Expand Down
20 changes: 13 additions & 7 deletions ui/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import store, { RootState } from "./redux/store";
import { isRTL } from "./utils/i18n";
import { VerificationMethod } from "./types/data-types";
import { goToHomeScreen } from "./redux/features/verification/verification.slice";
import { Verify } from "./pages/Verify";

function switchToVerificationMethod(method: VerificationMethod) {
store.dispatch(goToHomeScreen({ method }));
Expand All @@ -31,6 +32,11 @@ const router = createBrowserRouter([
element: <Scan />,
loader: () => switchToVerificationMethod("SCAN"),
},
{
path: Pages.VerifyCredentials,
element: <Verify />,
loader: () => switchToVerificationMethod("VERIFY"),
},
{
path: Pages.Redirect,
element: <OvpRedirect />,
Expand All @@ -55,13 +61,13 @@ function App() {
document.body.classList.toggle('rtl', rtl);
}, [rtl]);

return (
<div className="font-base">
<RouterProvider router={router}/>
<AlertMessage isRtl={rtl} />
<PreloadImages imageUrls={preloadImages}/>
</div>
);
return (
<div className="font-base">
<RouterProvider router={router} />
<AlertMessage isRtl={rtl} />
<PreloadImages imageUrls={preloadImages} />
</div>
);
}

export default App;
10 changes: 10 additions & 0 deletions ui/src/assets/carTheme/arrow-down.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions ui/src/assets/carTheme/arrow-up.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions ui/src/assets/carTheme/camera-access-denied-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ui/src/assets/carTheme/cert.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ui/src/assets/carTheme/cert2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions ui/src/assets/carTheme/check.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
10 changes: 10 additions & 0 deletions ui/src/assets/carTheme/document.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions ui/src/assets/carTheme/download.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions ui/src/assets/carTheme/filter-lines.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions ui/src/assets/carTheme/globe.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit c609b74

Please sign in to comment.