Commit graph

31 commits

Author SHA1 Message Date
Florent Benoit
d514f9e4d6 chore(watch): move core-api watcher first
main, preload, renderer, etc depend on api package
move api first so it may avoid empty folder

fixes https://github.com/podman-desktop/podman-desktop/issues/16287
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
2026-02-23 12:36:31 +01:00
Florent Benoit
b1f50379d7 chore(watcher): add packages/api into the watcher
related to https://github.com/podman-desktop/podman-desktop/issues/15496
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
2026-02-09 17:21:06 +01:00
Jeff MAURY
57bf7774e6
fix: update spawn command for ui package (#10548)
Fixes #10546

Signed-off-by: Jeff MAURY <jmaury@redhat.com>
2025-01-08 19:01:25 +01:00
Florent Benoit
4d5e0a09f6 chore: apply missing formatting on some files
related to https://github.com/containers/podman-desktop/issues/8970
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
2024-10-11 09:13:25 +02:00
Denis Golovin
017f68a898
feat: move podman extension to packages/extension folder and add dev and runtime support for it (#8791)
Signed-off-by: Denis Golovin <dgolovin@redhat.com>
2024-09-11 19:48:55 -07:00
Florent BENOIT
13577e14ec
chore: switch to pnpm instead of yarn (#8589)
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
2024-08-29 20:13:01 +00:00
Jeff MAURY
7e2c60389a
fix: watch script broken on Windows (#8106)
Fixes #8083

Signed-off-by: Jeff MAURY <jmaury@redhat.com>
2024-07-16 10:37:06 -04:00
axel7083
c9caf66aa3
feat: generate storybook css dynamically (#7541)
* feat: generate storybook css dynamically

Signed-off-by: axel7083 <42176370+axel7083@users.noreply.github.com>

* fix: resolve PR comments

Signed-off-by: axel7083 <42176370+axel7083@users.noreply.github.com>

* test: ensuring script folder works as expected

Signed-off-by: axel7083 <42176370+axel7083@users.noreply.github.com>

* fix: weird vitest behaviour

Signed-off-by: axel7083 <42176370+axel7083@users.noreply.github.com>

* fix: vitest restrict to config folder

Signed-off-by: axel7083 <42176370+axel7083@users.noreply.github.com>

---------

Signed-off-by: axel7083 <42176370+axel7083@users.noreply.github.com>
2024-06-13 09:55:19 +00:00
Jeff MAURY
782d67c1bd
fix: yarn watch failure on Windows (#6231)
Fixes #6228

Signed-off-by: Jeff MAURY <jmaury@redhat.com>
2024-03-01 13:43:28 +00:00
Florent BENOIT
e9b987f4db
feat: introduce a svelte ui package (#6172)
* feat: introduce a svelte ui package

the renderer package has a dependency to this new module
we could publish the ui-svelte package so other components could
reuse components defined there

for now, there is no component being defined but stay tuned 🎉
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
2024-02-28 19:01:50 +01:00
Florent Benoit
ac6daec4a3 chore: add preload module for Webviews
part of https://github.com/containers/podman-desktop/issues/5140
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
2024-01-19 14:12:21 +01:00
lstocchi
fa3d78d78d fix: check extension folder contains package.json
Signed-off-by: lstocchi <lstocchi@redhat.com>
2023-11-23 14:27:04 +01:00
Charlie Drage
051c7c81d9 chore: fix yarn watch
### What does this PR do?

`yarn watch` now works, looks like we did not explicitly say to use join
from `node:path`.

### Screenshot/screencast of this PR

<!-- Please include a screenshot or a screencast
explaining what is doing this PR -->

N/A

### What issues does this PR fix or reference?

<!-- Include any related issues from Podman Desktop
repository (or from another issue tracker). -->

Closes https://github.com/containers/podman-desktop/issues/4956

### How to test this PR?

<!-- Please explain steps to reproduce -->

`yarn watch` should now work

Signed-off-by: Charlie Drage <charlie@charliedrage.com>
2023-11-23 07:50:25 +01:00
Florent BENOIT
69b427210b
chore: watch all extensions from extension folder (#4952)
* chore: watch all extensions from extension folder

for now we were listing explicitely all extension one by one
but for example kubectl-cli was missing

now, loop on the folder so we won't miss a new extension

fixes https://github.com/containers/podman-desktop/issues/4944
Signed-off-by: Florent Benoit <fbenoit@redhat.com>

* Update scripts/watch.mjs

Co-authored-by: Denis Golovin <dgolovin@users.noreply.github.com>
Signed-off-by: Florent BENOIT <fbenoit@redhat.com>

---------

Signed-off-by: Florent BENOIT <fbenoit@redhat.com>
Co-authored-by: Denis Golovin <dgolovin@users.noreply.github.com>
2023-11-22 23:04:20 +00:00
Florent Benoit
a8b44a25bb chore: switch script from commonjs to esmodule
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
2023-11-22 08:57:04 +01:00
Florent Benoit
a26903e6bf chore: remove usage of await on non-promises
Change-Id: Ib1a71cafd4c5a55726c0c5d6402f42248013f6be
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
2023-05-15 15:03:27 +02:00
Jeff MAURY
173250ea0e
chore: allow running and debugging external extensions (#1801)
* chore: allow running and debugging external extensions

Fixes #1663

Signed-off-by: Jeff MAURY <jmaury@redhat.com>
2023-03-24 16:00:37 +01:00
Florent BENOIT
e884bc8964
feat: add compose extension (#1578)
* feat: add compose extension
extension is responsible to download docker-compose and setup a 'podman-desktop' binary
that will setup properly DOCKER_HOST

fixes https://github.com/containers/podman-desktop/issues/1478

Change-Id: Id0e6628ca5860649c2a0b19f7a85eb326605c9ac
Signed-off-by: Florent Benoit <fbenoit@redhat.com>

* fixup! feat: add compose extension extension is responsible to download docker-compose and setup a 'podman-desktop' binary that will setup properly DOCKER_HOST

Change-Id: Id1304316ca7b1160e4852e1dd622c41d232df734
Signed-off-by: Florent Benoit <fbenoit@redhat.com>

* Update extensions/compose/src/compose-extension.ts

Co-authored-by: Luca Stocchi <49404737+lstocchi@users.noreply.github.com>
Signed-off-by: Florent BENOIT <fbenoit@redhat.com>

* fixup! feat: add compose extension extension is responsible to download docker-compose and setup a 'podman-desktop' binary that will setup properly DOCKER_HOST

Change-Id: I1d2977d36fc7970c44c063e8bcd79f283bd8e4ed
Signed-off-by: Florent Benoit <fbenoit@redhat.com>

* fixup! feat: add compose extension extension is responsible to download docker-compose and setup a 'podman-desktop' binary that will setup properly DOCKER_HOST

Change-Id: Ied497b8ead4b9966d1a2eadfe84e0cbdb8def834
Signed-off-by: Florent Benoit <fbenoit@redhat.com>

* fixup! feat: add compose extension extension is responsible to download docker-compose and setup a 'podman-desktop' binary that will setup properly DOCKER_HOST

Change-Id: Ibe90411dee94afa96dbd689b779864eb138f295f
Signed-off-by: Florent Benoit <fbenoit@redhat.com>

---------

Signed-off-by: Florent Benoit <fbenoit@redhat.com>
Signed-off-by: Florent BENOIT <fbenoit@redhat.com>
Co-authored-by: Luca Stocchi <49404737+lstocchi@users.noreply.github.com>
2023-03-16 13:47:47 -04:00
Florent Benoit
2a75673123 chore: remove CRC extension from the assembly
it has been moved to a separate repository https://github.com/crc-org/crc-extension

Change-Id: Ib3a0ed0bc81a04cba35575a652e1351270d71793
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
2023-03-14 10:29:49 +01:00
Luca Stocchi
332ff7a766
chore: add main and renderer debug scripts (#1311)
* chore: add main and renderer debug scripts

Signed-off-by: luca <lstocchi@redhat.com>
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
Co-authored-by: Florent Benoit <fbenoit@redhat.com>
2023-02-03 10:38:27 +01:00
Charlie Drage
b53f1bfce0
feat: show suggested registries in Podman Desktop (#1201)
* feat: show suggested registries in Podman Desktop

### What does this PR do?

* Shows suggested registries when going to add a registry
* Adds an API call to "suggest" a registry which can be done by any
  extension added (for example, a custom extension that provides a
  private registry to be added)
* Show base64 encoded logo (no need to use fs / async / await load a
  logo, since they are small 40x40px icons
* UI/UX rework of the registry page to make sure that login works
  correctly when adding a new registry

### Screenshot/screencast of this PR

<!-- Please include a screenshot or a screencast explaining what is doing this PR -->

### What issues does this PR fix or reference?

<!-- Please include any related issue from Podman Desktop repository (or from another issue tracker).
-->

Closes https://github.com/containers/podman-desktop/issues/895

### How to test this PR?

<!-- Please explain steps to reproduce -->

`yarn watch`

Go to registry and try it out! Login to Docker Hub / Quay / etc.

Signed-off-by: Charlie Drage <charlie@charliedrage.com>

* update based on review, add more container registries, deactivate and remove reactively

Signed-off-by: Charlie Drage <charlie@charliedrage.com>

update

Signed-off-by: Charlie Drage <charlie@charliedrage.com>

* Update based on review

Signed-off-by: Charlie Drage <charlie@charliedrage.com>

* use disposable not void

Signed-off-by: Charlie Drage <charlie@charliedrage.com>

* update: remove unsuggestRegistry

Signed-off-by: Charlie Drage <charlie@charliedrage.com>

* Fix build command + package.json files

Signed-off-by: Charlie Drage <charlie@charliedrage.com>

* change ui/ux

Signed-off-by: Charlie Drage <charlie@charliedrage.com>

* remove suggested

Signed-off-by: Charlie Drage <charlie@charliedrage.com>

* add forgotten div for buttons

Signed-off-by: Charlie Drage <charlie@charliedrage.com>

Signed-off-by: Charlie Drage <charlie@charliedrage.com>
2023-01-24 16:09:27 +00:00
Florent BENOIT
01da111013
chore: add typecheck verification (#1086)
Fix also the reported errors

Change-Id: I2f19b8797ad861e8594faef2e366a200382a4923
Signed-off-by: Florent Benoit <fbenoit@redhat.com>

Signed-off-by: Florent Benoit <fbenoit@redhat.com>
2022-12-23 09:44:12 -05:00
Florent Benoit
4eaed9e0b7 chore: upgrade to vite v4 and rollup v3
https://vitejs.dev/blog/announcing-vite4.html

also update vite svelte plug-in to a v4 vite compliant version

Change-Id: Ib83831ccff175b757c997a1321a2b60eb09b83e5
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
2022-12-22 12:07:36 +01:00
Florent BENOIT
1e67ea9f6a
feat: Adds Kind extension (#1061)
* feat: Adds Kind extension
- list kind clusters
- Allows to create clusters

Change-Id: Ib9174b6a453d1970fe4bec54fb29013ebd5db436
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
2022-12-21 15:49:21 -05:00
Florent BENOIT
acbbfd0905
chore: enable svelte-check (#992)
chore: enable svelte check on the repository on each PR
allows to check if code is valid

For now threshold is at error but it should be turned to hints

Change-Id: Id1af31a438775f38c8cf37ad75552fea9f21fe3e
Signed-off-by: Florent Benoit <fbenoit@redhat.com>

Signed-off-by: Florent Benoit <fbenoit@redhat.com>
2022-12-08 11:06:45 -05:00
Florent Benoit
15998271e3 feat: Add kubernetes menu in tray icon to switch context
fixes https://github.com/containers/podman-desktop/issues/521

Change-Id: I31d9a1fcd56f05c956fa023c9eec590f26334d57
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
2022-10-10 09:08:06 +02:00
Florent Benoit
a7b0bf16b0 chore: keep existing env as well
Change-Id: I30767f0db0e32155c5d74daa50f533273b486232
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
2022-06-22 14:58:48 +02:00
Yevhen Vydolob
d2fbc755c8 feat: Add Notifications API
Signed-off-by: Yevhen Vydolob <yvydolob@redhat.com>
2022-06-17 11:50:19 +03:00
Florent Benoit
635036cf9b feat: Add Docker Desktop Extension support
Fixes https://github.com/containers/podman-desktop/issues/136
Change-Id: I4f501395ede93bbfacf37617df11a2be5da8f984
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
2022-06-08 11:12:47 +02:00
Yevhen Vydolob
c62a4795b4
feat: install podman on windows (#173)
* feat: install podman on windows

Signed-off-by: Yevhen Vydolob <yvydolob@redhat.com>

* fix compilation and asset path

Signed-off-by: Yevhen Vydolob <yvydolob@redhat.com>
2022-06-07 16:09:48 +03:00
Florent Benoit
465bb8a493 feat: initial import 2022-03-08 17:49:35 +01:00