• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

wiki style document editor


Commit MetaInfo

Revisiónf3d83e1fdff24e1199e6fdfc4cc75f0eeb2d62f0 (tree)
Tiempo2014-07-13 23:25:05
Autorhylom <hylom@hylo...>
Commiterhylom

Log Message

fix: use local bootstrap files

Cambiar Resumen

Diferencia incremental

--- a/app.js
+++ b/app.js
@@ -22,6 +22,7 @@ app.use(bodyParser.json());
2222 app.use(bodyParser.urlencoded());
2323 app.use(cookieParser());
2424 app.use(express.static(path.join(__dirname, 'public')));
25+app.use(express.static(path.join(__dirname, 'node_modules/bootstrap/dist')));
2526
2627 app.use('/api', api);
2728 app.all('/api/*', notFound);
--- a/package.json
+++ b/package.json
@@ -12,6 +12,7 @@
1212 "cookie-parser": "~1.0.1",
1313 "body-parser": "~1.0.0",
1414 "debug": "~0.7.4",
15- "jade": "~1.3.0"
15+ "jade": "~1.3.0",
16+ "bootstrap": "~3.2.0"
1617 }
17-}
\ No newline at end of file
18+}
--- a/views/layout.jade
+++ b/views/layout.jade
@@ -7,9 +7,9 @@ html(lang='en')
77 script(src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js")
88
99 // Bootstrap
10- link(rel="stylesheet", href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap-theme.min.css")
11- link(rel="stylesheet", href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css")
12- script(src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js")
10+ link(rel="stylesheet", href="/css/bootstrap-theme.min.css")
11+ link(rel="stylesheet", href="/css/bootstrap.min.css")
12+ script(src="/js/bootstrap.min.js")
1313
1414 link(rel='stylesheet', href='/stylesheets/style.css')
1515 script(src='/javascripts/pagewriter.js')