mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-07-07 18:24:14 -04:00
Updating angular to the v12
This commit is contained in:
commit
ef7b22523d
@ -51,19 +51,19 @@ import { UnauthorizedComponent } from "./unauthorized/unauthorized.component";
|
||||
OidcModule.forRoot({
|
||||
config: {
|
||||
authority: window.location.origin,
|
||||
redirectUrl: "/",
|
||||
postLogoutRedirectUri: "/logout",
|
||||
redirectUrl: `${window.location.origin}/`,
|
||||
postLogoutRedirectUri: `${window.location.origin}/logout`,
|
||||
clientId: "kyoo.webapp",
|
||||
responseType: "code",
|
||||
triggerAuthorizationResultEvent: false,
|
||||
scope: "openid profile offline_access kyoo.read kyoo.write kyoo.play kyoo.admin",
|
||||
silentRenew: true,
|
||||
silentRenewUrl: "/silent.html",
|
||||
silentRenewUrl: `${window.location.origin}/silent.html`,
|
||||
useRefreshToken: true,
|
||||
startCheckSession: true,
|
||||
|
||||
forbiddenRoute: "/forbidden",
|
||||
unauthorizedRoute: "/unauthorized",
|
||||
forbiddenRoute: `${window.location.origin}/forbidden`,
|
||||
unauthorizedRoute: `${window.location.origin}/unauthorized`,
|
||||
logLevel: LogLevel.Warn
|
||||
}
|
||||
}),
|
||||
|
@ -26,7 +26,7 @@ export class ItemsUtils
|
||||
|
||||
if (!("startAir" in item))
|
||||
return "";
|
||||
if (item.endAir && item.startAir !== item.endAir)
|
||||
if (item.endAir && item.startAir?.getFullYear() !== item.endAir.getFullYear())
|
||||
return `${item.startAir.getFullYear()} - ${item.endAir.getFullYear()}`;
|
||||
return item.startAir?.getFullYear().toString();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user