Skip to content
This repository was archived by the owner on Feb 2, 2026. It is now read-only.

Commit c12432c

Browse files
authored
Merge pull request #3 from egovernments/merge-ui-internals
Merge UI internals
2 parents ceede10 + 0c10f7e commit c12432c

File tree

978 files changed

+94516
-11
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

978 files changed

+94516
-11
lines changed
Lines changed: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
2+
# Created by https://www.toptal.com/developers/gitignore/api/node,react
3+
# Edit at https://www.toptal.com/developers/gitignore?templates=node,react
4+
5+
### eGov ###
6+
packages/css/example/index.css
7+
package-lock.json
8+
locales/
9+
build/
10+
11+
### Node ###
12+
# Logs
13+
logs
14+
*.log
15+
npm-debug.log*
16+
yarn-debug.log*
17+
yarn-error.log*
18+
lerna-debug.log*
19+
20+
# Diagnostic reports (https://nodejs.org/api/report.html)
21+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
22+
23+
# Runtime data
24+
pids
25+
*.pid
26+
*.seed
27+
*.pid.lock
28+
29+
# Directory for instrumented libs generated by jscoverage/JSCover
30+
lib-cov
31+
32+
# Coverage directory used by tools like istanbul
33+
coverage
34+
*.lcov
35+
36+
# nyc test coverage
37+
.nyc_output
38+
39+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
40+
.grunt
41+
42+
# Bower dependency directory (https://bower.io/)
43+
bower_components
44+
45+
# node-waf configuration
46+
.lock-wscript
47+
48+
# Compiled binary addons (https://nodejs.org/api/addons.html)
49+
build/Release
50+
51+
# Dependency directories
52+
node_modules/
53+
jspm_packages/
54+
55+
# TypeScript v1 declaration files
56+
typings/
57+
58+
# TypeScript cache
59+
*.tsbuildinfo
60+
61+
# Optional npm cache directory
62+
.npm
63+
64+
# Optional eslint cache
65+
.eslintcache
66+
67+
# Microbundle cache
68+
.rpt2_cache/
69+
.rts2_cache_cjs/
70+
.rts2_cache_es/
71+
.rts2_cache_umd/
72+
73+
# Optional REPL history
74+
.node_repl_history
75+
76+
# Output of 'npm pack'
77+
*.tgz
78+
79+
# Yarn Integrity file
80+
.yarn-integrity
81+
82+
# dotenv environment variables file
83+
.env
84+
.env.test
85+
.env*.local
86+
87+
# parcel-bundler cache (https://parceljs.org/)
88+
.cache
89+
.parcel-cache
90+
91+
# Next.js build output
92+
.next
93+
94+
# Nuxt.js build / generate output
95+
.nuxt
96+
dist
97+
dist-storybook
98+
99+
# Gatsby files
100+
.cache/
101+
# Comment in the public line in if your project uses Gatsby and not Next.js
102+
# https://nextjs.org/blog/next-9-1#public-directory-support
103+
# public
104+
105+
# vuepress build output
106+
.vuepress/dist
107+
108+
# Serverless directories
109+
.serverless/
110+
111+
# FuseBox cache
112+
.fusebox/
113+
114+
# DynamoDB Local files
115+
.dynamodb/
116+
117+
# TernJS port file
118+
.tern-port
119+
120+
# Stores VSCode versions used for testing VSCode extensions
121+
.vscode-test
122+
123+
### react ###
124+
.DS_*
125+
**/*.backup.*
126+
**/*.back.*
127+
128+
node_modules
129+
130+
*.sublime*
131+
132+
psd
133+
thumb
134+
sketch
135+
136+
# vs code
137+
.vscode/
138+
139+
# End of https://www.toptal.com/developers/gitignore/api/node,react
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
2+
# See https://help.github.com/ignore-files/ for more about ignoring files.
3+
# dependencies
4+
node_modules
5+
# builds
6+
build
7+
dist
8+
.rpt2_cache
9+
# dev
10+
dev.css
11+
index.css
12+
index.compat.css
13+
index.min.css
14+
# misc
15+
.DS_Store
16+
.env
17+
.env.local
18+
.env.development.local
19+
.env.test.local
20+
.env.production.local
21+
npm-debug.log*
22+
yarn-debug.log*
23+
yarn-error.log*
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"printWidth": 150
3+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"editor.hover.delay": 500
3+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @jagankumar-egov @saurabh-egov @sathishp-eGov
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# digit-ui-internals
2+
3+
DIGIT (Digital Infrastructure for Governance, Impact & Transformation) is India's largest platform for governance services. Visit https://www.digit.org for more details.
4+
5+
This repository contains source code for web implementation of the new Digit UI modules with dependencies and libraries.
6+
7+
#### Starting local server
8+
9+
1. In the project run **yarn install** to install node modules and dependencies
10+
1. Run **yarn start** to start the local server
11+
12+
#### Reference Docs
13+
14+
###### Module wise reference docs
15+
16+
| Module | Reference Docs |
17+
| -------------- | ------------------------------------------------------------------------------------------------------------ |
18+
| PGR | https://digit-discuss.atlassian.net/wiki/spaces/EPE/pages/1285587062/PGR+UI+Implementation+-+Guidelines+FAQs |
19+
| FSM | https://digit-discuss.atlassian.net/wiki/spaces/EPE/pages/1290567710/FSM+UI+Implementation+-+Guidelines+FAQs |
20+
| DIGIT Services | https://digit-discuss.atlassian.net/wiki/spaces/DD/pages/647364616/DIGIT+Services |
21+
22+
###### Dependencies and their references
23+
24+
1. https://www.npmjs.com/package/react-query
25+
2. https://react-redux.js.org/
26+
3. https://react-hook-form.com/
27+
4. https://www.npmjs.com/package/react-table
28+
5. https://www.npmjs.com/package/react-time-picker
29+
6. https://reactrouter.com/web/guides/quick-start
30+
7. https://recharts.org/
31+
32+
#### License
33+
34+
These reference apps are released under MIT
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/bin/bash
2+
3+
BASEDIR="$( cd "$( dirname "$0" )" && pwd )"
4+
5+
msg() {
6+
echo -e "\n\n\033[32;32m$1\033[0m"
7+
}
8+
9+
msg "Cleaning root"
10+
rm -rf node_modules
11+
12+
msg "Cleaning css"
13+
cd "$BASEDIR/packages/css" && rm -rf node_modules
14+
15+
msg "Cleaning libraries"
16+
cd "$BASEDIR/packages/libraries" && rm -rf node_modules
17+
18+
msg "Cleaning react-components"
19+
cd "$BASEDIR/packages/react-components" && rm -rf node_modules
20+
21+
msg "Cleaning PGR module"
22+
cd "$BASEDIR/packages/modules/pgr" && rm -rf node_modules
23+
24+
msg "Cleaning FSM module"
25+
cd "$BASEDIR/packages/modules/fsm" && rm -rf node_modules
26+
27+
msg "Cleaning Core module"
28+
cd "$BASEDIR/packages/modules/core" && rm -rf node_modules
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"name": "@egovernments/digit-ui-example",
3+
"version": "1.3.0",
4+
"main": "index.js",
5+
"license": "MIT",
6+
"private": true,
7+
"homepage": "digit-ui/",
8+
"scripts": {
9+
"start": "react-scripts start"
10+
},
11+
"devDependencies": {
12+
"@egovernments/digit-ui-libraries": "^1.3.0",
13+
"@egovernments/digit-ui-module-common": "^1.3.0",
14+
"@egovernments/digit-ui-module-fsm": "^1.3.0",
15+
"@egovernments/digit-ui-module-pgr": "^1.3.0",
16+
"@egovernments/digit-ui-module-pt": "^1.3.0",
17+
"@egovernments/digit-ui-module-mcollect": "^1.3.0",
18+
"@egovernments/digit-ui-module-tl":"^1.3.0",
19+
"@egovernments/digit-ui-module-receipts":"^1.3.0",
20+
"http-proxy-middleware": "^1.0.5",
21+
"react": "^17.0.0",
22+
"react-dom": "^17.0.0",
23+
"react-i18next": "^11.7.3",
24+
"react-router-dom": "^5.2.0",
25+
"react-scripts": "^4.0.1"
26+
},
27+
"browserslist": {
28+
"production": [
29+
">0.2%",
30+
"not dead",
31+
"not op_mini all"
32+
],
33+
"development": [
34+
"last 1 chrome version",
35+
"last 1 firefox version",
36+
"last 1 safari version"
37+
]
38+
}
39+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8"/>
5+
<link rel="icon" href="https://cdn.jsdelivr.net/npm/@egovernments/digit-ui-css/img/browser-icon.png"/>
6+
<link href="https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;500;700&family=Roboto:wght@400;500;700&display=swap" rel='stylesheet' type='text/css'>
7+
<meta name="viewport" content="width=device-width, initial-scale=1"/>
8+
<meta name="theme-color" content="#00bcd1"/>
9+
<title>mSeva</title>
10+
<!-- <link rel="stylesheet" href="https://unpkg.com/@egovernments/digit-ui-css/dist/index.css"/> -->
11+
<script src="https://s3.ap-south-1.amazonaws.com/egov-dev-assets/globalConfigs.js"></script>
12+
<!-- <script>
13+
var globalConfigs = (function() {
14+
var stateTenantId = 'pg'
15+
var gmaps_api_key = 'AIzaSyAQOd09-vjmk1sXFb_ZQYDz2nlfhXq7Wf8'
16+
var getConfig = function(key) {
17+
if(key === 'STATE_LEVEL_TENANT_ID'){
18+
return stateTenantId;
19+
}
20+
else if(key === 'GMAPS_API_KEY'){
21+
return gmaps_api_key;
22+
}
23+
};
24+
return {
25+
getConfig
26+
};
27+
}());
28+
</script> -->
29+
</head>
30+
<body>
31+
<noscript>You need to enable JavaScript to run this app.</noscript>
32+
<div id="root"></div>
33+
</body>
34+
35+
</html>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
class Registry {
2+
constructor(registry = {}) {
3+
this._registry = registry;
4+
}
5+
6+
getComponent(id) {
7+
return this._registry[id];
8+
}
9+
}
10+
11+
export default Registry;

0 commit comments

Comments
 (0)