-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Some code fixes due to `ng build --prod` errors
- Loading branch information
Avraham Ostreicher
committed
Jun 10, 2019
1 parent
1ed9da6
commit 07da56a
Showing
10 changed files
with
561 additions
and
398 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.git/ | ||
dist/ | ||
examples/ | ||
node_modules/ |
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,9 @@ | ||
FROM node:8 | ||
|
||
WORKDIR /usr/src/app | ||
ADD . /usr/src/app | ||
|
||
RUN yarn | ||
RUN yarn build | ||
|
||
CMD ["yarn", "serve"] |
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,19 @@ | ||
version: '3' | ||
|
||
services: | ||
app: | ||
build: ./ | ||
image: odmp | ||
expose: | ||
- 80 | ||
environment: | ||
NODE_ENV: production | ||
SERVER_PORT: 80 | ||
JWT_SECRET: 0a6b944d-d2fb-46fc-a85e-0295c986cd9f | ||
MONGO_HOST: mongodb://mongo/odmp | ||
restart: always | ||
depends_on: | ||
- mongo | ||
|
||
mongo: | ||
image: mongo:3.6 |
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 |
---|---|---|
@@ -1,16 +1,16 @@ | ||
<header> | ||
<mat-toolbar color="primary"> | ||
<a [routerLink]="['/']" class="logo"></a> | ||
<span class="example-spacer"></span> | ||
<a class="links side" [routerLink]="['/auth/login']" *ngIf="!user">Login</a> | ||
<div> | ||
<a class="links side" *ngIf="user" [matMenuTriggerFor]="menu"> | ||
<mat-icon>account_circle</mat-icon>{{user.fullname}} | ||
</a> | ||
<mat-menu #menu="matMenu"> | ||
<button mat-menu-item *ngIf="user && user.isAdmin" [routerLink]="['/admin']">admin</button> | ||
<button mat-menu-item (click)="logout()">logout</button> | ||
</mat-menu> | ||
</div> | ||
</mat-toolbar> | ||
</header> | ||
<mat-toolbar color="primary"> | ||
<a [routerLink]="['/']" class="logo"></a> | ||
<span class="example-spacer"></span> | ||
<a class="links side" [routerLink]="['/auth/login']" *ngIf="!user">Login</a> | ||
<div> | ||
<a class="links side" *ngIf="user" [matMenuTriggerFor]="menu"> | ||
<mat-icon>account_circle</mat-icon>{{user.fullname}} | ||
</a> | ||
<mat-menu #menu="matMenu"> | ||
<button mat-menu-item *ngIf="user && user.isAdmin" [routerLink]="['/admin']">admin</button> | ||
<button mat-menu-item (click)="logout()">logout</button> | ||
</mat-menu> | ||
</div> | ||
</mat-toolbar> | ||
</header> |
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 |
---|---|---|
@@ -1,4 +1,8 @@ | ||
<div> | ||
<button mat-raised-button (click)="openUploadDialog()" [disabled]="user && !user.isAdmin">Upload new schema</button> | ||
|
||
<button | ||
mat-raised-button | ||
(click)="openUploadDialog()" | ||
[disabled]="user && !user.isAdmin"> | ||
Upload new schema | ||
</button> | ||
</div> |
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
Oops, something went wrong.