Skip to content

Commit

Permalink
feat: add two types in workorder (labring#5197)
Browse files Browse the repository at this point in the history
* feat: add two types in workorder

* update
  • Loading branch information
zjy365 authored and HUAHUAI23 committed Nov 12, 2024
1 parent 9b184c0 commit 5b181b6
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
2 changes: 1 addition & 1 deletion frontend/desktop/src/api/platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { UserTask } from '@/types/task';
// handle baidu
export const uploadConvertData = ({ newType, bdVid }: { newType: number[]; bdVid?: string }) => {
const baseurl = `http://${process.env.HOSTNAME || 'localhost'}:${process.env.PORT || 3000}`;
const defaultUrl = 'https://sealos.run/self-hosting';
const defaultUrl = 'https://ads.sealos.run';
if (!bdVid) {
return Promise.reject('upload convert data params error');
}
Expand Down
17 changes: 13 additions & 4 deletions frontend/providers/workorder/src/constants/workorder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,18 @@ export const OrderTypeList: {
id: WorkOrderType.DBProvider,
label: 'dbprovider'
},
{
id: WorkOrderType.AccountCenter,
label: 'account_center'
},
{
id: WorkOrderType.AIProxy,
label: 'AI Proxy'
},
{
id: WorkOrderType.DevBox,
label: 'Devbox'
},
{
id: WorkOrderType.CronJob,
label: 'cronjob'
Expand All @@ -36,10 +48,7 @@ export const OrderTypeList: {
id: WorkOrderType.FunctionServer,
label: 'functionserver'
},
{
id: WorkOrderType.AccountCenter,
label: 'account_center'
},

{
id: WorkOrderType.Other,
label: 'other'
Expand Down
2 changes: 2 additions & 0 deletions frontend/providers/workorder/src/types/workorder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ export enum WorkOrderType {
FunctionServer = 'functionserver',
FastGPT = 'fastgpt',
AccountCenter = 'account_center',
AIProxy = 'aiproxy',
DevBox = 'devbox',
Other = 'other'
}

Expand Down

0 comments on commit 5b181b6

Please sign in to comment.