diff --git a/ui/src/views/admin/listForm/edit/json-row-operations/JsonRowOpDialogAnnotation.tsx b/ui/src/views/admin/listForm/edit/json-row-operations/JsonRowOpDialogAnnotation.tsx index 38e42e9..de129f5 100644 --- a/ui/src/views/admin/listForm/edit/json-row-operations/JsonRowOpDialogAnnotation.tsx +++ b/ui/src/views/admin/listForm/edit/json-row-operations/JsonRowOpDialogAnnotation.tsx @@ -2,7 +2,6 @@ import { Button, Checkbox, Dialog, - FormContainer, FormItem, Input, Notification, @@ -91,11 +90,11 @@ function JsonRowOpDialogAnnotation({ preventScroll={true} onClose={handleClose} onRequestClose={handleClose} + width={900} + height="90vh" > {(data.operation === 'create' || data.operation === 'update') && ( - <> -
{data.index === -1 ? 'Add' : 'Update'}
- {({ touched, errors, values, isSubmitting }) => ( -
- -
+ + +
{data.index === -1 ? 'Add' : 'Update'}
+
General Border -
+
- + -
+
-
- - -
- + + + + + )} - )} {data.operation === 'delete' && ( - <> -
Delete
-

Silmek istediğinize emin misiniz?

- { setSubmitting(true) @@ -487,21 +483,22 @@ function JsonRowOpDialogAnnotation({ }} > {({ isSubmitting }) => ( -
- -
- - -
-
+ + +
Delete
+

Silmek istediğinize emin misiniz?

+
+ + + +
)}
- )} ) diff --git a/ui/src/views/admin/listForm/edit/json-row-operations/JsonRowOpDialogEditForm.tsx b/ui/src/views/admin/listForm/edit/json-row-operations/JsonRowOpDialogEditForm.tsx index 42fd2d0..8e7e5a8 100644 --- a/ui/src/views/admin/listForm/edit/json-row-operations/JsonRowOpDialogEditForm.tsx +++ b/ui/src/views/admin/listForm/edit/json-row-operations/JsonRowOpDialogEditForm.tsx @@ -3,7 +3,6 @@ import { Card, Checkbox, Dialog, - FormContainer, FormItem, Input, Notification, @@ -140,64 +139,64 @@ function JsonRowOpDialogEditForm({ {(data.operation === 'create' || data.operation === 'update') && ( - <> -
{data.index === -1 ? 'Add' : 'Update'}
- { - setSubmitting(true) - try { - const input: ListFormJsonRowDto = { - index: data.index, - fieldName: data.tabName, - itemEditingForm: values, - } - - if (data.index === -1) { - await postListFormJsonRow(data.id, input) - } else { - await putListFormJsonRow(data.id, input) - } - toast.push( - - {data.index === -1 ? 'Kayıt eklendi' : 'Kayıt güncellendi'} - , - { placement: 'top-end' }, - ) - handleClose() - } catch (error: any) { - toast.push( - - Hata - {error} - , - { placement: 'top-end' }, - ) - } finally { - setSubmitting(false) + } + validationSchema={schema} + onSubmit={async (values, { setSubmitting }) => { + setSubmitting(true) + try { + const input: ListFormJsonRowDto = { + index: data.index, + fieldName: data.tabName, + itemEditingForm: values, } - }} - > - {({ touched, errors, values, isSubmitting }) => ( -
- -
+ + if (data.index === -1) { + await postListFormJsonRow(data.id, input) + } else { + await putListFormJsonRow(data.id, input) + } + toast.push( + + {data.index === -1 ? 'Kayıt eklendi' : 'Kayıt güncellendi'} + , + { placement: 'top-end' }, + ) + handleClose() + } catch (error: any) { + toast.push( + + Hata + {error} + , + { placement: 'top-end' }, + ) + } finally { + setSubmitting(false) + } + }} + > + {({ touched, errors, values, isSubmitting }) => ( + + +
{data.index === -1 ? 'Add' : 'Update'}
+
-
-
- - - -
- - - )} - - +
+
+ + +
+ + +
+
+ + )} + )} {data.operation === 'delete' && ( - <> -
Delete
-

Silmek istediğinize emin misiniz?

- { - setSubmitting(true) - try { - await deleteListFormJsonRow(data.id, data.tabName, values.index) - toast.push(Kayıt silindi ) - handleClose() - } catch (error: any) { - toast.push( - - Hata - {error} - , - { placement: 'top-end' }, - ) - } finally { - setSubmitting(false) - } - }} - > - {({ isSubmitting }) => ( -
- -
- - -
-
-
- )} -
- + { + setSubmitting(true) + try { + await deleteListFormJsonRow(data.id, data.tabName, values.index) + toast.push(Kayıt silindi ) + handleClose() + } catch (error: any) { + toast.push( + + Hata + {error} + , + { placement: 'top-end' }, + ) + } finally { + setSubmitting(false) + } + }} + > + {({ isSubmitting }) => ( +
+ +
Delete
+

Silmek istediğinize emin misiniz?

+
+ + + + +
+ )} +
)}
) diff --git a/ui/src/views/admin/listForm/edit/json-row-operations/JsonRowOpDialogSeries.tsx b/ui/src/views/admin/listForm/edit/json-row-operations/JsonRowOpDialogSeries.tsx index 730d3a2..9042cfa 100644 --- a/ui/src/views/admin/listForm/edit/json-row-operations/JsonRowOpDialogSeries.tsx +++ b/ui/src/views/admin/listForm/edit/json-row-operations/JsonRowOpDialogSeries.tsx @@ -3,7 +3,6 @@ import { Card, Checkbox, Dialog, - FormContainer, FormItem, Input, Notification, @@ -132,11 +131,11 @@ function JsonRowOpDialogSeries({ preventScroll={true} onClose={handleClose} onRequestClose={handleClose} + width={900} + height="90vh" > {(data.operation === 'create' || data.operation === 'update') && ( - <> -
{data.index === -1 ? 'Add' : 'Update'}
- {({ touched, errors, values, isSubmitting }) => ( -
- -
+ + +
{data.index === -1 ? 'Add' : 'Update'}
+
+
+ {/* Sol Kolon */} +
- +
+ {/* Sağ Kolon - Label */} +
@@ -525,26 +530,24 @@ function JsonRowOpDialogSeries({ +
+
-
- - -
- +
+ + + + )} - )} {data.operation === 'delete' && ( - <> -
Delete
-

Silmek istediğinize emin misiniz?

- { setSubmitting(true) @@ -568,21 +571,22 @@ function JsonRowOpDialogSeries({ }} > {({ isSubmitting }) => ( -
- -
- - -
-
+ + +
Delete
+

Silmek istediğinize emin misiniz?

+
+ + + +
)}
- )} ) diff --git a/ui/src/views/admin/listForm/edit/json-row-operations/JsonRowOpDialogSubForm.tsx b/ui/src/views/admin/listForm/edit/json-row-operations/JsonRowOpDialogSubForm.tsx index 835f5f4..c7d2a70 100644 --- a/ui/src/views/admin/listForm/edit/json-row-operations/JsonRowOpDialogSubForm.tsx +++ b/ui/src/views/admin/listForm/edit/json-row-operations/JsonRowOpDialogSubForm.tsx @@ -2,7 +2,6 @@ import { Button, Checkbox, Dialog, - FormContainer, FormItem, Input, Notification, @@ -70,15 +69,14 @@ function JsonRowOpDialogSubForm({ {(data.operation === 'create' || data.operation === 'update') && ( - <> -
{data.index === -1 ? 'Add' : 'Update'}
- {({ touched, errors, values, isSubmitting }) => ( -
- -
+ + +
{data.index === -1 ? 'Add' : 'Update'}
+
-
- - -
- + + + + + )} - )} {data.operation === 'delete' && ( - <> -
Delete
-

Silmek istediğinize emin misiniz?

- { setSubmitting(true) @@ -330,21 +325,22 @@ function JsonRowOpDialogSubForm({ }} > {({ isSubmitting }) => ( -
- -
- - -
-
+ + +
Delete
+

Silmek istediğinize emin misiniz?

+
+ + + +
)}
- )}
) diff --git a/ui/src/views/admin/listForm/edit/json-row-operations/JsonRowOpDialogWidget.tsx b/ui/src/views/admin/listForm/edit/json-row-operations/JsonRowOpDialogWidget.tsx index 118ef1b..c4745ec 100644 --- a/ui/src/views/admin/listForm/edit/json-row-operations/JsonRowOpDialogWidget.tsx +++ b/ui/src/views/admin/listForm/edit/json-row-operations/JsonRowOpDialogWidget.tsx @@ -2,7 +2,6 @@ import { Button, Checkbox, Dialog, - FormContainer, FormItem, Input, Notification, @@ -80,12 +79,11 @@ function JsonRowOpDialogWidget({ preventScroll={true} onClose={handleClose} onRequestClose={handleClose} - width={data.operation === 'create' || data.operation === 'update' ? 'sm' : '450px'} + width={data.operation === 'create' || data.operation === 'update' ? 900 : 450} + height="90vh" > {(data.operation === 'create' || data.operation === 'update') && ( - <> -
{data.index === -1 ? 'Add' : 'Update'}
- {({ touched, errors, values, isSubmitting, setFieldValue }) => ( -
- -
+ + +
{data.index === -1 ? 'Add' : 'Update'}
+
setFieldValue('sqlQuery', value || '')} - height="200px" + height="35vh" />
@@ -426,25 +425,21 @@ function JsonRowOpDialogWidget({ />
-
- - -
- + + + + + )} - )} {data.operation === 'delete' && ( - <> -
Delete
-

Silmek istediğinize emin misiniz?

- { setSubmitting(true) @@ -469,21 +464,22 @@ function JsonRowOpDialogWidget({ }} > {({ isSubmitting }) => ( -
- -
- - -
-
+ + +
Delete
+

Silmek istediğinize emin misiniz?

+
+ + + +
)}
- )} ) diff --git a/ui/src/views/admin/videoroom/RoomList.tsx b/ui/src/views/admin/videoroom/RoomList.tsx index f47d79c..28bbd81 100644 --- a/ui/src/views/admin/videoroom/RoomList.tsx +++ b/ui/src/views/admin/videoroom/RoomList.tsx @@ -31,7 +31,7 @@ import { Helmet } from 'react-helmet' import { useLocalization } from '@/utils/hooks/useLocalization' import { VideoroomDto } from '@/proxy/videoroom/models' import classNames from 'classnames' -import { Button, Input } from '@/components/ui' +import { Button, Dialog, Input } from '@/components/ui' import { FcVideoCall } from 'react-icons/fc' export interface RoomProps { @@ -508,25 +508,35 @@ const RoomList: React.FC = () => {
{/* Class Modal (Create/Edit) */} - {(showCreateModal || (showEditModal && videoroom)) && ( -
- -
-

+ { + setShowCreateModal(false) + setShowEditModal(false) + }} + onRequestClose={() => { + setShowCreateModal(false) + setShowEditModal(false) + }} + width={800} + height="90vh" + > +
+ + {/* Header */} +
+ +
{showCreateModal - ? translate('::App.Videoroom.CreateRoom') || 'Yeni Sınıf Oluştur' - : translate('::App.Videoroom.EditRoom') || 'Sınıfı Düzenle'} -
+ ? translate('::App.Videoroom.CreateRoom') || 'Yeni Oda Oluştur' + : translate('::App.Videoroom.EditRoom') || 'Odayı Düzenle'} +

- +
-
-
+ - if (showEditModal) { - setShowEditModal(false) - setVideoroom(newClassEntity) - resetForm() - } - }} - className="px-3 py-1 border border-gray-300 text-gray-700 rounded-lg hover:bg-gray-50 transition-colors" - > - {translate('::Cancel') || 'İptal'} - - -
- - -
- )} + + + + + + {/* Delete Confirmation Modal */} - {showDeleteModal && videoroom && ( -
- -
-
-
- -
-
-

- {translate('::App.Videoroom.DeleteRoom') || 'Sınıfı Sil'} -

-

- {translate('::App.Videoroom.DeleteRoomWarning') || 'Bu işlem geri alınamaz'} -

-
-
- -

- {translate('::DeleteConfirmation') || - 'Bu sınıfı silmek istediğinize emin misiniz?'} -

- -
- - -
+ { + setShowDeleteModal(false) + setVideoroom(newClassEntity) + }} + onRequestClose={() => { + setShowDeleteModal(false) + setVideoroom(newClassEntity) + }} + width={480} + > + +
+
+
- -
- )} +
+
+ {translate('::App.Videoroom.DeleteRoom') || 'Odayı Sil'} +
+

+ {translate('::App.Videoroom.DeleteRoomWarning') || 'Bu işlem geri alınamaz'} +

+
+
+

+ {translate('::DeleteConfirmation') || 'Bu odayı silmek istediğinize emin misiniz?'} +

+ + + + + + + ) diff --git a/ui/src/views/developerKit/SqlQueryManager.tsx b/ui/src/views/developerKit/SqlQueryManager.tsx index 1ab0d3a..c3c5a05 100644 --- a/ui/src/views/developerKit/SqlQueryManager.tsx +++ b/ui/src/views/developerKit/SqlQueryManager.tsx @@ -1162,13 +1162,13 @@ GO`, isOpen={showCopyDialog} onClose={() => !isCopyingObjects && setShowCopyDialog(false)} onRequestClose={() => !isCopyingObjects && setShowCopyDialog(false)} - contentClassName="max-h-[85vh] overflow-hidden" + width={1050} > -
-
{translate('::App.Platform.CopySelectedObjects')}
+ +
{translate('::App.Platform.CopySelectedObjects')}
{/* Mode Tabs */} -
+
-
+
{copyDialogMode === 'objects' ? ( <> {/* Objects Mode */} @@ -1322,32 +1322,32 @@ GO`, )}
+ -
- - -
-
+ + + + setShowCopyResultDialog(false)} onRequestClose={() => setShowCopyResultDialog(false)} width={1050} - contentClassName="max-h-[85vh] overflow-hidden" > -
-
+ +
{translate('::App.Platform.Results') || 'Kopyalama Sonuc Detaylari'}
-
+
{translate('::App.Platform.Success')}: {copySuccessCount}
@@ -1374,7 +1373,7 @@ GO`,
-
+
{copyResults.map((row, idx) => { const isError = row.status === 'error' @@ -1508,13 +1507,13 @@ GO`,
-
+ -
+ -
+
)