Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
534c9e3e
Commit
534c9e3e
authored
May 25, 2018
by
Rob Stupay
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add params w/ default vals for cp-to-clipboard & updated styles
parent
103f1445
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
copy-to-clipboard.js
src/app/ui/copy-to-clipboard.js
+3
-3
multiParamManager.js
src/multiParamManager.js
+1
-1
universal-dapp-styles.js
src/universal-dapp-styles.js
+1
-0
No files found.
src/app/ui/copy-to-clipboard.js
View file @
534c9e3e
...
...
@@ -14,8 +14,8 @@ var css = csjs`
}
`
module
.
exports
=
function
copyToClipboard
(
getContent
)
{
var
copyIcon
=
yo
`<i title="
Copy value to clipboard" class="
${
css
.
copyIcon
}
fa fa-clipboard
" aria-hidden="true"></i>`
module
.
exports
=
function
copyToClipboard
(
getContent
,
tip
=
'Copy value to to clipboard'
,
icon
=
'fa-clipboard'
)
{
var
copyIcon
=
yo
`<i title="
${
tip
}
" class="
${
css
.
copyIcon
}
fa
${
icon
}
" aria-hidden="true"></i>`
copyIcon
.
style
.
color
=
styles
.
remix
.
icon_Color_CopyToClipboard
copyIcon
.
onmouseenter
=
function
(
event
)
{
copyIcon
.
style
.
color
=
styles
.
remix
.
icon_HoverColor_CopyToClipboard
}
copyIcon
.
onmouseleave
=
function
(
event
)
{
copyIcon
.
style
.
color
=
styles
.
remix
.
icon_Color_CopyToClipboard
}
...
...
@@ -29,7 +29,7 @@ module.exports = function copyToClipboard (getContent) {
}
}
catch
(
e
)
{}
copy
(
copiableContent
)
addTooltip
(
'Successfully copied!'
)
addTooltip
(
tip
)
}
}
return
copyIcon
...
...
src/multiParamManager.js
View file @
534c9e3e
...
...
@@ -154,7 +154,7 @@ class MultiParamManager {
var
multiString
=
this
.
getMultiValsString
()
var
multiJSON
=
JSON
.
parse
(
'['
+
multiString
+
']'
)
return
txFormat
.
encodeData
(
this
.
funABI
,
multiJSON
)
})}
}
,
'Encode values of input fields & copy to clipboard'
,
'fa-briefcase'
)}
</div>
</div>
</div>`
...
...
src/universal-dapp-styles.js
View file @
534c9e3e
...
...
@@ -241,6 +241,7 @@ var css = csjs`
padding-right: 26px;
padding-top: 5px;
float: right;
font-size: 16px;
}
`
...
...
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