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
Léo-Paul Géneau
gitlab-ce
Commits
088de723
Commit
088de723
authored
Jan 05, 2018
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ci skip] Fix more eslint rules
parent
7c7f5266
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
380 additions
and
380 deletions
+380
-380
app/assets/javascripts/ide/components/repo_preview.vue
app/assets/javascripts/ide/components/repo_preview.vue
+62
-56
app/assets/javascripts/ide/components/repo_tab.vue
app/assets/javascripts/ide/components/repo_tab.vue
+34
-37
app/assets/javascripts/issue_show/components/app.vue
app/assets/javascripts/issue_show/components/app.vue
+281
-283
app/assets/javascripts/issue_show/components/fields/description.vue
.../javascripts/issue_show/components/fields/description.vue
+1
-1
app/assets/javascripts/issue_show/components/title.vue
app/assets/javascripts/issue_show/components/title.vue
+1
-1
app/assets/javascripts/jobs/components/header.vue
app/assets/javascripts/jobs/components/header.vue
+1
-1
app/assets/javascripts/monitoring/components/graph.vue
app/assets/javascripts/monitoring/components/graph.vue
+0
-1
No files found.
app/assets/javascripts/ide/components/repo_preview.vue
View file @
088de723
<
script
>
import
{
mapGetters
}
from
'
vuex
'
;
import
LineHighlighter
from
'
../../line_highlighter
'
;
import
syntaxHighlight
from
'
../../syntax_highlight
'
;
import
{
mapGetters
}
from
'
vuex
'
;
import
LineHighlighter
from
'
../../line_highlighter
'
;
import
syntaxHighlight
from
'
../../syntax_highlight
'
;
export
default
{
computed
:
{
...
mapGetters
([
'
activeFile
'
,
]),
renderErrorTooLarge
()
{
return
this
.
activeFile
.
renderError
===
'
too_large
'
;
export
default
{
computed
:
{
...
mapGetters
([
'
activeFile
'
,
]),
renderErrorTooLarge
()
{
return
this
.
activeFile
.
renderError
===
'
too_large
'
;
},
},
},
methods
:
{
highlightFile
()
{
syntaxHighlight
(
$
(
this
.
$el
).
find
(
'
.file-content
'
));
},
},
mounted
()
{
this
.
highlightFile
();
this
.
lineHighlighter
=
new
LineHighlighter
({
fileHolderSelector
:
'
.blob-viewer-container
'
,
scrollFileHolder
:
true
,
});
},
updated
()
{
this
.
$nextTick
(()
=>
{
mounted
()
{
this
.
highlightFile
();
});
},
};
this
.
lineHighlighter
=
new
LineHighlighter
({
fileHolderSelector
:
'
.blob-viewer-container
'
,
scrollFileHolder
:
true
,
});
},
updated
()
{
this
.
$nextTick
(()
=>
{
this
.
highlightFile
();
});
},
methods
:
{
highlightFile
()
{
syntaxHighlight
(
$
(
this
.
$el
).
find
(
'
.file-content
'
));
},
},
};
</
script
>
<
template
>
<div>
<div
v-if=
"!activeFile.renderError"
v-html=
"activeFile.html"
class=
"multi-file-preview-holder"
>
</div>
<div
v-else-if=
"activeFile.tempFile"
class=
"vertical-center render-error"
>
<p
class=
"text-center"
>
The source could not be displayed for this temporary file.
</p>
</div>
<div
v-else-if=
"renderErrorTooLarge"
class=
"vertical-center render-error"
>
<p
class=
"text-center"
>
The source could not be displayed because it is too large. You can
<a
:href=
"activeFile.rawPath"
download
>
download
</a>
it instead.
</p>
</div>
<div
v-else
class=
"vertical-center render-error"
>
<p
class=
"text-center"
>
The source could not be displayed because a rendering error occurred. You can
<a
:href=
"activeFile.rawPath"
download
>
download
</a>
it instead.
</p>
<div>
<div
v-if=
"!activeFile.renderError"
v-html=
"activeFile.html"
class=
"multi-file-preview-holder"
>
</div>
<div
v-else-if=
"activeFile.tempFile"
class=
"vertical-center render-error"
>
<p
class=
"text-center"
>
The source could not be displayed for this temporary file.
</p>
</div>
<div
v-else-if=
"renderErrorTooLarge"
class=
"vertical-center render-error"
>
<p
class=
"text-center"
>
The source could not be displayed because it is too large.
You can
<a
:href=
"activeFile.rawPath"
download
>
download
</a>
it instead.
</p>
</div>
<div
v-else
class=
"vertical-center render-error"
>
<p
class=
"text-center"
>
The source could not be displayed because a rendering error occurred.
You can
<a
:href=
"activeFile.rawPath"
download
>
download
</a>
it instead.
</p>
</div>
</div>
</div>
</
template
>
app/assets/javascripts/ide/components/repo_tab.vue
View file @
088de723
<
script
>
import
{
mapActions
}
from
'
vuex
'
;
import
fileIcon
from
'
../../vue_shared/components/file_icon.vue
'
;
import
{
mapActions
}
from
'
vuex
'
;
import
fileIcon
from
'
../../vue_shared/components/file_icon.vue
'
;
export
default
{
props
:
{
tab
:
{
type
:
Object
,
required
:
true
,
export
default
{
components
:
{
fileIcon
,
},
},
components
:
{
fileIcon
,
},
computed
:
{
closeLabel
()
{
if
(
this
.
tab
.
changed
||
this
.
tab
.
tempFile
)
{
return
`
${
this
.
tab
.
name
}
changed`
;
}
return
`Close
${
this
.
tab
.
name
}
`
;
props
:
{
tab
:
{
type
:
Object
,
required
:
true
,
},
},
changedClass
()
{
const
tabChangedObj
=
{
'
fa-times close-icon
'
:
!
this
.
tab
.
changed
&&
!
this
.
tab
.
tempFile
,
'
fa-circle unsaved-icon
'
:
this
.
tab
.
changed
||
this
.
tab
.
tempFile
,
};
return
tabChangedObj
;
computed
:
{
closeLabel
()
{
if
(
this
.
tab
.
changed
||
this
.
tab
.
tempFile
)
{
return
`
${
this
.
tab
.
name
}
changed`
;
}
return
`Close
${
this
.
tab
.
name
}
`
;
},
changedClass
()
{
const
tabChangedObj
=
{
'
fa-times close-icon
'
:
!
this
.
tab
.
changed
&&
!
this
.
tab
.
tempFile
,
'
fa-circle unsaved-icon
'
:
this
.
tab
.
changed
||
this
.
tab
.
tempFile
,
};
return
tabChangedObj
;
},
},
},
methods
:
{
...
mapActions
([
'
closeFile
'
,
]),
clickFile
(
tab
)
{
this
.
$router
.
push
(
`/project
${
tab
.
url
}
`
);
methods
:
{
...
mapActions
([
'
closeFile
'
,
]),
clickFile
(
tab
)
{
this
.
$router
.
push
(
`/project
${
tab
.
url
}
`
);
},
},
},
};
};
</
script
>
<
template
>
<li
@
click=
"clickFile(tab)"
>
<li
@
click=
"clickFile(tab)"
>
<button
type=
"button"
class=
"multi-file-tab-close"
...
...
@@ -69,8 +67,7 @@ export default {
<file-icon
:file-name=
"tab.name"
:size=
"16"
>
</file-icon>
/>
{{
tab
.
name
}}
</div>
</li>
...
...
app/assets/javascripts/issue_show/components/app.vue
View file @
088de723
This diff is collapsed.
Click to expand it.
app/assets/javascripts/issue_show/components/fields/description.vue
View file @
088de723
...
...
@@ -3,10 +3,10 @@
import
markdownField
from
'
../../../vue_shared/components/markdown/field.vue
'
;
export
default
{
mixins
:
[
updateMixin
],
components
:
{
markdownField
,
},
mixins
:
[
updateMixin
],
props
:
{
formState
:
{
type
:
Object
,
...
...
app/assets/javascripts/issue_show/components/title.vue
View file @
088de723
...
...
@@ -5,10 +5,10 @@
import
{
spriteIcon
}
from
'
../../lib/utils/common_utils
'
;
export
default
{
mixins
:
[
animateMixin
],
directives
:
{
tooltip
,
},
mixins
:
[
animateMixin
],
props
:
{
issuableRef
:
{
type
:
String
,
...
...
app/assets/javascripts/jobs/components/header.vue
View file @
088de723
...
...
@@ -3,7 +3,7 @@
import
loadingIcon
from
'
../../vue_shared/components/loading_icon.vue
'
;
export
default
{
name
:
'
j
obHeaderSection
'
,
name
:
'
J
obHeaderSection
'
,
components
:
{
ciHeader
,
loadingIcon
,
...
...
app/assets/javascripts/monitoring/components/graph.vue
View file @
088de723
...
...
@@ -26,7 +26,6 @@
mixins
:
[
MonitoringMixin
],
props
:
{
graphData
:
{
type
:
Object
,
...
...
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