From 434fe92ce1f9c06f96ced17dc8e8096624744e6f Mon Sep 17 00:00:00 2001 From: Sailesh Rijal Date: Sun, 21 May 2023 12:27:59 +0545 Subject: [PATCH] favicon added --- .vscode/launch.json | 35 ++++++++++++++++ .vscode/tasks.json | 41 +++++++++++++++++++ .../Views/Account/Login.cshtml | 1 + .../Views/Shared/_Layout.cshtml | 10 +++-- 4 files changed, 83 insertions(+), 4 deletions(-) create mode 100644 .vscode/launch.json create mode 100644 .vscode/tasks.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..dc2a236 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,35 @@ +{ + "version": "0.2.0", + "configurations": [ + { + // Use IntelliSense to find out which attributes exist for C# debugging + // Use hover for the description of the existing attributes + // For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md + "name": ".NET Core Launch (web)", + "type": "coreclr", + "request": "launch", + "preLaunchTask": "build", + // If you have changed target frameworks, make sure to update the program path. + "program": "${workspaceFolder}/LibraryManagementSystem/bin/Debug/net7.0/LibraryManagementSystem.dll", + "args": [], + "cwd": "${workspaceFolder}/LibraryManagementSystem", + "stopAtEntry": false, + // Enable launching a web browser when ASP.NET Core starts. For more information: https://aka.ms/VSCode-CS-LaunchJson-WebBrowser + "serverReadyAction": { + "action": "openExternally", + "pattern": "\\bNow listening on:\\s+(https?://\\S+)" + }, + "env": { + "ASPNETCORE_ENVIRONMENT": "Development" + }, + "sourceFileMap": { + "/Views": "${workspaceFolder}/Views" + } + }, + { + "name": ".NET Core Attach", + "type": "coreclr", + "request": "attach" + } + ] +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..b9eb326 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,41 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "build", + "command": "dotnet", + "type": "process", + "args": [ + "build", + "${workspaceFolder}/LibraryManagementSystem/LibraryManagementSystem.csproj", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary" + ], + "problemMatcher": "$msCompile" + }, + { + "label": "publish", + "command": "dotnet", + "type": "process", + "args": [ + "publish", + "${workspaceFolder}/LibraryManagementSystem/LibraryManagementSystem.csproj", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary" + ], + "problemMatcher": "$msCompile" + }, + { + "label": "watch", + "command": "dotnet", + "type": "process", + "args": [ + "watch", + "run", + "--project", + "${workspaceFolder}/LibraryManagementSystem/LibraryManagementSystem.csproj" + ], + "problemMatcher": "$msCompile" + } + ] +} \ No newline at end of file diff --git a/LibraryManagementSystem/Views/Account/Login.cshtml b/LibraryManagementSystem/Views/Account/Login.cshtml index c14471f..a1249b1 100644 --- a/LibraryManagementSystem/Views/Account/Login.cshtml +++ b/LibraryManagementSystem/Views/Account/Login.cshtml @@ -15,6 +15,7 @@ Login - @AppConstants.Name + diff --git a/LibraryManagementSystem/Views/Shared/_Layout.cshtml b/LibraryManagementSystem/Views/Shared/_Layout.cshtml index fa6f29b..e5e63ed 100644 --- a/LibraryManagementSystem/Views/Shared/_Layout.cshtml +++ b/LibraryManagementSystem/Views/Shared/_Layout.cshtml @@ -7,7 +7,7 @@ var currentController = ViewContext.RouteData.Values["controller"] as string; var currentAction = ViewContext.RouteData.Values["action"] as string; - var image = loggedInUser?.ImageUrl == null ? "/defaultImage/avatar.png" : "/uploads/user/"+loggedInUser.ImageUrl; + var image = loggedInUser?.ImageUrl == null ? "/defaultImage/avatar.png" : "/uploads/user/" + loggedInUser.ImageUrl; } @@ -20,6 +20,7 @@ @ViewData["Title"] - @AppConstants.Name + @@ -33,7 +34,7 @@ @AppConstants.Name @AppConstants.Name - + @@ -44,8 +45,9 @@