From bf85a90037714c3ba290c9966f435adbfa90b074 Mon Sep 17 00:00:00 2001 From: Simon Knox Date: Mon, 4 Dec 2017 16:19:07 +0000 Subject: issue note component rename --- .../notes/components/discussion_locked_widget.vue | 26 +++ .../notes/components/issue_comment_form.vue | 15 +- .../notes/components/issue_discussion.vue | 22 +- .../components/issue_discussion_locked_widget.vue | 22 -- .../javascripts/notes/components/issue_note.vue | 12 +- .../notes/components/issue_note_actions.vue | 167 --------------- .../notes/components/issue_note_attachment.vue | 37 ---- .../notes/components/issue_note_awards_list.vue | 227 --------------------- .../notes/components/issue_note_body.vue | 18 +- .../notes/components/issue_note_edited_text.vue | 47 ----- .../notes/components/issue_note_header.vue | 118 ----------- .../components/issue_note_signed_out_widget.vue | 28 --- .../javascripts/notes/components/note_actions.vue | 167 +++++++++++++++ .../notes/components/note_attachment.vue | 37 ++++ .../notes/components/note_awards_list.vue | 227 +++++++++++++++++++++ .../notes/components/note_edited_text.vue | 47 +++++ .../javascripts/notes/components/note_header.vue | 118 +++++++++++ .../notes/components/note_signed_out_widget.vue | 27 +++ .../sidebar/components/lock/edit_form.vue | 9 +- .../sidebar/components/lock/lock_issue_sidebar.vue | 9 +- .../vue_shared/components/notes/system_note.vue | 8 +- .../javascripts/vue_shared/mixins/issuable.js | 13 +- .../notes/components/issue_note_actions_spec.js | 91 --------- .../notes/components/issue_note_attachment_spec.js | 23 --- .../components/issue_note_awards_list_spec.js | 56 ----- .../components/issue_note_edited_text_spec.js | 47 ----- .../notes/components/issue_note_header_spec.js | 94 --------- .../issue_note_signed_out_widget_spec.js | 37 ---- .../notes/components/note_actions_spec.js | 91 +++++++++ .../notes/components/note_attachment_spec.js | 23 +++ .../notes/components/note_awards_list_spec.js | 56 +++++ .../notes/components/note_edited_text_spec.js | 47 +++++ .../notes/components/note_header_spec.js | 94 +++++++++ .../components/note_signed_out_widget_spec.js | 37 ++++ 34 files changed, 1048 insertions(+), 1049 deletions(-) create mode 100644 app/assets/javascripts/notes/components/discussion_locked_widget.vue delete mode 100644 app/assets/javascripts/notes/components/issue_discussion_locked_widget.vue delete mode 100644 app/assets/javascripts/notes/components/issue_note_actions.vue delete mode 100644 app/assets/javascripts/notes/components/issue_note_attachment.vue delete mode 100644 app/assets/javascripts/notes/components/issue_note_awards_list.vue delete mode 100644 app/assets/javascripts/notes/components/issue_note_edited_text.vue delete mode 100644 app/assets/javascripts/notes/components/issue_note_header.vue delete mode 100644 app/assets/javascripts/notes/components/issue_note_signed_out_widget.vue create mode 100644 app/assets/javascripts/notes/components/note_actions.vue create mode 100644 app/assets/javascripts/notes/components/note_attachment.vue create mode 100644 app/assets/javascripts/notes/components/note_awards_list.vue create mode 100644 app/assets/javascripts/notes/components/note_edited_text.vue create mode 100644 app/assets/javascripts/notes/components/note_header.vue create mode 100644 app/assets/javascripts/notes/components/note_signed_out_widget.vue delete mode 100644 spec/javascripts/notes/components/issue_note_actions_spec.js delete mode 100644 spec/javascripts/notes/components/issue_note_attachment_spec.js delete mode 100644 spec/javascripts/notes/components/issue_note_awards_list_spec.js delete mode 100644 spec/javascripts/notes/components/issue_note_edited_text_spec.js delete mode 100644 spec/javascripts/notes/components/issue_note_header_spec.js delete mode 100644 spec/javascripts/notes/components/issue_note_signed_out_widget_spec.js create mode 100644 spec/javascripts/notes/components/note_actions_spec.js create mode 100644 spec/javascripts/notes/components/note_attachment_spec.js create mode 100644 spec/javascripts/notes/components/note_awards_list_spec.js create mode 100644 spec/javascripts/notes/components/note_edited_text_spec.js create mode 100644 spec/javascripts/notes/components/note_header_spec.js create mode 100644 spec/javascripts/notes/components/note_signed_out_widget_spec.js diff --git a/app/assets/javascripts/notes/components/discussion_locked_widget.vue b/app/assets/javascripts/notes/components/discussion_locked_widget.vue new file mode 100644 index 00000000000..e6f7ee56ff3 --- /dev/null +++ b/app/assets/javascripts/notes/components/discussion_locked_widget.vue @@ -0,0 +1,26 @@ + + + diff --git a/app/assets/javascripts/notes/components/issue_comment_form.vue b/app/assets/javascripts/notes/components/issue_comment_form.vue index dbc900f4c04..78986a450c2 100644 --- a/app/assets/javascripts/notes/components/issue_comment_form.vue +++ b/app/assets/javascripts/notes/components/issue_comment_form.vue @@ -8,8 +8,8 @@ import * as constants from '../constants'; import eventHub from '../event_hub'; import issueWarning from '../../vue_shared/components/issue/issue_warning.vue'; - import issueNoteSignedOutWidget from './issue_note_signed_out_widget.vue'; - import issueDiscussionLockedWidget from './issue_discussion_locked_widget.vue'; + import noteSignedOutWidget from './note_signed_out_widget.vue'; + import discussionLockedWidget from './discussion_locked_widget.vue'; import markdownField from '../../vue_shared/components/markdown/field.vue'; import userAvatarLink from '../../vue_shared/components/user_avatar/user_avatar_link.vue'; import issuableStateMixin from '../mixins/issuable_state'; @@ -29,8 +29,8 @@ }, components: { issueWarning, - issueNoteSignedOutWidget, - issueDiscussionLockedWidget, + noteSignedOutWidget, + discussionLockedWidget, markdownField, userAvatarLink, }, @@ -240,8 +240,11 @@