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
3f5ae21d
Commit
3f5ae21d
authored
Jun 04, 2019
by
Sébastien Chopin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: Rename components to PascalCase
parent
8c64e570
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
12 deletions
+14
-12
ItemListNav.vue
components/ItemListNav.vue
+0
-0
LazyWrapper.vue
components/LazyWrapper.vue
+0
-0
comment.vue
components/comment.vue
+5
-5
_page.vue
pages/_feed/_page.vue
+3
-3
_id.vue
pages/item/_id.vue
+2
-2
_id.vue
pages/user/_id.vue
+4
-2
No files found.
components/
item-list-n
av.vue
→
components/
ItemListN
av.vue
View file @
3f5ae21d
File moved
components/
lazy-w
rapper.vue
→
components/
LazyW
rapper.vue
View file @
3f5ae21d
File moved
components/comment.vue
View file @
3f5ae21d
<
template
>
<
template
>
<li
v-if=
"comment"
class=
"comment"
>
<li
v-if=
"comment
&& comment.user
"
class=
"comment"
>
<div
class=
"by"
>
<div
class=
"by"
>
<router-link
:to=
"'/user/' + comment.user"
>
<router-link
:to=
"'/user/' + comment.user"
>
{{
comment
.
user
}}
{{
comment
.
user
}}
...
@@ -54,10 +54,10 @@ export default {
...
@@ -54,10 +54,10 @@ export default {
}
}
.by {
.by {
color: #
82828
2;
color: #
22
2;
a {
a {
color: #
82828
2;
color: #
22
2;
text-decoration: underline;
text-decoration: underline;
}
}
}
}
...
@@ -66,7 +66,7 @@ export default {
...
@@ -66,7 +66,7 @@ export default {
overflow-wrap: break-word;
overflow-wrap: break-word;
a:hover {
a:hover {
color: #
ff6600
;
color: #
111
;
}
}
pre {
pre {
...
@@ -80,7 +80,7 @@ export default {
...
@@ -80,7 +80,7 @@ export default {
border-radius: 4px;
border-radius: 4px;
a {
a {
color: #
82828
2;
color: #
22
2;
cursor: pointer;
cursor: pointer;
}
}
...
...
pages/_feed/_page.vue
View file @
3f5ae21d
...
@@ -16,9 +16,9 @@
...
@@ -16,9 +16,9 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
Item
from
'~/components/
i
tem.vue'
import
Item
from
'~/components/
I
tem.vue'
import
ItemListNav
from
'~/components/
item-list-n
av.vue'
import
ItemListNav
from
'~/components/
ItemListN
av.vue'
import
LazyWrapper
from
'~/components/
lazy-w
rapper'
import
LazyWrapper
from
'~/components/
LazyW
rapper'
import
{
feeds
,
validFeeds
}
from
'~/common/api'
import
{
feeds
,
validFeeds
}
from
'~/common/api'
export
default
{
export
default
{
...
...
pages/item/_id.vue
View file @
3f5ae21d
...
@@ -29,8 +29,8 @@
...
@@ -29,8 +29,8 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
Comment
from
'~/components/
comment.vue
'
import
Comment
from
'~/components/
Comment
'
import
LazyWrapper
from
'~/components/
lazy-w
rapper'
import
LazyWrapper
from
'~/components/
LazyW
rapper'
export
default
{
export
default
{
name
:
'ItemView'
,
name
:
'ItemView'
,
...
...
pages/user/_id.vue
View file @
3f5ae21d
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
</template>
</template>
<
script
>
<
script
>
import
LazyWrapper
from
'~/components/
lazy-w
rapper'
import
LazyWrapper
from
'~/components/
LazyW
rapper'
export
default
{
export
default
{
name
:
'UserView'
,
name
:
'UserView'
,
...
@@ -39,7 +39,9 @@ export default {
...
@@ -39,7 +39,9 @@ export default {
},
},
head
()
{
head
()
{
return
this
.
user
?
this
.
user
.
id
:
'User not found'
return
{
title
:
this
.
user
?
this
.
user
.
id
:
'User not found'
}
},
},
fetch
({
store
,
route
:
{
params
:
{
id
}
}
})
{
fetch
({
store
,
route
:
{
params
:
{
id
}
}
})
{
...
...
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