generated from PackagrIO/goweb-template
-
-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor angular config for better dev mode
- Loading branch information
1 parent
7d07157
commit fa0decc
Showing
15 changed files
with
138 additions
and
45 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
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,6 @@ | ||
{ | ||
"/api": { | ||
"target": "http://localhost:9090", | ||
"secure": false | ||
} | ||
} |
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
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,12 @@ | ||
export const environment = { | ||
production: false, | ||
environment_cloud: false, | ||
environment_desktop: false, | ||
environment_name: "dev", | ||
popup_source_auth: false, | ||
|
||
lighthouse_api_endpoint_base: 'https://lighthouse.fastenhealth.com/sandbox', | ||
|
||
//used to specify the api server that we're going to use (can be relative or absolute). Must not have trailing slash | ||
fasten_api_endpoint_base: '/api', | ||
}; |
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
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,59 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta | ||
name="viewport" | ||
content="width=device-width, initial-scale=1, shrink-to-fit=no" | ||
/> | ||
<link rel="apple-touch-icon" sizes="180x180" href="./assets/favicon/apple-touch-icon.png"> | ||
<link rel="icon" type="image/png" sizes="32x32" href="./assets/favicon/favicon-32x32.png"> | ||
<link rel="icon" type="image/png" sizes="16x16" href="./assets/favicon/favicon-16x16.png"> | ||
<link rel="manifest" href="./assets/favicon/site.webmanifest"> | ||
<link rel="mask-icon" href="./assets/favicon/safari-pinned-tab.svg" color="#5bbad5"> | ||
<meta name="msapplication-TileColor" content="#603cba"> | ||
<meta name="theme-color" content="#ffffff"> | ||
|
||
<title>Fasten Health</title> | ||
<!-- Fonts and icons --> | ||
<link href="https://fonts.googleapis.com/css?family=Poppins:200,300,400,600,700,800" rel="stylesheet"/> | ||
<link href="https://use.fontawesome.com/releases/v5.15.4/css/all.css" rel="stylesheet"/> | ||
<!-- TODO: figure out why we cant use the built-in styles <link href="./assets/lforms/styles.css" rel="stylesheet">--> | ||
<link href="https://clinicaltables.nlm.nih.gov/lforms-versions/34.0.0/webcomponent/styles.css" media="screen" rel="stylesheet" /> | ||
<script src="./assets/js/asmcrypto-2.3.2.all.es5.min.js"></script> | ||
<script> | ||
var baseHref = "/" | ||
|
||
// if the pathname includes /web, everthing before `/web` (and including web) should be set as the base path. | ||
if(window.location.pathname.includes('/web')){ | ||
baseHref = "/web/" | ||
// probably running locally, and *may* include a subpath | ||
var subPath = window.location.pathname.split('/web').slice(0, 1)[0] | ||
if(subPath != "/"){ | ||
//subpath, so we need to update the absolutePath with the subpath before adding the relative path to the end | ||
baseHref = subPath + '/web/' | ||
} | ||
} | ||
|
||
document.write(`<base href="${baseHref}"/>`); </script> | ||
|
||
<!-- required for lhncbc/lforms --> | ||
<script src="./assets/js/webcomponents/webcomponents-loader.js"></script> | ||
|
||
<!-- wails -- this file is required in Desktop --> | ||
<script type="module" src="/wails/runtime.js"></script> | ||
|
||
<script> | ||
if (!window.customElements) { | ||
document.write('<!--'); | ||
} | ||
</script> | ||
<!-- ! DO NOT REMOVE THIS COMMENT, WE NEED ITS CLOSING MARKER --> | ||
</head> | ||
<body> | ||
<app-root></app-root> | ||
<script src="./assets/js/lforms/assets/lib/zone.min.js"></script> | ||
<script src="./assets/js/lforms/lhc-forms.js"></script> | ||
<script src="./assets/js/lforms/fhir/lformsFHIRAll.min.js"></script> | ||
</body> | ||
</html> |
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