Update AppName

This commit is contained in:
Michał Zieliński
2023-08-21 12:30:18 +02:00
parent 711fe42c04
commit d51abf90ee
5 changed files with 14 additions and 3 deletions

View File

@@ -12,7 +12,7 @@
<button mat-icon-button (click)="snav.toggle()">
<mat-icon>menu</mat-icon>
</button>
<h1 class="topbar-app-name">DiunaBI {{environment.appEnvironment}}</h1>
<h1 class="topbar-app-name">{{environment.appName}}</h1>
<span class="fill-to-right"></span>
<span class="topbar-user-name" *ngIf="auth$.user">
<img *ngIf="auth$.user.avatar" src="{{auth$.user.avatar}}" class="avatar">

View File

@@ -1,5 +1,6 @@
export const environment = {
appEnvironment: "#{app-environment}#",
appName: "#{app-name}#",
production: true,
api: {
url: "#{api-url}#"

View File

@@ -4,6 +4,7 @@
export const environment = {
appEnvironment: "local",
appName: "LOCAL_DiunaBI",
production: false,
api: {
url: "http://localhost:5400/api"

View File

@@ -11,7 +11,7 @@ namespace WebAPI.Controllers
{
[ApiController]
[Route("api/[controller]")]
[Authorize]
public class LayersController : Controller
{
private readonly AppDbContext db;
@@ -161,6 +161,15 @@ namespace WebAPI.Controllers
AddLayer(layer, Guid.Parse("F392209E-123E-4651-A5A4-0B1D6CF9FF9D"));
return Ok("OK");
}
[HttpGet]
[Route("checkDates")]
public IActionResult checkDates()
{
var warsawTZ = TimeZoneInfo.FindSystemTimeZoneById("Singapore Standard Time");
DateTime date = DateTime.UtcNow;
return Ok(date);
}
//

View File

@@ -16,7 +16,7 @@
"Kestrel": {
"Endpoints": {
"Http": {
"Url": "#{api-local-url}#"
"Url": "http://#{api-local-url}#"
}
}
}