From 900f2815f957156702dfa6c9648737b696c926a2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sedat=20=C3=96ZT=C3=9CRK?=
<76204082+iamsedatozturk@users.noreply.github.com>
Date: Tue, 17 Mar 2026 14:46:20 +0300
Subject: [PATCH] =?UTF-8?q?Public=20Designer=20g=C3=BCncellemeleri?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Seeds/LanguagesData.json | 24 +++++++++++++++++++
ui/src/views/public/About.tsx | 13 ++++++++--
ui/src/views/public/Contact.tsx | 21 ++++++++++++----
ui/src/views/public/Home.tsx | 11 +++++++++
ui/src/views/public/Services.tsx | 11 +++++++++
5 files changed, 73 insertions(+), 7 deletions(-)
diff --git a/api/src/Sozsoft.Platform.DbMigrator/Seeds/LanguagesData.json b/api/src/Sozsoft.Platform.DbMigrator/Seeds/LanguagesData.json
index 26e6fa1..46feeaf 100644
--- a/api/src/Sozsoft.Platform.DbMigrator/Seeds/LanguagesData.json
+++ b/api/src/Sozsoft.Platform.DbMigrator/Seeds/LanguagesData.json
@@ -8112,6 +8112,30 @@
"tr": "Başlık, alt başlık ve arka plan görselini düzenleyin.",
"en": "Edit the title, subtitle, and background image."
},
+ {
+ "resourceName": "Platform",
+ "key": "Public.designer.desc5",
+ "tr": "İletişim bilgilerini düzenleyin.",
+ "en": "Edit the contact information."
+ },
+ {
+ "resourceName": "Platform",
+ "key": "Public.designer.desc6",
+ "tr": "Banka bilgilerini düzenleyin.",
+ "en": "Edit the bank information."
+ },
+ {
+ "resourceName": "Platform",
+ "key": "Public.designer.desc7",
+ "tr": "Çalışma saatleri metinlerini düzenleyin.",
+ "en": "Edit the work hours information."
+ },
+ {
+ "resourceName": "Platform",
+ "key": "Public.designer.desc8",
+ "tr": "Harita başlığı ve iframe ayarlarini duzenleyin.",
+ "en": "Edit the map title and iframe settings."
+ },
{
"resourceName": "Platform",
"key": "Public.designer.selectField",
diff --git a/ui/src/views/public/About.tsx b/ui/src/views/public/About.tsx
index d8b16af..1205b0d 100644
--- a/ui/src/views/public/About.tsx
+++ b/ui/src/views/public/About.tsx
@@ -6,7 +6,7 @@ import { getAbout, saveAboutPage } from '@/services/about'
import { useLocalization } from '@/utils/hooks/useLocalization'
import Loading from '@/components/shared/Loading'
import { APP_NAME } from '@/constants/app.constant'
-import { ROUTES_ENUM } from '@/routes/route.constant'
+import { Notification, toast } from '@/components/ui'
import { useStoreState } from '@/store'
import { useStoreActions } from '@/store'
import { useNavigate } from 'react-router-dom'
@@ -417,7 +417,16 @@ const About: React.FC = () => {
await getConfig(false)
setSelectedBlockId(null)
- navigate(ROUTES_ENUM.public.about, { replace: true })
+
+ toast.push(
+
+ {translate('::ListForms.FormBilgileriKaydedildi')}
+ ,
+ {
+ placement: 'top-end',
+ },
+ )
+
} catch (error) {
console.error('About tasarimi kaydedilemedi:', error)
} finally {
diff --git a/ui/src/views/public/Contact.tsx b/ui/src/views/public/Contact.tsx
index 1af4fb2..a01085b 100644
--- a/ui/src/views/public/Contact.tsx
+++ b/ui/src/views/public/Contact.tsx
@@ -20,6 +20,7 @@ import DesignerDrawer from './designer/DesignerDrawer'
import SelectableBlock from './designer/SelectableBlock'
import { DesignerSelection } from './designer/types'
import { useDesignerState } from './designer/useDesignerState'
+import { Notification, toast } from '@/components/ui'
interface ContactContent {
heroTitle: string
@@ -229,7 +230,7 @@ const Contact: React.FC = () => {
return {
id: 'hero',
title: 'Public.contact.hero.*',
- description: 'Hero basligi, alt basligi ve arka plan gorselini duzenleyin.',
+ description: translate('::Public.designer.desc4'),
fields: [
{
key: 'heroTitle',
@@ -257,7 +258,7 @@ const Contact: React.FC = () => {
return {
id: selectedBlockId,
title: content.contactInfoTitleKey,
- description: 'Iletisim bilgilerini duzenleyin.',
+ description: translate('::Public.designer.desc5'),
fields: [
{
key: 'contactInfoTitle',
@@ -303,7 +304,7 @@ const Contact: React.FC = () => {
return {
id: selectedBlockId,
title: content.bankTitleKey,
- description: 'Banka bilgilerini duzenleyin.',
+ description: translate('::Public.designer.desc6'),
fields: [
{
key: 'bankTitle',
@@ -343,7 +344,7 @@ const Contact: React.FC = () => {
return {
id: selectedBlockId,
title: content.workHoursTitleKey,
- description: 'Calisma saatleri metinlerini duzenleyin.',
+ description: translate('::Public.designer.desc7'),
fields: [
{
key: 'workHoursTitle',
@@ -377,7 +378,7 @@ const Contact: React.FC = () => {
return {
id: selectedBlockId,
title: content.mapTitleKey,
- description: 'Harita basligi ve iframe ayarlarini duzenleyin.',
+ description: translate('::Public.designer.desc8'),
fields: [
{
key: 'mapTitle',
@@ -479,6 +480,16 @@ const Contact: React.FC = () => {
await getConfig(false)
setSelectedBlockId(null)
+
+ toast.push(
+
+ {translate('::ListForms.FormBilgileriKaydedildi')}
+ ,
+ {
+ placement: 'top-center',
+ },
+ )
+
} catch (error) {
console.error('Contact tasarimi kaydedilemedi:', error)
} finally {
diff --git a/ui/src/views/public/Home.tsx b/ui/src/views/public/Home.tsx
index 7bcb335..bd9ac97 100644
--- a/ui/src/views/public/Home.tsx
+++ b/ui/src/views/public/Home.tsx
@@ -17,6 +17,7 @@ import SelectableBlock from './designer/SelectableBlock'
import { DesignerSelection } from './designer/types'
import { useDesignerState } from './designer/useDesignerState'
import { getHome, HomeDto, saveHomePage } from '@/services/home.service'
+import { Notification, toast } from '@/components/ui'
interface HomeSlideServiceContent {
icon: string
@@ -814,6 +815,16 @@ const Home: React.FC = () => {
await getConfig(false)
setSelectedBlockId(null)
+
+ toast.push(
+
+ {translate('::ListForms.FormBilgileriKaydedildi')}
+ ,
+ {
+ placement: 'top-end',
+ },
+ )
+
} catch (error) {
console.error('Home tasarimi kaydedilemedi:', error)
} finally {
diff --git a/ui/src/views/public/Services.tsx b/ui/src/views/public/Services.tsx
index 401d6b1..e864d44 100644
--- a/ui/src/views/public/Services.tsx
+++ b/ui/src/views/public/Services.tsx
@@ -15,6 +15,7 @@ import DesignerDrawer from './designer/DesignerDrawer'
import SelectableBlock from './designer/SelectableBlock'
import { DesignerSelection } from './designer/types'
import { useDesignerState } from './designer/useDesignerState'
+import { Notification, toast } from '@/components/ui'
interface ServiceCardContent {
icon: string
@@ -563,6 +564,16 @@ const Services: React.FC = () => {
await getConfig(false)
setSelectedBlockId(null)
+
+ toast.push(
+
+ {translate('::ListForms.FormBilgileriKaydedildi')}
+ ,
+ {
+ placement: 'top-end',
+ },
+ )
+
} catch (error) {
console.error('Services tasarimi kaydedilemedi:', error)
} finally {