Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
131 commits
Select commit Hold shift + click to select a range
061db5c
(modify) : deletion fix for allowing only one file to delete in edit …
sohit-dg Mar 26, 2024
08ed1cd
(modify) : retrieval tab added for others organisation as well
sohit-dg Mar 27, 2024
725f607
(update) : replaced feedback endpoint
sohit-dg Apr 17, 2024
4c77268
Merge branch 'e_vistaar_test' into e_vistaar_dev
sohit-dg Apr 17, 2024
db9d5d5
(update) : isCostewardsParticipant flag added.
sohit-dg Apr 17, 2024
c8f20f0
(correct) : title corrections
sohit-dg Apr 17, 2024
c75a793
first commit for ict4g
kanhaiyasuthar0 May 20, 2024
a8d635a
FIX: save button and logo
kanhaiyasuthar0 May 20, 2024
3bcf9e0
(update) : added chip renderer component also rename the resourcename
sohit-dg May 21, 2024
cc76de0
FIX: some ui changes
kanhaiyasuthar0 May 28, 2024
b6ef11f
Merge branch 'ict4g_dev_latest' of github.com-personal:digitalgreenor…
kanhaiyasuthar0 May 30, 2024
2750620
NEW UI GLOBAL
kanhaiyasuthar0 Jun 1, 2024
a64c3f9
API changes for adding resource
kanhaiyasuthar0 Jun 1, 2024
88b12de
cat
kanhaiyasuthar0 Jun 3, 2024
eb1dcd1
FIX: removed the PII content in view side
kanhaiyasuthar0 Jun 3, 2024
b751f75
FIX: fixed the phone show in detail
kanhaiyasuthar0 Jun 4, 2024
f92ce97
FIX: fixed the phone show in detail
kanhaiyasuthar0 Jun 4, 2024
8bc5bc3
FIX: country in the localstorage
kanhaiyasuthar0 Jun 6, 2024
aae2fa3
FIX: added country in file upload
kanhaiyasuthar0 Jun 7, 2024
3dbd6ea
FIX: embeddings api changes
kanhaiyasuthar0 Jun 7, 2024
5b50834
ADD: added delete action on the resource card
kanhaiyasuthar0 Jun 7, 2024
b05cbf5
FIX: load more scroll fixes?
kanhaiyasuthar0 Jun 7, 2024
b07b05a
Merge branch 'ict4g_dev_latest' of github.com-personal:digitalgreenor…
kanhaiyasuthar0 Jun 7, 2024
3176493
FIX: navbar and merge of main branch
kanhaiyasuthar0 Jun 10, 2024
18da3e2
FIXES: navbar dashboard tab and embeddings
kanhaiyasuthar0 Jun 10, 2024
2bad532
Merge pull request #1375 from digitalgreenorg/global_fs_dev
kanhaiyasuthar0 Jun 10, 2024
db5eceb
FIX: sleep timer while edit upload and costeward card number issue fix
kanhaiyasuthar0 Jun 10, 2024
6ac9b72
Merge branch 'ict4g_dev_latest' of github.com-personal:digitalgreenor…
kanhaiyasuthar0 Jun 10, 2024
b072533
Merge pull request #1376 from digitalgreenorg/global_fs_dev
kanhaiyasuthar0 Jun 10, 2024
67573c2
FIX: scroll effect in other content got fixed
kanhaiyasuthar0 Jun 10, 2024
944fc8a
Merge pull request #1377 from digitalgreenorg/global_fs_dev
kanhaiyasuthar0 Jun 10, 2024
fbe9e80
FIX: enabled old cat in settings
kanhaiyasuthar0 Jun 10, 2024
568afd8
Merge pull request #1378 from digitalgreenorg/global_fs_dev
kanhaiyasuthar0 Jun 10, 2024
e89ee6e
add docx for content upload and also sleep time is reduced to zero
kanhaiyasuthar0 Jun 21, 2024
9c76a7d
sleep timer
kanhaiyasuthar0 Jun 21, 2024
a4c3254
FIX: added countries and subcat
kanhaiyasuthar0 Jun 27, 2024
4824b6a
Merge pull request #1391 from digitalgreenorg/platform_dev
kanhaiyasuthar0 Jun 27, 2024
ed5e76b
FIX: removed footer desc
kanhaiyasuthar0 Jul 1, 2024
0cdc0ba
Merge pull request #1392 from digitalgreenorg/platform_dev
kanhaiyasuthar0 Jul 1, 2024
f4e435b
FIX: title check
kanhaiyasuthar0 Jul 3, 2024
a54f8a6
FIX: title checks
kanhaiyasuthar0 Jul 3, 2024
3e5583b
Merge pull request #1393 from digitalgreenorg/platform_dev
kanhaiyasuthar0 Jul 3, 2024
90c036d
(update) : replaced the img file system path by complete url.
sohit-dg Jul 22, 2024
33bcee9
(update) : replaced the img file system path by complete url in view …
sohit-dg Jul 22, 2024
f559c78
Merge pull request #1396 from digitalgreenorg/platform_dev
ugeshdg Jul 24, 2024
30c971a
config modified
Sep 17, 2024
91406e7
FIX: added new scripts in package json and updated nginx code in the …
kanhaiyasuthar0 Sep 19, 2024
2eacd04
Merge pull request #1419 from digitalgreenorg/content_geo_enable_feature
kanhaiyasuthar0 Sep 19, 2024
fcde126
password enabled for login and settings
Sep 19, 2024
6ed440f
Merge branch 'platform_dev' of https://github.com/digitalgreenorg/far…
Sep 20, 2024
f117335
Merge branch 'platform_dev' of https://github.com/digitalgreenorg/far…
Sep 20, 2024
02d3fba
package changed
Sep 20, 2024
624c32f
review changes done
Sep 20, 2024
dcb8e14
Merge pull request #1420 from digitalgreenorg/password_enhancement
sohit-dg Sep 20, 2024
55ba90e
Temporarily added console to check the accessibility of the env.
sohit-dg Sep 23, 2024
8387087
Merge branch 'platform_dev' of https://github.com/digitalgreenorg/far…
Sep 23, 2024
127036e
Update env_config.js
shruthi-monika Sep 23, 2024
9589a6d
Merge pull request #1424 from digitalgreenorg/shruthi-monika-env-update
shruthi-monika Sep 23, 2024
ccece7f
update - Window -> window
sohit-dg Sep 23, 2024
d9fd05a
(add) : updated the source of env variable
sohitkumar Sep 23, 2024
c36e309
Merge branch 'platform_dev' of https://github.com/digitalgreenorg/far…
Sep 23, 2024
4d4a6ca
(update) : corrected the case of the window
sohit-dg Sep 23, 2024
42cadd8
Merge pull request #1433 from digitalgreenorg/platform_dev
ugeshdg Oct 1, 2024
d1b916a
Merge branch 'platform_dev' of https://github.com/digitalgreenorg/far…
Oct 1, 2024
1dac978
password_enhancement
Oct 3, 2024
2cb9010
Merge branch 'platform_dev' of https://github.com/digitalgreenorg/far…
Oct 3, 2024
208310f
password_enhancement
Oct 3, 2024
9766448
password_enhancement
Oct 3, 2024
786bbbc
Merge pull request #1436 from digitalgreenorg/password_enhancement
shruthi-monika Oct 3, 2024
ea9a5cd
Merge branch 'platform_dev' of https://github.com/digitalgreenorg/far…
Dec 4, 2024
f1151ce
reset password
Dec 4, 2024
d9d5cb1
platform
Dec 4, 2024
fc0df79
Merge pull request #1451 from digitalgreenorg/reset_password
shruthi-monika Dec 4, 2024
27863d0
Change country from empty string to object
Nilesh1409 Dec 6, 2024
ceec6f2
change resource payload county field
Nilesh1409 Dec 6, 2024
98760b9
(add): added functionality for action at file level component within …
sohitkumar Dec 9, 2024
3ed41ee
labels changed
Dec 9, 2024
394e09b
Merge branch 'platform_dev' of https://github.com/digitalgreenorg/far…
Dec 9, 2024
59b1cea
labels changed
Dec 9, 2024
6c2337f
Merge pull request #1452 from digitalgreenorg/new_requirements
shruthi-monika Dec 9, 2024
33aff21
(rm): commented extra action button
sohitkumar Dec 9, 2024
834b7eb
Merge pull request #1453 from digitalgreenorg/platform_dev
ugeshdg Dec 9, 2024
4b080ad
label change
Dec 10, 2024
b256e10
Merge pull request #1454 from digitalgreenorg/new_requirements
shruthi-monika Dec 10, 2024
846c2bc
payload fixed for file path
Dec 12, 2024
25fd478
Merge pull request #1456 from digitalgreenorg/new_requirements
shruthi-monika Dec 12, 2024
9c388ef
Add forms for four new content upload
kanhaiyasuthar0 Jan 13, 2025
629c738
Add : content api integration
Jan 20, 2025
ff02bd9
Merge pull request #1457 from digitalgreenorg/content_api
shruthi-monika Jan 21, 2025
4499df6
Add : content api integration
Jan 21, 2025
4e324f7
fix: dataset call fix for excel files and catergory mandatory made
Jan 21, 2025
f0f662d
Merge pull request #1458 from digitalgreenorg/content_api
shruthi-monika Jan 21, 2025
b905b69
Fix: Dataset filter call, login page logo, onboard navbar
Jan 22, 2025
516a667
Merge pull request #1459 from digitalgreenorg/dataset_request
shruthi-monika Jan 22, 2025
4c89470
Fix: content delete fix done
Jan 22, 2025
3f5fd8d
Merge pull request #1460 from digitalgreenorg/dataset_request
shruthi-monika Jan 22, 2025
afdbaf2
FIX: removed category from content
kanhaiyasuthar0 Jan 24, 2025
e4f34ce
Merge pull request #1461 from digitalgreenorg/category_removal/platfo…
kanhaiyasuthar0 Jan 24, 2025
5dbc0f7
Merge pull request #1455 from digitalgreenorg/platform_dev
ugeshdg Jan 24, 2025
cc6552f
FIX: button css fixes
kanhaiyasuthar0 Jan 27, 2025
76aa600
Merge branch 'platform_dev' of github.com-personal:digitalgreenorg/da…
kanhaiyasuthar0 Jan 27, 2025
eaaaccc
Merge pull request #1462 from digitalgreenorg/category_removal/platfo…
kanhaiyasuthar0 Jan 27, 2025
49aeadb
Merge pull request #1463 from digitalgreenorg/platform_dev
kanhaiyasuthar0 Jan 27, 2025
7644228
Content_fix_in_API_calls
Jan 29, 2025
b284636
Merge pull request #1464 from digitalgreenorg/content_fix
shruthi-monika Jan 29, 2025
3ded94a
ADD: added quick links:
Feb 20, 2025
3f487e2
Merge pull request #1465 from digitalgreenorg/fixes/platform
kanhaiyasuthar0 Feb 20, 2025
04bc24a
Merge pull request #1466 from digitalgreenorg/platform_dev
kanhaiyasuthar0 Feb 20, 2025
5948e62
API frequency UI added
Mar 5, 2025
7ae27a7
API frequency UI added
Mar 5, 2025
be774fa
Merge pull request #1467 from digitalgreenorg/LASREQ
shruthi-monika Mar 5, 2025
f88b55d
API integration done for API import
Mar 10, 2025
3078524
Merge pull request #1468 from digitalgreenorg/LASREQ
shruthi-monika Mar 10, 2025
bfcddae
Add : new req
Mar 13, 2025
c6db03d
Merge pull request #1469 from digitalgreenorg/LASREQ
shruthi-monika Mar 13, 2025
f25341b
Add : new req LOGO
Mar 16, 2025
1ad5177
Merge pull request #1470 from digitalgreenorg/LASREQ
shruthi-monika Mar 16, 2025
4850d72
dataset id reverted
Mar 17, 2025
5a8e385
Merge pull request #1471 from digitalgreenorg/LASREQ
shruthi-monika Mar 17, 2025
bb3eba9
recall status updated in dataset view
Mar 17, 2025
24a63a7
Merge pull request #1472 from digitalgreenorg/req
shruthi-monika Mar 17, 2025
bbc9f7b
Merge pull request #1473 from digitalgreenorg/platform_dev
ugeshdg Mar 21, 2025
bc01733
Hidden the chat icon in resources
Mar 27, 2025
02216b5
Merge pull request #1474 from digitalgreenorg/new_change/kanhaiya
kanhaiyasuthar0 Mar 27, 2025
f078f5f
Merge pull request #1475 from digitalgreenorg/platform_dev
kanhaiyasuthar0 Mar 27, 2025
4d82e78
change in label
Mar 27, 2025
ee38182
Merge pull request #1476 from digitalgreenorg/new_change/kanhaiya
kanhaiyasuthar0 Mar 27, 2025
6585bd3
Merge pull request #1477 from digitalgreenorg/platform_dev
kanhaiyasuthar0 Mar 27, 2025
99fcde1
Added base url and fix
Nilesh1409 May 21, 2025
2b879a7
removed env and change window to Window
Nilesh1409 May 21, 2025
bfa210a
Change Window to window
Nilesh1409 May 21, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,6 @@ yarn-error.log*
Jenkinsfile

package-lock.json
.env.production
.env.production

/envs
4 changes: 0 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@ RUN npm run build

# copy static files and run nginx server
FROM nginx:alpine
COPY ./nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build-image /app/build /usr/share/nginx/html
COPY ./public.crt /etc/nginx/cert/public.crt
COPY ./private.key /etc/nginx/cert/private.key
EXPOSE 80
EXPOSE 443
CMD ["nginx", "-g", "daemon off;"]

2 changes: 1 addition & 1 deletion env_frontend.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Set up endpoint for env retrieval
echo "Window.ENV_VARS = {" > /usr/share/nginx/html/env_config.js
echo "window.ENV_VARS = {" > /usr/share/nginx/html/env_config.js

# Collect enviroment variables for react
eval enviroment_variables="$(env | grep REACT_APP.*=)"
Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"caniuse-lite": "^1.0.30001444",
"chart.js": "^3.7.0",
"country-state-city": "^3.1.2",
"cross-env": "^7.0.3",
"date-fns": "^2.30.0",
"dotenv": "^16.3.1",
"echarts": "5.1.2",
Expand Down Expand Up @@ -77,8 +78,8 @@
"validator": "^13.7.0"
},
"scripts": {
"start": "env-cmd -f .env.production react-scripts --max-old-space-size=6144 start",
"build": "env-cmd -f .env.production react-scripts --max-old-space-size=6144 build",
"start": "NODE_OPTIONS=--max-old-space-size=6144 react-scripts start",
"build": "NODE_OPTIONS=--max-old-space-size=6144 react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"coverage": "react-scripts test --coverage --watchAll"
Expand All @@ -101,6 +102,8 @@
"devDependencies": {
"@testing-library/jest-dom": "^5.16.5",
"axios-mock-adapter": "^1.21.5",
"babel-jest": "^24.9.0",
"jest": "^24.9.0",
"jest-svg-transformer": "^1.0.0",
"msw": "^1.2.2"
},
Expand Down
9 changes: 2 additions & 7 deletions public/env_config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
Window.ENV_VARS = {
// REACT_APP_API_BASE_URL: "",
// REACT_APP_GOOGLE_CLIENT_ID: "",
// REACT_APP_BASE_URL: "",
// REACT_APP_CONNECTOR_HOSTING: "",
// REACT_APP_CONNECTOR_HOST_IP: "",

window.ENV_VARS = {
REACT_APP_BASEURL: "",
REACT_APP_BASEURL_without_slash: "",
REACT_APP_BASEURL_without_slash_view_data: "",
REACT_APP_LOGIN_WITH_PASSWORD: ""
};
15 changes: 7 additions & 8 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Explore Vistaar's premier Agricultural Data Sharing Platform, powered by FarmStack. Collaborate, analyze, and innovate in agriculture.
Join the future of Indians agriculture with our Data Sharing Platform, supported by FarmStack. Access, share, and transform agri data today.
FarmStack's Vistaar Agricultural Data Sharing Platform - the hub for sharing, discovering, and leveraging agricultural insights and knowledge.
Discover the power of data collaboration in Indian agriculture. Join FarmStack's Data Sharing Platform to drive growth and sustainability.
Get involved in India's agriculture revolution. FarmStack's Data Sharing Platform connects stakeholders for data-driven farming success."
<meta name="description" content="FarmStack : Powered by Digital Green" />
<link
rel="icon"
type="image/png"
sizes="192x192"
href="https://digitalgreen.org/wp-content/themes/digital-green/images/favicons/android-chrome-192x192.png"
/>
<!--
manifest.json provides metadata used when your web app is installed on a
Expand Down Expand Up @@ -40,7 +39,7 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>Vistaar Agricultural Data Sharing Platform</title>
<title>FarmStack : Powered by Digital Green</title>
</head>

<body>
Expand Down
12 changes: 12 additions & 0 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,18 @@ function App() {
});
};
useEffect(() => {
// TODO: to be removed
console.log(
"🚀 ~ verifyUserDataOfLocal ~ UrlConstant.base_url:",
UrlConstant.base_url,
window?.ENV_VARS?.base_url,
process.env.base_url
);
console.log(
window?.ENV_VARS?.REACT_APP_LOGIN_WITH_PASSWORD ||
process.env.REACT_APP_LOGIN_WITH_PASSWORD,
"REACT_APP_LOGIN_WITH_PASSWORD"
);
verifyUserDataOfLocal();
getAdminData();
}, []);
Expand Down
Loading