Skip to content

Commit

Permalink
Update packages
Browse files Browse the repository at this point in the history
  • Loading branch information
ZOXEXIVO committed May 7, 2024
1 parent 621a8de commit 8cf2f4d
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 39 deletions.
4 changes: 2 additions & 2 deletions build/Web.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:19-alpine3.16 AS build-frontend
FROM node:22-alpine3.19 AS build-frontend

WORKDIR /app

Expand All @@ -8,7 +8,7 @@ RUN npm install --legacy-peer-deps

COPY ./src/Frontend/ .

RUN npm run build
RUN npm run publish

ARG BUILD_NUMBER

Expand Down
8 changes: 4 additions & 4 deletions src/Backend/Geen.Data/Geen.Data.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
<ItemGroup>
<PackageReference Include="Mapster" Version="7.4.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Options" Version="8.0.0" />
<PackageReference Include="MongoDB.Driver" Version="2.22.0" />
<PackageReference Include="StackExchange.Redis" Version="2.7.4" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Options" Version="8.0.2" />
<PackageReference Include="MongoDB.Driver" Version="2.25.0" />
<PackageReference Include="StackExchange.Redis" Version="2.7.33" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.1" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Geen.Core\Geen.Core.csproj"/>
Expand Down
3 changes: 1 addition & 2 deletions src/Backend/Geen.Data/Repositories/MentionRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,7 @@ public async Task<List<MentionModel>> GetFreshTitledMentions(DateTime? dateStart

public async Task<List<MentionModel>> GetFreshRepliedMentionIds(DateTime? dateStart)
{
if (!dateStart.HasValue)
dateStart = DateTime.UtcNow.Date;
dateStart ??= DateTime.UtcNow.Date;

var repliesMentionIds = await _context.For<ReplyEntity>()
.Find(x => x.IsApproved && x.Date >= dateStart)
Expand Down
9 changes: 5 additions & 4 deletions src/Backend/Geen.Web/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.IO.Compression;
using Geen.Web.Application;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.ResponseCompression;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
Expand Down Expand Up @@ -79,8 +80,8 @@ public void Configure(IApplicationBuilder app, ILoggerFactory loggerFactory)
{
OnPrepareResponse = context =>
{
context.Context.Response.Headers.Add("cache-control", new[] { "public,max-age=31536000" });
context.Context.Response.Headers.Add("Expires", new[] { DateTime.UtcNow.AddYears(1).ToString("R") });
context.Context.Response.Headers.Append("cache-control", new[] { "public,max-age=31536000" });
context.Context.Response.Headers.Append("Expires", new[] { DateTime.UtcNow.AddYears(1).ToString("R") });
}
});

Expand All @@ -95,8 +96,8 @@ public void Configure(IApplicationBuilder app, ILoggerFactory loggerFactory)
{
OnPrepareResponse = context =>
{
context.Context.Response.Headers.Add("Cache-Control", "no-cache, no-store");
context.Context.Response.Headers.Add("Expires", "-1");
context.Context.Response.Headers.Append("Cache-Control", "no-cache, no-store");
context.Context.Response.Headers.Append("Expires", "-1");
}
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="NSwag.CodeGeneration.TypeScript" Version="13.20.0" />
<PackageReference Include="NSwag.Core" Version="13.20.0" />
<PackageReference Include="NSwag.CodeGeneration.TypeScript" Version="14.0.7" />
<PackageReference Include="NSwag.Core" Version="14.0.7" />
</ItemGroup>

</Project>
44 changes: 22 additions & 22 deletions src/Frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,36 +4,36 @@
"scripts": {
"ng": "ng",
"start": "ng build --watch --output-path=../Backend/Geen.Web/wwwroot",
"build": "ng build",
"publish": "ng build --configuration production --output-path=../Backend/Geen.Web/wwwroot",
"lint": "ng lint"
},
"private": true,
"dependencies": {
"@angular/animations": "^15.1.5",
"@angular/common": "^15.1.5",
"@angular/compiler": "^15.1.5",
"@angular/core": "^15.1.5",
"@angular/forms": "^15.1.5",
"@angular/platform-browser": "^15.1.5",
"@angular/platform-browser-dynamic": "^15.1.5",
"@angular/router": "^15.1.5",
"ngx-cookie-service": "^15.0.0",
"ngx-infinite-scroll": "^15.0.0",
"rxjs": "^7.8.0",
"@angular/animations": "^17.3.7",
"@angular/common": "^17.3.7",
"@angular/compiler": "^17.3.7",
"@angular/core": "^17.3.7",
"@angular/forms": "^17.3.7",
"@angular/platform-browser": "^17.3.7",
"@angular/platform-browser-dynamic": "^17.3.7",
"@angular/router": "^17.3.7",
"ngx-cookie-service": "^17.1.0",
"ngx-infinite-scroll": "^17.0.0",
"rxjs": "^7.8.1",
"underscore": "^1.13.6",
"zone.js": "~0.12.0"
"zone.js": "~0.14.5"
},
"devDependencies": {
"@angular-devkit/build-angular": "~15.1.6",
"@angular/cli": "~15.1.6",
"@angular/compiler-cli": "^15.1.5",
"@angular/language-service": "^15.1.5",
"@nguniversal/express-engine": "^15.1.0",
"@types/node": "~18.14.0",
"codelyzer": "^6.0.2",
"ts-node": "~10.9.1",
"@angular-devkit/build-angular": "~17.3.6",
"@angular/cli": "~17.3.6",
"@angular/compiler-cli": "^17.3.7",
"@angular/language-service": "^17.3.7",
"@nguniversal/express-engine": "^16.2.0",
"@types/node": "~20.12.10",
"codelyzer": "^0.0.28",
"ts-node": "~10.9.2",
"tslint": "~6.1.3",
"tslint-config-airbnb": "^5.11.2",
"typescript": "4.9.5"
"typescript": "5.3.3"
}
}
2 changes: 1 addition & 1 deletion src/Frontend/src/polyfills.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@
/***************************************************************************************************
* Zone JS is required by default for Angular itself.
*/
import 'zone.js/dist/zone'; // Included with Angular CLI.
import 'zone.js'; // Included with Angular CLI.
4 changes: 2 additions & 2 deletions src/Frontend/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es2017",
"target": "ES2022",
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es2017",
"es2022",
"dom"
]
}
Expand Down

0 comments on commit 8cf2f4d

Please sign in to comment.