mirror of
https://github.com/portainer/portainer.git
synced 2025-07-25 08:19:40 +02:00
refactor(docker/stacks): migrate table to react [EE-4705] (#9956)
This commit is contained in:
parent
c3d266931f
commit
c8a1f0fa77
43 changed files with 1127 additions and 492 deletions
|
@ -1,3 +1,9 @@
|
|||
import { ResourceControlResponse } from '@/react/portainer/access-control/types';
|
||||
import {
|
||||
AutoUpdateResponse,
|
||||
RepoConfigResponse,
|
||||
} from '@/react/portainer/gitops/types';
|
||||
|
||||
export type StackId = number;
|
||||
|
||||
export enum StackType {
|
||||
|
@ -24,6 +30,41 @@ export enum StackStatus {
|
|||
Inactive,
|
||||
}
|
||||
|
||||
export interface Stack {
|
||||
Id: number;
|
||||
Name: string;
|
||||
Type: StackType;
|
||||
EndpointID: number;
|
||||
SwarmID: string;
|
||||
EntryPoint: string;
|
||||
Env: {
|
||||
name: string;
|
||||
value: string;
|
||||
}[];
|
||||
ResourceControl?: ResourceControlResponse;
|
||||
Status: StackStatus;
|
||||
ProjectPath: string;
|
||||
CreationDate: number;
|
||||
CreatedBy: string;
|
||||
UpdateDate: number;
|
||||
UpdatedBy: string;
|
||||
AdditionalFiles?: string[];
|
||||
AutoUpdate?: AutoUpdateResponse;
|
||||
Option?: {
|
||||
Prune: boolean;
|
||||
Force: boolean;
|
||||
};
|
||||
GitConfig?: RepoConfigResponse;
|
||||
FromAppTemplate: boolean;
|
||||
Namespace?: string;
|
||||
IsComposeFormat: boolean;
|
||||
Webhook?: string;
|
||||
SupportRelativePath: boolean;
|
||||
FilesystemPath: string;
|
||||
StackFileVersion: string;
|
||||
PreviousDeploymentInfo: unknown;
|
||||
}
|
||||
|
||||
export type StackFile = {
|
||||
StackFileContent: string;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue