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
dedbdae9
Commit
dedbdae9
authored
Aug 10, 2017
by
ninabreznik
Committed by
yann300
Aug 14, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add icons to file-panel
parent
cb160c43
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
118 additions
and
1 deletion
+118
-1
file-panel.js
src/app/panels/file-panel.js
+25
-1
support-tab.js
src/app/support-tab.js
+93
-0
No files found.
src/app/panels/file-panel.js
View file @
dedbdae9
...
@@ -36,6 +36,24 @@ var css = csjs`
...
@@ -36,6 +36,24 @@ var css = csjs`
.newFile i:hover {
.newFile i:hover {
color : orange;
color : orange;
}
}
.gist {
padding : 10px;
}
.gist i {
cursor : pointer;
}
.gist i:hover {
color : orange;
}
.copyFiles {
padding : 10px;
}
.copyFiles i {
cursor : pointer;
}
.copyFiles i:hover {
color : orange;
}
.connectToLocalhost {
.connectToLocalhost {
padding : 10px;
padding : 10px;
}
}
...
@@ -106,7 +124,7 @@ function filepanel (appAPI, filesProvider) {
...
@@ -106,7 +124,7 @@ function filepanel (appAPI, filesProvider) {
<div class=
${
css
.
menu
}
>
<div class=
${
css
.
menu
}
>
<span onclick=
${
createNewFile
}
class="newFile
${
css
.
newFile
}
" title="Create New File in the Browser Storage Explorer">
<span onclick=
${
createNewFile
}
class="newFile
${
css
.
newFile
}
" title="Create New File in the Browser Storage Explorer">
<i class="fa fa-plus-circle"></i>
<i class="fa fa-plus-circle"></i>
</span>
</span>
${
canUpload
?
yo
`
${
canUpload
?
yo
`
<span class=
${
css
.
uploadFile
}
title="Add Local file to the Browser Storage Explorer">
<span class=
${
css
.
uploadFile
}
title="Add Local file to the Browser Storage Explorer">
<label class="fa fa-folder-open">
<label class="fa fa-folder-open">
...
@@ -114,6 +132,12 @@ function filepanel (appAPI, filesProvider) {
...
@@ -114,6 +132,12 @@ function filepanel (appAPI, filesProvider) {
</label>
</label>
</span>
</span>
`
:
''
}
`
:
''
}
<span class="
${
css
.
gist
}
">
<i class="fa fa-github"></i>
</span>
<span class="
${
css
.
copyFiles
}
">
<i class="fa fa-files-o" aria-hidden="true"></i>
</span>
<span onclick=
${
connectToLocalhost
}
class="
${
css
.
connectToLocalhost
}
">
<span onclick=
${
connectToLocalhost
}
class="
${
css
.
connectToLocalhost
}
">
<i class="websocketconn fa fa-link" title="Connect to Localhost"></i>
<i class="websocketconn fa fa-link" title="Connect to Localhost"></i>
</span>
</span>
...
...
src/app/support-tab.js
0 → 100644
View file @
dedbdae9
var
yo
=
require
(
'yo-yo'
)
// -------------- styling ----------------------
var
csjs
=
require
(
'csjs-inject'
)
var
styleGuide
=
require
(
'./style-guide'
)
var
styles
=
styleGuide
()
var
css
=
csjs
`
.supportTabView {
height: 100vh;
padding: 2%;
padding-bottom: 3em;
display: flex;
flex-direction: column;
overflow: hidden;
}
.chat extends
${
styles
.
displayBox
}
{
display: flex;
flex-direction: column;
align-items: center;
height: 85%;
}
.chatTitle {
cursor: pointer;
height: 40px;
width: 90%;
display: flex;
align-items: center;
justify-content: center;
border-radius: 3px;
background-color: white;
border: 2px dotted
${
styles
.
colors
.
lightGrey
}
;
}
.chatTitle:hover {
background-color:
${
styles
.
colors
.
lightYellow
}
;
}
.icon {
height: 70%;
margin-right: 2%;
}
.chatTitleText {
font-size: 13px;
font-weight: bold;
}
.chatTitleText {
opacity: 0.8;
}
.chatIframe {
width: 100%;
height: 100%;
border: 2px dotted
${
styles
.
colors
.
lightGrey
}
;
overflow: hidden;
transform: scale(0.9);
}
.infoBox extends
${
styles
.
infoTextBox
}
{
}
`
var
infoText
=
yo
`
<div>
Have a question, found a bug or want to propose a feature? Have a look at the
<a href='https://github.com/ethereum/browser-solidity/issues'> issues</a> or check out
<a href='https://remix.readthedocs.io/en/latest/'> the documentation page on Remix</a> or
<a href='https://solidity.readthedocs.io/en/latest/'> Solidity</a>.
</div>
`
module
.
exports
=
supportTab
function
supportTab
(
container
,
appAPI
,
events
,
opts
)
{
var
el
=
yo
`
<div class="
${
css
.
supportTabView
}
"id="supportView">
<div>
<div class="
${
css
.
infoBox
}
">
${
infoText
}
</div>
</div>
<div class="
${
css
.
chat
}
">
<div class="
${
css
.
chatTitle
}
" onclick=
${
openLink
}
title='Click to open chat in Gitter'>
<img class="
${
css
.
icon
}
" title="Solidity" src="assets/img/remix_logo_512x512.svg">
<div class="
${
css
.
chatTitleText
}
">ethereum/remix community chat</div>
</div>
<iframe class="
${
css
.
chatIframe
}
" src='https://gitter.im/ethereum/remix/~embed'>
</div>
</div>
`
container
.
appendChild
(
el
)
}
function
openLink
()
{
window
.
open
(
'https://gitter.im/ethereum/remix'
)
}
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