Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
node-sample
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
周韬
node-sample
Commits
cc5e2816
Commit
cc5e2816
authored
Aug 10, 2016
by
Evan You
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
responsive
parent
a73cec78
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
0 deletions
+25
-0
server.js
server.js
+4
-0
App.vue
src/App.vue
+17
-0
ItemList.vue
src/components/ItemList.vue
+4
-0
No files found.
server.js
View file @
cc5e2816
...
...
@@ -39,6 +39,10 @@ app.use('/dist', express.static(resolve('./dist')))
app
.
use
(
favicon
(
resolve
(
'./src/assets/logo.png'
)))
app
.
get
(
'*'
,
(
req
,
res
)
=>
{
if
(
!
renderer
)
{
return
res
.
end
(
'waiting for compilation...'
)
}
var
s
=
Date
.
now
()
const
context
=
{
url
:
req
.
url
}
const
renderStream
=
renderer
.
renderToStream
(
context
)
...
...
src/App.vue
View file @
cc5e2816
...
...
@@ -60,6 +60,8 @@ a
&.router-link-active
color #fff
font-weight 400
&:nth-child(6)
margin-right 0
.github
color #fff
font-size .9em
...
...
@@ -82,4 +84,19 @@ a
.fade-enter, .fade-leave-active
opacity 0
@media (max-width 860px)
.header .inner
padding 15px 30px
@media (max-width 600px)
body
font-size 14px
.header
.inner
padding 15px
a
margin-right 1em
.github
display none
</
style
>
src/components/ItemList.vue
View file @
cc5e2816
...
...
@@ -154,4 +154,8 @@ export default {
position absolute
opacity 0
transform translate(30px, 0)
@media (max-width 600px)
.news-list
margin 10px 0
</
style
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment