Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
51b88741
G
gitlab-foss
项目概览
李少辉-开发者
/
gitlab-foss
通知
15
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gitlab-foss
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
51b88741
编写于
3月 05, 2018
作者:
F
Filipa Lacerda
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Removes btn-transparent and btn-clipboard as default classes for clipboard button component
Changes after review
上级
35f6efae
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
13 addition
and
2 deletion
+13
-2
app/assets/javascripts/clusters/components/applications.vue
app/assets/javascripts/clusters/components/applications.vue
+1
-1
app/assets/javascripts/notes/components/diff_file_header.vue
app/assets/javascripts/notes/components/diff_file_header.vue
+2
-0
app/assets/javascripts/registry/components/collapsible_container.vue
...javascripts/registry/components/collapsible_container.vue
+1
-0
app/assets/javascripts/registry/components/table_registry.vue
...assets/javascripts/registry/components/table_registry.vue
+1
-0
app/assets/javascripts/vue_merge_request_widget/components/mr_widget_header.vue
.../vue_merge_request_widget/components/mr_widget_header.vue
+1
-0
app/assets/javascripts/vue_shared/components/clipboard_button.vue
...ts/javascripts/vue_shared/components/clipboard_button.vue
+2
-1
spec/javascripts/vue_shared/components/clipboard_button_spec.js
...avascripts/vue_shared/components/clipboard_button_spec.js
+5
-0
未找到文件。
app/assets/javascripts/clusters/components/applications.vue
浏览文件 @
51b88741
...
...
@@ -186,7 +186,7 @@
<clipboard-button
:text=
"ingressExternalIp"
:title=
"s__('ClusterIntegration|Copy Ingress IP Address to clipboard')"
c
ss-class=
"btn btn-default
js-clipboard-btn"
c
lass=
"
js-clipboard-btn"
/>
</span>
</div>
...
...
app/assets/javascripts/notes/components/diff_file_header.vue
浏览文件 @
51b88741
...
...
@@ -35,6 +35,7 @@
<clipboard-button
title=
"Copy file path to clipboard"
:text=
"diffFile.submoduleLink"
css-class=
"btn-default btn-transparent btn-clipboard"
/>
</span>
</div>
...
...
@@ -79,6 +80,7 @@
<clipboard-button
title=
"Copy file path to clipboard"
:text=
"diffFile.filePath"
css-class=
"btn-default btn-transparent btn-clipboard"
/>
<small
...
...
app/assets/javascripts/registry/components/collapsible_container.vue
浏览文件 @
51b88741
...
...
@@ -86,6 +86,7 @@
v-if=
"repo.location"
:text=
"clipboardText"
:title=
"repo.location"
css-class=
"btn-default btn-transparent btn-clipboard"
/>
<div
class=
"controls hidden-xs pull-right"
>
...
...
app/assets/javascripts/registry/components/table_registry.vue
浏览文件 @
51b88741
...
...
@@ -90,6 +90,7 @@
v-if=
"item.location"
:title=
"item.location"
:text=
"clipboardText(item.location)"
css-class=
"btn-default btn-transparent btn-clipboard"
/>
</td>
<td>
...
...
app/assets/javascripts/vue_merge_request_widget/components/mr_widget_header.vue
浏览文件 @
51b88741
...
...
@@ -67,6 +67,7 @@
<clipboard-button
:text=
"branchNameClipboardData"
:title=
"__('Copy branch name to clipboard')"
css-class=
"btn-default btn-transparent btn-clipboard"
/>
{{
s__
(
"
mrWidget|into
"
)
}}
...
...
app/assets/javascripts/vue_shared/components/clipboard_button.vue
浏览文件 @
51b88741
...
...
@@ -31,7 +31,7 @@
cssClass
:
{
type
:
String
,
required
:
false
,
default
:
'
btn
btn-default btn-transparent btn-clipboard
'
,
default
:
'
btn
-default
'
,
},
},
};
...
...
@@ -40,6 +40,7 @@
<
template
>
<button
type=
"button"
class=
"btn"
:class=
"cssClass"
:title=
"title"
:data-clipboard-text=
"text"
...
...
spec/javascripts/vue_shared/components/clipboard_button_spec.js
浏览文件 @
51b88741
...
...
@@ -10,6 +10,7 @@ describe('clipboard button', () => {
vm
=
mountComponent
(
Component
,
{
text
:
'
copy me
'
,
title
:
'
Copy this value into Clipboard!
'
,
cssClass
:
'
btn-danger
'
,
});
});
...
...
@@ -28,4 +29,8 @@ describe('clipboard button', () => {
expect
(
vm
.
$el
.
getAttribute
(
'
data-placement
'
)).
toEqual
(
'
top
'
);
expect
(
vm
.
$el
.
getAttribute
(
'
data-container
'
)).
toEqual
(
null
);
});
it
(
'
should render provided classname
'
,
()
=>
{
expect
(
vm
.
$el
.
classList
).
toContain
(
'
btn-danger
'
);
});
});
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录