Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ public class VersionController : ControllerBase
{
#region Fields

private readonly IHostingEnvironment _environment;
private readonly IWebHostEnvironment _environment;
private readonly ILogger<VersionController> _logger;

#endregion


#region Ctors

public VersionController(IHostingEnvironment environment, ILogger<VersionController> logger)
public VersionController(IWebHostEnvironment environment, ILogger<VersionController> logger)
{
_environment = environment;
_logger = logger;
Expand Down
18 changes: 16 additions & 2 deletions src/Services/auth/O2NextGen.Auth.Web/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,24 @@
#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.

FROM mcr.microsoft.com/dotnet/aspnet:2.2 AS base
#FROM node as react

FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
WORKDIR /app
EXPOSE 80

FROM mcr.microsoft.com/dotnet/sdk:2.2 AS build
RUN apt-get update
RUN apt-get install -y curl
RUN apt-get install -y libpng-dev libjpeg-dev curl libxi6 build-essential libgl1-mesa-glx
RUN curl -sL https://deb.nodesource.com/setup_lts.x | bash -
RUN apt-get install -y nodejs

FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
RUN apt-get update
RUN apt-get install -y curl
RUN apt-get install -y libpng-dev libjpeg-dev curl libxi6 build-essential libgl1-mesa-glx
RUN curl -sL https://deb.nodesource.com/setup_lts.x | bash -
RUN apt-get install -y nodejs

WORKDIR /src
COPY ["Services/auth/O2NextGen.Auth.Web/O2NextGen.Auth.Web.csproj", "Services/auth/O2NextGen.Auth.Web/"]
RUN dotnet restore "Services/auth/O2NextGen.Auth.Web/O2NextGen.Auth.Web.csproj"
Expand Down
22 changes: 18 additions & 4 deletions src/Services/auth/O2NextGen.Auth.Web/O2NextGen.Auth.Web.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
<PackageReference Include="IdentityServer4.AspNetIdentity" Version="4.1.2" />
<PackageReference Include="Microsoft.AspNetCore.Identity.UI" Version="6.0.10" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="6.0.10" />
<PackageReference Include="SkiaSharp" Version="2.88.3" />
<PackageReference Include="SkiaSharp.QrCode" Version="0.6.0" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="Resources\Pages\Account\Register.en.resx">
Expand Down Expand Up @@ -76,6 +78,20 @@
<Compile Remove="Logs\**" />
</ItemGroup>

<ItemGroup>
<UpToDateCheckBuilt Include="wwwroot/css/site.css" Set="Css" />
<UpToDateCheckBuilt Include="postcss.config.js" Set="Css" />
<UpToDateCheckBuilt Include="tailwind.config.js" Set="Css" />
</ItemGroup>

<Target Name="NPM install" BeforeTargets="Build">
<Exec Command="npm install" />
</Target>

<Target Name="Tailwind" BeforeTargets="Build">
<Exec Command="npm run css:build" />
</Target>

<ItemGroup>
<None Remove="Resources\SharedResource.en" />
<None Remove="Resources\Resources.ru" />
Expand All @@ -88,10 +104,8 @@
<None Remove="Microsoft.EntityFrameworkCore.InMemory" />
<None Remove="IdentityServer4" />
<None Remove="IdentityServer4.AspNetIdentity" />
</ItemGroup>

<ItemGroup>
<Folder Include="css\core" />
<None Remove="SkiaSharp" />
<None Remove="SkiaSharp.QrCode" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>@ViewData["Title"] - O2NextGen.Auth.Web</title>
<link rel="stylesheet" href="~/css/styles.css" />
<link rel="stylesheet" href="~/build/app.css">
@*<link rel="stylesheet" href="~/css/styles.css" />
<link rel="stylesheet" href="~/build/app.css">*@
<link rel="stylesheet" href="~/css/output.css" />
</head>
<body>
<div class="2xl:container h-screen m-auto">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"O2NextGen.Auth.Web": {
"commandName": "Project",
"launchBrowser": true,
"applicationUrl": "http://localhost:59041",
"applicationUrl": "https://localhost:9769;http://localhost:55585",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
Expand Down
7 changes: 5 additions & 2 deletions src/Services/auth/O2NextGen.Auth.Web/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@ public Startup(IConfiguration configuration)

public void ConfigureServices(IServiceCollection services)
{
services.AddMvc()
.SetCompatibilityVersion(CompatibilityVersion.Version_3_0)
services.AddMvc(options =>
{
options.EnableEndpointRouting = false;
})
//.SetCompatibilityVersion(CompatibilityVersion.Version_3_0)
.AddRazorPagesOptions(options =>
{
options.Conventions.AuthorizeFolder("/Account");
Expand Down
Empty file.
6 changes: 0 additions & 6 deletions src/Services/auth/O2NextGen.Auth.Web/css/tailwind.css

This file was deleted.

Loading