Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
a59f2369
Commit
a59f2369
authored
Jul 21, 2017
by
Fatih Acet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IssueNotesRefactor: camelCase component names.
parent
0b4a3d84
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
69 additions
and
67 deletions
+69
-67
app/assets/javascripts/notes/components/issue_comment_form.vue
...ssets/javascripts/notes/components/issue_comment_form.vue
+6
-6
app/assets/javascripts/notes/components/issue_discussion.vue
app/assets/javascripts/notes/components/issue_discussion.vue
+21
-21
app/assets/javascripts/notes/components/issue_note.vue
app/assets/javascripts/notes/components/issue_note.vue
+8
-8
app/assets/javascripts/notes/components/issue_note_body.vue
app/assets/javascripts/notes/components/issue_note_body.vue
+6
-6
app/assets/javascripts/notes/components/issue_note_edited_text.vue
...s/javascripts/notes/components/issue_note_edited_text.vue
+2
-2
app/assets/javascripts/notes/components/issue_note_form.vue
app/assets/javascripts/notes/components/issue_note_form.vue
+2
-2
app/assets/javascripts/notes/components/issue_note_header.vue
...assets/javascripts/notes/components/issue_note_header.vue
+2
-2
app/assets/javascripts/notes/components/issue_notes.vue
app/assets/javascripts/notes/components/issue_notes.vue
+16
-16
app/assets/javascripts/notes/components/issue_system_note.vue
...assets/javascripts/notes/components/issue_system_note.vue
+2
-2
app/assets/javascripts/notes/index.js
app/assets/javascripts/notes/index.js
+4
-2
No files found.
app/assets/javascripts/notes/components/issue_comment_form.vue
View file @
a59f2369
<
script
>
/* global Flash */
import
U
serAvatarLink
from
'
../../vue_shared/components/user_avatar/user_avatar_link.vue
'
;
import
M
arkdownField
from
'
../../vue_shared/components/markdown/field.vue
'
;
import
I
ssueNoteSignedOutWidget
from
'
./issue_note_signed_out_widget.vue
'
;
import
u
serAvatarLink
from
'
../../vue_shared/components/user_avatar/user_avatar_link.vue
'
;
import
m
arkdownField
from
'
../../vue_shared/components/markdown/field.vue
'
;
import
i
ssueNoteSignedOutWidget
from
'
./issue_note_signed_out_widget.vue
'
;
import
eventHub
from
'
../event_hub
'
;
export
default
{
...
...
@@ -22,9 +22,9 @@ export default {
};
},
components
:
{
U
serAvatarLink
,
M
arkdownField
,
I
ssueNoteSignedOutWidget
,
u
serAvatarLink
,
m
arkdownField
,
i
ssueNoteSignedOutWidget
,
},
computed
:
{
isLoggedIn
()
{
...
...
app/assets/javascripts/notes/components/issue_discussion.vue
View file @
a59f2369
<
script
>
/* global Flash */
import
I
ssueNote
from
'
./issue_note.vue
'
;
import
U
serAvatarLink
from
'
../../vue_shared/components/user_avatar/user_avatar_link.vue
'
;
import
I
ssueNoteHeader
from
'
./issue_note_header.vue
'
;
import
I
ssueNoteActions
from
'
./issue_note_actions.vue
'
;
import
I
ssueNoteSignedOutWidget
from
'
./issue_note_signed_out_widget.vue
'
;
import
I
ssueNoteEditedText
from
'
./issue_note_edited_text.vue
'
;
import
I
ssueNoteForm
from
'
./issue_note_form.vue
'
;
import
P
laceholderNote
from
'
./issue_placeholder_note.vue
'
;
import
P
laceholderSystemNote
from
'
./issue_placeholder_system_note.vue
'
;
import
i
ssueNote
from
'
./issue_note.vue
'
;
import
u
serAvatarLink
from
'
../../vue_shared/components/user_avatar/user_avatar_link.vue
'
;
import
i
ssueNoteHeader
from
'
./issue_note_header.vue
'
;
import
i
ssueNoteActions
from
'
./issue_note_actions.vue
'
;
import
i
ssueNoteSignedOutWidget
from
'
./issue_note_signed_out_widget.vue
'
;
import
i
ssueNoteEditedText
from
'
./issue_note_edited_text.vue
'
;
import
i
ssueNoteForm
from
'
./issue_note_form.vue
'
;
import
p
laceholderNote
from
'
./issue_placeholder_note.vue
'
;
import
p
laceholderSystemNote
from
'
./issue_placeholder_system_note.vue
'
;
export
default
{
props
:
{
...
...
@@ -36,26 +36,26 @@ export default {
},
},
components
:
{
I
ssueNote
,
U
serAvatarLink
,
I
ssueNoteHeader
,
I
ssueNoteActions
,
IssueNoteEditedTex
t
,
IssueNoteSignedOutWidge
t
,
I
ssueNoteForm
,
P
laceholderNote
,
P
laceholderSystemNote
,
i
ssueNote
,
u
serAvatarLink
,
i
ssueNoteHeader
,
i
ssueNoteActions
,
issueNoteSignedOutWidge
t
,
issueNoteEditedTex
t
,
i
ssueNoteForm
,
p
laceholderNote
,
p
laceholderSystemNote
,
},
methods
:
{
componentName
(
note
)
{
if
(
note
.
isPlaceholderNote
)
{
if
(
note
.
placeholderType
===
'
systemNote
'
)
{
return
P
laceholderSystemNote
;
return
p
laceholderSystemNote
;
}
return
P
laceholderNote
;
return
p
laceholderNote
;
}
return
I
ssueNote
;
return
i
ssueNote
;
},
componentData
(
note
)
{
return
note
.
isPlaceholderNote
?
note
.
notes
[
0
]
:
note
;
...
...
app/assets/javascripts/notes/components/issue_note.vue
View file @
a59f2369
...
...
@@ -2,10 +2,10 @@
/* global Flash */
import
{
mapGetters
}
from
'
vuex
'
;
import
U
serAvatarLink
from
'
../../vue_shared/components/user_avatar/user_avatar_link.vue
'
;
import
I
ssueNoteHeader
from
'
./issue_note_header.vue
'
;
import
I
ssueNoteActions
from
'
./issue_note_actions.vue
'
;
import
I
ssueNoteBody
from
'
./issue_note_body.vue
'
;
import
u
serAvatarLink
from
'
../../vue_shared/components/user_avatar/user_avatar_link.vue
'
;
import
i
ssueNoteHeader
from
'
./issue_note_header.vue
'
;
import
i
ssueNoteActions
from
'
./issue_note_actions.vue
'
;
import
i
ssueNoteBody
from
'
./issue_note_body.vue
'
;
import
eventHub
from
'
../event_hub
'
;
export
default
{
...
...
@@ -22,10 +22,10 @@ export default {
};
},
components
:
{
U
serAvatarLink
,
I
ssueNoteHeader
,
I
ssueNoteActions
,
I
ssueNoteBody
,
u
serAvatarLink
,
i
ssueNoteHeader
,
i
ssueNoteActions
,
i
ssueNoteBody
,
},
computed
:
{
...
mapGetters
([
...
...
app/assets/javascripts/notes/components/issue_note_body.vue
View file @
a59f2369
<
script
>
import
I
ssueNoteEditedText
from
'
./issue_note_edited_text.vue
'
;
import
I
ssueNoteAwardsList
from
'
./issue_note_awards_list.vue
'
;
import
I
ssueNoteForm
from
'
./issue_note_form.vue
'
;
import
i
ssueNoteEditedText
from
'
./issue_note_edited_text.vue
'
;
import
i
ssueNoteAwardsList
from
'
./issue_note_awards_list.vue
'
;
import
i
ssueNoteForm
from
'
./issue_note_form.vue
'
;
import
TaskList
from
'
../../task_list
'
;
export
default
{
...
...
@@ -34,9 +34,9 @@ export default {
},
},
components
:
{
I
ssueNoteEditedText
,
I
ssueNoteAwardsList
,
I
ssueNoteForm
,
i
ssueNoteEditedText
,
i
ssueNoteAwardsList
,
i
ssueNoteForm
,
},
methods
:
{
renderGFM
()
{
...
...
app/assets/javascripts/notes/components/issue_note_edited_text.vue
View file @
a59f2369
<
script
>
import
T
imeAgoTooltip
from
'
../../vue_shared/components/time_ago_tooltip.vue
'
;
import
t
imeAgoTooltip
from
'
../../vue_shared/components/time_ago_tooltip.vue
'
;
export
default
{
props
:
{
...
...
@@ -22,7 +22,7 @@ export default {
},
},
components
:
{
T
imeAgoTooltip
,
t
imeAgoTooltip
,
},
};
</
script
>
...
...
app/assets/javascripts/notes/components/issue_note_form.vue
View file @
a59f2369
<
script
>
import
M
arkdownField
from
'
../../vue_shared/components/markdown/field.vue
'
;
import
m
arkdownField
from
'
../../vue_shared/components/markdown/field.vue
'
;
import
eventHub
from
'
../event_hub
'
;
export
default
{
...
...
@@ -46,7 +46,7 @@ export default {
},
},
components
:
{
M
arkdownField
,
m
arkdownField
,
},
methods
:
{
handleUpdate
()
{
...
...
app/assets/javascripts/notes/components/issue_note_header.vue
View file @
a59f2369
<
script
>
import
T
imeAgoTooltip
from
'
../../vue_shared/components/time_ago_tooltip.vue
'
;
import
t
imeAgoTooltip
from
'
../../vue_shared/components/time_ago_tooltip.vue
'
;
export
default
{
props
:
{
...
...
@@ -36,7 +36,7 @@ export default {
},
},
components
:
{
T
imeAgoTooltip
,
t
imeAgoTooltip
,
},
data
()
{
return
{
...
...
app/assets/javascripts/notes/components/issue_notes.vue
View file @
a59f2369
...
...
@@ -6,12 +6,12 @@ import Vuex from 'vuex';
import
VueResource
from
'
vue-resource
'
;
import
storeOptions
from
'
../stores/issue_notes_store
'
;
import
eventHub
from
'
../event_hub
'
;
import
I
ssueNote
from
'
./issue_note.vue
'
;
import
I
ssueDiscussion
from
'
./issue_discussion.vue
'
;
import
I
ssueSystemNote
from
'
./issue_system_note.vue
'
;
import
I
ssueCommentForm
from
'
./issue_comment_form.vue
'
;
import
P
laceholderNote
from
'
./issue_placeholder_note.vue
'
;
import
P
laceholderSystemNote
from
'
./issue_placeholder_system_note.vue
'
;
import
i
ssueNote
from
'
./issue_note.vue
'
;
import
i
ssueDiscussion
from
'
./issue_discussion.vue
'
;
import
i
ssueSystemNote
from
'
./issue_system_note.vue
'
;
import
i
ssueCommentForm
from
'
./issue_comment_form.vue
'
;
import
p
laceholderNote
from
'
./issue_placeholder_note.vue
'
;
import
p
laceholderSystemNote
from
'
./issue_placeholder_system_note.vue
'
;
Vue
.
use
(
Vuex
);
Vue
.
use
(
VueResource
);
...
...
@@ -26,12 +26,12 @@ export default {
};
},
components
:
{
I
ssueNote
,
I
ssueDiscussion
,
I
ssueSystemNote
,
I
ssueCommentForm
,
P
laceholderNote
,
P
laceholderSystemNote
,
i
ssueNote
,
i
ssueDiscussion
,
i
ssueSystemNote
,
i
ssueCommentForm
,
p
laceholderNote
,
p
laceholderSystemNote
,
},
computed
:
{
...
Vuex
.
mapGetters
([
...
...
@@ -43,14 +43,14 @@ export default {
componentName
(
note
)
{
if
(
note
.
isPlaceholderNote
)
{
if
(
note
.
placeholderType
===
'
systemNote
'
)
{
return
P
laceholderSystemNote
;
return
p
laceholderSystemNote
;
}
return
P
laceholderNote
;
return
p
laceholderNote
;
}
else
if
(
note
.
individual_note
)
{
return
note
.
notes
[
0
].
system
?
IssueSystemNote
:
I
ssueNote
;
return
note
.
notes
[
0
].
system
?
issueSystemNote
:
i
ssueNote
;
}
return
I
ssueDiscussion
;
return
i
ssueDiscussion
;
},
componentData
(
note
)
{
return
note
.
individual_note
?
note
.
notes
[
0
]
:
note
;
...
...
app/assets/javascripts/notes/components/issue_system_note.vue
View file @
a59f2369
<
script
>
import
{
mapGetters
}
from
'
vuex
'
;
import
iconsMap
from
'
./issue_note_icons
'
;
import
I
ssueNoteHeader
from
'
./issue_note_header.vue
'
;
import
i
ssueNoteHeader
from
'
./issue_note_header.vue
'
;
export
default
{
props
:
{
...
...
@@ -16,7 +16,7 @@ export default {
};
},
components
:
{
I
ssueNoteHeader
,
i
ssueNoteHeader
,
},
computed
:
{
...
mapGetters
([
...
...
app/assets/javascripts/notes/index.js
View file @
a59f2369
import
Vue
from
'
vue
'
;
import
I
ssueNotes
from
'
./components/issue_notes.vue
'
;
import
i
ssueNotes
from
'
./components/issue_notes.vue
'
;
import
'
../vue_shared/vue_resource_interceptor
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
const
vm
=
new
Vue
({
el
:
'
#js-notes
'
,
components
:
{
IssueNotes
},
components
:
{
issueNotes
},
template
:
`
<issue-notes ref="notes" />
`
,
...
...
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