Skip to content
This repository was archived by the owner on Jul 18, 2026. It is now read-only.

Commit 94d26ad

Browse files
authored
Merge pull request #6 from fastenhealth/sandbox
2 parents e83c6f9 + e9bbcbc commit 94d26ad

21 files changed

Lines changed: 311 additions & 288 deletions

.github/workflows/build.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ env:
1010
IMAGE_NAME: ${{ github.repository }}
1111

1212
jobs:
13-
omnibus:
13+
docker:
1414
runs-on: ubuntu-latest
1515
permissions:
1616
contents: read
@@ -29,10 +29,10 @@ jobs:
2929
# run: |
3030
# cd /work
3131
# make binary-frontend && echo "print contents of /work/dist" && ls -alt /work/dist
32-
- name: Set up QEMU
33-
uses: docker/setup-qemu-action@v2
34-
with:
35-
platforms: 'arm64,arm'
32+
# - name: Set up QEMU
33+
# uses: docker/setup-qemu-action@v2
34+
# with:
35+
# platforms: 'arm64,arm'
3636
- name: Set up Docker Buildx
3737
uses: docker/setup-buildx-action@v2
3838
# Login against a Docker registry except on PR
@@ -59,9 +59,9 @@ jobs:
5959
- name: Build and push Docker image
6060
uses: docker/build-push-action@v3
6161
with:
62-
platforms: linux/amd64,linux/arm64
62+
# platforms: linux/amd64,linux/arm64
6363
context: .
64-
file: docker/Dockerfile
64+
file: Dockerfile
6565
push: ${{ github.event_name != 'pull_request' }}
6666
tags: ${{ steps.meta.outputs.tags }}
6767
labels: ${{ steps.meta.outputs.labels }}

Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ FROM node:18.9.0 as frontend-build
22
WORKDIR /usr/src/fastenhealth/frontend
33
#COPY frontend/package.json frontend/yarn.lock ./
44
COPY frontend/package.json ./
5-
RUN yarn install --frozen-lockfile
5+
#COPY frontend/yarn.lock ./
6+
RUN yarn config set registry "http://registry.npmjs.org" \
7+
&& yarn install --frozen-lockfile --network-timeout 100000
68
COPY frontend/ ./
79
RUN yarn run build -- --configuration sandbox --output-path=../dist
810

@@ -19,8 +21,9 @@ RUN CGO_ENABLED=0 go build -o /go/bin/fasten ./backend/cmd/fasten/
1921

2022
# create folder structure
2123
RUN mkdir -p /opt/fasten/db \
22-
mkdir -p /opt/fasten/web \
23-
mkdir -p /opt/fasten/config
24+
&& mkdir -p /opt/fasten/web \
25+
&& mkdir -p /opt/fasten/config \
26+
&& curl -o /opt/fasten/db/fasten.db -L https://github.com/fastenhealth/testdata/raw/main/fasten.db
2427

2528

2629

frontend/src/app/app-routing.module.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ const routes: Routes = [
2020
{ path: 'source/:source_id', component: SourceDetailComponent, canActivate: [ CanActivateAuthGuard] },
2121
{ path: 'source/:source_id/resource/:resource_id', component: ResourceDetailComponent, canActivate: [ CanActivateAuthGuard] },
2222
{ path: 'sources', component: MedicalSourcesComponent, canActivate: [ CanActivateAuthGuard] },
23+
{ path: 'sources/callback/:source_type', component: MedicalSourcesComponent, canActivate: [ CanActivateAuthGuard] },
2324

2425

2526

frontend/src/app/app.component.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,18 @@ export class AppComponent implements OnInit {
2222
navbarBackdrop.classList.add('az-navbar-backdrop');
2323
document.querySelector('body').appendChild(navbarBackdrop);
2424

25-
//TODO: onfirst load the header is always shown, why?
26-
// seems to be related to the presence of jwt token, and/or auth-interceptor.
2725
//determine if we should show the header
2826
this.router.events.subscribe(event => this.modifyHeader(event));
2927
}
3028

3129
modifyHeader(event) {
32-
if(event instanceof NavigationEnd && event.url?.startsWith('/auth'))
33-
{
34-
this.showHeader = false;
35-
} else {
36-
this.showHeader = true;
30+
if (event instanceof NavigationEnd) {
31+
if (event.url?.startsWith('/auth')) {
32+
this.showHeader = false;
33+
} else {
34+
// console.log("NU")
35+
this.showHeader = true;
36+
}
3737
}
3838
}
3939
}

frontend/src/app/components/components-sidebar/components-sidebar.component.html

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,24 @@
22
<div class="component-item">
33
<label>Connected</label>
44
<nav class="nav flex-column">
5-
<a routerLink="/form/form-elements" routerLinkActive="active" class="nav-link">Active Sources</a>
6-
<a routerLink="/form/form-elements" routerLinkActive="active" class="nav-link">Manual</a>
5+
<a ngbTooltip="not yet implemented" routerLinkActive="active" class="nav-link">Active Sources</a>
6+
<a ngbTooltip="not yet implemented" routerLinkActive="active" class="nav-link">Manual</a>
77
</nav>
88
<label>Categories</label>
99
<nav class="nav flex-column">
10-
<a routerLink="/form/form-elements" routerLinkActive="active" class="nav-link">Hospital Networks/Clinics</a>
11-
<a routerLink="/form/form-elements" routerLinkActive="active" class="nav-link">Pharmacies</a>
12-
<a routerLink="/form/form-elements" routerLinkActive="active" class="nav-link">Insurers</a>
13-
<a routerLink="/form/form-elements" routerLinkActive="active" class="nav-link">Laboratoreies</a>
14-
<a routerLink="/form/form-elements" routerLinkActive="active" class="nav-link">Wearables</a>
10+
<a ngbTooltip="not yet implemented" routerLinkActive="active" class="nav-link">Hospital Networks/Clinics</a>
11+
<a ngbTooltip="not yet implemented" routerLinkActive="active" class="nav-link">Pharmacies</a>
12+
<a ngbTooltip="not yet implemented" routerLinkActive="active" class="nav-link">Insurers</a>
13+
<a ngbTooltip="not yet implemented" routerLinkActive="active" class="nav-link">Laboratories</a>
14+
<a ngbTooltip="not yet implemented" routerLinkActive="active" class="nav-link">Wearables</a>
1515
</nav>
1616

1717
<label>Industry</label>
1818
<nav class="nav flex-column">
19-
<a routerLink="/charts/chartjs" routerLinkActive="active" class="nav-link">Medical</a>
20-
<a routerLink="/charts/chartjs" routerLinkActive="active" class="nav-link">Dental</a>
21-
<a routerLink="/charts/chartjs" routerLinkActive="active" class="nav-link">Vision</a>
22-
<a routerLink="/charts/chartjs" routerLinkActive="active" class="nav-link">Mental</a>
19+
<a ngbTooltip="not yet implemented" routerLinkActive="active" class="nav-link">Medical</a>
20+
<a ngbTooltip="not yet implemented" routerLinkActive="active" class="nav-link">Dental</a>
21+
<a ngbTooltip="not yet implemented" routerLinkActive="active" class="nav-link">Vision</a>
22+
<a ngbTooltip="not yet implemented" routerLinkActive="active" class="nav-link">Mental</a>
2323
</nav>
2424

2525
</div><!-- component-item -->

frontend/src/app/components/header/header.component.html

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
</ul>
2020
</div><!-- az-header-menu -->
2121
<div class="az-header-right">
22-
<a routerLink="/" class="az-header-search-link"><i class="fas fa-search"></i></a>
22+
<a ngbTooltip="not yet implemented" class="az-header-search-link"><i class="fas fa-search"></i></a>
2323
<div class="az-header-message">
2424
<a routerLink="/"><i class="typcn typcn-messages"></i></a>
2525
</div><!-- az-header-message -->
@@ -33,35 +33,22 @@ <h6 class="az-notification-title">Notifications</h6>
3333
<p class="az-notification-text">You have 2 unread notification</p>
3434
<div class="az-notification-list">
3535
<div class="media new">
36-
<div class="az-img-user"><img src="assets/images/img2.jpg" alt=""></div>
36+
<div class="az-img-user"><img src="assets/sources/aetna.png" alt=""></div>
3737
<div class="media-body">
38-
<p>Congratulate <strong>Socrates Itumay</strong> for work anniversaries</p>
38+
<p><strong>AETNA</strong> added 3 new records</p>
3939
<span>Mar 15 12:32pm</span>
4040
</div><!-- media-body -->
4141
</div><!-- media -->
4242
<div class="media new">
43-
<div class="az-img-user online"><img src="assets/images/img3.jpg" alt=""></div>
43+
<div class="az-img-user online"><img src="assets/sources/cigna.png" alt=""></div>
4444
<div class="media-body">
45-
<p><strong>Joyce Chua</strong> just created a new blog post</p>
45+
<p><strong>CIGNA</strong> added 34 new records</p>
4646
<span>Mar 13 04:16am</span>
4747
</div><!-- media-body -->
4848
</div><!-- media -->
49-
<div class="media">
50-
<div class="az-img-user"><img src="assets/images/img4.jpg" alt=""></div>
51-
<div class="media-body">
52-
<p><strong>Althea Cabardo</strong> just created a new blog post</p>
53-
<span>Mar 13 02:56am</span>
54-
</div><!-- media-body -->
55-
</div><!-- media -->
56-
<div class="media">
57-
<div class="az-img-user"><img src="assets/images/img5.jpg" alt=""></div>
58-
<div class="media-body">
59-
<p><strong>Adrian Monino</strong> added new comment on your photo</p>
60-
<span>Mar 12 10:40pm</span>
61-
</div><!-- media-body -->
62-
</div><!-- media -->
49+
6350
</div><!-- az-notification-list -->
64-
<div class="dropdown-footer"><a href="">View All Notifications</a></div>
51+
<div class="dropdown-footer"><a ngbTooltip="not yet implemented">View All Notifications</a></div>
6552
</div><!-- dropdown-menu -->
6653
</div><!-- az-header-notification -->
6754
<div class="dropdown az-profile-menu" ngbDropdown>
@@ -78,7 +65,7 @@ <h6>John Doe</h6>
7865
<span>Adminstrator</span>
7966
</div><!-- az-header-profile -->
8067

81-
<a routerLink="/general-pages/profile" class="dropdown-item"><i class="typcn typcn-time"></i> Activity Logs</a>
68+
<a ngbTooltip="not yet implemented" class="dropdown-item"><i class="typcn typcn-time"></i> Activity Logs</a>
8269
<a (click)="signOut($event)" class="dropdown-item"><i class="typcn typcn-power-outline"></i> Sign Out</a>
8370
</div><!-- dropdown-menu -->
8471
</div>

frontend/src/app/components/shared.module.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,14 @@ import {ListDeviceComponent} from './list-generic-resource/list-device.component
3131
import {ListDiagnosticReportComponent} from './list-generic-resource/list-diagnostic-report.component';
3232
import {ListGoalComponent} from './list-generic-resource/list-goal.component';
3333
import { ListFallbackResourceComponent } from './list-fallback-resource/list-fallback-resource.component';
34+
import {NgbModule} from '@ng-bootstrap/ng-bootstrap';
3435

3536
@NgModule({
3637
imports: [
3738
RouterModule,
3839
BrowserModule,
3940
NgxDatatableModule,
41+
NgbModule,
4042
],
4143
declarations: [
4244
ComponentsSidebarComponent,
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
export class LighthouseSourceMetadata {
2+
authorization_endpoint: string
3+
token_endpoint: string
4+
introspection_endpoint: string
5+
userinfo_endpoint: string
6+
7+
scopes_supported: string[]
8+
issuer: string
9+
grant_types_supported: string[]
10+
response_types_supported: string[]
11+
aud: string
12+
code_challenge_methods_supported: string[]
13+
14+
api_endpoint_base_url: string
15+
client_id: string
16+
redirect_uri: string
17+
18+
confidential: boolean
19+
}

frontend/src/app/models/lighthouse/lighthouse-source.ts

Lines changed: 0 additions & 17 deletions
This file was deleted.

frontend/src/app/models/lighthouse/ligthouse-source.spec.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)