-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Scheduler-UI-NEXT from develop to master Code push regarding CI Build…
… Configurations and some fixes (#39) * Fixes with Lint * Resolved Merged conflicts * Changes in table & webcam * Resolved vulnerability and implemented EQEQEQ * routing screen functionality fix * fixes of scheduler reports * Fix bugs for functionality in sch * Changes in report pop-up's * CSS changes * timesheet ts changes * Changes in fullcalender with timings * chnage in timesheet and chief complaint * modified codeql.yml file * change in codeql.yml in tools for scanning * change in codeql with matrix * rebase pull requests * Fork Test Codeql (#37) * change in pacakage.lock.json final in fork branch * change in recapture method in camera comp --------- Co-authored-by: Parth Kothari <[email protected]> * ci build configurations changes * ci environmentfile changes * fixed PR comments * fixed PR comments * Sonar-Lint Fix for scheduler * Sonar lint fix for key press event --------- Co-authored-by: Parth Kothari <[email protected]> Co-authored-by: nkokkiligadda87 <[email protected]> Co-authored-by: Parth Kothari <[email protected]> Co-authored-by: Bhallamudi Pratibha <[email protected]>
- Loading branch information
1 parent
68f7335
commit d7c01a8
Showing
21 changed files
with
614 additions
and
834 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
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,192 @@ | ||
<?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"> | ||
<!-- @Author : Sunil K Sundaram @Date : 21-May-17 @Email : [email protected] --> | ||
<modelVersion>4.0.0</modelVersion> | ||
<groupId>com.iemr.scheduler-ui-next</groupId> | ||
<artifactId>SCHEDULER-UI-NEXT</artifactId> | ||
<version>1.0</version> | ||
<name>SCHEDULER-UI-NEXT</name> | ||
<description>Piramal - scheduler: 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.38</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.38</old-api-url> | ||
<new-api-url>10.208.122.32</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>scheduler-ui-next-v1.0</final-name> | ||
<hostname-dev>10.208.122.32</hostname-dev> | ||
<port-dev>9990</port-dev> | ||
<hostname-local>localhost</hostname-local> | ||
<port-local>9990</port-local> | ||
<hostname-test>10.208.122.38</hostname-test> | ||
<port-test>9990</port-test> | ||
<hostname-uat>deviemr.piramalswasthya.org</hostname-uat> | ||
<port-uat>9990</port-uat> | ||
<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>scheduler-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> | ||
</arguments> | ||
</configuration> | ||
</execution> | ||
<execution> | ||
<id>ng-build</id> | ||
<phase>compile</phase> | ||
<goals> | ||
<goal>exec</goal> | ||
</goals> | ||
<configuration> | ||
<executable>npm</executable> | ||
<arguments> | ||
<argument>run</argument> | ||
<argument>build-${environment}</argument> | ||
</arguments> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<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</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 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,52 @@ | ||
#!/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 = { | ||
COMMON_API_BASE: '', | ||
COMMON_API_OPEN_SYNC: '', | ||
TM_API_BASE: '', | ||
SCHEDULER_API_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); |
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
Oops, something went wrong.