Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
sanskarg348 committed Sep 14, 2022
0 parents commit d7fb374
Show file tree
Hide file tree
Showing 218 changed files with 208,473 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea/*
39 changes: 39 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
atri = "*"
fastapi = "*"
uvicorn = "*"
jsonpickle = "*"
python-multipart = "*"
atri-utils = "*"
passporteye = "*"
opencv-python = ">=4.1.1"
gdown = "*"
torch = ">=1.7.0"
matplotlib = ">=3.2.2"
numpy = ">=1.18.5"
pillow = ">=7.1.2"
pyyaml = ">=5.3.1"
requests = ">=2.23.0"
scipy = ">=1.4.1"
torchvision = ">=0.8.1"
tqdm = ">=4.64.0"
protobuf = "<4.21.3"
tensorboard = ">=2.4.1"
pandas = ">=1.1.4"
seaborn = ">=0.11.0"
ipython = "*"
psutil = "*"
thop = ">=0.1.1"
boto3 = "*"
python-dotenv = "*"
easyocr = "*"

[dev-packages]

[requires]
python_version = "3.8"
1,864 changes: 1,864 additions & 0 deletions Pipfile.lock

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions assets/Chat bubble.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 assets/Launch.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions assets/account_circle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
74 changes: 74 additions & 0 deletions assets/assets.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{
"unsplash_SFT9G3pAxLY.svg": {
"mime": "image/svg+xml"
},
"logo (1).svg": {
"mime": "image/svg+xml"
},
"logo (2).svg": {
"mime": "image/svg+xml"
},
"homepage_wallpaper.svg": {
"mime": "image/svg+xml"
},
"Chat bubble.svg": {
"mime": "image/svg+xml"
},
"Launch.svg": {
"mime": "image/svg+xml"
},
"exclaim.svg": {
"mime": "image/svg+xml"
},
"warning.svg": {
"mime": "image/svg+xml"
},
"wrong.svg": {
"mime": "image/svg+xml"
},
"left-arrow.svg": {
"mime": "image/svg+xml"
},
"right-arrow.svg": {
"mime": "image/svg+xml"
},
"right_disabled.svg": {
"mime": "image/svg+xml"
},
"warning_disabled.svg": {
"mime": "image/svg+xml"
},
"wrong-disabled.svg": {
"mime": "image/svg+xml"
},
"profile_pic_1.png": {
"mime": "image/png"
},
"profile_pic_3.png": {
"mime": "image/png"
},
"propfile_pic_2.png": {
"mime": "image/png"
},
"file_upload.svg": {
"mime": "image/svg+xml"
},
"run_test.svg": {
"mime": "image/svg+xml"
},
"check.svg": {
"mime": "image/svg+xml"
},
"login_wallpaper.png": {
"mime": "image/png"
},
"example_driving_license.png": {
"mime": "image/png"
},
"gray_circle.svg": {
"mime": "image/svg+xml"
},
"account_circle.svg": {
"mime": "image/svg+xml"
}
}
3 changes: 3 additions & 0 deletions assets/check.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 assets/example_driving_license.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions assets/exclaim.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/file_upload.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/gray_circle.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 assets/homepage_wallpaper.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/left-arrow.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 assets/login_wallpaper.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions assets/logo (1).svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions assets/logo (2).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 assets/profile_pic_1.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 assets/profile_pic_3.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 assets/propfile_pic_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/right-arrow.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 assets/right_disabled.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/run_test.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 assets/unsplash_SFT9G3pAxLY.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions assets/warning.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions assets/warning_disabled.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions assets/wrong-disabled.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions assets/wrong.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 atri.app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"virt_type": "pipenv",
"version": "0.0.46"
}
3 changes: 3 additions & 0 deletions atri_app/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["react-app", "prettier"]
}
2 changes: 2 additions & 0 deletions atri_app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/
dist/
21 changes: 21 additions & 0 deletions atri_app/app-node/src/getAppText.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import App from "../../app/src/App";
import ReactDOMServer from "react-dom/server";
import { StaticRouter } from "react-router-dom/server";

function renderRoute(App: React.FC, route: string): string {
const appStr = ReactDOMServer.renderToString(
<StaticRouter location={route}>
<App />
</StaticRouter>
);
return appStr;
}

export function getAppText(url: string, appHtmlContent: string) {
const appText = renderRoute(App, url);
const finalText = appHtmlContent.replace(
'<div id="root" style="height: 100vh"></div>',
`<div id="root" style="height: 100vh">${appText}</div>`
);
return finalText;
}
14 changes: 14 additions & 0 deletions atri_app/app/public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<style>@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');</style>
<style>@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Serif:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,400;1,500;1,600;1,700&display=swap');</style>
<title>Atri Labs</title>
</head>
<body>
<div id="root" style="height: 100vh"></div>
</body>
</html>
19 changes: 19 additions & 0 deletions atri_app/app/src/App.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { Routes, Route } from "react-router-dom";
import "./styles.css";
import Home from "./pages/Home.jsx";
import Viewtest from "./pages/Viewtest.jsx";
import Newtest from "./pages/Newtest.jsx";
import Newtestresult from "./pages/Newtestresult.jsx";
import Login from "./pages/Login.jsx";

export default function App() {
return (
<Routes>
<Route path="/" element={<Home />} />
<Route path="/viewtest" element={<Viewtest />} />
<Route path="/newtest" element={<Newtest />} />
<Route path="/newtestresult" element={<Newtestresult />} />
<Route path="/login" element={<Login />} />
</Routes>
);
}
21 changes: 21 additions & 0 deletions atri_app/app/src/hooks/useIoStore.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import create from "zustand";

const useIoStore = create((set) => {
return {
"Home": {},
"viewtest": {},
"newtest": {
"Upload1": {
"io": {
"files": {
"type": "files",
"mode": "upload"
}
}
}
},
"newtestresult": {},
"login": {}
}});

export default useIoStore;
Loading

0 comments on commit d7fb374

Please sign in to comment.