Adds the scheduler page to the web application

This commit is contained in:
BinaryAlley committed 2026-09-03 12:50:17 -07:00
1 parent 29c7d536e0
commit f882f9192f
67 files changed
+4133 -8

No files matched your search

@@ -0,0 +1,34 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Presentation.Web.Common.Enums.Scheduling;
using System;
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.DTO.Scheduling;
/// <summary>
/// Data transfer object for a scheduled job.
/// </summary>
/// <param name="Id">The unique identifier of the scheduled job.</param>
/// <param name="Name">The name of the scheduled job.</param>
/// <param name="TaskType">The type of the task executed by the scheduled job.</param>
/// <param name="ScheduleType">The type of the schedule of the scheduled job.</param>
/// <param name="IntervalMinutes">The interval in minutes of the schedule of the scheduled job.</param>
/// <param name="Hour">The hour of the schedule of the scheduled job.</param>
/// <param name="Minute">The minute of the schedule of the scheduled job.</param>
/// <param name="Status">The status of the scheduled job.</param>
/// <param name="LastStartedOnUtc">The optional date and time when the task of the scheduled job last started its execution.</param>
/// <param name="LastCompletedOnUtc">The optional date and time when the task of the scheduled job last completed its execution.</param>
[DebuggerDisplay("Id: {Id}, Name: {Name}, Status: {Status}")]
public record ScheduledJobDto(
Guid Id,
string Name,
ScheduledTaskType TaskType,
ScheduleType ScheduleType,
int? IntervalMinutes,
int? Hour,
int? Minute,
ScheduledJobStatus Status,
DateTime? LastStartedOnUtc,
DateTime? LastCompletedOnUtc
);
@@ -0,0 +1,26 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Presentation.Web.Common.Enums.Scheduling;
using System;
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.DTO.Scheduling;
/// <summary>
/// Data transfer object for an execution of the task of a scheduled job.
/// </summary>
/// <param name="Id">The unique identifier of the execution.</param>
/// <param name="ScheduledJobId">The unique identifier of the scheduled job whose task was executed.</param>
/// <param name="TaskType">The type of the task that was executed.</param>
/// <param name="IsCycleRun"><see langword="true"/> when the execution was triggered by the execution cycle of the scheduled job.</param>
/// <param name="StartedOnUtc">The date and time when the execution started.</param>
/// <param name="CompletedOnUtc">The optional date and time when the execution completed.</param>
[DebuggerDisplay("Id: {Id}, ScheduledJobId: {ScheduledJobId}")]
public record ScheduledJobExecutionDto(
Guid Id,
Guid ScheduledJobId,
ScheduledTaskType TaskType,
bool IsCycleRun,
DateTime StartedOnUtc,
DateTime? CompletedOnUtc
);
@@ -0,0 +1,17 @@
namespace Lumina.Presentation.Web.Common.Enums.Scheduling;
/// <summary>
/// Enumeration for the types of schedules of scheduled jobs.
/// </summary>
public enum ScheduleType
{
/// <summary>
/// The scheduled job repeats with an interval measured in minutes.
/// </summary>
WithIntervalInMinutes,
/// <summary>
/// The scheduled job repeats daily at a fixed hour and minute.
/// </summary>
DailyAtHourAndMinute
}
@@ -0,0 +1,27 @@
namespace Lumina.Presentation.Web.Common.Enums.Scheduling;
/// <summary>
/// Enumeration for the statuses of scheduled jobs.
/// </summary>
public enum ScheduledJobStatus
{
/// <summary>
/// The scheduled job was added, but its execution cycle was not started.
/// </summary>
Added,
/// <summary>
/// The execution cycle of the scheduled job is active, and the job is waiting for its next scheduled execution.
/// </summary>
Active,
/// <summary>
/// The task of the scheduled job is currently being executed.
/// </summary>
Running,
/// <summary>
/// The scheduled job finished its latest one time execution.
/// </summary>
Completed
}
@@ -0,0 +1,17 @@
namespace Lumina.Presentation.Web.Common.Enums.Scheduling;
/// <summary>
/// Enumeration for the types of tasks a scheduled job can execute.
/// </summary>
public enum ScheduledTaskType
{
/// <summary>
/// The scheduled job scans all enabled media libraries.
/// </summary>
ScanMediaLibraries,
/// <summary>
/// The scheduled job cleans the temporary directory of the application.
/// </summary>
CleanTemporaryFiles
}
@@ -0,0 +1,26 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Presentation.Web.Common.Enums.Scheduling;
using System;
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.Requests.Scheduling;
/// <summary>
/// Request for adding a scheduled job.
/// </summary>
/// <param name="Name">The name of the scheduled job. Required.</param>
/// <param name="TaskType">The type of the task executed by the scheduled job. Required.</param>
/// <param name="ScheduleType">The type of the schedule of the scheduled job. Required.</param>
/// <param name="IntervalMinutes">The interval in minutes of the schedule, when the schedule type is <see cref="ScheduleType.WithIntervalInMinutes"/>.</param>
/// <param name="Hour">The hour of the schedule, when the schedule type is <see cref="ScheduleType.DailyAtHourAndMinute"/>.</param>
/// <param name="Minute">The minute of the schedule, when the schedule type is <see cref="ScheduleType.DailyAtHourAndMinute"/>.</param>
[DebuggerDisplay("Name: {Name}")]
public record AddScheduledJobRequest(
string Name,
ScheduledTaskType TaskType,
ScheduleType ScheduleType,
int? IntervalMinutes,
int? Hour,
int? Minute
);
@@ -0,0 +1,15 @@
#region ========================================================================= USING =====================================================================================
using System;
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.Requests.Scheduling;
/// <summary>
/// Request for firing the task of a scheduled job once.
/// </summary>
/// <param name="ScheduledJobId">The unique identifier of the scheduled job whose task is fired. Required.</param>
[DebuggerDisplay("ScheduledJobId: {ScheduledJobId}")]
public record FireScheduledJobRequest(
Guid ScheduledJobId
);
@@ -0,0 +1,17 @@
#region ========================================================================= USING =====================================================================================
using System;
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.Requests.Scheduling;
/// <summary>
/// Request for getting the history of the executions of the tasks of scheduled jobs.
/// </summary>
/// <param name="From">The inclusive lower bound of the interval for which the history is requested. Optional.</param>
/// <param name="To">The inclusive upper bound of the interval for which the history is requested. Optional.</param>
[DebuggerDisplay("From: {From}, To: {To}")]
public record GetScheduledJobHistoryRequest(
DateTime? From,
DateTime? To
);
@@ -0,0 +1,15 @@
#region ========================================================================= USING =====================================================================================
using System;
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.Requests.Scheduling;
/// <summary>
/// Request for removing a scheduled job.
/// </summary>
/// <param name="ScheduledJobId">The unique identifier of the scheduled job to remove. Required.</param>
[DebuggerDisplay("ScheduledJobId: {ScheduledJobId}")]
public record RemoveScheduledJobRequest(
Guid ScheduledJobId
);
@@ -0,0 +1,15 @@
#region ========================================================================= USING =====================================================================================
using System;
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.Requests.Scheduling;
/// <summary>
/// Request for starting the execution cycle of a scheduled job.
/// </summary>
/// <param name="ScheduledJobId">The unique identifier of the scheduled job whose execution cycle is started. Required.</param>
[DebuggerDisplay("ScheduledJobId: {ScheduledJobId}")]
public record StartScheduledJobRequest(
Guid ScheduledJobId
);
@@ -0,0 +1,15 @@
#region ========================================================================= USING =====================================================================================
using System;
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.Requests.Scheduling;
/// <summary>
/// Request for stopping the execution cycle of a scheduled job.
/// </summary>
/// <param name="ScheduledJobId">The unique identifier of the scheduled job whose execution cycle is stopped. Required.</param>
[DebuggerDisplay("ScheduledJobId: {ScheduledJobId}")]
public record StopScheduledJobRequest(
Guid ScheduledJobId
);
@@ -0,0 +1,21 @@
namespace Lumina.Presentation.Web.Common.Routes;
/// <summary>
/// Class for the collection of remote API routes called by this Web application.
/// </summary>
public static partial class ApiRoutes
{
/// <summary>
/// Routes for the scheduled job endpoints of the remote API.
/// </summary>
public static class ScheduledJobs
{
public const string GET_SCHEDULED_JOBS = "scheduled-jobs";
public const string ADD_SCHEDULED_JOB = "scheduled-jobs";
public const string GET_SCHEDULED_JOB_HISTORY = "scheduled-jobs/history";
public const string REMOVE_SCHEDULED_JOB = "scheduled-jobs/{scheduledJobId}";
public const string START_SCHEDULED_JOB = "scheduled-jobs/{scheduledJobId}/start";
public const string STOP_SCHEDULED_JOB = "scheduled-jobs/{scheduledJobId}/stop";
public const string FIRE_SCHEDULED_JOB = "scheduled-jobs/{scheduledJobId}/fire";
}
}
@@ -17,6 +17,7 @@ public static partial class WebRoutes
public const string PROFILE_VIEW = "{culture}/auth/profile";
public const string ACCESS_DENIED_VIEW = "{culture}/auth/access-denied";
public const string LOGOUT = "{culture}/auth/logout";
public const string GET_API_ACCESS_TOKEN = "{culture}/auth/api-access-token";
public const string REGISTER = "{culture}/auth/api-register";
public const string LOGIN = "{culture}/auth/api-login";
public const string RECOVER_PASSWORD = "{culture}/auth/api-recover-password";
@@ -0,0 +1,22 @@
namespace Lumina.Presentation.Web.Common.Routes;
/// <summary>
/// Class for the collection of routes defined in the Web application.
/// </summary>
public static partial class WebRoutes
{
/// <summary>
/// Routes for the scheduled jobs pages.
/// </summary>
public static class Scheduler
{
public const string INDEX = "{culture}/admin/scheduled-jobs";
public const string GET_SCHEDULED_JOBS = "{culture}/admin/api-scheduled-jobs";
public const string ADD_SCHEDULED_JOB = "{culture}/admin/api-scheduled-jobs/add";
public const string GET_SCHEDULED_JOB_HISTORY = "{culture}/admin/api-scheduled-jobs/history";
public const string REMOVE_SCHEDULED_JOB = "{culture}/admin/api-scheduled-jobs/{scheduledJobId}";
public const string START_SCHEDULED_JOB = "{culture}/admin/api-scheduled-jobs/{scheduledJobId}/start";
public const string STOP_SCHEDULED_JOB = "{culture}/admin/api-scheduled-jobs/{scheduledJobId}/stop";
public const string FIRE_SCHEDULED_JOB = "{culture}/admin/api-scheduled-jobs/{scheduledJobId}/fire";
}
}
@@ -0,0 +1,56 @@
#region ========================================================================= USING =====================================================================================
using FastEndpoints;
using Lumina.Presentation.Web.Common.Api;
using Lumina.Presentation.Web.Common.Authorization;
using Lumina.Presentation.Web.Common.DTO.Scheduling;
using Lumina.Presentation.Web.Common.Requests.Scheduling;
using Lumina.Presentation.Web.Common.Routes;
using Lumina.Presentation.Web.Core.Endpoints.Common;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Http;
using System.Threading;
using System.Threading.Tasks;
#endregion
namespace Lumina.Presentation.Web.Core.Endpoints.Admin.Scheduler.AddScheduledJob;
/// <summary>
/// API endpoint for the <c>/{culture}/admin/api-scheduled-jobs/add</c> route.
/// </summary>
public class AddScheduledJobEndpoint : BaseEndpoint<AddScheduledJobRequest, IResult>
{
private readonly IApiHttpClient _apiHttpClient;
/// <summary>
/// Initializes a new instance of the <see cref="AddScheduledJobEndpoint"/> class.
/// </summary>
/// <param name="apiHttpClient">Injected service for interactions with the API.</param>
public AddScheduledJobEndpoint(IApiHttpClient apiHttpClient)
{
_apiHttpClient = apiHttpClient;
}
/// <summary>
/// Configures the endpoint.
/// </summary>
public override void Configure()
{
base.Configure();
Verbs(Http.POST);
Routes(WebRoutes.Scheduler.ADD_SCHEDULED_JOB);
DontAutoTag();
Options(options => options.WithTags("Admin"));
Policies(AuthorizationPolicies.REQUIRE_ADMIN_ROLE);
}
/// <summary>
/// Adds a scheduled job.
/// </summary>
/// <param name="request">The request object.</param>
/// <param name="cancellationToken">Cancellation token that can be used to stop the execution.</param>
public override async Task<IResult> ExecuteAsync(AddScheduledJobRequest request, CancellationToken cancellationToken)
{
ScheduledJobDto scheduledJob = await _apiHttpClient.PostAsync<ScheduledJobDto, AddScheduledJobRequest>(ApiRoutes.ScheduledJobs.ADD_SCHEDULED_JOB, request, cancellationToken).ConfigureAwait(false);
return JsonSuccess(scheduledJob);
}
}
@@ -0,0 +1,45 @@
#region ========================================================================= USING =====================================================================================
using FastEndpoints;
using Lumina.Presentation.Web.Common.DTO.Common;
using Lumina.Presentation.Web.Common.DTO.Scheduling;
using Lumina.Presentation.Web.Common.Enums.Scheduling;
using Lumina.Presentation.Web.Common.Requests.Scheduling;
using System;
using System.Diagnostics.CodeAnalysis;
#endregion
namespace Lumina.Presentation.Web.Core.Endpoints.Admin.Scheduler.AddScheduledJob;
/// <summary>
/// Class used for providing a textual description for the <see cref="AddScheduledJobEndpoint"/> endpoint, for OpenAPI.
/// </summary>
[ExcludeFromCodeCoverage]
public class AddScheduledJobEndpointSummary : Summary<AddScheduledJobEndpoint, AddScheduledJobRequest>
{
/// <summary>
/// Initializes a new instance of the <see cref="AddScheduledJobEndpointSummary"/> class.
/// </summary>
public AddScheduledJobEndpointSummary()
{
Summary = "Adds a scheduled job.";
Description = "Adds a scheduled job that can run its task periodically or once.";
RequestParam(r => r.Name, "The name of the scheduled job. Required.");
RequestParam(r => r.TaskType, "The type of the task executed by the scheduled job. Required.");
RequestParam(r => r.ScheduleType, "The type of the schedule of the scheduled job. Required.");
RequestParam(r => r.IntervalMinutes, "The interval in minutes of the schedule, when the schedule type is WithIntervalInMinutes.");
RequestParam(r => r.Hour, "The hour of the schedule, when the schedule type is DailyAtHourAndMinute.");
RequestParam(r => r.Minute, "The minute of the schedule, when the schedule type is DailyAtHourAndMinute.");
ExampleRequest = new AddScheduledJobRequest(
Name: "Rescan media libraries",
TaskType: ScheduledTaskType.ScanMediaLibraries,
ScheduleType: ScheduleType.DailyAtHourAndMinute,
IntervalMinutes: null,
Hour: 3,
Minute: 0
);
Response(200, "The scheduled job was successfully added.", example: new SuccessResponse<ScheduledJobDto>(true, default));
}
}
@@ -0,0 +1,55 @@
#region ========================================================================= USING =====================================================================================
using FastEndpoints;
using Lumina.Presentation.Web.Common.Api;
using Lumina.Presentation.Web.Common.Authorization;
using Lumina.Presentation.Web.Common.Requests.Scheduling;
using Lumina.Presentation.Web.Common.Routes;
using Lumina.Presentation.Web.Core.Endpoints.Common;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Http;
using System.Threading;
using System.Threading.Tasks;
#endregion
namespace Lumina.Presentation.Web.Core.Endpoints.Admin.Scheduler.FireScheduledJob;
/// <summary>
/// API endpoint for the <c>/{culture}/admin/api-scheduled-jobs/{scheduledJobId}/fire</c> route.
/// </summary>
public class FireScheduledJobEndpoint : BaseEndpoint<FireScheduledJobRequest, IResult>
{
private readonly IApiHttpClient _apiHttpClient;
/// <summary>
/// Initializes a new instance of the <see cref="FireScheduledJobEndpoint"/> class.
/// </summary>
/// <param name="apiHttpClient">Injected service for interactions with the API.</param>
public FireScheduledJobEndpoint(IApiHttpClient apiHttpClient)
{
_apiHttpClient = apiHttpClient;
}
/// <summary>
/// Configures the endpoint.
/// </summary>
public override void Configure()
{
base.Configure();
Verbs(Http.PUT);
Routes(WebRoutes.Scheduler.FIRE_SCHEDULED_JOB);
DontAutoTag();
Options(options => options.WithTags("Admin"));
Policies(AuthorizationPolicies.REQUIRE_ADMIN_ROLE);
}
/// <summary>
/// Fires the task of a scheduled job once, without affecting its execution cycle.
/// </summary>
/// <param name="request">The request object.</param>
/// <param name="cancellationToken">Cancellation token that can be used to stop the execution.</param>
public override async Task<IResult> ExecuteAsync(FireScheduledJobRequest request, CancellationToken cancellationToken)
{
await _apiHttpClient.PutAsync<Web.Common.Requests.Common.EmptyRequest, Web.Common.Requests.Common.EmptyRequest>(ApiRoutes.ScheduledJobs.FIRE_SCHEDULED_JOB.Replace("{scheduledJobId}", request.ScheduledJobId.ToString()), new Lumina.Presentation.Web.Common.Requests.Common.EmptyRequest(), cancellationToken).ConfigureAwait(false);
return JsonSuccess();
}
}
@@ -0,0 +1,31 @@
#region ========================================================================= USING =====================================================================================
using FastEndpoints;
using Lumina.Presentation.Web.Common.DTO.Common;
using Lumina.Presentation.Web.Common.Requests.Scheduling;
using System;
using System.Diagnostics.CodeAnalysis;
#endregion
namespace Lumina.Presentation.Web.Core.Endpoints.Admin.Scheduler.FireScheduledJob;
/// <summary>
/// Class used for providing a textual description for the <see cref="FireScheduledJobEndpoint"/> endpoint, for OpenAPI.
/// </summary>
[ExcludeFromCodeCoverage]
public class FireScheduledJobEndpointSummary : Summary<FireScheduledJobEndpoint, FireScheduledJobRequest>
{
/// <summary>
/// Initializes a new instance of the <see cref="FireScheduledJobEndpointSummary"/> class.
/// </summary>
public FireScheduledJobEndpointSummary()
{
Summary = "Fires the task of a scheduled job.";
Description = "Runs the task of the scheduled job identified by the request once immediately, without affecting its execution cycle.";
RequestParam(r => r.ScheduledJobId, "The unique identifier of the scheduled job whose task is fired. Required.");
ExampleRequest = new FireScheduledJobRequest(ScheduledJobId: Guid.NewGuid());
Response(200, "The task of the scheduled job was successfully fired.", example: new SuccessResponse(true));
}
}
@@ -0,0 +1,81 @@
#region ========================================================================= USING =====================================================================================
using FastEndpoints;
using Lumina.Presentation.Web.Common.Api;
using Lumina.Presentation.Web.Common.Authorization;
using Lumina.Presentation.Web.Common.DTO.Scheduling;
using Lumina.Presentation.Web.Common.Requests.Scheduling;
using Lumina.Presentation.Web.Common.Routes;
using Lumina.Presentation.Web.Core.Endpoints.Common;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Http;
using System;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
#endregion
namespace Lumina.Presentation.Web.Core.Endpoints.Admin.Scheduler.GetScheduledJobHistory;
/// <summary>
/// API endpoint for the <c>/{culture}/admin/api-scheduled-jobs/history</c> route.
/// </summary>
public class GetScheduledJobHistoryEndpoint : BaseEndpoint<GetScheduledJobHistoryRequest, IResult>
{
private readonly IApiHttpClient _apiHttpClient;
/// <summary>
/// Initializes a new instance of the <see cref="GetScheduledJobHistoryEndpoint"/> class.
/// </summary>
/// <param name="apiHttpClient">Injected service for interactions with the API.</param>
public GetScheduledJobHistoryEndpoint(IApiHttpClient apiHttpClient)
{
_apiHttpClient = apiHttpClient;
}
/// <summary>
/// Configures the endpoint.
/// </summary>
public override void Configure()
{
base.Configure();
Verbs(Http.GET);
Routes(WebRoutes.Scheduler.GET_SCHEDULED_JOB_HISTORY);
DontAutoTag();
Options(options => options.WithTags("Admin"));
Policies(AuthorizationPolicies.REQUIRE_ADMIN_ROLE);
}
/// <summary>
/// Gets the history of the executions of the tasks of scheduled jobs.
/// </summary>
/// <param name="request">The request object.</param>
/// <param name="cancellationToken">Cancellation token that can be used to stop the execution.</param>
public override async Task<IResult> ExecuteAsync(GetScheduledJobHistoryRequest request, CancellationToken cancellationToken)
{
ScheduledJobExecutionDto[] executions = await _apiHttpClient.GetAsync<ScheduledJobExecutionDto[]>(BuildHistoryEndpoint(request), cancellationToken).ConfigureAwait(false);
return JsonSuccess(executions);
}
/// <summary>
/// Builds the API endpoint used to get the history of the executions of the tasks of scheduled jobs, from the provided <paramref name="request"/>.
/// </summary>
/// <param name="request">The request object.</param>
/// <returns>The API endpoint to which the history request is sent.</returns>
private static string BuildHistoryEndpoint(GetScheduledJobHistoryRequest request)
{
StringBuilder endpoint = new(ApiRoutes.ScheduledJobs.GET_SCHEDULED_JOB_HISTORY);
if (request.From is not null || request.To is not null)
{
endpoint.Append('?');
if (request.From is not null)
endpoint.Append($"from={Uri.EscapeDataString(request.From.Value.ToString("o"))}");
if (request.To is not null)
{
if (request.From is not null)
endpoint.Append('&');
endpoint.Append($"to={Uri.EscapeDataString(request.To.Value.ToString("o"))}");
}
}
return endpoint.ToString();
}
}
@@ -0,0 +1,33 @@
#region ========================================================================= USING =====================================================================================
using FastEndpoints;
using Lumina.Presentation.Web.Common.DTO.Common;
using Lumina.Presentation.Web.Common.DTO.Scheduling;
using Lumina.Presentation.Web.Common.Requests.Scheduling;
using System;
using System.Diagnostics.CodeAnalysis;
#endregion
namespace Lumina.Presentation.Web.Core.Endpoints.Admin.Scheduler.GetScheduledJobHistory;
/// <summary>
/// Class used for providing a textual description for the <see cref="GetScheduledJobHistoryEndpoint"/> endpoint, for OpenAPI.
/// </summary>
[ExcludeFromCodeCoverage]
public class GetScheduledJobHistoryEndpointSummary : Summary<GetScheduledJobHistoryEndpoint, GetScheduledJobHistoryRequest>
{
/// <summary>
/// Initializes a new instance of the <see cref="GetScheduledJobHistoryEndpointSummary"/> class.
/// </summary>
public GetScheduledJobHistoryEndpointSummary()
{
Summary = "Gets the history of the executions of the tasks of scheduled jobs.";
Description = "Retrieves the executions of the tasks of scheduled jobs that started in the requested time interval.";
RequestParam(r => r.From, "The inclusive lower bound of the interval for which the history is requested. Optional.");
RequestParam(r => r.To, "The inclusive upper bound of the interval for which the history is requested. Optional.");
ExampleRequest = new GetScheduledJobHistoryRequest(From: DateTime.UtcNow.AddDays(-1), To: DateTime.UtcNow);
Response(200, "The execution history of the tasks of the scheduled jobs is returned.", example: new SuccessResponse<ScheduledJobExecutionDto[]>(true, default));
}
}
@@ -0,0 +1,55 @@
#region ========================================================================= USING =====================================================================================
using FastEndpoints;
using Lumina.Presentation.Web.Common.Api;
using Lumina.Presentation.Web.Common.Authorization;
using Lumina.Presentation.Web.Common.DTO.Scheduling;
using Lumina.Presentation.Web.Common.Routes;
using Lumina.Presentation.Web.Core.Endpoints.Common;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Http;
using System.Threading;
using System.Threading.Tasks;
#endregion
namespace Lumina.Presentation.Web.Core.Endpoints.Admin.Scheduler.GetScheduledJobs;
/// <summary>
/// API endpoint for the <c>/{culture}/admin/api-scheduled-jobs</c> route.
/// </summary>
public class GetScheduledJobsEndpoint : BaseEndpoint<EmptyRequest, IResult>
{
private readonly IApiHttpClient _apiHttpClient;
/// <summary>
/// Initializes a new instance of the <see cref="GetScheduledJobsEndpoint"/> class.
/// </summary>
/// <param name="apiHttpClient">Injected service for interactions with the API.</param>
public GetScheduledJobsEndpoint(IApiHttpClient apiHttpClient)
{
_apiHttpClient = apiHttpClient;
}
/// <summary>
/// Configures the endpoint.
/// </summary>
public override void Configure()
{
base.Configure();
Verbs(Http.GET);
Routes(WebRoutes.Scheduler.GET_SCHEDULED_JOBS);
DontAutoTag();
Options(options => options.WithTags("Admin"));
Policies(AuthorizationPolicies.REQUIRE_ADMIN_ROLE);
}
/// <summary>
/// Gets the list of scheduled jobs.
/// </summary>
/// <param name="request">The request object.</param>
/// <param name="cancellationToken">Cancellation token that can be used to stop the execution.</param>
public override async Task<IResult> ExecuteAsync(EmptyRequest request, CancellationToken cancellationToken)
{
ScheduledJobDto[] scheduledJobs = await _apiHttpClient.GetAsync<ScheduledJobDto[]>(ApiRoutes.ScheduledJobs.GET_SCHEDULED_JOBS, cancellationToken).ConfigureAwait(false);
return JsonSuccess(scheduledJobs);
}
}
@@ -0,0 +1,27 @@
#region ========================================================================= USING =====================================================================================
using FastEndpoints;
using Lumina.Presentation.Web.Common.DTO.Common;
using Lumina.Presentation.Web.Common.DTO.Scheduling;
using System;
using System.Diagnostics.CodeAnalysis;
#endregion
namespace Lumina.Presentation.Web.Core.Endpoints.Admin.Scheduler.GetScheduledJobs;
/// <summary>
/// Class used for providing a textual description for the <see cref="GetScheduledJobsEndpoint"/> endpoint, for OpenAPI.
/// </summary>
[ExcludeFromCodeCoverage]
public class GetScheduledJobsEndpointSummary : Summary<GetScheduledJobsEndpoint, EmptyRequest>
{
/// <summary>
/// Initializes a new instance of the <see cref="GetScheduledJobsEndpointSummary"/> class.
/// </summary>
public GetScheduledJobsEndpointSummary()
{
Summary = "Gets the list of scheduled jobs.";
Description = "Retrieves the list of scheduled jobs and their status.";
Response(200, "The list of scheduled jobs is returned.", example: new SuccessResponse<ScheduledJobDto[]>(true, default));
}
}
@@ -0,0 +1,55 @@
#region ========================================================================= USING =====================================================================================
using FastEndpoints;
using Lumina.Presentation.Web.Common.Api;
using Lumina.Presentation.Web.Common.Authorization;
using Lumina.Presentation.Web.Common.Requests.Scheduling;
using Lumina.Presentation.Web.Common.Routes;
using Lumina.Presentation.Web.Core.Endpoints.Common;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Http;
using System.Threading;
using System.Threading.Tasks;
#endregion
namespace Lumina.Presentation.Web.Core.Endpoints.Admin.Scheduler.RemoveScheduledJob;
/// <summary>
/// API endpoint for the <c>/{culture}/admin/api-scheduled-jobs/{scheduledJobId}</c> route.
/// </summary>
public class RemoveScheduledJobEndpoint : BaseEndpoint<RemoveScheduledJobRequest, IResult>
{
private readonly IApiHttpClient _apiHttpClient;
/// <summary>
/// Initializes a new instance of the <see cref="RemoveScheduledJobEndpoint"/> class.
/// </summary>
/// <param name="apiHttpClient">Injected service for interactions with the API.</param>
public RemoveScheduledJobEndpoint(IApiHttpClient apiHttpClient)
{
_apiHttpClient = apiHttpClient;
}
/// <summary>
/// Configures the endpoint.
/// </summary>
public override void Configure()
{
base.Configure();
Verbs(Http.DELETE);
Routes(WebRoutes.Scheduler.REMOVE_SCHEDULED_JOB);
DontAutoTag();
Options(options => options.WithTags("Admin"));
Policies(AuthorizationPolicies.REQUIRE_ADMIN_ROLE);
}
/// <summary>
/// Removes a scheduled job.
/// </summary>
/// <param name="request">The request object.</param>
/// <param name="cancellationToken">Cancellation token that can be used to stop the execution.</param>
public override async Task<IResult> ExecuteAsync(RemoveScheduledJobRequest request, CancellationToken cancellationToken)
{
await _apiHttpClient.DeleteAsync(ApiRoutes.ScheduledJobs.REMOVE_SCHEDULED_JOB.Replace("{scheduledJobId}", request.ScheduledJobId.ToString()), cancellationToken).ConfigureAwait(false);
return JsonSuccess();
}
}
@@ -0,0 +1,31 @@
#region ========================================================================= USING =====================================================================================
using FastEndpoints;
using Lumina.Presentation.Web.Common.DTO.Common;
using Lumina.Presentation.Web.Common.Requests.Scheduling;
using System;
using System.Diagnostics.CodeAnalysis;
#endregion
namespace Lumina.Presentation.Web.Core.Endpoints.Admin.Scheduler.RemoveScheduledJob;
/// <summary>
/// Class used for providing a textual description for the <see cref="RemoveScheduledJobEndpoint"/> endpoint, for OpenAPI.
/// </summary>
[ExcludeFromCodeCoverage]
public class RemoveScheduledJobEndpointSummary : Summary<RemoveScheduledJobEndpoint, RemoveScheduledJobRequest>
{
/// <summary>
/// Initializes a new instance of the <see cref="RemoveScheduledJobEndpointSummary"/> class.
/// </summary>
public RemoveScheduledJobEndpointSummary()
{
Summary = "Removes a scheduled job.";
Description = "Removes the scheduled job identified by the request, after stopping its execution cycle, if it has one.";
RequestParam(r => r.ScheduledJobId, "The unique identifier of the scheduled job to remove. Required.");
ExampleRequest = new RemoveScheduledJobRequest(ScheduledJobId: Guid.NewGuid());
Response(200, "The scheduled job was successfully removed.", example: new SuccessResponse(true));
}
}
@@ -0,0 +1,41 @@
#region ========================================================================= USING =====================================================================================
using FastEndpoints;
using Lumina.Presentation.Web.Common.Authorization;
using Lumina.Presentation.Web.Common.Routes;
using Lumina.Presentation.Web.Core.Endpoints.Common;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Http;
using System.Threading;
using System.Threading.Tasks;
#endregion
namespace Lumina.Presentation.Web.Core.Endpoints.Admin.Scheduler;
/// <summary>
/// API endpoint for the <c>/{culture}/admin/scheduled-jobs</c> route.
/// </summary>
public class SchedulerIndexViewEndpoint : BaseEndpoint<EmptyRequest, IResult>
{
/// <summary>
/// Configures the endpoint.
/// </summary>
public override void Configure()
{
base.Configure();
Verbs(Http.GET);
Routes(WebRoutes.Scheduler.INDEX);
DontAutoTag();
Options(options => options.WithTags("Admin"));
Policies(AuthorizationPolicies.REQUIRE_ADMIN_ROLE);
}
/// <summary>
/// Displays the scheduled jobs dashboard.
/// </summary>
/// <param name="request">The request object.</param>
/// <param name="cancellationToken">Cancellation token that can be used to stop the execution.</param>
public override Task<IResult> ExecuteAsync(EmptyRequest request, CancellationToken cancellationToken)
{
return Task.FromResult(View("/Core/Views/Admin/Scheduler.cshtml"));
}
}
@@ -0,0 +1,25 @@
#region ========================================================================= USING =====================================================================================
using FastEndpoints;
using System;
using System.Diagnostics.CodeAnalysis;
#endregion
namespace Lumina.Presentation.Web.Core.Endpoints.Admin.Scheduler;
/// <summary>
/// Class used for providing a textual description for the <see cref="SchedulerIndexViewEndpoint"/> endpoint, for OpenAPI.
/// </summary>
[ExcludeFromCodeCoverage]
public class SchedulerIndexViewEndpointSummary : Summary<SchedulerIndexViewEndpoint, EmptyRequest>
{
/// <summary>
/// Initializes a new instance of the <see cref="SchedulerIndexViewEndpointSummary"/> class.
/// </summary>
public SchedulerIndexViewEndpointSummary()
{
Summary = "Renders the scheduled jobs dashboard view.";
Description = "Renders the view for managing the scheduled jobs and their execution cycle.";
Response(200, "The view for managing the scheduled jobs and their execution cycle is rendered.");
}
}
@@ -0,0 +1,55 @@
#region ========================================================================= USING =====================================================================================
using FastEndpoints;
using Lumina.Presentation.Web.Common.Api;
using Lumina.Presentation.Web.Common.Authorization;
using Lumina.Presentation.Web.Common.Requests.Scheduling;
using Lumina.Presentation.Web.Common.Routes;
using Lumina.Presentation.Web.Core.Endpoints.Common;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Http;
using System.Threading;
using System.Threading.Tasks;
#endregion
namespace Lumina.Presentation.Web.Core.Endpoints.Admin.Scheduler.StartScheduledJob;
/// <summary>
/// API endpoint for the <c>/{culture}/admin/api-scheduled-jobs/{scheduledJobId}/start</c> route.
/// </summary>
public class StartScheduledJobEndpoint : BaseEndpoint<StartScheduledJobRequest, IResult>
{
private readonly IApiHttpClient _apiHttpClient;
/// <summary>
/// Initializes a new instance of the <see cref="StartScheduledJobEndpoint"/> class.
/// </summary>
/// <param name="apiHttpClient">Injected service for interactions with the API.</param>
public StartScheduledJobEndpoint(IApiHttpClient apiHttpClient)
{
_apiHttpClient = apiHttpClient;
}
/// <summary>
/// Configures the endpoint.
/// </summary>
public override void Configure()
{
base.Configure();
Verbs(Http.PUT);
Routes(WebRoutes.Scheduler.START_SCHEDULED_JOB);
DontAutoTag();
Options(options => options.WithTags("Admin"));
Policies(AuthorizationPolicies.REQUIRE_ADMIN_ROLE);
}
/// <summary>
/// Starts the execution cycle of a scheduled job.
/// </summary>
/// <param name="request">The request object.</param>
/// <param name="cancellationToken">Cancellation token that can be used to stop the execution.</param>
public override async Task<IResult> ExecuteAsync(StartScheduledJobRequest request, CancellationToken cancellationToken)
{
await _apiHttpClient.PutAsync<Web.Common.Requests.Common.EmptyRequest, Web.Common.Requests.Common.EmptyRequest>(ApiRoutes.ScheduledJobs.START_SCHEDULED_JOB.Replace("{scheduledJobId}", request.ScheduledJobId.ToString()), new Lumina.Presentation.Web.Common.Requests.Common.EmptyRequest(), cancellationToken).ConfigureAwait(false);
return JsonSuccess();
}
}
@@ -0,0 +1,31 @@
#region ========================================================================= USING =====================================================================================
using FastEndpoints;
using Lumina.Presentation.Web.Common.DTO.Common;
using Lumina.Presentation.Web.Common.Requests.Scheduling;
using System;
using System.Diagnostics.CodeAnalysis;
#endregion
namespace Lumina.Presentation.Web.Core.Endpoints.Admin.Scheduler.StartScheduledJob;
/// <summary>
/// Class used for providing a textual description for the <see cref="StartScheduledJobEndpoint"/> endpoint, for OpenAPI.
/// </summary>
[ExcludeFromCodeCoverage]
public class StartScheduledJobEndpointSummary : Summary<StartScheduledJobEndpoint, StartScheduledJobRequest>
{
/// <summary>
/// Initializes a new instance of the <see cref="StartScheduledJobEndpointSummary"/> class.
/// </summary>
public StartScheduledJobEndpointSummary()
{
Summary = "Starts the execution cycle of a scheduled job.";
Description = "Starts the execution cycle of the scheduled job identified by the request, which runs its task once immediately and then on its schedule.";
RequestParam(r => r.ScheduledJobId, "The unique identifier of the scheduled job whose execution cycle is started. Required.");
ExampleRequest = new StartScheduledJobRequest(ScheduledJobId: Guid.NewGuid());
Response(200, "The execution cycle of the scheduled job was successfully started.", example: new SuccessResponse(true));
}
}
@@ -0,0 +1,55 @@
#region ========================================================================= USING =====================================================================================
using FastEndpoints;
using Lumina.Presentation.Web.Common.Api;
using Lumina.Presentation.Web.Common.Authorization;
using Lumina.Presentation.Web.Common.Requests.Scheduling;
using Lumina.Presentation.Web.Common.Routes;
using Lumina.Presentation.Web.Core.Endpoints.Common;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Http;
using System.Threading;
using System.Threading.Tasks;
#endregion
namespace Lumina.Presentation.Web.Core.Endpoints.Admin.Scheduler.StopScheduledJob;
/// <summary>
/// API endpoint for the <c>/{culture}/admin/api-scheduled-jobs/{scheduledJobId}/stop</c> route.
/// </summary>
public class StopScheduledJobEndpoint : BaseEndpoint<StopScheduledJobRequest, IResult>
{
private readonly IApiHttpClient _apiHttpClient;
/// <summary>
/// Initializes a new instance of the <see cref="StopScheduledJobEndpoint"/> class.
/// </summary>
/// <param name="apiHttpClient">Injected service for interactions with the API.</param>
public StopScheduledJobEndpoint(IApiHttpClient apiHttpClient)
{
_apiHttpClient = apiHttpClient;
}
/// <summary>
/// Configures the endpoint.
/// </summary>
public override void Configure()
{
base.Configure();
Verbs(Http.PUT);
Routes(WebRoutes.Scheduler.STOP_SCHEDULED_JOB);
DontAutoTag();
Options(options => options.WithTags("Admin"));
Policies(AuthorizationPolicies.REQUIRE_ADMIN_ROLE);
}
/// <summary>
/// Stops the execution cycle of a scheduled job.
/// </summary>
/// <param name="request">The request object.</param>
/// <param name="cancellationToken">Cancellation token that can be used to stop the execution.</param>
public override async Task<IResult> ExecuteAsync(StopScheduledJobRequest request, CancellationToken cancellationToken)
{
await _apiHttpClient.PutAsync<Web.Common.Requests.Common.EmptyRequest, Web.Common.Requests.Common.EmptyRequest>(ApiRoutes.ScheduledJobs.STOP_SCHEDULED_JOB.Replace("{scheduledJobId}", request.ScheduledJobId.ToString()), new Lumina.Presentation.Web.Common.Requests.Common.EmptyRequest(), cancellationToken).ConfigureAwait(false);
return JsonSuccess();
}
}
@@ -0,0 +1,31 @@
#region ========================================================================= USING =====================================================================================
using FastEndpoints;
using Lumina.Presentation.Web.Common.DTO.Common;
using Lumina.Presentation.Web.Common.Requests.Scheduling;
using System;
using System.Diagnostics.CodeAnalysis;
#endregion
namespace Lumina.Presentation.Web.Core.Endpoints.Admin.Scheduler.StopScheduledJob;
/// <summary>
/// Class used for providing a textual description for the <see cref="StopScheduledJobEndpoint"/> endpoint, for OpenAPI.
/// </summary>
[ExcludeFromCodeCoverage]
public class StopScheduledJobEndpointSummary : Summary<StopScheduledJobEndpoint, StopScheduledJobRequest>
{
/// <summary>
/// Initializes a new instance of the <see cref="StopScheduledJobEndpointSummary"/> class.
/// </summary>
public StopScheduledJobEndpointSummary()
{
Summary = "Stops the execution cycle of a scheduled job.";
Description = "Stops the execution cycle of the scheduled job identified by the request, without removing it.";
RequestParam(r => r.ScheduledJobId, "The unique identifier of the scheduled job whose execution cycle is stopped. Required.");
ExampleRequest = new StopScheduledJobRequest(ScheduledJobId: Guid.NewGuid());
Response(200, "The execution cycle of the scheduled job was successfully stopped.", example: new SuccessResponse(true));
}
}
@@ -0,0 +1,56 @@
#region ========================================================================= USING =====================================================================================
using FastEndpoints;
using Lumina.Presentation.Web.Common.Routes;
using Lumina.Presentation.Web.Core.Endpoints.Common;
using Microsoft.AspNetCore.Http;
using System.Security.Claims;
using System.Threading;
using System.Threading.Tasks;
#endregion
namespace Lumina.Presentation.Web.Core.Endpoints.UsersManagement.Authentication.GetApiAccessToken;
/// <summary>
/// API endpoint for the <c>/{culture}/auth/api-access-token</c> route.
/// </summary>
public class GetApiAccessTokenEndpoint : BaseEndpoint<EmptyRequest, IResult>
{
/// <summary>
/// Configures the endpoint.
/// </summary>
public override void Configure()
{
base.Configure();
Verbs(Http.GET);
Routes(WebRoutes.Authentication.GET_API_ACCESS_TOKEN);
DontAutoTag();
Options(options => options.WithTags("Authentication"));
}
/// <summary>
/// Gets the API access token of the current user, used to authenticate the real time SignalR connections of the current page.
/// </summary>
/// <param name="request">The request object.</param>
/// <param name="cancellationToken">Cancellation token that can be used to stop the execution.</param>
public override Task<IResult> ExecuteAsync(EmptyRequest request, CancellationToken cancellationToken)
{
// The response carries a credential, so it must never be cached by the browser or by any intermediary.
HttpContext.Response.Headers.CacheControl = "no-store";
HttpContext.Response.Headers.Pragma = "no-cache";
if (User.Identity?.IsAuthenticated is not true)
return Task.FromResult(Results.Problem(
statusCode: StatusCodes.Status401Unauthorized,
title: "Unauthorized",
detail: "You are not authorized"));
string? token = User.FindFirst("Token")?.Value;
if (string.IsNullOrEmpty(token))
return Task.FromResult(Results.Problem(
statusCode: StatusCodes.Status401Unauthorized,
title: "Unauthorized",
detail: "The API access token of the current user is not available"));
return Task.FromResult(JsonSuccess(new { token }));
}
}
@@ -0,0 +1,33 @@
#region ========================================================================= USING =====================================================================================
using FastEndpoints;
using System;
using System.Diagnostics.CodeAnalysis;
#endregion
namespace Lumina.Presentation.Web.Core.Endpoints.UsersManagement.Authentication.GetApiAccessToken;
/// <summary>
/// Class used for providing a textual description for the <see cref="GetApiAccessTokenEndpoint"/> endpoint, for OpenAPI.
/// </summary>
[ExcludeFromCodeCoverage]
public class GetApiAccessTokenEndpointSummary : Summary<GetApiAccessTokenEndpoint, EmptyRequest>
{
/// <summary>
/// Initializes a new instance of the <see cref="GetApiAccessTokenEndpointSummary"/> class.
/// </summary>
public GetApiAccessTokenEndpointSummary()
{
Summary = "Gets the API access token of the current user.";
Description = "Gets the API access token of the current user, used to authenticate the real time SignalR connections of the current page.";
Response(200, "The API access token of the current user is returned.",
example: new
{
success = true,
data = new
{
token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxIn0.example"
}
});
}
}
@@ -738,4 +738,43 @@
<data name="PluginArchiveNotReadable" xml:space="preserve">
<value>تعذّرت قراءة أرشيف المكوّن الإضافي المرفوع!</value>
</data>
<data name="ScheduledJobNotFound" xml:space="preserve">
<value>لم يتم العثور على المهمة المجدولة!</value>
</data>
<data name="ScheduledJobNameCannotBeEmpty" xml:space="preserve">
<value>لا يمكن أن يكون اسم المهمة المجدولة فارغاً!</value>
</data>
<data name="IntervalMinutesMustBePositive" xml:space="preserve">
<value>يجب أن تكون دقائق الفاصل رقماً موجباً!</value>
</data>
<data name="HourMustBeBetweenZeroAndTwentyThree" xml:space="preserve">
<value>يجب أن تكون الساعة بين 0 و 23!</value>
</data>
<data name="MinuteMustBeBetweenZeroAndFiftyNine" xml:space="preserve">
<value>يجب أن تكون الدقيقة بين 0 و 59!</value>
</data>
<data name="ScheduledJobAlreadyExists" xml:space="preserve">
<value>المهمة المجدولة بهذا الاسم موجودة بالفعل!</value>
</data>
<data name="ScheduledJobExecutionAlreadyExists" xml:space="preserve">
<value>The execution of the scheduled job already exists!</value>
</data>
<data name="ScheduledJobExecutionNotFound" xml:space="preserve">
<value>لم يتم العثور على تنفيذ المهمة المجدولة!</value>
</data>
<data name="ScheduledJobCycleAlreadyStarted" xml:space="preserve">
<value>تم بدء دورة تنفيذ المهمة المجدولة بالفعل!</value>
</data>
<data name="ScheduledJobNotStarted" xml:space="preserve">
<value>لم يتم بدء دورة تنفيذ المهمة المجدولة!</value>
</data>
<data name="ScheduledJobAlreadyRunning" xml:space="preserve">
<value>المهمة المجدولة قيد التشغيل بالفعل!</value>
</data>
<data name="CanOnlyCompleteRunningScheduledJob" xml:space="preserve">
<value>يمكن إكمال المهمة المجدولة قيد التشغيل فقط!</value>
</data>
<data name="InvalidScheduleType" xml:space="preserve">
<value>نوع الجدول غير صالح!</value>
</data>
</root>
@@ -738,4 +738,43 @@
<data name="PluginArchiveNotReadable" xml:space="preserve">
<value>Das hochgeladene Plugin-Archiv konnte nicht gelesen werden!</value>
</data>
<data name="ScheduledJobNotFound" xml:space="preserve">
<value>Der geplante Auftrag wurde nicht gefunden!</value>
</data>
<data name="ScheduledJobNameCannotBeEmpty" xml:space="preserve">
<value>Der Name des geplanten Auftrags darf nicht leer sein!</value>
</data>
<data name="IntervalMinutesMustBePositive" xml:space="preserve">
<value>Die Intervallminuten müssen eine positive Zahl sein!</value>
</data>
<data name="HourMustBeBetweenZeroAndTwentyThree" xml:space="preserve">
<value>Die Stunde muss zwischen 0 und 23 liegen!</value>
</data>
<data name="MinuteMustBeBetweenZeroAndFiftyNine" xml:space="preserve">
<value>Die Minute muss zwischen 0 und 59 liegen!</value>
</data>
<data name="ScheduledJobAlreadyExists" xml:space="preserve">
<value>Ein geplanter Auftrag mit diesem Namen ist bereits vorhanden!</value>
</data>
<data name="ScheduledJobExecutionAlreadyExists" xml:space="preserve">
<value>The execution of the scheduled job already exists!</value>
</data>
<data name="ScheduledJobExecutionNotFound" xml:space="preserve">
<value>Die Ausführung des geplanten Auftrags wurde nicht gefunden!</value>
</data>
<data name="ScheduledJobCycleAlreadyStarted" xml:space="preserve">
<value>Der Ausführungszyklus des geplanten Auftrags wurde bereits gestartet!</value>
</data>
<data name="ScheduledJobNotStarted" xml:space="preserve">
<value>Der Ausführungszyklus des geplanten Auftrags wurde nicht gestartet!</value>
</data>
<data name="ScheduledJobAlreadyRunning" xml:space="preserve">
<value>Der geplante Auftrag wird bereits ausgeführt!</value>
</data>
<data name="CanOnlyCompleteRunningScheduledJob" xml:space="preserve">
<value>Nur ein laufender geplanter Auftrag kann abgeschlossen werden!</value>
</data>
<data name="InvalidScheduleType" xml:space="preserve">
<value>Der Zeitplantyp ist ungültig!</value>
</data>
</root>
@@ -738,4 +738,43 @@
<data name="PluginArchiveNotReadable" xml:space="preserve">
<value>The plugin archive could not be read!</value>
</data>
<data name="ScheduledJobNotFound" xml:space="preserve">
<value>The scheduled job was not found!</value>
</data>
<data name="ScheduledJobNameCannotBeEmpty" xml:space="preserve">
<value>The name of the scheduled job cannot be empty!</value>
</data>
<data name="IntervalMinutesMustBePositive" xml:space="preserve">
<value>The interval minutes must be a positive number!</value>
</data>
<data name="HourMustBeBetweenZeroAndTwentyThree" xml:space="preserve">
<value>The hour must be between 0 and 23!</value>
</data>
<data name="MinuteMustBeBetweenZeroAndFiftyNine" xml:space="preserve">
<value>The minute must be between 0 and 59!</value>
</data>
<data name="ScheduledJobAlreadyExists" xml:space="preserve">
<value>A scheduled job with this name already exists!</value>
</data>
<data name="ScheduledJobExecutionAlreadyExists" xml:space="preserve">
<value>The execution of the scheduled job already exists!</value>
</data>
<data name="ScheduledJobExecutionNotFound" xml:space="preserve">
<value>The execution of the scheduled job was not found!</value>
</data>
<data name="ScheduledJobCycleAlreadyStarted" xml:space="preserve">
<value>The execution cycle of the scheduled job has already been started!</value>
</data>
<data name="ScheduledJobNotStarted" xml:space="preserve">
<value>The execution cycle of the scheduled job has not been started!</value>
</data>
<data name="ScheduledJobAlreadyRunning" xml:space="preserve">
<value>The scheduled job is already running!</value>
</data>
<data name="CanOnlyCompleteRunningScheduledJob" xml:space="preserve">
<value>Only a running scheduled job can be completed!</value>
</data>
<data name="InvalidScheduleType" xml:space="preserve">
<value>The schedule type is invalid!</value>
</data>
</root>
@@ -738,4 +738,43 @@
<data name="PluginArchiveNotReadable" xml:space="preserve">
<value>No se pudo leer el archivo del plugin subido!</value>
</data>
<data name="ScheduledJobNotFound" xml:space="preserve">
<value>La tarea programada no fue encontrada!</value>
</data>
<data name="ScheduledJobNameCannotBeEmpty" xml:space="preserve">
<value>El nombre de la tarea programada no puede estar vacío!</value>
</data>
<data name="IntervalMinutesMustBePositive" xml:space="preserve">
<value>Los minutos del intervalo deben ser un número positivo!</value>
</data>
<data name="HourMustBeBetweenZeroAndTwentyThree" xml:space="preserve">
<value>La hora debe estar entre 0 y 23!</value>
</data>
<data name="MinuteMustBeBetweenZeroAndFiftyNine" xml:space="preserve">
<value>El minuto debe estar entre 0 y 59!</value>
</data>
<data name="ScheduledJobAlreadyExists" xml:space="preserve">
<value>Ya existe una tarea programada con este nombre!</value>
</data>
<data name="ScheduledJobExecutionAlreadyExists" xml:space="preserve">
<value>The execution of the scheduled job already exists!</value>
</data>
<data name="ScheduledJobExecutionNotFound" xml:space="preserve">
<value>No se encontró la ejecución de la tarea programada!</value>
</data>
<data name="ScheduledJobCycleAlreadyStarted" xml:space="preserve">
<value>El ciclo de ejecución de la tarea programada ya se ha iniciado!</value>
</data>
<data name="ScheduledJobNotStarted" xml:space="preserve">
<value>El ciclo de ejecución de la tarea programada no se ha iniciado!</value>
</data>
<data name="ScheduledJobAlreadyRunning" xml:space="preserve">
<value>La tarea programada ya se está ejecutando!</value>
</data>
<data name="CanOnlyCompleteRunningScheduledJob" xml:space="preserve">
<value>Solo se puede completar una tarea programada en ejecución!</value>
</data>
<data name="InvalidScheduleType" xml:space="preserve">
<value>El tipo de programación no es válido!</value>
</data>
</root>
@@ -738,4 +738,43 @@
<data name="PluginArchiveNotReadable" xml:space="preserve">
<value>L'archive du plugin téléversé n a pas pu être lue !</value>
</data>
<data name="ScheduledJobNotFound" xml:space="preserve">
<value>Le travail planifié est introuvable !</value>
</data>
<data name="ScheduledJobNameCannotBeEmpty" xml:space="preserve">
<value>Le nom du travail planifié ne peut pas être vide !</value>
</data>
<data name="IntervalMinutesMustBePositive" xml:space="preserve">
<value>Les minutes de l'intervalle doivent être un nombre positif !</value>
</data>
<data name="HourMustBeBetweenZeroAndTwentyThree" xml:space="preserve">
<value>L'heure doit être comprise entre 0 et 23 !</value>
</data>
<data name="MinuteMustBeBetweenZeroAndFiftyNine" xml:space="preserve">
<value>La minute doit être comprise entre 0 et 59 !</value>
</data>
<data name="ScheduledJobAlreadyExists" xml:space="preserve">
<value>Un travail planifié portant ce nom existe déjà !</value>
</data>
<data name="ScheduledJobExecutionAlreadyExists" xml:space="preserve">
<value>The execution of the scheduled job already exists!</value>
</data>
<data name="ScheduledJobExecutionNotFound" xml:space="preserve">
<value>L'exécution du travail planifié est introuvable !</value>
</data>
<data name="ScheduledJobCycleAlreadyStarted" xml:space="preserve">
<value>Le cycle d'exécution du travail planifié a déjà été démarré !</value>
</data>
<data name="ScheduledJobNotStarted" xml:space="preserve">
<value>Le cycle d'exécution du travail planifié n'a pas été démarré !</value>
</data>
<data name="ScheduledJobAlreadyRunning" xml:space="preserve">
<value>Le travail planifié est déjà en cours d'exécution !</value>
</data>
<data name="CanOnlyCompleteRunningScheduledJob" xml:space="preserve">
<value>Seul un travail planifié en cours d'exécution peut être terminé !</value>
</data>
<data name="InvalidScheduleType" xml:space="preserve">
<value>Le type de planification n'est pas valide !</value>
</data>
</root>
@@ -738,4 +738,43 @@
<data name="PluginArchiveNotReadable" xml:space="preserve">
<value>Non è stato possibile leggere l archivio del plugin caricato!</value>
</data>
<data name="ScheduledJobNotFound" xml:space="preserve">
<value>Il processo pianificato non è stato trovato!</value>
</data>
<data name="ScheduledJobNameCannotBeEmpty" xml:space="preserve">
<value>Il nome del processo pianificato non può essere vuoto!</value>
</data>
<data name="IntervalMinutesMustBePositive" xml:space="preserve">
<value>I minuti dell'intervallo devono essere un numero positivo!</value>
</data>
<data name="HourMustBeBetweenZeroAndTwentyThree" xml:space="preserve">
<value>L'ora deve essere compresa tra 0 e 23!</value>
</data>
<data name="MinuteMustBeBetweenZeroAndFiftyNine" xml:space="preserve">
<value>Il minuto deve essere compreso tra 0 e 59!</value>
</data>
<data name="ScheduledJobAlreadyExists" xml:space="preserve">
<value>Esiste già un processo pianificato con questo nome!</value>
</data>
<data name="ScheduledJobExecutionAlreadyExists" xml:space="preserve">
<value>The execution of the scheduled job already exists!</value>
</data>
<data name="ScheduledJobExecutionNotFound" xml:space="preserve">
<value>L'esecuzione del processo pianificato non è stata trovata!</value>
</data>
<data name="ScheduledJobCycleAlreadyStarted" xml:space="preserve">
<value>Il ciclo di esecuzione del processo pianificato è già stato avviato!</value>
</data>
<data name="ScheduledJobNotStarted" xml:space="preserve">
<value>Il ciclo di esecuzione del processo pianificato non è stato avviato!</value>
</data>
<data name="ScheduledJobAlreadyRunning" xml:space="preserve">
<value>Il processo pianificato è già in esecuzione!</value>
</data>
<data name="CanOnlyCompleteRunningScheduledJob" xml:space="preserve">
<value>Solo un processo pianificato in esecuzione può essere completato!</value>
</data>
<data name="InvalidScheduleType" xml:space="preserve">
<value>Il tipo di pianificazione non è valido!</value>
</data>
</root>
@@ -738,4 +738,43 @@
<data name="PluginArchiveNotReadable" xml:space="preserve">
<value>アップロードされたプラグインアーカイブを読み取れませんでした!</value>
</data>
<data name="ScheduledJobNotFound" xml:space="preserve">
<value>スケジュールされたジョブが見つかりません!</value>
</data>
<data name="ScheduledJobNameCannotBeEmpty" xml:space="preserve">
<value>スケジュールされたジョブの名前を空にすることはできません!</value>
</data>
<data name="IntervalMinutesMustBePositive" xml:space="preserve">
<value>間隔の分数は正の数である必要があります!</value>
</data>
<data name="HourMustBeBetweenZeroAndTwentyThree" xml:space="preserve">
<value>時間は0から23の間である必要があります!</value>
</data>
<data name="MinuteMustBeBetweenZeroAndFiftyNine" xml:space="preserve">
<value>分は0から59の間である必要があります!</value>
</data>
<data name="ScheduledJobAlreadyExists" xml:space="preserve">
<value>この名前のスケジュールされたジョブは既に存在します!</value>
</data>
<data name="ScheduledJobExecutionAlreadyExists" xml:space="preserve">
<value>The execution of the scheduled job already exists!</value>
</data>
<data name="ScheduledJobExecutionNotFound" xml:space="preserve">
<value>スケジュールされたジョブの実行が見つかりません!</value>
</data>
<data name="ScheduledJobCycleAlreadyStarted" xml:space="preserve">
<value>スケジュールされたジョブの実行サイクルは既に開始されています!</value>
</data>
<data name="ScheduledJobNotStarted" xml:space="preserve">
<value>スケジュールされたジョブの実行サイクルは開始されていません!</value>
</data>
<data name="ScheduledJobAlreadyRunning" xml:space="preserve">
<value>スケジュールされたジョブは既に実行中です!</value>
</data>
<data name="CanOnlyCompleteRunningScheduledJob" xml:space="preserve">
<value>実行中のスケジュールされたジョブのみ完了できます!</value>
</data>
<data name="InvalidScheduleType" xml:space="preserve">
<value>スケジュールタイプが無効です!</value>
</data>
</root>
@@ -738,4 +738,43 @@
<data name="PluginArchiveNotReadable" xml:space="preserve">
<value>The plugin archive could not be read!</value>
</data>
<data name="ScheduledJobNotFound" xml:space="preserve">
<value>The scheduled job was not found!</value>
</data>
<data name="ScheduledJobNameCannotBeEmpty" xml:space="preserve">
<value>The name of the scheduled job cannot be empty!</value>
</data>
<data name="IntervalMinutesMustBePositive" xml:space="preserve">
<value>The interval minutes must be a positive number!</value>
</data>
<data name="HourMustBeBetweenZeroAndTwentyThree" xml:space="preserve">
<value>The hour must be between 0 and 23!</value>
</data>
<data name="MinuteMustBeBetweenZeroAndFiftyNine" xml:space="preserve">
<value>The minute must be between 0 and 59!</value>
</data>
<data name="ScheduledJobAlreadyExists" xml:space="preserve">
<value>A scheduled job with this name already exists!</value>
</data>
<data name="ScheduledJobExecutionAlreadyExists" xml:space="preserve">
<value>The execution of the scheduled job already exists!</value>
</data>
<data name="ScheduledJobExecutionNotFound" xml:space="preserve">
<value>The execution of the scheduled job was not found!</value>
</data>
<data name="ScheduledJobCycleAlreadyStarted" xml:space="preserve">
<value>The execution cycle of the scheduled job has already been started!</value>
</data>
<data name="ScheduledJobNotStarted" xml:space="preserve">
<value>The execution cycle of the scheduled job has not been started!</value>
</data>
<data name="ScheduledJobAlreadyRunning" xml:space="preserve">
<value>The scheduled job is already running!</value>
</data>
<data name="CanOnlyCompleteRunningScheduledJob" xml:space="preserve">
<value>Only a running scheduled job can be completed!</value>
</data>
<data name="InvalidScheduleType" xml:space="preserve">
<value>The schedule type is invalid!</value>
</data>
</root>
@@ -738,4 +738,43 @@
<data name="PluginArchiveNotReadable" xml:space="preserve">
<value>Arhiva pluginului încărcat nu a putut fi citită!</value>
</data>
<data name="ScheduledJobNotFound" xml:space="preserve">
<value>Jobul programat nu a fost găsit!</value>
</data>
<data name="ScheduledJobNameCannotBeEmpty" xml:space="preserve">
<value>Numele jobului programat nu poate fi gol!</value>
</data>
<data name="IntervalMinutesMustBePositive" xml:space="preserve">
<value>Minutele intervalului trebuie să fie un număr pozitiv!</value>
</data>
<data name="HourMustBeBetweenZeroAndTwentyThree" xml:space="preserve">
<value>Ora trebuie să fie între 0 și 23!</value>
</data>
<data name="MinuteMustBeBetweenZeroAndFiftyNine" xml:space="preserve">
<value>Minutul trebuie să fie între 0 și 59!</value>
</data>
<data name="ScheduledJobAlreadyExists" xml:space="preserve">
<value>Există deja un job programat cu acest nume!</value>
</data>
<data name="ScheduledJobExecutionAlreadyExists" xml:space="preserve">
<value>The execution of the scheduled job already exists!</value>
</data>
<data name="ScheduledJobExecutionNotFound" xml:space="preserve">
<value>Execuția jobului programat nu a fost găsită!</value>
</data>
<data name="ScheduledJobCycleAlreadyStarted" xml:space="preserve">
<value>Ciclul de execuție al jobului programat a fost deja pornit!</value>
</data>
<data name="ScheduledJobNotStarted" xml:space="preserve">
<value>Ciclul de execuție al jobului programat nu a fost pornit!</value>
</data>
<data name="ScheduledJobAlreadyRunning" xml:space="preserve">
<value>Jobul programat rulează deja!</value>
</data>
<data name="CanOnlyCompleteRunningScheduledJob" xml:space="preserve">
<value>Doar un job programat în execuție poate fi finalizat!</value>
</data>
<data name="InvalidScheduleType" xml:space="preserve">
<value>Tipul de programare este invalid!</value>
</data>
</root>
@@ -738,4 +738,43 @@
<data name="PluginArchiveNotReadable" xml:space="preserve">
<value>Не вдалося прочитати архів завантаженого плагіна!</value>
</data>
<data name="ScheduledJobNotFound" xml:space="preserve">
<value>Плановане завдання не знайдено!</value>
</data>
<data name="ScheduledJobNameCannotBeEmpty" xml:space="preserve">
<value>Назва планованого завдання не може бути порожньою!</value>
</data>
<data name="IntervalMinutesMustBePositive" xml:space="preserve">
<value>Хвилини інтервалу повинні бути додатним числом!</value>
</data>
<data name="HourMustBeBetweenZeroAndTwentyThree" xml:space="preserve">
<value>Година повинна бути між 0 та 23!</value>
</data>
<data name="MinuteMustBeBetweenZeroAndFiftyNine" xml:space="preserve">
<value>Хвилина повинна бути між 0 та 59!</value>
</data>
<data name="ScheduledJobAlreadyExists" xml:space="preserve">
<value>Плановане завдання з таким ім'ям вже існує!</value>
</data>
<data name="ScheduledJobExecutionAlreadyExists" xml:space="preserve">
<value>The execution of the scheduled job already exists!</value>
</data>
<data name="ScheduledJobExecutionNotFound" xml:space="preserve">
<value>Виконання планованого завдання не знайдено!</value>
</data>
<data name="ScheduledJobCycleAlreadyStarted" xml:space="preserve">
<value>Цикл виконання планованого завдання вже запущено!</value>
</data>
<data name="ScheduledJobNotStarted" xml:space="preserve">
<value>Цикл виконання планованого завдання не запущено!</value>
</data>
<data name="ScheduledJobAlreadyRunning" xml:space="preserve">
<value>Плановане завдання вже виконується!</value>
</data>
<data name="CanOnlyCompleteRunningScheduledJob" xml:space="preserve">
<value>Завершити можна лише плановане завдання, що виконується!</value>
</data>
<data name="InvalidScheduleType" xml:space="preserve">
<value>Тип розкладу недійсний!</value>
</data>
</root>
@@ -738,4 +738,43 @@
<data name="PluginArchiveNotReadable" xml:space="preserve">
<value>无法读取上传的插件存档!</value>
</data>
<data name="ScheduledJobNotFound" xml:space="preserve">
<value>未找到计划任务!</value>
</data>
<data name="ScheduledJobNameCannotBeEmpty" xml:space="preserve">
<value>计划任务的名称不能为空!</value>
</data>
<data name="IntervalMinutesMustBePositive" xml:space="preserve">
<value>间隔分钟必须为正数!</value>
</data>
<data name="HourMustBeBetweenZeroAndTwentyThree" xml:space="preserve">
<value>小时必须在0到23之间!</value>
</data>
<data name="MinuteMustBeBetweenZeroAndFiftyNine" xml:space="preserve">
<value>分钟必须在0到59之间!</value>
</data>
<data name="ScheduledJobAlreadyExists" xml:space="preserve">
<value>已存在同名计划任务!</value>
</data>
<data name="ScheduledJobExecutionAlreadyExists" xml:space="preserve">
<value>The execution of the scheduled job already exists!</value>
</data>
<data name="ScheduledJobExecutionNotFound" xml:space="preserve">
<value>未找到计划任务的执行记录!</value>
</data>
<data name="ScheduledJobCycleAlreadyStarted" xml:space="preserve">
<value>计划任务的执行周期已启动!</value>
</data>
<data name="ScheduledJobNotStarted" xml:space="preserve">
<value>计划任务的执行周期尚未启动!</value>
</data>
<data name="ScheduledJobAlreadyRunning" xml:space="preserve">
<value>计划任务已在运行!</value>
</data>
<data name="CanOnlyCompleteRunningScheduledJob" xml:space="preserve">
<value>只有运行中的计划任务才能完成!</value>
</data>
<data name="InvalidScheduleType" xml:space="preserve">
<value>调度类型无效!</value>
</data>
</root>
@@ -0,0 +1,162 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="ScheduledJobs" xml:space="preserve">
<value>المهام المجدولة</value>
</data>
<data name="FilterByJobType" xml:space="preserve">
<value>تصفية حسب نوع المهمة</value>
</data>
<data name="All" xml:space="preserve">
<value>الكل</value>
</data>
<data name="TaskType.ScanMediaLibraries" xml:space="preserve">
<value>فحص مكتبات الوسائط</value>
</data>
<data name="TaskType.CleanTemporaryFiles" xml:space="preserve">
<value>تنظيف الملفات المؤقتة</value>
</data>
<data name="DisplayLast" xml:space="preserve">
<value>عرض آخر</value>
</data>
<data name="TimeUnit" xml:space="preserve">
<value>وحدة الوقت</value>
</data>
<data name="Minutes" xml:space="preserve">
<value>دقائق</value>
</data>
<data name="MinutesShort" xml:space="preserve">
<value>دقيقة</value>
</data>
<data name="Hours" xml:space="preserve">
<value>ساعات</value>
</data>
<data name="Days" xml:space="preserve">
<value>أيام</value>
</data>
<data name="Update" xml:space="preserve">
<value>تحديث</value>
</data>
<data name="CurrentJobs" xml:space="preserve">
<value>المهام الحالية</value>
</data>
<data name="AddNewJob" xml:space="preserve">
<value>إضافة مهمة</value>
</data>
<data name="Id" xml:space="preserve">
<value>المعرّف</value>
</data>
<data name="Name" xml:space="preserve">
<value>الاسم</value>
</data>
<data name="JobType" xml:space="preserve">
<value>نوع المهمة</value>
</data>
<data name="ScheduleType" xml:space="preserve">
<value>نوع الجدولة</value>
</data>
<data name="Interval" xml:space="preserve">
<value>الفاصل الزمني</value>
</data>
<data name="Time" xml:space="preserve">
<value>الوقت</value>
</data>
<data name="Status" xml:space="preserve">
<value>الحالة</value>
</data>
<data name="Started" xml:space="preserve">
<value>بدأت</value>
</data>
<data name="Completed" xml:space="preserve">
<value>اكتملت</value>
</data>
<data name="Actions" xml:space="preserve">
<value>الإجراءات</value>
</data>
<data name="JobName" xml:space="preserve">
<value>اسم المهمة</value>
</data>
<data name="IntervalSchedule" xml:space="preserve">
<value>فاصل زمني</value>
</data>
<data name="DailySchedule" xml:space="preserve">
<value>يومي</value>
</data>
<data name="IntervalMinutes" xml:space="preserve">
<value>الفاصل الزمني (دقائق)</value>
</data>
<data name="Hour" xml:space="preserve">
<value>الساعة</value>
</data>
<data name="Minute" xml:space="preserve">
<value>الدقيقة</value>
</data>
<data name="AddJob" xml:space="preserve">
<value>إضافة مهمة</value>
</data>
<data name="Start" xml:space="preserve">
<value>بدء</value>
</data>
<data name="Stop" xml:space="preserve">
<value>إيقاف</value>
</data>
<data name="Fire" xml:space="preserve">
<value>تنفيذ</value>
</data>
<data name="Remove" xml:space="preserve">
<value>إزالة</value>
</data>
<data name="NoJobs" xml:space="preserve">
<value>لم تتم إضافة مهام</value>
</data>
<data name="JobStarted" xml:space="preserve">
<value>تم بدء المهمة بنجاح.</value>
</data>
<data name="JobStopped" xml:space="preserve">
<value>تم إيقاف المهمة بنجاح.</value>
</data>
<data name="JobFired" xml:space="preserve">
<value>تم تنفيذ المهمة بنجاح.</value>
</data>
<data name="JobAdded" xml:space="preserve">
<value>تمت إضافة المهمة بنجاح.</value>
</data>
<data name="JobRemoved" xml:space="preserve">
<value>تمت إزالة المهمة بنجاح.</value>
</data>
<data name="JobNotFound" xml:space="preserve">
<value>لم يتم العثور على المهمة.</value>
</data>
<data name="JobAlreadyRunning" xml:space="preserve">
<value>المهمة قيد التشغيل بالفعل.</value>
</data>
<data name="Status.Added" xml:space="preserve">
<value>مضافة</value>
</data>
<data name="Status.Active" xml:space="preserve">
<value>نشطة</value>
</data>
<data name="Status.Running" xml:space="preserve">
<value>قيد التشغيل</value>
</data>
<data name="Status.Completed" xml:space="preserve">
<value>مكتملة</value>
</data>
<data name="RemoveJobConfirm" xml:space="preserve">
<value>هل تريد إزالة هذه المهمة المجدولة؟</value>
</data>
<data name="JobNameRequired" xml:space="preserve">
<value>اسم المهمة مطلوب.</value>
</data>
</root>
@@ -0,0 +1,162 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="ScheduledJobs" xml:space="preserve">
<value>Geplante Aufgaben</value>
</data>
<data name="FilterByJobType" xml:space="preserve">
<value>Nach Aufgabentyp filtern</value>
</data>
<data name="All" xml:space="preserve">
<value>Alle</value>
</data>
<data name="TaskType.ScanMediaLibraries" xml:space="preserve">
<value>Medienbibliotheken scannen</value>
</data>
<data name="TaskType.CleanTemporaryFiles" xml:space="preserve">
<value>Temporäre Dateien bereinigen</value>
</data>
<data name="DisplayLast" xml:space="preserve">
<value>Zuletzt anzeigen</value>
</data>
<data name="TimeUnit" xml:space="preserve">
<value>Zeiteinheit</value>
</data>
<data name="Minutes" xml:space="preserve">
<value>Minuten</value>
</data>
<data name="MinutesShort" xml:space="preserve">
<value>Min.</value>
</data>
<data name="Hours" xml:space="preserve">
<value>Stunden</value>
</data>
<data name="Days" xml:space="preserve">
<value>Tage</value>
</data>
<data name="Update" xml:space="preserve">
<value>Aktualisieren</value>
</data>
<data name="CurrentJobs" xml:space="preserve">
<value>Aktuelle Aufgaben</value>
</data>
<data name="AddNewJob" xml:space="preserve">
<value>Neue Aufgabe hinzufügen</value>
</data>
<data name="Id" xml:space="preserve">
<value>ID</value>
</data>
<data name="Name" xml:space="preserve">
<value>Name</value>
</data>
<data name="JobType" xml:space="preserve">
<value>Aufgabentyp</value>
</data>
<data name="ScheduleType" xml:space="preserve">
<value>Zeitplantyp</value>
</data>
<data name="Interval" xml:space="preserve">
<value>Intervall</value>
</data>
<data name="Time" xml:space="preserve">
<value>Uhrzeit</value>
</data>
<data name="Status" xml:space="preserve">
<value>Status</value>
</data>
<data name="Started" xml:space="preserve">
<value>Gestartet</value>
</data>
<data name="Completed" xml:space="preserve">
<value>Abgeschlossen</value>
</data>
<data name="Actions" xml:space="preserve">
<value>Aktionen</value>
</data>
<data name="JobName" xml:space="preserve">
<value>Aufgabenname</value>
</data>
<data name="IntervalSchedule" xml:space="preserve">
<value>Intervall</value>
</data>
<data name="DailySchedule" xml:space="preserve">
<value>Täglich</value>
</data>
<data name="IntervalMinutes" xml:space="preserve">
<value>Intervall (Minuten)</value>
</data>
<data name="Hour" xml:space="preserve">
<value>Stunde</value>
</data>
<data name="Minute" xml:space="preserve">
<value>Minute</value>
</data>
<data name="AddJob" xml:space="preserve">
<value>Aufgabe hinzufügen</value>
</data>
<data name="Start" xml:space="preserve">
<value>Starten</value>
</data>
<data name="Stop" xml:space="preserve">
<value>Stoppen</value>
</data>
<data name="Fire" xml:space="preserve">
<value>Ausführen</value>
</data>
<data name="Remove" xml:space="preserve">
<value>Entfernen</value>
</data>
<data name="NoJobs" xml:space="preserve">
<value>Keine Aufgaben hinzugefügt</value>
</data>
<data name="JobStarted" xml:space="preserve">
<value>Aufgabe erfolgreich gestartet.</value>
</data>
<data name="JobStopped" xml:space="preserve">
<value>Aufgabe erfolgreich gestoppt.</value>
</data>
<data name="JobFired" xml:space="preserve">
<value>Aufgabe erfolgreich ausgeführt.</value>
</data>
<data name="JobAdded" xml:space="preserve">
<value>Aufgabe erfolgreich hinzugefügt.</value>
</data>
<data name="JobRemoved" xml:space="preserve">
<value>Aufgabe erfolgreich entfernt.</value>
</data>
<data name="JobNotFound" xml:space="preserve">
<value>Aufgabe nicht gefunden.</value>
</data>
<data name="JobAlreadyRunning" xml:space="preserve">
<value>Die Aufgabe läuft bereits.</value>
</data>
<data name="Status.Added" xml:space="preserve">
<value>Hinzugefügt</value>
</data>
<data name="Status.Active" xml:space="preserve">
<value>Aktiv</value>
</data>
<data name="Status.Running" xml:space="preserve">
<value>Läuft</value>
</data>
<data name="Status.Completed" xml:space="preserve">
<value>Abgeschlossen</value>
</data>
<data name="RemoveJobConfirm" xml:space="preserve">
<value>Diese geplante Aufgabe entfernen?</value>
</data>
<data name="JobNameRequired" xml:space="preserve">
<value>Der Aufgabenname ist erforderlich.</value>
</data>
</root>
@@ -0,0 +1,162 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="ScheduledJobs" xml:space="preserve">
<value>Scheduled jobs</value>
</data>
<data name="FilterByJobType" xml:space="preserve">
<value>Filter by job type</value>
</data>
<data name="All" xml:space="preserve">
<value>All</value>
</data>
<data name="TaskType.ScanMediaLibraries" xml:space="preserve">
<value>Scan media libraries</value>
</data>
<data name="TaskType.CleanTemporaryFiles" xml:space="preserve">
<value>Clean temporary files</value>
</data>
<data name="DisplayLast" xml:space="preserve">
<value>Display last</value>
</data>
<data name="TimeUnit" xml:space="preserve">
<value>Time unit</value>
</data>
<data name="Minutes" xml:space="preserve">
<value>Minutes</value>
</data>
<data name="MinutesShort" xml:space="preserve">
<value>min</value>
</data>
<data name="Hours" xml:space="preserve">
<value>Hours</value>
</data>
<data name="Days" xml:space="preserve">
<value>Days</value>
</data>
<data name="Update" xml:space="preserve">
<value>Update</value>
</data>
<data name="CurrentJobs" xml:space="preserve">
<value>Current jobs</value>
</data>
<data name="AddNewJob" xml:space="preserve">
<value>Add new job</value>
</data>
<data name="Id" xml:space="preserve">
<value>Id</value>
</data>
<data name="Name" xml:space="preserve">
<value>Name</value>
</data>
<data name="JobType" xml:space="preserve">
<value>Job type</value>
</data>
<data name="ScheduleType" xml:space="preserve">
<value>Schedule type</value>
</data>
<data name="Interval" xml:space="preserve">
<value>Interval</value>
</data>
<data name="Time" xml:space="preserve">
<value>Time</value>
</data>
<data name="Status" xml:space="preserve">
<value>Status</value>
</data>
<data name="Started" xml:space="preserve">
<value>Started</value>
</data>
<data name="Completed" xml:space="preserve">
<value>Completed</value>
</data>
<data name="Actions" xml:space="preserve">
<value>Actions</value>
</data>
<data name="JobName" xml:space="preserve">
<value>Job name</value>
</data>
<data name="IntervalSchedule" xml:space="preserve">
<value>Interval</value>
</data>
<data name="DailySchedule" xml:space="preserve">
<value>Daily</value>
</data>
<data name="IntervalMinutes" xml:space="preserve">
<value>Interval (minutes)</value>
</data>
<data name="Hour" xml:space="preserve">
<value>Hour</value>
</data>
<data name="Minute" xml:space="preserve">
<value>Minute</value>
</data>
<data name="AddJob" xml:space="preserve">
<value>Add job</value>
</data>
<data name="Start" xml:space="preserve">
<value>Start</value>
</data>
<data name="Stop" xml:space="preserve">
<value>Stop</value>
</data>
<data name="Fire" xml:space="preserve">
<value>Fire</value>
</data>
<data name="Remove" xml:space="preserve">
<value>Remove</value>
</data>
<data name="NoJobs" xml:space="preserve">
<value>No jobs added</value>
</data>
<data name="JobStarted" xml:space="preserve">
<value>Job started successfully.</value>
</data>
<data name="JobStopped" xml:space="preserve">
<value>Job stopped successfully.</value>
</data>
<data name="JobFired" xml:space="preserve">
<value>Job fired successfully.</value>
</data>
<data name="JobAdded" xml:space="preserve">
<value>Job added successfully.</value>
</data>
<data name="JobRemoved" xml:space="preserve">
<value>Job removed successfully.</value>
</data>
<data name="JobNotFound" xml:space="preserve">
<value>Job not found.</value>
</data>
<data name="JobAlreadyRunning" xml:space="preserve">
<value>The job is already running.</value>
</data>
<data name="Status.Added" xml:space="preserve">
<value>Added</value>
</data>
<data name="Status.Active" xml:space="preserve">
<value>Active</value>
</data>
<data name="Status.Running" xml:space="preserve">
<value>Running</value>
</data>
<data name="Status.Completed" xml:space="preserve">
<value>Completed</value>
</data>
<data name="RemoveJobConfirm" xml:space="preserve">
<value>Remove this scheduled job?</value>
</data>
<data name="JobNameRequired" xml:space="preserve">
<value>The job name is required.</value>
</data>
</root>
@@ -0,0 +1,162 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="ScheduledJobs" xml:space="preserve">
<value>Tareas programadas</value>
</data>
<data name="FilterByJobType" xml:space="preserve">
<value>Filtrar por tipo de tarea</value>
</data>
<data name="All" xml:space="preserve">
<value>Todas</value>
</data>
<data name="TaskType.ScanMediaLibraries" xml:space="preserve">
<value>Analizar bibliotecas multimedia</value>
</data>
<data name="TaskType.CleanTemporaryFiles" xml:space="preserve">
<value>Limpiar archivos temporales</value>
</data>
<data name="DisplayLast" xml:space="preserve">
<value>Mostrar las últimas</value>
</data>
<data name="TimeUnit" xml:space="preserve">
<value>Unidad de tiempo</value>
</data>
<data name="Minutes" xml:space="preserve">
<value>Minutos</value>
</data>
<data name="MinutesShort" xml:space="preserve">
<value>min</value>
</data>
<data name="Hours" xml:space="preserve">
<value>Horas</value>
</data>
<data name="Days" xml:space="preserve">
<value>Días</value>
</data>
<data name="Update" xml:space="preserve">
<value>Actualizar</value>
</data>
<data name="CurrentJobs" xml:space="preserve">
<value>Tareas actuales</value>
</data>
<data name="AddNewJob" xml:space="preserve">
<value>Añadir tarea</value>
</data>
<data name="Id" xml:space="preserve">
<value>Id</value>
</data>
<data name="Name" xml:space="preserve">
<value>Nombre</value>
</data>
<data name="JobType" xml:space="preserve">
<value>Tipo de tarea</value>
</data>
<data name="ScheduleType" xml:space="preserve">
<value>Tipo de programación</value>
</data>
<data name="Interval" xml:space="preserve">
<value>Intervalo</value>
</data>
<data name="Time" xml:space="preserve">
<value>Hora</value>
</data>
<data name="Status" xml:space="preserve">
<value>Estado</value>
</data>
<data name="Started" xml:space="preserve">
<value>Iniciado</value>
</data>
<data name="Completed" xml:space="preserve">
<value>Completado</value>
</data>
<data name="Actions" xml:space="preserve">
<value>Acciones</value>
</data>
<data name="JobName" xml:space="preserve">
<value>Nombre de la tarea</value>
</data>
<data name="IntervalSchedule" xml:space="preserve">
<value>Intervalo</value>
</data>
<data name="DailySchedule" xml:space="preserve">
<value>Diaria</value>
</data>
<data name="IntervalMinutes" xml:space="preserve">
<value>Intervalo (minutos)</value>
</data>
<data name="Hour" xml:space="preserve">
<value>Hora</value>
</data>
<data name="Minute" xml:space="preserve">
<value>Minuto</value>
</data>
<data name="AddJob" xml:space="preserve">
<value>Añadir tarea</value>
</data>
<data name="Start" xml:space="preserve">
<value>Iniciar</value>
</data>
<data name="Stop" xml:space="preserve">
<value>Detener</value>
</data>
<data name="Fire" xml:space="preserve">
<value>Ejecutar</value>
</data>
<data name="Remove" xml:space="preserve">
<value>Eliminar</value>
</data>
<data name="NoJobs" xml:space="preserve">
<value>No hay tareas añadidas</value>
</data>
<data name="JobStarted" xml:space="preserve">
<value>La tarea se inició correctamente.</value>
</data>
<data name="JobStopped" xml:space="preserve">
<value>La tarea se detuvo correctamente.</value>
</data>
<data name="JobFired" xml:space="preserve">
<value>La tarea se ejecutó correctamente.</value>
</data>
<data name="JobAdded" xml:space="preserve">
<value>La tarea se añadió correctamente.</value>
</data>
<data name="JobRemoved" xml:space="preserve">
<value>La tarea se eliminó correctamente.</value>
</data>
<data name="JobNotFound" xml:space="preserve">
<value>Tarea no encontrada.</value>
</data>
<data name="JobAlreadyRunning" xml:space="preserve">
<value>La tarea ya está en ejecución.</value>
</data>
<data name="Status.Added" xml:space="preserve">
<value>Añadida</value>
</data>
<data name="Status.Active" xml:space="preserve">
<value>Activa</value>
</data>
<data name="Status.Running" xml:space="preserve">
<value>En ejecución</value>
</data>
<data name="Status.Completed" xml:space="preserve">
<value>Completada</value>
</data>
<data name="RemoveJobConfirm" xml:space="preserve">
<value>¿Eliminar esta tarea programada?</value>
</data>
<data name="JobNameRequired" xml:space="preserve">
<value>El nombre de la tarea es obligatorio.</value>
</data>
</root>
@@ -0,0 +1,162 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="ScheduledJobs" xml:space="preserve">
<value>Tâches planifiées</value>
</data>
<data name="FilterByJobType" xml:space="preserve">
<value>Filtrer par type de tâche</value>
</data>
<data name="All" xml:space="preserve">
<value>Toutes</value>
</data>
<data name="TaskType.ScanMediaLibraries" xml:space="preserve">
<value>Analyser les médiathèques</value>
</data>
<data name="TaskType.CleanTemporaryFiles" xml:space="preserve">
<value>Nettoyer les fichiers temporaires</value>
</data>
<data name="DisplayLast" xml:space="preserve">
<value>Afficher les dernières</value>
</data>
<data name="TimeUnit" xml:space="preserve">
<value>Unité de temps</value>
</data>
<data name="Minutes" xml:space="preserve">
<value>Minutes</value>
</data>
<data name="MinutesShort" xml:space="preserve">
<value>min</value>
</data>
<data name="Hours" xml:space="preserve">
<value>Heures</value>
</data>
<data name="Days" xml:space="preserve">
<value>Jours</value>
</data>
<data name="Update" xml:space="preserve">
<value>Mettre à jour</value>
</data>
<data name="CurrentJobs" xml:space="preserve">
<value>Tâches en cours</value>
</data>
<data name="AddNewJob" xml:space="preserve">
<value>Ajouter une tâche</value>
</data>
<data name="Id" xml:space="preserve">
<value>Id</value>
</data>
<data name="Name" xml:space="preserve">
<value>Nom</value>
</data>
<data name="JobType" xml:space="preserve">
<value>Type de tâche</value>
</data>
<data name="ScheduleType" xml:space="preserve">
<value>Type de planification</value>
</data>
<data name="Interval" xml:space="preserve">
<value>Intervalle</value>
</data>
<data name="Time" xml:space="preserve">
<value>Heure</value>
</data>
<data name="Status" xml:space="preserve">
<value>Statut</value>
</data>
<data name="Started" xml:space="preserve">
<value>Démarrage</value>
</data>
<data name="Completed" xml:space="preserve">
<value>Terminé</value>
</data>
<data name="Actions" xml:space="preserve">
<value>Actions</value>
</data>
<data name="JobName" xml:space="preserve">
<value>Nom de la tâche</value>
</data>
<data name="IntervalSchedule" xml:space="preserve">
<value>Intervalle</value>
</data>
<data name="DailySchedule" xml:space="preserve">
<value>Quotidien</value>
</data>
<data name="IntervalMinutes" xml:space="preserve">
<value>Intervalle (minutes)</value>
</data>
<data name="Hour" xml:space="preserve">
<value>Heure</value>
</data>
<data name="Minute" xml:space="preserve">
<value>Minute</value>
</data>
<data name="AddJob" xml:space="preserve">
<value>Ajouter la tâche</value>
</data>
<data name="Start" xml:space="preserve">
<value>Démarrer</value>
</data>
<data name="Stop" xml:space="preserve">
<value>Arrêter</value>
</data>
<data name="Fire" xml:space="preserve">
<value>Exécuter</value>
</data>
<data name="Remove" xml:space="preserve">
<value>Supprimer</value>
</data>
<data name="NoJobs" xml:space="preserve">
<value>Aucune tâche ajoutée</value>
</data>
<data name="JobStarted" xml:space="preserve">
<value>La tâche a démarré avec succès.</value>
</data>
<data name="JobStopped" xml:space="preserve">
<value>La tâche a été arrêtée avec succès.</value>
</data>
<data name="JobFired" xml:space="preserve">
<value>La tâche a été exécutée avec succès.</value>
</data>
<data name="JobAdded" xml:space="preserve">
<value>La tâche a été ajoutée avec succès.</value>
</data>
<data name="JobRemoved" xml:space="preserve">
<value>La tâche a été supprimée avec succès.</value>
</data>
<data name="JobNotFound" xml:space="preserve">
<value>Tâche introuvable.</value>
</data>
<data name="JobAlreadyRunning" xml:space="preserve">
<value>La tâche est déjà en cours d'exécution.</value>
</data>
<data name="Status.Added" xml:space="preserve">
<value>Ajoutée</value>
</data>
<data name="Status.Active" xml:space="preserve">
<value>Active</value>
</data>
<data name="Status.Running" xml:space="preserve">
<value>En cours</value>
</data>
<data name="Status.Completed" xml:space="preserve">
<value>Terminée</value>
</data>
<data name="RemoveJobConfirm" xml:space="preserve">
<value>Supprimer cette tâche planifiée ?</value>
</data>
<data name="JobNameRequired" xml:space="preserve">
<value>Le nom de la tâche est requis.</value>
</data>
</root>
@@ -0,0 +1,162 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="ScheduledJobs" xml:space="preserve">
<value>Attività pianificate</value>
</data>
<data name="FilterByJobType" xml:space="preserve">
<value>Filtra per tipo di attività</value>
</data>
<data name="All" xml:space="preserve">
<value>Tutte</value>
</data>
<data name="TaskType.ScanMediaLibraries" xml:space="preserve">
<value>Analizza le librerie multimediali</value>
</data>
<data name="TaskType.CleanTemporaryFiles" xml:space="preserve">
<value>Pulisci i file temporanei</value>
</data>
<data name="DisplayLast" xml:space="preserve">
<value>Mostra ultime</value>
</data>
<data name="TimeUnit" xml:space="preserve">
<value>Unità di tempo</value>
</data>
<data name="Minutes" xml:space="preserve">
<value>Minuti</value>
</data>
<data name="MinutesShort" xml:space="preserve">
<value>min</value>
</data>
<data name="Hours" xml:space="preserve">
<value>Ore</value>
</data>
<data name="Days" xml:space="preserve">
<value>Giorni</value>
</data>
<data name="Update" xml:space="preserve">
<value>Aggiorna</value>
</data>
<data name="CurrentJobs" xml:space="preserve">
<value>Attività correnti</value>
</data>
<data name="AddNewJob" xml:space="preserve">
<value>Aggiungi attività</value>
</data>
<data name="Id" xml:space="preserve">
<value>Id</value>
</data>
<data name="Name" xml:space="preserve">
<value>Nome</value>
</data>
<data name="JobType" xml:space="preserve">
<value>Tipo di attività</value>
</data>
<data name="ScheduleType" xml:space="preserve">
<value>Tipo di pianificazione</value>
</data>
<data name="Interval" xml:space="preserve">
<value>Intervallo</value>
</data>
<data name="Time" xml:space="preserve">
<value>Ora</value>
</data>
<data name="Status" xml:space="preserve">
<value>Stato</value>
</data>
<data name="Started" xml:space="preserve">
<value>Avviato</value>
</data>
<data name="Completed" xml:space="preserve">
<value>Completato</value>
</data>
<data name="Actions" xml:space="preserve">
<value>Azioni</value>
</data>
<data name="JobName" xml:space="preserve">
<value>Nome attività</value>
</data>
<data name="IntervalSchedule" xml:space="preserve">
<value>Intervallo</value>
</data>
<data name="DailySchedule" xml:space="preserve">
<value>Giornaliera</value>
</data>
<data name="IntervalMinutes" xml:space="preserve">
<value>Intervallo (minuti)</value>
</data>
<data name="Hour" xml:space="preserve">
<value>Ora</value>
</data>
<data name="Minute" xml:space="preserve">
<value>Minuto</value>
</data>
<data name="AddJob" xml:space="preserve">
<value>Aggiungi attività</value>
</data>
<data name="Start" xml:space="preserve">
<value>Avvia</value>
</data>
<data name="Stop" xml:space="preserve">
<value>Ferma</value>
</data>
<data name="Fire" xml:space="preserve">
<value>Esegui</value>
</data>
<data name="Remove" xml:space="preserve">
<value>Rimuovi</value>
</data>
<data name="NoJobs" xml:space="preserve">
<value>Nessuna attività aggiunta</value>
</data>
<data name="JobStarted" xml:space="preserve">
<value>Attività avviata correttamente.</value>
</data>
<data name="JobStopped" xml:space="preserve">
<value>Attività fermata correttamente.</value>
</data>
<data name="JobFired" xml:space="preserve">
<value>Attività eseguita correttamente.</value>
</data>
<data name="JobAdded" xml:space="preserve">
<value>Attività aggiunta correttamente.</value>
</data>
<data name="JobRemoved" xml:space="preserve">
<value>Attività rimossa correttamente.</value>
</data>
<data name="JobNotFound" xml:space="preserve">
<value>Attività non trovata.</value>
</data>
<data name="JobAlreadyRunning" xml:space="preserve">
<value>L'attività è già in esecuzione.</value>
</data>
<data name="Status.Added" xml:space="preserve">
<value>Aggiunta</value>
</data>
<data name="Status.Active" xml:space="preserve">
<value>Attiva</value>
</data>
<data name="Status.Running" xml:space="preserve">
<value>In esecuzione</value>
</data>
<data name="Status.Completed" xml:space="preserve">
<value>Completata</value>
</data>
<data name="RemoveJobConfirm" xml:space="preserve">
<value>Rimuovere questa attività pianificata?</value>
</data>
<data name="JobNameRequired" xml:space="preserve">
<value>Il nome dell'attività è obbligatorio.</value>
</data>
</root>
@@ -0,0 +1,162 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="ScheduledJobs" xml:space="preserve">
<value>スケジュール済みジョブ</value>
</data>
<data name="FilterByJobType" xml:space="preserve">
<value>ジョブの種類で絞り込む</value>
</data>
<data name="All" xml:space="preserve">
<value>すべて</value>
</data>
<data name="TaskType.ScanMediaLibraries" xml:space="preserve">
<value>メディアライブラリをスキャン</value>
</data>
<data name="TaskType.CleanTemporaryFiles" xml:space="preserve">
<value>一時ファイルをクリーンアップ</value>
</data>
<data name="DisplayLast" xml:space="preserve">
<value>表示する範囲</value>
</data>
<data name="TimeUnit" xml:space="preserve">
<value>時間の単位</value>
</data>
<data name="Minutes" xml:space="preserve">
<value>分</value>
</data>
<data name="MinutesShort" xml:space="preserve">
<value>分</value>
</data>
<data name="Hours" xml:space="preserve">
<value>時間</value>
</data>
<data name="Days" xml:space="preserve">
<value>日</value>
</data>
<data name="Update" xml:space="preserve">
<value>更新</value>
</data>
<data name="CurrentJobs" xml:space="preserve">
<value>現在のジョブ</value>
</data>
<data name="AddNewJob" xml:space="preserve">
<value>新しいジョブを追加</value>
</data>
<data name="Id" xml:space="preserve">
<value>ID</value>
</data>
<data name="Name" xml:space="preserve">
<value>名前</value>
</data>
<data name="JobType" xml:space="preserve">
<value>ジョブの種類</value>
</data>
<data name="ScheduleType" xml:space="preserve">
<value>スケジュールの種類</value>
</data>
<data name="Interval" xml:space="preserve">
<value>間隔</value>
</data>
<data name="Time" xml:space="preserve">
<value>時刻</value>
</data>
<data name="Status" xml:space="preserve">
<value>状態</value>
</data>
<data name="Started" xml:space="preserve">
<value>開始</value>
</data>
<data name="Completed" xml:space="preserve">
<value>完了</value>
</data>
<data name="Actions" xml:space="preserve">
<value>操作</value>
</data>
<data name="JobName" xml:space="preserve">
<value>ジョブ名</value>
</data>
<data name="IntervalSchedule" xml:space="preserve">
<value>間隔</value>
</data>
<data name="DailySchedule" xml:space="preserve">
<value>毎日</value>
</data>
<data name="IntervalMinutes" xml:space="preserve">
<value>間隔(分)</value>
</data>
<data name="Hour" xml:space="preserve">
<value>時</value>
</data>
<data name="Minute" xml:space="preserve">
<value>分</value>
</data>
<data name="AddJob" xml:space="preserve">
<value>ジョブを追加</value>
</data>
<data name="Start" xml:space="preserve">
<value>開始</value>
</data>
<data name="Stop" xml:space="preserve">
<value>停止</value>
</data>
<data name="Fire" xml:space="preserve">
<value>実行</value>
</data>
<data name="Remove" xml:space="preserve">
<value>削除</value>
</data>
<data name="NoJobs" xml:space="preserve">
<value>ジョブがありません</value>
</data>
<data name="JobStarted" xml:space="preserve">
<value>ジョブが正常に開始されました。</value>
</data>
<data name="JobStopped" xml:space="preserve">
<value>ジョブが正常に停止されました。</value>
</data>
<data name="JobFired" xml:space="preserve">
<value>ジョブが正常に実行されました。</value>
</data>
<data name="JobAdded" xml:space="preserve">
<value>ジョブが正常に追加されました。</value>
</data>
<data name="JobRemoved" xml:space="preserve">
<value>ジョブが正常に削除されました。</value>
</data>
<data name="JobNotFound" xml:space="preserve">
<value>ジョブが見つかりません。</value>
</data>
<data name="JobAlreadyRunning" xml:space="preserve">
<value>ジョブはすでに実行中です。</value>
</data>
<data name="Status.Added" xml:space="preserve">
<value>追加済み</value>
</data>
<data name="Status.Active" xml:space="preserve">
<value>アクティブ</value>
</data>
<data name="Status.Running" xml:space="preserve">
<value>実行中</value>
</data>
<data name="Status.Completed" xml:space="preserve">
<value>完了</value>
</data>
<data name="RemoveJobConfirm" xml:space="preserve">
<value>このスケジュール済みジョブを削除しますか?</value>
</data>
<data name="JobNameRequired" xml:space="preserve">
<value>ジョブ名が必要です。</value>
</data>
</root>
@@ -0,0 +1,162 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="ScheduledJobs" xml:space="preserve">
<value>Scheduled jobs</value>
</data>
<data name="FilterByJobType" xml:space="preserve">
<value>Filter by job type</value>
</data>
<data name="All" xml:space="preserve">
<value>All</value>
</data>
<data name="TaskType.ScanMediaLibraries" xml:space="preserve">
<value>Scan media libraries</value>
</data>
<data name="TaskType.CleanTemporaryFiles" xml:space="preserve">
<value>Clean temporary files</value>
</data>
<data name="DisplayLast" xml:space="preserve">
<value>Display last</value>
</data>
<data name="TimeUnit" xml:space="preserve">
<value>Time unit</value>
</data>
<data name="Minutes" xml:space="preserve">
<value>Minutes</value>
</data>
<data name="MinutesShort" xml:space="preserve">
<value>min</value>
</data>
<data name="Hours" xml:space="preserve">
<value>Hours</value>
</data>
<data name="Days" xml:space="preserve">
<value>Days</value>
</data>
<data name="Update" xml:space="preserve">
<value>Update</value>
</data>
<data name="CurrentJobs" xml:space="preserve">
<value>Current jobs</value>
</data>
<data name="AddNewJob" xml:space="preserve">
<value>Add new job</value>
</data>
<data name="Id" xml:space="preserve">
<value>Id</value>
</data>
<data name="Name" xml:space="preserve">
<value>Name</value>
</data>
<data name="JobType" xml:space="preserve">
<value>Job type</value>
</data>
<data name="ScheduleType" xml:space="preserve">
<value>Schedule type</value>
</data>
<data name="Interval" xml:space="preserve">
<value>Interval</value>
</data>
<data name="Time" xml:space="preserve">
<value>Time</value>
</data>
<data name="Status" xml:space="preserve">
<value>Status</value>
</data>
<data name="Started" xml:space="preserve">
<value>Started</value>
</data>
<data name="Completed" xml:space="preserve">
<value>Completed</value>
</data>
<data name="Actions" xml:space="preserve">
<value>Actions</value>
</data>
<data name="JobName" xml:space="preserve">
<value>Job name</value>
</data>
<data name="IntervalSchedule" xml:space="preserve">
<value>Interval</value>
</data>
<data name="DailySchedule" xml:space="preserve">
<value>Daily</value>
</data>
<data name="IntervalMinutes" xml:space="preserve">
<value>Interval (minutes)</value>
</data>
<data name="Hour" xml:space="preserve">
<value>Hour</value>
</data>
<data name="Minute" xml:space="preserve">
<value>Minute</value>
</data>
<data name="AddJob" xml:space="preserve">
<value>Add job</value>
</data>
<data name="Start" xml:space="preserve">
<value>Start</value>
</data>
<data name="Stop" xml:space="preserve">
<value>Stop</value>
</data>
<data name="Fire" xml:space="preserve">
<value>Fire</value>
</data>
<data name="Remove" xml:space="preserve">
<value>Remove</value>
</data>
<data name="NoJobs" xml:space="preserve">
<value>No jobs added</value>
</data>
<data name="JobStarted" xml:space="preserve">
<value>Job started successfully.</value>
</data>
<data name="JobStopped" xml:space="preserve">
<value>Job stopped successfully.</value>
</data>
<data name="JobFired" xml:space="preserve">
<value>Job fired successfully.</value>
</data>
<data name="JobAdded" xml:space="preserve">
<value>Job added successfully.</value>
</data>
<data name="JobRemoved" xml:space="preserve">
<value>Job removed successfully.</value>
</data>
<data name="JobNotFound" xml:space="preserve">
<value>Job not found.</value>
</data>
<data name="JobAlreadyRunning" xml:space="preserve">
<value>The job is already running.</value>
</data>
<data name="Status.Added" xml:space="preserve">
<value>Added</value>
</data>
<data name="Status.Active" xml:space="preserve">
<value>Active</value>
</data>
<data name="Status.Running" xml:space="preserve">
<value>Running</value>
</data>
<data name="Status.Completed" xml:space="preserve">
<value>Completed</value>
</data>
<data name="RemoveJobConfirm" xml:space="preserve">
<value>Remove this scheduled job?</value>
</data>
<data name="JobNameRequired" xml:space="preserve">
<value>The job name is required.</value>
</data>
</root>
@@ -0,0 +1,162 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="ScheduledJobs" xml:space="preserve">
<value>Sarcini programate</value>
</data>
<data name="FilterByJobType" xml:space="preserve">
<value>Filtrează după tipul de sarcină</value>
</data>
<data name="All" xml:space="preserve">
<value>Toate</value>
</data>
<data name="TaskType.ScanMediaLibraries" xml:space="preserve">
<value>Scanează bibliotecile media</value>
</data>
<data name="TaskType.CleanTemporaryFiles" xml:space="preserve">
<value>Curăță fișierele temporare</value>
</data>
<data name="DisplayLast" xml:space="preserve">
<value>Afișează ultimele</value>
</data>
<data name="TimeUnit" xml:space="preserve">
<value>Unitate de timp</value>
</data>
<data name="Minutes" xml:space="preserve">
<value>Minute</value>
</data>
<data name="MinutesShort" xml:space="preserve">
<value>min</value>
</data>
<data name="Hours" xml:space="preserve">
<value>Ore</value>
</data>
<data name="Days" xml:space="preserve">
<value>Zile</value>
</data>
<data name="Update" xml:space="preserve">
<value>Actualizează</value>
</data>
<data name="CurrentJobs" xml:space="preserve">
<value>Sarcini curente</value>
</data>
<data name="AddNewJob" xml:space="preserve">
<value>Adaugă sarcină</value>
</data>
<data name="Id" xml:space="preserve">
<value>Id</value>
</data>
<data name="Name" xml:space="preserve">
<value>Nume</value>
</data>
<data name="JobType" xml:space="preserve">
<value>Tip de sarcină</value>
</data>
<data name="ScheduleType" xml:space="preserve">
<value>Tip de programare</value>
</data>
<data name="Interval" xml:space="preserve">
<value>Interval</value>
</data>
<data name="Time" xml:space="preserve">
<value>Ora</value>
</data>
<data name="Status" xml:space="preserve">
<value>Stare</value>
</data>
<data name="Started" xml:space="preserve">
<value>Începută</value>
</data>
<data name="Completed" xml:space="preserve">
<value>Finalizată</value>
</data>
<data name="Actions" xml:space="preserve">
<value>Acțiuni</value>
</data>
<data name="JobName" xml:space="preserve">
<value>Numele sarcinii</value>
</data>
<data name="IntervalSchedule" xml:space="preserve">
<value>Interval</value>
</data>
<data name="DailySchedule" xml:space="preserve">
<value>Zilnic</value>
</data>
<data name="IntervalMinutes" xml:space="preserve">
<value>Interval (minute)</value>
</data>
<data name="Hour" xml:space="preserve">
<value>Oră</value>
</data>
<data name="Minute" xml:space="preserve">
<value>Minut</value>
</data>
<data name="AddJob" xml:space="preserve">
<value>Adaugă sarcină</value>
</data>
<data name="Start" xml:space="preserve">
<value>Pornește</value>
</data>
<data name="Stop" xml:space="preserve">
<value>Oprește</value>
</data>
<data name="Fire" xml:space="preserve">
<value>Execută</value>
</data>
<data name="Remove" xml:space="preserve">
<value>Elimină</value>
</data>
<data name="NoJobs" xml:space="preserve">
<value>Nicio sarcină adăugată</value>
</data>
<data name="JobStarted" xml:space="preserve">
<value>Sarcina a fost pornită cu succes.</value>
</data>
<data name="JobStopped" xml:space="preserve">
<value>Sarcina a fost oprită cu succes.</value>
</data>
<data name="JobFired" xml:space="preserve">
<value>Sarcina a fost executată cu succes.</value>
</data>
<data name="JobAdded" xml:space="preserve">
<value>Sarcina a fost adăugată cu succes.</value>
</data>
<data name="JobRemoved" xml:space="preserve">
<value>Sarcina a fost eliminată cu succes.</value>
</data>
<data name="JobNotFound" xml:space="preserve">
<value>Sarcina nu a fost găsită.</value>
</data>
<data name="JobAlreadyRunning" xml:space="preserve">
<value>Sarcina rulează deja.</value>
</data>
<data name="Status.Added" xml:space="preserve">
<value>Adăugată</value>
</data>
<data name="Status.Active" xml:space="preserve">
<value>Activă</value>
</data>
<data name="Status.Running" xml:space="preserve">
<value>În execuție</value>
</data>
<data name="Status.Completed" xml:space="preserve">
<value>Finalizată</value>
</data>
<data name="RemoveJobConfirm" xml:space="preserve">
<value>Elimini această sarcină programată?</value>
</data>
<data name="JobNameRequired" xml:space="preserve">
<value>Numele sarcinii este obligatoriu.</value>
</data>
</root>
@@ -0,0 +1,162 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="ScheduledJobs" xml:space="preserve">
<value>Заплановані завдання</value>
</data>
<data name="FilterByJobType" xml:space="preserve">
<value>Фільтрувати за типом завдання</value>
</data>
<data name="All" xml:space="preserve">
<value>Усі</value>
</data>
<data name="TaskType.ScanMediaLibraries" xml:space="preserve">
<value>Сканувати медіатеки</value>
</data>
<data name="TaskType.CleanTemporaryFiles" xml:space="preserve">
<value>Очистити тимчасові файли</value>
</data>
<data name="DisplayLast" xml:space="preserve">
<value>Показати останні</value>
</data>
<data name="TimeUnit" xml:space="preserve">
<value>Одиниця часу</value>
</data>
<data name="Minutes" xml:space="preserve">
<value>Хвилини</value>
</data>
<data name="MinutesShort" xml:space="preserve">
<value>хв</value>
</data>
<data name="Hours" xml:space="preserve">
<value>Години</value>
</data>
<data name="Days" xml:space="preserve">
<value>Дні</value>
</data>
<data name="Update" xml:space="preserve">
<value>Оновити</value>
</data>
<data name="CurrentJobs" xml:space="preserve">
<value>Поточні завдання</value>
</data>
<data name="AddNewJob" xml:space="preserve">
<value>Додати завдання</value>
</data>
<data name="Id" xml:space="preserve">
<value>Id</value>
</data>
<data name="Name" xml:space="preserve">
<value>Назва</value>
</data>
<data name="JobType" xml:space="preserve">
<value>Тип завдання</value>
</data>
<data name="ScheduleType" xml:space="preserve">
<value>Тип розкладу</value>
</data>
<data name="Interval" xml:space="preserve">
<value>Інтервал</value>
</data>
<data name="Time" xml:space="preserve">
<value>Час</value>
</data>
<data name="Status" xml:space="preserve">
<value>Статус</value>
</data>
<data name="Started" xml:space="preserve">
<value>Запущено</value>
</data>
<data name="Completed" xml:space="preserve">
<value>Завершено</value>
</data>
<data name="Actions" xml:space="preserve">
<value>Дії</value>
</data>
<data name="JobName" xml:space="preserve">
<value>Назва завдання</value>
</data>
<data name="IntervalSchedule" xml:space="preserve">
<value>Інтервал</value>
</data>
<data name="DailySchedule" xml:space="preserve">
<value>Щоденно</value>
</data>
<data name="IntervalMinutes" xml:space="preserve">
<value>Інтервал (хвилини)</value>
</data>
<data name="Hour" xml:space="preserve">
<value>Година</value>
</data>
<data name="Minute" xml:space="preserve">
<value>Хвилина</value>
</data>
<data name="AddJob" xml:space="preserve">
<value>Додати завдання</value>
</data>
<data name="Start" xml:space="preserve">
<value>Запустити</value>
</data>
<data name="Stop" xml:space="preserve">
<value>Зупинити</value>
</data>
<data name="Fire" xml:space="preserve">
<value>Виконати</value>
</data>
<data name="Remove" xml:space="preserve">
<value>Видалити</value>
</data>
<data name="NoJobs" xml:space="preserve">
<value>Завдань не додано</value>
</data>
<data name="JobStarted" xml:space="preserve">
<value>Завдання успішно запущено.</value>
</data>
<data name="JobStopped" xml:space="preserve">
<value>Завдання успішно зупинено.</value>
</data>
<data name="JobFired" xml:space="preserve">
<value>Завдання успішно виконано.</value>
</data>
<data name="JobAdded" xml:space="preserve">
<value>Завдання успішно додано.</value>
</data>
<data name="JobRemoved" xml:space="preserve">
<value>Завдання успішно видалено.</value>
</data>
<data name="JobNotFound" xml:space="preserve">
<value>Завдання не знайдено.</value>
</data>
<data name="JobAlreadyRunning" xml:space="preserve">
<value>Завдання вже виконується.</value>
</data>
<data name="Status.Added" xml:space="preserve">
<value>Додано</value>
</data>
<data name="Status.Active" xml:space="preserve">
<value>Активне</value>
</data>
<data name="Status.Running" xml:space="preserve">
<value>Виконується</value>
</data>
<data name="Status.Completed" xml:space="preserve">
<value>Завершено</value>
</data>
<data name="RemoveJobConfirm" xml:space="preserve">
<value>Видалити це заплановане завдання?</value>
</data>
<data name="JobNameRequired" xml:space="preserve">
<value>Назва завдання обов'язкова.</value>
</data>
</root>
@@ -0,0 +1,162 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="ScheduledJobs" xml:space="preserve">
<value>计划任务</value>
</data>
<data name="FilterByJobType" xml:space="preserve">
<value>按任务类型筛选</value>
</data>
<data name="All" xml:space="preserve">
<value>全部</value>
</data>
<data name="TaskType.ScanMediaLibraries" xml:space="preserve">
<value>扫描媒体库</value>
</data>
<data name="TaskType.CleanTemporaryFiles" xml:space="preserve">
<value>清理临时文件</value>
</data>
<data name="DisplayLast" xml:space="preserve">
<value>显示最近</value>
</data>
<data name="TimeUnit" xml:space="preserve">
<value>时间单位</value>
</data>
<data name="Minutes" xml:space="preserve">
<value>分钟</value>
</data>
<data name="MinutesShort" xml:space="preserve">
<value>分</value>
</data>
<data name="Hours" xml:space="preserve">
<value>小时</value>
</data>
<data name="Days" xml:space="preserve">
<value>天</value>
</data>
<data name="Update" xml:space="preserve">
<value>更新</value>
</data>
<data name="CurrentJobs" xml:space="preserve">
<value>当前任务</value>
</data>
<data name="AddNewJob" xml:space="preserve">
<value>添加新任务</value>
</data>
<data name="Id" xml:space="preserve">
<value>ID</value>
</data>
<data name="Name" xml:space="preserve">
<value>名称</value>
</data>
<data name="JobType" xml:space="preserve">
<value>任务类型</value>
</data>
<data name="ScheduleType" xml:space="preserve">
<value>计划类型</value>
</data>
<data name="Interval" xml:space="preserve">
<value>间隔</value>
</data>
<data name="Time" xml:space="preserve">
<value>时间</value>
</data>
<data name="Status" xml:space="preserve">
<value>状态</value>
</data>
<data name="Started" xml:space="preserve">
<value>已开始</value>
</data>
<data name="Completed" xml:space="preserve">
<value>已完成</value>
</data>
<data name="Actions" xml:space="preserve">
<value>操作</value>
</data>
<data name="JobName" xml:space="preserve">
<value>任务名称</value>
</data>
<data name="IntervalSchedule" xml:space="preserve">
<value>间隔</value>
</data>
<data name="DailySchedule" xml:space="preserve">
<value>每日</value>
</data>
<data name="IntervalMinutes" xml:space="preserve">
<value>间隔(分钟)</value>
</data>
<data name="Hour" xml:space="preserve">
<value>小时</value>
</data>
<data name="Minute" xml:space="preserve">
<value>分钟</value>
</data>
<data name="AddJob" xml:space="preserve">
<value>添加任务</value>
</data>
<data name="Start" xml:space="preserve">
<value>开始</value>
</data>
<data name="Stop" xml:space="preserve">
<value>停止</value>
</data>
<data name="Fire" xml:space="preserve">
<value>执行</value>
</data>
<data name="Remove" xml:space="preserve">
<value>删除</value>
</data>
<data name="NoJobs" xml:space="preserve">
<value>尚未添加任务</value>
</data>
<data name="JobStarted" xml:space="preserve">
<value>任务已成功开始。</value>
</data>
<data name="JobStopped" xml:space="preserve">
<value>任务已成功停止。</value>
</data>
<data name="JobFired" xml:space="preserve">
<value>任务已成功执行。</value>
</data>
<data name="JobAdded" xml:space="preserve">
<value>任务已成功添加。</value>
</data>
<data name="JobRemoved" xml:space="preserve">
<value>任务已成功删除。</value>
</data>
<data name="JobNotFound" xml:space="preserve">
<value>找不到任务。</value>
</data>
<data name="JobAlreadyRunning" xml:space="preserve">
<value>任务已在运行中。</value>
</data>
<data name="Status.Added" xml:space="preserve">
<value>已添加</value>
</data>
<data name="Status.Active" xml:space="preserve">
<value>活动中</value>
</data>
<data name="Status.Running" xml:space="preserve">
<value>运行中</value>
</data>
<data name="Status.Completed" xml:space="preserve">
<value>已完成</value>
</data>
<data name="RemoveJobConfirm" xml:space="preserve">
<value>删除此计划任务?</value>
</data>
<data name="JobNameRequired" xml:space="preserve">
<value>需要提供任务名称。</value>
</data>
</root>
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
@@ -216,4 +216,7 @@
<data name="Plugins" xml:space="preserve">
<value>الإضافات</value>
</data>
</root>
<data name="ScheduledJobs" xml:space="preserve">
<value>المهام المجدولة</value>
</data>
</root>
@@ -216,4 +216,7 @@
<data name="Plugins" xml:space="preserve">
<value>Plugins</value>
</data>
<data name="ScheduledJobs" xml:space="preserve">
<value>Geplante Aufgaben</value>
</data>
</root>
@@ -216,4 +216,7 @@
<data name="Plugins" xml:space="preserve">
<value>Plugins</value>
</data>
<data name="ScheduledJobs" xml:space="preserve">
<value>Scheduled jobs</value>
</data>
</root>
@@ -216,4 +216,7 @@
<data name="Plugins" xml:space="preserve">
<value>Plugins</value>
</data>
<data name="ScheduledJobs" xml:space="preserve">
<value>Tareas programadas</value>
</data>
</root>
@@ -216,4 +216,7 @@
<data name="Plugins" xml:space="preserve">
<value>Plugins</value>
</data>
<data name="ScheduledJobs" xml:space="preserve">
<value>Tâches planifiées</value>
</data>
</root>
@@ -216,4 +216,7 @@
<data name="Plugins" xml:space="preserve">
<value>Plugin</value>
</data>
<data name="ScheduledJobs" xml:space="preserve">
<value>Attività pianificate</value>
</data>
</root>
@@ -216,4 +216,7 @@
<data name="Plugins" xml:space="preserve">
<value>プラグイン</value>
</data>
<data name="ScheduledJobs" xml:space="preserve">
<value>スケジュール済みジョブ</value>
</data>
</root>
@@ -216,4 +216,7 @@
<data name="Plugins" xml:space="preserve">
<value>Plugins</value>
</data>
<data name="ScheduledJobs" xml:space="preserve">
<value>Scheduled jobs</value>
</data>
</root>
@@ -216,4 +216,7 @@
<data name="Plugins" xml:space="preserve">
<value>Pluginuri</value>
</data>
<data name="ScheduledJobs" xml:space="preserve">
<value>Sarcini programate</value>
</data>
</root>
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
@@ -216,4 +216,7 @@
<data name="Plugins" xml:space="preserve">
<value>Плагіни</value>
</data>
</root>
<data name="ScheduledJobs" xml:space="preserve">
<value>Заплановані завдання</value>
</data>
</root>
@@ -216,4 +216,7 @@
<data name="Plugins" xml:space="preserve">
<value>插件</value>
</data>
<data name="ScheduledJobs" xml:space="preserve">
<value>计划任务</value>
</data>
</root>
@@ -20,7 +20,7 @@ namespace Lumina.Presentation.Web.Core.Themes;
/// </summary>
public sealed class ThemeNavBuilder
{
// the resource base name deliberately excludes the "Core.Resources" segment: the localization factory re-roots it with the configured ResourcesPath
// The resource base name deliberately excludes the "Core.Resources" segment: the localization factory re-roots it with the configured ResourcesPath.
private const string VIEW_RESOURCE_BASE_NAME = "Lumina.Presentation.Web.Views.Shared._NavMenu";
private const string VIEW_RESOURCE_LOCATION = "Lumina.Presentation.Web";
@@ -60,8 +60,8 @@ public sealed class ThemeNavBuilder
string returnUrl = Uri.EscapeDataString(GetCurrentRequestUrl());
ThemeNavEntryDto[] languages = CreateLanguageEntries(returnUrl);
// the mobile and desktop menus arrange the same sections differently, notably the language switcher, which is
// its own mobile heading but a submenu under Tools on the desktop, so each menu gets its own section list
// The mobile and desktop menus arrange the same sections differently, notably the language switcher, which is
// its own mobile heading but a submenu under Tools on the desktop, so each menu gets its own section list.
List<ThemeNavSectionDto> mobileSections = [];
mobileSections.Add(CreateSiteSection());
mobileSections.Add(CreateAccountSection(isAuthenticated));
@@ -134,7 +134,8 @@ public sealed class ThemeNavBuilder
new ThemeNavEntryDto(Localize("ManageRoles"), _urlService.GetAbsoluteUrl(WebRoutes.Admin.MANAGE_ROLES), "nav-link", []),
new ThemeNavEntryDto(Localize("ManagePermissions"), _urlService.GetAbsoluteUrl(WebRoutes.Admin.MANAGE_PERMISSIONS), "nav-link", []),
new ThemeNavEntryDto(Localize("Plugins"), _urlService.GetAbsoluteUrl(WebRoutes.Plugins.INDEX), "nav-link", []),
new ThemeNavEntryDto(Localize("Themes"), _urlService.GetAbsoluteUrl(WebRoutes.Admin.MANAGE_THEMES), "nav-link", [])
new ThemeNavEntryDto(Localize("Themes"), _urlService.GetAbsoluteUrl(WebRoutes.Admin.MANAGE_THEMES), "nav-link", []),
new ThemeNavEntryDto(Localize("ScheduledJobs"), _urlService.GetAbsoluteUrl(WebRoutes.Scheduler.INDEX), "nav-link", [])
]);
}
@@ -0,0 +1,816 @@
@*
/admin/scheduled-jobs
*@
@using Lumina.Presentation.Web.Common.DTO.Configuration
@using Lumina.Presentation.Web.Common.DTO.Scheduling
@using Lumina.Presentation.Web.Common.Routes
@using Lumina.Presentation.Web.Common.Services
@using Microsoft.AspNetCore.Mvc.Localization
@using Microsoft.Extensions.Options
@using System.Linq
@inject IViewLocalizer _localizer
@inject IUrlService _urlService
@inject IOptionsSnapshot<ServerConfigurationDto> _serverConfigurationOptions
@{
// Generate a unique id for the scripts section of this view, so it can be dynamically loaded/unloaded by the global AJAX navigator handler.
var scriptId = ScriptIdentifierHelper.GenerateScriptId();
var serverConfiguration = _serverConfigurationOptions.Value;
string scheduledJobsHubUrl = $"{serverConfiguration.BaseAddress}:{serverConfiguration.Port}/scheduledJobsHub";
}
@Html.AntiForgeryToken()
<div class="scheduler-page w-100 mx-auto pl-10 pr-10 pt-10 pb-10">
<h2 id="scheduler-title" class="text-light-two scheduler-title engraved-title">@_localizer["ScheduledJobs"]</h2>
<div id="scheduler-filter-bar" class="scheduler-filter-bar">
<div class="scheduler-filter-groups">
<div class="scheduler-filter-row" id="scheduler-job-filter-row">
<label for="scheduler-job-type-filter" class="text-light-two">@_localizer["FilterByJobType"]</label>
<div class="enlightenment-combobox" id="scheduler-job-type-filter">
<div class="shine-effect" style="top: 1px;"></div>
<input type="checkbox" class="enlightenment-toggle-checkbox" id="scheduler-job-type-filter-toggle" />
<label class="enlightenment-toggle" for="scheduler-job-type-filter-toggle">
<span class="enlightenment-selected-text" data-value="All">@_localizer["All"]</span>
</label>
<div class="enlightenment-dropdown">
<div class="shine-effect" style="top: -4px;"></div>
<div class="enlightenment-option first-option" data-value="All">@_localizer["All"]</div>
<div class="enlightenment-option" data-value="ScanMediaLibraries">@_localizer["TaskType.ScanMediaLibraries"]</div>
<div class="enlightenment-option last-option" data-value="CleanTemporaryFiles">@_localizer["TaskType.CleanTemporaryFiles"]</div>
</div>
</div>
</div>
<div class="scheduler-filter-row" id="scheduler-timespan-navigation-row">
<label for="scheduler-timespan" class="text-light-two">@_localizer["DisplayLast"]</label>
<input id="scheduler-timespan" type="number" min="1" step="1" value="10" class="enlightenment-input" />
<div class="enlightenment-combobox" id="scheduler-timeunit">
<div class="shine-effect" style="top: 1px;"></div>
<input type="checkbox" class="enlightenment-toggle-checkbox" id="scheduler-timeunit-toggle" />
<label class="enlightenment-toggle" for="scheduler-timeunit-toggle">
<span class="enlightenment-selected-text" data-value="Minutes">@_localizer["Minutes"]</span>
</label>
<div class="enlightenment-dropdown">
<div class="shine-effect" style="top: -4px;"></div>
<div class="enlightenment-option first-option" data-value="Minutes">@_localizer["Minutes"]</div>
<div class="enlightenment-option" data-value="Hours">@_localizer["Hours"]</div>
<div class="enlightenment-option last-option" data-value="Days">@_localizer["Days"]</div>
</div>
</div>
</div>
</div>
<button id="scheduler-update-timespan" type="button" class="confirm-button f-12">@_localizer["Update"]</button>
</div>
<div class="scheduler-graph-container">
<canvas id="scheduler-graph"></canvas>
<div id="scheduler-legend" class="scheduler-legend text-light-two"></div>
</div>
<h3 class="text-light-two scheduler-section-title engraved-title">@_localizer["CurrentJobs"]</h3>
<div class="scheduler-table-wrap">
<table id="scheduler-jobs-table" class="text-light-two">
<thead>
<tr>
<th>@_localizer["Id"]</th>
<th>@_localizer["Name"]</th>
<th>@_localizer["JobType"]</th>
<th>@_localizer["ScheduleType"]</th>
<th>@_localizer["Interval"]</th>
<th>@_localizer["Time"]</th>
<th>@_localizer["Status"]</th>
<th>@_localizer["Started"]</th>
<th>@_localizer["Completed"]</th>
<th>@_localizer["Actions"]</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
<h3 class="text-light-two scheduler-section-title engraved-title">@_localizer["AddNewJob"]</h3>
<div class="scheduler-form-container">
<div class="scheduler-job-form">
<div class="scheduler-job-form-group">
<label for="scheduler-job-name" class="text-light-two">@_localizer["JobName"]</label>
<input id="scheduler-job-name" type="text" class="enlightenment-input" />
</div>
<div class="scheduler-job-form-group">
<label for="scheduler-job-task-type" class="text-light-two">@_localizer["JobType"]</label>
<div class="enlightenment-combobox" id="scheduler-job-task-type">
<div class="shine-effect" style="top: 1px;"></div>
<input type="checkbox" class="enlightenment-toggle-checkbox" id="scheduler-job-task-type-toggle" />
<label class="enlightenment-toggle" for="scheduler-job-task-type-toggle">
<span class="enlightenment-selected-text" data-value="ScanMediaLibraries">@_localizer["TaskType.ScanMediaLibraries"]</span>
</label>
<div class="enlightenment-dropdown">
<div class="shine-effect" style="top: -4px;"></div>
<div class="enlightenment-option first-option" data-value="ScanMediaLibraries">@_localizer["TaskType.ScanMediaLibraries"]</div>
<div class="enlightenment-option last-option" data-value="CleanTemporaryFiles">@_localizer["TaskType.CleanTemporaryFiles"]</div>
</div>
</div>
</div>
<div class="scheduler-job-form-group">
<label for="scheduler-job-schedule-type" class="text-light-two">@_localizer["ScheduleType"]</label>
<div class="enlightenment-combobox" id="scheduler-job-schedule-type">
<div class="shine-effect" style="top: 1px;"></div>
<input type="checkbox" class="enlightenment-toggle-checkbox" id="scheduler-job-schedule-type-toggle" />
<label class="enlightenment-toggle" for="scheduler-job-schedule-type-toggle">
<span class="enlightenment-selected-text" data-value="WithIntervalInMinutes">@_localizer["IntervalSchedule"]</span>
</label>
<div class="enlightenment-dropdown">
<div class="shine-effect" style="top: -4px;"></div>
<div class="enlightenment-option first-option" data-value="WithIntervalInMinutes">@_localizer["IntervalSchedule"]</div>
<div class="enlightenment-option last-option" data-value="DailyAtHourAndMinute">@_localizer["DailySchedule"]</div>
</div>
</div>
</div>
<div class="scheduler-job-form-group" id="scheduler-interval-group">
<label for="scheduler-job-interval" class="text-light-two">@_localizer["IntervalMinutes"]</label>
<input id="scheduler-job-interval" type="number" min="1" step="1" value="60" class="enlightenment-input" />
</div>
<div class="scheduler-daily-fields hidden" id="scheduler-daily-group">
<div class="scheduler-job-form-group">
<label for="scheduler-job-hour" class="text-light-two">@_localizer["Hour"]</label>
<input id="scheduler-job-hour" type="number" min="0" max="23" step="1" value="3" class="enlightenment-input" />
</div>
<div class="scheduler-job-form-group" id="scheduler-daily-minute-group">
<label for="scheduler-job-minute" class="text-light-two">@_localizer["Minute"]</label>
<input id="scheduler-job-minute" type="number" min="0" max="59" step="1" value="0" class="enlightenment-input" />
</div>
</div>
<div class="scheduler-job-form-group scheduler-job-add-button-group">
<button id="scheduler-add-job" type="button" class="confirm-button">@_localizer["AddJob"]</button>
</div>
</div>
</div>
</div>
@section Scripts {
<!-- The "text/plain" type is a design choice, not a mistake: it keeps the browser from executing this view script during HTML parsing, before site.js defines the API helpers it calls (callApiGetAsync, callApiPostAsync, ...). site.js (which loads deferred) executes these scripts once it is loaded, both on the initial page load and during AJAX navigation. -->
<script type="text/plain" data-form="@scriptId">
const cleanupFunctions = [];
// Localized strings.
const schedulerStrings = {
noJobs: '@_localizer["NoJobs"]',
daily: '@_localizer["DailySchedule"]',
interval: '@_localizer["IntervalSchedule"]',
jobStarted: '@_localizer["JobStarted"]',
jobRemoved: '@_localizer["JobRemoved"]',
jobStopped: '@_localizer["JobStopped"]',
jobFired: '@_localizer["JobFired"]',
jobAdded: '@_localizer["JobAdded"]',
jobNotFound: '@_localizer["JobNotFound"]',
jobAlreadyRunning: '@_localizer["JobAlreadyRunning"]',
taskTypeNames: {
ScanMediaLibraries: '@_localizer["TaskType.ScanMediaLibraries"]',
CleanTemporaryFiles: '@_localizer["TaskType.CleanTemporaryFiles"]'
},
statusNames: {
Added: '@_localizer["Status.Added"]',
Active: '@_localizer["Status.Active"]',
Running: '@_localizer["Status.Running"]',
Completed: '@_localizer["Status.Completed"]'
}
};
// Colors of the job types.
const jobTypeColors = {
ScanMediaLibraries: '#5aa7c7',
CleanTemporaryFiles: '#c7a15a'
};
const jobsTable = document.getElementById('scheduler-jobs-table');
const jobsTableBody = jobsTable.querySelector('tbody');
const legend = document.getElementById('scheduler-legend');
const graphCanvas = document.getElementById('scheduler-graph');
const graphContext = graphCanvas.getContext('2d');
const jobTypeFilter = document.getElementById('scheduler-job-type-filter');
const timespanInput = document.getElementById('scheduler-timespan');
const timeunitSelect = document.getElementById('scheduler-timeunit');
const updateTimespanButton = document.getElementById('scheduler-update-timespan');
const addJobButton = document.getElementById('scheduler-add-job');
const jobNameInput = document.getElementById('scheduler-job-name');
const jobTaskTypeSelect = document.getElementById('scheduler-job-task-type');
const jobScheduleTypeSelect = document.getElementById('scheduler-job-schedule-type');
const intervalGroup = document.getElementById('scheduler-interval-group');
const dailyGroup = document.getElementById('scheduler-daily-group');
const dailyMinuteGroup = document.getElementById('scheduler-daily-minute-group');
const jobIntervalInput = document.getElementById('scheduler-job-interval');
const jobHourInput = document.getElementById('scheduler-job-hour');
const jobMinuteInput = document.getElementById('scheduler-job-minute');
const jobsListUrl = '@_urlService.GetAbsoluteUrl(WebRoutes.Scheduler.GET_SCHEDULED_JOBS)';
const addJobUrl = '@_urlService.GetAbsoluteUrl(WebRoutes.Scheduler.ADD_SCHEDULED_JOB)';
const historyUrl = '@_urlService.GetAbsoluteUrl(WebRoutes.Scheduler.GET_SCHEDULED_JOB_HISTORY)';
const guidPlaceholder = '00000000-0000-0000-0000-000000000000';
const startJobUrlTemplate = '@_urlService.GetAbsoluteUrl(WebRoutes.Scheduler.START_SCHEDULED_JOB, new { scheduledJobId = default(Guid) })';
const stopJobUrlTemplate = '@_urlService.GetAbsoluteUrl(WebRoutes.Scheduler.STOP_SCHEDULED_JOB, new { scheduledJobId = default(Guid) })';
const fireJobUrlTemplate = '@_urlService.GetAbsoluteUrl(WebRoutes.Scheduler.FIRE_SCHEDULED_JOB, new { scheduledJobId = default(Guid) })';
const removeJobUrlTemplate = '@_urlService.GetAbsoluteUrl(WebRoutes.Scheduler.REMOVE_SCHEDULED_JOB, new { scheduledJobId = default(Guid) })';
const accessTokenUrl = '@_urlService.GetAbsoluteUrl(WebRoutes.Authentication.GET_API_ACCESS_TOKEN)';
const schedulerHubUrl = '@scheduledJobsHubUrl';
function getComboboxValue(combobox) {
const selected = combobox.querySelector('.enlightenment-selected-text');
return selected ? (selected.getAttribute('data-value') || '') : '';
}
// Binds the change of a themed combobox to a callback, so the page reacts to a selection the same way it did to
// the change event of a native select.
function bindComboboxChange(combobox, onChange) {
const handler = event => {
const option = event.target.closest('.enlightenment-option');
if (!option || !combobox.contains(option))
return;
const selected = combobox.querySelector('.enlightenment-selected-text');
if (selected) {
selected.textContent = option.textContent;
selected.setAttribute('data-value', option.getAttribute('data-value'));
}
onChange();
};
combobox.addEventListener('click', handler);
return () => combobox.removeEventListener('click', handler);
}
// Persists the display preferences of the scheduler page (the job type filter, the time span and its unit) in the
// browser, so that they are restored when the page is reloaded, and the graph and the jobs list respect them.
const schedulerSettingsKey = 'luminaSchedulerSettings';
function readSchedulerSettings() {
try {
const storedSettings = localStorage.getItem(schedulerSettingsKey);
return storedSettings ? JSON.parse(storedSettings) : {};
} catch (error) {
console.error('Failed to read the scheduler settings:', error);
return {};
}
}
function writeSchedulerSettings(settings) {
try {
localStorage.setItem(schedulerSettingsKey, JSON.stringify(settings));
} catch (error) {
console.error('Failed to store the scheduler settings:', error);
}
}
function setComboboxValue(combobox, value) {
const option = combobox.querySelector(`.enlightenment-option[data-value="${value}"]`);
if (!option)
return;
const selected = combobox.querySelector('.enlightenment-selected-text');
if (selected) {
selected.textContent = option.textContent;
selected.setAttribute('data-value', option.getAttribute('data-value'));
}
}
function persistDisplayPreferences() {
const settings = {
jobType: getComboboxValue(jobTypeFilter) || 'All',
timespan: timespanInput.value,
timeUnit: getComboboxValue(timeunitSelect)
};
writeSchedulerSettings(settings);
}
// Restores the stored display preferences on the controls, before the graph and the jobs list are loaded.
function applyDisplayPreferences() {
const settings = readSchedulerSettings();
if (settings.jobType)
setComboboxValue(jobTypeFilter, settings.jobType);
if (settings.timeUnit)
setComboboxValue(timeunitSelect, settings.timeUnit);
const storedTimespan = Number(settings.timespan);
if (Number.isFinite(storedTimespan) && storedTimespan >= 1)
timespanInput.value = storedTimespan;
}
// Graph state.
const taskTypeOrder = ['ScanMediaLibraries', 'CleanTemporaryFiles'];
const graphState = {
dataPoints: [],
pixelsPerSecond: 0,
visibleTime: 0,
scrollOffset: 0,
startTime: null,
width: 0,
height: 0,
gridSpacing: 0
};
let currentJobs = [];
let schedulerHubConnection = null;
let graphSizeObserver = null;
let isInitialized = false;
//+----------------------------------------------------------------------------------------+
// | Rendering |.
//+----------------------------------------------------------------------------------------+
// The API stores the execution and job timestamps in UTC, but the persistence medium (SQLite) stores them as
// plain text, so the JSON the browser receives carries no time zone offset (no "Z"). Without an explicit offset,
// new Date(...) interprets the value as a local time, which shifts every tick by the local UTC offset and pushes
// it off the graph. Appending "Z" keeps those values anchored to UTC, where they were recorded.
function parseUtcTimestamp(timestampValue) {
if (!timestampValue)
return null;
const value = String(timestampValue);
const hasOffset = /(?:Z|[+-]\d{2}:\d{2})$/i.test(value);
return new Date(hasOffset ? value : value + 'Z');
}
function formatDateTime(dateTimeValue) {
const date = parseUtcTimestamp(dateTimeValue);
if (!date || isNaN(date.getTime()))
return '-';
return date.toLocaleString();
}
function renderJobsTable() {
const filter = getComboboxValue(jobTypeFilter);
const jobs = filter === 'All' ? currentJobs : currentJobs.filter(job => job.taskType === filter);
const columnLabels = getColumnLabels();
jobsTableBody.innerHTML = '';
if (jobs.length === 0) {
const emptyRow = document.createElement('tr');
const emptyCell = document.createElement('td');
emptyCell.colSpan = 10;
emptyCell.className = 'text-center text-disabled';
emptyCell.textContent = schedulerStrings.noJobs;
emptyRow.appendChild(emptyCell);
jobsTableBody.appendChild(emptyRow);
return;
}
jobs.forEach(job => {
const row = document.createElement('tr');
row.dataset.scheduledJobId = job.id;
const isInterval = job.scheduleType === 'WithIntervalInMinutes';
row.innerHTML = `
<td data-label="${escapeHtml(columnLabels[0])}">${job.id}</td>
<td data-label="${escapeHtml(columnLabels[1])}">${escapeHtml(job.name)}</td>
<td data-label="${escapeHtml(columnLabels[2])}">${schedulerStrings.taskTypeNames[job.taskType] ?? job.taskType}</td>
<td data-label="${escapeHtml(columnLabels[3])}">${isInterval ? schedulerStrings.interval : schedulerStrings.daily}</td>
<td data-label="${escapeHtml(columnLabels[4])}">${isInterval ? job.intervalMinutes + ' ' + '@_localizer["MinutesShort"]' : '-'}</td>
<td data-label="${escapeHtml(columnLabels[5])}">${isInterval ? '-' : String(job.hour).padStart(2, '0') + ':' + String(job.minute).padStart(2, '0')}</td>
<td data-label="${escapeHtml(columnLabels[6])}">${schedulerStrings.statusNames[job.status] ?? job.status}</td>
<td data-label="${escapeHtml(columnLabels[7])}">${formatDateTime(job.lastStartedOnUtc)}</td>
<td data-label="${escapeHtml(columnLabels[8])}">${formatDateTime(job.lastCompletedOnUtc)}</td>
`;
const actionsCell = document.createElement('td');
actionsCell.className = 'text-center';
actionsCell.dataset.label = columnLabels[9];
const actionsDiv = document.createElement('div');
actionsDiv.className = 'scheduler-action-buttons justify-center';
const isRunning = job.status === 'Running';
const isActive = job.status === 'Active';
const canStop = isActive || isRunning;
actionsDiv.appendChild(createActionButton('@_localizer["Start"]', () => startJobAsync(job.id), canStop));
actionsDiv.appendChild(createActionButton('@_localizer["Stop"]', () => stopJobAsync(job.id), !canStop));
actionsDiv.appendChild(createActionButton('@_localizer["Fire"]', () => fireJobAsync(job.id), isRunning));
// The cycle of a job that was started must be stopped before the job can be removed.
actionsDiv.appendChild(createActionButton('@_localizer["Remove"]', () => removeJobAsync(job.id), canStop));
actionsCell.appendChild(actionsDiv);
row.appendChild(actionsCell);
jobsTableBody.appendChild(row);
});
}
function createActionButton(label, action, isDisabled) {
const button = document.createElement('button');
button.type = 'button';
button.textContent = label;
button.className = 'confirm-button f-12 h-22px';
if (isDisabled) {
button.disabled = true;
button.classList.add('text-disabled');
}
button.addEventListener('click', action);
return button;
}
function escapeHtml(value) {
const div = document.createElement('div');
div.textContent = value;
return div.innerHTML;
}
function getColumnLabels() {
return Array.from(jobsTable.querySelectorAll('thead th')).map(header => header.textContent.trim());
}
function renderLegend() {
legend.innerHTML = '';
// The graph draws its task lanes from bottom to top, so the legend lists the entries in the same order,
// and each entry stretches across one lane height to keep the legend labels aligned with the graph lanes.
const entries = Object.entries(jobTypeColors);
for (let index = entries.length - 1; index >= 0; index--) {
const [taskType, color] = entries[index];
const item = document.createElement('div');
item.className = 'scheduler-legend-item';
const swatch = document.createElement('span');
swatch.className = 'scheduler-legend-swatch';
swatch.style.backgroundColor = color;
const label = document.createElement('span');
label.textContent = schedulerStrings.taskTypeNames[taskType] ?? taskType;
item.appendChild(swatch);
item.appendChild(label);
legend.appendChild(item);
}
}
//+----------------------------------------------------------------------------------------+
// | Graph |.
//+----------------------------------------------------------------------------------------+
function resizeGraph() {
// The graph fills the width of its container next to the legend, and its height follows the legend,
// with a sensible floor; the height must not be derived from the canvas element box, because the flex
// layout stretches the canvas and its replaced-element aspect ratio would blow the box up.
const container = graphCanvas.parentElement;
if (!container || container.clientWidth <= 0)
return;
const isStacked = getComputedStyle(container).flexDirection === 'column';
const canvasWidth = isStacked
? container.clientWidth
: Math.max(container.clientWidth - legend.offsetWidth - 20, 300);
const canvasHeight = Math.max(legend.offsetHeight, 200);
graphState.width = canvasWidth;
graphState.height = canvasHeight;
graphCanvas.width = canvasWidth;
graphCanvas.height = canvasHeight;
graphCanvas.style.width = canvasWidth + 'px';
graphCanvas.style.height = canvasHeight + 'px';
adjustTimeScale();
drawGraph();
}
function observeGraphSize() {
// Re-measure whenever the graph or its legend changes size, since the graph only grows to its final
// width once the page and the theme assets have finished laying out (for example after AJAX navigation).
if (typeof ResizeObserver === 'undefined')
return null;
const observer = new ResizeObserver(() => resizeGraph());
observer.observe(graphCanvas);
observer.observe(graphCanvas.parentElement);
observer.observe(legend);
return observer;
}
function adjustTimeScale() {
const secondsPerUnit = { Minutes: 60, Hours: 3600, Days: 86400 };
const totalSeconds = Number(timespanInput.value) * secondsPerUnit[getComboboxValue(timeunitSelect)];
graphState.pixelsPerSecond = graphState.width / totalSeconds;
graphState.visibleTime = graphState.width / graphState.pixelsPerSecond;
graphState.gridSpacing = 3600 * graphState.pixelsPerSecond;
}
function drawGraph() {
graphContext.clearRect(0, 0, graphState.width, graphState.height);
drawGrid();
drawBars();
}
function drawGrid() {
graphContext.clearRect(0, 0, graphState.width, graphState.height);
graphContext.fillStyle = '#151515';
graphContext.fillRect(0, 0, graphState.width, graphState.height);
const numberOfTasks = taskTypeOrder.length;
graphContext.strokeStyle = '#3a3a3a';
graphContext.lineWidth = 0.5;
graphContext.fillStyle = '#a8a8a8';
graphContext.font = '10px Arial';
for (let index = 1; index < numberOfTasks; index++) {
const y = graphState.height - (index * graphState.height / numberOfTasks);
graphContext.beginPath();
graphContext.moveTo(0, y);
graphContext.lineTo(graphState.width, y);
graphContext.stroke();
}
// Label each task lane with its type color.
taskTypeOrder.forEach((taskType, index) => {
const laneY = graphState.height - ((index + 0.5) * graphState.height / numberOfTasks);
graphContext.fillStyle = jobTypeColors[taskType];
graphContext.fillText(schedulerStrings.taskTypeNames[taskType] ?? taskType, 4, laneY);
});
drawVerticalGridLines();
}
function drawVerticalGridLines() {
const currentTime = new Date();
const offsetX = graphState.scrollOffset % graphState.gridSpacing;
const minuteInterval = determineMinuteInterval();
// Hour lines, scrolling with the passage of time.
for (let x = graphState.width - offsetX; x > -graphState.gridSpacing; x -= graphState.gridSpacing) {
drawGridLine(x, '#333333');
const pixelsFromRight = graphState.width - x;
const secondsAgo = pixelsFromRight / graphState.pixelsPerSecond;
const labelTime = new Date(currentTime - secondsAgo * 1000);
if (labelTime.getMinutes() >= 30)
labelTime.setHours(labelTime.getHours() + 1);
labelTime.setMinutes(0, 0, 0);
graphContext.fillStyle = '#a8a8a8';
graphContext.font = '10px Arial';
graphContext.fillText(labelTime.toTimeString().substring(0, 5), x - 25, graphState.height - 5);
// Minute lines between this hour mark and the next.
for (let i = minuteInterval; i < 60; i += minuteInterval) {
const minuteX = x + (graphState.gridSpacing * i / 60);
if (minuteX >= 0 && minuteX <= graphState.width)
drawGridLine(minuteX, '#3a3a3a');
}
}
// Minute labels when the displayed time span is shorter than three hours.
if (graphState.visibleTime < 3 * 3600) {
graphContext.fillStyle = '#777777';
graphContext.font = '8px Arial';
const minutesToDisplay = Math.ceil(graphState.visibleTime / 60);
for (let i = 0; i <= minutesToDisplay; i++) {
const x = graphState.width - (graphState.scrollOffset % (graphState.gridSpacing / 60)) - (i * graphState.gridSpacing / 60);
if (x < 0)
break;
const minutes = (currentTime.getMinutes() - i + 60) % 60;
if (minutes % minuteInterval === 0)
graphContext.fillText(minutes.toString().padStart(2, '0'), x, graphState.height - 20);
}
}
}
function determineMinuteInterval() {
if (graphState.visibleTime > 6 * 3600) return 30;
if (graphState.visibleTime > 3 * 3600) return 15;
if (graphState.visibleTime > 1800) return 10;
return 1;
}
function drawGridLine(x, color) {
graphContext.beginPath();
graphContext.moveTo(x, 0);
graphContext.lineTo(x, graphState.height);
graphContext.strokeStyle = color;
graphContext.stroke();
}
function drawBars() {
const numberOfTasks = taskTypeOrder.length;
graphState.dataPoints.forEach(point => {
// The offset is computed here, on every draw, and not when the point was added, because the graph
// scale (pixels per second) is only known once the canvas has been laid out; a point whose offset was
// baked in before the first layout would otherwise be drawn at the wrong position, or not drawn at all.
const pointOffset = (point.time - graphState.startTime) / 1000 * graphState.pixelsPerSecond;
const x = graphState.width - (graphState.scrollOffset - pointOffset);
if (x >= -2 && x <= graphState.width) {
const taskIndex = taskTypeOrder.indexOf(point.taskType);
if (taskIndex < 0)
return;
// A task occupies its own horizontal lane between two consecutive horizontal grid lines; the lanes
// are stacked from bottom to top, so the tick spans the entire height of its lane, from the top
// boundary of the lane down to its bottom boundary, without spilling into the neighboring lanes.
const laneHeight = graphState.height / numberOfTasks;
const barTop = graphState.height - (taskIndex + 1) * laneHeight;
graphContext.fillStyle = jobTypeColors[point.taskType];
graphContext.fillRect(x, barTop, 2, laneHeight);
}
});
}
function addGraphDataPoint(timestampValue, taskType) {
const timestamp = parseUtcTimestamp(timestampValue);
if (!timestamp || isNaN(timestamp.getTime()))
return;
const point = {
time: timestamp,
taskType: taskType
};
graphState.dataPoints.push(point);
}
function updateGraph() {
const elapsedSeconds = (new Date() - graphState.startTime) / 1000;
graphState.scrollOffset = elapsedSeconds * graphState.pixelsPerSecond + (graphState.startTime.getMinutes() * 60 * graphState.pixelsPerSecond);
graphContext.clearRect(0, 0, graphState.width, graphState.height);
drawGrid();
drawBars();
window.requestAnimationFrame(updateGraph);
}
//+----------------------------------------------------------------------------------------+
// | Data loading |.
//+----------------------------------------------------------------------------------------+
async function loadJobsAsync() {
const response = await callApiGetAsync(jobsListUrl);
if (response && Array.isArray(response)) {
currentJobs = response;
renderJobsTable();
}
}
// Determines whether the task of an execution is shown, given the selected job type filter.
function shouldShowTaskType(taskType) {
const filter = getComboboxValue(jobTypeFilter);
return filter === 'All' || taskType === filter;
}
async function loadHistoryAsync() {
const from = new Date(Date.now() - Number(timespanInput.value) * { Minutes: 60000, Hours: 3600000, Days: 86400000 }[getComboboxValue(timeunitSelect)]);
const url = historyUrl + '?from=' + encodeURIComponent(from.toISOString());
const executions = await callApiGetAsync(url);
if (executions && Array.isArray(executions))
executions.forEach(execution => {
if (shouldShowTaskType(execution.taskType))
addGraphDataPoint(execution.startedOnUtc, execution.taskType);
});
}
async function updateTimeSpanAsync() {
adjustTimeScale();
graphState.dataPoints = [];
persistDisplayPreferences();
await loadHistoryAsync();
}
//+----------------------------------------------------------------------------------------+
// | Job actions |.
//+----------------------------------------------------------------------------------------+
async function executeJobActionAsync(url, successMessage) {
const result = await callApiPutAsync(url, {});
if (result && result.success) {
notificationService.show(successMessage, NotificationType.SUCCESS);
await loadJobsAsync();
}
}
function getJobActionUrl(baseUrl, jobId) {
return baseUrl.replace(guidPlaceholder, jobId);
}
async function startJobAsync(jobId) {
await executeJobActionAsync(getJobActionUrl(startJobUrlTemplate, jobId), schedulerStrings.jobStarted);
}
async function stopJobAsync(jobId) {
await executeJobActionAsync(getJobActionUrl(stopJobUrlTemplate, jobId), schedulerStrings.jobStopped);
}
async function fireJobAsync(jobId) {
await executeJobActionAsync(getJobActionUrl(fireJobUrlTemplate, jobId), schedulerStrings.jobFired);
}
async function removeJobAsync(jobId) {
if (await dialogService.show('@_localizer["RemoveJobConfirm"]', jsLocalizedDialogs.confirmation, DialogButtons.YES_NO, DialogIcon.QUESTION) === DialogButton.YES) {
const removed = await callApiDeleteAsync(getJobActionUrl(removeJobUrlTemplate, jobId));
if (removed)
notificationService.show(schedulerStrings.jobRemoved, NotificationType.SUCCESS);
}
}
async function addJobAsync() {
const scheduleType = getComboboxValue(jobScheduleTypeSelect);
const payload = {
name: jobNameInput.value.trim(),
taskType: getComboboxValue(jobTaskTypeSelect),
scheduleType: scheduleType,
intervalMinutes: scheduleType === 'WithIntervalInMinutes' ? Number(jobIntervalInput.value) : null,
hour: scheduleType === 'DailyAtHourAndMinute' ? Number(jobHourInput.value) : null,
minute: scheduleType === 'DailyAtHourAndMinute' ? Number(jobMinuteInput.value) : null
};
if (!payload.name) {
notificationService.show('@_localizer["JobNameRequired"]', NotificationType.ERROR);
return;
}
const response = await callApiPostAsync(addJobUrl, payload);
if (response) {
notificationService.show(schedulerStrings.jobAdded, NotificationType.SUCCESS);
jobNameInput.value = '';
await loadJobsAsync();
}
}
//+----------------------------------------------------------------------------------------+
// | SignalR |.
//+----------------------------------------------------------------------------------------+
async function getAccessTokenAsync() {
const response = await callApiGetAsync(accessTokenUrl);
return response ? response.token : null;
}
async function connectHubAsync() {
const token = await getAccessTokenAsync();
schedulerHubConnection = new signalR.HubConnectionBuilder()
.withUrl(schedulerHubUrl, { accessTokenFactory: () => token })
.withAutomaticReconnect({ nextRetryDelayInMilliseconds: retryContext => Math.min(retryContext.elapsedMilliseconds * 2, 10000) })
.configureLogging(signalR.LogLevel.Warning)
.build();
schedulerHubConnection.on('ReceiveScheduledJobsAsync', scheduledJobs => {
currentJobs = scheduledJobs || [];
renderJobsTable();
});
schedulerHubConnection.on('ScheduledJobExecutionStartedAsync', execution => {
if (shouldShowTaskType(execution.taskType))
addGraphDataPoint(execution.startedOnUtc, execution.taskType);
loadJobsAsync();
});
schedulerHubConnection.on('ScheduledJobExecutionCompletedAsync', execution => {
loadJobsAsync();
});
try {
await schedulerHubConnection.start();
} catch (error) {
console.error('Failed to connect to the scheduled jobs hub:', error);
}
}
//+----------------------------------------------------------------------------------------+
// | Initialization |.
//+----------------------------------------------------------------------------------------+
async function initialize() {
applyDisplayPreferences();
renderLegend();
graphState.startTime = new Date();
graphState.startTime.setMinutes(0, 0, 0);
resizeGraph();
await loadJobsAsync();
await loadHistoryAsync();
await connectHubAsync();
window.requestAnimationFrame(updateGraph);
window.addEventListener('resize', resizeGraph);
graphSizeObserver = observeGraphSize();
// Toggle the schedule fields based on the selected schedule type.
const toggleScheduleFields = () => {
const isDaily = getComboboxValue(jobScheduleTypeSelect) === 'DailyAtHourAndMinute';
intervalGroup.classList.toggle('hidden', isDaily);
dailyGroup.classList.toggle('hidden', !isDaily);
dailyMinuteGroup.classList.toggle('hidden', !isDaily);
};
const unbindScheduleTypeChange = bindComboboxChange(jobScheduleTypeSelect, toggleScheduleFields);
toggleScheduleFields();
// Persist the display preferences when they change, and reload the history when the job type filter changes,
// so that the graph and the jobs list always respect the selected filter.
const handleJobTypeFilterChange = () => {
persistDisplayPreferences();
renderJobsTable();
updateTimeSpanAsync();
};
const unbindJobTypeFilterChange = bindComboboxChange(jobTypeFilter, handleJobTypeFilterChange);
const unbindTimeUnitChange = bindComboboxChange(timeunitSelect, persistDisplayPreferences);
const handleTimespanChange = () => persistDisplayPreferences();
timespanInput.addEventListener('input', handleTimespanChange);
timespanInput.addEventListener('change', handleTimespanChange);
updateTimespanButton.addEventListener('click', updateTimeSpanAsync);
addJobButton.addEventListener('click', addJobAsync);
cleanupFunctions.push(() => {
window.removeEventListener('resize', resizeGraph);
if (graphSizeObserver) {
graphSizeObserver.disconnect();
graphSizeObserver = null;
}
unbindScheduleTypeChange();
unbindJobTypeFilterChange();
unbindTimeUnitChange();
timespanInput.removeEventListener('input', handleTimespanChange);
timespanInput.removeEventListener('change', handleTimespanChange);
updateTimespanButton.removeEventListener('click', updateTimeSpanAsync);
addJobButton.removeEventListener('click', addJobAsync);
if (schedulerHubConnection)
schedulerHubConnection.stop();
});
}
// Run the initialization once, the AJAX navigator may execute this view script again after navigating back.
if (!isInitialized) {
isInitialized = true;
initialize();
}
// Store all cleanups for this view on window object using the scriptId.
window.viewCleanups = window.viewCleanups || {};
window.viewCleanups['@scriptId'] = () => {
cleanupFunctions.forEach(cleanup => cleanup());
console.log(`Unloaded @scriptId`);
};
console.log(`Loaded @scriptId`);
</script>
}