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
259adc34
Commit
259adc34
authored
Apr 03, 2018
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated components to PascalCase
Added comment for `key` usage
parent
c0dddb51
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
10 deletions
+13
-10
app/assets/javascripts/ide/components/commit_sidebar/list_item.vue
...s/javascripts/ide/components/commit_sidebar/list_item.vue
+2
-2
app/assets/javascripts/ide/components/repo_editor.vue
app/assets/javascripts/ide/components/repo_editor.vue
+1
-0
app/assets/javascripts/ide/components/repo_tab.vue
app/assets/javascripts/ide/components/repo_tab.vue
+8
-8
app/assets/javascripts/ide/stores/utils.js
app/assets/javascripts/ide/stores/utils.js
+2
-0
No files found.
app/assets/javascripts/ide/components/commit_sidebar/list_item.vue
View file @
259adc34
<
script
>
import
{
mapActions
}
from
'
vuex
'
;
import
i
con
from
'
~/vue_shared/components/icon.vue
'
;
import
I
con
from
'
~/vue_shared/components/icon.vue
'
;
export
default
{
components
:
{
i
con
,
I
con
,
},
props
:
{
file
:
{
...
...
app/assets/javascripts/ide/components/repo_editor.vue
View file @
259adc34
...
...
@@ -21,6 +21,7 @@ export default {
},
watch
:
{
file
(
oldVal
,
newVal
)
{
// Compare key to allow for files opened in review mode to be cached differently
if
(
newVal
.
key
!==
this
.
file
.
key
)
{
this
.
initMonaco
();
}
...
...
app/assets/javascripts/ide/components/repo_tab.vue
View file @
259adc34
<
script
>
import
{
mapActions
}
from
'
vuex
'
;
import
f
ileIcon
from
'
~/vue_shared/components/file_icon.vue
'
;
import
i
con
from
'
~/vue_shared/components/icon.vue
'
;
import
f
ileStatusIcon
from
'
./repo_file_status_icon.vue
'
;
import
c
hangedFileIcon
from
'
./changed_file_icon.vue
'
;
import
F
ileIcon
from
'
~/vue_shared/components/file_icon.vue
'
;
import
I
con
from
'
~/vue_shared/components/icon.vue
'
;
import
F
ileStatusIcon
from
'
./repo_file_status_icon.vue
'
;
import
C
hangedFileIcon
from
'
./changed_file_icon.vue
'
;
export
default
{
components
:
{
f
ileStatusIcon
,
f
ileIcon
,
i
con
,
c
hangedFileIcon
,
F
ileStatusIcon
,
F
ileIcon
,
I
con
,
C
hangedFileIcon
,
},
props
:
{
tab
:
{
...
...
app/assets/javascripts/ide/stores/utils.js
View file @
259adc34
export
const
dataStructure
=
()
=>
({
id
:
''
,
// Key will contain a mixture of ID and path
// it can also contain a prefix `pending-` for files opened in review mode
key
:
''
,
type
:
''
,
projectId
:
''
,
...
...
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