mirror of
https://github.com/lensapp/lens.git
synced 2024-09-11 09:25:26 +03:00
extract @k8slens/icon
Signed-off-by: Gabriel <gaccettola@mirantis.com>
This commit is contained in:
parent
7a4f30ab61
commit
41798b718a
@ -30,7 +30,7 @@
|
||||
"dev:main": "cross-env NODE_ENV=development webpack --config webpack/main.ts --progress --watch",
|
||||
"dev:renderer": "cross-env NODE_ENV=development ts-node ./webpack/dev-server.ts",
|
||||
"test:integration": "jest -xyz --runInBand --modulePaths=[\"<rootDir>/integration/\"];",
|
||||
"build:tray-icons": "npm run --workspace @k8slens/generate-tray-icons generate -- --output static/build/tray --input @k8slens/core/icons/logo-lens.svg --notice-icon @k8slens/core/icons/notice.svg --spinner-icon @k8slens/core/icons/arrow-spinner.svg",
|
||||
"build:tray-icons": "npm run --workspace @k8slens/generate-tray-icons generate -- --output static/build/tray --input @k8slens/icon/icons/logo-lens.svg --notice-icon @k8slens/icon/icons/notice.svg --spinner-icon @k8slens/icon/icons/arrow-spinner.svg",
|
||||
"download:binaries": "npm run --workspace @k8slens/ensure-binaries ensure -- --package package.json --base-dir binaries/client",
|
||||
"postinstall": "electron-rebuild"
|
||||
},
|
||||
|
@ -3,6 +3,7 @@ import "@k8slens/button/styles";
|
||||
import "@k8slens/error-boundary/styles";
|
||||
import "@k8slens/tooltip/styles";
|
||||
import "@k8slens/resizing-anchor/styles";
|
||||
import "@k8slens/icon/styles";
|
||||
|
||||
import { runInAction } from "mobx";
|
||||
import {
|
||||
|
@ -24,8 +24,7 @@
|
||||
"./styles": "./static/build/library/renderer.css",
|
||||
"./template.html": "./src/renderer/template.html",
|
||||
"./vars.scss": "./src/renderer/components/vars.scss",
|
||||
"./fonts": "./static/build/library/fonts",
|
||||
"./icons/*.svg": "./src/renderer/components/icon/*.svg"
|
||||
"./fonts": "./static/build/library/fonts"
|
||||
},
|
||||
"typesVersions": {
|
||||
"*": {
|
||||
@ -44,7 +43,6 @@
|
||||
"static/build/library/**/*",
|
||||
"src/renderer/template.html",
|
||||
"src/renderer/components/vars.scss",
|
||||
"src/renderer/components/icon/*.svg",
|
||||
"types/*",
|
||||
"tsconfig.json"
|
||||
],
|
||||
@ -234,6 +232,7 @@
|
||||
"@k8slens/run-many": "^1.0.0-alpha.1",
|
||||
"@k8slens/startable-stoppable": "^1.0.0-alpha.1",
|
||||
"@k8slens/tooltip": "^1.0.0-alpha.5",
|
||||
"@k8slens/icon": "^1.0.0-alpha.7",
|
||||
"@k8slens/utilities": "^1.0.0-alpha.1",
|
||||
"@kubernetes/client-node": "^0.18.1",
|
||||
"@material-ui/core": "^4.12.3",
|
||||
|
@ -61,7 +61,7 @@ export const ConfirmDialog = Object.assign(_ConfirmDialog, {
|
||||
confirm: asLegacyGlobalFunctionForExtensionApi(confirmInjectable),
|
||||
});
|
||||
|
||||
export * from "../../renderer/components/icon";
|
||||
export * from "@k8slens/icon";
|
||||
export * from "@k8slens/tooltip";
|
||||
export * from "../../renderer/components/tabs";
|
||||
export * from "../../renderer/components/table";
|
||||
|
@ -9,8 +9,8 @@ import type { HTMLAttributes } from "react";
|
||||
import React, { useState } from "react";
|
||||
import { Menu, MenuItem } from "../../../../../../../renderer/components/menu";
|
||||
import { cssNames } from "@k8slens/utilities";
|
||||
import type { IconProps } from "../../../../../../../renderer/components/icon";
|
||||
import { Icon } from "../../../../../../../renderer/components/icon";
|
||||
import type { IconProps } from "@k8slens/icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
import { observer } from "mobx-react";
|
||||
import type { IComputedValue } from "mobx";
|
||||
|
@ -18,7 +18,7 @@ import { action } from "mobx";
|
||||
import submitCustomHelmRepositoryInjectable from "./submit-custom-helm-repository.injectable";
|
||||
import hideDialogForAddingCustomHelmRepositoryInjectable from "./dialog-visibility/hide-dialog-for-adding-custom-helm-repository.injectable";
|
||||
import { Button } from "@k8slens/button";
|
||||
import { Icon } from "../../../../../../renderer/components/icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import maximalCustomHelmRepoOptionsAreShownInjectable from "./maximal-custom-helm-repo-options-are-shown.injectable";
|
||||
import { SubTitle } from "../../../../../../renderer/components/layout/sub-title";
|
||||
import { Checkbox } from "../../../../../../renderer/components/checkbox";
|
||||
|
@ -4,7 +4,7 @@
|
||||
*/
|
||||
import type { InputValidator } from "../../../../../../../renderer/components/input";
|
||||
import { Input } from "../../../../../../../renderer/components/input";
|
||||
import { Icon } from "../../../../../../../renderer/components/icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
import React from "react";
|
||||
import type { RequestFilePaths } from "./get-file-paths.injectable";
|
||||
|
@ -9,7 +9,7 @@ import publicHelmRepositoriesInjectable from "./public-helm-repositories/public-
|
||||
import type { HelmRepo } from "../../../../../../common/helm/helm-repo";
|
||||
import type { SelectOption } from "../../../../../../renderer/components/select";
|
||||
import { Select } from "../../../../../../renderer/components/select";
|
||||
import { Icon } from "../../../../../../renderer/components/icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import { observer } from "mobx-react";
|
||||
import type { SingleValue } from "react-select";
|
||||
import selectHelmRepositoryInjectable from "./select-helm-repository/select-helm-repository.injectable";
|
||||
|
@ -14,7 +14,7 @@ import { observer } from "mobx-react";
|
||||
import { PreferencesNavigationTab } from "./preferences-navigation-tab";
|
||||
import { compositeHasDescendant } from "../../../../common/utils/composite/composite-has-descendant/composite-has-descendant";
|
||||
import type { PreferenceTabsRoot } from "../preference-items/preference-tab-root";
|
||||
import { Icon } from "../../../../renderer/components/icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import { checkThatAllDiscriminablesAreExhausted } from "../../../../common/utils/composable-responsibilities/discriminable/discriminable";
|
||||
import type { NavigateToPreferenceTab } from "./navigate-to-preference-tab/navigate-to-preference-tab.injectable";
|
||||
import navigateToPreferenceTabInjectable from "./navigate-to-preference-tab/navigate-to-preference-tab.injectable";
|
||||
|
@ -8,7 +8,7 @@ import type { DOMAttributes } from "react";
|
||||
import React from "react";
|
||||
|
||||
import { cssNames } from "@k8slens/utilities";
|
||||
import { Icon } from "../../../../renderer/components/icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
|
||||
export interface RemovableItemProps extends DOMAttributes<any>{
|
||||
icon?: string;
|
||||
|
@ -9,7 +9,7 @@ import React from "react";
|
||||
import type { StrictReactNode } from "@k8slens/utilities";
|
||||
import { cssNames } from "@k8slens/utilities";
|
||||
import { Button } from "@k8slens/button";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
|
||||
export interface AddRemoveButtonsProps extends React.HTMLAttributes<any> {
|
||||
onAdd?: () => void;
|
||||
|
@ -6,7 +6,7 @@
|
||||
import React from "react";
|
||||
import "@testing-library/jest-dom/extend-expect";
|
||||
import { Avatar } from "../avatar";
|
||||
import { Icon } from "../../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import { getDiForUnitTesting } from "../../../getDiForUnitTesting";
|
||||
import { type DiRender, renderFor } from "../../test-utils/renderFor";
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
import "./catalog-add-button.scss";
|
||||
import React from "react";
|
||||
import { SpeedDial, SpeedDialAction } from "@material-ui/lab";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import { observer } from "mobx-react";
|
||||
import { observable, makeObservable, action } from "mobx";
|
||||
import type { CatalogCategory, CatalogEntityAddMenu } from "../../api/catalog-entity";
|
||||
|
@ -11,7 +11,7 @@ import type { CatalogEntity, CatalogEntityContextMenu } from "../../api/catalog-
|
||||
import { observer } from "mobx-react";
|
||||
import { observable } from "mobx";
|
||||
import { MenuItem } from "../menu";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import { HotbarToggleMenuItem } from "./hotbar-toggle-menu-item";
|
||||
import type { VisitEntityContextMenu } from "../../../common/catalog/visit-entity-context-menu.injectable";
|
||||
import visitEntityContextMenuInjectable from "../../../common/catalog/visit-entity-context-menu.injectable";
|
||||
|
@ -7,7 +7,7 @@ import treeStyles from "./catalog-tree.module.scss";
|
||||
import styles from "./catalog-menu.module.scss";
|
||||
|
||||
import React from "react";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import type { CatalogCategory } from "../../api/catalog-entity";
|
||||
import { observer } from "mobx-react";
|
||||
import { CatalogCategoryLabel } from "./catalog-category-label";
|
||||
|
@ -8,7 +8,7 @@ import React from "react";
|
||||
import activeHotbarInjectable from "../../../../features/hotbar/storage/common/active.injectable";
|
||||
import { Avatar } from "../../avatar";
|
||||
import type { RegisteredAdditionalCategoryColumn } from "../custom-category-columns";
|
||||
import { Icon } from "../../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import { prevDefault } from "@k8slens/utilities";
|
||||
|
||||
const renderNamedCategoryColumnCellInjectable = getInjectable({
|
||||
|
@ -8,7 +8,7 @@ import React, { Component } from "react";
|
||||
import { observer } from "mobx-react";
|
||||
import { Drawer, DrawerItem } from "../../drawer";
|
||||
import type { CatalogCategory, CatalogEntity } from "../../../../common/catalog";
|
||||
import { Icon } from "../../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import { CatalogEntityDrawerMenu } from "../catalog-entity-drawer-menu";
|
||||
import { cssNames } from "@k8slens/utilities";
|
||||
import { Avatar } from "../../avatar";
|
||||
|
@ -13,7 +13,7 @@ import type { Cluster } from "../../../common/cluster/cluster";
|
||||
import type { IClassName } from "@k8slens/utilities";
|
||||
import { hasTypedProperty, isObject, isString, cssNames } from "@k8slens/utilities";
|
||||
import { Button } from "@k8slens/button";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import { Spinner } from "../spinner";
|
||||
import type { KubeAuthUpdate } from "../../../common/cluster-types";
|
||||
import type { CatalogEntityRegistry } from "../../api/catalog/entity/registry";
|
||||
|
@ -9,7 +9,7 @@ import type { Cluster } from "../../../common/cluster/cluster";
|
||||
import { Input } from "../input";
|
||||
import { SubTitle } from "../layout/sub-title";
|
||||
import type { ShowNotification } from "../notifications";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
import showErrorNotificationInjectable from "../notifications/show-error-notification.injectable";
|
||||
import type { ValidateDirectory } from "../../../common/fs/validate-directory.injectable";
|
||||
|
@ -6,7 +6,7 @@
|
||||
import React from "react";
|
||||
import { disposeOnUnmount, observer } from "mobx-react";
|
||||
import { onMultiSelectFor, Select } from "../select/select";
|
||||
import { Icon } from "../icon/icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import { Button } from "@k8slens/button";
|
||||
import { SubTitle } from "../layout/sub-title";
|
||||
import type { Cluster } from "../../../common/cluster/cluster";
|
||||
|
@ -9,7 +9,7 @@ import { SubTitle } from "../layout/sub-title";
|
||||
import React from "react";
|
||||
import { Input } from "../input/input";
|
||||
import { observer } from "mobx-react";
|
||||
import { Icon } from "../icon/icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import { initialNodeShellImage } from "../../../common/cluster-types";
|
||||
import Gutter from "../gutter/gutter";
|
||||
|
||||
|
@ -8,7 +8,7 @@ import { disposeOnUnmount, observer } from "mobx-react";
|
||||
import type { Cluster } from "../../../common/cluster/cluster";
|
||||
import { observable, reaction, makeObservable } from "mobx";
|
||||
import { Badge } from "../badge/badge";
|
||||
import { Icon } from "../icon/icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import { Notice } from "../extensions/notice";
|
||||
|
||||
export interface ShowMetricsSettingProps {
|
||||
|
@ -9,7 +9,7 @@ import React from "react";
|
||||
import { observer } from "mobx-react";
|
||||
import type { IComputedValue } from "mobx";
|
||||
import { computed, makeObservable } from "mobx";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import { SubHeader } from "../layout/sub-header";
|
||||
import { Table, TableCell, TableHead, TableRow } from "../table";
|
||||
import { cssNames, prevDefault } from "@k8slens/utilities";
|
||||
|
@ -6,7 +6,7 @@
|
||||
import styles from "./cluster-no-metrics.module.scss";
|
||||
|
||||
import React from "react";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import { cssNames } from "@k8slens/utilities";
|
||||
import type { NavigateToEntitySettings } from "../../../common/front-end-routing/routes/entity-settings/navigate-to-entity-settings.injectable";
|
||||
import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
|
@ -3,7 +3,7 @@
|
||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||
*/
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import React from "react";
|
||||
import type {
|
||||
SidebarItemRegistration } from "../layout/sidebar-items.injectable";
|
||||
|
@ -8,7 +8,7 @@ import styles from "./cluster-pie-charts.module.scss";
|
||||
import React from "react";
|
||||
import { observer } from "mobx-react";
|
||||
import { Spinner } from "../spinner";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import type { PieChartData } from "../chart";
|
||||
import { PieChart } from "../chart";
|
||||
import { ClusterNoMetrics } from "./cluster-no-metrics";
|
||||
|
@ -17,7 +17,7 @@ import { systemName } from "../../input/input_validators";
|
||||
import type { ResourceQuotaValues } from "@k8slens/kube-object";
|
||||
import type { ResourceQuotaApi } from "@k8slens/kube-api";
|
||||
import { Select } from "../../select";
|
||||
import { Icon } from "../../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import { Button } from "@k8slens/button";
|
||||
import { NamespaceSelect } from "../../namespaces/namespace-select";
|
||||
import { SubTitle } from "../../layout/sub-title";
|
||||
|
@ -19,7 +19,7 @@ import { reverseSecretTypeMap, SecretType } from "@k8slens/kube-object";
|
||||
import { SubTitle } from "../../layout/sub-title";
|
||||
import { NamespaceSelect } from "../../namespaces/namespace-select";
|
||||
import { Select } from "../../select";
|
||||
import { Icon } from "../../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import { base64, iter, object } from "@k8slens/utilities";
|
||||
import upperFirst from "lodash/upperFirst";
|
||||
import type { ShowDetails } from "../../kube-detail-params/show-details.injectable";
|
||||
|
@ -13,7 +13,7 @@ import { Input } from "../input";
|
||||
import { Button } from "@k8slens/button";
|
||||
import type { ShowNotification } from "../notifications";
|
||||
import { base64, toggle } from "@k8slens/utilities";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import type { KubeObjectDetailsProps } from "../kube-object-details";
|
||||
import { Secret } from "@k8slens/kube-object";
|
||||
import type { Logger } from "@k8slens/logger";
|
||||
|
@ -3,7 +3,7 @@
|
||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||
*/
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import React from "react";
|
||||
import type {
|
||||
SidebarItemRegistration } from "../layout/sidebar-items.injectable";
|
||||
|
@ -15,7 +15,7 @@ import type { ButtonProps } from "@k8slens/button";
|
||||
import { Button } from "@k8slens/button";
|
||||
import type { DialogProps } from "../dialog";
|
||||
import { Dialog } from "../dialog";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import type { ShowNotification } from "../notifications";
|
||||
import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
import confirmDialogStateInjectable from "./state.injectable";
|
||||
|
@ -12,7 +12,7 @@ import { Link } from "react-router-dom";
|
||||
import { iter, stopPropagation } from "@k8slens/utilities";
|
||||
import { KubeObjectListLayout } from "../kube-object-list-layout";
|
||||
import { Select } from "../select";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import { KubeObjectAge } from "../kube-object/age";
|
||||
import { TabLayout } from "../layout/tab-layout-2";
|
||||
import type { PageParam } from "../../navigation/page-param";
|
||||
|
@ -7,7 +7,7 @@ import { noop } from "lodash/fp";
|
||||
import { computed } from "mobx";
|
||||
import type { SidebarItemRegistration } from "../layout/sidebar-items.injectable";
|
||||
import { sidebarItemsInjectionToken } from "../layout/sidebar-items.injectable";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import React from "react";
|
||||
import crdListRouteInjectable from "../../../common/front-end-routing/routes/cluster/custom-resources/crd-list/crd-list-route.injectable";
|
||||
import sidebarItemsForDefinitionGroupsInjectable from "./sidebar-items-for-definition-groups.injectable";
|
||||
|
@ -12,7 +12,7 @@ import React from "react";
|
||||
import { Button } from "@k8slens/button";
|
||||
import type { ShowNotification } from "../notifications";
|
||||
import { Dialog } from "../dialog";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import { Select } from "../select";
|
||||
import { Checkbox } from "../checkbox";
|
||||
import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
|
@ -11,7 +11,7 @@ import { Dialog } from "../dialog";
|
||||
import { Wizard, WizardStep } from "../wizard";
|
||||
import type { ShowNotification } from "../notifications";
|
||||
import { Button } from "@k8slens/button";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import { clipboard } from "electron";
|
||||
import { kebabCase } from "lodash/fp";
|
||||
import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
|
@ -12,7 +12,7 @@ import { cssNames, prevDefault, isMiddleClick } from "@k8slens/utilities";
|
||||
import type { DockStore, DockTab as DockTabModel } from "./dock/store";
|
||||
import type { TabProps } from "../tabs";
|
||||
import { Tab } from "../tabs";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import { Menu, MenuItem } from "../menu";
|
||||
import { observable } from "mobx";
|
||||
import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
|
@ -7,7 +7,7 @@ import "./dock.scss";
|
||||
import React from "react";
|
||||
import { observer } from "mobx-react";
|
||||
import { cssNames } from "@k8slens/utilities";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import { MenuItem } from "../menu";
|
||||
import { MenuActions } from "../menu/menu-actions";
|
||||
import { ResizeDirection, ResizingAnchor } from "@k8slens/resizing-anchor";
|
||||
|
@ -11,7 +11,7 @@ import { disposeOnUnmount, observer } from "mobx-react";
|
||||
import type { StrictReactNode } from "@k8slens/utilities";
|
||||
import { cssNames } from "@k8slens/utilities";
|
||||
import { Button } from "@k8slens/button";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import { Spinner } from "../spinner";
|
||||
import type { DockStore, TabId } from "./dock/store";
|
||||
import type { ShowNotification } from "../notifications";
|
||||
|
@ -11,7 +11,7 @@ import { InfoPanel } from "../info-panel";
|
||||
import { Badge } from "../../badge";
|
||||
import { NamespaceSelect } from "../../namespaces/namespace-select";
|
||||
import { prevDefault } from "@k8slens/utilities";
|
||||
import { Icon } from "../../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import { Button } from "@k8slens/button";
|
||||
import { LogsDialog } from "../../dialog/logs-dialog";
|
||||
import { Select } from "../../select";
|
||||
|
@ -6,7 +6,7 @@
|
||||
import styles from "./download-logs-dropdown.module.scss";
|
||||
|
||||
import React, { useState } from "react";
|
||||
import { Icon } from "../../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import { MenuItem } from "../../menu";
|
||||
import { Dropdown } from "../../dropdown/dropdown";
|
||||
|
||||
|
@ -8,7 +8,7 @@ import "./search.scss";
|
||||
import React, { useEffect } from "react";
|
||||
import { observer } from "mobx-react";
|
||||
import { SearchInput } from "../../input";
|
||||
import { Icon } from "../../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import type { LogTabViewModel } from "./logs-view-model";
|
||||
|
||||
export interface PodLogSearchProps {
|
||||
|
@ -3,7 +3,7 @@
|
||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||
*/
|
||||
import React from "react";
|
||||
import { Icon } from "../../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
|
||||
export function ToBottom({ onClick }: { onClick: () => void }) {
|
||||
return (
|
||||
|
@ -9,7 +9,7 @@ import { disposeOnUnmount, observer } from "mobx-react";
|
||||
import { cssNames } from "@k8slens/utilities";
|
||||
import type { DockTabProps } from "../dock-tab";
|
||||
import { DockTab } from "../dock-tab";
|
||||
import { Icon } from "../../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import type { TerminalStore } from "./store";
|
||||
import type { DockStore } from "../dock/store";
|
||||
import { reaction } from "mobx";
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
import "./drawer-param-toggler.scss";
|
||||
import React from "react";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import type { StrictReactNode } from "@k8slens/utilities";
|
||||
import { cssNames } from "@k8slens/utilities";
|
||||
|
||||
|
@ -10,7 +10,7 @@ import { clipboard } from "electron";
|
||||
import { createPortal } from "react-dom";
|
||||
import type { StrictReactNode } from "@k8slens/utilities";
|
||||
import { cssNames, noop } from "@k8slens/utilities";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import type { AnimateName } from "../animate";
|
||||
import { Animate } from "../animate";
|
||||
import { ResizeDirection, ResizeGrowthDirection, ResizeSide, ResizingAnchor } from "@k8slens/resizing-anchor";
|
||||
|
@ -8,7 +8,7 @@ import "./editable-list.scss";
|
||||
import { observer } from "mobx-react";
|
||||
import React from "react";
|
||||
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import type { InputProps, InputValidator } from "../input";
|
||||
import { Input } from "../input";
|
||||
import type { StrictReactNode, SingleOrMany } from "@k8slens/utilities";
|
||||
|
@ -10,7 +10,7 @@ import type {
|
||||
import {
|
||||
sidebarItemsInjectionToken,
|
||||
} from "../layout/sidebar-items.injectable";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
|
||||
import eventsRouteInjectable from "../../../common/front-end-routing/routes/cluster/events/events-route.injectable";
|
||||
import routeIsActiveInjectable from "../../routes/route-is-active.injectable";
|
||||
|
@ -20,7 +20,7 @@ import { Tooltip } from "@k8slens/tooltip";
|
||||
import { Link } from "react-router-dom";
|
||||
import type { IClassName } from "@k8slens/utilities";
|
||||
import { cssNames, stopPropagation } from "@k8slens/utilities";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import type { ApiManager } from "../../../common/k8s-api/api-manager";
|
||||
import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
import navigateToEventsInjectable from "../../../common/front-end-routing/routes/cluster/events/navigate-to-events.injectable";
|
||||
|
@ -6,7 +6,7 @@
|
||||
import "./kube-event-icon.scss";
|
||||
|
||||
import React from "react";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import type { KubeObject, KubeEvent } from "@k8slens/kube-object";
|
||||
import { cssNames } from "@k8slens/utilities";
|
||||
import { KubeObjectAge } from "../kube-object/age";
|
||||
|
@ -7,7 +7,7 @@ import styles from "./install.module.scss";
|
||||
import React, { useEffect, useRef, useState } from "react";
|
||||
import { prevDefault } from "@k8slens/utilities";
|
||||
import { Button } from "@k8slens/button";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import { observer } from "mobx-react";
|
||||
import { Input, InputValidators } from "../input";
|
||||
import { SubTitle } from "../layout/sub-title";
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
import styles from "./installed-extensions.module.scss";
|
||||
import React from "react";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import { List } from "../list/list";
|
||||
import { MenuActions, MenuItem } from "../menu";
|
||||
import { Spinner } from "../spinner";
|
||||
|
@ -8,7 +8,7 @@ import "./file-picker.scss";
|
||||
import React from "react";
|
||||
import fse from "fs-extra";
|
||||
import path from "path";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import { Spinner } from "../spinner";
|
||||
import { observable, makeObservable } from "mobx";
|
||||
import { observer } from "mobx-react";
|
||||
|
@ -9,7 +9,7 @@ import { cssNames } from "@k8slens/utilities";
|
||||
import type { MenuActionsProps } from "../menu/menu-actions";
|
||||
import { MenuActions } from "../menu/menu-actions";
|
||||
import { MenuItem } from "../menu";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
import createUpgradeChartTabInjectable from "../dock/upgrade-chart/create-upgrade-chart-tab.injectable";
|
||||
import deleteReleaseInjectable from "./delete-release/delete-release.injectable";
|
||||
|
@ -10,7 +10,7 @@ import type {
|
||||
import {
|
||||
sidebarItemsInjectionToken,
|
||||
} from "../layout/sidebar-items.injectable";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import { noop } from "lodash/fp";
|
||||
|
||||
export const helmSidebarItemId = "helm";
|
||||
|
@ -13,7 +13,7 @@ import { observer } from "mobx-react";
|
||||
import type { CatalogCategoryRegistry, CatalogEntity, CatalogEntityContextMenu } from "../../../common/catalog";
|
||||
import type { IClassName } from "@k8slens/utilities";
|
||||
import { cssNames } from "@k8slens/utilities";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import { HotbarIcon } from "./hotbar-icon";
|
||||
import { LensKubernetesClusterStatus } from "../../../common/catalog-entities/kubernetes-cluster";
|
||||
import type { VisitEntityContextMenu } from "../../../common/catalog/visit-entity-context-menu.injectable";
|
||||
|
@ -13,7 +13,7 @@ import { Menu, MenuItem } from "../menu";
|
||||
import { observer } from "mobx-react";
|
||||
import type { AvatarProps } from "../avatar";
|
||||
import { Avatar } from "../avatar";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import { Tooltip } from "@k8slens/tooltip";
|
||||
import type { NormalizeCatalogEntityContextMenu } from "../../catalog/normalize-menu-item.injectable";
|
||||
import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
import styles from "./hotbar-selector.module.scss";
|
||||
import React, { useRef, useState } from "react";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import { Badge } from "../badge";
|
||||
import { HotbarSwitchCommand } from "./hotbar-switch-command";
|
||||
import { Tooltip, TooltipPosition } from "@k8slens/tooltip";
|
||||
|
@ -1,6 +0,0 @@
|
||||
/**
|
||||
* Copyright (c) OpenLens Authors. All rights reserved.
|
||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||
*/
|
||||
|
||||
export * from "./icon";
|
@ -9,7 +9,7 @@ import type { DOMAttributes, InputHTMLAttributes, TextareaHTMLAttributes } from
|
||||
import React from "react";
|
||||
import type { StrictReactNode, SingleOrMany } from "@k8slens/utilities";
|
||||
import { debouncePromise, isPromiseSettledFulfilled, cssNames } from "@k8slens/utilities";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import type { TooltipProps } from "@k8slens/tooltip";
|
||||
import { Tooltip } from "@k8slens/tooltip";
|
||||
import * as Validators from "./input_validators";
|
||||
|
@ -8,7 +8,7 @@ import "./search-input.scss";
|
||||
import React, { createRef } from "react";
|
||||
import { observer } from "mobx-react";
|
||||
import { cssNames } from "@k8slens/utilities";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import type { InputProps } from "./input";
|
||||
import { Input } from "./input";
|
||||
import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
|
@ -4,8 +4,8 @@
|
||||
*/
|
||||
|
||||
import React from "react";
|
||||
import type { IconProps } from "../icon";
|
||||
import { Icon } from "../icon";
|
||||
import type { IconProps } from "@k8slens/icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import { FilterType } from "./page-filters/store";
|
||||
|
||||
export interface FilterIconProps extends Partial<IconProps> {
|
||||
|
@ -10,7 +10,7 @@ import { Badge } from "../../badge";
|
||||
import { cssNames } from "@k8slens/utilities";
|
||||
import type { Filter, PageFiltersStore } from "./store";
|
||||
import { FilterIcon } from "../filter-icon";
|
||||
import { Icon } from "../../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import type { PageParam } from "../../../navigation/page-param";
|
||||
import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
import pageFiltersStoreInjectable from "./store.injectable";
|
||||
|
@ -16,7 +16,7 @@ import { ItemListLayout } from "../item-object-list/list-layout";
|
||||
import { KubeObjectMenu } from "../kube-object-menu";
|
||||
import { NamespaceSelectFilter } from "../namespaces/namespace-select-filter";
|
||||
import { ResourceKindMap, ResourceNames } from "../../utils/rbac";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import { TooltipPosition } from "@k8slens/tooltip";
|
||||
import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
import clusterFrameContextForNamespacedResourcesInjectable from "../../cluster-frame-context/for-namespaced-resources.injectable";
|
||||
|
@ -24,7 +24,7 @@ import type { IComputedValue } from "mobx";
|
||||
import { observable, runInAction } from "mobx";
|
||||
import type { WithConfirmation } from "../confirm-dialog/with-confirm.injectable";
|
||||
import type { Navigate } from "../../navigation/navigate.injectable";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import navigateInjectable from "../../navigation/navigate.injectable";
|
||||
import withConfirmationInjectable from "../confirm-dialog/with-confirm.injectable";
|
||||
import { observer } from "mobx-react";
|
||||
|
@ -6,7 +6,7 @@
|
||||
import "./kube-object-status-icon.scss";
|
||||
|
||||
import React from "react";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import { cssNames, formatDuration, getOrInsert, isDefined } from "@k8slens/utilities";
|
||||
import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
import kubeObjectStatusTextsForObjectInjectable from "./kube-object-status-texts-for-object.injectable";
|
||||
|
@ -12,7 +12,7 @@ import { cssNames } from "@k8slens/utilities";
|
||||
import { Button } from "@k8slens/button";
|
||||
import type { DialogProps } from "../dialog";
|
||||
import { Dialog } from "../dialog";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import type { ShowNotification } from "../notifications";
|
||||
import { Wizard, WizardStep } from "../wizard";
|
||||
import { MonacoEditor } from "../monaco-editor";
|
||||
|
@ -7,7 +7,7 @@ import styles from "./close-button.module.scss";
|
||||
|
||||
import type { HTMLAttributes } from "react";
|
||||
import React from "react";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
|
||||
export interface CloseButtonProps extends HTMLAttributes<HTMLDivElement> {
|
||||
}
|
||||
|
@ -3,7 +3,7 @@
|
||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||
*/
|
||||
|
||||
import type { IconProps } from "../icon";
|
||||
import type { IconProps } from "@k8slens/icon";
|
||||
import type React from "react";
|
||||
import type { PageTarget } from "../../routes/page-registration";
|
||||
import type { IComputedValue } from "mobx";
|
||||
|
@ -10,7 +10,7 @@ import { broadcastMessage } from "../../../common/ipc";
|
||||
import type { CatalogEntity, CatalogEntityContextMenu } from "../../api/catalog-entity";
|
||||
import { IpcRendererNavigationEvents } from "../../../common/ipc/navigation-events";
|
||||
import { Avatar } from "../avatar";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import { Menu, MenuItem } from "../menu";
|
||||
import { Tooltip } from "@k8slens/tooltip";
|
||||
import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
|
@ -10,7 +10,7 @@ import { computed, makeObservable } from "mobx";
|
||||
import { cssNames } from "@k8slens/utilities";
|
||||
import { observer } from "mobx-react";
|
||||
import { NavLink } from "react-router-dom";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
import type { SidebarStorageState } from "./sidebar-storage/sidebar-storage.injectable";
|
||||
import sidebarStorageInjectable from "./sidebar-storage/sidebar-storage.injectable";
|
||||
|
@ -5,7 +5,7 @@
|
||||
import React from "react";
|
||||
import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
import type { IComputedValue } from "mobx";
|
||||
import { Icon } from "../../../../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import topBarPrevEnabledInjectable from "./prev-enabled.injectable";
|
||||
import goBackInjectable from "./go-back/go-back.injectable";
|
||||
import { observer } from "mobx-react";
|
||||
|
@ -5,7 +5,7 @@
|
||||
import React from "react";
|
||||
import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
import type { IComputedValue } from "mobx";
|
||||
import { Icon } from "../../../../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import topBarNextEnabledInjectable from "./next-enabled.injectable";
|
||||
import goForwardInjectable from "./go-forward/go-forward.injectable";
|
||||
import { observer } from "mobx-react";
|
||||
|
@ -5,7 +5,7 @@
|
||||
import React from "react";
|
||||
import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
import type { IComputedValue } from "mobx";
|
||||
import { Icon } from "../../../../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import routeIsActiveInjectable from "../../../../../routes/route-is-active.injectable";
|
||||
import { observer } from "mobx-react";
|
||||
import welcomeRouteInjectable from "../../../../../../common/front-end-routing/routes/welcome/welcome-route.injectable";
|
||||
|
@ -10,8 +10,8 @@ import { observable, makeObservable, reaction } from "mobx";
|
||||
import { disposeOnUnmount, observer } from "mobx-react";
|
||||
import type { StrictReactNode } from "@k8slens/utilities";
|
||||
import { cssNames } from "@k8slens/utilities";
|
||||
import type { IconProps } from "../icon";
|
||||
import { Icon } from "../icon";
|
||||
import type { IconProps } from "@k8slens/icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import type { MenuProps } from "./menu";
|
||||
import { Menu, MenuItem } from "./menu";
|
||||
import isString from "lodash/isString";
|
||||
|
@ -11,8 +11,8 @@ import { createPortal } from "react-dom";
|
||||
import type { StrictReactNode } from "@k8slens/utilities";
|
||||
import { cssNames, noop } from "@k8slens/utilities";
|
||||
import { Animate } from "../animate";
|
||||
import type { IconProps } from "../icon";
|
||||
import { Icon } from "../icon";
|
||||
import type { IconProps } from "@k8slens/icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import isEqual from "lodash/isEqual";
|
||||
import type { RequestAnimationFrame } from "../animate/request-animation-frame.injectable";
|
||||
import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
|
@ -7,7 +7,7 @@ import type { IComputedValue } from "mobx";
|
||||
import { observable, action, computed, comparer } from "mobx";
|
||||
import type { NamespaceStore } from "../store";
|
||||
import type { ActionMeta, MultiValue } from "react-select";
|
||||
import { Icon } from "../../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import type { SelectOption } from "../../select";
|
||||
import { observableCrate } from "@k8slens/utilities";
|
||||
import type { IsMultiSelectionKey } from "./is-selection-key.injectable";
|
||||
|
@ -11,7 +11,7 @@ import { observer } from "mobx-react";
|
||||
import type { SelectProps } from "../select";
|
||||
import { Select } from "../select";
|
||||
import { cssNames } from "@k8slens/utilities";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
import clusterFrameContextForNamespacedResourcesInjectable from "../../cluster-frame-context/for-namespaced-resources.injectable";
|
||||
import type { ClusterContext } from "../../cluster-frame-context/cluster-frame-context";
|
||||
|
@ -9,7 +9,7 @@ import type {
|
||||
import {
|
||||
sidebarItemsInjectionToken,
|
||||
} from "../layout/sidebar-items.injectable";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import React from "react";
|
||||
import namespacesRouteInjectable from "../../../common/front-end-routing/routes/cluster/namespaces/namespaces-route.injectable";
|
||||
import routeIsActiveInjectable from "../../routes/route-is-active.injectable";
|
||||
|
@ -13,7 +13,7 @@ import { ingressClassSetDefaultInjectable } from "./ingress-class-set-default.in
|
||||
import { MenuItem } from "../menu";
|
||||
import type { IngressClass } from "@k8slens/kube-object";
|
||||
import type { KubeObjectMenuProps } from "../kube-object-menu";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import hideDetailsInjectable from "../kube-detail-params/hide-details.injectable";
|
||||
|
||||
export interface IngressClassMenuProps extends KubeObjectMenuProps<IngressClass> {
|
||||
|
@ -14,7 +14,7 @@ import type { IngressClassStore } from "./ingress-class-store";
|
||||
import ingressClassStoreInjectable from "./ingress-class-store.injectable";
|
||||
import type { IngressClass } from "@k8slens/kube-object";
|
||||
import { cssNames } from "@k8slens/utilities";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
|
||||
enum columnId {
|
||||
name = "name",
|
||||
|
@ -9,7 +9,7 @@ import type { PortForwardItem, PortForwardStore } from "../../port-forward";
|
||||
import type { MenuActionsProps } from "../menu/menu-actions";
|
||||
import { MenuActions } from "../menu/menu-actions";
|
||||
import { MenuItem } from "../menu";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import type { ShowNotification } from "../notifications";
|
||||
import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
import portForwardDialogModelInjectable from "../../port-forward/port-forward-dialog-model/port-forward-dialog-model.injectable";
|
||||
|
@ -9,7 +9,7 @@ import type {
|
||||
import {
|
||||
sidebarItemsInjectionToken,
|
||||
} from "../layout/sidebar-items.injectable";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import React from "react";
|
||||
import { noop } from "lodash/fp";
|
||||
|
||||
|
@ -9,7 +9,7 @@ import type {
|
||||
import {
|
||||
sidebarItemsInjectionToken,
|
||||
} from "../layout/sidebar-items.injectable";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import React from "react";
|
||||
|
||||
import nodesRouteInjectable from "../../../common/front-end-routing/routes/cluster/nodes/nodes-route.injectable";
|
||||
|
@ -13,7 +13,7 @@ import type { Disposer } from "@k8slens/utilities";
|
||||
import { cssNames, prevDefault } from "@k8slens/utilities";
|
||||
import type { CreateNotificationOptions, Notification, NotificationMessage, NotificationsStore } from "./notifications.store";
|
||||
import { Animate } from "../animate";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
import notificationsStoreInjectable from "./notifications-store.injectable";
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
*/
|
||||
|
||||
import React from "react";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
|
||||
export function NoMetrics() {
|
||||
return (
|
||||
|
@ -9,7 +9,7 @@ import type {
|
||||
import {
|
||||
sidebarItemsInjectionToken,
|
||||
} from "../layout/sidebar-items.injectable";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import React from "react";
|
||||
import { noop } from "lodash/fp";
|
||||
|
||||
|
@ -7,7 +7,7 @@ import styles from "./react-table.module.scss";
|
||||
import React, { useCallback, useMemo } from "react";
|
||||
import type { Row, UseTableOptions } from "react-table";
|
||||
import { useFlexLayout, useSortBy, useTable } from "react-table";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import { cssNames } from "@k8slens/utilities";
|
||||
|
||||
export interface ReactTableProps<Data extends object> extends UseTableOptions<Data> {
|
||||
|
@ -7,7 +7,7 @@ import "./table-cell.scss";
|
||||
|
||||
import React from "react";
|
||||
import { cssNames } from "@k8slens/utilities";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import { Checkbox } from "../checkbox";
|
||||
import autoBindReact from "auto-bind/react";
|
||||
import type { TableCellProps } from "@k8slens/list-layout";
|
||||
|
@ -8,7 +8,7 @@ import type { DOMAttributes } from "react";
|
||||
import React from "react";
|
||||
import type { StrictReactNode } from "@k8slens/utilities";
|
||||
import { cssNames } from "@k8slens/utilities";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import autoBindReact from "auto-bind/react";
|
||||
|
||||
const TabsContext = React.createContext<TabsContextValue<unknown>>({});
|
||||
|
@ -8,7 +8,7 @@ import type { MouseEventHandler } from "react";
|
||||
import React, { useState } from "react";
|
||||
import type { StrictReactNode } from "@k8slens/utilities";
|
||||
import { cssNames } from "@k8slens/utilities";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
|
||||
export interface TreeViewClasses {
|
||||
root?: string;
|
||||
|
@ -14,7 +14,7 @@ import type { ClusterRole, ServiceAccount, Subject } from "@k8slens/kube-object"
|
||||
import type { DialogProps } from "../../../dialog";
|
||||
import { Dialog } from "../../../dialog";
|
||||
import { EditableList } from "../../../editable-list";
|
||||
import { Icon } from "../../../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import { SubTitle } from "../../../layout/sub-title";
|
||||
import { onMultiSelectFor, Select } from "../../../select";
|
||||
import { Wizard, WizardStep } from "../../../wizard";
|
||||
|
@ -14,7 +14,7 @@ import type { ClusterRole, Role, ServiceAccount, Subject } from "@k8slens/kube-o
|
||||
import type { DialogProps } from "../../../dialog";
|
||||
import { Dialog } from "../../../dialog";
|
||||
import { EditableList } from "../../../editable-list";
|
||||
import { Icon } from "../../../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import { SubTitle } from "../../../layout/sub-title";
|
||||
import type { SelectOption } from "../../../select";
|
||||
import { onMultiSelectFor, Select } from "../../../select";
|
||||
|
@ -12,7 +12,7 @@ import { Link } from "react-router-dom";
|
||||
|
||||
import type { Secret, ServiceAccount } from "@k8slens/kube-object";
|
||||
import { DrawerItem, DrawerTitle } from "../../drawer";
|
||||
import { Icon } from "../../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import type { KubeObjectDetailsProps } from "../../kube-object-details";
|
||||
import { Spinner } from "../../spinner";
|
||||
import { ServiceAccountsSecret } from "./secret";
|
||||
|
@ -11,7 +11,7 @@ import React from "react";
|
||||
import type { Secret } from "@k8slens/kube-object";
|
||||
import type { StrictReactNode } from "@k8slens/utilities";
|
||||
import { prevDefault } from "@k8slens/utilities";
|
||||
import { Icon } from "../../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
|
||||
export interface ServiceAccountsSecretProps {
|
||||
secret: Secret | string;
|
||||
|
@ -7,7 +7,7 @@ import React from "react";
|
||||
import type { KubeObjectMenuProps } from "../../kube-object-menu";
|
||||
import type { ServiceAccount } from "@k8slens/kube-object";
|
||||
import { MenuItem } from "../../menu";
|
||||
import { Icon } from "../../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import type { OpenServiceAccountKubeConfigDialog } from "../../kubeconfig-dialog/open-service-account-kube-config-dialog.injectable";
|
||||
import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
import openServiceAccountKubeConfigDialogInjectable from "../../kubeconfig-dialog/open-service-account-kube-config-dialog.injectable";
|
||||
|
@ -9,7 +9,7 @@ import type {
|
||||
import {
|
||||
sidebarItemsInjectionToken,
|
||||
} from "../layout/sidebar-items.injectable";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import React from "react";
|
||||
import { noop } from "lodash/fp";
|
||||
|
||||
|
@ -9,7 +9,7 @@ import { observer } from "mobx-react";
|
||||
import type { IComputedValue } from "mobx";
|
||||
import type { CarouselProps } from "react-material-ui-carousel";
|
||||
import LegacyCarousel from "react-material-ui-carousel";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import { forumsUrl } from "../../../common/vars";
|
||||
import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
import welcomeMenuItemsInjectable from "./welcome-menu-items/welcome-menu-items.injectable";
|
||||
|
@ -6,7 +6,7 @@ import React from "react";
|
||||
import type { KubeObjectMenuProps } from "../kube-object-menu";
|
||||
import type { CronJob } from "@k8slens/kube-object";
|
||||
import { MenuItem } from "../menu";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import type { OpenConfirmDialog } from "../confirm-dialog/open.injectable";
|
||||
import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
import openConfirmDialogInjectable from "../confirm-dialog/open.injectable";
|
||||
|
@ -6,7 +6,7 @@ import React from "react";
|
||||
import type { KubeObjectMenuProps } from "../kube-object-menu";
|
||||
import type { DaemonSet } from "@k8slens/kube-object";
|
||||
import { MenuItem } from "../menu";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
import daemonSetApiInjectable from "../../../common/k8s-api/endpoints/daemon-set.api.injectable";
|
||||
import type { OpenConfirmDialog } from "../confirm-dialog/open.injectable";
|
||||
|
@ -6,7 +6,7 @@ import React from "react";
|
||||
import type { KubeObjectMenuProps } from "../kube-object-menu";
|
||||
import type { Deployment } from "@k8slens/kube-object";
|
||||
import { MenuItem } from "../menu";
|
||||
import { Icon } from "../icon";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import type { OpenDeploymentScaleDialog } from "./scale/open.injectable";
|
||||
import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
import deploymentApiInjectable from "../../../common/k8s-api/endpoints/deployment.api.injectable";
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user