From 7d2620f1bc9737f2a7956ebcb9e1476c46d01519 Mon Sep 17 00:00:00 2001 From: hillelcoren Date: Thu, 27 Oct 2022 14:20:56 +0000 Subject: [PATCH] Admin Portal - Profile --- public/main.profile.dart.js | 74 +++++++++++++++++++++++-------------- 1 file changed, 46 insertions(+), 28 deletions(-) diff --git a/public/main.profile.dart.js b/public/main.profile.dart.js index 8104e82187b5..b25a699ed2c3 100644 --- a/public/main.profile.dart.js +++ b/public/main.profile.dart.js @@ -58156,7 +58156,7 @@ }, _$HealthCheckPHPResponseSerializer: function _$HealthCheckPHPResponseSerializer() { }, - _$HealthCheckResponse: function _$HealthCheckResponse(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13) { + _$HealthCheckResponse: function _$HealthCheckResponse(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14) { var _ = this; _.systemHealth = t0; _.phpVersion = t1; @@ -58171,12 +58171,13 @@ _.pendingJobs = t10; _.pdfEngine = t11; _.trailingSlash = t12; - _.queue = t13; + _.exchangeRateApiNotConfigured = t13; + _.queue = t14; _._health_check_model$__hashCode = null; }, HealthCheckResponseBuilder: function HealthCheckResponseBuilder() { var _ = this; - _._health_check_model$_queue = _._trailingSlash = _._pdfEngine = _._pendingJobs = _._emailDriver = _._execEnabled = _._filePermissions = _._openBasedir = _._phantomEnabled = _._cacheEnabled = _._dbCheck = _._envWritable = _._phpVersion = _._systemHealth = _._health_check_model$_$v = null; + _._health_check_model$_queue = _._exchangeRateApiNotConfigured = _._trailingSlash = _._pdfEngine = _._pendingJobs = _._emailDriver = _._execEnabled = _._filePermissions = _._openBasedir = _._phantomEnabled = _._cacheEnabled = _._dbCheck = _._envWritable = _._phpVersion = _._systemHealth = _._health_check_model$_$v = null; }, _$HealthCheckPHPResponse: function _$HealthCheckPHPResponse(t0, t1, t2, t3, t4) { var _ = this; @@ -119612,7 +119613,7 @@ t5 = state; t6 = t5.userCompanyStates; t5 = t5.uiState.selectedCompanyIndex; - A.print("## Confirm password: " + alwaysRequire + ", " + t2 + ", " + t3 + ", " + (t4.length === 0) + ", " + t6._list[t5].userCompany.company.oauthPasswordRequired); + A.print("## Confirm password: " + alwaysRequire + ", " + t2 + ", " + t3 + ", " + t4 + ", " + t6._list[t5].userCompany.company.oauthPasswordRequired); if (alwaysRequire && !user.hasPassword) { t1.toString; t2 = $.$get$LocalizationsProvider__localizedValues(); @@ -326941,7 +326942,7 @@ A.HealthCheckPHPResponse.prototype = {}; A._$HealthCheckResponseSerializer.prototype = { serialize$3$specifiedType(serializers, object, specifiedType) { - return A._setArrayType(["system_health", serializers.serialize$2$specifiedType(object.systemHealth, B.FullType_MtR), "php_version", serializers.serialize$2$specifiedType(object.phpVersion, B.FullType_uRN), "env_writable", serializers.serialize$2$specifiedType(object.envWritable, B.FullType_MtR), "simple_db_check", serializers.serialize$2$specifiedType(object.dbCheck, B.FullType_MtR), "cache_enabled", serializers.serialize$2$specifiedType(object.cacheEnabled, B.FullType_MtR), "phantom_enabled", serializers.serialize$2$specifiedType(object.phantomEnabled, B.FullType_MtR), "open_basedir", serializers.serialize$2$specifiedType(object.openBasedir, B.FullType_MtR), "file_permissions", serializers.serialize$2$specifiedType(object.filePermissions, B.FullType_h8g), "exec", serializers.serialize$2$specifiedType(object.execEnabled, B.FullType_MtR), "mail_mailer", serializers.serialize$2$specifiedType(object.emailDriver, B.FullType_h8g), "jobs_pending", serializers.serialize$2$specifiedType(object.pendingJobs, B.FullType_kjq), "pdf_engine", serializers.serialize$2$specifiedType(object.pdfEngine, B.FullType_h8g), "trailing_slash", serializers.serialize$2$specifiedType(object.trailingSlash, B.FullType_MtR), "queue", serializers.serialize$2$specifiedType(object.queue, B.FullType_h8g)], type$.JSArray_legacy_Object); + return A._setArrayType(["system_health", serializers.serialize$2$specifiedType(object.systemHealth, B.FullType_MtR), "php_version", serializers.serialize$2$specifiedType(object.phpVersion, B.FullType_uRN), "env_writable", serializers.serialize$2$specifiedType(object.envWritable, B.FullType_MtR), "simple_db_check", serializers.serialize$2$specifiedType(object.dbCheck, B.FullType_MtR), "cache_enabled", serializers.serialize$2$specifiedType(object.cacheEnabled, B.FullType_MtR), "phantom_enabled", serializers.serialize$2$specifiedType(object.phantomEnabled, B.FullType_MtR), "open_basedir", serializers.serialize$2$specifiedType(object.openBasedir, B.FullType_MtR), "file_permissions", serializers.serialize$2$specifiedType(object.filePermissions, B.FullType_h8g), "exec", serializers.serialize$2$specifiedType(object.execEnabled, B.FullType_MtR), "mail_mailer", serializers.serialize$2$specifiedType(object.emailDriver, B.FullType_h8g), "jobs_pending", serializers.serialize$2$specifiedType(object.pendingJobs, B.FullType_kjq), "pdf_engine", serializers.serialize$2$specifiedType(object.pdfEngine, B.FullType_h8g), "trailing_slash", serializers.serialize$2$specifiedType(object.trailingSlash, B.FullType_MtR), "exchange_rate_api_not_configured", serializers.serialize$2$specifiedType(object.exchangeRateApiNotConfigured, B.FullType_MtR), "queue", serializers.serialize$2$specifiedType(object.queue, B.FullType_h8g)], type$.JSArray_legacy_Object); }, serialize$2(serializers, object) { return this.serialize$3$specifiedType(serializers, object, B.FullType_null_List_empty_false); @@ -327020,6 +327021,10 @@ t2 = A._asBoolS(serializers.deserialize$2$specifiedType(value, B.FullType_MtR)); result.get$_health_check_model$_$this()._trailingSlash = t2; break; + case "exchange_rate_api_not_configured": + t2 = A._asBoolS(serializers.deserialize$2$specifiedType(value, B.FullType_MtR)); + result.get$_health_check_model$_$this()._exchangeRateApiNotConfigured = t2; + break; case "queue": t2 = A._asStringS(serializers.deserialize$2$specifiedType(value, B.FullType_h8g)); result.get$_health_check_model$_$this()._health_check_model$_queue = t2; @@ -327100,14 +327105,14 @@ return false; if (other === _this) return true; - return other instanceof A.HealthCheckResponse && _this.systemHealth === other.systemHealth && _this.phpVersion.$eq(0, other.phpVersion) && _this.envWritable === other.envWritable && _this.dbCheck === other.dbCheck && _this.cacheEnabled === other.cacheEnabled && _this.phantomEnabled === other.phantomEnabled && _this.openBasedir === other.openBasedir && _this.filePermissions === other.filePermissions && _this.execEnabled === other.execEnabled && _this.emailDriver === other.emailDriver && _this.pendingJobs === other.pendingJobs && _this.pdfEngine === other.pdfEngine && _this.trailingSlash === other.trailingSlash && _this.queue === other.queue; + return other instanceof A.HealthCheckResponse && _this.systemHealth === other.systemHealth && _this.phpVersion.$eq(0, other.phpVersion) && _this.envWritable === other.envWritable && _this.dbCheck === other.dbCheck && _this.cacheEnabled === other.cacheEnabled && _this.phantomEnabled === other.phantomEnabled && _this.openBasedir === other.openBasedir && _this.filePermissions === other.filePermissions && _this.execEnabled === other.execEnabled && _this.emailDriver === other.emailDriver && _this.pendingJobs === other.pendingJobs && _this.pdfEngine === other.pdfEngine && _this.trailingSlash === other.trailingSlash && _this.exchangeRateApiNotConfigured === other.exchangeRateApiNotConfigured && _this.queue === other.queue; }, get$hashCode(_) { var _this = this, t1 = _this._health_check_model$__hashCode; if (t1 == null) { t1 = _this.phpVersion; - t1 = _this._health_check_model$__hashCode = A.$jf(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(0, B.JSBool_methods.get$hashCode(_this.systemHealth)), t1.get$hashCode(t1)), B.JSBool_methods.get$hashCode(_this.envWritable)), B.JSBool_methods.get$hashCode(_this.dbCheck)), B.JSBool_methods.get$hashCode(_this.cacheEnabled)), B.JSBool_methods.get$hashCode(_this.phantomEnabled)), B.JSBool_methods.get$hashCode(_this.openBasedir)), B.JSString_methods.get$hashCode(_this.filePermissions)), B.JSBool_methods.get$hashCode(_this.execEnabled)), B.JSString_methods.get$hashCode(_this.emailDriver)), B.JSInt_methods.get$hashCode(_this.pendingJobs)), B.JSString_methods.get$hashCode(_this.pdfEngine)), B.JSBool_methods.get$hashCode(_this.trailingSlash)), B.JSString_methods.get$hashCode(_this.queue))); + t1 = _this._health_check_model$__hashCode = A.$jf(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(0, B.JSBool_methods.get$hashCode(_this.systemHealth)), t1.get$hashCode(t1)), B.JSBool_methods.get$hashCode(_this.envWritable)), B.JSBool_methods.get$hashCode(_this.dbCheck)), B.JSBool_methods.get$hashCode(_this.cacheEnabled)), B.JSBool_methods.get$hashCode(_this.phantomEnabled)), B.JSBool_methods.get$hashCode(_this.openBasedir)), B.JSString_methods.get$hashCode(_this.filePermissions)), B.JSBool_methods.get$hashCode(_this.execEnabled)), B.JSString_methods.get$hashCode(_this.emailDriver)), B.JSInt_methods.get$hashCode(_this.pendingJobs)), B.JSString_methods.get$hashCode(_this.pdfEngine)), B.JSBool_methods.get$hashCode(_this.trailingSlash)), B.JSBool_methods.get$hashCode(_this.exchangeRateApiNotConfigured)), B.JSString_methods.get$hashCode(_this.queue))); } return t1; }, @@ -327128,6 +327133,7 @@ t2.add$2(t1, "pendingJobs", _this.pendingJobs); t2.add$2(t1, "pdfEngine", _this.pdfEngine); t2.add$2(t1, "trailingSlash", _this.trailingSlash); + t2.add$2(t1, "exchangeRateApiNotConfigured", _this.exchangeRateApiNotConfigured); t2.add$2(t1, "queue", _this.queue); return t2.toString$0(t1); } @@ -327167,13 +327173,14 @@ _this._pendingJobs = $$v.pendingJobs; _this._pdfEngine = $$v.pdfEngine; _this._trailingSlash = $$v.trailingSlash; + _this._exchangeRateApiNotConfigured = $$v.exchangeRateApiNotConfigured; _this._health_check_model$_queue = $$v.queue; _this._health_check_model$_$v = null; } return _this; }, build$0() { - var _$failedField, e, _$result0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, exception, _this = this, + var _$failedField, e, _$result0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15, exception, _this = this, _s19_ = "HealthCheckResponse", _$result = null; try { @@ -327216,10 +327223,13 @@ t13 = _this.get$_health_check_model$_$this()._trailingSlash; if (t13 == null) A.throwExpression(A.BuiltValueNullFieldError$(_s19_, "trailingSlash")); - t14 = _this.get$_health_check_model$_$this()._health_check_model$_queue; + t14 = _this.get$_health_check_model$_$this()._exchangeRateApiNotConfigured; if (t14 == null) + A.throwExpression(A.BuiltValueNullFieldError$(_s19_, "exchangeRateApiNotConfigured")); + t15 = _this.get$_health_check_model$_$this()._health_check_model$_queue; + if (t15 == null) A.throwExpression(A.BuiltValueNullFieldError$(_s19_, "queue")); - _$result0 = new A._$HealthCheckResponse(t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14); + _$result0 = new A._$HealthCheckResponse(t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15); } _$result = _$result0; } catch (exception) { @@ -347194,7 +347204,11 @@ return B.JSArray_methods.get$first(t1.split(",")); }, get$listDisplayName() { - return this.description; + var t1 = this.description; + if (t1.length !== 0) + return t1; + else + return A.S(this.date); }, get$listDisplayAmount() { return this.amount; @@ -416947,6 +416961,8 @@ t9.push(new A._HealthListTile("SnapPDF not enabled", true, true, "Use SnapPDF to generate PDF files locally", "https://invoiceninja.github.io/docs/self-host-troubleshooting/#pdf-conversion-issues", _null)); if (_this._response.trailingSlash) t9.push(new A._HealthListTile("APP_URL has trailing slash", true, true, "Remove the slash in the .env file", _null, _null)); + if (_this._response.exchangeRateApiNotConfigured) + t9.push(new A._HealthListTile("Exchange Rate API Not Enabled", true, true, "Add an Open Exchange key to the .env file", "https://invoiceninja.github.io/docs/self-host-installation/#currency-conversion", _null)); t1 = A.Column$(t9, B.CrossAxisAlignment_2, _null, B.MainAxisAlignment_0, B.MainAxisSize_0, B.VerticalDirection_1); } if (_this._response == null) @@ -416974,7 +416990,9 @@ }; A._HealthCheckDialogState_runCheck_closure0.prototype = { call$1(response) { - var t1 = this.$this; + var t1; + A.print("## response: " + A.S(response)); + t1 = this.$this; t1.setState$1(new A._HealthCheckDialogState_runCheck__closure(t1, response)); }, $signature: 6 @@ -420580,7 +420598,7 @@ if (t7.$eq(0, B.TextInputType_1_null_null)) t11 = B.TextInputAction_12; else - t11 = enterShouldSubmit ? B.TextInputAction_2 : B.TextInputAction_6; + t11 = B.TextInputAction_2; t12 = _this._widget; t13 = t12.inputFormatters; t14 = t12.enabled; @@ -423743,49 +423761,49 @@ if (prefState.isFilterVisible) switch (t1.length === 0 ? _null : B.JSArray_methods.get$last(t1).get$entityType()) { case B.EntityType_client: - leftFilterChild = _this.editingFilterEntity && !uiState.get$isEditing() ? new A.ClientEditScreen(_null) : new A.ClientViewScreen(true, false, _null); + leftFilterChild = new A.ClientViewScreen(true, false, _null); break; case B.EntityType_invoice: - leftFilterChild = _this.editingFilterEntity && !uiState.get$isEditing() ? new A.InvoiceViewScreen(false, _null) : new A.InvoiceViewScreen(true, _null); + leftFilterChild = new A.InvoiceViewScreen(true, _null); break; case B.EntityType_quote: - leftFilterChild = _this.editingFilterEntity && !uiState.get$isEditing() ? new A.QuoteViewScreen(false, _null) : new A.QuoteViewScreen(true, _null); + leftFilterChild = new A.QuoteViewScreen(true, _null); break; case B.EntityType_credit: - leftFilterChild = _this.editingFilterEntity && !uiState.get$isEditing() ? new A.CreditViewScreen(false, _null) : new A.CreditViewScreen(true, _null); + leftFilterChild = new A.CreditViewScreen(true, _null); break; case B.EntityType_purchaseOrder: - leftFilterChild = _this.editingFilterEntity && !uiState.get$isEditing() ? new A.PurchaseOrderViewScreen(false, _null) : new A.PurchaseOrderViewScreen(true, _null); + leftFilterChild = new A.PurchaseOrderViewScreen(true, _null); break; case B.EntityType_payment: - leftFilterChild = _this.editingFilterEntity && !uiState.get$isEditing() ? new A.PaymentEditScreen(_null) : new A.PaymentViewScreen(true, _null); + leftFilterChild = new A.PaymentViewScreen(true, _null); break; case B.EntityType_user: - leftFilterChild = _this.editingFilterEntity && !uiState.get$isEditing() ? new A.UserEditScreen(_null) : new A.UserViewScreen(true, _null); + leftFilterChild = new A.UserViewScreen(true, _null); break; case B.EntityType_group: - leftFilterChild = _this.editingFilterEntity && !uiState.get$isEditing() ? new A.GroupEditScreen(_null) : new A.GroupViewScreen(true, _null); + leftFilterChild = new A.GroupViewScreen(true, _null); break; case B.EntityType_subscription: - leftFilterChild = _this.editingFilterEntity && !uiState.get$isEditing() ? new A.SubscriptionEditScreen(_null) : new A.SubscriptionViewScreen(true, _null); + leftFilterChild = new A.SubscriptionViewScreen(true, _null); break; case B.EntityType_companyGateway: - leftFilterChild = _this.editingFilterEntity && !uiState.get$isEditing() ? new A.CompanyGatewayEditScreen(_null) : new A.CompanyGatewayViewScreen(true, _null); + leftFilterChild = new A.CompanyGatewayViewScreen(true, _null); break; case B.EntityType_recurringInvoice: - leftFilterChild = _this.editingFilterEntity && !uiState.get$isEditing() ? new A.RecurringInvoiceEditScreen(_null) : new A.RecurringInvoiceViewScreen(true, _null); + leftFilterChild = new A.RecurringInvoiceViewScreen(true, _null); break; case B.EntityType_expenseCategory: - leftFilterChild = _this.editingFilterEntity && !uiState.get$isEditing() ? new A.ExpenseCategoryEditScreen(_null) : new A.ExpenseCategoryViewScreen(true, _null); + leftFilterChild = new A.ExpenseCategoryViewScreen(true, _null); break; case B.EntityType_taskStatus: - leftFilterChild = _this.editingFilterEntity && !uiState.get$isEditing() ? new A.TaskStatusEditScreen(_null) : new A.TaskStatusViewScreen(true, _null); + leftFilterChild = new A.TaskStatusViewScreen(true, _null); break; case B.EntityType_vendor: - leftFilterChild = _this.editingFilterEntity && !uiState.get$isEditing() ? new A.VendorEditScreen(_null) : new A.VendorViewScreen(true, false, _null); + leftFilterChild = new A.VendorViewScreen(true, false, _null); break; case B.EntityType_project: - leftFilterChild = _this.editingFilterEntity && !uiState.get$isEditing() ? new A.ProjectEditScreen(_null) : new A.ProjectViewScreen(true, _null); + leftFilterChild = new A.ProjectViewScreen(true, _null); break; case B.EntityType_design: leftFilterChild = new A.DesignViewScreen(true, _null);