-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fd607ca
commit 8a933cd
Showing
18 changed files
with
1,162 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { MixScheduler } from '@mixcore/lib/model'; | ||
import { Observable } from 'rxjs'; | ||
import { MixRestfulApi } from './mix-crud-api.service'; | ||
|
||
export class MixSchedulerApi extends MixRestfulApi<MixScheduler> { | ||
public create(value: MixScheduler): Observable<MixScheduler> { | ||
return this.post<MixScheduler, MixScheduler>( | ||
`${this.restUrl}/create`, | ||
value, | ||
undefined, | ||
undefined, | ||
this.resultHandler | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 45 additions & 6 deletions
51
libs/mix-share/src/modules/scheduler/components/job-form/job-form.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,55 @@ | ||
<div class="mix-dialog --default-padding"> | ||
<div class="mix-dialog --default-padding" | ||
[formGroup]="jobForm"> | ||
<div class="mix-dialog__header"> | ||
New Job | ||
Add New Job | ||
</div> | ||
|
||
<div class="mix-dialog__content"> | ||
asd | ||
<div class="grid grid-cols-2 gap-3 w-full"> | ||
<div class="col-span-1"> | ||
<div class="mb-1 content-label">Job Name</div> | ||
<mix-input formControlName="jobName"></mix-input> | ||
</div> | ||
|
||
<div class="col-span-1"> | ||
<div class="mb-1 content-label">Group</div> | ||
<mix-input formControlName="groupName"></mix-input> | ||
</div> | ||
|
||
<div class="col-span-1"> | ||
<div class="mb-1 content-label">Repeat</div> | ||
<mix-input-number formControlName="repeatCount"></mix-input-number> | ||
</div> | ||
|
||
<div class="col-span-1"> | ||
<div class="mb-1 content-label">Interval</div> | ||
<mix-input-number formControlName="interval"></mix-input-number> | ||
</div> | ||
|
||
<div class="col-span-1"> | ||
<div class="mb-1 content-label">Start At</div> | ||
<mix-date-time-picker formControlName="startAt"></mix-date-time-picker> | ||
</div> | ||
|
||
<div class="col-span-1"> | ||
<div class="mb-1 content-label">End At</div> | ||
<mix-date-time-picker formControlName="endAt"></mix-date-time-picker> | ||
</div> | ||
|
||
<div class="col-span-2 mt-2"> | ||
<div class="mb-1 content-label">Setting Schedule</div> | ||
<mix-input-cron [cron]="jobForm.value.cronExpression ?? ''" | ||
(cronChange)="jobForm.controls.cronExpression.patchValue($event)"></mix-input-cron> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="mix-dialog__footer"> | ||
<mix-button class="mr-auto" | ||
type="outline">Close</mix-button> | ||
|
||
<mix-button>Add</mix-button> | ||
type="outline" | ||
(click)="ref.close()">Close</mix-button> | ||
<div class="flex items-center mr-2"><mix-toggle formControlName="isStartNow"></mix-toggle>Run now</div> | ||
<mix-button [loading]="loadingState() === 'Loading'" | ||
(click)="submit()">Create Job</mix-button> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
8a933cd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
mix-portal-angular – ./
mix-portal-angular-git-master-phongcaos-projects.vercel.app
mix-portal-angular-phongcaos-projects.vercel.app
p4ps-portal.vercel.app