From b5dc43a80e0d1b386722953a1700bd4917f0aba9 Mon Sep 17 00:00:00 2001 From: LianaHus Date: Thu, 18 Apr 2019 14:02:49 +0200 Subject: [PATCH 1/3] removed unused classes frm landing page --- src/app/ui/landing-page/landing-page.js | 35 ------------------------- 1 file changed, 35 deletions(-) diff --git a/src/app/ui/landing-page/landing-page.js b/src/app/ui/landing-page/landing-page.js index 28e5e77bb6..c4bc74ea28 100644 --- a/src/app/ui/landing-page/landing-page.js +++ b/src/app/ui/landing-page/landing-page.js @@ -6,41 +6,6 @@ var modalDialogCustom = require('../modal-dialog-custom') var tooltip = require('../tooltip') 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 { cursor: pointer; font-weight: normal; From 4e58824bc347d01b3b541359c6bc5faa95811235 Mon Sep 17 00:00:00 2001 From: LianaHus Date: Thu, 18 Apr 2019 14:46:50 +0200 Subject: [PATCH 2/3] error msg for invalid gist id --- src/lib/gist-handler.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/gist-handler.js b/src/lib/gist-handler.js index f99001b1ff..0c9a7a2e4b 100644 --- a/src/lib/gist-handler.js +++ b/src/lib/gist-handler.js @@ -12,11 +12,13 @@ function GistHandler (_window) { var gistId if (params['gist'] === '') { 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 !== '') { gistId = getGistId(target) if (gistId) { cb(gistId) + } else { + modalDialogCustom.alert('Error while loading gist. Please provide a valid Gist ID or URL.') } } }) From 91e033fdca1b0862d842970468d7750f7b58d173 Mon Sep 17 00:00:00 2001 From: LianaHus Date: Thu, 18 Apr 2019 17:28:37 +0200 Subject: [PATCH 3/3] select FE on load gist --- src/app/ui/landing-page/landing-page.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/ui/landing-page/landing-page.js b/src/app/ui/landing-page/landing-page.js index c4bc74ea28..029c13be6e 100644 --- a/src/app/ui/landing-page/landing-page.js +++ b/src/app/ui/landing-page/landing-page.js @@ -160,6 +160,7 @@ export class LandingPage extends BaseApi { let importFromGist = () => { let app = globalRegistry.get('app').api app.loadFromGist({gist: ''}) + globalRegistry.get('verticalicon').api.select('fileExplorers') } let container = yo`