bottom-end

This commit is contained in:
Sedat ÖZTÜRK 2026-07-08 09:14:40 +03:00
parent 3953498b8d
commit 04e88fc969
63 changed files with 232 additions and 231 deletions

View file

@ -260,7 +260,7 @@ export const ComponentCodeEditor: React.FC<ComponentCodeEditorProps> = ({
<Notification type="warning" duration={3000}> <Notification type="warning" duration={3000}>
Bileşen yalnızca <strong>return(...)</strong> bloğu içine eklenebilir. Bileşen yalnızca <strong>return(...)</strong> bloğu içine eklenebilir.
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
return return
} }

View file

@ -220,7 +220,7 @@ const MessengerWidgetContent = ({ className }: { className?: string }) => {
type="warning" type="warning"
/>, />,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
return return
@ -284,7 +284,7 @@ const MessengerWidgetContent = ({ className }: { className?: string }) => {
type="warning" type="warning"
/>, />,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
return return
@ -299,7 +299,7 @@ const MessengerWidgetContent = ({ className }: { className?: string }) => {
} catch { } catch {
toast.push( toast.push(
<Notification title={translate('::MessengerWidget.FileUploadFailed')} type="danger" />, <Notification title={translate('::MessengerWidget.FileUploadFailed')} type="danger" />,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
} finally { } finally {
setUploading(false) setUploading(false)
@ -317,7 +317,7 @@ const MessengerWidgetContent = ({ className }: { className?: string }) => {
type="warning" type="warning"
/>, />,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
return return
@ -339,7 +339,7 @@ const MessengerWidgetContent = ({ className }: { className?: string }) => {
} catch { } catch {
toast.push( toast.push(
<Notification title={translate('::MessengerWidget.MessageSendFailed')} type="danger" />, <Notification title={translate('::MessengerWidget.MessageSendFailed')} type="danger" />,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
} }
} }
@ -353,7 +353,7 @@ const MessengerWidgetContent = ({ className }: { className?: string }) => {
} catch { } catch {
toast.push( toast.push(
<Notification title={translate('::MessengerWidget.MessageDeleteFailed')} type="danger" />, <Notification title={translate('::MessengerWidget.MessageDeleteFailed')} type="danger" />,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
} }
} }

View file

@ -28,7 +28,7 @@ const CopyButton = () => {
{`Please replace themeConfig in 'src/configs/themeConfig.js'`} {`Please replace themeConfig in 'src/configs/themeConfig.js'`}
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
} }

View file

@ -37,7 +37,7 @@ const StyleSwitcher = ({ onStyleChange }: { onStyleChange?: () => void }) => {
const resp = await updateSettingValues(values) const resp = await updateSettingValues(values)
if (resp.status !== 204) { if (resp.status !== 204) {
toast.push(<Notification title={resp?.error?.message} type="danger" />, { toast.push(<Notification title={resp?.error?.message} type="danger" />, {
placement: 'top-end', placement: 'bottom-end',
}) })
} }

View file

@ -74,7 +74,7 @@ const Upload = forwardRef<HTMLDivElement, UploadProps>((props, ref) => {
{msg || 'Upload Failed!'} {msg || 'Upload Failed!'}
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
} }

View file

@ -33,7 +33,7 @@ export abstract class UiEvalService {
<Notification type="success" duration={2000}> <Notification type="success" duration={2000}>
{UiEvalService.translate(toastKey)} {UiEvalService.translate(toastKey)}
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
} }
@ -59,7 +59,7 @@ export abstract class UiEvalService {
<Notification type="info" duration={3000}> <Notification type="info" duration={3000}>
{UiEvalService.translate('::App.DbMigrate.StartMessage')} {UiEvalService.translate('::App.DbMigrate.StartMessage')}
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
openDbMigrateLogPanel() openDbMigrateLogPanel()
streamSetupMigrate( streamSetupMigrate(
@ -72,7 +72,7 @@ export abstract class UiEvalService {
<Notification type="success" duration={5000}> <Notification type="success" duration={5000}>
{UiEvalService.translate('::App.DbMigrate.EndMessage')} {UiEvalService.translate('::App.DbMigrate.EndMessage')}
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
}, },
(err) => { (err) => {
@ -82,7 +82,7 @@ export abstract class UiEvalService {
{UiEvalService.translate('::App.DbMigrate.ErrorMessage')} {UiEvalService.translate('::App.DbMigrate.ErrorMessage')}
{err instanceof Error ? `: ${err.message}` : ''} {err instanceof Error ? `: ${err.message}` : ''}
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
}, },
) )

View file

@ -100,7 +100,7 @@ export class SignalRService {
this.connection.onreconnected(async () => { this.connection.onreconnected(async () => {
this.isConnected = true this.isConnected = true
toast.push(<Notification title="🔄 Bağlantı tekrar kuruldu" type="success" />, { toast.push(<Notification title="🔄 Bağlantı tekrar kuruldu" type="success" />, {
placement: 'top-end', placement: 'bottom-end',
}) })
if (this.currentSessionId && store.getState().auth.user) { if (this.currentSessionId && store.getState().auth.user) {
@ -113,7 +113,7 @@ export class SignalRService {
if (this.isKicked) { if (this.isKicked) {
toast.push( toast.push(
<Notification title="⚠️ Bağlantı koptu, yeniden bağlanılıyor..." type="warning" />, <Notification title="⚠️ Bağlantı koptu, yeniden bağlanılıyor..." type="warning" />,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
this.isConnected = false this.isConnected = false
this.currentSessionId = undefined this.currentSessionId = undefined
@ -132,19 +132,19 @@ export class SignalRService {
this.connection.on('Error', (message: string) => { this.connection.on('Error', (message: string) => {
toast.push(<Notification title={`❌ Hata: ${message}`} type="danger" />, { toast.push(<Notification title={`❌ Hata: ${message}`} type="danger" />, {
placement: 'top-end', placement: 'bottom-end',
}) })
}) })
this.connection.on('Warning', (message: string) => { this.connection.on('Warning', (message: string) => {
toast.push(<Notification title={`⚠️ Uyarı: ${message}`} type="warning" />, { toast.push(<Notification title={`⚠️ Uyarı: ${message}`} type="warning" />, {
placement: 'top-end', placement: 'bottom-end',
}) })
}) })
this.connection.on('Info', (message: string) => { this.connection.on('Info', (message: string) => {
toast.push(<Notification title={` Bilgi: ${message}`} type="info" />, { toast.push(<Notification title={` Bilgi: ${message}`} type="info" />, {
placement: 'top-end', placement: 'bottom-end',
}) })
}) })
@ -164,7 +164,7 @@ export class SignalRService {
this.connection.on('ForceDisconnect', async (message: string) => { this.connection.on('ForceDisconnect', async (message: string) => {
this.isKicked = true this.isKicked = true
toast.push(<Notification title={`❌ Sınıftan çıkarıldınız: ${message}`} type="danger" />, { toast.push(<Notification title={`❌ Sınıftan çıkarıldınız: ${message}`} type="danger" />, {
placement: 'top-end', placement: 'bottom-end',
}) })
if (this.onForceCleanup) { if (this.onForceCleanup) {
@ -200,7 +200,7 @@ export class SignalRService {
await Promise.race([startPromise, timeout]) await Promise.race([startPromise, timeout])
this.isConnected = true this.isConnected = true
toast.push(<Notification title="✅ Bağlantı kuruldu" type="success" />, { toast.push(<Notification title="✅ Bağlantı kuruldu" type="success" />, {
placement: 'top-end', placement: 'bottom-end',
}) })
} catch { } catch {
toast.push( toast.push(
@ -208,7 +208,7 @@ export class SignalRService {
title="⚠️ Sunucuya bağlanılamadı. Lütfen sayfayı yenileyin veya internet bağlantınızı kontrol edin." title="⚠️ Sunucuya bağlanılamadı. Lütfen sayfayı yenileyin veya internet bağlantınızı kontrol edin."
type="danger" type="danger"
/>, />,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
this.isConnected = false this.isConnected = false
} }
@ -236,7 +236,7 @@ export class SignalRService {
await this.connection.invoke('JoinClass', sessionId, userId, userName, isTeacher, isActive) await this.connection.invoke('JoinClass', sessionId, userId, userName, isTeacher, isActive)
} catch { } catch {
toast.push(<Notification title="❌ Sınıfa katılamadı" type="danger" />, { toast.push(<Notification title="❌ Sınıfa katılamadı" type="danger" />, {
placement: 'top-end', placement: 'bottom-end',
}) })
} }
} }
@ -254,7 +254,7 @@ export class SignalRService {
this.currentSessionId = undefined this.currentSessionId = undefined
} catch { } catch {
toast.push(<Notification title="⚠️ Çıkış başarısız" type="warning" />, { toast.push(<Notification title="⚠️ Çıkış başarısız" type="warning" />, {
placement: 'top-end', placement: 'bottom-end',
}) })
} }
} }
@ -295,7 +295,7 @@ export class SignalRService {
) )
} catch { } catch {
toast.push(<Notification title="❌ Mesaj gönderilemedi" type="danger" />, { toast.push(<Notification title="❌ Mesaj gönderilemedi" type="danger" />, {
placement: 'top-end', placement: 'bottom-end',
}) })
} }
} }
@ -342,7 +342,7 @@ export class SignalRService {
) )
} catch { } catch {
toast.push(<Notification title="❌ Özel mesaj gönderilemedi" type="danger" />, { toast.push(<Notification title="❌ Özel mesaj gönderilemedi" type="danger" />, {
placement: 'top-end', placement: 'bottom-end',
}) })
} }
} }
@ -382,7 +382,7 @@ export class SignalRService {
) )
} catch { } catch {
toast.push(<Notification title="❌ Duyuru gönderilemedi" type="danger" />, { toast.push(<Notification title="❌ Duyuru gönderilemedi" type="danger" />, {
placement: 'top-end', placement: 'bottom-end',
}) })
} }
} }
@ -404,7 +404,7 @@ export class SignalRService {
await this.connection.invoke('MuteParticipant', sessionId, userId, isMuted, isTeacher) await this.connection.invoke('MuteParticipant', sessionId, userId, isMuted, isTeacher)
} catch { } catch {
toast.push(<Notification title="⚠️ Katılımcı susturulamadı" type="warning" />, { toast.push(<Notification title="⚠️ Katılımcı susturulamadı" type="warning" />, {
placement: 'top-end', placement: 'bottom-end',
}) })
} }
} }
@ -421,7 +421,7 @@ export class SignalRService {
await this.connection.invoke('RaiseHand', sessionId, studentId, studentName) await this.connection.invoke('RaiseHand', sessionId, studentId, studentName)
} catch { } catch {
toast.push(<Notification title="❌ El kaldırma başarısız" type="danger" />, { toast.push(<Notification title="❌ El kaldırma başarısız" type="danger" />, {
placement: 'top-end', placement: 'bottom-end',
}) })
} }
} }
@ -438,7 +438,7 @@ export class SignalRService {
await this.connection.invoke('KickParticipant', sessionId, participantId) await this.connection.invoke('KickParticipant', sessionId, participantId)
} catch { } catch {
toast.push(<Notification title="❌ Katılımcı atılamadı" type="danger" />, { toast.push(<Notification title="❌ Katılımcı atılamadı" type="danger" />, {
placement: 'top-end', placement: 'bottom-end',
}) })
} }
} }
@ -455,7 +455,7 @@ export class SignalRService {
await this.connection.invoke('ApproveHandRaise', sessionId, studentId) await this.connection.invoke('ApproveHandRaise', sessionId, studentId)
} catch { } catch {
toast.push(<Notification title="⚠️ El kaldırma onayı başarısız" type="warning" />, { toast.push(<Notification title="⚠️ El kaldırma onayı başarısız" type="warning" />, {
placement: 'top-end', placement: 'bottom-end',
}) })
} }
} }
@ -472,7 +472,7 @@ export class SignalRService {
await this.connection.invoke('DismissHandRaise', sessionId, studentId) await this.connection.invoke('DismissHandRaise', sessionId, studentId)
} catch { } catch {
toast.push(<Notification title="⚠️ El indirme başarısız" type="warning" />, { toast.push(<Notification title="⚠️ El indirme başarısız" type="warning" />, {
placement: 'top-end', placement: 'bottom-end',
}) })
} }
} }
@ -552,7 +552,7 @@ export class SignalRService {
await this.connection.invoke('LeaveClass', this.currentSessionId) await this.connection.invoke('LeaveClass', this.currentSessionId)
} catch { } catch {
toast.push(<Notification title="⚠️ Bağlantı koparılırken hata" type="warning" />, { toast.push(<Notification title="⚠️ Bağlantı koparılırken hata" type="warning" />, {
placement: 'top-end', placement: 'bottom-end',
}) })
} }
} }

View file

@ -53,7 +53,7 @@ export class WebRTCService {
title="❌ Kamera/Mikrofon erişilemedi. Tarayıcı ayarlarınızı veya izinleri kontrol edin." title="❌ Kamera/Mikrofon erişilemedi. Tarayıcı ayarlarınızı veya izinleri kontrol edin."
type="danger" type="danger"
/>, />,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
throw new Error('Media devices access failed') throw new Error('Media devices access failed')
} }
@ -105,7 +105,7 @@ export class WebRTCService {
title={`❌ Bağlantı kurulamadı (${this.maxRetries} deneme başarısız).`} title={`❌ Bağlantı kurulamadı (${this.maxRetries} deneme başarısız).`}
type="danger" type="danger"
/>, />,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
this.closePeerConnection(userId) this.closePeerConnection(userId)
} }
@ -150,7 +150,7 @@ export class WebRTCService {
return offer return offer
} catch { } catch {
toast.push(<Notification title="❌ Offer oluşturulamadı" type="danger" />, { toast.push(<Notification title="❌ Offer oluşturulamadı" type="danger" />, {
placement: 'top-end', placement: 'bottom-end',
}) })
throw new Error('Offer creation failed') throw new Error('Offer creation failed')
} }
@ -170,7 +170,7 @@ export class WebRTCService {
return answer return answer
} catch { } catch {
toast.push(<Notification title="❌ Answer oluşturulamadı" type="danger" />, { toast.push(<Notification title="❌ Answer oluşturulamadı" type="danger" />, {
placement: 'top-end', placement: 'bottom-end',
}) })
throw new Error('Answer creation failed') throw new Error('Answer creation failed')
} }
@ -238,7 +238,7 @@ export class WebRTCService {
} }
} catch { } catch {
toast.push(<Notification title="❌ Kamera açılamadı" type="danger" />, { toast.push(<Notification title="❌ Kamera açılamadı" type="danger" />, {
placement: 'top-end', placement: 'bottom-end',
}) })
} }
} }
@ -267,7 +267,7 @@ export class WebRTCService {
} }
} catch { } catch {
toast.push(<Notification title="❌ Mikrofon açılamadı" type="danger" />, { toast.push(<Notification title="❌ Mikrofon açılamadı" type="danger" />, {
placement: 'top-end', placement: 'bottom-end',
}) })
} }
} }
@ -286,12 +286,12 @@ export class WebRTCService {
await this.signalRService.sendOffer(this.sessionId, userId, offer) await this.signalRService.sendOffer(this.sessionId, userId, offer)
} else { } else {
toast.push(<Notification title="⚠️ Tekrar bağlanma başarısız" type="warning" />, { toast.push(<Notification title="⚠️ Tekrar bağlanma başarısız" type="warning" />, {
placement: 'top-end', placement: 'bottom-end',
}) })
} }
} catch { } catch {
toast.push(<Notification title="❌ ICE restart başarısız" type="danger" />, { toast.push(<Notification title="❌ ICE restart başarısız" type="danger" />, {
placement: 'top-end', placement: 'bottom-end',
}) })
} }
} }
@ -345,7 +345,7 @@ export class WebRTCService {
pc.removeTrack(sender) pc.removeTrack(sender)
} catch { } catch {
toast.push(<Notification title="⚠️ Track silinemedi" type="warning" />, { toast.push(<Notification title="⚠️ Track silinemedi" type="warning" />, {
placement: 'top-end', placement: 'bottom-end',
}) })
} }
if (sender.track?.readyState !== 'ended') { if (sender.track?.readyState !== 'ended') {

View file

@ -94,7 +94,7 @@ function ChartTabSeries(props: FormEditProps & { listFormCode: string }) {
{error.toString()} {error.toString()}
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
} }

View file

@ -170,7 +170,7 @@ function FormCustomization({
: translate('::ListForms.KayitEklendi')} : translate('::ListForms.KayitEklendi')}
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
setRow(null) setRow(null)
@ -180,7 +180,7 @@ function FormCustomization({
Hata Hata
<code>{error}</code> <code>{error}</code>
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
} finally { } finally {
setSubmitting(false) setSubmitting(false)
@ -336,7 +336,7 @@ function FormCustomization({
{translate('::ListForms.KayitSilindi')} {translate('::ListForms.KayitSilindi')}
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
getListFormCustomizations() getListFormCustomizations()

View file

@ -206,7 +206,7 @@ const FormEdit = () => {
<Notification type="success" duration={2000}> <Notification type="success" duration={2000}>
{translate('::ListForms.FormBilgileriKaydedildi')} {translate('::ListForms.FormBilgileriKaydedildi')}
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
} catch (error: any) { } catch (error: any) {
toast.push( toast.push(
@ -214,7 +214,7 @@ const FormEdit = () => {
Hata Hata
<code>{error}</code> <code>{error}</code>
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
} finally { } finally {
formikHelpers.setSubmitting(false) formikHelpers.setSubmitting(false)

View file

@ -57,7 +57,7 @@ function FormTabGantt(props: FormEditProps) {
{error.toString()} {error.toString()}
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
} }

View file

@ -56,7 +56,7 @@ function FormTabScheduler(props: FormEditProps) {
{error.toString()} {error.toString()}
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
} }

View file

@ -54,7 +54,7 @@ function FormTabTree(props: FormEditProps) {
{error.toString()} {error.toString()}
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
} }

View file

@ -139,7 +139,7 @@ function FormFieldTabConditionalFormatting({
{translate('::ListForms.FormBilgileriKaydedildi')} {translate('::ListForms.FormBilgileriKaydedildi')}
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
handleClose() handleClose()
@ -149,7 +149,7 @@ function FormFieldTabConditionalFormatting({
Hata Hata
<code>{error}</code> <code>{error}</code>
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
} }
}} }}
@ -199,7 +199,7 @@ function FormFieldTabConditionalFormatting({
{translate('::ListForms.FormBilgileriKaydedildi')} {translate('::ListForms.FormBilgileriKaydedildi')}
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
handleClose() handleClose()
@ -209,7 +209,7 @@ function FormFieldTabConditionalFormatting({
Hata Hata
<code>{error}</code> <code>{error}</code>
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
} finally { } finally {
setSubmitting(false) setSubmitting(false)

View file

@ -157,7 +157,7 @@ function FormFieldTabValidationRules({
Hata Hata
<code>{error}</code> <code>{error}</code>
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
} }
}} }}
@ -209,7 +209,7 @@ function FormFieldTabValidationRules({
{translate('::ListForms.FormBilgileriKaydedildi')} {translate('::ListForms.FormBilgileriKaydedildi')}
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
handleClose() handleClose()
@ -219,7 +219,7 @@ function FormFieldTabValidationRules({
Hata Hata
<code>{error}</code> <code>{error}</code>
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
} finally { } finally {
setSubmitting(false) setSubmitting(false)

View file

@ -162,7 +162,7 @@ function FormFields({
<Notification type="info" duration={2000}> <Notification type="info" duration={2000}>
Tüm sütunlar zaten eklenmiş. Tüm sütunlar zaten eklenmiş.
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
return return
} }
@ -181,7 +181,7 @@ function FormFields({
<Notification type="success" duration={2000}> <Notification type="success" duration={2000}>
{newCols.length} sütun eklendi. {newCols.length} sütun eklendi.
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
await getFields() await getFields()
} catch (error: any) { } catch (error: any) {
@ -189,7 +189,7 @@ function FormFields({
<Notification type="danger"> <Notification type="danger">
Hata: <code>{error.toString()}</code> Hata: <code>{error.toString()}</code>
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
} finally { } finally {
setIsAddingAllColumns(false) setIsAddingAllColumns(false)
@ -250,7 +250,7 @@ function FormFields({
{error.toString()} {error.toString()}
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
} }
@ -287,7 +287,7 @@ function FormFields({
<Notification type="success" duration={2000}> <Notification type="success" duration={2000}>
{translate('::ListForms.FormBilgileriKaydedildi')} {translate('::ListForms.FormBilgileriKaydedildi')}
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
} catch (error: any) { } catch (error: any) {
toast.push( toast.push(
@ -295,7 +295,7 @@ function FormFields({
Hata Hata
<code>{error}</code> <code>{error}</code>
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
} finally { } finally {
formikHelpers?.setSubmitting(false) formikHelpers?.setSubmitting(false)
@ -332,7 +332,7 @@ function FormFields({
<Notification type="success" duration={100}> <Notification type="success" duration={100}>
{'Alanlar geldi'} {'Alanlar geldi'}
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
}) })
setSubmitting(false) setSubmitting(false)
@ -546,7 +546,7 @@ function FormFields({
: translate('::ListForms.KayitEklendi')} : translate('::ListForms.KayitEklendi')}
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
handleNewFieldFormClose() handleNewFieldFormClose()
@ -556,7 +556,7 @@ function FormFields({
Hata Hata
<code>{error}</code> <code>{error}</code>
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
} finally { } finally {
setSubmitting(false) setSubmitting(false)
@ -723,7 +723,7 @@ function FormFields({
{translate('::ListForms.KayitSilindi')} {translate('::ListForms.KayitSilindi')}
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
getFields() getFields()
@ -777,7 +777,7 @@ function FormFields({
await postListFormFieldCopy({ ...values }) await postListFormFieldCopy({ ...values })
toast.push(<Notification type="success">{'Field Kopyalandı.'}</Notification>, { toast.push(<Notification type="success">{'Field Kopyalandı.'}</Notification>, {
placement: 'top-end', placement: 'bottom-end',
}) })
handleCopyFieldFormClose() handleCopyFieldFormClose()
} catch (error: any) { } catch (error: any) {
@ -786,7 +786,7 @@ function FormFields({
Hata Hata
<code>{error}</code> <code>{error}</code>
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
} finally { } finally {
setSubmitting(false) setSubmitting(false)

View file

@ -149,7 +149,7 @@ function JsonRowOpDialogAnnotation({
<Notification type="success"> <Notification type="success">
{data.index === -1 ? 'Kayıt eklendi' : 'Kayıt güncellendi'} {data.index === -1 ? 'Kayıt eklendi' : 'Kayıt güncellendi'}
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
handleClose() handleClose()
} catch (error: any) { } catch (error: any) {
@ -158,7 +158,7 @@ function JsonRowOpDialogAnnotation({
Hata Hata
<code>{error}</code> <code>{error}</code>
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
} finally { } finally {
setSubmitting(false) setSubmitting(false)
@ -450,7 +450,7 @@ function JsonRowOpDialogAnnotation({
try { try {
await deleteListFormJsonRow(data.id, data.tabName, values.index) await deleteListFormJsonRow(data.id, data.tabName, values.index)
toast.push(<Notification type="success">Kayıt silindi </Notification>, { toast.push(<Notification type="success">Kayıt silindi </Notification>, {
placement: 'top-end', placement: 'bottom-end',
}) })
handleClose() handleClose()
} catch (error: any) { } catch (error: any) {
@ -459,7 +459,7 @@ function JsonRowOpDialogAnnotation({
Hata Hata
<code>{error}</code> <code>{error}</code>
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
} finally { } finally {
setSubmitting(false) setSubmitting(false)

View file

@ -163,7 +163,7 @@ function JsonRowOpDialogAxis({
<Notification type="success"> <Notification type="success">
{data.index === -1 ? 'Kayıt eklendi' : 'Kayıt güncellendi'} {data.index === -1 ? 'Kayıt eklendi' : 'Kayıt güncellendi'}
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
handleClose() handleClose()
} catch (error: any) { } catch (error: any) {
@ -172,7 +172,7 @@ function JsonRowOpDialogAxis({
Hata Hata
<code>{error}</code> <code>{error}</code>
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
} finally { } finally {
setSubmitting(false) setSubmitting(false)
@ -484,7 +484,7 @@ function JsonRowOpDialogAxis({
try { try {
await deleteListFormJsonRow(data.id, data.tabName, values.index) await deleteListFormJsonRow(data.id, data.tabName, values.index)
toast.push(<Notification type="success">Kayıt silindi </Notification>, { toast.push(<Notification type="success">Kayıt silindi </Notification>, {
placement: 'top-end', placement: 'bottom-end',
}) })
handleClose() handleClose()
} catch (error: any) { } catch (error: any) {
@ -493,7 +493,7 @@ function JsonRowOpDialogAxis({
Hata Hata
<code>{error}</code> <code>{error}</code>
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
} finally { } finally {
setSubmitting(false) setSubmitting(false)

View file

@ -141,7 +141,7 @@ function JsonRowOpDialogCommand({
<Notification type="success"> <Notification type="success">
{data.index === -1 ? 'Kayıt eklendi' : 'Kayıt güncellendi'} {data.index === -1 ? 'Kayıt eklendi' : 'Kayıt güncellendi'}
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
handleClose() handleClose()
} catch (error: any) { } catch (error: any) {
@ -150,7 +150,7 @@ function JsonRowOpDialogCommand({
Hata Hata
<code>{error}</code> <code>{error}</code>
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
} finally { } finally {
setSubmitting(false) setSubmitting(false)
@ -390,7 +390,7 @@ function JsonRowOpDialogCommand({
try { try {
await deleteListFormJsonRow(data.id, data.tabName, values.index) await deleteListFormJsonRow(data.id, data.tabName, values.index)
toast.push(<Notification type="success">Kayıt silindi </Notification>, { toast.push(<Notification type="success">Kayıt silindi </Notification>, {
placement: 'top-end', placement: 'bottom-end',
}) })
handleClose() handleClose()
} catch (error: any) { } catch (error: any) {
@ -399,7 +399,7 @@ function JsonRowOpDialogCommand({
Hata Hata
<code>{error}</code> <code>{error}</code>
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
} finally { } finally {
setSubmitting(false) setSubmitting(false)

View file

@ -123,7 +123,7 @@ function JsonRowOpDialogDatabase({
<Notification type="success"> <Notification type="success">
{data.index === -1 ? 'Kayıt eklendi' : 'Kayıt güncellendi'} {data.index === -1 ? 'Kayıt eklendi' : 'Kayıt güncellendi'}
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
handleClose() handleClose()
} catch (error: any) { } catch (error: any) {
@ -132,7 +132,7 @@ function JsonRowOpDialogDatabase({
Hata Hata
<code>{error}</code> <code>{error}</code>
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
} finally { } finally {
setSubmitting(false) setSubmitting(false)
@ -263,7 +263,7 @@ function JsonRowOpDialogDatabase({
try { try {
await deleteListFormJsonRow(data.id, data.tabName, values.index) await deleteListFormJsonRow(data.id, data.tabName, values.index)
toast.push(<Notification type="success">Kayıt silindi </Notification>, { toast.push(<Notification type="success">Kayıt silindi </Notification>, {
placement: 'top-end', placement: 'bottom-end',
}) })
handleClose() handleClose()
} catch (error: any) { } catch (error: any) {
@ -272,7 +272,7 @@ function JsonRowOpDialogDatabase({
Hata Hata
<code>{error}</code> <code>{error}</code>
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
} finally { } finally {
setSubmitting(false) setSubmitting(false)

View file

@ -109,7 +109,7 @@ function JsonRowOpDialogEditForm({
{error.toString()} {error.toString()}
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
} }
@ -180,7 +180,7 @@ function JsonRowOpDialogEditForm({
<Notification type="success"> <Notification type="success">
{data.index === -1 ? 'Kayıt eklendi' : 'Kayıt güncellendi'} {data.index === -1 ? 'Kayıt eklendi' : 'Kayıt güncellendi'}
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
handleClose() handleClose()
} catch (error: any) { } catch (error: any) {
@ -189,7 +189,7 @@ function JsonRowOpDialogEditForm({
Hata Hata
<code>{error}</code> <code>{error}</code>
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
} finally { } finally {
setSubmitting(false) setSubmitting(false)
@ -920,7 +920,7 @@ function JsonRowOpDialogEditForm({
Hata Hata
<code>{error}</code> <code>{error}</code>
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
} finally { } finally {
setSubmitting(false) setSubmitting(false)

View file

@ -100,7 +100,7 @@ function JsonRowOpDialogExtraFilter({
{error.toString()} {error.toString()}
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
} }
@ -158,7 +158,7 @@ function JsonRowOpDialogExtraFilter({
<Notification type="success"> <Notification type="success">
{data.index === -1 ? 'Kayıt eklendi' : 'Kayıt güncellendi'} {data.index === -1 ? 'Kayıt eklendi' : 'Kayıt güncellendi'}
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
handleClose() handleClose()
} catch (error: any) { } catch (error: any) {
@ -167,7 +167,7 @@ function JsonRowOpDialogExtraFilter({
Hata Hata
<code>{error}</code> <code>{error}</code>
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
} finally { } finally {
setSubmitting(false) setSubmitting(false)
@ -310,7 +310,7 @@ function JsonRowOpDialogExtraFilter({
try { try {
await deleteListFormJsonRow(data.id, data.tabName, values.index) await deleteListFormJsonRow(data.id, data.tabName, values.index)
toast.push(<Notification type="success">Kayıt silindi </Notification>, { toast.push(<Notification type="success">Kayıt silindi </Notification>, {
placement: 'top-end', placement: 'bottom-end',
}) })
handleClose() handleClose()
} catch (error: any) { } catch (error: any) {
@ -319,7 +319,7 @@ function JsonRowOpDialogExtraFilter({
Hata Hata
<code>{error}</code> <code>{error}</code>
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
} finally { } finally {
setSubmitting(false) setSubmitting(false)

View file

@ -96,7 +96,7 @@ function JsonRowOpDialogPane({
<Notification type="success"> <Notification type="success">
{data.index === -1 ? 'Kayıt eklendi' : 'Kayıt güncellendi'} {data.index === -1 ? 'Kayıt eklendi' : 'Kayıt güncellendi'}
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
handleClose() handleClose()
} catch (error: any) { } catch (error: any) {
@ -105,7 +105,7 @@ function JsonRowOpDialogPane({
Hata Hata
<code>{error}</code> <code>{error}</code>
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
} finally { } finally {
setSubmitting(false) setSubmitting(false)
@ -174,7 +174,7 @@ function JsonRowOpDialogPane({
try { try {
await deleteListFormJsonRow(data.id, data.tabName, values.index) await deleteListFormJsonRow(data.id, data.tabName, values.index)
toast.push(<Notification type="success">Kayıt silindi </Notification>, { toast.push(<Notification type="success">Kayıt silindi </Notification>, {
placement: 'top-end', placement: 'bottom-end',
}) })
handleClose() handleClose()
} catch (error: any) { } catch (error: any) {
@ -183,7 +183,7 @@ function JsonRowOpDialogPane({
Hata Hata
<code>{error}</code> <code>{error}</code>
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
} finally { } finally {
setSubmitting(false) setSubmitting(false)

View file

@ -189,7 +189,7 @@ function JsonRowOpDialogSeries({
<Notification type="success"> <Notification type="success">
{data.index === -1 ? 'Kayıt eklendi' : 'Kayıt güncellendi'} {data.index === -1 ? 'Kayıt eklendi' : 'Kayıt güncellendi'}
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
handleClose() handleClose()
} catch (error: any) { } catch (error: any) {
@ -198,7 +198,7 @@ function JsonRowOpDialogSeries({
Hata Hata
<code>{error}</code> <code>{error}</code>
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
} finally { } finally {
setSubmitting(false) setSubmitting(false)
@ -553,7 +553,7 @@ function JsonRowOpDialogSeries({
try { try {
await deleteListFormJsonRow(data.id, data.tabName, values.index) await deleteListFormJsonRow(data.id, data.tabName, values.index)
toast.push(<Notification type="success">Kayıt silindi </Notification>, { toast.push(<Notification type="success">Kayıt silindi </Notification>, {
placement: 'top-end', placement: 'bottom-end',
}) })
handleClose() handleClose()
} catch (error: any) { } catch (error: any) {
@ -562,7 +562,7 @@ function JsonRowOpDialogSeries({
Hata Hata
<code>{error}</code> <code>{error}</code>
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
} finally { } finally {
setSubmitting(false) setSubmitting(false)

View file

@ -188,7 +188,7 @@ function JsonRowOpDialogSubForm({
<Notification type="success"> <Notification type="success">
{data.index === -1 ? 'Kayıt eklendi' : 'Kayıt güncellendi'} {data.index === -1 ? 'Kayıt eklendi' : 'Kayıt güncellendi'}
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
handleClose() handleClose()
} catch (error: any) { } catch (error: any) {
@ -197,7 +197,7 @@ function JsonRowOpDialogSubForm({
Hata Hata
<code>{error}</code> <code>{error}</code>
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
} finally { } finally {
setSubmitting(false) setSubmitting(false)
@ -459,7 +459,7 @@ function JsonRowOpDialogSubForm({
Hata Hata
<code>{error}</code> <code>{error}</code>
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
} finally { } finally {
setSubmitting(false) setSubmitting(false)

View file

@ -119,7 +119,7 @@ function JsonRowOpDialogWidget({
<Notification type="success"> <Notification type="success">
{data.index === -1 ? 'Kayıt eklendi' : 'Kayıt güncellendi'} {data.index === -1 ? 'Kayıt eklendi' : 'Kayıt güncellendi'}
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
handleClose() handleClose()
} catch (error: any) { } catch (error: any) {
@ -128,7 +128,7 @@ function JsonRowOpDialogWidget({
Hata Hata
<code>{error}</code> <code>{error}</code>
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
} finally { } finally {
setSubmitting(false) setSubmitting(false)
@ -442,7 +442,7 @@ function JsonRowOpDialogWidget({
try { try {
await deleteListFormJsonRow(data.id, data.tabName, values.index) await deleteListFormJsonRow(data.id, data.tabName, values.index)
toast.push(<Notification type="success">Kayıt silindi </Notification>, { toast.push(<Notification type="success">Kayıt silindi </Notification>, {
placement: 'top-end', placement: 'bottom-end',
}) })
handleClose() handleClose()
} catch (error: any) { } catch (error: any) {
@ -451,7 +451,7 @@ function JsonRowOpDialogWidget({
Hata Hata
<code>{error}</code> <code>{error}</code>
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
} finally { } finally {
setSubmitting(false) setSubmitting(false)

View file

@ -523,7 +523,7 @@ const Wizard = () => {
<Notification type="danger"> <Notification type="danger">
{translate('::App.Listforms.WizardFileLoadError') || 'Failed to load wizard file.'} {translate('::App.Listforms.WizardFileLoadError') || 'Failed to load wizard file.'}
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
} finally { } finally {
setIsLoadingEditData(false) setIsLoadingEditData(false)
@ -750,7 +750,7 @@ const Wizard = () => {
<Notification type="success" duration={2000}> <Notification type="success" duration={2000}>
{translate('::ListForms.FormBilgileriKaydedildi')} {translate('::ListForms.FormBilgileriKaydedildi')}
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
} catch (err) { } catch (err) {
console.error(err) console.error(err)

View file

@ -65,7 +65,7 @@ const WizardFileManager = () => {
<Notification type="danger"> <Notification type="danger">
{translate('::App.Listforms.WizardFileLoadError') || 'Failed to load wizard files.'} {translate('::App.Listforms.WizardFileLoadError') || 'Failed to load wizard files.'}
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
} finally { } finally {
setLoading(false) setLoading(false)
@ -88,7 +88,7 @@ const WizardFileManager = () => {
{translate('::App.Listforms.WizardFileDeleteSuccess') || {translate('::App.Listforms.WizardFileDeleteSuccess') ||
'wizard file deleted successfully.'} 'wizard file deleted successfully.'}
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
await loadFiles() await loadFiles()
} catch (err: any) { } catch (err: any) {
@ -97,7 +97,7 @@ const WizardFileManager = () => {
{translate('::App.Listforms.WizardFileDeleteError') || 'Failed to delete wizard file.'}:{' '} {translate('::App.Listforms.WizardFileDeleteError') || 'Failed to delete wizard file.'}:{' '}
{err?.message ?? 'Unknown error'} {err?.message ?? 'Unknown error'}
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
} finally { } finally {
setDeletingFile(null) setDeletingFile(null)

View file

@ -344,7 +344,7 @@ function MenuTreeInline({
onReload() onReload()
setEditingCode(null) setEditingCode(null)
} catch (e: any) { } catch (e: any) {
toast.push(<Notification title={e.message} type="danger" />, { placement: 'top-end' }) toast.push(<Notification title={e.message} type="danger" />, { placement: 'bottom-end' })
} finally { } finally {
setSaving(false) setSaving(false)
} }
@ -363,7 +363,7 @@ function MenuTreeInline({
await menuService.delete(node.id) await menuService.delete(node.id)
onReload() onReload()
} catch (e: any) { } catch (e: any) {
toast.push(<Notification title={e.message} type="danger" />, { placement: 'top-end' }) toast.push(<Notification title={e.message} type="danger" />, { placement: 'bottom-end' })
} finally { } finally {
setSaving(false) setSaving(false)
} }

View file

@ -50,7 +50,7 @@ function CreateNotification({
{translate('::Kaydet')} {translate('::Kaydet')}
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
onDialogClose() onDialogClose()
@ -60,7 +60,7 @@ function CreateNotification({
{'Hata'} {'Hata'}
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
} finally { } finally {

View file

@ -226,7 +226,7 @@ const OrganizationUnits = () => {
{translate('::Kaydet')} {translate('::Kaydet')}
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
@ -238,7 +238,7 @@ const OrganizationUnits = () => {
Hata Hata
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
} finally { } finally {
@ -295,7 +295,7 @@ const OrganizationUnits = () => {
Hata Hata
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
} finally { } finally {
@ -331,7 +331,7 @@ const OrganizationUnits = () => {
{translate('::Kaydet')} {translate('::Kaydet')}
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
@ -342,7 +342,7 @@ const OrganizationUnits = () => {
Hata Hata
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
} finally { } finally {
@ -364,7 +364,7 @@ const OrganizationUnits = () => {
{translate('::Kaydet')} {translate('::Kaydet')}
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
@ -375,7 +375,7 @@ const OrganizationUnits = () => {
Hata Hata
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
} finally { } finally {
@ -783,7 +783,7 @@ const OrganizationUnits = () => {
Updated Updated
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
await fetchUsersAndRoles(activeOu) await fetchUsersAndRoles(activeOu)
@ -794,7 +794,7 @@ const OrganizationUnits = () => {
Hata Hata
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
} finally { } finally {
@ -854,7 +854,7 @@ const OrganizationUnits = () => {
{translate('::ListForms.FormBilgileriKaydedildi')} {translate('::ListForms.FormBilgileriKaydedildi')}
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
await fetchUsersAndRoles(activeOu) await fetchUsersAndRoles(activeOu)
@ -865,7 +865,7 @@ const OrganizationUnits = () => {
Hata Hata
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
} finally { } finally {
@ -934,7 +934,7 @@ const OrganizationUnits = () => {
{translate('::KayitSilindi')} {translate('::KayitSilindi')}
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
} catch (error) { } catch (error) {
@ -943,7 +943,7 @@ const OrganizationUnits = () => {
Hata Hata
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
} finally { } finally {
@ -981,7 +981,7 @@ const OrganizationUnits = () => {
{translate('::Abp.Identity.OrganizationUnit.MoveAllUsersMessage')} {translate('::Abp.Identity.OrganizationUnit.MoveAllUsersMessage')}
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
await fetchUsersAndRoles(values.id) await fetchUsersAndRoles(values.id)
@ -992,7 +992,7 @@ const OrganizationUnits = () => {
Hata Hata
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
} finally { } finally {

View file

@ -123,11 +123,11 @@ const General = () => {
}) })
toast.push(<Notification title={'Profil güncellendi'} type="success" />, { toast.push(<Notification title={'Profil güncellendi'} type="success" />, {
placement: 'top-end', placement: 'bottom-end',
}) })
} else { } else {
toast.push(<Notification title={resp?.error?.message} type="danger" />, { toast.push(<Notification title={resp?.error?.message} type="danger" />, {
placement: 'top-end', placement: 'bottom-end',
}) })
} }
setSubmitting(false) setSubmitting(false)

View file

@ -36,11 +36,11 @@ const Password = () => {
const resp = await changePassword(values.password, values.newPassword) const resp = await changePassword(values.password, values.newPassword)
if (resp.status === 204) { if (resp.status === 204) {
toast.push(<Notification title={'Password updated'} type="success" />, { toast.push(<Notification title={'Password updated'} type="success" />, {
placement: 'top-end', placement: 'bottom-end',
}) })
} else { } else {
toast.push(<Notification title={resp?.error?.message} type="danger" />, { toast.push(<Notification title={resp?.error?.message} type="danger" />, {
placement: 'top-end', placement: 'bottom-end',
}) })
} }
setSubmitting(false) setSubmitting(false)

View file

@ -47,7 +47,7 @@ const Roles = () => {
toast.push( toast.push(
<RolesPermission open={true} name={'admin'} onDialogClose={() => {}}></RolesPermission>, <RolesPermission open={true} name={'admin'} onDialogClose={() => {}}></RolesPermission>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
}} }}

View file

@ -16,6 +16,7 @@ import { getPermissions, getRoles, updatePermissions } from '@/services/identity
import { useStoreActions, useStoreState } from '@/store' import { useStoreActions, useStoreState } from '@/store'
import { useLocalization } from '@/utils/hooks/useLocalization' import { useLocalization } from '@/utils/hooks/useLocalization'
import { ChangeEvent, useEffect, useMemo, useState } from 'react' import { ChangeEvent, useEffect, useMemo, useState } from 'react'
import { MULTIVALUE_DELIMITER } from '@/constants/app.constant'
type OpenState = Record<string, boolean> type OpenState = Record<string, boolean>
@ -242,7 +243,7 @@ function RolesPermission({
if (!perm.menuGroup) return false if (!perm.menuGroup) return false
const groups = const groups =
typeof perm.menuGroup === 'string' typeof perm.menuGroup === 'string'
? perm.menuGroup.split('|').map((g: string) => g.trim()) ? perm.menuGroup.split(MULTIVALUE_DELIMITER).map((g: string) => g.trim())
: perm.menuGroup : perm.menuGroup
return groups.includes(tenantGroup) return groups.includes(tenantGroup)
}) })
@ -304,7 +305,7 @@ function RolesPermission({
await getConfig(false) await getConfig(false)
toast.push(<Notification title={'Permission updated'} type="success" />, { toast.push(<Notification title={'Permission updated'} type="success" />, {
placement: 'top-end', placement: 'bottom-end',
}) })
} }
@ -509,14 +510,14 @@ function RolesPermission({
setPermissionList({ ...permissionList }) setPermissionList({ ...permissionList })
changeGroup(selectedGroup?.name) changeGroup(selectedGroup?.name)
toast.push(<Notification title={translate('::PermissionsCopied')} type="success" />, { toast.push(<Notification title={translate('::PermissionsCopied')} type="success" />, {
placement: 'top-end', placement: 'bottom-end',
}) })
setCopyDialogOpen(false) setCopyDialogOpen(false)
setCopyDialogRole('') setCopyDialogRole('')
} catch (e) { } catch (e) {
console.error('Failed to copy permissions:', e) console.error('Failed to copy permissions:', e)
toast.push(<Notification title={translate('::CopyFailed')} type="danger" />, { toast.push(<Notification title={translate('::CopyFailed')} type="danger" />, {
placement: 'top-end', placement: 'bottom-end',
}) })
} finally { } finally {
setIsLoading(false) setIsLoading(false)

View file

@ -86,7 +86,7 @@ const CreateTenantFromOrderDialog = ({
<Notification type="success" duration={2500}> <Notification type="success" duration={2500}>
{translate('::App.Platform.SaveSuccess') || 'Tenant kaydedildi'} {translate('::App.Platform.SaveSuccess') || 'Tenant kaydedildi'}
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
onDialogClose() onDialogClose()
@ -101,7 +101,7 @@ const CreateTenantFromOrderDialog = ({
<Notification type="danger" duration={5000}> <Notification type="danger" duration={5000}>
{message} {message}
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
} finally { } finally {
setSubmitting(false) setSubmitting(false)

View file

@ -95,7 +95,7 @@ function TenantConnectionString({
{translate('::AbpTenantManagement.Tenants.ConnectionStringDeleted')} {translate('::AbpTenantManagement.Tenants.ConnectionStringDeleted')}
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
onDialogClose() onDialogClose()
@ -105,7 +105,7 @@ function TenantConnectionString({
{'Hata'} {'Hata'}
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
} }
@ -128,7 +128,7 @@ function TenantConnectionString({
{translate('::AbpTenantManagement.Tenants.ConnectionStringSaved')} {translate('::AbpTenantManagement.Tenants.ConnectionStringSaved')}
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
@ -139,7 +139,7 @@ function TenantConnectionString({
{'Hata'} {'Hata'}
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
} finally { } finally {
@ -177,7 +177,7 @@ function TenantConnectionString({
{translate('::AbpTenantManagement.Tenants.DatabaseSeeded')} {translate('::AbpTenantManagement.Tenants.DatabaseSeeded')}
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
@ -194,7 +194,7 @@ function TenantConnectionString({
{errorMessage} {errorMessage}
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
} finally { } finally {

View file

@ -205,7 +205,7 @@ function UserDetails() {
{translate('::Kaydet')} {translate('::Kaydet')}
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
setOpen(false) setOpen(false)
@ -216,7 +216,7 @@ function UserDetails() {
{'Hata'} {'Hata'}
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
} finally { } finally {
@ -296,7 +296,7 @@ function UserDetails() {
(resp as { error?: { message?: string } })?.error?.message || 'Hata' (resp as { error?: { message?: string } })?.error?.message || 'Hata'
toast.push(<Notification title={errorMessage} type="danger" />, { toast.push(<Notification title={errorMessage} type="danger" />, {
placement: 'top-end', placement: 'bottom-end',
}) })
} }
} }
@ -306,7 +306,7 @@ function UserDetails() {
{translate('::Kaydet')} {translate('::Kaydet')}
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
@ -614,7 +614,7 @@ function UserDetails() {
{translate('::Abp.Identity.User.SavePermission')} {translate('::Abp.Identity.User.SavePermission')}
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
@ -725,7 +725,7 @@ function UserDetails() {
{translate('::Kaydet')} {translate('::Kaydet')}
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
@ -907,7 +907,7 @@ function UserDetails() {
{translate('::Kaydet')} {translate('::Kaydet')}
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
@ -1265,7 +1265,7 @@ function UserDetails() {
{translate('::Abp.Identity.User.SaveLockout')} {translate('::Abp.Identity.User.SaveLockout')}
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
@ -1773,7 +1773,7 @@ function UserDetails() {
<Notification type="success" duration={2000}> <Notification type="success" duration={2000}>
{translate('::Abp.Identity.User.ClaimDeleted')} {translate('::Abp.Identity.User.ClaimDeleted')}
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
setConfirmDeleteClaim(null) setConfirmDeleteClaim(null)
getUser() getUser()

View file

@ -302,7 +302,7 @@ function UsersPermission({
await getConfig(false) await getConfig(false)
toast.push(<Notification title={'Permission updated'} type="success" />, { toast.push(<Notification title={'Permission updated'} type="success" />, {
placement: 'top-end', placement: 'bottom-end',
}) })
} }

View file

@ -276,7 +276,7 @@ const RoomDetail = () => {
if (!isActive) return if (!isActive) return
toast.push(<Notification title={`${name} sınıfa katıldı`} type="success" />, { toast.push(<Notification title={`${name} sınıfa katıldı`} type="success" />, {
placement: 'top-end', placement: 'bottom-end',
}) })
// Statee ekle // Statee ekle
@ -361,7 +361,7 @@ const RoomDetail = () => {
title={`Katılımcı ayrıldı: ${userName ?? 'Bilinmeyen'}`} title={`Katılımcı ayrıldı: ${userName ?? 'Bilinmeyen'}`}
type="warning" type="warning"
/>, />,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
} }
@ -437,7 +437,7 @@ const RoomDetail = () => {
title="❌ Sınıf servisleri başlatılamadı. Bağlantınızı veya tarayıcı izinlerini kontrol edin." title="❌ Sınıf servisleri başlatılamadı. Bağlantınızı veya tarayıcı izinlerini kontrol edin."
type="danger" type="danger"
/>, />,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
} }
} }
@ -478,7 +478,7 @@ const RoomDetail = () => {
} catch (err) { } catch (err) {
console.error(ıkış sırasında hata oluştu:', err) console.error(ıkış sırasında hata oluştu:', err)
toast.push(<Notification title="⚠️ Çıkış sırasında hata oluştu" type="warning" />, { toast.push(<Notification title="⚠️ Çıkış sırasında hata oluştu" type="warning" />, {
placement: 'top-end', placement: 'bottom-end',
}) })
navigate(ROUTES_ENUM.protected.admin.videoroom.roomList) navigate(ROUTES_ENUM.protected.admin.videoroom.roomList)
} }
@ -501,7 +501,7 @@ const RoomDetail = () => {
} catch (error) { } catch (error) {
console.error('Özel mesaj gönderilemedi:', error) console.error('Özel mesaj gönderilemedi:', error)
toast.push(<Notification title="❌ Özel mesaj gönderilemedi" type="danger" />, { toast.push(<Notification title="❌ Özel mesaj gönderilemedi" type="danger" />, {
placement: 'top-end', placement: 'bottom-end',
}) })
} }
} else if (messageMode === 'announcement' && user.role === 'teacher') { } else if (messageMode === 'announcement' && user.role === 'teacher') {
@ -516,7 +516,7 @@ const RoomDetail = () => {
} catch (error) { } catch (error) {
console.error('Duyuru gönderilemedi:', error) console.error('Duyuru gönderilemedi:', error)
toast.push(<Notification title="❌ Duyuru gönderilemedi" type="danger" />, { toast.push(<Notification title="❌ Duyuru gönderilemedi" type="danger" />, {
placement: 'top-end', placement: 'bottom-end',
}) })
} }
} else { } else {
@ -531,7 +531,7 @@ const RoomDetail = () => {
} catch (error) { } catch (error) {
console.error('Genel mesaj gönderilemedi:', error) console.error('Genel mesaj gönderilemedi:', error)
toast.push(<Notification title="❌ Genel mesaj gönderilemedi" type="danger" />, { toast.push(<Notification title="❌ Genel mesaj gönderilemedi" type="danger" />, {
placement: 'top-end', placement: 'bottom-end',
}) })
} }
} }
@ -555,7 +555,7 @@ const RoomDetail = () => {
} catch (err) { } catch (err) {
console.error('Katılımcı susturulamadı:', err) console.error('Katılımcı susturulamadı:', err)
toast.push(<Notification title="❌ Katılımcı susturulamadı" type="danger" />, { toast.push(<Notification title="❌ Katılımcı susturulamadı" type="danger" />, {
placement: 'top-end', placement: 'bottom-end',
}) })
} }
} }
@ -618,7 +618,7 @@ const RoomDetail = () => {
} catch (error) { } catch (error) {
console.error('Katılımcı atılamadı:', error) console.error('Katılımcı atılamadı:', error)
toast.push(<Notification title="❌ Katılımcı atılamadı" type="danger" />, { toast.push(<Notification title="❌ Katılımcı atılamadı" type="danger" />, {
placement: 'top-end', placement: 'bottom-end',
}) })
} }
} }
@ -685,7 +685,7 @@ const RoomDetail = () => {
} catch (error) { } catch (error) {
console.error('Ekran paylaşımı başlatılamadı:', error) console.error('Ekran paylaşımı başlatılamadı:', error)
toast.push(<Notification title="❌ Ekran paylaşımı başlatılamadı" type="danger" />, { toast.push(<Notification title="❌ Ekran paylaşımı başlatılamadı" type="danger" />, {
placement: 'top-end', placement: 'bottom-end',
}) })
} }
} }

View file

@ -20,11 +20,11 @@ function BranchSeedContent({ id, name }: { id: string; name: string }) {
if (data.success) { if (data.success) {
toast.push(<Notification title="Seed işlemi başarılı" type="success" />, { toast.push(<Notification title="Seed işlemi başarılı" type="success" />, {
placement: 'top-end', placement: 'bottom-end',
}) })
} else { } else {
toast.push(<Notification title="Seed işlemi başarısız" type="danger" />, { toast.push(<Notification title="Seed işlemi başarısız" type="danger" />, {
placement: 'top-end', placement: 'bottom-end',
}) })
} }
} catch (error) { } catch (error) {
@ -36,7 +36,7 @@ function BranchSeedContent({ id, name }: { id: string; name: string }) {
details: [], details: [],
}) })
toast.push(<Notification title="Seed işlemi sırasında hata oluştu" type="danger" />, { toast.push(<Notification title="Seed işlemi sırasında hata oluştu" type="danger" />, {
placement: 'top-end', placement: 'bottom-end',
}) })
} finally { } finally {
setIsLoading(false) setIsLoading(false)

View file

@ -78,7 +78,7 @@ function ComponentCodeLayout() {
Bileşen başarıyla kaydedildi. Bileşen başarıyla kaydedildi.
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
} }

View file

@ -105,12 +105,12 @@ const FormButtons = (props: {
{translate('::KayitSilindi')} {translate('::KayitSilindi')}
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
} catch (error: any) { } catch (error: any) {
toast.push(<Notification title={error.message} type="danger" />, { toast.push(<Notification title={error.message} type="danger" />, {
placement: 'top-end', placement: 'bottom-end',
}) })
} }
} }

View file

@ -1,4 +1,4 @@
import { DX_CLASSNAMES } from '@/constants/app.constant' import { DX_CLASSNAMES, MULTIVALUE_DELIMITER } from '@/constants/app.constant'
import { executeEditorScript } from '@/utils/editorScriptRuntime' import { executeEditorScript } from '@/utils/editorScriptRuntime'
import { import {
Form as FormDx, Form as FormDx,
@ -445,7 +445,7 @@ const FormDevExpress = (props: {
.flatMap((group) => flattenFormItems([group])) .flatMap((group) => flattenFormItems([group]))
.filter((formItem) => shouldRunEditorScriptOnContentReady(formItem.editorScript)) .filter((formItem) => shouldRunEditorScriptOnContentReady(formItem.editorScript))
.map((formItem) => formItem.dataField) .map((formItem) => formItem.dataField)
.join('|') .join(MULTIVALUE_DELIMITER)
if (!scriptFields) { if (!scriptFields) {
return return

View file

@ -79,7 +79,7 @@ const useGridData = (props: {
} }
} catch (error: any) { } catch (error: any) {
toast.push(<Notification title={error.message} type="danger" />, { toast.push(<Notification title={error.message} type="danger" />, {
placement: 'top-end', placement: 'bottom-end',
}) })
} finally { } finally {
setLoading(false) setLoading(false)
@ -113,7 +113,7 @@ const useGridData = (props: {
{translate('::ListForms.FormBilgileriKaydedildi')} {translate('::ListForms.FormBilgileriKaydedildi')}
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
} else { } else {
@ -151,7 +151,7 @@ const useGridData = (props: {
{translate('::ListForms.FormBilgileriKaydedildi')} {translate('::ListForms.FormBilgileriKaydedildi')}
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
} else { } else {
@ -160,7 +160,7 @@ const useGridData = (props: {
} }
} catch (error: any) { } catch (error: any) {
toast.push(<Notification title={error.message} type="danger" />, { toast.push(<Notification title={error.message} type="danger" />, {
placement: 'top-end', placement: 'bottom-end',
}) })
} finally { } finally {
setLoading(false) setLoading(false)

View file

@ -15,7 +15,7 @@ import { AnnouncementCommentDto, AnnouncementDto } from '@/proxy/intranet/models
import useLocale from '@/utils/hooks/useLocale' import useLocale from '@/utils/hooks/useLocale'
import { currentLocalDate } from '@/utils/dateUtils' import { currentLocalDate } from '@/utils/dateUtils'
import Avatar from '@/components/ui/Avatar/Avatar' import Avatar from '@/components/ui/Avatar/Avatar'
import { AVATAR_URL } from '@/constants/app.constant' import { AVATAR_URL, MULTIVALUE_DELIMITER } from '@/constants/app.constant'
import { intranetService } from '@/services/intranet.service' import { intranetService } from '@/services/intranet.service'
import dayjs from 'dayjs' import dayjs from 'dayjs'
import relativeTime from 'dayjs/plugin/relativeTime' import relativeTime from 'dayjs/plugin/relativeTime'
@ -121,7 +121,7 @@ function AnnouncementModalContent({ announcement, onClose, onLikeChange }: Annou
announcementUser.fullName || announcementUser.fullName ||
[announcementUser.name, announcementUser.surname].filter(Boolean).join(' ') || [announcementUser.name, announcementUser.surname].filter(Boolean).join(' ') ||
'-' '-'
const images = announcement.imageUrl ? announcement.imageUrl.split('|').filter(Boolean) : [] const images = announcement.imageUrl ? announcement.imageUrl.split(MULTIVALUE_DELIMITER).filter(Boolean) : []
const attachments = Array.isArray(announcement.attachments) ? announcement.attachments : [] const attachments = Array.isArray(announcement.attachments) ? announcement.attachments : []
const category = announcement.category || 'general' const category = announcement.category || 'general'

View file

@ -15,7 +15,7 @@ import { EventCommentDto, EventDto } from '@/proxy/intranet/models'
import useLocale from '@/utils/hooks/useLocale' import useLocale from '@/utils/hooks/useLocale'
import { currentLocalDate } from '@/utils/dateUtils' import { currentLocalDate } from '@/utils/dateUtils'
import Avatar from '@/components/ui/Avatar/Avatar' import Avatar from '@/components/ui/Avatar/Avatar'
import { AVATAR_URL } from '@/constants/app.constant' import { AVATAR_URL, MULTIVALUE_DELIMITER } from '@/constants/app.constant'
import { intranetService } from '@/services/intranet.service' import { intranetService } from '@/services/intranet.service'
import dayjs from 'dayjs' import dayjs from 'dayjs'
import relativeTime from 'dayjs/plugin/relativeTime' import relativeTime from 'dayjs/plugin/relativeTime'
@ -34,7 +34,7 @@ interface EventModalProps {
function EventModalContent({ event, onClose, onLikeChange }: EventModalProps) { function EventModalContent({ event, onClose, onLikeChange }: EventModalProps) {
const currentLocale = useLocale() const currentLocale = useLocale()
const photos = (event.photos || '').split('|').filter(Boolean) const photos = (event.photos || '').split(MULTIVALUE_DELIMITER).filter(Boolean)
const { translate } = useLocalization() const { translate } = useLocalization()
const { isMaximized } = useDialogContext() const { isMaximized } = useDialogContext()

View file

@ -6,7 +6,7 @@ import useLocale from '@/utils/hooks/useLocale'
import { currentLocalDate } from '@/utils/dateUtils' import { currentLocalDate } from '@/utils/dateUtils'
import { useLocalization } from '@/utils/hooks/useLocalization' import { useLocalization } from '@/utils/hooks/useLocalization'
import { Avatar } from '@/components/ui' import { Avatar } from '@/components/ui'
import { AVATAR_URL } from '@/constants/app.constant' import { AVATAR_URL, MULTIVALUE_DELIMITER } from '@/constants/app.constant'
import { imageSrc } from './widgetUtils' import { imageSrc } from './widgetUtils'
import type { DashboardWidgetDefinition } from '../dashboardWidget' import type { DashboardWidgetDefinition } from '../dashboardWidget'
@ -17,7 +17,7 @@ interface EventsProps {
const getFirstPhoto = (photos?: string): string | null => { const getFirstPhoto = (photos?: string): string | null => {
if (!photos) return null if (!photos) return null
const parts = photos.split('|').filter(Boolean) const parts = photos.split(MULTIVALUE_DELIMITER).filter(Boolean)
return parts.length > 0 ? parts[0] : null return parts.length > 0 ? parts[0] : null
} }

View file

@ -124,7 +124,7 @@ const ChartDrawer = ({
{translate('::App.Platform.ChartDrawer.ChartSaved')} {translate('::App.Platform.ChartDrawer.ChartSaved')}
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
onClose() onClose()
@ -134,7 +134,7 @@ const ChartDrawer = ({
{translate('::App.Platform.Error')} {translate('::App.Platform.Error')}
<code>{error}</code> <code>{error}</code>
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
} finally { } finally {
setSubmitting(false) setSubmitting(false)

View file

@ -345,7 +345,7 @@ const Grid = (props: GridProps) => {
{translate('::ListForms.ListForm.GridStateSaved')} {translate('::ListForms.ListForm.GridStateSaved')}
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
}) })
@ -355,7 +355,7 @@ const Grid = (props: GridProps) => {
{translate('::ListForms.ListForm.GridStateSaveError')} {translate('::ListForms.ListForm.GridStateSaveError')}
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
throw err throw err
@ -713,7 +713,7 @@ const Grid = (props: GridProps) => {
{e.error?.message} {e.error?.message}
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
}, []) }, [])
@ -1414,7 +1414,7 @@ const Grid = (props: GridProps) => {
<Notification type="danger" duration={2500}> <Notification type="danger" duration={2500}>
{translate('::App.Common.ExportError') ?? 'Dışa aktarma sırasında hata oluştu.'} {translate('::App.Common.ExportError') ?? 'Dışa aktarma sırasında hata oluştu.'}
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
} }
} }
@ -1537,7 +1537,7 @@ const Grid = (props: GridProps) => {
</div> </div>
))} ))}
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
} }
gridRef.current?.instance()?.refresh() gridRef.current?.instance()?.refresh()

View file

@ -87,7 +87,7 @@ const GridFilterDialogs = (props: {
{'Filter not found'} {'Filter not found'}
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
return return
@ -104,7 +104,7 @@ const GridFilterDialogs = (props: {
{'Filter Saved'} {'Filter Saved'}
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
@ -158,7 +158,7 @@ const GridFilterDialogs = (props: {
{'Filter Deleted'} {'Filter Deleted'}
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )

View file

@ -1,5 +1,5 @@
import { Avatar, Button, Dialog, Notification, Spinner, Table, Tag, toast } from '@/components/ui' import { Avatar, Button, Dialog, Notification, Spinner, Table, Tag, toast } from '@/components/ui'
import { AVATAR_URL } from '@/constants/app.constant' import { AVATAR_URL, MULTIVALUE_DELIMITER } from '@/constants/app.constant'
import { import {
getPermissionGrantedUsers, getPermissionGrantedUsers,
PermissionGrantedUsersDto, PermissionGrantedUsersDto,
@ -68,7 +68,7 @@ const PermissionGranted = ({
!permissionActionSuffixes.some((suffix) => permissionName.endsWith(`.${suffix}`)), !permissionActionSuffixes.some((suffix) => permissionName.endsWith(`.${suffix}`)),
) ?? toRootPermissionName(normalizedPermissionNames[0]) ) ?? toRootPermissionName(normalizedPermissionNames[0])
) )
}, [permissionNames.join('|')]) }, [permissionNames.join(MULTIVALUE_DELIMITER)])
useEffect(() => { useEffect(() => {
if (!isOpen) { if (!isOpen) {
@ -97,7 +97,7 @@ const PermissionGranted = ({
<Notification type="danger" duration={3000}> <Notification type="danger" duration={3000}>
{translate('::ListForms.ListForm.GrantedUsersErrorLoading')} {translate('::ListForms.ListForm.GrantedUsersErrorLoading')}
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
} finally { } finally {
setLoading(false) setLoading(false)

View file

@ -166,7 +166,7 @@ const Pivot = (props: PivotProps) => {
<Notification type="success" duration={2000}> <Notification type="success" duration={2000}>
{translate('::ListForms.ListForm.GridStateReset')} {translate('::ListForms.ListForm.GridStateReset')}
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
} }
}, [listFormCode, storageKey, clearPivotFilters, translate]) }, [listFormCode, storageKey, clearPivotFilters, translate])
@ -205,7 +205,7 @@ const Pivot = (props: PivotProps) => {
<Notification type="danger" duration={2500}> <Notification type="danger" duration={2500}>
{translate('::App.Common.ExportError') ?? 'Dışa aktarma sırasında hata oluştu.'} {translate('::App.Common.ExportError') ?? 'Dışa aktarma sırasında hata oluştu.'}
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
} }
}, },
@ -259,7 +259,7 @@ const Pivot = (props: PivotProps) => {
<Notification type="success" duration={2000}> <Notification type="success" duration={2000}>
{translate('::ListForms.ListForm.GridStateSaved')} {translate('::ListForms.ListForm.GridStateSaved')}
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
}) })
.catch(() => { .catch(() => {
@ -267,7 +267,7 @@ const Pivot = (props: PivotProps) => {
<Notification type="danger" duration={2500}> <Notification type="danger" duration={2500}>
{translate('::ListForms.ListForm.GridStateSaveError')} {translate('::ListForms.ListForm.GridStateSaveError')}
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
}) })
}, [customSaveState, translate]) }, [customSaveState, translate])

View file

@ -335,7 +335,7 @@ const Tree = (props: TreeProps) => {
{translate('::ListForms.ListForm.GridStateSaved')} {translate('::ListForms.ListForm.GridStateSaved')}
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
}) })
@ -345,7 +345,7 @@ const Tree = (props: TreeProps) => {
{translate('::ListForms.ListForm.GridStateSaveError')} {translate('::ListForms.ListForm.GridStateSaveError')}
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
throw err throw err
@ -708,7 +708,7 @@ const Tree = (props: TreeProps) => {
{e.error?.message} {e.error?.message}
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
}, []) }, [])
@ -1189,7 +1189,7 @@ const Tree = (props: TreeProps) => {
</div> </div>
))} ))}
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
} }
gridRef.current?.instance()?.refresh() gridRef.current?.instance()?.refresh()

View file

@ -605,7 +605,7 @@ const useFilters = ({
{error.message} {error.message}
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
} finally { } finally {

View file

@ -36,7 +36,7 @@ const showWorkflowToastMessages = (results: WorkflowRunResultDto | WorkflowRunRe
</div> </div>
))} ))}
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
} }
@ -171,7 +171,7 @@ const useToolbar = ({
<Notification type="warning" duration={2000}> <Notification type="warning" duration={2000}>
{translate('::ListForms.ListForm.SelectRecord')} {translate('::ListForms.ListForm.SelectRecord')}
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
return return
} }
@ -186,7 +186,7 @@ const useToolbar = ({
<Notification type="warning" duration={2500}> <Notification type="warning" duration={2500}>
{translate('::WorkflowAlreadyStarted')} {translate('::WorkflowAlreadyStarted')}
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
return return
} }
@ -203,7 +203,7 @@ const useToolbar = ({
error?.message || error?.message ||
'Workflow baslatilamadi.'} 'Workflow baslatilamadi.'}
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
} }
}, },
@ -230,7 +230,7 @@ const useToolbar = ({
<Notification type="warning" duration={2000}> <Notification type="warning" duration={2000}>
{translate('::ListForms.ListForm.SelectRecord')} {translate('::ListForms.ListForm.SelectRecord')}
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
return return
} }
@ -251,7 +251,7 @@ const useToolbar = ({
<Notification type="warning" duration={2500}> <Notification type="warning" duration={2500}>
{translate('::SeciliKayitBekliyor')} {translate('::SeciliKayitBekliyor')}
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
return return
} }
@ -358,7 +358,7 @@ const useToolbar = ({
<Notification type="warning" duration={2000}> <Notification type="warning" duration={2000}>
{translate('::ListForms.ListForm.SelectRecord')} {translate('::ListForms.ListForm.SelectRecord')}
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
return return
} }
@ -404,7 +404,7 @@ const useToolbar = ({
error?.message || error?.message ||
translate('::SilmeIslemiBasarisiz')} translate('::SilmeIslemiBasarisiz')}
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
}) })
}} }}
@ -473,7 +473,7 @@ const useToolbar = ({
{translate('::TumKayitlarSilindi')} {translate('::TumKayitlarSilindi')}
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
@ -751,7 +751,7 @@ function WorkflowApprovalDecisionDialog({
error?.message || error?.message ||
'Workflow karari verilemedi.'} 'Workflow karari verilemedi.'}
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
} finally { } finally {
setSubmitting(false) setSubmitting(false)

View file

@ -250,7 +250,7 @@ export const MenuItemComponent: React.FC<MenuItemComponentProps> = ({
? translate('::KayitGuncellendi') ? translate('::KayitGuncellendi')
: translate('::KayitEklendi')} : translate('::KayitEklendi')}
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
setIsModalOpen(false) setIsModalOpen(false)
refetch() refetch()
@ -260,7 +260,7 @@ export const MenuItemComponent: React.FC<MenuItemComponentProps> = ({
<Notification title="Hata" type="danger"> <Notification title="Hata" type="danger">
{translate('::IslemBasarisiz')} {translate('::IslemBasarisiz')}
</Notification>, </Notification>,
{ placement: 'top-end' }, { placement: 'bottom-end' },
) )
} finally { } finally {
setSubmitting(false) setSubmitting(false)

View file

@ -737,7 +737,7 @@ const About: FC = () => {
{translate('::ListForms.FormBilgileriKaydedildi')} {translate('::ListForms.FormBilgileriKaydedildi')}
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )

View file

@ -881,7 +881,7 @@ const Home: React.FC = () => {
{translate('::ListForms.FormBilgileriKaydedildi')} {translate('::ListForms.FormBilgileriKaydedildi')}
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )

View file

@ -863,7 +863,7 @@ const Services: React.FC = () => {
{translate('::ListForms.FormBilgileriKaydedildi')} {translate('::ListForms.FormBilgileriKaydedildi')}
</Notification>, </Notification>,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )

View file

@ -13,7 +13,7 @@ import {
toast, toast,
} from '@/components/ui' } from '@/components/ui'
import Notification from '@/components/ui/Notification' import Notification from '@/components/ui/Notification'
import { APP_NAME } from '@/constants/app.constant' import { APP_NAME, MULTIVALUE_DELIMITER } from '@/constants/app.constant'
import { MainGroupedSettingDto } from '@/proxy/settings/models' import { MainGroupedSettingDto } from '@/proxy/settings/models'
import { getList, updateSettingValues } from '@/services/setting-ui.service' import { getList, updateSettingValues } from '@/services/setting-ui.service'
import { useStoreActions, useStoreState } from '@/store' import { useStoreActions, useStoreState } from '@/store'
@ -78,12 +78,12 @@ const Settings = () => {
type="success" type="success"
/>, />,
{ {
placement: 'top-end', placement: 'bottom-end',
}, },
) )
} else { } else {
toast.push(<Notification title={resp?.error?.message} type="danger" />, { toast.push(<Notification title={resp?.error?.message} type="danger" />, {
placement: 'top-end', placement: 'bottom-end',
}) })
} }
//getConfig değiştiriliyor. //getConfig değiştiriliyor.
@ -172,7 +172,7 @@ const Settings = () => {
{subGroup.settings.map((setting) => ( {subGroup.settings.map((setting) => (
<FormItem <FormItem
key={setting.code} key={setting.code}
label={translate('::' + setting.name) + ' (' + setting.providers?.replaceAll('|', ', ') + ')'} label={translate('::' + setting.name) + ' (' + setting.providers?.replaceAll(MULTIVALUE_DELIMITER, ', ') + ')'}
extra={ extra={
<Tooltip title={translate('::' + setting.description)}> <Tooltip title={translate('::' + setting.description)}>
<FaQuestionCircle className="text-lg cursor-pointer ml-1" /> <FaQuestionCircle className="text-lg cursor-pointer ml-1" />

View file

@ -208,7 +208,7 @@ export function MenuAddDialog({
}) })
onClose() onClose()
} catch (e: any) { } catch (e: any) {
toast.push(<Notification title={e.message} type="danger" />, { placement: 'top-end' }) toast.push(<Notification title={e.message} type="danger" />, { placement: 'bottom-end' })
} finally { } finally {
setSaving(false) setSaving(false)
} }