1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-02 20:35:25 +02:00

refactor(environments): move environments ts code to react [EE-3443] (#7747)

This commit is contained in:
Chaim Lev-Ari 2022-10-23 09:53:25 +03:00 committed by GitHub
parent 1b12cc9f31
commit e48ceb15e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
154 changed files with 195 additions and 179 deletions

View file

@ -1,6 +1,6 @@
import { Box } from 'react-feather';
import { EnvironmentId } from '@/portainer/environments/types';
import { EnvironmentId } from '@/react/portainer/environments/types';
import { DashboardLink } from '../items/DashboardLink';
import { SidebarItem } from '../SidebarItem';

View file

@ -15,7 +15,7 @@ import {
type Environment,
type EnvironmentId,
EnvironmentStatus,
} from '@/portainer/environments/types';
} from '@/react/portainer/environments/types';
import {
Authorized,
useUser,

View file

@ -8,9 +8,9 @@ import {
PlatformType,
EnvironmentId,
Environment,
} from '@/portainer/environments/types';
import { getPlatformType } from '@/portainer/environments/utils';
import { useEnvironment } from '@/portainer/environments/queries/useEnvironment';
} from '@/react/portainer/environments/types';
import { getPlatformType } from '@/react/portainer/environments/utils';
import { useEnvironment } from '@/react/portainer/environments/queries/useEnvironment';
import { useLocalStorage } from '@/portainer/hooks/useLocalStorage';
import { EndpointProvider } from '@/portainer/services/types';

View file

@ -8,7 +8,7 @@ import {
terminalClose,
terminalResize,
} from '@/portainer/services/terminal-window';
import { EnvironmentId } from '@/portainer/environments/types';
import { EnvironmentId } from '@/react/portainer/environments/types';
import { error as notifyError } from '@/portainer/services/notifications';
import { useLocalStorage } from '@/portainer/hooks/useLocalStorage';

View file

@ -2,7 +2,7 @@ import clsx from 'clsx';
import { useState } from 'react';
import { createPortal } from 'react-dom';
import { EnvironmentId } from '@/portainer/environments/types';
import { EnvironmentId } from '@/react/portainer/environments/types';
import { useAnalytics } from '@/angulartics.matomo/analytics-services';
import { Button } from '@@/buttons';

View file

@ -1,6 +1,6 @@
import { Box, Edit, Layers, Lock, Server } from 'react-feather';
import { EnvironmentId } from '@/portainer/environments/types';
import { EnvironmentId } from '@/react/portainer/environments/types';
import { Authorized } from '@/portainer/hooks/useUser';
import Helm from '@/assets/ico/vendor/helm.svg?c';
import Route from '@/assets/ico/route.svg?c';

View file

@ -1,6 +1,6 @@
import { Layout } from 'react-feather';
import { EnvironmentId } from '@/portainer/environments/types';
import { EnvironmentId } from '@/react/portainer/environments/types';
import { AutomationTestingProps } from '@/types';
import { SidebarItem } from '../SidebarItem';

View file

@ -1,6 +1,6 @@
import { Database } from 'react-feather';
import { EnvironmentId } from '@/portainer/environments/types';
import { EnvironmentId } from '@/react/portainer/environments/types';
import { AutomationTestingProps } from '@/types';
import { SidebarItem } from '../SidebarItem';

View file

@ -1,4 +1,4 @@
import { EnvironmentType } from '@/portainer/environments/types';
import { EnvironmentType } from '@/react/portainer/environments/types';
type DockerSwarmMode = {
provider: 'DOCKER_SWARM_MODE';