mirror of
https://github.com/podman-desktop/podman-desktop
synced 2026-05-23 09:48:59 +00:00
chore: remove duplicate imports in files
Change-Id: I635cd29f011111cbdc930a4f0eae4603264cbc1c Signed-off-by: Florent Benoit <fbenoit@redhat.com>
This commit is contained in:
parent
06f3ad3f0e
commit
542741cbce
15 changed files with 36 additions and 37 deletions
|
|
@ -23,7 +23,6 @@ import { spawn } from 'node:child_process';
|
|||
import * as sudo from 'sudo-prompt';
|
||||
import type * as extensionApi from '@podman-desktop/api';
|
||||
import type { KindInstaller } from './kind-installer';
|
||||
import type { CancellationToken } from '@podman-desktop/api';
|
||||
|
||||
const windows = os.platform() === 'win32';
|
||||
export function isWindows(): boolean {
|
||||
|
|
@ -91,7 +90,7 @@ export function runCliCommand(
|
|||
command: string,
|
||||
args: string[],
|
||||
options?: RunOptions,
|
||||
token?: CancellationToken,
|
||||
token?: extensionApi.CancellationToken,
|
||||
): Promise<SpawnResult> {
|
||||
return new Promise((resolve, reject) => {
|
||||
let stdOut = '';
|
||||
|
|
|
|||
|
|
@ -24,8 +24,7 @@ import { compare } from 'compare-versions';
|
|||
|
||||
import * as podmanTool from './podman.json';
|
||||
import type { InstalledPodman } from './podman-cli';
|
||||
import { execPromise } from './podman-cli';
|
||||
import { getPodmanInstallation } from './podman-cli';
|
||||
import { execPromise, getPodmanInstallation } from './podman-cli';
|
||||
import { getAssetsFolder, runCliCommand } from './util';
|
||||
import { getDetectionChecks } from './detection-checks';
|
||||
import { BaseCheck } from './base-check';
|
||||
|
|
|
|||
|
|
@ -17,8 +17,7 @@
|
|||
***********************************************************************/
|
||||
|
||||
import type { MockedFunction } from 'vitest';
|
||||
import { afterEach, beforeEach } from 'vitest';
|
||||
import { beforeAll, expect, test, vi } from 'vitest';
|
||||
import { afterEach, beforeEach, beforeAll, expect, test, vi } from 'vitest';
|
||||
import type { ContainersAuthConfigFile } from './registry-setup';
|
||||
import { RegistrySetup } from './registry-setup';
|
||||
import * as fs from 'node:fs';
|
||||
|
|
|
|||
|
|
@ -17,9 +17,7 @@
|
|||
***********************************************************************/
|
||||
|
||||
import type { BrowserWindowConstructorOptions, FileFilter } from 'electron';
|
||||
import { autoUpdater } from 'electron';
|
||||
import { Menu } from 'electron';
|
||||
import { BrowserWindow, ipcMain, app, dialog, screen, nativeTheme } from 'electron';
|
||||
import { autoUpdater, Menu, BrowserWindow, ipcMain, app, dialog, screen, nativeTheme } from 'electron';
|
||||
import contextMenu from 'electron-context-menu';
|
||||
const { aboutMenuItem } = require('electron-util');
|
||||
import { join } from 'path';
|
||||
|
|
|
|||
|
|
@ -16,8 +16,7 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
***********************************************************************/
|
||||
|
||||
import type { PodInfo as LibPodPodInfo } from '../dockerode/libpod-dockerode';
|
||||
import type { PodInspectInfo as LibPodPodInspectInfo } from '../dockerode/libpod-dockerode';
|
||||
import type { PodInfo as LibPodPodInfo, PodInspectInfo as LibPodPodInspectInfo } from '../dockerode/libpod-dockerode';
|
||||
|
||||
export interface PodInfo extends LibPodPodInfo {
|
||||
engineId: string;
|
||||
|
|
|
|||
|
|
@ -32,9 +32,13 @@ import type { MessageBox } from './message-box';
|
|||
import type { ProgressImpl } from './progress-impl';
|
||||
import { ProgressLocation } from './progress-impl';
|
||||
import type { NotificationImpl } from './notification-impl';
|
||||
import { StatusBarItemImpl } from './statusbar/statusbar-item';
|
||||
import {
|
||||
StatusBarItemImpl,
|
||||
StatusBarAlignLeft,
|
||||
StatusBarAlignRight,
|
||||
StatusBarItemDefaultPriority,
|
||||
} from './statusbar/statusbar-item';
|
||||
import type { StatusBarRegistry } from './statusbar/statusbar-registry';
|
||||
import { StatusBarAlignLeft, StatusBarAlignRight, StatusBarItemDefaultPriority } from './statusbar/statusbar-item';
|
||||
import type { FilesystemMonitoring } from './filesystem-monitoring';
|
||||
import { Uri } from './types/uri';
|
||||
import type { KubernetesClient } from './kubernetes-client';
|
||||
|
|
|
|||
|
|
@ -23,8 +23,7 @@ import type * as Dockerode from 'dockerode';
|
|||
import type { Telemetry } from './telemetry/telemetry';
|
||||
import * as crypto from 'node:crypto';
|
||||
import type { HttpsOptions, OptionsOfTextResponseBody } from 'got';
|
||||
import got, { HTTPError } from 'got';
|
||||
import { RequestError } from 'got';
|
||||
import got, { HTTPError, RequestError } from 'got';
|
||||
import validator from 'validator';
|
||||
import { HttpProxyAgent, HttpsProxyAgent } from 'hpagent';
|
||||
import type { Certificates } from './certificates';
|
||||
|
|
|
|||
|
|
@ -22,9 +22,8 @@ import type { TrayMenu } from '../tray-menu';
|
|||
import { EventEmitter } from 'node:events';
|
||||
import { PluginSystem } from './index';
|
||||
import type { WebContents } from 'electron';
|
||||
import { shell } from 'electron';
|
||||
import { shell, clipboard } from 'electron';
|
||||
import type { MessageBox } from './message-box';
|
||||
import { clipboard } from 'electron';
|
||||
import { securityRestrictionCurrentHandler } from '../security-restrictions-handler';
|
||||
|
||||
let pluginSystem: PluginSystem;
|
||||
|
|
|
|||
|
|
@ -40,13 +40,11 @@ import type {
|
|||
ProviderKubernetesConnectionInfo,
|
||||
} from './api/provider-info';
|
||||
import type { WebContents } from 'electron';
|
||||
import { app } from 'electron';
|
||||
import { ipcMain, BrowserWindow } from 'electron';
|
||||
import { app, ipcMain, BrowserWindow, shell, clipboard } from 'electron';
|
||||
import type { ContainerCreateOptions, ContainerInfo, SimpleContainerInfo } from './api/container-info';
|
||||
import type { ImageInfo } from './api/image-info';
|
||||
import type { PullEvent } from './api/pull-event';
|
||||
import type { ExtensionInfo } from './api/extension-info';
|
||||
import { shell } from 'electron';
|
||||
import type { ImageInspectInfo } from './api/image-inspect-info';
|
||||
import type { TrayMenu } from '../tray-menu';
|
||||
import { getFreePort } from './util/port';
|
||||
|
|
@ -93,7 +91,6 @@ import { MenuRegistry } from '/@/plugin/menu-registry';
|
|||
import { CancellationTokenRegistry } from './cancellation-token-registry';
|
||||
import type { UpdateCheckResult } from 'electron-updater';
|
||||
import { autoUpdater } from 'electron-updater';
|
||||
import { clipboard } from 'electron';
|
||||
import type { ApiSenderType } from './api';
|
||||
import type { AuthenticationProviderInfo } from './authentication';
|
||||
import { AuthenticationImpl } from './authentication';
|
||||
|
|
|
|||
|
|
@ -29,10 +29,17 @@ import type {
|
|||
V1APIResource,
|
||||
V1APIGroup,
|
||||
} from '@kubernetes/client-node';
|
||||
import { ApisApi, NetworkingV1Api } from '@kubernetes/client-node';
|
||||
import { AppsV1Api } from '@kubernetes/client-node';
|
||||
import { CustomObjectsApi } from '@kubernetes/client-node';
|
||||
import { CoreV1Api, KubeConfig, Log, Watch, VersionApi } from '@kubernetes/client-node';
|
||||
import {
|
||||
ApisApi,
|
||||
NetworkingV1Api,
|
||||
AppsV1Api,
|
||||
CustomObjectsApi,
|
||||
CoreV1Api,
|
||||
KubeConfig,
|
||||
Log,
|
||||
Watch,
|
||||
VersionApi,
|
||||
} from '@kubernetes/client-node';
|
||||
import type { V1Route } from './api/openshift-types';
|
||||
import type * as containerDesktopAPI from '@podman-desktop/api';
|
||||
import { Emitter } from './events/emitter';
|
||||
|
|
|
|||
|
|
@ -17,9 +17,7 @@
|
|||
***********************************************************************/
|
||||
|
||||
import type { MenuItemConstructorOptions, Tray } from 'electron';
|
||||
import { nativeImage } from 'electron';
|
||||
import { Menu } from 'electron';
|
||||
import { ipcMain } from 'electron';
|
||||
import { nativeImage, Menu, ipcMain } from 'electron';
|
||||
import { beforeAll, beforeEach, expect, test, vi } from 'vitest';
|
||||
import type { ProviderInfo } from './plugin/api/provider-info';
|
||||
import type { AnimatedTray } from './tray-animate-icon';
|
||||
|
|
|
|||
|
|
@ -15,8 +15,7 @@
|
|||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
***********************************************************************/
|
||||
import { faPlay } from '@fortawesome/free-solid-svg-icons';
|
||||
import { faWrench } from '@fortawesome/free-solid-svg-icons';
|
||||
import { faPlay, faWrench } from '@fortawesome/free-solid-svg-icons';
|
||||
import Fa from 'svelte-fa/src/fa.svelte';
|
||||
|
||||
export const InitializeOnlyMode = 'Initialize';
|
||||
|
|
|
|||
|
|
@ -18,8 +18,7 @@
|
|||
|
||||
import { beforeEach, expect, test, vi } from 'vitest';
|
||||
import type { BuildImageCallback } from './build-image-task';
|
||||
import { disconnectUI, eventCollect, reconnectUI } from './build-image-task';
|
||||
import { startBuild } from './build-image-task';
|
||||
import { disconnectUI, eventCollect, reconnectUI, startBuild } from './build-image-task';
|
||||
|
||||
beforeEach(() => {
|
||||
vi.clearAllMocks();
|
||||
|
|
|
|||
|
|
@ -19,9 +19,13 @@
|
|||
import { get } from 'svelte/store';
|
||||
import { beforeEach, expect, test, vi } from 'vitest';
|
||||
import type { ConnectionCallback } from './preferences-connection-rendering-task';
|
||||
import { startTask } from './preferences-connection-rendering-task';
|
||||
import { disconnectUI, eventCollect, reconnectUI } from './preferences-connection-rendering-task';
|
||||
import { clearCreateTask } from './preferences-connection-rendering-task';
|
||||
import {
|
||||
startTask,
|
||||
disconnectUI,
|
||||
eventCollect,
|
||||
reconnectUI,
|
||||
clearCreateTask,
|
||||
} from './preferences-connection-rendering-task';
|
||||
import { tasksInfo } from '/@/stores/tasks';
|
||||
|
||||
const dummyCallback: ConnectionCallback = {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
import React from 'react';
|
||||
import { useEffect } from 'react';
|
||||
import React, { useEffect } from 'react';
|
||||
import ExecutionEnvironment from '@docusaurus/ExecutionEnvironment';
|
||||
|
||||
function TailWindThemeSelector(): JSX.Element {
|
||||
|
|
|
|||
Loading…
Reference in a new issue