Skip to content

Commit

Permalink
feat: experimenting with static files
Browse files Browse the repository at this point in the history
  • Loading branch information
nexus49 committed Aug 8, 2024
1 parent 12ac4e9 commit 24c4bcb
Show file tree
Hide file tree
Showing 25 changed files with 25,182 additions and 0 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@
!frontend/tsconfig.json
!frontend/src/**

!static/**
!nginx.conf
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ RUN npm run build-prod

FROM nginx:alpine
COPY --from=build /app/frontend/dist/browser/ /usr/share/nginx/html/ui/example-content
COPY static/ /usr/share/nginx/html/ui/static
COPY nginx.conf /etc/nginx/nginx.conf
EXPOSE 8080
Empty file.
Empty file.
23 changes: 23 additions & 0 deletions frontend/src/app/providers/providers.component.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';

import { ProvidersComponent } from './providers.component';

describe('ProvidersComponent', () => {
let component: ProvidersComponent;
let fixture: ComponentFixture<ProvidersComponent>;

beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [ProvidersComponent]
})
.compileComponents();

fixture = TestBed.createComponent(ProvidersComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

it('should create', () => {
expect(component).toBeTruthy();
});
});
16 changes: 16 additions & 0 deletions frontend/src/app/providers/providers.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { Component } from '@angular/core';
import {DynamicPageModule, FormModule, FundamentalNgxCoreModule, IllustratedMessageModule} from "@fundamental-ngx/core";
import {CommonModule} from "@angular/common";

@Component({
selector: 'app-providers',
standalone: true,
imports: [
FundamentalNgxCoreModule,
],
templateUrl: './providers.component.html',
styleUrl: './providers.component.scss'
})
export class ProvidersComponent {

}
3 changes: 3 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,8 @@ http {
location /ui/account-ui/ {
try_files $uri $uri/ /ui/account-ui/index.html;
}

location /ui/static/ {
}
}
}
55 changes: 55 additions & 0 deletions static/apeiora-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 24c4bcb

Please sign in to comment.