Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
95 commits
Select commit Hold shift + click to select a range
c58cfe7
Configure OpenID Connect authentication using the Moodle user ID, ret…
binon Feb 14, 2025
0930d3f
Updated the completion status logic
binon Feb 14, 2025
fd2937b
minor tweak on course image display
binon Feb 19, 2025
5ed9358
fixes-TD-5182
AnjuJose011 Feb 25, 2025
fe2f1aa
Bump @babel/core in /AdminUI/LearningHub.Nhs.AdminUI (#1028)
dependabot[bot] Mar 12, 2025
a983ccc
Bump @babel/core from 7.26.9 to 7.26.10 in /LearningHub.Nhs.WebUI (#1…
dependabot[bot] Mar 12, 2025
5f3b7a0
Bump sass from 1.85.1 to 1.86.0 in /AdminUI/LearningHub.Nhs.AdminUI (…
dependabot[bot] Mar 18, 2025
73c451d
Bump sass from 1.85.1 to 1.86.0 in /LearningHub.Nhs.WebUI (#1033)
dependabot[bot] Mar 18, 2025
b70aa00
Bump @mediakind/mkplayer from 1.19.0 to 1.20.0 in /LearningHub.Nhs.We…
dependabot[bot] Mar 19, 2025
6b7dad8
Bump @mediakind/mkplayer in /AdminUI/LearningHub.Nhs.AdminUI (#1041)
dependabot[bot] Mar 19, 2025
5c238e5
Bump sanitize-html in /AdminUI/LearningHub.Nhs.AdminUI (#1042)
dependabot[bot] Mar 20, 2025
b4f263e
Bump sanitize-html from 2.14.0 to 2.15.0 in /LearningHub.Nhs.WebUI (#…
dependabot[bot] Mar 20, 2025
175d833
Bump axios from 0.29.0 to 0.30.0 in /LearningHub.Nhs.WebUI (#1046)
dependabot[bot] Mar 27, 2025
082a475
Bump axios from 0.19.2 to 0.30.0 in /AdminUI/LearningHub.Nhs.AdminUI …
dependabot[bot] Mar 27, 2025
df645f9
Bump @mediakind/mkplayer from 1.20.0 to 1.21.0 in /LearningHub.Nhs.WebUI
dependabot[bot] Mar 28, 2025
1321ad5
TD-5146-Fix
AnjuJose011 Mar 28, 2025
af255b6
File upload vulnerability fixes
Swapnamol Mar 28, 2025
1d8de4e
Bump @types/sanitize-html in /AdminUI/LearningHub.Nhs.AdminUI
dependabot[bot] Mar 31, 2025
2d79c68
Merge pull request #1051 from TechnologyEnhancedLearning/TD-5146-Reso…
AnjuJose011 Apr 1, 2025
e0305b1
Update package.json
AnjuJose011 Apr 2, 2025
f0317a8
Update package-lock.json
AnjuJose011 Apr 2, 2025
85c7b29
Bump @mediakind/mkplayer in /AdminUI/LearningHub.Nhs.AdminUI
dependabot[bot] Apr 2, 2025
12e4a76
Bump sass from 1.86.0 to 1.86.3 in /AdminUI/LearningHub.Nhs.AdminUI
dependabot[bot] Apr 4, 2025
d59c8ed
Bump sass from 1.86.0 to 1.86.3 in /LearningHub.Nhs.WebUI
dependabot[bot] Apr 4, 2025
b50b2f6
TD-3734: Concurrent Sessions Allowed
Swapnamol Apr 4, 2025
bfd7328
Key added [ConcurrentId]
Swapnamol Apr 4, 2025
1de36ca
.net framework upgraded for Database project
Swapnamol Apr 4, 2025
b29603b
Merge pull request #1068 from TechnologyEnhancedLearning/RC
AnjuJose011 Apr 7, 2025
82ec6bc
Merge pull request #1067 from TechnologyEnhancedLearning/Develop/Fixe…
swapnamol-abraham Apr 7, 2025
b089d86
exception check
Apr 7, 2025
32a305b
Script moved to seperate Js file
Swapnamol Apr 8, 2025
a4a7595
Merge pull request #1066 from TechnologyEnhancedLearning/Develop/Fixe…
swapnamol-abraham Apr 8, 2025
476c412
Bump webpack from 5.98.0 to 5.99.5 in /LearningHub.Nhs.WebUI
dependabot[bot] Apr 9, 2025
7cda259
Bump webpack from 5.98.0 to 5.99.5 in /AdminUI/LearningHub.Nhs.AdminUI
dependabot[bot] Apr 9, 2025
56ff1e2
Added Progress option
Apr 10, 2025
e4dec15
TD-3727: Prompting a password entry screen on file upload
Swapnamol Apr 10, 2025
169e034
conflicts resloved
AnjuJose011 Apr 10, 2025
163853a
Merge pull request #1083 from TechnologyEnhancedLearning/MergeFlaxLil…
AnjuJose011 Apr 10, 2025
583162a
Modified the content
Swapnamol Apr 10, 2025
9155364
Removed the debugger
Swapnamol Apr 11, 2025
bf02e59
Added new feature flag to enable/disable moodle
Apr 11, 2025
c352394
Merging RC changes
Apr 11, 2025
a43b5cb
Reinstatinmg appsettings
Apr 11, 2025
dbe2552
reverting some comented code
Apr 11, 2025
4def954
Merging RC chages into TD-5285
Apr 11, 2025
af0442e
Missed this file
Apr 11, 2025
98e285d
Updated appsetting to reflect RC
Apr 11, 2025
205e96b
Merge pull request #1049 from TechnologyEnhancedLearning/dependabot/n…
AnjuJose011 Apr 11, 2025
190bb4e
Merge pull request #1050 from TechnologyEnhancedLearning/dependabot/n…
AnjuJose011 Apr 11, 2025
c3137a1
Merge branch 'RC' into Develop/Fixes/TD-3727-Unrestricted-File-Upload…
swapnamol-abraham Apr 11, 2025
b722c48
Merge pull request #1081 from TechnologyEnhancedLearning/Develop/Fixe…
swapnamol-abraham Apr 11, 2025
d5ff792
Chnage in Titile/desc-TD-5182
AnjuJose011 Apr 11, 2025
6acf19b
Fixed the build error
Swapnamol Apr 11, 2025
e8b163a
Merge pull request #1004 from TechnologyEnhancedLearning/TD-5182-Crat…
AnjuJose011 Apr 11, 2025
4f67e28
Merge pull request #1076 from TechnologyEnhancedLearning/dependabot/n…
AnjuJose011 Apr 12, 2025
4bb178b
Merge pull request #1075 from TechnologyEnhancedLearning/dependabot/n…
AnjuJose011 Apr 12, 2025
298ea35
Merge pull request #1053 from TechnologyEnhancedLearning/dependabot/n…
AnjuJose011 Apr 12, 2025
f36b25a
Merge pull request #1064 from TechnologyEnhancedLearning/dependabot/n…
AnjuJose011 Apr 12, 2025
fa8adee
Merge pull request #1065 from TechnologyEnhancedLearning/dependabot/n…
AnjuJose011 Apr 12, 2025
c83d6b5
Merge pull request #1085 from TechnologyEnhancedLearning/Automatic_ve…
AnjuJose011 Apr 12, 2025
bee6cdb
Added moodle invalid user check
Apr 14, 2025
854eb7f
Merge pull request #1084 from TechnologyEnhancedLearning/Develop/POC/…
binon Apr 14, 2025
2294afd
Removed yarn.lock file
Apr 14, 2025
e0e1771
Merge pull request #1086 from TechnologyEnhancedLearning/Develop/POC/…
binon Apr 14, 2025
50c6002
removed the hardcoded url in moodle entrolled course
Apr 22, 2025
aa48209
Merge pull request #1094 from TechnologyEnhancedLearning/Develop/POC/…
binon Apr 22, 2025
5bbb3a4
TD-4382: Video progress recorded but not changing status to complete
swapnamol-abraham Apr 23, 2025
f27cbf6
Merge pull request #1095 from TechnologyEnhancedLearning/Develop/Fixe…
swapnamol-abraham Apr 23, 2025
8e5c88f
Updated the target framework version to 4.8
swapnamol-abraham Apr 24, 2025
3b4680d
Merge pull request #1097 from TechnologyEnhancedLearning/Develop/Fixe…
swapnamol-abraham Apr 24, 2025
86f694b
TD-5142: Issue with focussing to the fields on Contribute resource sc…
swapnamol-abraham Apr 25, 2025
a24fce8
Merge pull request #1098 from TechnologyEnhancedLearning/Develop/Fixe…
swapnamol-abraham Apr 25, 2025
f8f4d9a
TD-3727- Unrestricted file upload- SIT comments
swapnamol-abraham Apr 29, 2025
e04b7af
Merge pull request #1101 from TechnologyEnhancedLearning/Develop/Fixe…
swapnamol-abraham Apr 29, 2025
269bf89
TD-3734-Concurrent session-SIT fixes
swapnamol-abraham Apr 29, 2025
7db18da
Merge pull request #1102 from TechnologyEnhancedLearning/Develop/Fixe…
swapnamol-abraham Apr 29, 2025
87368a7
Corrected the title
swapnamol-abraham Apr 30, 2025
a56eeb3
Merge pull request #1105 from TechnologyEnhancedLearning/Develop/Fixe…
swapnamol-abraham Apr 30, 2025
e68e284
Revert ".net framework upgraded for Database project"
swapnamol-abraham May 1, 2025
ae403ff
Reverted the latest changes for an emergency release
swapnamol-abraham May 1, 2025
19af23d
Reverted the changes
swapnamol-abraham May 1, 2025
d47a72b
TD-5142 - Accessbility issues on contribution screen
swapnamol-abraham May 6, 2025
f8bae45
Moved common css to common.scss file
swapnamol-abraham May 6, 2025
c479078
Merge pull request #1111 from TechnologyEnhancedLearning/Develop/Fixe…
swapnamol-abraham May 6, 2025
bf119a7
Update continuous-integration-workflow.yml
swapnamol-abraham May 7, 2025
87111d8
Merge pull request #1116 from TechnologyEnhancedLearning/swapnamol-ab…
swapnamol-abraham May 7, 2025
f3bf57d
TD-5538: IUncluded web.config in the solution
swapnamol-abraham May 12, 2025
e983fff
TD-5538: update web.config file
swapnamol-abraham May 12, 2025
0f4508f
Merge pull request #1122 from TechnologyEnhancedLearning/Develop/Fixe…
swapnamol-abraham May 12, 2025
b40f736
TD-5143: issue reading twice with screen reader on contribute resourc…
swapnamol-abraham May 13, 2025
e1cdfb3
Merge pull request #1123 from TechnologyEnhancedLearning/Develop/Fixe…
swapnamol-abraham May 13, 2025
5af1fd7
TD-5608: Radio buttons / rating stars selection misaligned
swapnamol-abraham May 19, 2025
06b03f1
Merge pull request #1129 from TechnologyEnhancedLearning/Develop/Fixe…
swapnamol-abraham May 19, 2025
98e4098
TD-5608: Fixed the radiobutton alignment issues
swapnamol-abraham May 19, 2025
4d35089
Merge pull request #1130 from TechnologyEnhancedLearning/Develop/Fixe…
swapnamol-abraham May 19, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions .github/workflows/continuous-integration-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,66 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Modify web.config files in all apps
shell: pwsh
run: |
$webConfigPaths = @(
"${{ github.workspace }}\AdminUI\LearningHub.Nhs.AdminUI\web.config",
"${{ github.workspace }}\WebAPI\LearningHub.Nhs.Api\web.config",
"${{ github.workspace }}\LearningHub.Nhs.WebUI\web.config"
)

foreach ($path in $webConfigPaths) {
if (Test-Path $path) {
Write-Host "Modifying $path"
[xml]$config = Get-Content $path

if (-not $config.configuration.'system.webServer') {
$systemWebServer = $config.CreateElement("system.webServer")
$config.configuration.AppendChild($systemWebServer) | Out-Null
} else {
$systemWebServer = $config.configuration.'system.webServer'
}

if (-not $systemWebServer.httpProtocol) {
$httpProtocol = $config.CreateElement("httpProtocol")
$systemWebServer.AppendChild($httpProtocol) | Out-Null
} else {
$httpProtocol = $systemWebServer.httpProtocol
}

if (-not $httpProtocol.customHeaders) {
$customHeaders = $config.CreateElement("customHeaders")
$httpProtocol.AppendChild($customHeaders) | Out-Null
} else {
$customHeaders = $httpProtocol.customHeaders
}

foreach ($name in @("X-Powered-By", "Server")) {
$removeNode = $config.CreateElement("remove")
$removeNode.SetAttribute("name", $name)
$customHeaders.AppendChild($removeNode) | Out-Null
}

if (-not $systemWebServer.security) {
$security = $config.CreateElement("security")
$systemWebServer.AppendChild($security) | Out-Null
} else {
$security = $systemWebServer.security
}

if (-not $security.requestFiltering) {
$requestFiltering = $config.CreateElement("requestFiltering")
$requestFiltering.SetAttribute("removeServerHeader", "true")
$security.AppendChild($requestFiltering) | Out-Null
}

$config.Save($path)
} else {
Write-Host "File not found: $path"
}
}

- name: Setup .NET Core SDK 8.0
uses: actions/setup-dotnet@v3
with:
Expand Down
60 changes: 60 additions & 0 deletions AdminUI/LearningHub.Nhs.AdminUI/Controllers/api/UserController.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
namespace LearningHub.Nhs.AdminUI.Controllers.Api
{
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using elfhHub.Nhs.Models.Common;
using elfhHub.Nhs.Models.Enums;
using LearningHub.Nhs.AdminUI.Interfaces;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;

/// <summary>
/// The UserController class.
/// </summary>
[Authorize]
[Route("api/[controller]")]
[ApiController]
public class UserController : BaseApiController
{
/// <summary>
/// The elfh user service..
/// </summary>
private IUserService userService;

/// <summary>
/// Initializes a new instance of the <see cref="UserController"/> class.
/// </summary>
/// <param name="userService">The userService<see cref="IUserService"/>.</param>
/// <param name="loginWizardService">loginWizardService.</param>
/// <param name="logger">logger.</param>
/// <param name="settings">Settings.</param>
public UserController(IUserService userService, ILogger<UserController> logger)
: base(logger)
{
this.userService = userService;
}

/// <summary>
/// The SessionTimeout.
/// </summary>
/// <returns>The <see cref="IActionResult"/>.</returns>
[HttpPost("browser-close")]
public IActionResult BrowserClose()
{
// Add browser close to the UserHistory
UserHistoryViewModel userHistory = new UserHistoryViewModel()
{
UserId = this.CurrentUserId,
UserHistoryTypeId = (int)UserHistoryType.Logout,
Detail = @"User browser closed",
};

this.userService.StoreUserHistory(userHistory);

return this.Ok(true);
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div>
<ckeditor v-model="description" :config="editorConfig" @ready="onEditorReady" @blur="onBlur"></ckeditor>
<ckeditor class="nhsuk-textarea" v-model="description" :config="editorConfig" @ready="onEditorReady" @blur="onBlur"></ckeditor>
<div :class="[`pt-2 footer-text${this.valid ? '' : ' text-danger'}`]">{{ hint }}</div>
</div>
</template>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@
<div class="row mt-5">
<div class="col-12">
<label>Catalogue owner email address</label>
<input asp-for="OwnerEmailAddress" class="form-control" maxlength="250" />
<input asp-for="OwnerEmailAddress" class="form-control nhsuk-input" maxlength="250" />
<span asp-validation-for="OwnerEmailAddress"></span>
</div>
</div>
<div class="row mt-5">
<div class="col-12">
<label>Notes</label>
<textarea asp-for="Notes" class="form-control"></textarea>
<textarea asp-for="Notes" class="form-control nhsuk-input"></textarea>
<span asp-validation-for="Notes"></span>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
<div class="row mt-5">
<div class="col-12">
<label for="Description">Description</label>
<textarea asp-for="Description" class="form-control"></textarea>
<textarea asp-for="Description" class="form-control nhsuk-input"></textarea>
<small id="with-hint-info" class="pt-2">Only the first 3,000 characters of the description will be used by search</small>
<span asp-validation-for="Description"></span>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
</div>
<div class="form-group col-12">
<label asp-for="Message" class="control-label"></label>
<textarea asp-for="Message" class="form-control" rows="10" required></textarea>
<textarea asp-for="Message" class="form-control nhsuk-input" rows="10" required></textarea>
<span asp-validation-for="Message" class="text-danger"></span>
</div>
<div class="form-group col-lg-3 col-md-6">
Expand Down
Loading
Loading