Jari Kolehmainen
2657df2293
Restructure to monorepo ( #6907 )
...
* wip: restructure to monorepo
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* refactor create-release-pr to a package
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* build fixes
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* github workflow fixes
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* fix typo
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* add webpack-env types to core
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* fix github workflows
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* refactor/fix integration tests
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* lint fix
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* yarn run dev
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* eslint settings for vscode
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* move templates to right package
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* open-lens build fixes
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* integration test fix
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* fix nx task dependencies
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* use bash shell for unit tests in test workflow
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* fix test:unit for windows
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* fix win-ca webpack error in open-lens
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* fix win-ca webpack error in open-lens
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* fix build:app on windows
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* remove ELECTRON_BUILDER_EXTRA_ARGS
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* sync src/ from master
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* remove Makefile from core
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2023-01-24 10:46:26 -08:00
Jari Kolehmainen and Sebastian Malton
97551bb7f0
Allow to import app as a library ( #6722 )
...
* unify build fs layout
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* use currentApp path for static files
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* lint fix
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* allow to import open-lens
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* allow to customize both main & renderer
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* fix compile-library script
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* remove bundled extensions
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* similar interface for both main & renderer
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* use startApp on both sides
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* fix startApp import
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* fix startApp import
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* Fix injection cycle (somehow)
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* use cwd in download_binaries
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* introduce applicationInformationToken
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* register applicationInformationInjectable in main & renderer
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* allow to define bundled extensions via appStart
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* compile node-fetch automatically via prepare
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* define peerDependencies
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* webpack fixes
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* rename application-information-token.injectable.ts -> application-information-token.ts
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* monaco-editor as externals
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* refactor application-information
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* introduce bundledExtensionInjectionToken
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* mark library exports as experimental
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* move extension npm package files & add release automation
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* add missing build files to package
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* fix bad merge conflict resolve
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* fix package.json name
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* allow to set mode via startApp
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* revert unnecessary changes
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* webpack: fix extensionOutDir
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* remove unnecessary peerDependencies
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* introduce nodeEnvInjectionToken
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* remove NODE_ENV from environmentVariablesInjectable
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* fix jest modulePathIgnorePatterns
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* fix duplicate injectable registration
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* fix build executableName
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
Signed-off-by: Sebastian Malton <sebastian@malton.name >
Co-authored-by: Sebastian Malton <sebastian@malton.name >
2022-12-23 13:33:35 +02:00
Sebastian Malton
8db81a4731
Remove in-tree extensions to help facilitate a more secure and faster booting lens ( #6775 )
...
* Remove kube-object-event-status extension
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Remove cluster-metrics-feature intree extension
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Remove lens-node-menu intree extension
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Remove lens-pod-menu intree extension
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Remove building extensions as part of build
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Remove integration test touching previously bundled code
Signed-off-by: Sebastian Malton <sebastian@malton.name >
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-12-20 07:53:33 -05:00
Sebastian Malton
86ac417cab
Upgrade to latest node-fetch ( #6046 )
...
* Upgrade to latest node-fetch
- Introduce injection tokens for retriving the implementation of
node-fetch via await import() calls
- Add webpack file for compiling node-fetch to electron-renderer single
file format
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Update lock file
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Add type packages which were removed for some reason
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Add more dev @types deps that weren't added last time
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Simpify by using webpack to create a commonjs package
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Fix build for integration tests
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Fix unit tests on CI not having all deps
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Fix tests
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Revert accidental timeout change
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Replace manually specifying nodeJS externals with preset
Signed-off-by: Sebastian Malton <sebastian@malton.name >
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-11-14 10:46:53 -05:00
Sebastian Malton
d99cc5a015
Bundle tray icons in repo ( #5362 )
2022-05-11 10:26:43 -04:00
Sebastian Malton
9f25212f45
Stop using sharp at runtime ( #5346 )
2022-05-10 08:44:22 -04:00
1b0f56f417
VSCode launch configurations for debugging ( #2281 )
...
* Add configuration for debugging integration tests
Signed-off-by: Alex Culliere <alozhkin@mirantis.com >
* Add launch configuration for debugging main process
Signed-off-by: Alex Culliere <alozhkin@mirantis.com >
* Continue polishing debug configurations
Signed-off-by: Alex Culliere <alozhkin@mirantis.com >
* Remove unnecessary dependency
Signed-off-by: Alex Culliere <alozhkin@mirantis.com >
* Add debug configuration for unit tests + cleanup vscode tasks
Signed-off-by: Alex Culliere <alozhkin@mirantis.com >
* Update src/renderer/bootstrap.tsx
Add `await` keyword to debugger attachment
Co-authored-by: chh <1474479+chenhunghan@users.noreply.github.com >
Signed-off-by: Alex Culliere <alozhkin@mirantis.com >
* Update src/renderer/bootstrap.tsx
Co-authored-by: chh <1474479+chenhunghan@users.noreply.github.com >
Signed-off-by: Alex Culliere <alozhkin@mirantis.com >
* Use existing variable to wait for chrome debugger attachment
Signed-off-by: Alex Culliere <alozhkin@mirantis.com >
* Update src/renderer/bootstrap.tsx
Use available helper function instead of raw promise
Co-authored-by: Sebastian Malton <sebastian@malton.name >
Signed-off-by: Alex Culliere <alozhkin@mirantis.com >
* Import delay utility
Signed-off-by: Alex Culliere <alozhkin@mirantis.com >
* Move async function to async context (attaching debugger)
Signed-off-by: Alex Culliere <alozhkin@mirantis.com >
Co-authored-by: Alex Culliere <alozhkin@mirantis.com >
Co-authored-by: chh <1474479+chenhunghan@users.noreply.github.com >
Co-authored-by: Sebastian Malton <sebastian@malton.name >
2021-03-09 17:57:55 +02:00
Sebastian Malton
c05fe21c68
gitignore .vscode ( #1599 )
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-01-08 22:20:44 -05:00
Sebastian Malton
686cb122a3
add step to verify docs on area/documentation PRs ( #1528 )
...
* add step to verify docs on area/documentation PRs
* use GH actions to run the verification
* add check if label is set to area/documentation
* fix broken links in docs with WIP files
* add generating API docs before verifying
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2020-11-27 10:13:53 -05:00
Sebastian Malton
648dbfee98
Remove Makefile from all intree extensions ( #1312 )
...
* Remove Makefile from all intree extensions
- Makefiles are not really common (rightly so) in JS projects and script
entries in the package.json are good enough and what they're there
for.
- Move to using yarn for installing dependencies and running scripts as
that is what we mostly use for the rest of the project.
- Move from using make syntax to a dedicated script for building and
testing extensions.
- add jest as extension devDep, go back to using makefile foreach syntax
- add correct exit code
- add yarn check call to install-deps
- add yarn invokation to find deps
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2020-11-13 12:32:15 -05:00
Mario Sarcher
de85229512
Generate API Reference documentation using typedocs and gh-actions
...
Signed-off-by: Mario Sarcher <msarcher@mirantis.com >
2020-11-10 09:36:28 +01:00
Roman and Jim Ehrismann
f3a0059355
Extension support page ( #1112 )
...
Signed-off-by: Roman <ixrock@gmail.com >
Co-authored-by: Jim Ehrismann <40840436+jim-docker@users.noreply.github.com >
2020-10-24 09:24:54 +03:00
Jari Kolehmainen
aa864fc199
Support extensions in main process ( #1032 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2020-10-08 11:52:45 +03:00
Roman
5ec6751ab4
Extensions api types ( #985 )
...
Signed-off-by: Roman <ixrock@gmail.com >
2020-09-29 07:37:25 +03:00
Roman and Alex Andreev
5daf53e6cb
Extensions-api: initial hello-world example ( #817 )
...
Signed-off-by: Roman <ixrock@gmail.com >
Co-authored-by: Alex Andreev <alex.andreev.email@gmail.com >
2020-09-09 16:19:02 +03:00
f1b03990ea
Extensions loading ( #795 )
...
Signed-off-by: Roman <ixrock@gmail.com >
Co-authored-by: Alex Andreev <alex.andreev.email@gmail.com >
Co-authored-by: Lauri Nevala <lauri.nevala@gmail.com >
2020-09-09 13:00:25 +03:00
Sebastian Malton and Sebastian Malton
cb3e19f2f0
Allow for users to enabled release mode debugging ( #481 )
...
* Allow for users to enabled release mode debugging by setting the env var `DEBUG` to "true"
* Adds file logging so that in production logs can still be
obtained. Those log files are limited the size and number and are rotated automatically
Signed-off-by: Sebastian Malton <smalton@mirantis.com >
Co-authored-by: Sebastian Malton <smalton@mirantis.com >
2020-09-01 09:20:59 -04:00
5670312c47
Migrating Vue components to React and stores refactoring ( #585 )
...
Signed-off-by: Roman <ixrock@gmail.com >
Co-authored-by: Sebastian Malton <sebastian@malton.name >
Co-authored-by: Sebastian Malton <smalton@mirantis.com >
Co-authored-by: Lauri Nevala <lauri.nevala@gmail.com >
Co-authored-by: Alex Andreev <alex.andreev.email@gmail.com >
2020-08-20 08:53:07 +03:00
Roman
b7974827d2
Lens restructure ( #540 )
...
Signed-off-by: Roman <ixrock@gmail.com >
2020-06-30 14:35:16 +03:00
Jari Kolehmainen
1d0815abd2
Lens app source code ( #119 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2020-03-15 09:52:02 +02:00