-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from rbs333/transiiton-from-bottom
Transiiton from bottom
- Loading branch information
Showing
24 changed files
with
281 additions
and
53 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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
# Editor configuration, see http://editorconfig.org | ||
# EditorConfig helps developers define and maintain consistent | ||
# coding styles between different editors and IDEs | ||
# http://editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 | ||
insert_final_newline = true | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
max_line_length = off | ||
trim_trailing_whitespace = false | ||
insert_final_newline = true |
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 @@ | ||
/client/ |
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,3 @@ | ||
{ | ||
"extends": "loopback" | ||
} |
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,3 @@ | ||
{ | ||
"generator-loopback": {} | ||
} |
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,3 @@ | ||
## Client | ||
|
||
This is the place for your application front-end files. |
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 @@ | ||
'use strict'; | ||
|
||
module.exports = function enableAuthentication(server) { | ||
// enable authentication | ||
server.enableAuth(); | ||
}; |
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,8 @@ | ||
'use strict'; | ||
|
||
module.exports = function(server) { | ||
// Install a `/` route that returns server status | ||
var router = server.loopback.Router(); | ||
router.get('/', server.loopback.status()); | ||
server.use(router); | ||
}; |
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 @@ | ||
{ | ||
"loopback-component-explorer": { | ||
"mountPath": "/explorer", | ||
"generateOperationScopedModels": true | ||
} | ||
} |
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,22 @@ | ||
{ | ||
"restApiRoot": "/api", | ||
"host": "0.0.0.0", | ||
"port": 3000, | ||
"remoting": { | ||
"context": false, | ||
"rest": { | ||
"handleErrors": false, | ||
"normalizeHttpPath": false, | ||
"xml": false | ||
}, | ||
"json": { | ||
"strict": false, | ||
"limit": "100kb" | ||
}, | ||
"urlencoded": { | ||
"extended": true, | ||
"limit": "100kb" | ||
}, | ||
"cors": 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"db": { | ||
"name": "db", | ||
"connector": "memory" | ||
} | ||
} |
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,10 @@ | ||
{ | ||
"final:after": { | ||
"strong-error-handler": { | ||
"params": { | ||
"debug": true, | ||
"log": true | ||
} | ||
} | ||
} | ||
} |
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,48 @@ | ||
{ | ||
"initial:before": { | ||
"loopback#favicon": {} | ||
}, | ||
"initial": { | ||
"compression": {}, | ||
"cors": { | ||
"params": { | ||
"origin": true, | ||
"credentials": true, | ||
"maxAge": 86400 | ||
} | ||
}, | ||
"helmet#xssFilter": {}, | ||
"helmet#frameguard": { | ||
"params": { "action": "deny" } | ||
}, | ||
"helmet#hsts": { | ||
"params": { | ||
"maxAge": 0, | ||
"includeSubdomains": true | ||
} | ||
}, | ||
"helmet#hidePoweredBy": {}, | ||
"helmet#ieNoOpen": {}, | ||
"helmet#noSniff": {}, | ||
"helmet#noCache": { | ||
"enabled": false | ||
} | ||
}, | ||
"session": {}, | ||
"auth": {}, | ||
"parse": {}, | ||
"routes": { | ||
"loopback#rest": { | ||
"paths": [ | ||
"${restApiRoot}" | ||
] | ||
} | ||
}, | ||
"files": {}, | ||
"final": { | ||
"loopback#urlNotFound": {} | ||
}, | ||
"final:after": { | ||
"strong-error-handler": {} | ||
} | ||
} |
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,38 @@ | ||
{ | ||
"_meta": { | ||
"sources": [ | ||
"loopback/common/models", | ||
"loopback/server/models", | ||
"../common/models", | ||
"./models" | ||
], | ||
"mixins": [ | ||
"loopback/common/mixins", | ||
"loopback/server/mixins", | ||
"../common/mixins", | ||
"./mixins" | ||
] | ||
}, | ||
"User": { | ||
"dataSource": "db" | ||
}, | ||
"AccessToken": { | ||
"dataSource": "db", | ||
"public": false | ||
}, | ||
"ACL": { | ||
"dataSource": "db", | ||
"public": false | ||
}, | ||
"RoleMapping": { | ||
"dataSource": "db", | ||
"public": false, | ||
"options": { | ||
"strictObjectIDCoercion": true | ||
} | ||
}, | ||
"Role": { | ||
"dataSource": "db", | ||
"public": 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
'use strict'; | ||
|
||
var loopback = require('loopback'); | ||
var boot = require('loopback-boot'); | ||
|
||
var app = module.exports = loopback(); | ||
|
||
app.start = function() { | ||
// start the web server | ||
return app.listen(function() { | ||
app.emit('started'); | ||
var baseUrl = app.get('url').replace(/\/$/, ''); | ||
console.log('Web server listening at: %s', baseUrl); | ||
if (app.get('loopback-component-explorer')) { | ||
var explorerPath = app.get('loopback-component-explorer').mountPath; | ||
console.log('Browse your REST API at %s%s', baseUrl, explorerPath); | ||
} | ||
}); | ||
}; | ||
|
||
// Bootstrap the application, configure models, datasources and middleware. | ||
// Sub-apps like REST API are mounted via boot scripts. | ||
boot(app, __dirname, function(err) { | ||
if (err) throw err; | ||
|
||
// start the server if `$ node server.js` | ||
if (require.main === module) | ||
app.start(); | ||
}); |
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
|
||
export class Episode { | ||
number: string; | ||
title: string; | ||
summary: string; | ||
img: string; | ||
audio: string; | ||
number: string; | ||
description: string; | ||
imageLoc: string; | ||
mp3Loc: string; | ||
} |
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,21 +1,21 @@ | ||
import { Episode } from './episode'; | ||
// import { Episode } from './episode'; | ||
|
||
export const EPISODES: Episode[] = [ | ||
{number: '001', title: '2017 Year in Review', | ||
summary: 'Tyler and Robert breakdown all things 2017. Favorite movies, books, TV, feelings in addition to analysis on the state of the world and tons of other great stuff that they would love to talk about', | ||
img: '../../assets/images/003.jpg', audio: '../../assets/mp3/002.mp3'}, | ||
{number: '002', title: 'What Makes A Good Concert?', summary: 'We', | ||
img: '../../assets/images/003.jpg', audio: '../../assets/mp3/002.mp3'}, | ||
{number: '003', title: 'College Expectations vs. Reality', summary: 'We', | ||
img: '../../assets/images/003.jpg', audio: '../../assets/mp3/003.mp3'}, | ||
{number: '004', title: 'Waste', summary: 'We', img: '../../assets/images/003.jpg', | ||
audio: '../../assets/mp3/004.mp3'}, | ||
{number: '005', title: 'Values of Genre', summary: 'We', img: '../../assets/images/003.jpg', | ||
audio: '../../assets/mp3/005.mp3'}, | ||
{number: '006', title: 'Millennial Life', summary: 'We', img: '../../assets/images/003.jpg', | ||
audio: '../../assets/mp3/006.mp3'}, | ||
{number: '007', title: 'Cant Remember', summary: 'We', img: '../../assets/images/007.png', | ||
audio: '../../assets/mp3/007.mp3'}, | ||
{number: '008', title: 'Values of Genre', summary: 'We', img: '../../assets/images/008.jpg', | ||
audio: '../../assets/mp3/008.mp3'} | ||
] | ||
// export const EPISODES: Episode[] = [ | ||
// {number: '001', title: '2017 Year in Review', | ||
// summary: 'Tyler and Robert breakdown all things 2017. Favorite movies, books, TV, feelings in addition to analysis on the state of the world and tons of other great stuff that they would love to talk about', | ||
// img: '../../assets/images/003.jpg', audio: '../../assets/mp3/002.mp3'}, | ||
// {number: '002', title: 'What Makes A Good Concert?', summary: 'We', | ||
// img: '../../assets/images/003.jpg', audio: '../../assets/mp3/002.mp3'}, | ||
// {number: '003', title: 'College Expectations vs. Reality', summary: 'We', | ||
// img: '../../assets/images/003.jpg', audio: '../../assets/mp3/003.mp3'}, | ||
// {number: '004', title: 'Waste', summary: 'We', img: '../../assets/images/003.jpg', | ||
// audio: '../../assets/mp3/004.mp3'}, | ||
// {number: '005', title: 'Values of Genre', summary: 'We', img: '../../assets/images/003.jpg', | ||
// audio: '../../assets/mp3/005.mp3'}, | ||
// {number: '006', title: 'Millennial Life', summary: 'We', img: '../../assets/images/003.jpg', | ||
// audio: '../../assets/mp3/006.mp3'}, | ||
// {number: '007', title: 'Cant Remember', summary: 'We', img: '../../assets/images/007.png', | ||
// audio: '../../assets/mp3/007.mp3'}, | ||
// {number: '008', title: 'Values of Genre', summary: 'We', img: '../../assets/images/008.jpg', | ||
// audio: '../../assets/mp3/008.mp3'} | ||
// ] |
Oops, something went wrong.