This repository has been archived by the owner on Nov 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #509 from egovernments/pgr-develop
Pgr develop
- Loading branch information
Showing
1,814 changed files
with
182,603 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
web/digit-ui-internals | ||
.env | ||
.eslintcache | ||
|
||
# yarn $ | ||
.yarn | ||
yarn.lock | ||
.yarnrc.yml | ||
|
||
# dependencies | ||
node_modules | ||
.yarn | ||
/.pnp | ||
.pnp.js | ||
|
||
# testing | ||
/coverage | ||
|
||
# production | ||
/web/build | ||
dist | ||
# misc | ||
.DS_Store | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* |
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* @jagankumar-egov @saurabh-egov @sathishp-eGov |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Digit UI | ||
DIGIT (Digital Infrastructure for Governance, Impact & Transformation) is India's largest platform for governance services. Visit https://www.digit.org for more details. | ||
|
||
This repository contains source code for web implementation of the new Digit UI modules with dependencies and libraries. | ||
|
||
#### Starting local server | ||
1. To run server locally first change directory to **web** subdirectory | ||
1. In the project run **yarn install** to install node modules and dependencies | ||
1. Run **yarn start** to start the local server | ||
|
||
#### Updating modules | ||
To update the modules run *install-dep.sh* script this will pull all the updates from *micro-ui-internals* subfolder | ||
|
||
#### Reference Docs | ||
|
||
###### Module wise reference docs | ||
Module | Reference Docs | ||
------ | -------------- | ||
PGR | https://digit-discuss.atlassian.net/wiki/spaces/EPE/pages/1285587062/PGR+UI+Implementation+-+Guidelines+FAQs | ||
FSM | https://digit-discuss.atlassian.net/wiki/spaces/EPE/pages/1290567710/FSM+UI+Implementation+-+Guidelines+FAQs | ||
DIGIT Services | https://digit-discuss.atlassian.net/wiki/spaces/DD/pages/647364616/DIGIT+Services | ||
|
||
###### Dependencies and their references | ||
1. https://www.npmjs.com/package/react-query | ||
2. https://react-redux.js.org/ | ||
3. https://react-hook-form.com/ | ||
4. https://www.npmjs.com/package/react-table | ||
5. https://www.npmjs.com/package/react-time-picker | ||
6. https://reactrouter.com/web/guides/quick-start | ||
7. https://recharts.org/ | ||
|
||
#### License | ||
These reference apps are released under MIT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"name": "digit-ui", | ||
"version": "1.7.0-beta.1" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"presets": [ | ||
"@babel/preset-env","@babel/preset-react" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
REACT_APP_STATE_LEVEL_TENANT_ID=pb | ||
REACT_APP_PROXY_URL=https://qa.digit.org |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
exports.files = { | ||
javascripts: { | ||
joinTo: { | ||
'vendor.js': /^(?!app)/, | ||
'App.js': /^app/ | ||
} | ||
}, | ||
stylesheets: {joinTo: 'app.css'} | ||
}; | ||
|
||
exports.plugins = { | ||
babel: {presets: ['latest', 'react']}, | ||
postcss: {processors: [require('autoprefixer')]} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
FROM egovio/alpine-node-builder-14:yarn AS build | ||
#FROM ghcr.io/egovernments/alpine-node-builder-14:yarn AS build | ||
RUN apk update && apk upgrade | ||
RUN apk add --no-cache git>2.30.0 | ||
ARG WORK_DIR | ||
WORKDIR /app | ||
ENV NODE_OPTIONS "--max-old-space-size=4096" | ||
ENV GENERATE_SOURCEMAP "false" | ||
|
||
COPY ${WORK_DIR} . | ||
RUN ls -lah | ||
|
||
#RUN node web/envs.js | ||
RUN cd web/ \ | ||
&& node envs.js \ | ||
&& node -e 'console.log(v8.getHeapStatistics().heap_size_limit/(1024*1024))' \ | ||
&& ./install-deps.sh \ | ||
&& yarn install \ | ||
&& yarn build | ||
|
||
FROM nginx:mainline-alpine | ||
#FROM ghcr.io/egovernments/nginx:mainline-alpine | ||
ENV WORK_DIR=/var/web/digit-ui | ||
|
||
RUN mkdir -p ${WORK_DIR} | ||
|
||
COPY --from=build /app/web/build ${WORK_DIR}/ | ||
COPY --from=build /app/web/docker/nginx.conf /etc/nginx/conf.d/default.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#FROM egovio/alpine-node-builder-14:yarn AS build | ||
FROM ghcr.io/egovernments/alpine-node-builder-14:yarn AS build | ||
RUN apk update && apk upgrade | ||
RUN apk add --no-cache git>2.30.0 | ||
ARG WORK_DIR | ||
WORKDIR /app | ||
ENV NODE_OPTIONS "--max-old-space-size=1792" | ||
|
||
COPY ${WORK_DIR} . | ||
RUN ls -lah | ||
|
||
#RUN node web/envs.js | ||
RUN cd web/ \ | ||
&& node envs.js \ | ||
&& ./install-deps.sh \ | ||
&& yarn install \ | ||
&& yarn build | ||
|
||
#FROM nginx:mainline-alpine | ||
FROM ghcr.io/egovernments/nginx:mainline-alpine | ||
ENV WORK_DIR=/var/web/digit-ui | ||
|
||
RUN mkdir -p ${WORK_DIR} | ||
|
||
COPY --from=build /app/web/build ${WORK_DIR}/ | ||
COPY --from=build /app/web/docker/nginx.conf /etc/nginx/conf.d/default.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#FROM egovio/alpine-node-builder-14:yarn AS build | ||
FROM ghcr.io/egovernments/alpine-node-builder-14:yarn AS build | ||
RUN apk update && apk upgrade | ||
RUN apk add --no-cache git>2.30.0 | ||
ARG WORK_DIR | ||
WORKDIR /app | ||
ENV NODE_OPTIONS "--max-old-space-size=3792" | ||
|
||
COPY ${WORK_DIR} . | ||
RUN ls -lah | ||
|
||
#RUN node web/envs.js | ||
RUN cd web/ \ | ||
&& node envs.js \ | ||
&& yarn install \ | ||
&& yarn build | ||
|
||
#FROM nginx:mainline-alpine | ||
FROM ghcr.io/egovernments/nginx:mainline-alpine | ||
ENV WORK_DIR=/var/web/digit-ui | ||
|
||
RUN mkdir -p ${WORK_DIR} | ||
|
||
COPY --from=build /app/web/build ${WORK_DIR}/ | ||
COPY --from=build /app/web/docker/nginx.conf /etc/nginx/conf.d/default.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
server | ||
{ | ||
listen 80; | ||
underscores_in_headers on; | ||
|
||
location /digit-ui | ||
{ | ||
root /var/web; | ||
index index.html index.htm; | ||
try_files $uri $uri/ /digit-ui/index.html; | ||
} | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/sh | ||
|
||
BRANCH="$(git branch --show-current)" | ||
|
||
INTERNALS="micro-ui-internals" | ||
|
||
cd $INTERNALS && echo "installing packages" && yarn install && echo "starting build" && yarn build && echo "building finished" && find . -name "node_modules" -type d -prune -print -exec rm -rf '{}' \; | ||
cd .. | ||
|
||
rm -rf node_modules | ||
rm -f yarn.lock | ||
|
||
# yarn install |
Oops, something went wrong.