Skip to content

Commit 49be20f

Browse files
authored
Project - . - *
1 parent 1684540 commit 49be20f

File tree

30,739 files changed

+1815
-5124551
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

30,739 files changed

+1815
-5124551
lines changed

.devContainer/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.177.0/containers/dotnet/.devcontainer/base.Dockerfile
2+
3+
FROM mcr.microsoft.com/vscode/devcontainers/dotnet:latest
4+
5+
# [Option] Install Node.js
6+
ARG INSTALL_NODE="true"
7+
ARG NODE_VERSION="lts/*"
8+
RUN if [ "${INSTALL_NODE}" = "true" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi

.devContainer/devContainer.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
2+
// https://github.com/microsoft/vscode-dev-containers/tree/v0.177.0/containers/dotnet
3+
{
4+
"name": "C# (.NET)",
5+
"build": {
6+
"dockerfile": "Dockerfile",
7+
"args": {
8+
// Options
9+
"INSTALL_NODE": "true",
10+
"NODE_VERSION": "lts/*"
11+
}
12+
},
13+
// Add the IDs of extensions you want installed when the container is created.
14+
"extensions": [
15+
"ms-dotnettools.csdevkit",
16+
"EditorConfig.EditorConfig",
17+
"k--kato.docomment",
18+
"dbaeumer.vscode-eslint"
19+
],
20+
"settings": {
21+
// Loading projects on demand is better for larger codebases
22+
"omnisharp.enableMsBuildLoadProjectsOnDemand": true,
23+
"omnisharp.enableRoslynAnalyzers": true,
24+
"omnisharp.enableEditorConfigSupport": true,
25+
"omnisharp.enableImportCompletion": true,
26+
},
27+
// Use 'postCreateCommand' to run commands after the container is created.
28+
"onCreateCommand": "bash -i ${containerWorkspaceFolder}/.devcontainer/scripts/container-creation.sh",
29+
// Add the locally installed dotnet to the path to ensure that it is activated
30+
// This is needed so that things like the C# extension can resolve the correct SDK version
31+
"remoteEnv": {
32+
"PATH": "${containerWorkspaceFolder}/.dotnet:${containerEnv:PATH}",
33+
"DOTNET_MULTILEVEL_LOOKUP": "0",
34+
"TARGET": "net9.0",
35+
"DOTNET_WATCH_SUPPRESS_LAUNCH_BROWSER": "true"
36+
},
37+
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
38+
"remoteUser": "vscode",
39+
"hostRequirements": {
40+
"cpus": 8
41+
}
42+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
5+
# GitHub doesn't pull in submodules by default when mounting
6+
# the repo directory on the container so we do this post-create
7+
git submodule update --init --recursive
8+
9+
# Install SDK and tool dependencies before container starts
10+
# Also run the full restore on the repo so that go-to definition
11+
# and other language features will be available in C# files
12+
./restore.sh
13+
14+
# Add .NET Dev Certs to environment to facilitate debugging.
15+
# Do **NOT** do this in a public base image as all images inheriting
16+
# from the base image would inherit these dev certs as well.
17+
dotnet dev-certs https
18+
19+
# The container creation script is executed in a new Bash instance
20+
# so we exit at the end to avoid the creation process lingering.
21+
exit

.github/workflows/attest-build-provenance.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches: [ "dev" ]
66
workflow_dispatch:
77

8+
env:
9+
OUT_DIR: '/dist'
10+
811
permissions:
912
contents: read
1013

@@ -15,8 +18,8 @@ jobs:
1518
- name: Checkout
1619
uses: actions/checkout@v4
1720
- name: Artifact, Checkout
18-
run: make dist/Employees_Management_System
21+
run: make ${{ env.OUT_DIR }}/Employee_Management_System
1922
- name: Attest
2023
uses: actions/attest-build-provenance@v1
2124
with:
22-
subject-path: '${{ github.workspace }}/dist/Employees_Management_System'
25+
subject-path: '${{ github.workspace }}/${{ env.OUT_DIR }}/Employee_Management_System'

BackEnd/BackEnd.csproj

Lines changed: 0 additions & 29 deletions
This file was deleted.

BackEnd/Controllers/EmployeeController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using Microsoft.AspNetCore.Mvc;
2-
using Models;
3-
using Data;
2+
using Employee_Management_System__BackEnd.Models;
3+
using Employee_Management_System__BackEnd.Data;
44
using System.Collections.Generic;
55
using System.Threading.Tasks;
66
using Microsoft.EntityFrameworkCore;

BackEnd/Data/EmployeeContext.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using Microsoft.EntityFrameworkCore;
2-
using Models;
2+
using Employee_Management_System__BackEnd.Models;
33

4-
namespace Data;
4+
namespace Employee_Management_System__BackEnd.Data;
55

66
public class EmployeeContext : DbContext
77
{

BackEnd/Employee.db

16 KB
Binary file not shown.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<Project Sdk="Microsoft.NET.Sdk.Web">
2+
3+
<PropertyGroup>
4+
<TargetFramework>net8.0</TargetFramework>
5+
<Nullable>disable</Nullable>
6+
<ImplicitUsings>enable</ImplicitUsings>
7+
</PropertyGroup>
8+
9+
<Target Name="DebugEnsureNodeEnv" BeforeTargets="Build" Condition=" '$(Configuration)' == 'Debug' And !Exists('$(FrontEnd)node_modules') ">
10+
<Exec Command="node --version" ContinueOnError="true">
11+
<Output TaskParameter="ExitCode" PropertyName="ErrorCode" />
12+
</Exec>
13+
</Target>
14+
15+
<ItemGroup>
16+
<PackageReference Include="Microsoft.AspNetCore.Cors" Version="2.2.0" />
17+
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.7" />
18+
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="8.0.7" />
19+
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="8.0.7">
20+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
21+
<PrivateAssets>all</PrivateAssets>
22+
</PackageReference>
23+
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.5.0" />
24+
<PackageReference Include="Swashbuckle.AspNetCore.SwaggerGen" Version="6.6.2" />
25+
<PackageReference Include="swashbuckle.aspnetcore.swaggerui" Version="6.6.2" />
26+
</ItemGroup>
27+
28+
</Project>

BackEnd/Migrations/20240712212615_EmployeeInit.Designer.cs

Lines changed: 0 additions & 59 deletions
This file was deleted.

0 commit comments

Comments
 (0)