-
Notifications
You must be signed in to change notification settings - Fork 224
Function for showing a loading animation while Alva or the Preview loads #299
Comments
Hey! just had some doubts, so I looked up electron's docs and was able to create a simple browser window. I'm still a bit confused so as to how will the loader start? will there be some sort of trigger? // The loader
const {BrowserWindow, app} = require('electron');
const url = require('url');
const path = require('path');
let load;
function loading() {
load = new BrowserWindow({fullscreen: true,frame: false, center: true, });
load.loadURL(`file://${__dirname}/transition.html`);
}
app.on('ready',loading); |
Hi @goprime10, Thank you for your help and sorry for giving unclear todos. |
@lkuechler Sure!! so should I add the css as an inline styling in the div? |
@goprime10 for now we should do it this way :) |
Hey! so I forked the repo, edited the file and started a pull request, but it shows "The Travis CI build failed ". Can I know what went wrong? So I can change it accordingly |
Hi. You can just press If we follow them it would look like this for example: We also have a script for helping to write the commits |
Hey! sorry but I may need a bit more help, so I read about the guidelines, is my commit message supposed to look like this:
Also what should I add for the scope? I'm sorry for these questions, it's like I've been introduced into a new world haha |
Wow this already looks very good :) In your case this would be
I also removed the body text because it is just a repetition of the title. We normally use the body if we have the feeling that the title is not enough to understand the change. |
@lkuechler Thank you for the help!, let's see, I've tried it again, hope it works well |
@goprime10 Looks very good. After i get your approval i would merge it in to the master :) |
Hey @lkuechler! you can remove the second div, the one with outer class, and in css,and change the styles from a class to id(#app). Adding the app div changes the positioning of the circles, and so instead of an outer div, just pointing the styles to the app id works right (.outer to #app). Otherwise it's great! |
@goprime10 this was breaking the preview when the components where finished loading. |
oh okay got it 👍 |
@goprime10 I just merged it in to the Master. Thank you for your great contribution :) |
We need a function that can be called to create a BrowserWindow while something is loading in the application.
The BrowserWindow should load a simple HTML file.
This way we don't have to wait for react or other scripts to initialise.
In this file we can implement the loading animation from issue #115.
It should be possible to close the loading BrowserWindow from outside to be able to control it inside a event listener for a different window.
The function should then be implemented inside
src/electron/electron.ts
to show the loading spinner until the main application is ready.The text was updated successfully, but these errors were encountered: