From 27ff19ca0df4ba552f43eafcf5e85c22f2019aec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sedat=20=C3=96zt=C3=BCrk?= Date: Fri, 27 Mar 2026 23:17:35 +0300 Subject: [PATCH] =?UTF-8?q?Theme=20Configuration=20g=C3=BCncellemesi?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Seeds/LanguagesData.json | 6 + ui/src/assets/styles/components/_drawer.css | 2 +- .../template/SidePanel/SidePanel.tsx | 8 +- .../template/ThemeConfigurator/CopyButton.tsx | 14 +- .../ThemeConfigurator/StyleSwitcher.tsx | 37 ++-- .../ThemeConfigurator/ThemeConfigurator.tsx | 53 +++--- .../ThemeConfigurator/ThemeSwitcher.tsx | 7 +- ui/src/store/theme.model.ts | 5 - ui/src/views/admin/listForm/edit/options.ts | 178 ++++++++++++++---- 9 files changed, 219 insertions(+), 91 deletions(-) diff --git a/api/src/Sozsoft.Platform.DbMigrator/Seeds/LanguagesData.json b/api/src/Sozsoft.Platform.DbMigrator/Seeds/LanguagesData.json index 25a54ac..4de9beb 100644 --- a/api/src/Sozsoft.Platform.DbMigrator/Seeds/LanguagesData.json +++ b/api/src/Sozsoft.Platform.DbMigrator/Seeds/LanguagesData.json @@ -5346,6 +5346,12 @@ "en": "Configuration", "tr": "Yapılandırma" }, + { + "resourceName": "Platform", + "key": "SidePanel.SaveConfig", + "en": "Save Configuration", + "tr": "Yapılandırmayı Kaydet" + }, { "resourceName": "Platform", "key": "SidePanel.Mode", diff --git a/ui/src/assets/styles/components/_drawer.css b/ui/src/assets/styles/components/_drawer.css index e90d3c5..425a57a 100644 --- a/ui/src/assets/styles/components/_drawer.css +++ b/ui/src/assets/styles/components/_drawer.css @@ -15,7 +15,7 @@ } .drawer-body { - @apply p-6 h-full overflow-y-auto; + @apply p-4 h-full overflow-y-auto; } .drawer-footer { diff --git a/ui/src/components/template/SidePanel/SidePanel.tsx b/ui/src/components/template/SidePanel/SidePanel.tsx index b103622..f6f5797 100644 --- a/ui/src/components/template/SidePanel/SidePanel.tsx +++ b/ui/src/components/template/SidePanel/SidePanel.tsx @@ -1,6 +1,7 @@ import classNames from 'classnames' import Drawer from '@/components/ui/Drawer' import SidePanelContent, { SidePanelContentProps } from './SidePanelContent' +import CopyButton from '../ThemeConfigurator/CopyButton' import withHeaderItem from '@/utils/hoc/withHeaderItem' import { useStoreState, useStoreActions } from '@/store' import type { CommonProps } from '@/proxy/common' @@ -41,7 +42,12 @@ const _SidePanel = (props: SidePanelProps) => { +

{translate('::SidePanel.Title')}

+ + + } isOpen={panelExpand} placement={direction === 'rtl' ? 'left' : 'right'} width={375} diff --git a/ui/src/components/template/ThemeConfigurator/CopyButton.tsx b/ui/src/components/template/ThemeConfigurator/CopyButton.tsx index ab06708..bd8200e 100644 --- a/ui/src/components/template/ThemeConfigurator/CopyButton.tsx +++ b/ui/src/components/template/ThemeConfigurator/CopyButton.tsx @@ -3,9 +3,12 @@ import Button from '@/components/ui/Button' import toast from '@/components/ui/toast' import { themeConfig } from '@/proxy/theme/theme.config' import { useStoreState } from '@/store' +import { FaSave } from 'react-icons/fa' +import { useLocalization } from '@/utils/hooks/useLocalization' const CopyButton = () => { const theme = useStoreState((state) => state.theme) + const { translate } = useLocalization() const handleCopy = () => { const config = { @@ -31,9 +34,14 @@ const CopyButton = () => { } return ( - +