mirror of
https://github.com/linagora/tmail-flutter.git
synced 2026-12-06 16:04:20 +00:00
deploy: 9973cf590bb0b0a416fc81a9cd94b0d33c0d6626
This commit is contained in:
1 parent
3f383b1648
commit
ffcaacd6dc
3 files changed
+97
-45
No files matched your search
@@ -6,8 +6,8 @@ const CACHE_NAME = 'flutter-app-cache';
|
||||
const RESOURCES = {"flutter.js": "7d69e653079438abfbb24b82a655b0a4",
|
||||
"manifest.json": "26a23b357fe945333afbd65fc47f15f3",
|
||||
"logout-callback.html": "999326dc9a0f37c9a9a4280b4a35dc51",
|
||||
"index.html": "8a515b363016e595bdbef5ca5b7220ba",
|
||||
"/": "8a515b363016e595bdbef5ca5b7220ba",
|
||||
"index.html": "d4ab2ee8854a9b1c673ec0a7d3f2b27a",
|
||||
"/": "d4ab2ee8854a9b1c673ec0a7d3f2b27a",
|
||||
"main.dart.js_6.part.js": "cfa74779abf2a5a15a303f6962ac0e51",
|
||||
"login-callback.html": "e17f83d4982ea3cce6e692b31c4b4beb",
|
||||
"main.dart.js_2.part.js": "963f3eab85f94647e536aefe19adc173",
|
||||
@@ -301,7 +301,7 @@ const RESOURCES = {"flutter.js": "7d69e653079438abfbb24b82a655b0a4",
|
||||
"main.dart.js_3.part.js": "24a9af74f9e9d506f412305a6a7519d8",
|
||||
"main.dart.js_1.part.js": "59ea2a1bfc01c1eebcd40a1e8f4ff088",
|
||||
"favicon.svg": "6cfee8482999da091bc2e5cd304e745f",
|
||||
"main.dart.js": "d08e2db03f8721e67bd8586bee3d50ec",
|
||||
"main.dart.js": "bcb9084f33b2268655362f9a768bb1c8",
|
||||
"main.dart.js_7.part.js": "5a796336eb0549bff52c9dddfdfb9b64",
|
||||
"version.json": "3784450e52f015d7f756d039f69cea41",
|
||||
"canvaskit/canvaskit.wasm": "64edb91684bdb3b879812ba2e48dd487",
|
||||
|
||||
+1
-1
@@ -59,7 +59,7 @@
|
||||
application. For more information, see:
|
||||
https://developers.google.com/web/fundamentals/primers/service-workers -->
|
||||
<script>
|
||||
const serviceWorkerVersion = "2756718542";
|
||||
const serviceWorkerVersion = "874985373";
|
||||
var scriptLoaded = false;
|
||||
function loadMainDartJs() {
|
||||
if (scriptLoaded) {
|
||||
|
||||
+93
-41
@@ -331548,7 +331548,7 @@
|
||||
onError$body$AuthorizationInterceptors(_, err, handler) {
|
||||
var $async$goto = 0,
|
||||
$async$completer = A._makeAsyncAwaitCompleter(type$.dynamic),
|
||||
$async$returnValue, $async$handler = 2, $async$currentError, $async$self = this, requestOptions, extraInRequest, retries, newToken, uploadExtra, newOptions, response, response0, response1, e, t1, retries0, t2, t3, t4, t5, exception, $async$exception;
|
||||
$async$returnValue, $async$handler = 2, $async$currentError, $async$self = this, requestOptions, extraInRequest, retries, uploadExtra, newOptions, response, response0, response1, e, t1, retries0, t2, t3, t4, t5, exception, $async$exception;
|
||||
var $async$onError$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
|
||||
if ($async$errorCode === 1) {
|
||||
$async$currentError = $async$result;
|
||||
@@ -331571,27 +331571,17 @@
|
||||
case 7:
|
||||
// then
|
||||
A.log("AuthorizationInterceptors::onError:>> _validateToRefreshToken", B.Level_3);
|
||||
t1 = $async$self._configOIDC;
|
||||
$async$goto = 10;
|
||||
return A._asyncAwait($async$self._authorization_interceptors$_authenticationClient.refreshingTokensOIDC$5(t1.clientId, A.OidcConfigurationExtensions_get_redirectUrl(t1), $async$self._configOIDC.get$discoveryUrl(), $async$self._configOIDC.scopes, $async$self._token.refreshToken), $async$onError$2);
|
||||
case 10:
|
||||
// returning from await.
|
||||
newToken = $async$result;
|
||||
$async$self._token = newToken;
|
||||
$async$goto = 11;
|
||||
return A._asyncAwait($async$self._updateCurrentAccount$1$tokenOIDC(newToken), $async$onError$2);
|
||||
case 11:
|
||||
// returning from await.
|
||||
$async$self._handleRefreshTokenOnOtherPlatform$0();
|
||||
t1 = type$.dynamic;
|
||||
t2 = $async$self._authorization_interceptors$_dio;
|
||||
$async$goto = J.containsKey$1$x(extraInRequest, "upload-attachment") ? 12 : 14;
|
||||
$async$goto = J.containsKey$1$x(extraInRequest, "upload-attachment") ? 10 : 12;
|
||||
break;
|
||||
case 12:
|
||||
case 10:
|
||||
// then
|
||||
uploadExtra = J.$index$asx(extraInRequest, "upload-attachment");
|
||||
t3 = requestOptions.___RequestConfig__headers_A;
|
||||
t3 === $ && A.throwUnnamedLateFieldNI();
|
||||
t3.$indexSet(0, "authorization", "Bearer " + newToken.token);
|
||||
t3.$indexSet(0, "authorization", "Bearer " + $async$self._token.token);
|
||||
t3 = requestOptions.___RequestConfig__headers_A;
|
||||
t3 === $ && A.throwUnnamedLateFieldNI();
|
||||
t3.$indexSet(0, "content-type", J.$index$asx(uploadExtra, "type"));
|
||||
@@ -331607,9 +331597,9 @@
|
||||
t4 = $async$self._getDataUploadRequest$1(uploadExtra);
|
||||
t5 = requestOptions.OptionsMixin___OptionsMixin_queryParameters_A;
|
||||
t5 === $ && A.throwUnnamedLateFieldNI();
|
||||
$async$goto = 15;
|
||||
$async$goto = 13;
|
||||
return A._asyncAwait(t2.request$1$4$data$options$queryParameters(0, t3, t4, newOptions, t5, t1), $async$onError$2);
|
||||
case 15:
|
||||
case 13:
|
||||
// returning from await.
|
||||
response = $async$result;
|
||||
t1 = handler.resolve$1(response);
|
||||
@@ -331618,16 +331608,16 @@
|
||||
$async$goto = 1;
|
||||
break;
|
||||
// goto join
|
||||
$async$goto = 13;
|
||||
$async$goto = 11;
|
||||
break;
|
||||
case 14:
|
||||
case 12:
|
||||
// else
|
||||
t3 = requestOptions.___RequestConfig__headers_A;
|
||||
t3 === $ && A.throwUnnamedLateFieldNI();
|
||||
t3.$indexSet(0, "authorization", "Bearer " + newToken.token);
|
||||
$async$goto = 16;
|
||||
t3.$indexSet(0, "authorization", "Bearer " + $async$self._token.token);
|
||||
$async$goto = 14;
|
||||
return A._asyncAwait(t2.fetch$1$1(0, requestOptions, t1), $async$onError$2);
|
||||
case 16:
|
||||
case 14:
|
||||
// returning from await.
|
||||
response0 = $async$result;
|
||||
t1 = handler.resolve$1(response0);
|
||||
@@ -331635,16 +331625,16 @@
|
||||
// goto return
|
||||
$async$goto = 1;
|
||||
break;
|
||||
case 13:
|
||||
case 11:
|
||||
// join
|
||||
// goto join
|
||||
$async$goto = 8;
|
||||
break;
|
||||
case 9:
|
||||
// else
|
||||
$async$goto = $async$self._validateToRetry$2(err, retries) ? 17 : 19;
|
||||
$async$goto = $async$self._validateToRetry$2(err, retries) ? 15 : 17;
|
||||
break;
|
||||
case 17:
|
||||
case 15:
|
||||
// then
|
||||
A.log("AuthorizationInterceptors::onError:>> _validateToRetry | retries: " + A.S(retries), B.Level_3);
|
||||
retries = J.$add$ansx(retries, 1);
|
||||
@@ -331653,9 +331643,9 @@
|
||||
t1.$indexSet(0, "authorization", "Bearer " + $async$self._token.token);
|
||||
t1 = type$.dynamic;
|
||||
requestOptions.___RequestConfig_extra_A = A.LinkedHashMap_LinkedHashMap$_literal(["Retry", retries], type$.String, t1);
|
||||
$async$goto = 20;
|
||||
$async$goto = 18;
|
||||
return A._asyncAwait($async$self._authorization_interceptors$_dio.fetch$1$1(0, requestOptions, t1), $async$onError$2);
|
||||
case 20:
|
||||
case 18:
|
||||
// returning from await.
|
||||
response1 = $async$result;
|
||||
t1 = handler.resolve$1(response1);
|
||||
@@ -331664,12 +331654,12 @@
|
||||
$async$goto = 1;
|
||||
break;
|
||||
// goto join
|
||||
$async$goto = 18;
|
||||
$async$goto = 16;
|
||||
break;
|
||||
case 19:
|
||||
case 17:
|
||||
// else
|
||||
$async$self.super$_InterceptorWrapperMixin$onError(0, err, handler);
|
||||
case 18:
|
||||
case 16:
|
||||
// join
|
||||
case 8:
|
||||
// join
|
||||
@@ -331767,8 +331757,8 @@
|
||||
},
|
||||
_updateCurrentAccount$body$AuthorizationInterceptors(tokenOIDC) {
|
||||
var $async$goto = 0,
|
||||
$async$completer = A._makeAsyncAwaitCompleter(type$.dynamic),
|
||||
$async$self = this, t1, currentAccount, t2;
|
||||
$async$completer = A._makeAsyncAwaitCompleter(type$.PersonalAccount),
|
||||
$async$returnValue, $async$self = this, personalAccount, t1, currentAccount, t2;
|
||||
var $async$_updateCurrentAccount$1$tokenOIDC = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
|
||||
if ($async$errorCode === 1)
|
||||
return A._asyncRethrow($async$result, $async$completer);
|
||||
@@ -331777,30 +331767,92 @@
|
||||
case 0:
|
||||
// Function start
|
||||
t1 = $async$self._authorization_interceptors$_accountCacheManager;
|
||||
$async$goto = 2;
|
||||
$async$goto = 3;
|
||||
return A._asyncAwait(t1.getCurrentAccount$0(), $async$_updateCurrentAccount$1$tokenOIDC);
|
||||
case 2:
|
||||
case 3:
|
||||
// returning from await.
|
||||
currentAccount = $async$result;
|
||||
t2 = currentAccount.id;
|
||||
A.log("AccountCacheManager::deleteCurrentAccount(): " + t2, B.Level_3);
|
||||
$async$goto = 3;
|
||||
return A._asyncAwait(t1._accountCacheClient.deleteItem$1(t2), $async$_updateCurrentAccount$1$tokenOIDC);
|
||||
case 3:
|
||||
// returning from await.
|
||||
$async$goto = 4;
|
||||
return A._asyncAwait($async$self._authorization_interceptors$_tokenOidcCacheManager.persistOneTokenOidc$1(tokenOIDC), $async$_updateCurrentAccount$1$tokenOIDC);
|
||||
return A._asyncAwait(t1._accountCacheClient.deleteItem$1(t2), $async$_updateCurrentAccount$1$tokenOIDC);
|
||||
case 4:
|
||||
// returning from await.
|
||||
$async$goto = 5;
|
||||
return A._asyncAwait(t1.setCurrentAccount$1(new A.PersonalAccount(B.JSInt_methods.toString$0(B.JSString_methods.get$hashCode(tokenOIDC.tokenId.uuid)), B.AuthenticationType_1, true, currentAccount.accountId, currentAccount.apiUrl, currentAccount.userName)), $async$_updateCurrentAccount$1$tokenOIDC);
|
||||
return A._asyncAwait($async$self._authorization_interceptors$_tokenOidcCacheManager.persistOneTokenOidc$1(tokenOIDC), $async$_updateCurrentAccount$1$tokenOIDC);
|
||||
case 5:
|
||||
// returning from await.
|
||||
personalAccount = new A.PersonalAccount(B.JSInt_methods.toString$0(B.JSString_methods.get$hashCode(tokenOIDC.tokenId.uuid)), B.AuthenticationType_1, true, currentAccount.accountId, currentAccount.apiUrl, currentAccount.userName);
|
||||
$async$goto = 6;
|
||||
return A._asyncAwait(t1.setCurrentAccount$1(personalAccount), $async$_updateCurrentAccount$1$tokenOIDC);
|
||||
case 6:
|
||||
// returning from await.
|
||||
$async$returnValue = personalAccount;
|
||||
// goto return
|
||||
$async$goto = 1;
|
||||
break;
|
||||
case 1:
|
||||
// return
|
||||
return A._asyncReturn($async$returnValue, $async$completer);
|
||||
}
|
||||
});
|
||||
return A._asyncStartSync($async$_updateCurrentAccount$1$tokenOIDC, $async$completer);
|
||||
},
|
||||
_invokeRefreshTokenFromServer$0() {
|
||||
var $async$goto = 0,
|
||||
$async$completer = A._makeAsyncAwaitCompleter(type$.TokenOIDC),
|
||||
$async$returnValue, $async$self = this, t1, newToken;
|
||||
var $async$_invokeRefreshTokenFromServer$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
|
||||
if ($async$errorCode === 1)
|
||||
return A._asyncRethrow($async$result, $async$completer);
|
||||
while (true)
|
||||
switch ($async$goto) {
|
||||
case 0:
|
||||
// Function start
|
||||
t1 = $async$self._configOIDC;
|
||||
$async$goto = 3;
|
||||
return A._asyncAwait($async$self._authorization_interceptors$_authenticationClient.refreshingTokensOIDC$5(t1.clientId, A.OidcConfigurationExtensions_get_redirectUrl(t1), $async$self._configOIDC.get$discoveryUrl(), $async$self._configOIDC.scopes, $async$self._token.refreshToken), $async$_invokeRefreshTokenFromServer$0);
|
||||
case 3:
|
||||
// returning from await.
|
||||
newToken = $async$result;
|
||||
A.log("AuthorizationInterceptors::_invokeRefreshTokenFromServer:newToken: " + newToken.toString$0(0), B.Level_3);
|
||||
$async$returnValue = newToken;
|
||||
// goto return
|
||||
$async$goto = 1;
|
||||
break;
|
||||
case 1:
|
||||
// return
|
||||
return A._asyncReturn($async$returnValue, $async$completer);
|
||||
}
|
||||
});
|
||||
return A._asyncStartSync($async$_invokeRefreshTokenFromServer$0, $async$completer);
|
||||
},
|
||||
_handleRefreshTokenOnOtherPlatform$0() {
|
||||
var $async$goto = 0,
|
||||
$async$completer = A._makeAsyncAwaitCompleter(type$.dynamic),
|
||||
$async$self = this, newToken;
|
||||
var $async$_handleRefreshTokenOnOtherPlatform$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
|
||||
if ($async$errorCode === 1)
|
||||
return A._asyncRethrow($async$result, $async$completer);
|
||||
while (true)
|
||||
switch ($async$goto) {
|
||||
case 0:
|
||||
// Function start
|
||||
$async$goto = 2;
|
||||
return A._asyncAwait($async$self._invokeRefreshTokenFromServer$0(), $async$_handleRefreshTokenOnOtherPlatform$0);
|
||||
case 2:
|
||||
// returning from await.
|
||||
newToken = $async$result;
|
||||
$async$self._token = newToken;
|
||||
$async$goto = 3;
|
||||
return A._asyncAwait($async$self._updateCurrentAccount$1$tokenOIDC(newToken), $async$_handleRefreshTokenOnOtherPlatform$0);
|
||||
case 3:
|
||||
// returning from await.
|
||||
// implicit return
|
||||
return A._asyncReturn(null, $async$completer);
|
||||
}
|
||||
});
|
||||
return A._asyncStartSync($async$_updateCurrentAccount$1$tokenOIDC, $async$completer);
|
||||
return A._asyncStartSync($async$_handleRefreshTokenOnOtherPlatform$0, $async$completer);
|
||||
},
|
||||
clear$0(_) {
|
||||
var _this = this;
|
||||
|
||||
Reference in new issue
Block a user