Public Designer güncellemeleri
This commit is contained in:
parent
42f20c224f
commit
900f2815f9
5 changed files with 73 additions and 7 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
<Notification type="success" duration={2000}>
|
||||
{translate('::ListForms.FormBilgileriKaydedildi')}
|
||||
</Notification>,
|
||||
{
|
||||
placement: 'top-end',
|
||||
},
|
||||
)
|
||||
|
||||
} catch (error) {
|
||||
console.error('About tasarimi kaydedilemedi:', error)
|
||||
} finally {
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
<Notification type="success" duration={2000}>
|
||||
{translate('::ListForms.FormBilgileriKaydedildi')}
|
||||
</Notification>,
|
||||
{
|
||||
placement: 'top-center',
|
||||
},
|
||||
)
|
||||
|
||||
} catch (error) {
|
||||
console.error('Contact tasarimi kaydedilemedi:', error)
|
||||
} finally {
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
<Notification type="success" duration={2000}>
|
||||
{translate('::ListForms.FormBilgileriKaydedildi')}
|
||||
</Notification>,
|
||||
{
|
||||
placement: 'top-end',
|
||||
},
|
||||
)
|
||||
|
||||
} catch (error) {
|
||||
console.error('Home tasarimi kaydedilemedi:', error)
|
||||
} finally {
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
<Notification type="success" duration={2000}>
|
||||
{translate('::ListForms.FormBilgileriKaydedildi')}
|
||||
</Notification>,
|
||||
{
|
||||
placement: 'top-end',
|
||||
},
|
||||
)
|
||||
|
||||
} catch (error) {
|
||||
console.error('Services tasarimi kaydedilemedi:', error)
|
||||
} finally {
|
||||
|
|
|
|||
Loading…
Reference in a new issue