mirror of
https://github.com/portainer/portainer.git
synced 2025-07-25 08:19:40 +02:00
refactor(apps): migrate applications view to react [r8s-124] (#28)
This commit is contained in:
parent
cc75167437
commit
959c527be7
42 changed files with 1378 additions and 1293 deletions
|
@ -7,7 +7,7 @@ import { TextTip } from '@@/Tip/TextTip';
|
|||
import { Tooltip } from '@@/Tip/Tooltip';
|
||||
|
||||
import { Application } from '../../types';
|
||||
import { useApplicationHorizontalPodAutoscaler } from '../../application.queries';
|
||||
import { useApplicationHorizontalPodAutoscaler } from '../../queries/useApplicationHorizontalPodAutoscaler';
|
||||
|
||||
type Props = {
|
||||
environmentId: EnvironmentId;
|
||||
|
|
|
@ -11,12 +11,10 @@ import { AddButton, Button } from '@@/buttons';
|
|||
import { Link } from '@@/Link';
|
||||
import { Icon } from '@@/Icon';
|
||||
|
||||
import {
|
||||
useApplication,
|
||||
useApplicationServices,
|
||||
} from '../../application.queries';
|
||||
import { applicationIsKind, isExternalApplication } from '../../utils';
|
||||
import { appStackIdLabel } from '../../constants';
|
||||
import { useApplication } from '../../queries/useApplication';
|
||||
import { useApplicationServices } from '../../queries/useApplicationServices';
|
||||
|
||||
import { RestartApplicationButton } from './RestartApplicationButton';
|
||||
import { RedeployApplicationButton } from './RedeployApplicationButton';
|
||||
|
|
|
@ -12,7 +12,7 @@ import { Link } from '@@/Link';
|
|||
|
||||
import { Application } from '../../types';
|
||||
import { applicationIsKind } from '../../utils';
|
||||
import { useApplicationPods } from '../../application.queries';
|
||||
import { useApplicationPods } from '../../queries/useApplicationPods';
|
||||
|
||||
type Props = {
|
||||
environmentId: EnvironmentId;
|
||||
|
|
|
@ -12,12 +12,12 @@ import { buildConfirmButton } from '@@/modals/utils';
|
|||
import { Button } from '@@/buttons';
|
||||
import { Icon } from '@@/Icon';
|
||||
|
||||
import { useRedeployApplicationMutation } from '../../application.queries';
|
||||
import { Application } from '../../types';
|
||||
import {
|
||||
applicationIsKind,
|
||||
matchLabelsToLabelSelectorValue,
|
||||
} from '../../utils';
|
||||
import { useRedeployApplicationMutation } from '../../queries/useRedeployApplicationMutation';
|
||||
|
||||
type Props = {
|
||||
environmentId: EnvironmentId;
|
||||
|
|
|
@ -14,10 +14,6 @@ import { buildConfirmButton } from '@@/modals/utils';
|
|||
import { TooltipWithChildren } from '@@/Tip/TooltipWithChildren';
|
||||
import { Tooltip } from '@@/Tip/Tooltip';
|
||||
|
||||
import {
|
||||
useApplicationRevisionList,
|
||||
usePatchApplicationMutation,
|
||||
} from '../../application.queries';
|
||||
import {
|
||||
applicationIsKind,
|
||||
getRollbackPatchPayload,
|
||||
|
@ -25,6 +21,8 @@ import {
|
|||
} from '../../utils';
|
||||
import { Application } from '../../types';
|
||||
import { appDeployMethodLabel } from '../../constants';
|
||||
import { useApplicationRevisionList } from '../../queries/useApplicationRevisionList';
|
||||
import { usePatchApplicationMutation } from '../../queries/usePatchApplicationMutation';
|
||||
|
||||
type Props = {
|
||||
environmentId: EnvironmentId;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue