-
Notifications
You must be signed in to change notification settings - Fork 17
TM-UI-NEXT from develop to master Code push regarding CI Build Configurations #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
bhpratibha
wants to merge
238
commits into
master
Choose a base branch
from
develop
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 31 commits
Commits
Show all changes
238 commits
Select commit
Hold shift + click to select a range
6eeb6ce
registration login forget pass reset pass security service service po…
df065fb
github workflows
4c47cbc
json files added
4b830f0
lint issues resolved
ba67398
worklist changes
668823b
visit details, vitals, examination, anc, pnce, search and register ch…
ff6431d
history, idrs, ncd screening, quick consult changes
1d9627e
doctor screen changes
4c3290e
changes in core components and quick consult changes
752a152
Table width CSS chnages
cd32a5a
nurse and doctor changes
576158b
Merge branch 'develop' of https://github.com/PSMRI/TM-UI-NEXT into de…
9fc2739
doctor update changes
dbbfab0
minor changes in popup
f32f4cd
css changes in all screens
4dad219
pharmcist routing to inventory changes
18f395a
nurse doctor changes
a945338
enabling functionality for the complaint chief
fd2ca2a
Merge branch 'develop' of https://github.com/PSMRI/TM-UI-NEXT into de…
28e8dec
fixed issues
aaefa05
nurse save changes
2de679c
minor changes
1cc4e69
resolved the issues for the past-obsteric-history
e2016b9
nurse doctor changes
57426df
issue fixes
00a92be
minor changes n css
1bce097
CSS changes
91e9f47
ci build configurations changes
f02e042
ci build configurations changes
123bd0e
ci environmentfile changes
cbb10ac
Merge branch 'master' of https://github.com/PSMRI/TM-UI-NEXT into dev…
c304fb5
fixed PR comments
eaf5e6a
Merge branch 'develop' of https://github.com/PSMRI/TM-UI-NEXT into de…
c9ee7a8
prescription quantity change
f7ded57
Merge branch 'develop' of https://github.com/PSMRI/TM-UI-NEXT into de…
b0e4903
nurse-doctor changes
4d93297
Merge branch 'develop' of https://github.com/PSMRI/TM-UI-NEXT into de…
4f537e7
CSS changes
c89c1a7
history and abha changes
fdedbcc
Merge branch 'develop' of https://github.com/PSMRI/TM-UI-NEXT into de…
1c60f52
css and enabling and disabling changes
c1c6cd1
added fix for the on change of visit category refresh the history pages
bhpratibha 95e926f
Merge branch 'develop' of https://github.com/PSMRI/TM-UI-NEXT into de…
eb5383f
customization changes
af07914
missed changes
e2122bd
service point extra details save for customization
421eb05
bug fixes
5cdafe8
minor change in workarea
3cb20a4
added .gitmodules folder
023c2fa
app header changes
57499e0
json changes and environment url change
9b380f4
CSS CHNAGES
NKOKKILIGADDA87 6e60a74
CSS CHNAGES
NKOKKILIGADDA87 5d5e170
CSS Changes
NKOKKILIGADDA87 21aca46
CSS Changes
NKOKKILIGADDA87 d3029d5
CSS Changes
NKOKKILIGADDA87 e0dcdfc
CSS changes
NKOKKILIGADDA87 d823ef2
CSS changes
NKOKKILIGADDA87 b92bff8
CSS changes
NKOKKILIGADDA87 16f1f9a
CSS changes
NKOKKILIGADDA87 33ef508
CSS changes
NKOKKILIGADDA87 a7dd384
CSS changes
NKOKKILIGADDA87 4ae2584
Changes for patching height on patient revisit
devikasuresh20 4200af4
Merge pull request #15 from devikasuresh20/develop
ravishanigarapu de15215
CSS changes
NKOKKILIGADDA87 f7955b1
CSS Changes
NKOKKILIGADDA87 f6c5273
CSS Changes
NKOKKILIGADDA87 4adc157
CSS Changes
NKOKKILIGADDA87 d272738
Changes done for Revisit filteration issue
devikasuresh20 3684b85
Resolved conflicts
devikasuresh20 4be6bbd
Merge pull request #16 from devikasuresh20/develop
ravishanigarapu 95f25de
Update environment.ci.ts.template
pavangsk 3259302
CSS Changes
NKOKKILIGADDA87 20fc569
Changes for adding Revisit & Refer section for Gen OPD QC
devikasuresh20 ae59b66
Resolved merge conlflicts
devikasuresh20 8d475f1
CSS chnages
NKOKKILIGADDA87 f648cab
Added code improvements according to JS and also resolved prettier es…
devikasuresh20 32035ca
Merge branch 'PSMRI:develop' into develop
devikasuresh20 0b68a48
Resolved merge conflicts
devikasuresh20 ab77fc5
Minor change in workarea
devikasuresh20 a7fa360
date format issue fixed
f950d48
Merge branch 'PSMRI:develop' into develop
devikasuresh20 d6e33c7
Changes done for removing covid vaccination status
devikasuresh20 52c76af
Resolved merge conflicts
devikasuresh20 38ee30c
Merge pull request #18 from devikasuresh20/develop
ravishanigarapu 82d89ab
Resolved Merged conflicts and merged customization to develop
1ac7679
Merge branch 'develop' of https://github.com/PSMRI/TM-UI into develop
3b43b8c
added refer date issue resolved
cd062d8
CSS chnages
NKOKKILIGADDA87 cf57f43
Merge branch 'develop' of https://github.com/PSMRI/TM-UI into develop
NKOKKILIGADDA87 790f2b7
CSS chnages
NKOKKILIGADDA87 4a6f584
Merge branch 'develop' of https://github.com/PSMRI/TM-UI into develop
NKOKKILIGADDA87 fd8142b
CSS chnages
NKOKKILIGADDA87 eb71520
CSS chnages
NKOKKILIGADDA87 4fd461f
change in css for radio button for tablet view
32cec5a
CSS responsive changes
68d3de5
CSS responsive changes
pavangsk 1db2196
CSS responsive Chnages
raj9885 a5817ce
CSS responsive Chnages
raj9885 1248014
CSS Changes
NKOKKILIGADDA87 3dd745f
bio changes
599b45f
merge conflicts resolved
21a39ea
changes in health-id-display-modal for tm
048180b
Change in code for visitCode for local storage
ccacdcb
CSS changes
NKOKKILIGADDA87 759271e
CSS changes
NKOKKILIGADDA87 449c989
CSS changes
NKOKKILIGADDA87 c9cf82a
CSS changes
NKOKKILIGADDA87 76c7b57
CSS changes
NKOKKILIGADDA87 bba4f14
CSS changes
NKOKKILIGADDA87 1a05b59
Changes for history Past Obstetric History in PNC visit category for tm
e3b74bb
Added common-ui configuration in git hub workflows
22090ae
CSS Changes
NKOKKILIGADDA87 0e58c04
Merge branch 'develop' of https://github.com/PSMRI/TM-UI into develop
NKOKKILIGADDA87 203e378
CSS Changes
NKOKKILIGADDA87 5c0d481
Modified README file for submodule common-ui
f18d9c3
[33] - Updated outputPath in angular.json
anandamideShakyan 862dd72
Merge pull request #24 from anandamideShakyan/develop
drtechie 4fc9a8e
es lint errors fix
NKOKKILIGADDA87 ccfbf45
upload file cancel button fix
NKOKKILIGADDA87 c3211ff
ng build CSS files syntex errors fix
NKOKKILIGADDA87 05b2c01
common_UI deployement
NKOKKILIGADDA87 514cd65
readme file changes and add nvmrc file
NKOKKILIGADDA87 1164ded
swaasa issue
NKOKKILIGADDA87 171b461
comman UI wardeployement
NKOKKILIGADDA87 c1123c6
Change in interceptor service for Swasaa
ea9fa10
Merge branch 'develop' of https://github.com/PSMRI/TM-UI into develop
16fda7e
Change in interceptor service for Swasaa
NKOKKILIGADDA87 9b7da60
comman UI wardeployement
NKOKKILIGADDA87 c1a0f46
[33] - Update environment.ci.ts.template
anandamideShakyan 97ada85
[33] - Update environment.ci.ts.template
anandamideShakyan 19e56c6
Update environment.ci.ts.template
anandamideShakyan bc9e005
Update environment.ci.ts.template
anandamideShakyan b2c2839
comman UI wardeployement
NKOKKILIGADDA87 df12e46
Merge pull request #28 from anandamideShakyan/develop
drtechie e7388e2
Merge branch 'develop' of https://github.com/PSMRI/TM-UI into develop
NKOKKILIGADDA87 0c60732
warfile deployement
NKOKKILIGADDA87 f87039d
Added mandatory condition for Travel History section
devikasuresh20 3278c5a
Added mandatory condition for Travel History section (#30)
devikasuresh20 0079423
URL changes using jboss context-root
devikasuresh20 aaf8f8c
Merge branch 'PSMRI:develop' into develop
devikasuresh20 cea5d1f
Minor change in angular.json
devikasuresh20 a00c4b4
Minor change
devikasuresh20 3603cc5
Merge pull request #31 from devikasuresh20/develop
devikasuresh20 0011d46
Workarea related change in nurse module
devikasuresh20 d041fff
Workarea related change in nurse module (#35)
devikasuresh20 0cc9fdd
ANC menstrual history changes
devikasuresh20 495d74e
AMM-1013 ANC menstrual history changes (#36)
devikasuresh20 7384ec6
Merge branch 'PSMRI:develop' into develop
devikasuresh20 01392d7
File upload changes
devikasuresh20 e8339b2
Minor changes in file upload
devikasuresh20 0177116
AMM-941 & AMM-964 File upload changes (#37)
devikasuresh20 dbffe58
Add ESLint and NPM Audit workflow
gupta-soham 04c06a8
Merge pull request #38 from gupta-soham/feat/add-lint-audit-workflow
drtechie 3b9f338
Diagnosis changes
devikasuresh20 d8ed76c
Merge branch 'PSMRI:develop' into develop
devikasuresh20 80ea71c
AMM-1009 Diagnosis changes (#39)
devikasuresh20 4cdc1a3
Merge branch 'PSMRI:develop' into develop
devikasuresh20 fe9335c
CSS changes for Schedule for TM Screen
devikasuresh20 ca0dc0a
Minor changes
devikasuresh20 4e577c0
Minor changes
devikasuresh20 014b4ea
Merge pull request #42 from devikasuresh20/develop
devikasuresh20 ea6cca7
Added scroll bar for Schedule TM pop up (#43)
devikasuresh20 7a08ef5
AMM-1055 Family History Diabetes Mellitus info message changes (#44)
devikasuresh20 713a112
AMM-1063 File upload changes (#45)
devikasuresh20 79a53da
AMM-1008 Previous ben visit details changes (#46)
devikasuresh20 e562faf
tm wasa first commit
NKOKKILIGADDA87 5e8335f
tm wasa second commit
NKOKKILIGADDA87 7a279b8
tm wasa third commit
NKOKKILIGADDA87 97889af
tm wasa forth commit
NKOKKILIGADDA87 e84dcd3
tm wasa fifth commit
NKOKKILIGADDA87 21f0b91
tm wasa sixth commit
NKOKKILIGADDA87 66afc95
tm wasa seventh commit
NKOKKILIGADDA87 a8385ca
tm wasa eighth commit
NKOKKILIGADDA87 df3e1de
tm wasa ninth commit
NKOKKILIGADDA87 5515a46
tm wasa tenth commit
NKOKKILIGADDA87 fd1a482
ngx cookie service version change
NKOKKILIGADDA87 7d18147
AMM-1106 Systolic and Diastolic mandatory changes for NCD screening a…
devikasuresh20 576028e
sonar issue fix with session service path change and encryption key l…
sandipkarmakar3 3bb0c13
added Urls for common ui
027fefd
Merge branch 'develop' of https://github.com/PSMRI/TM-UI into develop
21f28b5
Abdm facility and version 3 changes
86bd579
Update minor change in workarea.component.ts
helenKaryamsetty 35863b2
Merge pull request #52 from helenKaryamsetty/develop
devikasuresh20 7c591aa
facility changes
53de49c
Merge branch 'develop' of https://github.com/helenKaryamsetty/TM-UI-N…
a907a26
Merge branch 'PSMRI:develop' into develop
helenKaryamsetty b2e3ca0
facility logic correction
131bc7e
Merge branch 'develop' of https://github.com/helenKaryamsetty/TM-UI-N…
d29bcc6
remove JWT tokken setItem
NKOKKILIGADDA87 0b2d043
Merge pull request #53 from helenKaryamsetty/develop
devikasuresh20 7300149
remove EncKey
NKOKKILIGADDA87 43ceda0
diagnosis value feching
NKOKKILIGADDA87 5722d0a
sessionStorageEncKey value emity
NKOKKILIGADDA87 b8bbd76
diagnosis value feching
NKOKKILIGADDA87 de36627
minor TM fixes
sandipkarmakar3 0d6c57e
minor TM fixes
sandipkarmakar3 cee75fe
Update README.md
Sneha6003 2a6fdc2
ready to merge with develop
sandipkarmakar3 9d5836a
ready to merge with develop
sandipkarmakar3 65a142a
-wasa removed
sandipkarmakar3 ad4e3bb
assigned port 4023 and updated all the endpoints in the env
Asp-irin 6504073
assigned port 4023 and updated all the endpoints in the env
Asp-irin 0ef9ad6
added env.ts to gitignore
Asp-irin b01822f
Merge pull request #54 from Asp-irin/develop
drtechie 9dcd8ba
Devika coments resolved
sandipkarmakar3 3ef3309
Merge pull request #48 from PSMRI/tm-wasa
devikasuresh20 dec0562
Add LICENSE and CODE_OF_CONDUCT
drtechie 559c446
minor fix
sandipkarmakar3 49c6cd3
Merge pull request #55 from PSMRI/minorFix
devikasuresh20 fde9f47
Previous Ben Visit Details Changes (#56)
devikasuresh20 ccc36cb
fix: Made necessary changes for build to pass
Zapper9982 46efd67
fix: added filereplacement
Zapper9982 e170dae
fix: updated .eslintrc.json
Zapper9982 eff88c6
fix: updated angular.json
Zapper9982 2f64c03
fix: discaded package-prod.yml and updated package.yml
Zapper9982 40201b0
fix: changed typo to tm-ui
Zapper9982 9e36793
Merge pull request #57 from Zapper9982/bugfix/issue-51
drtechie a630ac5
feat(commit-config): add conventional commit standards with commitlin…
yashpatil641 0bfc36a
Merge pull request #58 from yashpatil641/v2
drtechie e73bca4
Update environment.ci.ts.template
srinuatpiramal d7c1d42
Update environment.dev.ts
srinuatpiramal 1b5d9be
Update environment.development.ts
srinuatpiramal 02ade92
Update environment.development.ts
srinuatpiramal ab8c3a6
Update environment.local.ts
srinuatpiramal e7255ee
Update environment.prod.ts
srinuatpiramal 2fefc09
Update environment.prod.ts
srinuatpiramal d92de9d
Update environment.test.ts
srinuatpiramal b7d8c29
Update environment.test.ts
srinuatpiramal d4c7b7a
fix(auth): adding envs (#61)
srinuatpiramal fd927a5
feat: ensure url doesn't have version. upgrade version
drtechie 8551aa4
fix: war file artifact names
drtechie 580a62d
Merge pull request #63 from PSMRI/build-update
drtechie 91658aa
feat: VAPT captcha secuirty addition
5Amogh 898a26c
fix: captcha reset issue fix
5Amogh fde8b8b
Merge pull request #64 from PSMRI/develop-amogh
5Amogh f27799f
fix: type fix for the enable captcha variable (#65)
5Amogh 293e495
fix: login and forgot pw error response changes (#66)
snehar-nd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,199 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <project xmlns="http://maven.apache.org/POM/4.0.0" | ||
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
| <modelVersion>4.0.0</modelVersion> | ||
| <groupId>com.iemr.tm-ui-next</groupId> | ||
| <artifactId>TM-UI-NEXT</artifactId> | ||
| <version>1.0</version> | ||
| <name>TM-UI-NEXT</name> | ||
| <description>Piramal - tm: Module ui</description> | ||
| <packaging>war</packaging> | ||
| <profiles> | ||
| <profile> | ||
| <id>dev</id> | ||
| <properties> | ||
| <old-api-url>10.208.122.38</old-api-url> | ||
| <new-api-url>10.208.122.32</new-api-url> | ||
| <environment>dev</environment> | ||
| </properties> | ||
| <activation> | ||
| <activeByDefault>true</activeByDefault> | ||
| </activation> | ||
| </profile> | ||
| <profile> | ||
| <id>uat</id> | ||
| <properties> | ||
| <old-api-url>10.208.122.38</old-api-url> | ||
| <new-api-url>deviemr.piramalswasthya.org</new-api-url> | ||
| <environment>uat</environment> | ||
| </properties> | ||
| </profile> | ||
| <profile> | ||
| <id>local</id> | ||
| <properties> | ||
| <old-api-url>10.208.122.38</old-api-url> | ||
| <new-api-url>localhost</new-api-url> | ||
| <environment>local</environment> | ||
| </properties> | ||
| </profile> | ||
| <profile> | ||
| <id>test</id> | ||
| <properties> | ||
| <old-api-url>10.208.122.32</old-api-url> | ||
| <new-api-url>10.208.122.38</new-api-url> | ||
| <environment>test</environment> | ||
| </properties> | ||
| </profile> | ||
| <profile> | ||
| <id>ci</id> | ||
| <properties> | ||
| <environment>ci</environment> | ||
| </properties> | ||
| </profile> | ||
| </profiles> | ||
|
|
||
| <!-- we could create individual properties similar to variables --> | ||
| <properties> | ||
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
| <final-name>tm-ui-next-v1.0</final-name> | ||
| <build.timestamp>${maven.build.timestamp}</build.timestamp> | ||
| <maven.build.timestamp.format>yyyy-MM-dd HH:mm</maven.build.timestamp.format> | ||
| <hostname-dev>10.208.122.32</hostname-dev> | ||
| <port-dev>9990</port-dev> | ||
| <hostname-local>localhost</hostname-local> | ||
| <port-local>9990</port-local> | ||
| <hostname-uat>deviemr.piramalswasthya.org</hostname-uat> | ||
| <port-uat>9990</port-uat> | ||
| <hostname-test>10.208.122.38</hostname-test> | ||
| <port-test>9990</port-test> | ||
| <server-id>wildfly-${environment}</server-id> | ||
| <server-hostname>{hostname-${environment}}</server-hostname> | ||
| <server-port>{port-${environment}}</server-port> | ||
| </properties> | ||
|
|
||
| <!-- install the necessary node_modules & compile in prod mode --> | ||
| <build> | ||
| <finalName>tm-ui-next-v1.0</finalName> | ||
| <plugins> | ||
| <plugin> | ||
| <artifactId>maven-clean-plugin</artifactId> | ||
| <version>3.3.2</version> | ||
| <configuration> | ||
| <filesets> | ||
| <fileset> | ||
| <directory>dist</directory> | ||
| <!-- if any that needs to be included or excluded --> | ||
| <!-- using name in both would be a crime - pls avoid! --> | ||
| <!-- <includes><include>**/*.tmp</include><include>**/*.log</include></includes><excludes><exclude>**/important.log</exclude><exclude>**/another-important.log</exclude></excludes> --> | ||
| <followSymlinks>false</followSymlinks> | ||
| </fileset> | ||
| </filesets> | ||
| </configuration> | ||
| </plugin> | ||
| <plugin> | ||
| <groupId>org.codehaus.mojo</groupId> | ||
| <artifactId>exec-maven-plugin</artifactId> | ||
| <version>3.1.0</version> | ||
| <executions> | ||
| <execution> | ||
| <id>npm-install</id> | ||
| <phase>compile</phase> | ||
| <goals> | ||
| <goal>exec</goal> | ||
| </goals> | ||
| <configuration> | ||
| <executable>npm</executable> | ||
| <arguments> | ||
| <argument>install</argument> | ||
| <argument>--legacy-peer-deps</argument> | ||
| <!-- use save-dev or save if you understand the consequences, else --> | ||
| <!-- please leave them alone & add appropriate npm dependencies in | ||
| package.json --> | ||
| </arguments> | ||
| </configuration> | ||
| </execution> | ||
| <execution> | ||
| <id>ng-build</id> | ||
| <phase>compile</phase> | ||
| <goals> | ||
| <goal>exec</goal> | ||
| </goals> | ||
| <configuration> | ||
| <!-- incase working dir is different use below --> | ||
| <executable>npm</executable> | ||
| <arguments> | ||
| <argument>run</argument> | ||
| <argument>build-${environment}</argument> | ||
| </arguments> | ||
| </configuration> | ||
| </execution> | ||
| </executions> | ||
| </plugin> | ||
| <!-- use following incase resources from other dirs --> | ||
| <plugin> | ||
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-resources-plugin</artifactId> | ||
| <version>3.3.1</version> | ||
| <executions> | ||
| <execution> | ||
| <id>default-copy-resources</id> | ||
| <phase>prepare-package</phase> | ||
| <configuration> | ||
| <overwrite>true</overwrite> | ||
| <outputDirectory>${project.build.directory}/${project.artifactId}-${project.version}/WEB-INF/ | ||
| </outputDirectory> | ||
| <resources> | ||
| <resource> | ||
| <directory>${project.basedir}/dist</directory> | ||
| </resource> | ||
| </resources> | ||
| </configuration> | ||
| </execution> | ||
| </executions> | ||
| </plugin> | ||
| <plugin> | ||
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-war-plugin</artifactId> | ||
| <version>3.4.0</version> | ||
| <configuration> | ||
| <failOnMissingWebXml>false</failOnMissingWebXml> | ||
| <webResources> | ||
| <resource> | ||
| <!-- this is relative to the pom.xml directory --> | ||
| <directory>dist</directory> | ||
| </resource> | ||
| <resource> | ||
| <filtering>true</filtering> | ||
| <directory>src/packaging/</directory> | ||
| </resource> | ||
| </webResources> | ||
| </configuration> | ||
| </plugin> | ||
| <plugin> | ||
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-antrun-plugin</artifactId> | ||
| <version>3.1.0</version> | ||
| <executions> | ||
| <execution> | ||
| <id>properties-updated 1</id> | ||
| <phase>prepare-package</phase> | ||
| <goals> | ||
| <goal>run</goal> | ||
| </goals> | ||
| <configuration> | ||
| <target> | ||
| <echo>replacing/updating urls ${project.basedir} 2</echo> | ||
| <replaceregexp match="${old-api-url}" | ||
| replace="${new-api-url}" flags="ig"> | ||
| <fileset dir="${project.basedir}/dist" | ||
| includes="main.*.bundle.js"/> | ||
| </replaceregexp> | ||
| </target> | ||
| </configuration> | ||
| </execution> | ||
| </executions> | ||
| </plugin> | ||
| </plugins> | ||
| </build> | ||
| </project> | ||
This file contains hidden or 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,60 @@ | ||
| #!/usr/bin/env node | ||
|
|
||
| /* | ||
| * AMRIT – Accessible Medical Records via Integrated Technology | ||
| * Integrated EHR (Electronic Health Records) Solution | ||
| * | ||
| * Copyright (C) "Piramal Swasthya Management and Research Institute" | ||
| * | ||
| * This file is part of AMRIT. | ||
| * | ||
| * This program is free software: you can redistribute it and/or modify | ||
| * it under the terms of the GNU General Public License as published by | ||
| * the Free Software Foundation, either version 3 of the License, or | ||
| * (at your option) any later version. | ||
| * | ||
| * This program is distributed in the hope that it will be useful, | ||
| * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| * GNU General Public License for more details. | ||
| * | ||
| * You should have received a copy of the GNU General Public License | ||
| * along with this program. If not, see https://www.gnu.org/licenses/. | ||
| */ | ||
|
|
||
| const fs = require('fs'); | ||
| const path = require('path'); | ||
|
|
||
| const ejs = require('ejs'); | ||
|
|
||
| const environmentFilesDirectory = path.join(__dirname, '../src/environments'); | ||
| const targetEnvironmentTemplateFileName = 'environment.ci.ts.template'; | ||
| const targetEnvironmentFileName = 'environment.ci.ts'; | ||
|
|
||
| // Load template file | ||
| const environmentTemplate = fs.readFileSync( | ||
| path.join(environmentFilesDirectory, targetEnvironmentTemplateFileName), | ||
| {encoding: 'utf-8'} | ||
| ); | ||
|
|
||
| const defaultEnvValues = { | ||
| SERVER_IP: '', | ||
| SWYMED_IP: '', | ||
| COMMON_API_BASE: '', | ||
| COMMON_API_OPEN_SYNC: '', | ||
| TM_API_BASE: '', | ||
| SCHEDULER_API_BASE: '', | ||
| MMU_API_BASE: '', | ||
| ADMIN_API_BASE: '', | ||
| IOT_API_BASE: '', | ||
| FHIR_API_BASE: '', | ||
| SCHEDULER_UI_BASE: '', | ||
| INVENTORY_UI_BASE: '', | ||
| }; | ||
|
|
||
| // Generate output data | ||
| const output = ejs.render(environmentTemplate, Object.assign({}, defaultEnvValues, process.env)); | ||
| // Write environment file | ||
| fs.writeFileSync(path.join(environmentFilesDirectory, targetEnvironmentFileName), output); | ||
|
|
||
| process.exit(0); |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.