diff --git a/Makefile b/Makefile index 3adf1f7..6af385a 100644 --- a/Makefile +++ b/Makefile @@ -28,7 +28,7 @@ build-cluster: requirements: # Check if all required commands are installed - REQUIRED_CLI=("go" "kind" "docker") && \ + REQUIRED_CLI=("go" "kind" "docker" "wails") && \ for command in "$${REQUIRED_CLI[@]}"; \ do \ if ! command -v "$$command" &> /dev/null; \ diff --git a/README.md b/README.md index a479607..9c42f5b 100644 --- a/README.md +++ b/README.md @@ -1,24 +1,26 @@ ![logo](./docs/logo.svg) -A desktop app implementation of a Kubernetes client viewer, that stands on the shoulders of framework giants Svelte and Wails. +A desktop app Kubernetes client viewer, that stands on the shoulders of framework giants Svelte and Wails. +This project is under active development Here's a list of things that work: -1. A working UI/desktop application -2. A working backend that connects to a local cluster -3. A working GraphQL API and the infrastructure to extend it -4. A bunch of UI stuff broke in a recent commit, and I haven't gotten back to fixing it yet... +1. A dead simple UI/desktop application that features cross-context resource querying +2. A backend that connects to any cluster in your ~/.kube/config +3. A working GraphQL API with an Apollo client + +![screenshot](./docs/screenshot.png) ## Goals -1. A good looking, keyboard driven UI that ain't slow -2. Ability to issue complex api queries *across* clusters +1. A good looking, fast, keyboard driven UI for front-line Kubernets admins +2. Ability to issue resource queries *across* clusters ## Getting Started -1. Install requirements +1. Install requirements below 2. Run `make` or `make run-with-deps` if it's your first time 3. Navigate to http://localhost:8080/sandbox to interact with the GraphQL API via Apollo -4. Or run `wails dev` and follow the prompts see below +4. Or run `wails dev` and follow the prompts. See below -## Requirements +## Requirements for dev 1. Go 2. Docker 3. Kind diff --git a/docs/icon.svg b/docs/icon.svg deleted file mode 100644 index 32417b2..0000000 --- a/docs/icon.svg +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - Layer 1 - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/docs/logo.png b/docs/logo.png new file mode 100644 index 0000000..e51d5a8 Binary files /dev/null and b/docs/logo.png differ diff --git a/docs/screenshot.png b/docs/screenshot.png new file mode 100644 index 0000000..314f26c Binary files /dev/null and b/docs/screenshot.png differ diff --git a/frontend/index.html b/frontend/index.html index 102d1f8..ba045af 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -1,12 +1,32 @@ - - - + + + m8 - - -
- - + + +
+ + + + diff --git a/frontend/src/JsonTable.svelte b/frontend/src/JsonTable.svelte index 742a8fb..3c1d319 100644 --- a/frontend/src/JsonTable.svelte +++ b/frontend/src/JsonTable.svelte @@ -1,9 +1,9 @@ -
+
Search \ No newline at end of file diff --git a/frontend/src/assets/images/logo-universal.png b/frontend/src/assets/images/logo-universal.png index 5421ad8..e51d5a8 100644 Binary files a/frontend/src/assets/images/logo-universal.png and b/frontend/src/assets/images/logo-universal.png differ diff --git a/frontend/src/jsonTable.ts b/frontend/src/jsonTable.ts index 4ad9056..00f5e1f 100644 --- a/frontend/src/jsonTable.ts +++ b/frontend/src/jsonTable.ts @@ -3,4 +3,6 @@ export interface tableObject { } import {writable} from "svelte/store" -export const dataStore = writable({"hello": "moto"}) \ No newline at end of file + +export const tableDataStore = writable({}) +export const searchTerm = writable("") \ No newline at end of file diff --git a/main.go b/main.go index 24a7902..5839b4c 100644 --- a/main.go +++ b/main.go @@ -23,8 +23,8 @@ func main() { // Create application with options err := wails.Run(&options.App{ Title: "m8", - Width: 1024, - Height: 768, + Width: 800, + Height: 500, AssetServer: &assetserver.Options{ Assets: assets, }, diff --git a/wails.json b/wails.json index 54aa67a..1fea7e5 100644 --- a/wails.json +++ b/wails.json @@ -7,7 +7,6 @@ "frontend:dev:watcher": "npm run dev", "frontend:dev:serverUrl": "auto", "author": { - "name": "Corin Ziyadeh", - "email": "corin.ziyadeh@zoro.com" + "name": "Corin Ziyadeh" } } \ No newline at end of file