-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 5605222
Showing
58 changed files
with
1,521 additions
and
0 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 @@ | ||
build | ||
node_modules | ||
bower_components | ||
app.sublime-workspace |
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,40 @@ | ||
process.env.NODE_ENV = 'development' | ||
|
||
nobone = require 'nobone' | ||
|
||
data = require './data' | ||
|
||
port = 8457 | ||
|
||
|
||
|
||
# All modules use default options to init. | ||
# If you want don't init a specific module, | ||
# for example 'db' and 'service' module, just exclude it: | ||
# nobone { | ||
# renderer: {} | ||
# } | ||
# By default it load two module: service, renderer | ||
nb = nobone { | ||
proxy: {} | ||
renderer: {} | ||
service: {} | ||
} | ||
|
||
# Server | ||
nb.service.get '/', (req, res) -> | ||
# Renderer | ||
# You can also render coffee, stylus, less, markdown, or define custom handlers. | ||
nb.renderer.render('index.ejs') | ||
.done (tpl_func) -> | ||
res.send tpl_func( { members: data.members } ) | ||
|
||
# Launch socket.io and express.js | ||
nb.service.listen port | ||
|
||
# Kit | ||
# Print out time, log message, time span between two log. | ||
nb.kit.log 'Listen port ' + port | ||
|
||
# Static folder to automatically serve coffeescript and stylus. | ||
nb.service.use nb.renderer.static() |
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,21 @@ | ||
{ | ||
"name": "mfe-www", | ||
"version": "0.1.0", | ||
"authors": [ | ||
"SY.Tang" | ||
], | ||
"description": "Baidu Music FE Website", | ||
"license": "MIT", | ||
"private": true, | ||
"ignore": [ | ||
"**/.*", | ||
"node_modules", | ||
"bower_components", | ||
"test", | ||
"tests" | ||
], | ||
"dependencies": { | ||
"jquery": "~2.1.1", | ||
"lodash": "~2.4.1" | ||
} | ||
} |
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,39 @@ | ||
@font-face { | ||
font-family: 's'; | ||
src: url("../fonts/Roboto-Light.ttf"); | ||
font-weight: normal; | ||
font-style: normal; | ||
} | ||
@font-face { | ||
font-family: 'n'; | ||
src: url("../fonts/Roboto-Light.ttf"); | ||
font-weight: normal; | ||
font-style: normal; | ||
} | ||
@font-face { | ||
font-family: 'n'; | ||
src: url("../fonts/Roboto-Regular.ttf"); | ||
font-weight: bold; | ||
font-style: normal; | ||
} | ||
@font-face { | ||
font-family: 'l'; | ||
src: url("../fonts/Roboto-Thin.ttf"); | ||
font-weight: normal; | ||
font-style: normal; | ||
} | ||
@font-face { | ||
font-family: 'l'; | ||
src: url("../fonts/Roboto-Light.ttf"); | ||
font-weight: bold; | ||
font-style: normal; | ||
} | ||
.font-s { | ||
font-family: s, '微软雅黑'; | ||
} | ||
.font-n { | ||
font-family: n, '微软雅黑'; | ||
} | ||
.font-l { | ||
font-family: l, '微软雅黑'; | ||
} |
Oops, something went wrong.