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
7c0a061b
Commit
7c0a061b
authored
Jan 24, 2018
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'upstream/master' into ce-to-ee-2018-01-24
parents
858e6698
f8385188
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
27 additions
and
11 deletions
+27
-11
app/assets/javascripts/behaviors/copy_as_gfm.js
app/assets/javascripts/behaviors/copy_as_gfm.js
+7
-0
app/assets/javascripts/deploy_keys/components/app.vue
app/assets/javascripts/deploy_keys/components/app.vue
+1
-0
changelogs/unreleased/32546-cannot-copy-paste-on-ios.yml
changelogs/unreleased/32546-cannot-copy-paste-on-ios.yml
+5
-0
qa/qa/factory/resource/deploy_key.rb
qa/qa/factory/resource/deploy_key.rb
+6
-0
qa/qa/page/project/settings/deploy_keys.rb
qa/qa/page/project/settings/deploy_keys.rb
+4
-3
qa/qa/specs/features/project/add_deploy_key_spec.rb
qa/qa/specs/features/project/add_deploy_key_spec.rb
+4
-8
No files found.
app/assets/javascripts/behaviors/copy_as_gfm.js
View file @
7c0a061b
...
...
@@ -299,6 +299,13 @@ const gfmRules = {
export
class
CopyAsGFM
{
constructor
()
{
// iOS currently does not support clipboardData.setData(). This bug should
// be fixed in iOS 12, but for now we'll disable this for all iOS browsers
// ref: https://trac.webkit.org/changeset/222228/webkit
const
userAgent
=
(
typeof
navigator
!==
'
undefined
'
&&
navigator
.
userAgent
)
||
''
;
const
isIOS
=
/
\b(
iPad|iPhone|iPod
)(?=
;
)
/
.
test
(
userAgent
);
if
(
isIOS
)
return
;
$
(
document
).
on
(
'
copy
'
,
'
.md, .wiki
'
,
(
e
)
=>
{
CopyAsGFM
.
copyAsGFM
(
e
,
CopyAsGFM
.
transformGFMSelection
);
});
$
(
document
).
on
(
'
copy
'
,
'
pre.code.highlight, .diff-content .line_content
'
,
(
e
)
=>
{
CopyAsGFM
.
copyAsGFM
(
e
,
CopyAsGFM
.
transformCodeSelection
);
});
$
(
document
).
on
(
'
paste
'
,
'
.js-gfm-input
'
,
CopyAsGFM
.
pasteGFM
);
...
...
app/assets/javascripts/deploy_keys/components/app.vue
View file @
7c0a061b
...
...
@@ -87,6 +87,7 @@
<div
v-else-if=
"hasKeys"
>
<keys-panel
title=
"Enabled deploy keys for this project"
class=
"qa-project-deploy-keys"
:keys=
"keys.enabled_keys"
:store=
"store"
:endpoint=
"endpoint"
...
...
changelogs/unreleased/32546-cannot-copy-paste-on-ios.yml
0 → 100644
View file @
7c0a061b
---
title
:
Fix copy/paste on iOS devices due to a bug in webkit
merge_request
:
15804
author
:
type
:
fixed
qa/qa/factory/resource/deploy_key.rb
View file @
7c0a061b
...
...
@@ -4,6 +4,12 @@ module QA
class
DeployKey
<
Factory
::
Base
attr_accessor
:title
,
:key
product
:title
do
Page
::
Project
::
Settings
::
Repository
.
act
do
expand_deploy_keys
(
&
:key_title
)
end
end
dependency
Factory
::
Resource
::
Project
,
as: :project
do
|
project
|
project
.
name
=
'project-to-deploy'
project
.
description
=
'project for adding deploy key test'
...
...
qa/qa/page/project/settings/deploy_keys.rb
View file @
7c0a061b
...
...
@@ -10,6 +10,7 @@ module QA
view
'app/assets/javascripts/deploy_keys/components/app.vue'
do
element
:deploy_keys_section
,
/class=".*deploy\-keys.*"/
element
:project_deploy_keys
,
'class="qa-project-deploy-keys"'
end
view
'app/assets/javascripts/deploy_keys/components/key.vue'
do
...
...
@@ -29,9 +30,9 @@ module QA
click_on
'Add key'
end
def
has_key_title?
(
title
)
page
.
within
(
'.deploy-keys'
)
do
page
.
find
(
'.title'
,
text:
title
)
def
key_title
page
.
within
(
'.
qa-project-
deploy-keys'
)
do
page
.
find
(
'.title'
).
text
end
end
end
...
...
qa/qa/specs/features/project/add_deploy_key_spec.rb
View file @
7c0a061b
...
...
@@ -7,16 +7,12 @@ module QA
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
act
{
sign_in_using_credentials
}
Factory
::
Resource
::
DeployKey
.
fabricate!
do
|
deploy_key
|
deploy_key
.
title
=
deploy_key_title
deploy_key
.
key
=
deploy_key_value
deploy_key
=
Factory
::
Resource
::
DeployKey
.
fabricate!
do
|
resource
|
resource
.
title
=
deploy_key_title
resource
.
key
=
deploy_key_value
end
Page
::
Project
::
Settings
::
Repository
.
perform
do
|
setting
|
setting
.
expand_deploy_keys
do
|
page
|
expect
(
page
).
to
have_key_title
(
deploy_key_title
)
end
end
expect
(
deploy_key
.
title
).
to
eq
(
deploy_key_title
)
end
end
end
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