From cda521a5d9a944104dc2107e10d0f9e628728496 Mon Sep 17 00:00:00 2001 From: Khushboo Verma Date: Sun, 20 Apr 2025 15:52:29 +0530 Subject: [PATCH 1/3] Add favicon --- app/views/general/error.phtml | 1 + public/images/logos/appwrite-icon.svg | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 public/images/logos/appwrite-icon.svg diff --git a/app/views/general/error.phtml b/app/views/general/error.phtml index 60afe86494..1537676bca 100644 --- a/app/views/general/error.phtml +++ b/app/views/general/error.phtml @@ -94,6 +94,7 @@ switch ($type) { + + + + \ No newline at end of file From 8bd89441a4b8ce976facbdc511fed3e338d43936 Mon Sep 17 00:00:00 2001 From: Khushboo Verma Date: Tue, 22 Apr 2025 16:41:22 +0530 Subject: [PATCH 2/3] Add png logo --- app/views/general/error.phtml | 1 + public/images/logos/appwrite-icon.png | Bin 0 -> 1269 bytes public/images/logos/appwrite-icon.svg | 15 +++++++++------ 3 files changed, 10 insertions(+), 6 deletions(-) create mode 100644 public/images/logos/appwrite-icon.png diff --git a/app/views/general/error.phtml b/app/views/general/error.phtml index 1537676bca..801585d504 100644 --- a/app/views/general/error.phtml +++ b/app/views/general/error.phtml @@ -95,6 +95,7 @@ switch ($type) { + R!-o}38Fms zqmXvmJ!_)^3s~)ZEGxvXisDOJ)%>Tsx2L-ocx1UD1cqBl17FaPADhr!KR@GbyvCrv%cb`hy{Fk14LX7QUaB1J=HexsBc(BJ(5D#D8Z`7VFbT_$SD zB3f`K1<^ne9f=qz0^%eMiOe_KO!Q$mahZf z7ExLN+4Yvz{9-QO4uArBbbfLKPm~gXH@nX@af16Nm0-E!!y4uiz?eLL=2K4r&KGGG ztG(5~`a?KSC_oZns zJM7rFgSz!UANg=W7H?=o6Mbqd7A3h+0N&~x)+E}Op(#Q71xhmG0^j^zf54(bd=S0; zvp?_4XDomq$``XAQOh$A`Z2$YG*D!magJ@XuE z8sA-EXPy^dbAfED`@z>O&m3YhImE2YafmTHmTBFS_dEmp`Ft&z;yj-{6~OF1kuDuX zZn$EqN$sy#oZhBF0KdZ#vjOVuaiJAV1<1BK@8z45DKhXXT2qN@h3DewABnieb2y@6 z^@Iv?gFFac{F<1BJ1t%VNAdYd+edk8Rib#t>Ind+Yw3yJEqYBZK$J;Q!{vhr$1CS2 zJ$PjGU4O_*9l(vkb>%ML6#T^J)z4yTfeM@BtxivYtYdEv_t4gaHDeV2QX*iV6wUA+i@Bic&lPtOcMfYvKW5EkM=qMiQh2X9TcHVdeH& zX~A^7W_PzLLIfZ?0YK}h5H&^+!Ij+4t!`(gO_nDoRiXGd1VEAIe_@IKoV8H_=D5#~l~=Mvd%sOTadz@BC%>$sIt%tROfw}!Kr}5n=@|s^{Y&zam`O79s{RiS$Zc^*YqaC5H1@qx)ka{Z zWpVwqd*)#R#M|gfRZLT1)5U>1X4l>u)5U^ttu^M!3NA@S-Iq}6Rh=#3ngHYNq@}bz zgMU)F(+t^6fHMD&8Zk2;Fy8F+rBYf=f>Q%#j>GX-^`zdNVo8`0z$8YRXdg?$jRg_Y z+BVHjECF}U2`)oCD4Z0XY;|7x7+9z)g*8Fb^Vf`pZ-L#$Tt(59cPGh1jR~d3e - - + + + + + + + + + \ No newline at end of file From 9c2064a5ce642293b1b9db16b59cec24347b2a6d Mon Sep 17 00:00:00 2001 From: Khushboo Verma Date: Tue, 22 Apr 2025 16:52:29 +0530 Subject: [PATCH 3/3] dynamic urls --- app/views/general/error.phtml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/app/views/general/error.phtml b/app/views/general/error.phtml index 801585d504..c6457ce98f 100644 --- a/app/views/general/error.phtml +++ b/app/views/general/error.phtml @@ -1,4 +1,6 @@ getParam('development', false); $type = $this->getParam('type', 'general_server_error'); $code = $this->getParam('code', 500); @@ -12,6 +14,15 @@ $label = ''; $labelClass = ''; $buttons = []; +$protocol = System::getEnv('_APP_OPTIONS_FORCE_HTTPS') == 'disabled' ? 'http' : 'https'; +$hostname = System::getEnv('_APP_DOMAIN'); +// TODO: remove this later +if (System::getEnv('_APP_ENV') === 'development') { + $hostname = 'localhost'; +} + +$url = $protocol . '://' . $hostname; + if($exception !== null && method_exists($exception, 'getCTAs')) { foreach ($exception->getCTAs() as $index => $cta) { $class = ($index === 0) ? 'bordered-button' : 'button'; @@ -94,8 +105,8 @@ switch ($type) { - - + +