Skip to content

Commit

Permalink
Bindu |add npm dependencies instead of fetching it from cdnjs
Browse files Browse the repository at this point in the history
  • Loading branch information
binduak committed Nov 11, 2024
1 parent 2f7ca8c commit fb5ebe8
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 8 deletions.
4 changes: 4 additions & 0 deletions ui/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ module.exports = function (grunt) {
'components/crypto-js/crypto-js.js',
'components/jquery-ui/ui/minified/jquery-ui.custom.min.js',
'components/angular-ivh-treeview/dist/ivh-treeview.min.js',
'components/html2pdf/dist/html2pdf.bundle.min.js',
'components/pdfmake/build/pdfmake.min.js',
'components/pdfmake/build/vfs_fonts.js',
'components/html2canvas/build/html2canvas.min.js',
'micro-frontends-dist/*.min.js'
];

Expand Down
16 changes: 9 additions & 7 deletions ui/app/clinical/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ <h3 class="close" ng-click="closeTeleConsultation()">
</div>
<link rel="stylesheet" href="../components/offline/themes/{{getLocaleCSS()}}.css">

<script src='https://meet.jit.si/external_api.js'></script>

<script src="../components/jquery/jquery.min.js"></script>
<script src="../lib/jquery/jquery-ui-1.10.4.custom.min.js"></script>
<script src="../lib/modernizr.custom.80690.js"></script>
Expand Down Expand Up @@ -81,6 +79,15 @@ <h3 class="close" ng-click="closeTeleConsultation()">
<script src="../components/angular-file-upload/dist/angular-file-upload.min.js"></script>
<script src="../components/angular-elastic/elastic.js"></script>
<script src="../lib/angular-workers/dist/angular-workers.js"></script>
<script src="../lib/jitsi-meet/external_api.js"></script>


<!-- HTML to PDF -->

<script src="../components/pdfmake/build/pdfmake.min.js"></script>
<script src="../components/pdfmake/build/vfs_fonts.js"></script>
<script src="../components/html2pdf/dist/html2pdf.bundle.min.js"></script>
<script src="../components/html2canvas/build/html2canvas.min.js"></script>

<!-- Adding react since an micro-frontend will be used -->
<script src="../components/react/react.production.min.js"></script>
Expand Down Expand Up @@ -567,10 +574,5 @@ <h3 class="close" ng-click="closeTeleConsultation()">
<script src="/implementation_config/openmrs/apps/clinical/formConditions.js"></script>
<script src="/bahmni_config/openmrs/apps/clinical/common/diagnosisServiceConfig.js"></script>

<!-- HTML to PDF -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.10.1/html2pdf.bundle.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.41/pdfmake.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/0.4.1/html2canvas.min.js"></script>
</body>
</html>
2 changes: 2 additions & 0 deletions ui/app/lib/jitsi-meet/external_api.js

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@
"@bower_components/purl": "allmarkedup/purl#2.3.1",
"@bower_components/select2": "ivaynberg/select2#~3.4",
"@bower_components/stacktrace-js": "stacktracejs/stacktrace.js#0.6.4",
"@bower_components/zeroclipboard": "zeroclipboard/zeroclipboard#~2.1.0"
"@bower_components/zeroclipboard": "zeroclipboard/zeroclipboard#~2.1.0",
"@bower_components/html2pdf": "eKoopmans/html2pdf#~0.10.2",
"@bower_components/pdfmake": "bpampuch/pdfmake#~0.1.41",
"@bower_components/html2canvas": "niklasvh/html2canvas#~0.4.1"
},
"devDependencies": {
"@bower_components/Cortana": "Yago31/Cortana#~1.2.6",
Expand Down
1 change: 1 addition & 0 deletions ui/test/config/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ module.exports = function (config) {
'app/components/angular-translate-loader-static-files/angular-translate-loader-static-files.js',
'app/components/hustle/hustle.js',
'app/lib/modernizr.custom.80690.js',
'app/lib/jitsi-meet/external_api.js',
'app/lib/angular-workers/dist/angular-workers.js',
'app/common/constants.js',
'app/common/util/init.js',
Expand Down

0 comments on commit fb5ebe8

Please sign in to comment.