mirror of
https://github.com/lensapp/lens.git
synced 2024-11-28 11:53:41 +03:00
Merge branch 'master' into add-entity-settings-visibility
This commit is contained in:
commit
f91e360274
@ -6,6 +6,7 @@ import "@k8slens/resizing-anchor/styles";
|
||||
import "@k8slens/icon/styles";
|
||||
import "@k8slens/animate/styles";
|
||||
import "@k8slens/notifications/styles";
|
||||
import "@k8slens/spinner/styles";
|
||||
|
||||
import { runInAction } from "mobx";
|
||||
import {
|
||||
|
17
package-lock.json
generated
17
package-lock.json
generated
@ -3875,6 +3875,10 @@
|
||||
"resolved": "packages/semver",
|
||||
"link": true
|
||||
},
|
||||
"node_modules/@k8slens/spinner": {
|
||||
"resolved": "packages/ui-components/spinner",
|
||||
"link": true
|
||||
},
|
||||
"node_modules/@k8slens/startable-stoppable": {
|
||||
"resolved": "packages/utility-features/startable-stoppable",
|
||||
"link": true
|
||||
@ -35776,6 +35780,19 @@
|
||||
"react-dom": "^17.0.2"
|
||||
}
|
||||
},
|
||||
"packages/ui-components/spinner": {
|
||||
"name": "@k8slens/spinner",
|
||||
"version": "1.0.0-alpha.0",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"@k8slens/eslint-config": "^6.5.0",
|
||||
"@k8slens/webpack": "^6.5.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@k8slens/utilities": "^1.0.0-alpha.1",
|
||||
"react": "^17.0.2"
|
||||
}
|
||||
},
|
||||
"packages/ui-components/tooltip": {
|
||||
"name": "@k8slens/tooltip",
|
||||
"version": "1.0.0",
|
||||
|
@ -236,6 +236,7 @@
|
||||
"@k8slens/resource-templates": "^1.0.0-alpha.1",
|
||||
"@k8slens/routing": "^1.0.0-alpha.5",
|
||||
"@k8slens/run-many": "^1.0.0-alpha.1",
|
||||
"@k8slens/spinner": "^1.0.0",
|
||||
"@k8slens/startable-stoppable": "^1.0.0-alpha.1",
|
||||
"@k8slens/tooltip": "^1.0.0-alpha.5",
|
||||
"@k8slens/utilities": "^1.0.0-alpha.1",
|
||||
|
@ -92,7 +92,7 @@ export const Notifications = {
|
||||
shortInfo: asLegacyGlobalFunctionForExtensionApi(showShortInfoNotificationInjectable),
|
||||
};
|
||||
|
||||
export * from "../../renderer/components/spinner";
|
||||
export * from "@k8slens/spinner";
|
||||
export * from "../../renderer/components/stepper";
|
||||
export * from "../../renderer/components/wizard";
|
||||
export * from "../../renderer/components/workloads-pods/pod-details-list";
|
||||
|
@ -11,7 +11,7 @@ import { observer } from "mobx-react";
|
||||
import activeHelmRepositoriesInjectable from "./active-helm-repositories.injectable";
|
||||
import type { IAsyncComputed } from "@ogre-tools/injectable-react";
|
||||
import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
import { Spinner } from "../../../../../renderer/components/spinner";
|
||||
import { Spinner } from "@k8slens/spinner";
|
||||
import type { HelmRepo } from "../../../../../common/helm/helm-repo";
|
||||
import { RemovableItem } from "../../../../preferences/renderer/removable-item/removable-item";
|
||||
import removeHelmRepositoryInjectable from "./remove-helm-repository.injectable";
|
||||
|
@ -10,7 +10,7 @@ import { Notice } from "../../../../../../renderer/components/extensions/notice"
|
||||
import { iter, tuple } from "@k8slens/utilities";
|
||||
import { SubTitle } from "../../../../../../renderer/components/layout/sub-title";
|
||||
import { PathPicker } from "../../../../../../renderer/components/path-picker/path-picker";
|
||||
import { Spinner } from "../../../../../../renderer/components/spinner";
|
||||
import { Spinner } from "@k8slens/spinner";
|
||||
import { RemovableItem } from "../../../removable-item/removable-item";
|
||||
import isWindowsInjectable from "../../../../../../common/vars/is-windows.injectable";
|
||||
import { loggerInjectionToken } from "@k8slens/logger";
|
||||
|
@ -14,7 +14,7 @@ import type { IClassName } from "@k8slens/utilities";
|
||||
import { hasTypedProperty, isObject, isString, cssNames } from "@k8slens/utilities";
|
||||
import { Button } from "@k8slens/button";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import { Spinner } from "../spinner";
|
||||
import { Spinner } from "@k8slens/spinner";
|
||||
import type { KubeAuthUpdate } from "../../../common/cluster-types";
|
||||
import type { CatalogEntityRegistry } from "../../api/catalog/entity/registry";
|
||||
import type { NavigateToEntitySettings } from "../../../common/front-end-routing/routes/entity-settings/navigate-to-entity-settings.injectable";
|
||||
|
@ -22,7 +22,7 @@ import type { OpenPathPickingDialog } from "../../../features/path-picking-dialo
|
||||
import openPathPickingDialogInjectable from "../../../features/path-picking-dialog/renderer/pick-paths.injectable";
|
||||
import type { LocalTerminalSettingPresenter } from "./local-terminal-setting-presenter.injectable";
|
||||
import localTerminalSettingPresenterInjectable from "./local-terminal-setting-presenter.injectable";
|
||||
import { Spinner } from "../spinner";
|
||||
import { Spinner } from "@k8slens/spinner";
|
||||
import { action, runInAction } from "mobx";
|
||||
|
||||
export interface ClusterLocalTerminalSettingProps {
|
||||
|
@ -11,7 +11,7 @@ import type { SelectOption } from "../select";
|
||||
import { Select } from "../select";
|
||||
import { Input } from "../input";
|
||||
import { observable, computed, autorun, makeObservable } from "mobx";
|
||||
import { Spinner } from "../spinner";
|
||||
import { Spinner } from "@k8slens/spinner";
|
||||
import type { MetricProviderInfo, RequestMetricsProviders } from "../../../common/k8s-api/endpoints/metrics.api/request-providers.injectable";
|
||||
import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
import requestMetricsProvidersInjectable from "../../../common/k8s-api/endpoints/metrics.api/request-providers.injectable";
|
||||
|
@ -13,7 +13,7 @@ import { Icon } from "@k8slens/icon";
|
||||
import { SubHeader } from "../layout/sub-header";
|
||||
import { Table, TableCell, TableHead, TableRow } from "../table";
|
||||
import { cssNames, prevDefault } from "@k8slens/utilities";
|
||||
import { Spinner } from "../spinner";
|
||||
import { Spinner } from "@k8slens/spinner";
|
||||
import type { ApiManager } from "../../../common/k8s-api/api-manager";
|
||||
import { KubeObjectAge } from "../kube-object/age";
|
||||
import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
|
@ -10,7 +10,7 @@ import { observer } from "mobx-react";
|
||||
import type { ChartOptions, ChartPoint } from "chart.js";
|
||||
import { BarChart } from "../chart";
|
||||
import { bytesToUnits, cssNames } from "@k8slens/utilities";
|
||||
import { Spinner } from "../spinner";
|
||||
import { Spinner } from "@k8slens/spinner";
|
||||
import { ZebraStripesPlugin } from "../chart/zebra-stripes.plugin";
|
||||
import { ClusterNoMetrics } from "./cluster-no-metrics";
|
||||
import { ClusterMetricSwitchers } from "./cluster-metric-switchers";
|
||||
|
@ -12,7 +12,7 @@ import type { NodeStore } from "../nodes/store";
|
||||
import type { PodStore } from "../workloads-pods/store";
|
||||
import { byOrderNumber } from "@k8slens/utilities";
|
||||
import { TabLayout } from "../layout/tab-layout";
|
||||
import { Spinner } from "../spinner";
|
||||
import { Spinner } from "@k8slens/spinner";
|
||||
import { ClusterIssues } from "./cluster-issues";
|
||||
import { ClusterMetricsResourceType } from "../../../common/cluster-types";
|
||||
import type { EventStore } from "../events/store";
|
||||
|
@ -7,7 +7,7 @@ import styles from "./cluster-pie-charts.module.scss";
|
||||
|
||||
import React from "react";
|
||||
import { observer } from "mobx-react";
|
||||
import { Spinner } from "../spinner";
|
||||
import { Spinner } from "@k8slens/spinner";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import type { PieChartData } from "../chart";
|
||||
import { PieChart } from "../chart";
|
||||
|
@ -20,7 +20,7 @@ import { isObject, prevDefault } from "@k8slens/utilities";
|
||||
import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
import createResourceTabStoreInjectable from "./store.injectable";
|
||||
import createResourceTemplatesInjectable from "./create-resource-templates.injectable";
|
||||
import { Spinner } from "../../spinner";
|
||||
import { Spinner } from "@k8slens/spinner";
|
||||
import type { GroupBase } from "react-select";
|
||||
import type { Navigate } from "../../../navigation/navigate.injectable";
|
||||
import type { GetDetailsUrl } from "../../kube-detail-params/get-details-url.injectable";
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
import React from "react";
|
||||
import { observer } from "mobx-react";
|
||||
import { Spinner } from "../../spinner";
|
||||
import { Spinner } from "@k8slens/spinner";
|
||||
import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
import type { EditResourceModel } from "./edit-resource-model/edit-resource-model.injectable";
|
||||
import editResourceModelInjectable from "./edit-resource-model/edit-resource-model.injectable";
|
||||
|
@ -12,7 +12,7 @@ import type { StrictReactNode } from "@k8slens/utilities";
|
||||
import { cssNames } from "@k8slens/utilities";
|
||||
import { Button } from "@k8slens/button";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import { Spinner } from "../spinner";
|
||||
import { Spinner } from "@k8slens/spinner";
|
||||
import type { DockStore, TabId } from "./dock/store";
|
||||
import type { ShowNotification, ShowCheckedErrorNotification } from "@k8slens/notifications";
|
||||
import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
|
@ -20,7 +20,7 @@ import { EditorPanel } from "../editor-panel";
|
||||
import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
import type { InstallChartModel } from "./install-chart-model.injectable";
|
||||
import installChartModelInjectable from "./install-chart-model.injectable";
|
||||
import { Spinner } from "../../spinner";
|
||||
import { Spinner } from "@k8slens/spinner";
|
||||
|
||||
export interface InstallChartProps {
|
||||
tabId: string;
|
||||
|
@ -20,7 +20,7 @@ import type { VirtualListRef } from "../../virtual-list";
|
||||
import { VirtualList } from "../../virtual-list";
|
||||
import { ToBottom } from "./to-bottom";
|
||||
import type { LogTabViewModel } from "../logs/logs-view-model";
|
||||
import { Spinner } from "../../spinner";
|
||||
import { Spinner } from "@k8slens/spinner";
|
||||
import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
import autoBindReact from "auto-bind/react";
|
||||
import type { UserPreferencesState } from "../../../../features/user-preferences/common/state.injectable";
|
||||
|
@ -10,7 +10,7 @@ import { observer } from "mobx-react";
|
||||
import { cssNames } from "@k8slens/utilities";
|
||||
import type { DockTab } from "../dock/store";
|
||||
import { InfoPanel } from "../info-panel";
|
||||
import { Spinner } from "../../spinner";
|
||||
import { Spinner } from "@k8slens/spinner";
|
||||
import { Badge } from "../../badge";
|
||||
import { EditorPanel } from "../editor-panel";
|
||||
import type { SelectOption } from "../../select";
|
||||
|
@ -8,7 +8,7 @@ import React from "react";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import { List } from "../list/list";
|
||||
import { MenuActions, MenuItem } from "../menu";
|
||||
import { Spinner } from "../spinner";
|
||||
import { Spinner } from "@k8slens/spinner";
|
||||
import { cssNames } from "@k8slens/utilities";
|
||||
import { observer } from "mobx-react";
|
||||
import type { Row } from "react-table";
|
||||
|
@ -9,7 +9,7 @@ import React from "react";
|
||||
import fse from "fs-extra";
|
||||
import path from "path";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import { Spinner } from "../spinner";
|
||||
import { Spinner } from "@k8slens/spinner";
|
||||
import { observable, makeObservable } from "mobx";
|
||||
import { observer } from "mobx-react";
|
||||
import _ from "lodash";
|
||||
|
@ -11,7 +11,7 @@ import { observer } from "mobx-react";
|
||||
import { Drawer, DrawerItem } from "../drawer";
|
||||
import { stopPropagation } from "@k8slens/utilities";
|
||||
import { MarkdownViewer } from "../markdown-viewer";
|
||||
import { Spinner } from "../spinner";
|
||||
import { Spinner } from "@k8slens/spinner";
|
||||
import { Button } from "@k8slens/button";
|
||||
import { Select } from "../select";
|
||||
import { Badge } from "../badge";
|
||||
|
@ -21,7 +21,7 @@ import { SubTitle } from "../../layout/sub-title";
|
||||
import { Table, TableCell, TableHead, TableRow } from "../../table";
|
||||
import { Checkbox } from "../../checkbox";
|
||||
import { MonacoEditor } from "../../monaco-editor";
|
||||
import { Spinner } from "../../spinner";
|
||||
import { Spinner } from "@k8slens/spinner";
|
||||
import type { TargetHelmRelease } from "./target-helm-release.injectable";
|
||||
|
||||
interface ReleaseDetailsContentProps {
|
||||
|
@ -17,7 +17,7 @@ import { cssNames, isDefined, isReactNode, noop, prevDefault, stopPropagation }
|
||||
import type { AddRemoveButtonsProps } from "../add-remove-buttons";
|
||||
import { AddRemoveButtons } from "../add-remove-buttons";
|
||||
import { NoItems } from "../no-items";
|
||||
import { Spinner } from "../spinner";
|
||||
import { Spinner } from "@k8slens/spinner";
|
||||
import type { ItemObject, TableCellProps } from "@k8slens/list-layout";
|
||||
import type { Filter, PageFiltersStore } from "./page-filters/store";
|
||||
import type { LensTheme } from "../../themes/lens-theme";
|
||||
|
@ -10,7 +10,7 @@ import { observer } from "mobx-react";
|
||||
import type { IComputedValue } from "mobx";
|
||||
import { Drawer } from "../drawer";
|
||||
import type { KubeObject } from "@k8slens/kube-object";
|
||||
import { Spinner } from "../spinner";
|
||||
import { Spinner } from "@k8slens/spinner";
|
||||
import { KubeObjectMenu } from "../kube-object-menu";
|
||||
import type { HideDetails } from "../kube-detail-params/hide-details.injectable";
|
||||
import type { IAsyncComputed } from "@ogre-tools/injectable-react";
|
||||
|
@ -13,7 +13,7 @@ import { cssNames } from "@k8slens/utilities";
|
||||
import { Namespace } from "@k8slens/kube-object";
|
||||
import type { KubeObjectDetailsProps } from "../kube-object-details";
|
||||
import { Link } from "react-router-dom";
|
||||
import { Spinner } from "../spinner";
|
||||
import { Spinner } from "@k8slens/spinner";
|
||||
import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
|
||||
import type { SubscribeStores } from "../../kube-watch-api/kube-watch-api";
|
||||
|
@ -14,7 +14,7 @@ import type { ShowNotification } from "@k8slens/notifications";
|
||||
import { Button } from "@k8slens/button";
|
||||
import type { ForwardedPort, PortForwardStore } from "../../port-forward";
|
||||
import { predictProtocol } from "../../port-forward";
|
||||
import { Spinner } from "../spinner";
|
||||
import { Spinner } from "@k8slens/spinner";
|
||||
import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
import portForwardStoreInjectable from "../../port-forward/port-forward-store/port-forward-store.injectable";
|
||||
import portForwardDialogModelInjectable from "../../port-forward/port-forward-dialog-model/port-forward-dialog-model.injectable";
|
||||
|
@ -9,7 +9,7 @@ import React, { createContext, useState } from "react";
|
||||
import { Radio, RadioGroup } from "../radio";
|
||||
import type { KubeObject } from "@k8slens/kube-object";
|
||||
import { cssNames } from "@k8slens/utilities";
|
||||
import { Spinner } from "../spinner";
|
||||
import { Spinner } from "@k8slens/spinner";
|
||||
import type { MetricsTab } from "../chart/options";
|
||||
import type { MetricData } from "../../../common/k8s-api/endpoints/metrics.api";
|
||||
import type { IAsyncComputed } from "@ogre-tools/injectable-react";
|
||||
|
@ -11,7 +11,7 @@ import type { PersistentVolume } from "@k8slens/kube-object";
|
||||
import { TableRow } from "../table/table-row";
|
||||
import { cssNames, prevDefault } from "@k8slens/utilities";
|
||||
import { TableCell } from "../table/table-cell";
|
||||
import { Spinner } from "../spinner/spinner";
|
||||
import { Spinner } from "@k8slens/spinner";
|
||||
import { DrawerTitle } from "../drawer/drawer-title";
|
||||
import { Table } from "../table/table";
|
||||
import { TableHead } from "../table/table-head";
|
||||
|
@ -14,7 +14,7 @@ import type { Secret, ServiceAccount } from "@k8slens/kube-object";
|
||||
import { DrawerItem, DrawerTitle } from "../../drawer";
|
||||
import { Icon } from "@k8slens/icon";
|
||||
import type { KubeObjectDetailsProps } from "../../kube-object-details";
|
||||
import { Spinner } from "../../spinner";
|
||||
import { Spinner } from "@k8slens/spinner";
|
||||
import { ServiceAccountsSecret } from "./secret";
|
||||
import type { SecretStore } from "../../config-secrets/store";
|
||||
import type { GetDetailsUrl } from "../../kube-detail-params/get-details-url.injectable";
|
||||
|
@ -10,7 +10,7 @@ import { cssNames, prevDefault } from "@k8slens/utilities";
|
||||
import { Button } from "@k8slens/button";
|
||||
import { Stepper } from "../stepper";
|
||||
import { SubTitle } from "../layout/sub-title";
|
||||
import { Spinner } from "../spinner";
|
||||
import { Spinner } from "@k8slens/spinner";
|
||||
import { debounce } from "lodash";
|
||||
|
||||
export interface WizardCommonProps<D> {
|
||||
|
@ -9,7 +9,7 @@ import React from "react";
|
||||
import { observer } from "mobx-react";
|
||||
import type { ReplicaSet } from "@k8slens/kube-object";
|
||||
import { KubeObjectMenu } from "../kube-object-menu";
|
||||
import { Spinner } from "../spinner";
|
||||
import { Spinner } from "@k8slens/spinner";
|
||||
import { prevDefault, stopPropagation } from "@k8slens/utilities";
|
||||
import { DrawerTitle } from "../drawer";
|
||||
import { Table, TableCell, TableHead, TableRow } from "../table";
|
||||
|
@ -14,7 +14,7 @@ import type { ShowNotification } from "@k8slens/notifications";
|
||||
import { Button } from "@k8slens/button";
|
||||
import type { ForwardedPort, PortForwardStore } from "../../port-forward";
|
||||
import { predictProtocol } from "../../port-forward";
|
||||
import { Spinner } from "../spinner";
|
||||
import { Spinner } from "@k8slens/spinner";
|
||||
import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
import portForwardStoreInjectable from "../../port-forward/port-forward-store/port-forward-store.injectable";
|
||||
import portForwardDialogModelInjectable from "../../port-forward/port-forward-dialog-model/port-forward-dialog-model.injectable";
|
||||
|
@ -13,7 +13,7 @@ import type { Pod, KubeObject } from "@k8slens/kube-object";
|
||||
import { bytesToUnits, cssNames, interval, prevDefault } from "@k8slens/utilities";
|
||||
import { LineProgress } from "../line-progress";
|
||||
import { Table, TableCell, TableHead, TableRow } from "../table";
|
||||
import { Spinner } from "../spinner";
|
||||
import { Spinner } from "@k8slens/spinner";
|
||||
import { DrawerTitle } from "../drawer";
|
||||
import { KubeObjectStatusIcon } from "../kube-object-status-icon";
|
||||
import type { PodStore } from "./store";
|
||||
|
@ -9,11 +9,11 @@ $ npm install @k8slens/animate
|
||||
```
|
||||
|
||||
```typescript
|
||||
export type { AnimateName, AnimateProps } from "@k8slens/button";
|
||||
export type { Animate } from "@k8slens/button";
|
||||
export { defaultEnterDurationForAnimatedInjectable } from "@k8slens/button";
|
||||
export { defaultLeaveDurationForAnimatedInjectable } from "@k8slens/button";
|
||||
export { requestAnimationFrameInjectable } from "@k8slens/button";
|
||||
import { animateFeature } from "@k8slens/animate";
|
||||
import { animateFeature, requestAnimationFrameInjectable } from "@k8slens/animate";
|
||||
import { Animate } from "@k8slens/animate";
|
||||
import type { AnimateName } from "@k8slens/animate";
|
||||
import type { RequestAnimationFrame } from "@k8slens/animate";
|
||||
```
|
||||
|
||||
## Extendability
|
||||
|
6
packages/ui-components/spinner/.eslintrc.json
Normal file
6
packages/ui-components/spinner/.eslintrc.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"extends": "@k8slens/eslint-config/eslint",
|
||||
"parserOptions": {
|
||||
"project": "./tsconfig.json"
|
||||
}
|
||||
}
|
1
packages/ui-components/spinner/.prettierrc
Normal file
1
packages/ui-components/spinner/.prettierrc
Normal file
@ -0,0 +1 @@
|
||||
"@k8slens/eslint-config/prettier"
|
4
packages/ui-components/spinner/CHANGELOG.md
Normal file
4
packages/ui-components/spinner/CHANGELOG.md
Normal file
@ -0,0 +1,4 @@
|
||||
# Change Log
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
15
packages/ui-components/spinner/README.md
Normal file
15
packages/ui-components/spinner/README.md
Normal file
@ -0,0 +1,15 @@
|
||||
# @k8slens/spinner
|
||||
|
||||
This package contains stuff related to creating Lens-applications.
|
||||
|
||||
# Usage
|
||||
|
||||
```bash
|
||||
$ npm install @k8slens/spinner
|
||||
```
|
||||
|
||||
```typescript
|
||||
import { Spinner } from "@k8slens/spinner";
|
||||
```
|
||||
|
||||
## Extendability
|
@ -3,4 +3,5 @@
|
||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||
*/
|
||||
|
||||
export * from "./spinner";
|
||||
export type { SpinnerProps } from "./src/spinner";
|
||||
export { Spinner } from "./src/spinner";
|
3
packages/ui-components/spinner/jest.config.js
Normal file
3
packages/ui-components/spinner/jest.config.js
Normal file
@ -0,0 +1,3 @@
|
||||
const { configForReact } = require("@k8slens/jest").monorepoPackageConfig(__dirname);
|
||||
|
||||
module.exports = configForReact;
|
43
packages/ui-components/spinner/package.json
Normal file
43
packages/ui-components/spinner/package.json
Normal file
@ -0,0 +1,43 @@
|
||||
{
|
||||
"name": "@k8slens/spinner",
|
||||
"private": false,
|
||||
"version": "1.0.0",
|
||||
"description": "Highly extendable spinner in the Lens.",
|
||||
"type": "commonjs",
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"publishConfig": {
|
||||
"access": "public",
|
||||
"registry": "https://registry.npmjs.org/"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/lensapp/lens.git"
|
||||
},
|
||||
"main": "dist/index.js",
|
||||
"exports": {
|
||||
".": "./dist/index.js",
|
||||
"./styles": "./dist/index.css"
|
||||
},
|
||||
"types": "dist/index.d.ts",
|
||||
"author": {
|
||||
"name": "OpenLens Authors",
|
||||
"email": "info@k8slens.dev"
|
||||
},
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/lensapp/lens",
|
||||
"scripts": {
|
||||
"build": "lens-webpack-build",
|
||||
"lint": "lens-lint",
|
||||
"lint:fix": "lens-lint --fix"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@k8slens/utilities": "^1.0.0-alpha.1",
|
||||
"react": "^17.0.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@k8slens/eslint-config": "^6.5.0",
|
||||
"@k8slens/webpack": "^6.5.0"
|
||||
}
|
||||
}
|
28
packages/ui-components/spinner/tailwind.config.js
Normal file
28
packages/ui-components/spinner/tailwind.config.js
Normal file
@ -0,0 +1,28 @@
|
||||
/**
|
||||
* Copyright (c) OpenLens Authors. All rights reserved.
|
||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||
*/
|
||||
|
||||
const path = require("path");
|
||||
|
||||
module.exports = {
|
||||
content: [path.join(__dirname, "src/**/*.tsx")],
|
||||
darkMode: "class",
|
||||
theme: {
|
||||
fontFamily: {
|
||||
sans: ["Roboto", "Helvetica", "Arial", "sans-serif"],
|
||||
},
|
||||
extend: {
|
||||
colors: {
|
||||
textAccent: "var(--textColorAccent)",
|
||||
textPrimary: "var(--textColorPrimary)",
|
||||
textTertiary: "var(--textColorTertiary)",
|
||||
textDimmed: "var(--textColorDimmed)",
|
||||
},
|
||||
},
|
||||
},
|
||||
variants: {
|
||||
extend: {},
|
||||
},
|
||||
plugins: [],
|
||||
};
|
4
packages/ui-components/spinner/tsconfig.json
Normal file
4
packages/ui-components/spinner/tsconfig.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"extends": "@k8slens/typescript/config/base.json",
|
||||
"include": ["**/*.ts", "**/*.tsx"],
|
||||
}
|
1
packages/ui-components/spinner/webpack.config.js
Normal file
1
packages/ui-components/spinner/webpack.config.js
Normal file
@ -0,0 +1 @@
|
||||
module.exports = require("@k8slens/webpack").configForReact;
|
Loading…
Reference in New Issue
Block a user