Revert "feat(frontend): import CE code to EE" (#1557)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
export function mockLocalizeDate() {
|
||||
// Mock localizeDate to always use en-US and UTC
|
||||
vi.mock('@CE/react/common/date-utils', () => ({
|
||||
vi.mock('@/react/common/date-utils', () => ({
|
||||
localizeDate: (date: Date) =>
|
||||
date
|
||||
.toLocaleString('en-US', {
|
||||
|
||||
@@ -4,13 +4,13 @@ import {
|
||||
Edition,
|
||||
LicenseInfo,
|
||||
LicenseType,
|
||||
} from '@CE/react/portainer/licenses/types';
|
||||
import { EnvironmentGroup } from '@CE/react/portainer/environments/environment-groups/types';
|
||||
import { Tag } from '@CE/portainer/tags/types';
|
||||
import { StatusResponse } from '@CE/react/portainer/system/useSystemStatus';
|
||||
import { createMockTeams } from '@CE/react-tools/test-mocks';
|
||||
import { UserId } from '@CE/portainer/users/types';
|
||||
import { VersionResponse } from '@CE/react/portainer/system/useSystemVersion';
|
||||
} from '@/react/portainer/licenses/types';
|
||||
import { EnvironmentGroup } from '@/react/portainer/environments/environment-groups/types';
|
||||
import { Tag } from '@/portainer/tags/types';
|
||||
import { StatusResponse } from '@/react/portainer/system/useSystemStatus';
|
||||
import { createMockTeams } from '@/react-tools/test-mocks';
|
||||
import { UserId } from '@/portainer/users/types';
|
||||
import { VersionResponse } from '@/react/portainer/system/useSystemVersion';
|
||||
|
||||
import { azureHandlers } from './setup-handlers/azure';
|
||||
import { dockerHandlers } from './setup-handlers/docker';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { http, HttpResponse } from 'msw';
|
||||
|
||||
import { PublicSettingsResponse } from '@CE/react/portainer/settings/types';
|
||||
import { PublicSettingsResponse } from '@/react/portainer/settings/types';
|
||||
|
||||
export const settingsHandlers = [
|
||||
http.get('/api/ssl', () => HttpResponse.json({})),
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { http, HttpResponse } from 'msw';
|
||||
|
||||
import { TeamMembership } from '@CE/react/portainer/users/teams/types';
|
||||
import { createMockUsers } from '@CE/react-tools/test-mocks';
|
||||
import { Role } from '@CE/portainer/users/types';
|
||||
import { TeamMembership } from '@/react/portainer/users/teams/types';
|
||||
import { createMockUsers } from '@/react-tools/test-mocks';
|
||||
import { Role } from '@/portainer/users/types';
|
||||
|
||||
export const userHandlers = [
|
||||
http.get('/api/users', async () =>
|
||||
|
||||
Reference in New Issue
Block a user