Public Designer güncellemeleri

This commit is contained in:
Sedat ÖZTÜRK 2026-03-17 14:46:20 +03:00
parent 42f20c224f
commit 900f2815f9
5 changed files with 73 additions and 7 deletions

View file

@ -8112,6 +8112,30 @@
"tr": "Başlık, alt başlık ve arka plan görselini düzenleyin.", "tr": "Başlık, alt başlık ve arka plan görselini düzenleyin.",
"en": "Edit the title, subtitle, and background image." "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", "resourceName": "Platform",
"key": "Public.designer.selectField", "key": "Public.designer.selectField",

View file

@ -6,7 +6,7 @@ import { getAbout, saveAboutPage } from '@/services/about'
import { useLocalization } from '@/utils/hooks/useLocalization' import { useLocalization } from '@/utils/hooks/useLocalization'
import Loading from '@/components/shared/Loading' import Loading from '@/components/shared/Loading'
import { APP_NAME } from '@/constants/app.constant' 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 { useStoreState } from '@/store'
import { useStoreActions } from '@/store' import { useStoreActions } from '@/store'
import { useNavigate } from 'react-router-dom' import { useNavigate } from 'react-router-dom'
@ -417,7 +417,16 @@ const About: React.FC = () => {
await getConfig(false) await getConfig(false)
setSelectedBlockId(null) setSelectedBlockId(null)
navigate(ROUTES_ENUM.public.about, { replace: true })
toast.push(
<Notification type="success" duration={2000}>
{translate('::ListForms.FormBilgileriKaydedildi')}
</Notification>,
{
placement: 'top-end',
},
)
} catch (error) { } catch (error) {
console.error('About tasarimi kaydedilemedi:', error) console.error('About tasarimi kaydedilemedi:', error)
} finally { } finally {

View file

@ -20,6 +20,7 @@ import DesignerDrawer from './designer/DesignerDrawer'
import SelectableBlock from './designer/SelectableBlock' import SelectableBlock from './designer/SelectableBlock'
import { DesignerSelection } from './designer/types' import { DesignerSelection } from './designer/types'
import { useDesignerState } from './designer/useDesignerState' import { useDesignerState } from './designer/useDesignerState'
import { Notification, toast } from '@/components/ui'
interface ContactContent { interface ContactContent {
heroTitle: string heroTitle: string
@ -229,7 +230,7 @@ const Contact: React.FC = () => {
return { return {
id: 'hero', id: 'hero',
title: 'Public.contact.hero.*', title: 'Public.contact.hero.*',
description: 'Hero basligi, alt basligi ve arka plan gorselini duzenleyin.', description: translate('::Public.designer.desc4'),
fields: [ fields: [
{ {
key: 'heroTitle', key: 'heroTitle',
@ -257,7 +258,7 @@ const Contact: React.FC = () => {
return { return {
id: selectedBlockId, id: selectedBlockId,
title: content.contactInfoTitleKey, title: content.contactInfoTitleKey,
description: 'Iletisim bilgilerini duzenleyin.', description: translate('::Public.designer.desc5'),
fields: [ fields: [
{ {
key: 'contactInfoTitle', key: 'contactInfoTitle',
@ -303,7 +304,7 @@ const Contact: React.FC = () => {
return { return {
id: selectedBlockId, id: selectedBlockId,
title: content.bankTitleKey, title: content.bankTitleKey,
description: 'Banka bilgilerini duzenleyin.', description: translate('::Public.designer.desc6'),
fields: [ fields: [
{ {
key: 'bankTitle', key: 'bankTitle',
@ -343,7 +344,7 @@ const Contact: React.FC = () => {
return { return {
id: selectedBlockId, id: selectedBlockId,
title: content.workHoursTitleKey, title: content.workHoursTitleKey,
description: 'Calisma saatleri metinlerini duzenleyin.', description: translate('::Public.designer.desc7'),
fields: [ fields: [
{ {
key: 'workHoursTitle', key: 'workHoursTitle',
@ -377,7 +378,7 @@ const Contact: React.FC = () => {
return { return {
id: selectedBlockId, id: selectedBlockId,
title: content.mapTitleKey, title: content.mapTitleKey,
description: 'Harita basligi ve iframe ayarlarini duzenleyin.', description: translate('::Public.designer.desc8'),
fields: [ fields: [
{ {
key: 'mapTitle', key: 'mapTitle',
@ -479,6 +480,16 @@ const Contact: React.FC = () => {
await getConfig(false) await getConfig(false)
setSelectedBlockId(null) setSelectedBlockId(null)
toast.push(
<Notification type="success" duration={2000}>
{translate('::ListForms.FormBilgileriKaydedildi')}
</Notification>,
{
placement: 'top-center',
},
)
} catch (error) { } catch (error) {
console.error('Contact tasarimi kaydedilemedi:', error) console.error('Contact tasarimi kaydedilemedi:', error)
} finally { } finally {

View file

@ -17,6 +17,7 @@ import SelectableBlock from './designer/SelectableBlock'
import { DesignerSelection } from './designer/types' import { DesignerSelection } from './designer/types'
import { useDesignerState } from './designer/useDesignerState' import { useDesignerState } from './designer/useDesignerState'
import { getHome, HomeDto, saveHomePage } from '@/services/home.service' import { getHome, HomeDto, saveHomePage } from '@/services/home.service'
import { Notification, toast } from '@/components/ui'
interface HomeSlideServiceContent { interface HomeSlideServiceContent {
icon: string icon: string
@ -814,6 +815,16 @@ const Home: React.FC = () => {
await getConfig(false) await getConfig(false)
setSelectedBlockId(null) setSelectedBlockId(null)
toast.push(
<Notification type="success" duration={2000}>
{translate('::ListForms.FormBilgileriKaydedildi')}
</Notification>,
{
placement: 'top-end',
},
)
} catch (error) { } catch (error) {
console.error('Home tasarimi kaydedilemedi:', error) console.error('Home tasarimi kaydedilemedi:', error)
} finally { } finally {

View file

@ -15,6 +15,7 @@ import DesignerDrawer from './designer/DesignerDrawer'
import SelectableBlock from './designer/SelectableBlock' import SelectableBlock from './designer/SelectableBlock'
import { DesignerSelection } from './designer/types' import { DesignerSelection } from './designer/types'
import { useDesignerState } from './designer/useDesignerState' import { useDesignerState } from './designer/useDesignerState'
import { Notification, toast } from '@/components/ui'
interface ServiceCardContent { interface ServiceCardContent {
icon: string icon: string
@ -563,6 +564,16 @@ const Services: React.FC = () => {
await getConfig(false) await getConfig(false)
setSelectedBlockId(null) setSelectedBlockId(null)
toast.push(
<Notification type="success" duration={2000}>
{translate('::ListForms.FormBilgileriKaydedildi')}
</Notification>,
{
placement: 'top-end',
},
)
} catch (error) { } catch (error) {
console.error('Services tasarimi kaydedilemedi:', error) console.error('Services tasarimi kaydedilemedi:', error)
} finally { } finally {