From d83a9666b6bcbbd579bab3145b78deda2218ef2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Uhl=C3=AD=C5=99?= Date: Thu, 8 Sep 2022 08:53:26 +0200 Subject: [PATCH 1/4] feat: bee 1.8 support and installer removal --- README.md | 21 ++-- assets/splash.html | 12 ++- src/browser.ts | 4 - src/config-yaml.ts | 37 ------- src/config.ts | 57 +++++++++- src/downloader.ts | 3 +- src/electron.ts | 21 +--- src/index.ts | 68 ++++++------ src/launcher.ts | 103 ++++++------------ src/server.ts | 15 +-- src/splash.ts | 20 ++-- src/status.ts | 14 +-- ui/package-lock.json | 44 -------- ui/package.json | 1 - ui/src/dashboard.tsx | 5 - ui/src/index.tsx | 12 +-- ui/src/installer/Box.tsx | 14 --- ui/src/installer/Center.tsx | 5 - ui/src/installer/Circle.tsx | 21 ---- ui/src/installer/Container.tsx | 13 --- ui/src/installer/SwarmLogo.tsx | 9 -- ui/src/installer/index.css | 138 ------------------------ ui/src/installer/index.tsx | 190 --------------------------------- 23 files changed, 162 insertions(+), 665 deletions(-) delete mode 100644 src/config-yaml.ts delete mode 100644 ui/src/dashboard.tsx delete mode 100644 ui/src/installer/Box.tsx delete mode 100644 ui/src/installer/Center.tsx delete mode 100644 ui/src/installer/Circle.tsx delete mode 100644 ui/src/installer/Container.tsx delete mode 100644 ui/src/installer/SwarmLogo.tsx delete mode 100644 ui/src/installer/index.css delete mode 100644 ui/src/installer/index.tsx diff --git a/README.md b/README.md index 27159fa..4222cee 100644 --- a/README.md +++ b/README.md @@ -77,7 +77,7 @@ It also stores configuration files, Bee assets and other things in application's As there are several independent components it bit depends on what you want to develop. -**Be aware!** The UIs (Installer and Dashboard) won't automatically open during development in order not to confuse on which +**Be aware!** The UI won't automatically open during development in order not to confuse on which environment they are running. You have to open them manually. #### Electron Desktop @@ -86,21 +86,12 @@ To work on the Electron Desktop back-end you just need to do your work and then Electron app and shows the Tray icon. No UI will be opened automatically. If you need to make more adjustment you have to exit the process with `SIGINT (CTRL+C)` and relaunch. -#### Installer - -To work on the Installer, run first `npm start` that will spin up the Electron Desktop back-end and also launches the `/installer` development -server. In order for the UI to be able to access the Desktop API it needs to have injected API token, which you can do by running `npm run open:installer` -that will open the Installer UI served by the development server with API key be passed in the URL. Changes to the Installer UI are automatically -hot-reloaded. - -The UI served by the Desktop itself is updated only when you restart the `npm start`. - -#### Dashboard +#### UI (Dashboard) To work on the Dashboard, run first `npm start` that will spin up the Electron Desktop back-end. Then go to your locally cloned `bee-dashboard` repo and -in it start the development server with `npm start`. Similarly to Installer, the Dashboard also needs to have API key injected in order to use the -Desktop's API. You can inject it similarly by running `npm run desktop` in the Dashboard repo that will open the Dashboard UI with API key in the URL. -Changes to the Installer UI are automatically hot-reloaded. +in it start the development server with `npm start`. Dashboard also needs to have API key injected in order to use the +Desktop's API. You can inject it by running `npm run desktop` in the Dashboard repo that will open the Dashboard UI with API key in the URL. +Changes are automatically hot-reloaded. The UI served by the Desktop itself is updated only when you update the `@ethersphere/bee-dashboard` NPM package in the Desktop repo. @@ -109,7 +100,7 @@ The UI served by the Desktop itself is updated only when you update the `@ethers There are several handy scripts: - `npm run purge:data` that purge's the Desktop's data folder - - `npm run purge:logs` that purge's the Dekstop's logs folder + - `npm run purge:logs` that purge's the Desktop's logs folder ## Maintainers diff --git a/assets/splash.html b/assets/splash.html index cfcdc57..fada32d 100644 --- a/assets/splash.html +++ b/assets/splash.html @@ -40,9 +40,9 @@ } .Initializing { - width: 112px; + width: 220px; height: 23px; - margin: 124px 94px 0; + margin: 124px 0 0 90px; font-family: iA-Writer, serif; font-size: 18px; font-weight: normal; @@ -67,10 +67,16 @@
Hello
-
Initializing...
+
Starting...