Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
apollo
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
apollo
Commits
6d6a617d
Commit
6d6a617d
authored
Sep 18, 2016
by
zhangle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
text model can copy config
parent
b264b490
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
2 deletions
+10
-2
config.html
apollo-portal/src/main/resources/static/config.html
+1
-1
copy.png
apollo-portal/src/main/resources/static/img/copy.png
+0
-0
ConfigNamespaceController.js
...ic/scripts/controller/config/ConfigNamespaceController.js
+2
-1
namespace-panel.html
...ain/resources/static/views/component/namespace-panel.html
+7
-0
No files found.
apollo-portal/src/main/resources/static/config.html
View file @
6d6a617d
...
@@ -154,7 +154,7 @@
...
@@ -154,7 +154,7 @@
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-label=
"Close"
><span
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-label=
"Close"
><span
aria-hidden=
"true"
>
×
</span></button>
aria-hidden=
"true"
>
×
</span></button>
<button
class=
"btn close"
data-clipboard-text=
"{{text}}"
data-tooltip=
"tooltip"
<button
class=
"btn close
clipboard
"
data-clipboard-text=
"{{text}}"
data-tooltip=
"tooltip"
data-placement=
"bottom"
title=
"复制"
>
data-placement=
"bottom"
title=
"复制"
>
<img
class=
"i-20"
src=
"img/clippy.svg"
style=
"margin-right: 5px;margin-top: -2px;"
>
<img
class=
"i-20"
src=
"img/clippy.svg"
style=
"margin-right: 5px;margin-top: -2px;"
>
</button>
</button>
...
...
apollo-portal/src/main/resources/static/img/copy.png
0 → 100644
View file @
6d6a617d
3.88 KB
apollo-portal/src/main/resources/static/scripts/controller/config/ConfigNamespaceController.js
View file @
6d6a617d
...
@@ -385,6 +385,7 @@ application_module.controller("ConfigNamespaceController",
...
@@ -385,6 +385,7 @@ application_module.controller("ConfigNamespaceController",
}
}
$
(
'.config-item-container'
).
removeClass
(
'hide'
);
$
(
'.config-item-container'
).
removeClass
(
'hide'
);
new
Clipboard
(
'.btn'
);
new
Clipboard
(
'.clipboard'
);
}]);
}]);
apollo-portal/src/main/resources/static/views/component/namespace-panel.html
View file @
6d6a617d
...
@@ -94,6 +94,13 @@
...
@@ -94,6 +94,13 @@
</ul>
</ul>
</div>
</div>
<div
class=
"col-md-4 text-right"
>
<div
class=
"col-md-4 text-right"
>
<a
class=
"clipboard"
data-clipboard-text=
"{{namespace.text}}"
data-tooltip=
"tooltip"
data-placement=
"bottom"
title=
"复制文本"
ng-show=
"!namespace.isTextEditing && namespace.viewType == 'text' && namespace.hasModifyPermission"
>
<img
src=
"img/copy.png"
class=
"ns_btn"
>
</a>
<a
data-tooltip=
"tooltip"
data-placement=
"bottom"
title=
"取消修改"
<a
data-tooltip=
"tooltip"
data-placement=
"bottom"
title=
"取消修改"
ng-show=
"namespace.isTextEditing && namespace.viewType == 'text'"
ng-show=
"namespace.isTextEditing && namespace.viewType == 'text'"
ng-click=
"toggleTextEditStatus(namespace)"
>
ng-click=
"toggleTextEditStatus(namespace)"
>
...
...
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