From ca63f953429b22b0484d5635e9a29cac47abd4ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sedat=20=C3=96zt=C3=BCrk?= Date: Fri, 19 Sep 2025 23:45:18 +0300 Subject: [PATCH] =?UTF-8?q?Versiyon=20g=C3=BCncellemelerine=20devam=20edil?= =?UTF-8?q?di.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/public/version.json | 10 ++++++- ui/src/components/template/Footer.tsx | 38 +------------------------ ui/src/views/version/UpdateNotifier.tsx | 2 +- 3 files changed, 11 insertions(+), 39 deletions(-) diff --git a/ui/public/version.json b/ui/public/version.json index 5fde58dd..8b34b016 100644 --- a/ui/public/version.json +++ b/ui/public/version.json @@ -1,6 +1,14 @@ { - "commit": "6766d11", + "commit": "9e85780", "releases": [ + { + "version": "1.0.6", + "buildDate": "2025-09-19", + "changeLog": [ + "Versiyon güncelleme sistemi", + "Vite.Config dosyasında hızlandırma adına güncellemeler" + ] + }, { "version": "1.0.5", "buildDate": "2025-09-19", diff --git a/ui/src/components/template/Footer.tsx b/ui/src/components/template/Footer.tsx index dbe6e955..4f52572f 100644 --- a/ui/src/components/template/Footer.tsx +++ b/ui/src/components/template/Footer.tsx @@ -1,12 +1,10 @@ -import { useEffect, useState } from "react" import classNames from "classnames" import Container from "@/components/shared/Container" import { APP_NAME } from "@/constants/app.constant" import { PAGE_CONTAINER_GUTTER_X } from "@/constants/theme.constant" -import { useStoreActions, useStoreState } from "@/store" +import { useStoreState } from "@/store" import { Link, useNavigate } from "react-router-dom" import { ROUTES_ENUM } from "@/routes/route.constant" -import UiDialog from "@/views/shared/UiDialog" export type FooterPageContainerType = "gutterless" | "contained" @@ -15,28 +13,10 @@ type FooterProps = { } const FooterContent = () => { - const navigate = useNavigate() const { currentUiVersion } = useStoreState((a) => a.locale) - const { setUiVersion } = useStoreActions((a) => a.locale) - const apiConfig = useStoreState((state) => state.abpConfig.config?.extraProperties) - const uiMode = import.meta.env.MODE - const [latestVersion, setLatestVersion] = useState(null) - - // version.json'dan en güncel UI versiyonunu al - useEffect(() => { - fetch("/version.json?ts=" + Date.now()) - .then((res) => res.json()) - .then((data) => { - if (data?.releases?.length > 0) { - setLatestVersion(data.releases[0].version) // en güncel hep en üstte - } - }) - .catch(() => setLatestVersion(null)) - }, []) - return ( <>
@@ -60,22 +40,6 @@ const FooterContent = () => {
- - {latestVersion && latestVersion !== currentUiVersion && ( - { - setUiVersion(latestVersion) - navigate(ROUTES_ENUM.protected.admin.changeLog) - }} - title="🎉 Yeni Güncelleme" - > - Sözsoft Kurs Platform Sistemi v{latestVersion} sürümüne güncellendi. -

Detayları, "Güncelleme Günlüğü" ekranında görebilirsiniz.

-
- )} ) } diff --git a/ui/src/views/version/UpdateNotifier.tsx b/ui/src/views/version/UpdateNotifier.tsx index bafbeea0..53049664 100644 --- a/ui/src/views/version/UpdateNotifier.tsx +++ b/ui/src/views/version/UpdateNotifier.tsx @@ -41,7 +41,7 @@ const UpdateNotifier = () => {
-

Yeni güncelleme mevcut!

+

Yeni güncelleme mevcut! (v{lastUiVersion})

En son özellikler için sayfayı yenileyin.