Roman
36a82aefe9
removed common/utils/autobind
...
Signed-off-by: Roman <ixrock@gmail.com>
2021-05-05 14:05:36 +03:00
Roman
35732e5a59
autobind-related fixes / refactoring
...
Signed-off-by: Roman <ixrock@gmail.com>
2021-05-04 20:41:20 +03:00
Roman
3323c25be3
- replacing mobx.toJS()-calls to common/utils/toJS
...
- adding missing makeObservable(this)
- fix docs
Signed-off-by: Roman <ixrock@gmail.com>
2021-04-26 15:52:34 +03:00
Roman
a0193a2cda
Merge remote-tracking branch 'origin/master' into mobx-6.2
...
# Conflicts:
# extensions/survey/package-lock.json
# extensions/survey/package.json
# extensions/survey/src/survey-preferences-store.ts
# extensions/telemetry/src/telemetry-preferences-store.ts
# src/common/user-store.ts
# src/extensions/core-api/catalog.ts
# src/extensions/extension-discovery.ts
# src/extensions/lens-extension.ts
# src/main/cluster-manager.ts
# src/renderer/bootstrap.tsx
# src/renderer/components/+apps-helm-charts/helm-chart.store.ts
# src/renderer/components/+apps-releases/release.store.ts
# src/renderer/components/+catalog/catalog.tsx
# src/renderer/components/+extensions/extension-install.store.ts
# src/renderer/components/+extensions/extensions.tsx
# src/renderer/components/+preferences/preferences.tsx
# src/renderer/components/dock/create-resource.store.ts
# src/renderer/components/kube-object/kube-object-list-layout.tsx
# src/renderer/theme.store.ts
# src/renderer/utils/storageHelper.ts
2021-04-21 17:28:18 +03:00
Sebastian Malton
9563ead2e6
Fixing Singleton typing to correctly return child class ( #1914 )
...
- Add distinction between `getInstance` and `getInstanceOrCreate` since
it is not always possible to create an instance (since you might not
know the correct arguments)
- Remove all the `export const *Store = *Store.getInstance<*Store>();`
calls as it defeats the purpose of `Singleton`. Plus with the typing
changes the appropriate `*Store.getInstance()` is "short enough".
- Special case the two extension export facades to not need to use
`getInstanceOrCreate`. Plus since they are just facades it is always
possible to create them.
- Move some other types to be also `Singleton`'s: ExtensionLoader,
ExtensionDiscovery, ThemeStore, LocalizationStore, ...
- Fixed dev-run always using the same port with electron inspect
- Update Store documentation with new recommendations about creating
instances of singletons
- Fix all unit tests to create their dependent singletons
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-04-21 09:59:59 -04:00
Roman
08787dce1f
migration additions -- part 3 (adding makeObservable to constructor)
...
Signed-off-by: Roman <ixrock@gmail.com>
2021-04-20 13:45:35 +03:00
Jari Kolehmainen
8dde4a1ecb
Refactor cluster settings to catalog entity settings ( #2525 )
...
* fix cluster settings page layout
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* cleanup
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* refactor cluster settings to pluggable entity settings
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* fix
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* fix
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* fix gh actions network timeout on yarn install
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* review changes
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-04-20 07:05:44 +03:00
Violetta
a9a5766920
Add the ability to hide metrics from the UI ( #2036 )
2021-03-16 09:22:08 -04:00
Jari Kolehmainen
a03da3c572
Remove lingui ( #1874 )
...
* remove lingui
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* babelless
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* tweak ts-loader options
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* tweak renderer webpack config
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-12-29 14:53:34 +02:00
Roman
be4e1aa15c
Navigation refactoring, handling extension page params ( #1651 )
...
* decentralizing page url-params management -- PoC / tsc 4.1 random fixes
Signed-off-by: Roman <ixrock@gmail.com>
* fixes, tweak example-extension for demo
Signed-off-by: Roman <ixrock@gmail.com>
* lint fixes, revert tests
Signed-off-by: Roman <ixrock@gmail.com>
* removed occasional changes related to typescript 4.1
Signed-off-by: Roman <ixrock@gmail.com>
* updated example with 2 menu-items targeting same page with different params
Signed-off-by: Roman <ixrock@gmail.com>
* fix: merge page url chunks with native URL()-api, simplified default page-params registration
Signed-off-by: Roman <ixrock@gmail.com>
* fix: make lint happy
Signed-off-by: Roman <ixrock@gmail.com>
* fix: unit-tests
Signed-off-by: Roman <ixrock@gmail.com>
* renaming by jim's request: UrlParam => PageParam (type), createUrlParam => createPageParam (helper)
Signed-off-by: Roman <ixrock@gmail.com>
* fix: reverting NamespaceStore public-api breaking changes
Signed-off-by: Roman <ixrock@gmail.com>
* lint fix
Signed-off-by: Roman <ixrock@gmail.com>
* fine-tuning
Signed-off-by: Roman <ixrock@gmail.com>
* yes, lint always unhappy
Signed-off-by: Roman <ixrock@gmail.com>
* fix build
Signed-off-by: Roman <ixrock@gmail.com>
* small fixes
Signed-off-by: Roman <ixrock@gmail.com>
* fix merge-conflicts
Signed-off-by: Roman <ixrock@gmail.com>
* removed `isSystem` page-param's init field exposed to extensions-api
Signed-off-by: Roman <ixrock@gmail.com>
2020-12-22 15:29:25 +02:00
Panu Horsmalahti
dcf253e7d5
Add eslint rule padding-line-between-statements ( #1593 )
...
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
2020-12-02 09:55:52 +02:00
Panu Horsmalahti
1477bb8274
Enforce semicolons in eslint
...
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
2020-11-19 16:35:04 +02:00
Jari Kolehmainen
deb4773b44
Allow to specify KubeObjectDetailRegistration priority ( #1335 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-11-12 09:16:22 +02:00
Alex Andreev
e3354f3b75
Fixing return statements in Pod menus ( #1211 )
...
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2020-11-03 16:22:54 +03:00
Jari Kolehmainen
99db7aca19
Allow extensions to register kube-object menus + details ( #1108 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-10-22 21:41:20 +03:00
Roman
b7974827d2
Lens restructure ( #540 )
...
Signed-off-by: Roman <ixrock@gmail.com>
2020-06-30 14:35:16 +03:00