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
c57fb5b7
Unverified
Commit
c57fb5b7
authored
Apr 23, 2019
by
yann300
Committed by
GitHub
Apr 23, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1879 from ethereum/swap_it_style_fixes_l
error msg after loading gist when input has no gist id
parents
78122bd5
41f1445a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
36 deletions
+4
-36
landing-page.js
src/app/ui/landing-page/landing-page.js
+1
-35
gist-handler.js
src/lib/gist-handler.js
+3
-1
No files found.
src/app/ui/landing-page/landing-page.js
View file @
c57fb5b7
...
@@ -6,41 +6,6 @@ var modalDialogCustom = require('../modal-dialog-custom')
...
@@ -6,41 +6,6 @@ var modalDialogCustom = require('../modal-dialog-custom')
var
tooltip
=
require
(
'../tooltip'
)
var
tooltip
=
require
(
'../tooltip'
)
let
css
=
csjs
`
let
css
=
csjs
`
.sectionContainer {
display : flex;
flex-direction : column;
flex-wrap : wrap;
align-content : space-around;
padding : 20px;
max-width : 300px;
min-height : 200px;
background-color: var(--light);
}
.landingPage {
height : 100%;
width : 100%;
flex-wrap : wrap;
justify-content : space-evenly;
user-select : none;
}
.im {
display : grid;
max-width : 200px;
max-height : 200px;
width : 100%;
height : 100%;
padding : 20px;
background-color: var(--bg-light);
align-self : center;
}
.im:hover {
}
.getStarted {
margin-top : 50px;
width : 100%;
font-size : xx-large;
align-self : center;
}
.text {
.text {
cursor: pointer;
cursor: pointer;
font-weight: normal;
font-weight: normal;
...
@@ -195,6 +160,7 @@ export class LandingPage extends BaseApi {
...
@@ -195,6 +160,7 @@ export class LandingPage extends BaseApi {
let
importFromGist
=
()
=>
{
let
importFromGist
=
()
=>
{
let
app
=
globalRegistry
.
get
(
'app'
).
api
let
app
=
globalRegistry
.
get
(
'app'
).
api
app
.
loadFromGist
({
gist
:
''
})
app
.
loadFromGist
({
gist
:
''
})
globalRegistry
.
get
(
'verticalicon'
).
api
.
select
(
'fileExplorers'
)
}
}
let
container
=
yo
`<div class="
${
css
.
homeContainer
}
bg-light">
let
container
=
yo
`<div class="
${
css
.
homeContainer
}
bg-light">
...
...
src/lib/gist-handler.js
View file @
c57fb5b7
...
@@ -12,11 +12,13 @@ function GistHandler (_window) {
...
@@ -12,11 +12,13 @@ function GistHandler (_window) {
var
gistId
var
gistId
if
(
params
[
'gist'
]
===
''
)
{
if
(
params
[
'gist'
]
===
''
)
{
loadingFromGist
=
true
loadingFromGist
=
true
modalDialogCustom
.
prompt
(
null
,
'Enter the ID of the Gist you would like to load.'
,
null
,
(
target
)
=>
{
modalDialogCustom
.
prompt
(
null
,
'Enter the ID of the Gist
or URL
you would like to load.'
,
null
,
(
target
)
=>
{
if
(
target
!==
''
)
{
if
(
target
!==
''
)
{
gistId
=
getGistId
(
target
)
gistId
=
getGistId
(
target
)
if
(
gistId
)
{
if
(
gistId
)
{
cb
(
gistId
)
cb
(
gistId
)
}
else
{
modalDialogCustom
.
alert
(
'Error while loading gist. Please provide a valid Gist ID or URL.'
)
}
}
}
}
})
})
...
...
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