Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
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
Alex
next.js
Commits
e8c73b45
Commit
e8c73b45
authored
Oct 20, 2018
by
Tim Neutkens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run yarn lint —fix
parent
d40f2723
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
18 deletions
+13
-18
index.js
examples/with-cloud9/pages/index.js
+1
-1
server.js
examples/with-cloud9/server.js
+4
-6
index.js
examples/with-emotion/pages/index.js
+8
-11
No files found.
examples/with-cloud9/pages/index.js
View file @
e8c73b45
export
default
()
=>
"If everything works, you should be able to see me."
export
default
()
=>
'If everything works, you should be able to see me.'
\ No newline at end of file
examples/with-cloud9/server.js
View file @
e8c73b45
...
@@ -14,12 +14,10 @@ app.prepare().then(() => {
...
@@ -14,12 +14,10 @@ app.prepare().then(() => {
// Be sure to pass `true` as the second argument to `url.parse`.
// Be sure to pass `true` as the second argument to `url.parse`.
// This tells it to parse the query portion of the URL.
// This tells it to parse the query portion of the URL.
const
parsedUrl
=
parse
(
req
.
url
,
true
)
const
parsedUrl
=
parse
(
req
.
url
,
true
)
const
{
pathname
,
query
}
=
parsedUrl
handle
(
req
,
res
,
parsedUrl
)
handle
(
req
,
res
,
parsedUrl
)
}).
listen
(
process
.
env
.
PORT
,
process
.
env
.
IP
||
"0.0.0.0"
,
err
=>
{
}).
listen
(
process
.
env
.
PORT
,
process
.
env
.
IP
||
'0.0.0.0'
,
err
=>
{
if
(
err
)
throw
err
if
(
err
)
throw
err
let
addr
=
server
.
address
()
;
let
addr
=
server
.
address
()
console
.
log
(
"> Ready on http://"
,
addr
.
address
+
":"
+
addr
.
port
);
console
.
log
(
'> Ready on http://'
,
addr
.
address
+
':'
+
addr
.
port
)
})
})
})
})
\ No newline at end of file
examples/with-emotion/pages/index.js
View file @
e8c73b45
...
@@ -69,17 +69,14 @@ const Animated = styled.div`
...
@@ -69,17 +69,14 @@ const Animated = styled.div`
export
default
()
=>
{
export
default
()
=>
{
return
(
return
(
<>
<>
' '
<
Head
>
<
Head
>
<
title
>
With
Emotion
<
/title
>
<
title
>
With
Emotion
<
/title
>
<
/Head>' '<div
>
<
/Head
>
<
Basic
>
Cool
Styles
<
/Basic
>
<
div
>
<
Combined
>
<
Basic
>
Cool
Styles
<
/Basic
>
<
Combined
>
With
<
code
>
:
hover
<
/code>
.
With
<
code
>
:
hover
<
/code>
.
<
/Combined
>
<
/Combined
>
<
Animated
animation
=
{
bounce
}
>
Let
's bounce.</Animated>
<
Animated
animation
=
{
bounce
}
>
Let
's bounce.</Animated>
</div>
</div>'
'</>
</>
)
)
}
}
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