BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
eacd821a
Unverified
Commit
eacd821a
authored
Nov 06, 2017
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moved key into data structure
uses an array of classes to render skeleton loading cells
parent
e2bcb3a4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
5 deletions
+12
-5
repo_file.vue
app/assets/javascripts/repo/components/repo_file.vue
+1
-1
repo_sidebar.vue
app/assets/javascripts/repo/components/repo_sidebar.vue
+1
-1
utils.js
app/assets/javascripts/repo/stores/utils.js
+2
-0
skeleton_loading_container.vue
...ipts/vue_shared/components/skeleton_loading_container.vue
+8
-3
No files found.
app/assets/javascripts/repo/components/repo_file.vue
View file @
eacd821a
...
...
@@ -39,7 +39,7 @@
return
this
.
file
.
id
.
substr
(
0
,
8
);
},
submoduleColSpan
()
{
return
!
this
.
isCollapsed
&&
this
.
isSubmodule
?
3
:
undefined
;
return
!
this
.
isCollapsed
&&
this
.
isSubmodule
?
3
:
1
;
},
},
methods
:
{
...
...
app/assets/javascripts/repo/components/repo_sidebar.vue
View file @
eacd821a
...
...
@@ -80,7 +80,7 @@ export default {
/>
<repo-file
v-for=
"(file, index) in treeList"
:key=
"file.
name + file.type
"
:key=
"file.
key
"
:file=
"file"
/>
</tbody>
...
...
app/assets/javascripts/repo/stores/utils.js
View file @
eacd821a
export
const
dataStructure
=
()
=>
({
id
:
''
,
key
:
''
,
type
:
''
,
name
:
''
,
url
:
''
,
...
...
@@ -55,6 +56,7 @@ export const decorateData = (entity) => {
return
{
...
dataStructure
(),
id
,
key
:
`
${
name
}
-
${
type
}
-
${
id
}
`
,
type
,
name
,
url
,
...
...
app/assets/javascripts/vue_shared/components/skeleton_loading_container.vue
View file @
eacd821a
...
...
@@ -12,6 +12,11 @@
default
:
6
,
},
},
computed
:
{
lineClasses
()
{
return
new
Array
(
this
.
lines
).
fill
().
map
((
_
,
i
)
=>
`skeleton-line-
${
i
}
`
);
},
},
};
</
script
>
...
...
@@ -23,9 +28,9 @@
}"
>
<div
v-for=
"
line in lin
es"
:key=
"
line
"
:class=
"
'skeleton-line-' + line
"
v-for=
"
(css, index) in lineClass
es"
:key=
"
index
"
:class=
"
css
"
>
</div>
</div>
...
...
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