Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] workflow editor #31

Merged
merged 24 commits into from
Oct 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions api/conf/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1781,51 +1781,51 @@ serviceActions:


cm-damselfly:
Model{Istargetmodel}:
GetUserModel:
method: get
resourcePath: /model/{isTargetModel}
description: "Get a list of all user models."
Onpremmodel:
CreateOnpremmodel:
method: post
resourcePath: /onpremmodel
description: "Create a new on-premise model with the given information."
Onpremmodel:
ListOnpremmodel:
method: get
resourcePath: /onpremmodel
description: "Get a list of on-premise models."
Onpremmodel{Id}:
UpdateOnpremmodel:
method: put
resourcePath: /onpremmodel/{id}
description: "Update a on-premise model with the given information."
Onpremmodel{Id}:
DeleteOnpremmodel:
method: delete
resourcePath: /onpremmodel/{id}
description: "Delete a on-premise model with the given information."
Onpremmodel{Id}:
GetOnpremmodel:
method: get
resourcePath: /onpremmodel/{id}
description: "Get a specific on-premise model."
Readyz:
method: get
resourcePath: /readyz
description: "Check Damselfly is ready"
Cloudmodel:
CreateCloudmodel:
method: post
resourcePath: /cloudmodel
description: "Create a new cloud model with the given information."
Cloudmodel:
ListCloudmodel:
method: get
resourcePath: /cloudmodel
description: "Get a list of cloud models."
Cloudmodel{Id}:
DeleteCloudmodel:
method: delete
resourcePath: /cloudmodel/{id}
description: "Delete a cloud model with the given information."
Cloudmodel{Id}:
GetCloudmodel:
method: get
resourcePath: /cloudmodel/{id}
description: "Get a specific cloud model."
Cloudmodel{Id}:
UpdateCloudmodel:
method: put
resourcePath: /cloudmodel/{id}
description: "Update a cloud model with the given information."
Expand Down
2 changes: 1 addition & 1 deletion front/.env.sample
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VITE_BACKEND_ENDPOINT = '/api'
VITE_BACKEND_URL = 'http://localhost:4000'
VITE_BACKEND_URL = 'https://devmigapi.onecloudcon.com'
VITE_PROJECT_NAME = 'MIGRATOR'

3 changes: 3 additions & 0 deletions front/src/app/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@
},
"COPY_BUTTON": {
"COPIED": "Copy!"
},
"SELECT_DROPDOWN": {
"SELECT" : "select item"
}
}
}
3 changes: 1 addition & 2 deletions front/src/app/providers/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import { RoleType } from '../../../shared/libs/accessControl/pageAccessHelper/ty
import { getMinimalPageAccessPermissionList } from '../../../shared/libs';
import { toLower } from 'lodash';
import { tempRoutes } from './routes/temp.ts';
import WorkflowTemplate from '@/features/workflow/workflowDesigner/ui/WorkflowDesigner.vue';
import NotFound from '@/pages/error/404/NotFound.vue';
//TODO admin부분 고려

Expand Down Expand Up @@ -45,7 +44,7 @@ export class McmpRouter {
...authRoutes,
{
path: '/test',
component: WorkflowTemplate,
component: MainLayout,
},
{ path: '/:pathMatch(.*)*', name: 'NotFound', component: NotFound },
];
Expand Down
1 change: 1 addition & 0 deletions front/src/entities/workflow/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const UPDATE_WORKFLOW = 'update-workflow';
const RUN_WORKFLOW = 'run-workflow';
const DELETE_WORKFLOW = 'delete-workflow';

// const GET_DISK_TYPE = 'GET_DISK_TYPE';
const GET_WORKFLOW_TEMPLATE_LIST = 'list-workflow-template';

const GET_TASK_COMPONENT_LIST = 'list-task-component';
Expand Down
27 changes: 5 additions & 22 deletions front/src/entities/workflow/model/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,36 +8,19 @@ export interface IWorkflow {
}
export interface ITaskGroupResponse {
description: string;
id: string;
name: string;
id?: string;
tasks: Array<ITaskResponse>;
task_groups?: Array<ITaskGroupResponse>;
}
export interface ITaskResponse {
dependencies: any[];
dependencies: any;
name: string;
path_params: any;
request_body: {
name: string;
installMonAgent: string;
label: string;
systemLabel: string;
description: string;
vm: Array<ITaskVmResponse>;
};
request_body: string;
task_component: string;
}
export interface ITaskVmResponse {
name: string;
subGroupSize: string;
label: string;
description: string;
commonSpec: string;
commonImage: string;
rootDiskType: string;
rootDiskSize: string;
vmUserPassword: string;
connectionName: string;
query_params?: any;
id?: string;
}

export interface IWorkflowResponse {
Expand Down
46 changes: 0 additions & 46 deletions front/src/features/workflow/model/types.ts

This file was deleted.

121 changes: 0 additions & 121 deletions front/src/features/workflow/model/workflowToolModel.ts

This file was deleted.

73 changes: 0 additions & 73 deletions front/src/features/workflow/ui/WorkflowTool.vue

This file was deleted.

Loading
Loading