Browse Source

Update `global.js`.

pull/19479/head
maliming 3 years ago
parent
commit
7db7ab7881
No known key found for this signature in database GPG Key ID: A646B9CB645ECEA4
  1. 21
      framework/src/Volo.Abp.AspNetCore.Components.Web/wwwroot/libs/abp/js/abp.js
  2. 2
      framework/src/Volo.Abp.AspNetCore.Components.WebAssembly/Volo/Abp/AspNetCore/Components/WebAssembly/WebAssemblyCachedApplicationConfigurationClient.cs
  3. 2
      templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.WebAssembly/Client/wwwroot/global.js
  4. 24
      templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor.Client/wwwroot/global.js
  5. 24
      templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor.WebApp.Client/wwwroot/global.js
  6. 24
      templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor.WebApp.Tiered.Client/wwwroot/global.js
  7. 2
      templates/module/aspnet-core/host/MyCompanyName.MyProjectName.Blazor.Host.Client/wwwroot/global.js

21
framework/src/Volo.Abp.AspNetCore.Components.Web/wwwroot/libs/abp/js/abp.js

@ -126,7 +126,7 @@ var abp = abp || {};
// FULL SCREEN ///////////////// // FULL SCREEN /////////////////
abp.utils.toggleFullscreen = function() { abp.utils.toggleFullscreen = function () {
var elem = document.documentElement; var elem = document.documentElement;
if (!document.fullscreenElement && !document.mozFullScreenElement && if (!document.fullscreenElement && !document.mozFullScreenElement &&
!document.webkitFullscreenElement && !document.msFullscreenElement) { !document.webkitFullscreenElement && !document.msFullscreenElement) {
@ -152,7 +152,7 @@ var abp = abp || {};
} }
} }
abp.utils.requestFullscreen = function() { abp.utils.requestFullscreen = function () {
var elem = document.documentElement; var elem = document.documentElement;
if (!document.fullscreenElement && !document.mozFullScreenElement && if (!document.fullscreenElement && !document.mozFullScreenElement &&
!document.webkitFullscreenElement && !document.msFullscreenElement) { !document.webkitFullscreenElement && !document.msFullscreenElement) {
@ -168,7 +168,7 @@ var abp = abp || {};
} }
} }
abp.utils.exitFullscreen = function() { abp.utils.exitFullscreen = function () {
if (!(!document.fullscreenElement && !document.mozFullScreenElement && if (!(!document.fullscreenElement && !document.mozFullScreenElement &&
!document.webkitFullscreenElement && !document.msFullscreenElement)) { !document.webkitFullscreenElement && !document.msFullscreenElement)) {
if (document.exitFullscreen) { if (document.exitFullscreen) {
@ -230,4 +230,19 @@ var abp = abp || {};
}, 250); }, 250);
} }
}; };
abp.utils.removeOidcUser = function () {
for (var i = 0; i < sessionStorage.length; i++) {
var key = sessionStorage.key(i);
if (key.startsWith('oidc.user:')) {
sessionStorage.removeItem(key);
}
}
for (var i = 0; i < localStorage.length; i++) {
var key = localStorage.key(i);
if (key.startsWith('oidc.user:')) {
localStorage.removeItem(key);
}
}
}
})(); })();

2
framework/src/Volo.Abp.AspNetCore.Components.WebAssembly/Volo/Abp/AspNetCore/Components/WebAssembly/WebAssemblyCachedApplicationConfigurationClient.cs

@ -60,7 +60,7 @@ public class WebAssemblyCachedApplicationConfigurationClient : ICachedApplicatio
if (!configurationDto.CurrentUser.IsAuthenticated) if (!configurationDto.CurrentUser.IsAuthenticated)
{ {
await JSRuntime.InvokeVoidAsync("sessionStorage.clear"); await JSRuntime.InvokeVoidAsync("abp.utils.removeOidcUser");
} }
ApplicationConfigurationChangedService.NotifyChanged(); ApplicationConfigurationChangedService.NotifyChanged();

2
templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.WebAssembly/Client/wwwroot/global.js

File diff suppressed because one or more lines are too long

24
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor.Client/wwwroot/global.js

File diff suppressed because one or more lines are too long

24
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor.WebApp.Client/wwwroot/global.js

File diff suppressed because one or more lines are too long

24
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor.WebApp.Tiered.Client/wwwroot/global.js

File diff suppressed because one or more lines are too long

2
templates/module/aspnet-core/host/MyCompanyName.MyProjectName.Blazor.Host.Client/wwwroot/global.js

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save