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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
9c22974c
Commit
9c22974c
authored
Aug 17, 2017
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename a few attribute suffixes from `_url` to `_path`
parent
09338e39
Changes
21
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
84 additions
and
84 deletions
+84
-84
app/assets/javascripts/issue_show/components/app.vue
app/assets/javascripts/issue_show/components/app.vue
+6
-6
app/assets/javascripts/issue_show/components/fields/description.vue
.../javascripts/issue_show/components/fields/description.vue
+4
-4
app/assets/javascripts/issue_show/components/fields/project_move.vue
...javascripts/issue_show/components/fields/project_move.vue
+2
-2
app/assets/javascripts/issue_show/components/form.vue
app/assets/javascripts/issue_show/components/form.vue
+6
-6
app/assets/javascripts/issue_show/index.js
app/assets/javascripts/issue_show/index.js
+3
-3
app/assets/javascripts/notes/components/issue_comment_form.vue
...ssets/javascripts/notes/components/issue_comment_form.vue
+8
-8
app/assets/javascripts/notes/components/issue_note_form.vue
app/assets/javascripts/notes/components/issue_note_form.vue
+8
-8
app/assets/javascripts/notes/index.js
app/assets/javascripts/notes/index.js
+2
-2
app/assets/javascripts/vue_shared/components/markdown/field.vue
...sets/javascripts/vue_shared/components/markdown/field.vue
+6
-6
app/assets/javascripts/vue_shared/components/markdown/toolbar.vue
...ts/javascripts/vue_shared/components/markdown/toolbar.vue
+7
-7
app/helpers/issuables_helper.rb
app/helpers/issuables_helper.rb
+3
-3
app/views/projects/issues/_discussion.html.haml
app/views/projects/issues/_discussion.html.haml
+2
-2
spec/javascripts/issue_show/components/app_spec.js
spec/javascripts/issue_show/components/app_spec.js
+3
-3
spec/javascripts/issue_show/components/fields/description_spec.js
...ascripts/issue_show/components/fields/description_spec.js
+2
-2
spec/javascripts/issue_show/components/fields/project_move_spec.js
...scripts/issue_show/components/fields/project_move_spec.js
+1
-1
spec/javascripts/issue_show/components/form_spec.js
spec/javascripts/issue_show/components/form_spec.js
+3
-3
spec/javascripts/notes/components/issue_comment_form_spec.js
spec/javascripts/notes/components/issue_comment_form_spec.js
+4
-4
spec/javascripts/notes/components/issue_note_app_spec.js
spec/javascripts/notes/components/issue_note_app_spec.js
+8
-8
spec/javascripts/notes/components/issue_note_form_spec.js
spec/javascripts/notes/components/issue_note_form_spec.js
+2
-2
spec/javascripts/notes/mock_data.js
spec/javascripts/notes/mock_data.js
+2
-2
spec/javascripts/vue_shared/components/markdown/field_spec.js
.../javascripts/vue_shared/components/markdown/field_spec.js
+2
-2
No files found.
app/assets/javascripts/issue_show/components/app.vue
View file @
9c22974c
...
...
@@ -80,11 +80,11 @@ export default {
type
:
Boolean
,
required
:
true
,
},
markdownPreview
Url
:
{
markdownPreview
Path
:
{
type
:
String
,
required
:
true
,
},
markdownDocs
:
{
markdownDocs
Path
:
{
type
:
String
,
required
:
true
,
},
...
...
@@ -96,7 +96,7 @@ export default {
type
:
String
,
required
:
true
,
},
projectsAutocomplete
Url
:
{
projectsAutocomplete
Path
:
{
type
:
String
,
required
:
true
,
},
...
...
@@ -242,11 +242,11 @@ export default {
:can-move=
"canMove"
:can-destroy=
"canDestroy"
:issuable-templates=
"issuableTemplates"
:markdown-docs
=
"markdownDocs
"
:markdown-preview-
url=
"markdownPreviewUrl
"
:markdown-docs
-path=
"markdownDocsPath
"
:markdown-preview-
path=
"markdownPreviewPath
"
:project-path=
"projectPath"
:project-namespace=
"projectNamespace"
:projects-autocomplete-
url=
"projectsAutocompleteUrl
"
:projects-autocomplete-
path=
"projectsAutocompletePath
"
/>
<div
v-else
>
<title-component
...
...
app/assets/javascripts/issue_show/components/fields/description.vue
View file @
9c22974c
...
...
@@ -10,11 +10,11 @@
type
:
Object
,
required
:
true
,
},
markdownPreview
Url
:
{
markdownPreview
Path
:
{
type
:
String
,
required
:
true
,
},
markdownDocs
:
{
markdownDocs
Path
:
{
type
:
String
,
required
:
true
,
},
...
...
@@ -36,8 +36,8 @@
Description
</label>
<markdown-field
:markdown-preview-
url=
"markdownPreviewUrl
"
:markdown-docs
=
"markdownDocs
"
>
:markdown-preview-
path=
"markdownPreviewPath
"
:markdown-docs
-path=
"markdownDocsPath
"
>
<textarea
id=
"issue-description"
class=
"note-textarea js-gfm-input js-autosize markdown-area"
...
...
app/assets/javascripts/issue_show/components/fields/project_move.vue
View file @
9c22974c
...
...
@@ -10,7 +10,7 @@
type
:
Object
,
required
:
true
,
},
projectsAutocomplete
Url
:
{
projectsAutocomplete
Path
:
{
type
:
String
,
required
:
true
,
},
...
...
@@ -20,7 +20,7 @@
$moveDropdown
.
select2
({
ajax
:
{
url
:
this
.
projectsAutocomplete
Url
,
url
:
this
.
projectsAutocomplete
Path
,
quietMillis
:
125
,
data
(
term
,
page
,
context
)
{
return
{
...
...
app/assets/javascripts/issue_show/components/form.vue
View file @
9c22974c
...
...
@@ -26,11 +26,11 @@
required
:
false
,
default
:
()
=>
[],
},
markdownPreview
Url
:
{
markdownPreview
Path
:
{
type
:
String
,
required
:
true
,
},
markdownDocs
:
{
markdownDocs
Path
:
{
type
:
String
,
required
:
true
,
},
...
...
@@ -42,7 +42,7 @@
type
:
String
,
required
:
true
,
},
projectsAutocomplete
Url
:
{
projectsAutocomplete
Path
:
{
type
:
String
,
required
:
true
,
},
...
...
@@ -89,14 +89,14 @@
</div>
<description-field
:form-state=
"formState"
:markdown-preview-
url=
"markdownPreviewUrl
"
:markdown-docs
=
"markdownDocs
"
/>
:markdown-preview-
path=
"markdownPreviewPath
"
:markdown-docs
-path=
"markdownDocsPath
"
/>
<confidential-checkbox
:form-state=
"formState"
/>
<project-move
v-if=
"canMove"
:form-state=
"formState"
:projects-autocomplete-
url=
"projectsAutocompleteUrl
"
/>
:projects-autocomplete-
path=
"projectsAutocompletePath
"
/>
<edit-actions
:form-state=
"formState"
:can-destroy=
"canDestroy"
/>
...
...
app/assets/javascripts/issue_show/index.js
View file @
9c22974c
...
...
@@ -37,11 +37,11 @@ document.addEventListener('DOMContentLoaded', () => {
initialDescriptionText
:
this
.
initialDescriptionText
,
issuableTemplates
:
this
.
issuableTemplates
,
isConfidential
:
this
.
isConfidential
,
markdownPreview
Url
:
this
.
markdownPreviewUrl
,
markdownDocs
:
this
.
markdownDocs
,
markdownPreview
Path
:
this
.
markdownPreviewPath
,
markdownDocs
Path
:
this
.
markdownDocsPath
,
projectPath
:
this
.
projectPath
,
projectNamespace
:
this
.
projectNamespace
,
projectsAutocomplete
Url
:
this
.
projectsAutocompleteUrl
,
projectsAutocomplete
Path
:
this
.
projectsAutocompletePath
,
updatedAt
:
this
.
updatedAt
,
updatedByName
:
this
.
updatedByName
,
updatedByPath
:
this
.
updatedByPath
,
...
...
app/assets/javascripts/notes/components/issue_comment_form.vue
View file @
9c22974c
...
...
@@ -71,13 +71,13 @@
'
js-note-target-reopen
'
:
!
this
.
isIssueOpen
,
};
},
markdownDocs
Url
()
{
return
this
.
getNotesData
.
markdownDocs
;
markdownDocs
Path
()
{
return
this
.
getNotesData
.
markdownDocs
Path
;
},
quickActionsDocs
Url
()
{
return
this
.
getNotesData
.
quickActionsDocs
;
quickActionsDocs
Path
()
{
return
this
.
getNotesData
.
quickActionsDocs
Path
;
},
markdownPreview
Url
()
{
markdownPreview
Path
()
{
return
this
.
getIssueData
.
preview_note_path
;
},
author
()
{
...
...
@@ -231,9 +231,9 @@
<div
class=
"flash-container error-alert timeline-content"
></div>
<confidentialIssue
v-if=
"isConfidentialIssue"
/>
<markdown-field
:markdown-preview-
url=
"markdownPreviewUrl
"
:markdown-docs
=
"markdownDocsUrl
"
:quick-actions-docs
=
"quickActionsDocsUrl
"
:markdown-preview-
path=
"markdownPreviewPath
"
:markdown-docs
-path=
"markdownDocsPath
"
:quick-actions-docs
-path=
"quickActionsDocsPath
"
:add-spacing-classes=
"false"
:is-confidential-issue=
"isConfidentialIssue"
>
<textarea
...
...
app/assets/javascripts/notes/components/issue_note_form.vue
View file @
9c22974c
...
...
@@ -52,14 +52,14 @@
noteHash
()
{
return
`#note_
${
this
.
noteId
}
`
;
},
markdownPreview
Url
()
{
markdownPreview
Path
()
{
return
this
.
getIssueDataByProp
(
'
preview_note_path
'
);
},
markdownDocs
Url
()
{
return
this
.
getNotesDataByProp
(
'
markdownDocs
'
);
markdownDocs
Path
()
{
return
this
.
getNotesDataByProp
(
'
markdownDocs
Path
'
);
},
quickActionsDocs
Url
()
{
return
!
this
.
isEditing
?
this
.
getNotesDataByProp
(
'
quickActionsDocs
'
)
:
undefined
;
quickActionsDocs
Path
()
{
return
!
this
.
isEditing
?
this
.
getNotesDataByProp
(
'
quickActionsDocs
Path
'
)
:
undefined
;
},
currentUserId
()
{
return
this
.
getUserDataByProp
(
'
id
'
);
...
...
@@ -124,9 +124,9 @@
class=
"edit-note common-note-form js-quick-submit gfm-form"
>
<confidentialIssue
v-if=
"isConfidentialIssue"
/>
<markdown-field
:markdown-preview-
url=
"markdownPreviewUrl
"
:markdown-docs
=
"markdownDocsUrl
"
:quick-actions-docs
=
"quickActionsDocsUrl
"
:markdown-preview-
path=
"markdownPreviewPath
"
:markdown-docs
-path=
"markdownDocsPath
"
:quick-actions-docs
-path=
"quickActionsDocsPath
"
:add-spacing-classes=
"false"
>
<textarea
id=
"note_note"
...
...
app/assets/javascripts/notes/index.js
View file @
9c22974c
...
...
@@ -18,8 +18,8 @@ document.addEventListener('DOMContentLoaded', () => new Vue({
newSessionPath
:
notesDataset
.
newSessionPath
,
registerPath
:
notesDataset
.
registerPath
,
notesPath
:
notesDataset
.
notesPath
,
markdownDocs
:
notesDataset
.
markdownDocs
,
quickActionsDocs
:
notesDataset
.
quickActionsDocs
,
markdownDocs
Path
:
notesDataset
.
markdownDocsPath
,
quickActionsDocs
Path
:
notesDataset
.
quickActionsDocsPath
,
},
};
},
...
...
app/assets/javascripts/vue_shared/components/markdown/field.vue
View file @
9c22974c
...
...
@@ -5,12 +5,12 @@
export
default
{
props
:
{
markdownPreview
Url
:
{
markdownPreview
Path
:
{
type
:
String
,
required
:
false
,
default
:
''
,
},
markdownDocs
:
{
markdownDocs
Path
:
{
type
:
String
,
required
:
true
,
},
...
...
@@ -19,7 +19,7 @@
required
:
false
,
default
:
true
,
},
quickActionsDocs
:
{
quickActionsDocs
Path
:
{
type
:
String
,
required
:
false
,
},
...
...
@@ -52,7 +52,7 @@
}
else
{
this
.
markdownPreviewLoading
=
true
;
this
.
$http
.
post
(
this
.
markdownPreview
Url
,
this
.
markdownPreview
Path
,
{
/*
Can't use `$refs` as the component is technically in the parent component
...
...
@@ -117,8 +117,8 @@
</i>
</a>
<markdown-toolbar
:markdown-docs
=
"markdownDocs
"
:quick-actions-docs
=
"quickActionsDocs
"
:markdown-docs
-path=
"markdownDocsPath
"
:quick-actions-docs
-path=
"quickActionsDocsPath
"
/>
</div>
</div>
...
...
app/assets/javascripts/vue_shared/components/markdown/toolbar.vue
View file @
9c22974c
<
script
>
export
default
{
props
:
{
markdownDocs
:
{
markdownDocs
Path
:
{
type
:
String
,
required
:
true
,
},
quickActionsDocs
:
{
quickActionsDocs
Path
:
{
type
:
String
,
required
:
false
,
},
...
...
@@ -16,24 +16,24 @@
<
template
>
<div
class=
"comment-toolbar clearfix"
>
<div
class=
"toolbar-text"
>
<template
v-if=
"!quickActionsDocs
&& markdownDocs
"
>
<template
v-if=
"!quickActionsDocs
Path && markdownDocsPath
"
>
<a
:href=
"markdownDocs"
:href=
"markdownDocs
Path
"
target=
"_blank"
tabindex=
"-1"
>
Markdown is supported
</a>
</
template
>
<
template
v-if=
"quickActionsDocs
&& markdownDocs
"
>
<
template
v-if=
"quickActionsDocs
Path && markdownDocsPath
"
>
<a
:href=
"markdownDocs"
:href=
"markdownDocs
Path
"
target=
"_blank"
tabindex=
"-1"
>
Markdown
</a>
and
<a
:href=
"quickActionsDocs"
:href=
"quickActionsDocs
Path
"
target=
"_blank"
tabindex=
"-1"
>
quick actions
...
...
app/helpers/issuables_helper.rb
View file @
9c22974c
...
...
@@ -210,9 +210,9 @@ module IssuablesHelper
canMove:
current_user
?
issuable
.
can_move?
(
current_user
)
:
false
,
issuableRef:
issuable
.
to_reference
,
isConfidential:
issuable
.
confidential
,
markdownPreview
Url
:
preview_markdown_path
(
@project
),
markdownDocs:
help_page_path
(
'user/markdown'
),
projectsAutocomplete
Url
:
autocomplete_projects_path
(
project_id:
@project
.
id
),
markdownPreview
Path
:
preview_markdown_path
(
@project
),
markdownDocs
Path
:
help_page_path
(
'user/markdown'
),
projectsAutocomplete
Path
:
autocomplete_projects_path
(
project_id:
@project
.
id
),
issuableTemplates:
issuable_templates
(
issuable
),
projectPath:
ref_project
.
path
,
projectNamespace:
ref_project
.
namespace
.
full_path
,
...
...
app/views/projects/issues/_discussion.html.haml
View file @
9c22974c
...
...
@@ -8,8 +8,8 @@
#js-vue-notes
{
data:
{
discussions_path:
discussions_namespace_project_issue_path
(
@project
.
namespace
,
@project
,
@issue
,
format: :json
),
register_path:
"#{new_session_path(:user, redirect_to_referer: 'yes')}#register-pane"
,
new_session_path:
new_session_path
(
:user
,
redirect_to_referer:
'yes'
),
markdown_docs:
help_page_path
(
'user/markdown'
),
quick_actions_docs:
help_page_path
(
'user/project/quick_actions'
),
markdown_docs
_path
:
help_page_path
(
'user/markdown'
),
quick_actions_docs
_path
:
help_page_path
(
'user/project/quick_actions'
),
notes_path:
notes_url
,
last_fetched_at:
Time
.
now
.
to_i
,
issue_data:
serialize_issuable
(
@issue
),
...
...
spec/javascripts/issue_show/components/app_spec.js
View file @
9c22974c
...
...
@@ -41,9 +41,9 @@ describe('Issuable output', () => {
initialTitleText
:
''
,
initialDescriptionHtml
:
''
,
initialDescriptionText
:
''
,
markdownPreview
Url
:
'
/
'
,
markdownDocs
:
'
/
'
,
projectsAutocomplete
Url
:
'
/
'
,
markdownPreview
Path
:
'
/
'
,
markdownDocs
Path
:
'
/
'
,
projectsAutocomplete
Path
:
'
/
'
,
isConfidential
:
false
,
projectNamespace
:
'
/
'
,
projectPath
:
'
/
'
,
...
...
spec/javascripts/issue_show/components/fields/description_spec.js
View file @
9c22974c
...
...
@@ -25,8 +25,8 @@ describe('Description field component', () => {
vm
=
new
Component
({
el
,
propsData
:
{
markdownPreview
Url
:
'
/
'
,
markdownDocs
:
'
/
'
,
markdownPreview
Path
:
'
/
'
,
markdownDocs
Path
:
'
/
'
,
formState
:
store
.
formState
,
},
}).
$mount
();
...
...
spec/javascripts/issue_show/components/fields/project_move_spec.js
View file @
9c22974c
...
...
@@ -15,7 +15,7 @@ describe('Project move field component', () => {
vm
=
new
Component
({
propsData
:
{
formState
,
projectsAutocomplete
Url
:
'
/autocomplete
'
,
projectsAutocomplete
Path
:
'
/autocomplete
'
,
},
}).
$mount
();
...
...
spec/javascripts/issue_show/components/form_spec.js
View file @
9c22974c
...
...
@@ -18,9 +18,9 @@ describe('Inline edit form component', () => {
description
:
'
a
'
,
lockedWarningVisible
:
false
,
},
markdownPreview
Url
:
'
/
'
,
markdownDocs
:
'
/
'
,
projectsAutocomplete
Url
:
'
/
'
,
markdownPreview
Path
:
'
/
'
,
markdownDocs
Path
:
'
/
'
,
projectsAutocomplete
Path
:
'
/
'
,
projectPath
:
'
/
'
,
projectNamespace
:
'
/
'
,
},
...
...
spec/javascripts/notes/components/issue_comment_form_spec.js
View file @
9c22974c
...
...
@@ -46,13 +46,13 @@ describe('issue_comment_form component', () => {
});
it
(
'
should link to markdown docs
'
,
()
=>
{
const
{
markdownDocs
}
=
notesDataMock
;
expect
(
vm
.
$el
.
querySelector
(
`a[href="
${
markdownDocs
}
"]`
).
textContent
.
trim
()).
toEqual
(
'
Markdown
'
);
const
{
markdownDocs
Path
}
=
notesDataMock
;
expect
(
vm
.
$el
.
querySelector
(
`a[href="
${
markdownDocs
Path
}
"]`
).
textContent
.
trim
()).
toEqual
(
'
Markdown
'
);
});
it
(
'
should link to quick actions docs
'
,
()
=>
{
const
{
quickActionsDocs
}
=
notesDataMock
;
expect
(
vm
.
$el
.
querySelector
(
`a[href="
${
quickActionsDocs
}
"]`
).
textContent
.
trim
()).
toEqual
(
'
quick actions
'
);
const
{
quickActionsDocs
Path
}
=
notesDataMock
;
expect
(
vm
.
$el
.
querySelector
(
`a[href="
${
quickActionsDocs
Path
}
"]`
).
textContent
.
trim
()).
toEqual
(
'
quick actions
'
);
});
describe
(
'
edit mode
'
,
()
=>
{
...
...
spec/javascripts/notes/components/issue_note_app_spec.js
View file @
9c22974c
...
...
@@ -204,13 +204,13 @@ describe('issue_note_app', () => {
});
it
(
'
should render markdown docs url
'
,
()
=>
{
const
{
markdownDocs
}
=
mockData
.
notesDataMock
;
expect
(
vm
.
$el
.
querySelector
(
`a[href="
${
markdownDocs
}
"]`
).
textContent
.
trim
()).
toEqual
(
'
Markdown
'
);
const
{
markdownDocs
Path
}
=
mockData
.
notesDataMock
;
expect
(
vm
.
$el
.
querySelector
(
`a[href="
${
markdownDocs
Path
}
"]`
).
textContent
.
trim
()).
toEqual
(
'
Markdown
'
);
});
it
(
'
should render quick action docs url
'
,
()
=>
{
const
{
quickActionsDocs
}
=
mockData
.
notesDataMock
;
expect
(
vm
.
$el
.
querySelector
(
`a[href="
${
quickActionsDocs
}
"]`
).
textContent
.
trim
()).
toEqual
(
'
quick actions
'
);
const
{
quickActionsDocs
Path
}
=
mockData
.
notesDataMock
;
expect
(
vm
.
$el
.
querySelector
(
`a[href="
${
quickActionsDocs
Path
}
"]`
).
textContent
.
trim
()).
toEqual
(
'
quick actions
'
);
});
});
...
...
@@ -227,11 +227,11 @@ describe('issue_note_app', () => {
it
(
'
should render markdown docs url
'
,
(
done
)
=>
{
setTimeout
(()
=>
{
vm
.
$el
.
querySelector
(
'
.js-note-edit
'
).
click
();
const
{
markdownDocs
}
=
mockData
.
notesDataMock
;
const
{
markdownDocs
Path
}
=
mockData
.
notesDataMock
;
Vue
.
nextTick
(()
=>
{
expect
(
vm
.
$el
.
querySelector
(
`.edit-note a[href="
${
markdownDocs
}
"]`
).
textContent
.
trim
(),
vm
.
$el
.
querySelector
(
`.edit-note a[href="
${
markdownDocs
Path
}
"]`
).
textContent
.
trim
(),
).
toEqual
(
'
Markdown is supported
'
);
done
();
});
...
...
@@ -241,11 +241,11 @@ describe('issue_note_app', () => {
it
(
'
should not render quick actions docs url
'
,
(
done
)
=>
{
setTimeout
(()
=>
{
vm
.
$el
.
querySelector
(
'
.js-note-edit
'
).
click
();
const
{
quickActionsDocs
}
=
mockData
.
notesDataMock
;
const
{
quickActionsDocs
Path
}
=
mockData
.
notesDataMock
;
Vue
.
nextTick
(()
=>
{
expect
(
vm
.
$el
.
querySelector
(
`.edit-note a[href="
${
quickActionsDocs
}
"]`
),
vm
.
$el
.
querySelector
(
`.edit-note a[href="
${
quickActionsDocs
Path
}
"]`
),
).
toEqual
(
null
);
done
();
});
...
...
spec/javascripts/notes/components/issue_note_form_spec.js
View file @
9c22974c
...
...
@@ -53,8 +53,8 @@ describe('issue_note_form component', () => {
});
it
(
'
should link to markdown docs
'
,
()
=>
{
const
{
markdownDocs
}
=
notesDataMock
;
expect
(
vm
.
$el
.
querySelector
(
`a[href="
${
markdownDocs
}
"]`
).
textContent
.
trim
()).
toEqual
(
'
Markdown
'
);
const
{
markdownDocs
Path
}
=
notesDataMock
;
expect
(
vm
.
$el
.
querySelector
(
`a[href="
${
markdownDocs
Path
}
"]`
).
textContent
.
trim
()).
toEqual
(
'
Markdown
'
);
});
describe
(
'
keyboard events
'
,
()
=>
{
...
...
spec/javascripts/notes/mock_data.js
View file @
9c22974c
...
...
@@ -2,10 +2,10 @@
export
const
notesDataMock
=
{
discussionsPath
:
'
/gitlab-org/gitlab-ce/issues/26/discussions.json
'
,
lastFetchedAt
:
'
1501862675
'
,
markdownDocs
:
'
/help/user/markdown
'
,
markdownDocs
Path
:
'
/help/user/markdown
'
,
newSessionPath
:
'
/users/sign_in?redirect_to_referer=yes
'
,
notesPath
:
'
/gitlab-org/gitlab-ce/noteable/issue/98/notes
'
,
quickActionsDocs
:
'
/help/user/project/quick_actions
'
,
quickActionsDocs
Path
:
'
/help/user/project/quick_actions
'
,
registerPath
:
'
/users/sign_in?redirect_to_referer=yes#register-pane
'
,
};
...
...
spec/javascripts/vue_shared/components/markdown/field_spec.js
View file @
9c22974c
...
...
@@ -16,8 +16,8 @@ describe('Markdown field component', () => {
},
template
:
`
<field-component
mar
odown-preview-url
="/preview"
markdown-docs="/docs"
mar
kdown-preview-path
="/preview"
markdown-docs
-path
="/docs"
>
<textarea
slot="textarea"
...
...
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