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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
b46cc05b
Commit
b46cc05b
authored
Jul 14, 2020
by
Himanshu Kapoor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove dead code from the Web IDE
- file object property: lastCommit - mutation SET_LAST_COMMIT_DATA
parent
0fbb3372
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
0 additions
and
19 deletions
+0
-19
app/assets/javascripts/ide/stores/mutation_types.js
app/assets/javascripts/ide/stores/mutation_types.js
+0
-1
app/assets/javascripts/ide/stores/mutations.js
app/assets/javascripts/ide/stores/mutations.js
+0
-9
app/assets/javascripts/ide/stores/utils.js
app/assets/javascripts/ide/stores/utils.js
+0
-7
spec/frontend/ide/commit_icon_spec.js
spec/frontend/ide/commit_icon_spec.js
+0
-1
spec/frontend/ide/helpers.js
spec/frontend/ide/helpers.js
+0
-1
No files found.
app/assets/javascripts/ide/stores/mutation_types.js
View file @
b46cc05b
export
const
SET_INITIAL_DATA
=
'
SET_INITIAL_DATA
'
;
export
const
TOGGLE_LOADING
=
'
TOGGLE_LOADING
'
;
export
const
SET_LAST_COMMIT_DATA
=
'
SET_LAST_COMMIT_DATA
'
;
export
const
SET_LAST_COMMIT_MSG
=
'
SET_LAST_COMMIT_MSG
'
;
export
const
SET_RESIZING_STATUS
=
'
SET_RESIZING_STATUS
'
;
export
const
SET_EMPTY_STATE_SVGS
=
'
SET_EMPTY_STATE_SVGS
'
;
...
...
app/assets/javascripts/ide/stores/mutations.js
View file @
b46cc05b
...
...
@@ -34,15 +34,6 @@ export default {
panelResizing
:
resizing
,
});
},
[
types
.
SET_LAST_COMMIT_DATA
](
state
,
{
entry
,
lastCommit
})
{
Object
.
assign
(
entry
.
lastCommit
,
{
id
:
lastCommit
.
commit
.
id
,
url
:
lastCommit
.
commit_path
,
message
:
lastCommit
.
commit
.
message
,
author
:
lastCommit
.
commit
.
author_name
,
updatedAt
:
lastCommit
.
commit
.
authored_date
,
});
},
[
types
.
SET_LAST_COMMIT_MSG
](
state
,
lastCommitMsg
)
{
Object
.
assign
(
state
,
{
lastCommitMsg
,
...
...
app/assets/javascripts/ide/stores/utils.js
View file @
b46cc05b
...
...
@@ -25,13 +25,6 @@ export const dataStructure = () => ({
changed
:
false
,
staged
:
false
,
lastCommitSha
:
''
,
lastCommit
:
{
id
:
''
,
url
:
''
,
message
:
''
,
updatedAt
:
''
,
author
:
''
,
},
rawPath
:
''
,
binary
:
false
,
raw
:
''
,
...
...
spec/frontend/ide/commit_icon_spec.js
View file @
b46cc05b
...
...
@@ -11,7 +11,6 @@ const createFile = (name = 'name', id = name, type = '', parent = null) =>
name
,
path
:
parent
?
`
${
parent
.
path
}
/
${
name
}
`
:
name
,
parentPath
:
parent
?
parent
.
path
:
''
,
lastCommit
:
{},
});
describe
(
'
getCommitIconMap
'
,
()
=>
{
...
...
spec/frontend/ide/helpers.js
View file @
b46cc05b
...
...
@@ -30,7 +30,6 @@ export const file = (name = 'name', id = name, type = '', parent = null) =>
name
,
path
:
parent
?
`
${
parent
.
path
}
/
${
name
}
`
:
name
,
parentPath
:
parent
?
parent
.
path
:
''
,
lastCommit
:
{},
});
export
const
createEntriesFromPaths
=
paths
=>
...
...
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