♻️ Pull request comments
This commit is contained in:
@@ -207,6 +207,9 @@ export default function ContainerActionBar({ selected, reload }: ContainerAction
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated legacy code
|
||||
*/
|
||||
function tryMatchType(imageName: string): ServiceType {
|
||||
const match = MatchingImages.find(({ image }) => imageName.includes(image));
|
||||
if (match) {
|
||||
@@ -216,6 +219,11 @@ function tryMatchType(imageName: string): ServiceType {
|
||||
return 'Other';
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
* @param container the container to match
|
||||
* @returns a new service
|
||||
*/
|
||||
const tryMatchService = (container: Dockerode.ContainerInfo | undefined) => {
|
||||
if (container === undefined) return {};
|
||||
const name = container.Names[0].substring(1);
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { MantineTheme } from '@mantine/core';
|
||||
|
||||
import { OptionValues } from '../modules/ModuleTypes';
|
||||
|
||||
export interface Settings {
|
||||
@@ -74,6 +75,12 @@ export type ServiceType =
|
||||
| 'Sabnzbd'
|
||||
| 'NZBGet';
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
* @param name the name to match
|
||||
* @param form the form
|
||||
* @returns the port from the map
|
||||
*/
|
||||
export function tryMatchPort(name: string | undefined, form?: any) {
|
||||
if (!name) {
|
||||
return undefined;
|
||||
|
||||
Reference in New Issue
Block a user