From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server-vie001.gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,URIBL_ZEN_BLOCKED_OPENDNS autolearn=ham autolearn_force=no version=3.4.6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1740698560; bh=oScZTxRFme5DjzypxsHGTd8PtBlfemQjH4BhQTrMZIo=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version: Content-Transfer-Encoding:Message-ID:Date:From:Reply-To:Subject:To: Cc:In-Reply-To:References:Resent-Date:Resent-From:Resent-To: Resent-Cc:User-Agent:Content-Type:Content-Transfer-Encoding; b=KXsBjCjxes5MD7zHNwVBBy2U2C8KrUh//rJ9CzlwQbdRZIz1Qp/20JF2ssFUPGFEZ lcPMSThrHqO+QWOnARPx4GDcKxNRIGCxOA8zFulT9ZN9vPlrx3kCMo7Q43IuTU6B8h 3LlpwurZMor0hUlS/H39qt1c17WRmukOKHmbHXUNOyPO4lfUdJkDregrSQmXPg6FwI FABgWNNi2BV1alwJvnZVOdunoCXpZs+e/JhHxQtlYdkJp3RFg0PwisK9ttJ/SnBOdf VotL1xKcymQ5T1a8iZFDv6sluupl83e+fRk9bNnEkruRLyZAr6fJfjpMvgLaNMDM5i jMkzG3CMXi0wA== Received: from integral2.. (unknown [182.253.126.171]) by server-vie001.gnuweeb.org (Postfix) with ESMTPSA id EB6102074491; Thu, 27 Feb 2025 23:22:38 +0000 (UTC) From: Ammar Faizi To: Muhammad Rizki Cc: Ammar Faizi , GNU/Weeb Mailing List , Alviro Iskandar Setiawan Subject: [PATCH gwmail 0/7] User Profile Page Date: Fri, 28 Feb 2025 06:22:27 +0700 Message-Id: <20250227232234.809858-1-ammarfaizi2@gnuweeb.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: This series adds user profile page and photo profile support. API examples can be found at: https://github.com/GNUWeeb/mail.gnuweeb.org/blob/rework/old/profile.html https://github.com/GNUWeeb/mail.gnuweeb.org/blob/rework/old/assets/js/api.js You can also access it live at: https://mail.gnuweeb.org/old/ Note: The login session is shared with the new interface. Both, old and new interface use the same localStorage key. There is one breaking change in the API, but it is very simple to adapt. I also have updated the svelte code to keep up with the new API. See patch #6 for details. I will keep maintaining the old interface to let you know how to use the API. It's easier that way for me rather than writing a documentation. Sync your git tree with master branch before start continuing the profile page. Signed-off-by: Ammar Faizi -- The following changes since commit 3a19417eed1530408c6a284c8747937657b27469: feat: add settings pages (2025-02-23 15:31:17 +0700) are available in the Git repository at: https://github.com/GNUWeeb/mail.gnuweeb.org master for you to fetch changes up to 0f781e613d2bc0f05ff64b1233073ad51cfd939f: old: Use relative path to redirect (2025-02-28 05:29:15 +0700) ---------------------------------------------------------------- Ammar Faizi (8): Merge branch 'patches-from-muhammad-rizki' into rework (patches from Muhammad Rizki) settings/account: Add header 'change password' public: Refactor old interface to keep up with new API Rename 'public' to 'old' old: Add profile page old: Add photo profile support routes: layout: Adjust field with new API old: Use relative path to redirect {public => old}/assets/css/.gitkeep | 0 old/assets/default_profile.png | Bin 0 -> 18016 bytes old/assets/js/api.js | 239 ++++++++++++++++++++++++++++++++++++++++ {public => old}/home.html | 47 ++++---- {public => old}/index.html | 20 ++-- old/profile.html | 197 +++++++++++++++++++++++++++++++++ public/assets/js/api.js | 140 ----------------------- src/routes/(protected)/+layout.ts | 2 +- src/routes/(protected)/settings/account/+page.svelte | 1 + 9 files changed, 478 insertions(+), 168 deletions(-) rename {public => old}/assets/css/.gitkeep (100%) create mode 100644 old/assets/default_profile.png create mode 100644 old/assets/js/api.js rename {public => old}/home.html (74%) rename {public => old}/index.html (83%) create mode 100644 old/profile.html delete mode 100644 public/assets/js/api.js -- Ammar Faizi