Skip to content

Commit 9470efe

Browse files
author
Dassi Orleando
committed
Simple clean: UI + Db link
1 parent 4f8679f commit 9470efe

File tree

6 files changed

+18
-19
lines changed

6 files changed

+18
-19
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636
"socket.io-client": "^1.7.4",
3737
"zone.js": "^0.8.4",
3838
"@angular/cli": "1.0.1",
39-
"@angular/compiler-cli": "^4.0.0"
39+
"@angular/compiler-cli": "^4.0.0",
40+
"@types/socket.io-client": "^1.4.29"
4041
},
4142
"devDependencies": {
4243
"@types/jasmine": "2.5.38",

server/routes/api.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1+
var uristring =
2+
process.env.MONGODB_URI ||
3+
'mongodb://localhost/gistology';
4+
15
const express = require('express');
26
const router = express.Router();
37
var status = require('http-status');
48
var mongoose = require('mongoose');
5-
mongoose.connect('mongodb://localhost/gistology');
9+
mongoose.connect(uristring);
610
var Gist = require('../models/gist');
711

812

src/app/app.component.html

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<div fxLayout="column" fxFlex>
44
<md-toolbar color="primary">
5-
<span class="middle">{{title}}</span>
5+
<span class="middle" routerLink="/" style="cursor: pointer;">{{title}}</span>
66
<span class="spacer"></span>
77
<button md-icon-button [mdMenuTriggerFor]="menu">
88
<md-icon>more_vert</md-icon>
@@ -19,7 +19,7 @@
1919

2020
<!-- intro words -->
2121
<div class="content" fxFlex>
22-
<div [fxLayout]="row">
22+
<div fxLayout="row">
2323
<div fxFlex="20"> </div>
2424
<div fxFlex="60">
2525
<md-card fxFlex="100">
@@ -41,19 +41,9 @@
4141
<router-outlet></router-outlet>
4242

4343
<!-- The footer -->
44-
<div class="footer" [fxLayout]="row">
45-
<div fxFlex="35"> </div>
46-
<div fxFlex="30">
47-
<div fxFlex="100">
48-
<div fxFlex="25"> </div>
49-
<div fxFlex="10">
50-
<md-icon>favorite</md-icon>
51-
</div>
52-
<div fxFlex="40">
53-
By <a href="https://www.linkedin.com/in/dassi-orleando-257b04ab/">Dassi Orleando</a>
54-
</div>
44+
<div class="footer" fxLayout="row" fxLayoutAlign="center center">
45+
<div fxFlex="100" style="text-align: center !important;">
46+
<md-icon style="position: relative !important; top: 8px;">favorite</md-icon> By <a href="https://www.linkedin.com/in/dassi-orleando-257b04ab/">Dassi Orleando</a>
5547
</div>
56-
</div>
57-
<div fxFlex="35"> </div>
5848
</div>
5949
</div>

src/app/gist/gist.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ <h3 md-line> <b>{{gist.title}}</b> </h3>
1515
<div fxFlex="30"> </div>
1616
</div>
1717

18-
<div [fxLayout]="direction" fxLayoutAlign="center center">
18+
<div fxLayout="row" fxLayoutAlign="center center">
1919
<a md-raised-button routerLink="gists">See Gist List</a>
2020
</div>
2121
</div>

src/app/gist/list/gist.list.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ <h3 md-line> <b>{{gist.title}}</b> </h3>
1919
<div fxFlex="30"> </div>
2020
</div>
2121

22-
<div [fxLayout]="direction" fxLayoutAlign="center center">
22+
<div fxLayout="row" fxLayoutAlign="center center">
2323
<button md-fab (click)="addGist()"><md-icon>add</md-icon></button>
2424
</div>
2525
</div>

src/styles.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,8 @@ body{
1010
-webkit-box-flex: 1;
1111
-ms-flex: 1 1 auto;
1212
flex: 1 1 auto;
13+
}
14+
.toast-top-right{
15+
top: 65px !important;
16+
right: 0 !important;
1317
}

0 commit comments

Comments
 (0)