-
Notifications
You must be signed in to change notification settings - Fork 9
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
Scheduler-UI-NEXT from develop to master Code push regarding CI Build Configurations and some fixes #39
Merged
Merged
Scheduler-UI-NEXT from develop to master Code push regarding CI Build Configurations and some fixes #39
Changes from 20 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
4532494
Fixes with Lint
ad0dd89
Resolved Merged conflicts
265acbe
Changes in table & webcam
05c74c6
Resolved vulnerability and implemented EQEQEQ
9a94231
routing screen functionality fix
fa3acd5
fixes of scheduler reports
a1edc30
Fix bugs for functionality in sch
74cc6d5
Changes in report pop-up's
8be7518
CSS changes
NKOKKILIGADDA87 3a57df4
timesheet ts changes
NKOKKILIGADDA87 5a27052
Changes in fullcalender with timings
9780c9a
chnage in timesheet and chief complaint
eecc44e
modified codeql.yml file
bf8baac
change in codeql.yml in tools for scanning
f1030b9
change in codeql with matrix
1685fe1
rebase pull requests
877bb93
Fork Test Codeql (#37)
KpParth 55aa20a
ci build configurations changes
0d6f5e6
ci environmentfile changes
610ad4b
Merge branch 'master' of https://github.com/PSMRI/Scheduler-UI-NEXT i…
9907de6
fixed PR comments
a42b0fb
fixed PR comments
86b1e49
Sonar-Lint Fix for scheduler
9996279
Sonar lint fix for key press event
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 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
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 @@ | ||
build.version=${project.version} | ||
build.dateTime=${build.timestamp} |
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't look right.
http and port numbers shouldn't be here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even the version of the mmu API
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@drtechie HI Mithun, updated as per comments, Please check