Gitea Version: 1.25.4
From cea0caaafed7c06ccd3e739dc3e9301c88f8bcf4 Mon Sep 17 00:00:00 2001
From: Reza Taghizadeh <95388378+srt207-reza@users.noreply.github.com>
Date: Tue, 18 Nov 2025 12:35:18 +0330
Subject: [PATCH] fix: resolve profile bugs
---
index.html | 1 -
package.json | 2 +-
src/App.tsx | 152 ++++++++----------
.../Profile/+components/LangSupportRow.tsx | 3 +-
.../pages/Profile/+components/PillSelect.tsx | 2 -
src/apps/new-ui/pages/Profile/index.tsx | 22 +--
src/main.tsx | 1 +
vite.config.ts | 2 +-
8 files changed, 87 insertions(+), 98 deletions(-)
diff --git a/index.html b/index.html
index 337407cb..c6ee01d7 100644
--- a/index.html
+++ b/index.html
@@ -29,7 +29,6 @@
html,
body {
background: #ab25c0; /* before page load */
- /* background: rgb(171, 37, 192); before page load */
height: 100%;
margin: 0;
}
diff --git a/package.json b/package.json
index 3e1fd6e0..400e9089 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "app.salona",
"private": true,
- "version": "2.90.8",
+ "version": "2.90.9",
"type": "module",
"scripts": {
"dev": "vite --host",
diff --git a/src/App.tsx b/src/App.tsx
index 035dc69b..2141772b 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -1,8 +1,5 @@
import { useEffect } from "react";
-import "aos/dist/aos.css";
-import "swiper/swiper-bundle.css";
-import "react-h5-audio-player/lib/styles.css";
-import "./App.css";
+
import AOS from "aos";
import { ErrorBoundary } from "react-error-boundary";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
@@ -11,10 +8,7 @@ import { ErrorBoundaryFallback } from "@/components/ErrorBoundaryFallback";
import SplashScreen from "./components/SplashScreen";
import { Toaster } from "react-hot-toast";
import VpnDetector from "./components/VpnDetector";
-import {
- mutationErrorHandler,
- requestErrorRetryHandler,
-} from "./utils/error-handlers";
+import { mutationErrorHandler, requestErrorRetryHandler } from "./utils/error-handlers";
import UpdateDetector from "./components/UpdateDetector";
import { MultiAccountsProvider } from "@appointment/hooks/useMultipleAccounts.tsx";
@@ -22,89 +16,85 @@ import AllRoutes from "@/routes";
import useSamsungBrowserWarning from "./hooks/useSamsungBrowserWarning";
import InternetStatusDetector from "./components/InternetStatusDetector";
-import "./App.css";
import LayoutWithNavigation from "./apps/new-ui/components/FooterLayout";
+import "swiper/swiper-bundle.css";
+import "react-h5-audio-player/lib/styles.css";
+import "./App.css";
const preventPinchZoom = (event: TouchEvent) => {
- if (event.touches.length > 1) event.preventDefault();
+ if (event.touches.length > 1) event.preventDefault();
};
//main file
function App() {
- // ====================DON'T DELETE PLEASE==========================================
- // useEffect(() => {
- // const themeColorMetaTag = document.querySelector(
- // 'meta[name="theme-color"]'
- // );
- // if (themeColorMetaTag) {
- // const backgroundColor = getComputedStyle(document.body).backgroundColor;
+ // ====================DON'T DELETE PLEASE==========================================
+ // useEffect(() => {
+ // const themeColorMetaTag = document.querySelector(
+ // 'meta[name="theme-color"]'
+ // );
+ // if (themeColorMetaTag) {
+ // const backgroundColor = getComputedStyle(document.body).backgroundColor;
- // // If backgroundColor is transparent or the default color, set it to black
- // themeColorMetaTag.setAttribute("content", backgroundColor || "#000");
- // }
- // }, []);
+ // // If backgroundColor is transparent or the default color, set it to black
+ // themeColorMetaTag.setAttribute("content", backgroundColor || "#000");
+ // }
+ // }, []);
- // =============================================================
- useEffect(() => {
- const themeColorMetaTag = document.querySelector(
- 'meta[name="theme-color"]'
+ // =============================================================
+ useEffect(() => {
+ const themeColorMetaTag = document.querySelector('meta[name="theme-color"]');
+ if (themeColorMetaTag) {
+ themeColorMetaTag.setAttribute("content", "#ab25c0"); // رنگ بنفش ثابت
+ }
+ }, []);
+
+ useSamsungBrowserWarning();
+ const queryClient = new QueryClient({
+ defaultOptions: {
+ queries: {
+ staleTime: Infinity,
+ retry: requestErrorRetryHandler,
+ },
+ mutations: {
+ onError: mutationErrorHandler,
+ },
+ },
+ });
+
+ useEffect(() => {
+ AOS.init({
+ duration: 1200,
+ once: true,
+ });
+
+ document.addEventListener("touchmove", preventPinchZoom, {
+ passive: false,
+ });
+ return () => {
+ document.removeEventListener("touchmove", preventPinchZoom);
+ };
+ }, []);
+
+ return (
+
Gitea Version: 1.25.4