Revert "feat(frontend): import CE code to EE" (#1557)

This commit is contained in:
Chaim Lev-Ari
2025-12-18 13:45:26 +02:00
committed by GitHub
parent 2f5b083c5c
commit bf8ccbcec6
1849 changed files with 6494 additions and 6602 deletions

View File

@@ -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', {

View File

@@ -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';

View File

@@ -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({})),

View File

@@ -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 () =>