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
d069c1a9
Commit
d069c1a9
authored
Sep 07, 2017
by
yann300
Committed by
GitHub
Sep 07, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #772 from ethereum/terminalui2
Terminal - UI
parents
78a2f574
8a3c137c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
46 deletions
+15
-46
editor-panel.js
src/app/panels/editor-panel.js
+7
-42
terminal.js
src/app/panels/terminal.js
+8
-4
No files found.
src/app/panels/editor-panel.js
View file @
d069c1a9
...
...
@@ -122,6 +122,10 @@ var css = csjs`
height : 100%;
width : 100%;
}
.banner {
width : 25em;
}
`
class
EditorPanel
{
...
...
@@ -158,48 +162,9 @@ class EditorPanel {
return
self
.
_api
.
context
()
}
},
banner
:
`
/******************************************************************************
...........................................
.....................:.....................
....................o:;....................
...................oo:;;...................
..................ooo:;;;..................
.................oooo:;;;;.................
................ooooo:;;;;;................
...............oooooo:;;;;;;...............
..............ooooooo:;;;;;;;..............
.............ooooooo;:';;;;;;;.............
............ooooo;;;;:'''';;;;;............
...........oo;;;;;;;;:'''''''';;...........
..........;;;;;;;;;;;:'''''''''''..........
..............;;;;;;;:'''''''..............
...........oo...;;;;;:'''''...;;...........
............oooo...;;:''...;;;;............
..............oooo...:...;;;;..............
...............oooooo:;;;;;;...............
................ooooo:;;;;;................
.................oooo:;;;;.................
..................ooo:;;;..................
...................oo:;;...................
....................o:;....................
.....................:.....................
...........................................
######## ######## ## ## #### ## ##
## ## ## ### ### ## ## ##
## ## ## #### #### ## ## ##
######## ###### ## ### ## ## ###
## ## ## ## ## ## ## ##
## ## ## ## ## ## ## ##
## ## ######## ## ## #### ## ##
welcome to browser solidity
******************************************************************************/
`
banner
:
yo
`<div>
<img class=
${
css
.
banner
}
title="Remix" src="assets/img/remix_logo_512x512.svg" alt="Remix">
</div>`
})
}
self
.
_components
.
terminal
.
event
.
register
(
'resize'
,
delta
=>
self
.
_adjustLayout
(
'top'
,
delta
))
...
...
src/app/panels/terminal.js
View file @
d069c1a9
...
...
@@ -170,6 +170,9 @@ class Terminal {
self
.
_INDEX
.
allMain
=
[]
self
.
_INDEX
.
commands
=
{}
self
.
_INDEX
.
commandsMain
=
{}
self
.
registerCommand
(
'banner'
,
function
(
args
,
scopedCommands
,
append
)
{
append
(
args
[
0
])
})
self
.
registerCommand
(
'log'
,
self
.
_blocksRenderer
(
'log'
))
self
.
registerCommand
(
'info'
,
self
.
_blocksRenderer
(
'info'
))
self
.
registerCommand
(
'error'
,
self
.
_blocksRenderer
(
'error'
))
...
...
@@ -228,7 +231,10 @@ class Terminal {
${
self
.
_view
.
term
}
</div>
`
if
(
self
.
data
.
banner
)
self
.
commands
.
log
(
self
.
data
.
banner
)
if
(
self
.
data
.
banner
)
{
self
.
data
.
activeFilters
.
commands
[
'banner'
]
=
true
self
.
commands
.
banner
(
self
.
data
.
banner
)
}
function
throttle
(
fn
,
wait
)
{
var
time
=
Date
.
now
()
...
...
@@ -253,13 +259,11 @@ class Terminal {
justify-content : center;
bottom : 0;
right : 15px;
height : 20%;
min-height : 50px;
min-height : 20px;
}
.text {
z-index : 2;
color : black;
font-size : 25px;
font-weight : bold;
pointer-events : none;
}
...
...
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