21 Commits

Author SHA1 Message Date
David Cassany
68697abf14 Adding icons, desktop file and appdata xml
This commit adds the desktop files that flatpak expects for a proper
desktop integration according to the FreeDesktop specs.

Signed-off-by: David Cassany <dcassany@suse.com>
2021-10-06 13:55:47 +02:00
Mark Yen
fa871b9962 scripts: Download Linux binaries on Windows.
This also includes refactoring so the download bits don't just grab
functions out of a random script.

Signed-off-by: Mark Yen <mark.yen@suse.com>
2021-07-09 14:49:19 -07:00
Mark Yen
61111696f1 WSL: Use pre-downloaded distro file
Using a different version requires rebuilding the application anyway; so
instead of downloading it at runtime, just package it in the application.

Signed-off-by: Mark Yen <mark.yen@suse.com>
2021-05-13 11:38:58 -07:00
Mark Yen
6b17204844 scripts/hyperkit: Download boot2tcl ISO
This way we can cache the ISO file and bundle it with the installer.

Signed-off-by: Mark Yen <mark.yen@suse.com>
2021-05-13 11:36:04 -07:00
Mark Yen
9a082b4f05 Scripts: download the stuff we need for hyperkit on mac.
Signed-off-by: Mark Yen <mark.yen@suse.com>
2021-04-26 13:30:00 -07:00
Eric Promislow
57fb1970fa wip: ignore kim
Signed-off-by: Eric Promislow <epromislow@suse.com>
2021-04-23 10:26:55 -07:00
Mark Yen
74c9772669 .gitignore: ignore coverage data
Signed-off-by: Mark Yen <mark.yen@suse.com>
2021-04-21 16:07:51 -07:00
Mark Yen
3836c1d434 Create setup script for Windows
This converts setupmac.js into a generic download-resources.mjs and make it
work on Windows.  This also drop the follow-redirects dependency in favour
of using node-fetch (which we already need in the app).  Additionally,
reduce the callback nesting we have in the same script.

There doesn't seem to be significant reason to convert the script to async
(considering that this is run as a one-off).

Additionally, make all this get called as a postinstall hook, so that it
happens automatically upon `npm install`, and the user no longer needs to
worry about it.

Signed-off-by: Mark Yen <mark.yen@suse.com>
2021-04-09 15:45:27 -07:00
Mark Yen
cb051c0bdb packages: remove nuxtron
We no longer use nuxtron, since we needed the raw webpack configs to
ensure we quit the dev server when we quit the application.

Signed-off-by: Mark Yen <mark.yen@suse.com>
2021-02-26 14:21:23 -08:00
Mark Yen
9b97a5022d Switch to dashboard's eslint config
Copy the eslint config from the dashboard, and then append our overrides
at the bottom of the file.  This makes it easier to copy files from the
dashboard.

Signed-off-by: Mark Yen <mark.yen@suse.com>
2021-02-16 11:14:18 -08:00
Eric Promislow
9b60c2596d Add fields to control kubernetes settings
- Amount of memory to allocate (in GB)
- # of CPUs to allocate

Also introduce unit-testing, do TDD against
the settings component.
2021-02-09 13:22:58 -08:00
Mark Yen
b94d098195 Add custom build script
Nuxtron's build script doesn't allow us to add command line arguments to
electron-builder, which causes a problem as electron-builder will by
default attempt to publish when run under GitHub Actions.  To work
around this, write a custom script to do the equivalent of `nuxtron
build`.
2021-02-03 14:49:39 -08:00
Mark Yen
b8c5ae0810 .gitignore: Add nuxt/nuxtron directories 2021-02-03 14:48:34 -08:00
Matt Farina
221b3e8dfe Adding hyperkit to RD
Up to this point RD has used hyperkit provided by docker or installed
via homebrew. This has worked for development but does not work going
forward. We cannot assume that either hyperkit is installed or that
the path the built app has includes hyperkit.

The change adds hyperkit via two steps:
1. hyperkit is downloaded and placed in the resources/darwin directory
   alongside of minikube. It does this by checking out the source at
   a specific version and building it. This is needed because hyperkit
   is not available as a download.
2. The path to hyperkit is added at the start of the path when minikube
   processes are spawned. The start of the path is used so that RD
   provided hyperkit is used instead of a different version that may
   be available on the system.

Signed-off-by: Matt Farina <matt@mattfarina.com>
2021-01-11 13:08:22 -05:00
Mark Yen
65fba58cc2 vue.config.js: change electron output dir 2021-01-06 13:35:39 -08:00
Mark Yen
36cdc5d013 package.json: add vue-cli-plugin-electron-builder
This will be used to package things up.
2021-01-06 13:35:39 -08:00
Eric Promislow
cb2a3d92b3 Add commonly used editor cruft to .gitignore 2020-12-09 09:29:04 -08:00
Matt Farina
4b2d7625bf Adding k8s context switching to menu nav
Signed-off-by: Matt Farina <matt@mattfarina.com>
2020-11-11 14:21:26 -05:00
Matt Farina
8a2f6fa351 First pass at UI
Note, assets pulled from new rancher dashboard

Signed-off-by: Matt Farina <matt@mattfarina.com>
2020-11-04 16:19:44 -05:00
Matt Farina
6833e0bec7 Moving minikube handling to an import
This includes:
- a custom binary so we control the version
- a home location of its own so as to not conflict with minikube
  if installed on the system

Signed-off-by: Matt Farina <matt@mattfarina.com>
2020-10-20 12:36:01 -04:00
Matt Farina
5e27fda22b Initial commit
This is a proof of concept for wrapping the "engine" (minikube or
something else) in electron as a UI. This is the base building
block for the desktop.

Signed-off-by: Matt Farina <matt@mattfarina.com>
2020-10-12 12:33:39 -04:00