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
a3859bf5
Commit
a3859bf5
authored
Apr 25, 2017
by
Valery Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolved conflicts
parent
fd0fd602
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
0 additions
and
68 deletions
+0
-68
app/assets/javascripts/blob/blob_fork_suggestion.js
app/assets/javascripts/blob/blob_fork_suggestion.js
+0
-27
app/assets/javascripts/dispatcher.js
app/assets/javascripts/dispatcher.js
+0
-4
spec/features/groups/audit_events_spec.rb
spec/features/groups/audit_events_spec.rb
+0
-5
spec/features/projects/audit_events_spec.rb
spec/features/projects/audit_events_spec.rb
+0
-5
spec/javascripts/blob/blob_fork_suggestion_spec.js
spec/javascripts/blob/blob_fork_suggestion_spec.js
+0
-27
No files found.
app/assets/javascripts/blob/blob_fork_suggestion.js
View file @
a3859bf5
...
...
@@ -16,32 +16,6 @@ const defaults = {
class
BlobForkSuggestion
{
constructor
(
options
)
{
this
.
elementMap
=
Object
.
assign
({},
defaults
,
options
);
<<<<<<<
HEAD
this
.
onClickWrapper
=
this
.
onClick
.
bind
(
this
);
document
.
addEventListener
(
'
click
'
,
this
.
onClickWrapper
);
}
showSuggestionSection
(
forkPath
,
action
=
'
edit
'
)
{
[].
forEach
.
call
(
this
.
elementMap
.
suggestionSections
,
(
suggestionSection
)
=>
{
suggestionSection
.
classList
.
remove
(
'
hidden
'
);
});
[].
forEach
.
call
(
this
.
elementMap
.
forkButtons
,
(
forkButton
)
=>
{
forkButton
.
setAttribute
(
'
href
'
,
forkPath
);
});
[].
forEach
.
call
(
this
.
elementMap
.
actionTextPieces
,
(
actionTextPiece
)
=>
{
// eslint-disable-next-line no-param-reassign
actionTextPiece
.
textContent
=
action
;
});
}
hideSuggestionSection
()
{
[].
forEach
.
call
(
this
.
elementMap
.
suggestionSections
,
(
suggestionSection
)
=>
{
suggestionSection
.
classList
.
add
(
'
hidden
'
);
});
=======
this
.
onOpenButtonClick
=
this
.
onOpenButtonClick
.
bind
(
this
);
this
.
onCancelButtonClick
=
this
.
onCancelButtonClick
.
bind
(
this
);
}
...
...
@@ -80,7 +54,6 @@ class BlobForkSuggestion {
destroy
()
{
$
(
this
.
elementMap
.
openButtons
).
off
(
'
click
'
,
this
.
onOpenButtonClick
);
$
(
this
.
elementMap
.
cancelButtons
).
off
(
'
click
'
,
this
.
onCancelButtonClick
);
>>>>>>>
847790478
f8d85607eacedcdb693cfcd25c415af
}
onClick
(
e
)
{
...
...
app/assets/javascripts/dispatcher.js
View file @
a3859bf5
...
...
@@ -103,12 +103,8 @@ const ShortcutsBlob = require('./shortcuts_blob');
cancelButtons
:
document
.
querySelectorAll
(
'
.js-cancel-fork-suggestion-button
'
),
suggestionSections
:
document
.
querySelectorAll
(
'
.js-file-fork-suggestion-section
'
),
actionTextPieces
:
document
.
querySelectorAll
(
'
.js-file-fork-suggestion-section-action
'
),
<<<<<<<
HEAD
});
=======
})
.
init
();
>>>>>>>
847790478
f8d85607eacedcdb693cfcd25c415af
}
switch
(
page
)
{
...
...
spec/features/groups/audit_events_spec.rb
View file @
a3859bf5
...
...
@@ -18,13 +18,8 @@ feature 'Groups > Audit Events', js: true, feature: true do
group_member
=
group
.
members
.
find_by
(
user_id:
pete
)
page
.
within
"#group_member_
#{
group_member
.
id
}
"
do
<<<<<<<
HEAD
:spec
/
features
/
groups
/
audit_events
.
rb
click_button
(
'Developer'
)
click_link
(
'Master'
)
=======
click_button
'Developer'
click_link
'Master'
>>>>>>>
847790478
f8d85607eacedcdb693cfcd25c415af
:spec
/
features
/
groups
/
audit_events_spec
.
rb
end
# This is to avoid a Capybara::Poltergeist::MouseEventFailed error
...
...
spec/features/projects/audit_events_spec.rb
View file @
a3859bf5
...
...
@@ -46,13 +46,8 @@ feature 'Projects > Audit Events', js: true, feature: true do
project_member
=
project
.
project_member
(
pete
)
page
.
within
"#project_member_
#{
project_member
.
id
}
"
do
<<<<<<<
HEAD
:spec
/
features
/
projects
/
audit_events
.
rb
click_button
(
'Developer'
)
click_link
(
'Reporter'
)
=======
click_button
'Developer'
click_link
'Master'
>>>>>>>
847790478
f8d85607eacedcdb693cfcd25c415af
:spec
/
features
/
projects
/
audit_events_spec
.
rb
end
# This is to avoid a Capybara::Poltergeist::MouseEventFailed error
...
...
spec/javascripts/blob/blob_fork_suggestion_spec.js
View file @
a3859bf5
...
...
@@ -3,22 +3,6 @@ import BlobForkSuggestion from '~/blob/blob_fork_suggestion';
describe
(
'
BlobForkSuggestion
'
,
()
=>
{
let
blobForkSuggestion
;
<<<<<<<
HEAD
const
openButtons
=
[
document
.
createElement
(
'
div
'
)];
const
forkButtons
=
[
document
.
createElement
(
'
a
'
)];
const
cancelButtons
=
[
document
.
createElement
(
'
div
'
)];
const
suggestionSections
=
[
document
.
createElement
(
'
div
'
)];
const
actionTextPieces
=
[
document
.
createElement
(
'
div
'
)];
beforeEach
(()
=>
{
blobForkSuggestion
=
new
BlobForkSuggestion
({
openButtons
,
forkButtons
,
cancelButtons
,
suggestionSections
,
actionTextPieces
,
});
=======
const
openButton
=
document
.
createElement
(
'
div
'
);
const
forkButton
=
document
.
createElement
(
'
a
'
);
const
cancelButton
=
document
.
createElement
(
'
div
'
);
...
...
@@ -34,7 +18,6 @@ describe('BlobForkSuggestion', () => {
actionTextPieces
:
actionTextPiece
,
})
.
init
();
>>>>>>>
847790478
f8d85607eacedcdb693cfcd25c415af
});
afterEach
(()
=>
{
...
...
@@ -43,23 +26,13 @@ describe('BlobForkSuggestion', () => {
it
(
'
showSuggestionSection
'
,
()
=>
{
blobForkSuggestion
.
showSuggestionSection
(
'
/foo
'
,
'
foo
'
);
<<<<<<<
HEAD
expect
(
suggestionSections
[
0
].
classList
.
contains
(
'
hidden
'
)).
toEqual
(
false
);
expect
(
forkButtons
[
0
].
getAttribute
(
'
href
'
)).
toEqual
(
'
/foo
'
);
expect
(
actionTextPieces
[
0
].
textContent
).
toEqual
(
'
foo
'
);
=======
expect
(
suggestionSection
.
classList
.
contains
(
'
hidden
'
)).
toEqual
(
false
);
expect
(
forkButton
.
getAttribute
(
'
href
'
)).
toEqual
(
'
/foo
'
);
expect
(
actionTextPiece
.
textContent
).
toEqual
(
'
foo
'
);
>>>>>>>
847790478
f8d85607eacedcdb693cfcd25c415af
});
it
(
'
hideSuggestionSection
'
,
()
=>
{
blobForkSuggestion
.
hideSuggestionSection
();
<<<<<<<
HEAD
expect
(
suggestionSections
[
0
].
classList
.
contains
(
'
hidden
'
)).
toEqual
(
true
);
=======
expect
(
suggestionSection
.
classList
.
contains
(
'
hidden
'
)).
toEqual
(
true
);
>>>>>>>
847790478
f8d85607eacedcdb693cfcd25c415af
});
});
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